1(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00ee":function(t,e,i){"use strict";var n=i("b622"),r=n("toStringTag"),o={};o[r]="z",t.exports="[object z]"===String(o)},"031b":function(t,e,i){"use strict";function n(t){var e=t.match(/\s*(.+)\s*=\s*"?([^"]+)"?/);return e?{key:e[1],value:e[2]}:null}function r(t){var e=t.match(/<?([^>]*)>(.*)/);if(!e)return null;var i=e[1],r=e[2].split(";"),o=null,s=r.reduce((function(t,e){var i=n(e);return i?"rel"===i.key?(o||(o=i.value),t):(t[i.key]=i.value,t):t}),{});return o?{url:i,rel:o,params:s}:null}function o(t){return t?t.split(/,\s*</).reduce((function(t,e){var i=r(e);if(!i)return t;var n=i.rel.split(/\s+/);return n.forEach((function(e){t[e]||(t[e]={url:i.url,params:i.params})})),t}),{}):{}}t.exports=o},"0366":function(t,e,i){"use strict";var n=i("4625"),r=i("59ed"),o=i("40d5"),s=n(n.bind);t.exports=function(t,e){return r(t),void 0===e?t:o?s(t,e):function(){return t.apply(e,arguments)}}},"0403":function(t,e,i){"use strict";i.d(e,"e",(function(){return g})),i.d(e,"b",(function(){return y})),i.d(e,"c",(function(){return _})),i.d(e,"d",(function(){return v})),i.d(e,"a",(function(){return b}));var n=i("9ab4"),r=i("8f69"),o=i("fe35"),s=i("2f6c"),a=i("b070"),l=i("e7a4"),c=i("0ae3"),u=i("81c9"),h={kind:o["a"].FIELD,name:{kind:o["a"].NAME,value:"__typename"}};function d(t,e){return!t||t.selectionSet.selections.every((function(t){return t.kind===o["a"].FRAGMENT_SPREAD&&d(e[t.name.value],e)}))}function f(t){return d(Object(a["f"])(t)||Object(a["c"])(t),Object(c["a"])(Object(a["d"])(t)))?null:t}function p(t){var e=new Map,i=new Map;return t.forEach((function(t){t&&(t.name?e.set(t.name,t):t.test&&i.set(t.test,t))})),function(t){var n=e.get(t.name.value);return!n&&i.size&&i.forEach((function(e,i){i(t)&&(n=e)})),n}}function m(t){var e=new Map;return function(i){void 0===i&&(i=t);var n=e.get(i);return n||e.set(i,n={variables:new Set,fragmentSpreads:new Set}),n}}function g(t,e){Object(a["a"])(e);for(var i=m(""),l=m(""),c=function(t){for(var e=0,n=void 0;e<t.length&&(n=t[e]);++e)if(!Object(u["a"])(n)){if(n.kind===o["a"].OPERATION_DEFINITION)return i(n.name&&n.name.value);if(n.kind===o["a"].FRAGMENT_DEFINITION)return l(n.name.value)}return!1!==globalThis.__DEV__&&r["b"].error(97),null},h=0,d=e.definitions.length-1;d>=0;--d)e.definitions[d].kind===o["a"].OPERATION_DEFINITION&&++h;var g=p(t),y=function(t){return Object(u["b"])(t)&&t.map(g).some((function(t){return t&&t.remove}))},_=new Map,v=!1,b={enter:function(t){if(y(t.directives))return v=!0,null}},x=Object(s["b"])(e,{Field:b,InlineFragment:b,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(t,e,i,n,r){var o=c(r);o&&o.variables.add(t.name.value)}},FragmentSpread:{enter:function(t,e,i,n,r){if(y(t.directives))return v=!0,null;var o=c(r);o&&o.fragmentSpreads.add(t.name.value)}},FragmentDefinition:{enter:function(t,e,i,n){_.set(JSON.stringify(n),t)},leave:function(t,e,i,n){var r=_.get(JSON.stringify(n));return t===r?t:h>0&&t.selectionSet.selections.every((function(t){return t.kind===o["a"].FIELD&&"__typename"===t.name.value}))?(l(t.name.value).removed=!0,v=!0,null):void 0}},Directive:{leave:function(t){if(g(t))return v=!0,null}}});if(!v)return e;var w=function(t){return t.transitiveVars||(t.transitiveVars=new Set(t.variables),t.removed||t.fragmentSpreads.forEach((function(e){w(l(e)).transitiveVars.forEach((function(e){t.transitiveVars.add(e)}))}))),t},E=new Set;x.definitions.forEach((function(t){t.kind===o["a"].OPERATION_DEFINITION?w(i(t.name&&t.name.value)).fragmentSpreads.forEach((function(t){E.add(t)})):t.kind!==o["a"].FRAGMENT_DEFINITION||0!==h||l(t.name.value).removed||E.add(t.name.value)}
1)),E.forEach((function(t){w(l(t)).fragmentSpreads.forEach((function(t){E.add(t)}))}));var T=function(t){return!(E.has(t)&&!l(t).removed)},S={enter:function(t){if(T(t.name.value))return null}};return f(Object(s["b"])(x,{FragmentSpread:S,FragmentDefinition:S,OperationDefinition:{leave:function(t){if(t.variableDefinitions){var e=w(i(t.name&&t.name.value)).transitiveVars;if(e.size<t.variableDefinitions.length)return Object(n["a"])(Object(n["a"])({},t),{variableDefinitions:t.variableDefinitions.filter((function(t){return e.has(t.variable.name.value)}))})}}}}))}var y=Object.assign((function(t){return Object(s["b"])(t,{SelectionSet:{enter:function(t,e,i){if(!i||i.kind!==o["a"].OPERATION_DEFINITION){var r=t.selections;if(r){var s=r.some((function(t){return Object(l["e"])(t)&&("__typename"===t.name.value||0===t.name.value.lastIndexOf("__",0))}));if(!s){var a=i;if(!(Object(l["e"])(a)&&a.directives&&a.directives.some((function(t){return"export"===t.name.value}))))return Object(n["a"])(Object(n["a"])({},t),{selections:Object(n["f"])(Object(n["f"])([],r,!0),[h],!1)})}}}}}})}),{added:function(t){return t===h}});function _(t){var e=Object(a["e"])(t),i=e.operation;if("query"===i)return t;var r=Object(s["b"])(t,{OperationDefinition:{enter:function(t){return Object(n["a"])(Object(n["a"])({},t),{operation:"query"})}}});return r}function v(t){Object(a["a"])(t);var e=g([{test:function(t){return"client"===t.name.value},remove:!0}],t);return e}function b(t){return Object(a["a"])(t),Object(s["b"])(t,{FragmentSpread:function(t){var e;if(!(null===(e=t.directives)||void 0===e?void 0:e.some((function(t){return"unmask"===t.name.value}))))return Object(n["a"])(Object(n["a"])({},t),{directives:Object(n["f"])(Object(n["f"])([],t.directives||[],!0),[{kind:o["a"].DIRECTIVE,name:{kind:o["a"].NAME,value:"nonreactive"}}
1],!1)})}})}},"04b4":function(t,e,i){"use strict";i.d(e,"a",(function(){return r})),i.d(e,"b",(function(){return s}));var n=i("b0e8");function r(t){var e;let i=Number.MAX_SAFE_INTEGER,n=null,r=-1;for(let a=0;a<t.length;++a){var s;const e=t[a],l=o(e);l!==e.length&&(n=null!==(s=n)&&void 0!==s?s:a,r=a,0!==a&&l<i&&(i=l))}return t.map((t,e)=>0===e?t:t.slice(i)).slice(null!==(e=n)&&void 0!==e?e:0,r+1)}function o(t){let e=0;while(e<t.length&&Object(n["d"])(t.charCodeAt(e)))++e;return e}function s(t,e){const i=t.replace(/"""/g,'\\"""'),r=i.split(/\r\n|[\n\r]/g),o=1===r.length,s=r.length>1&&r.slice(1).every(t=>0===t.length||Object(n["d"])(t.charCodeAt(0))),a=i.endsWith('\\"""'),l=t.endsWith('"')&&!a,c=t.endsWith("\\"),u=l||c,h=!(null!==e&&void 0!==e&&e.minimize)&&(!o||t.length>70||u||s||a);let d="";const f=o&&Object(n["d"])(t.charCodeAt(0));return(h&&!f||s)&&(d+="\n"),d+=i,(h||u)&&(d+="\n"),'"""'+d+'"""'}},"04f8":function(t,e,i){"use strict";var n=i("1212"),r=i("d039"),o=i("cfe9"),s=o.String;t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol("symbol detection");return!s(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},"06cf":function(t,e,i){"use strict";var n=i("83ab"),r=i("c65b"),o=i("d1e7"),s=i("5c6c"),a=i("fc6a"),l=i("a04b"),c=i("1a2d"),u=i("0cfb"),h=Object.getOwnPropertyDescriptor;e.f=n?h:function(t,e){if(t=a(t),e=l(e),u)try{return h(t,e)}catch(i){}if(c(t,e))return s(!r(o.f,t,e),t[e])}},"0789":function(t,e,i){"use strict";i.d(e,"c",(function(){return c})),i.d(e,"d",(function(){return u})),i.d(e,"a",(function(){return h})),i.d(e,"b",(function(){return d}));var n=i("d9f7");function r(t=[],...e){return Array().concat(t,...e)}function o(t,e="top center 0",i){return{name:t,functional:!0,props:{group:{type:Boolean,default:!1},hideOnLeave:{type:Boolean,default:!1},leaveAbsolute:{type:Boolean,default:!1},mode:{type:String,default:i},origin:{type:String,default:e}},render(e,i){const o="transition"+(i.props.group?"-group":""),s={props:{name:t,mode:i.props.mode},on:{beforeEnter(t){t.style.transformOrigin=i.props.origin,t.style.webkitTransformOrigin=i.props.origin}}};return i.props.leaveAbsolute&&(s.on.leave=r(s.on.leave,t=>{const{offsetTop:e,offsetLeft:i,offsetWidth:n,offsetHeight:r}=t;t._transitionInitialStyles={position:t.style.position,top:t.style.top,left:t.style.left,width:t.style.width,height:t.style.height},t.style.position="absolute",t.style.top=e+"px",t.style.left=i+"px",t.style.width=n+"px",t.style.height=r+"px"}),s.on.afterLeave=r(s.on.afterLeave,t=>{if(t&&t._transitionInitialStyles){const{position:e,top:i,left:n,width:r,height:o}=t._transitionInitialStyles;delete t._transitionInitialStyles,t.style.position=e||"",t.style.top=i||"",t.style.left=n||"",t.style.width=r||"",t.style.height=o||""}})),i.props.hideOnLeave&&(s.on.leave=r(s.on.leave,t=>{t.style.setProperty("display","none","important")})),e(o,Object(n["a"])(i.data,s),i.children)}}}function s(t,e,i="in-out"){return{name:t,functional:!0,props:{mode:{type:String,default:i}},render(i,r){return i("transition",Object(n["a"])(r.data,{props:{name:t},on:e}),r.children)}}}var a=i("80d2"),l=function(t="",e=!1){const i=e?"width":"height",n="offset"+Object(a["v"])(i);return{beforeEnter(t){t._parent=t.parentNode,t._initialStyle={transition:t.style.transition,overflow:t.style.overflow,[i]:t.style[i]}},enter(e){const r=e._initialStyle;e.style.setProperty("transition","none","important"),e.style.overflow="hidden";const o=e[n]+"px";e.style[i]="0",e.offsetHeight,e.style.transition=r.transition,t&&e._parent&&e._parent.classList.add(t),requestAnimationFrame(()=>{e.style[i]=o})},afterEnter:o,enterCancelled:o,leave(t){t._initialStyle={transition:"",overflow:t.style.overflow,[i]:t.style[i]},t.style.overflow="hidden",t.style[i]=t[n]+"px",t.offsetHeight,requestAnimationFrame(()=>t.style[i]="0")},afterLeave:r,leaveCancelled:r};function r(e){t&&e._parent&&e._parent.classList.remove(t),o(e)}function o(t){const e=t._initialStyle[i];t.style.overflow=t._initialStyle.overflow,null!=e&&(t.style[i]=e),delete t._initialStyle}};o("carousel-transition"),o("carousel-reverse-transition"),o("tab-transition"),o("tab-reverse-transition"),o("menu-transition"),o("fab-transition","center center","out-in"),o("dialog-transition"),o("dialog-bottom-transition"),o("dialog-top-transition");const c=o("fade-transition"),u=(o("scale-transition"),o("scroll-x-transition"),o("scroll-x-reverse-transition"),o("scroll-y-transition"),o("scroll-y-reverse-transition"),o("slide-x-transition")),h=(o("slide-x-reverse-transition"),o("slide-y-transition"),o("slide-y-reverse-transition"),s("expand-transition",l())),d=s("expand-x-transition",l("",!0))}
1,"0798":function(t,e,i){"use strict";i("0c18");var n=i("10d2"),r=i("afdd"),o=i("9d26"),s=i("f2e7"),a=i("7560"),l=i("f40d"),c=i("58df"),u=i("d9bd"),h=i("80d2");e["a"]=Object(c["a"])(n["a"],s["a"],l["a"]).extend({name:"v-alert",props:{border:{type:String,validator(t){return["top","right","bottom","left"].includes(t)}},closeLabel:{type:String,default:"$vuetify.close"},coloredBorder:Boolean,dense:Boolean,dismissible:Boolean,closeIcon:{type:String,default:"$cancel"},icon:{default:"",type:[Boolean,String],validator(t){return"string"===typeof t||!1===t}},outlined:Boolean,prominent:Boolean,text:Boolean,type:{type:String,validator(t){return["info","error","success","warning"].includes(t)}},value:{type:Boolean,default:!0}},computed:{__cachedBorder(){if(!this.border)return null;let t={staticClass:"v-alert__border",class:{["v-alert__border--"+this.border]:!0}};return this.coloredBorder&&(t=this.setBackgroundColor(this.computedColor,t),t.class["v-alert__border--has-color"]=!0),this.$createElement("div",t)},__cachedDismissible(){if(!this.dismissible)return null;const t=this.iconColor;return this.$createElement(r["a"],{staticClass:"v-alert__dismissible",props:{color:t,icon:!0,small:!0},attrs:{"aria-label":this.$vuetify.lang.t(this.closeLabel)},on:{click:()=>this.isActive=!1}},[this.$createElement(o["a"],{props:{color:t}},this.closeIcon)])},__cachedIcon(){return this.computedIcon?this.$createElement(o["a"],{staticClass:"v-alert__icon",props:{color:this.iconColor}},this.computedIcon):null},classes(){const t={...n["a"].options.computed.classes.call(this),"v-alert--border":Boolean(this.border),"v-alert--dense":this.dense,"v-alert--outlined":this.outlined,"v-alert--prominent":this.prominent,"v-alert--text":this.text};return this.border&&(t["v-alert--border-"+this.border]=!0),t},computedColor(){return this.color||this.type},computedIcon(){return!1!==this.icon&&("string"===typeof this.icon&&this.icon?this.icon:!!["error","info","success","warning"].includes(this.type)&&"$"+this.type)},hasColoredIcon(){return this.hasText||Boolean(this.border)&&this.coloredBorder},hasText(){return this.text||this.outlined},iconColor(){return this.hasColoredIcon?this.computedColor:void 0},isDark(){return!(!this.type||this.coloredBorder||this.outlined)||a["a"].options.computed.isDark.call(this)}},created(){this.$attrs.hasOwnProperty("outline")&&Object(u["a"])("outline","outlined",this)},methods:{genWrapper(){const t=[Object(h["m"])(this,"prepend")||this.__cachedIcon,this.genContent(),this.__cachedBorder,Object(h["m"])(this,"append"),this.$scopedSlots.close?this.$scopedSlots.close({toggle:this.toggle}):this.__cachedDismissible],e={staticClass:"v-alert__wrapper"};return this.$createElement("div",e,t)},genContent(){return this.$createElement("div",{staticClass:"v-alert__content"},Object(h["m"])(this))},genAlert(){let t={staticClass:"v-alert",attrs:{role:"alert"},on:this.listeners$,class:this.classes,style:this.styles,directives:[{name:"show",value:this.isActive}]};if(!this.coloredBorder){const e=this.hasText?this.setTextColor:this.setBackgroundColor;t=e(this.computedColor,t)}return this.$createElement("div",t,[this.genWrapper()])},toggle(){this.isActive=!this.isActive}},render(t){const e=this.genAlert();return this.transition?t("transition",{props:{name:this.transition,origin:this.origin,mode:this.mode}},[e]):e}})},"07fa":function(t,e,i){"use strict";var n=i("50c4");t.exports=function(t){return n(t.length)}},"0ae3":function(t,e,i){"use strict";i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return a})),i.d(e,"b",(function(){return l})),i.d(e,"d",(function(){return c}));var n=i("9ab4"),r=i("8f69"),o=i("2f6c");function s(t,e){var i=e,o=[];t.definitions.forEach((function(t){if("OperationDefinition"===t.kind)throw Object(r["d"])(85,t.operation,t.name?" named '".concat(t.name.value,"'"):"");"FragmentDefinition"===t.kind&&o.push(t)})),"undefined"===typeof i&&(Object(r["b"])(1===o.length,86,o.length),i=o[0].name.value);var s=Object(n["a"])(Object(n["a"])({},t),{definitions:Object(n["f"])([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:i}}]}}],t.definitions,!0)});return s}function a(t){void 0===t&&(t=[]);var e={};return t.forEach((function(t){e[t.name.value]=t})),e}function l(t,e){switch(t.kind){case"InlineFragment":return t;case"FragmentSpread":var i=t.name.value;if("function"===typeof e)return e(i);var n=e&&e[i];return Object(r["b"])(n,87,i),n||null;default:return null}}function c(t){var e=!0;return Object(o["b"])(t,{FragmentSpread:function(t){if(e=!!t.directives&&t.directives.some((function(t){return"unmask"===t.name.value})),!e)return o["a"]}}),e}}
1,"0aed":function(t,e,i){"use strict";var n=i("9dc5"),r=i("297cd");function o(t){return function(e){var i;i=n.prototype.isPrototypeOf(e)?e:r(e);var o=Object.create(t);return o.client=i,o}}t.exports=o},"0bc6":function(t,e,i){},"0c18":function(t,e,i){},"0cb2":function(t,e,i){"use strict";var n=i("e330"),r=i("7b0b"),o=Math.floor,s=n("".charAt),a=n("".replace),l=n("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,i,n,h,d){var f=i+t.length,p=n.length,m=u;return void 0!==h&&(h=r(h),m=c),a(d,m,(function(r,a){var c;switch(s(a,0)){case"$":return"$";case"&":return t;case"`":return l(e,0,i);case"'":return l(e,f);case"<":c=h[l(a,1,-1)];break;default:var u=+a;if(0===u)return r;if(u>p){var d=o(u/10);return 0===d?r:d<=p?void 0===n[d-1]?s(a,1):n[d-1]+s(a,1):r}c=n[u-1]}return void 0===c?"":c}))}},"0cfb":function(t,e,i){"use strict";var n=i("83ab"),r=i("d039"),o=i("cc12");t.exports=!n&&!r((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d26":function(t,e,i){"use strict";var n=i("e330"),r=Error,o=n("".replace),s=function(t){return String(new r(t).stack)}("zxcasd"),a=/\n\s*at [^:]*:[^\n]*/,l=a.test(s);t.exports=function(t,e){if(l&&"string"==typeof t&&!r.prepareStackTrace)while(e--)t=o(t,a,"");return t}},"0d51":function(t,e,i){"use strict";var n=String;t.exports=function(t){try{return n(t)}catch(e){return"Object"}}},"0e7f":function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var n="3.13.5"},"0ed1":function(t,e,i){},"0fd9":function(t,e,i){"use strict";i("14d9"),i("13d5"),i("e9f5"),i("7d54"),i("4b85");var n=i("2b0e"),r=i("d9f7"),o=i("80d2");const s=["sm","md","lg","xl"],a=["start","end","center"];function l(t,e){return s.reduce((i,n)=>(i[t+Object(o["v"])(n)]=e(),i),{})}const c=t=>[...a,"baseline","stretch"].includes(t),u=l("align",()=>({type:String,default:null,validator:c}
1)),h=t=>[...a,"space-between","space-around"].includes(t),d=l("justify",()=>({type:String,default:null,validator:h})),f=t=>[...a,"space-between","space-around","stretch"].includes(t),p=l("alignContent",()=>({type:String,default:null,validator:f})),m={align:Object.keys(u),justify:Object.keys(d),alignContent:Object.keys(p)},g={align:"align",justify:"justify",alignContent:"align-content"};function y(t,e,i){let n=g[t];if(null!=i){if(e){const i=e.replace(t,"");n+="-"+i}return n+="-"+i,n.toLowerCase()}}const _=new Map;e["a"]=n["a"].extend({name:"v-row",functional:!0,props:{tag:{type:String,default:"div"},dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:c},...u,justify:{type:String,default:null,validator:h},...d,alignContent:{type:String,default:null,validator:f},...p},render(t,{props:e,data:i,children:n}){let o="";for(const r in e)o+=String(e[r]);let s=_.get(o);if(!s){let t;for(t in s=[],m)m[t].forEach(i=>{const n=e[i],r=y(t,i,n);r&&s.push(r)});s.push({"no-gutters":e.noGutters,"row--dense":e.dense,["align-"+e.align]:e.align,["justify-"+e.justify]:e.justify,["align-content-"+e.alignContent]:e.alignContent}),_.set(o,s)}return t(e.tag,Object(r["a"])(i,{staticClass:"row",class:s}),n)}})},1034:function(t,e,i){"use strict";i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return l})),i.d(e,"a",(function(){return c})),i.d(e,"d",(function(){return u}));var n=i("4623"),r=i("81c9"),o=i("9a98");function s(t){return"incremental"in t}function a(t){return"hasNext"in t&&"data"in t}function l(t){return s(t)||a(t)}function c(t){return Object(n["a"])(t)&&"payload"in t}function u(t,e){var i=t,n=new o["a"];return s(e)&&Object(r["b"])(e.incremental)&&e.incremental.forEach((function(t){for(var e=t.data,r=t.path,o=r.length-1;o>=0;--o){var s=r[o],a=!isNaN(+s),l=a?[]:{};l[s]=e,e=l}i=n.merge(i,e)})),i}},"10d2":function(t,e,i){"use strict";var n=i("8dd9");e["a"]=n["a"]},"11ed":function(t,e,i){"use strict";i.d(e,"b",(function(){return a}));const{toString:n,hasOwnProperty:r}=Object.prototype,o=Function.prototype.toString,s=new Map;function a(t,e){try{return l(t,e)}finally{s.clear()}}function l(t,e){if(t===e)return!0;const i=n.call(t),s=n.call(e);if(i!==s)return!1;switch(i){case"[object Array]":if(t.length!==e.length)return!1;case"[object Object]":{if(f(t,e))return!0;const i=c(t),n=c(e),o=i.length;if(o!==n.length)return!1;for(let t=0;t<o;++t)if(!r.call(e,i[t]))return!1;for(let r=0;r<o;++r){const n=i[r];if(!l(t[n],e[n]))return!1}return!0}case"[object Error]":return t.name===e.name&&t.message===e.message;case"[object Number]":if(t!==t)return e!==e;case"[object Boolean]":case"[object Date]":return+t===+e;case"[object RegExp]":case"[object String]":return t==""+e;case"[object Map]":case"[object Set]":{if(t.size!==e.size)return!1;if(f(t,e))return!0;const n=t.entries(),r="[object Map]"===i;while(1){const t=n.next();if(t.done)break;const[i,o]=t.value;if(!e.has(i))return!1;if(r&&!l(o,e.get(i)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),e=new Uint8Array(e);case"[object DataView]":{let i=t.byteLength;if(i===e.byteLength)while(i--&&t[i]===e[i]);return-1===i}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const i=o.call(t);return i===o.call(e)&&!d(i,h)}}return!1}function c(t){return Object.keys(t).filter(u,t)}function u(t){return void 0!==this[t]}e["a"]=a;const h="{ [native code] }";function d(t,e){const i=t.length-e.length;return i>=0&&t.indexOf(e,i)===i}function f(t,e){let i=s.get(t);if(i){if(i.has(e))return!0}else s.set(t,i=new Set);return i.add(e),!1}},1212:function(t,e,i){"use strict";var n,r,o=i("cfe9"),s=i("b5db"),a=o.process,l=o.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(n=u.split("."),r=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&s&&(n=s.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/),n&&(r=+n[1]))),t.exports=r},"132d":function(t,e,i){"use strict";i("14d9"),i("e9f5"),i("f665"),i("4804");var n,r=i("7e2b"),o=i("a9ad"),s=i("af2b"),a=i("7560"),l=i("80d2"),c=i("2b0e"),u=i("58df");function h(t){return["fas","far","fal","fab","fad","fak"].some(e=>t.includes(e))}function d(t){return/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4}(function(t){t["xSmall"]="12px",t["small"]="16px",t["default"]="24px",t["medium"]="28px",t["large"]="36px",t["xLarge"]="40px"})(n||(n={}));const f=Object(u["a"])(r["a"],o["a"],s["a"],a["a"]).extend({name:"v-icon",props:{dense:Boolean,disabled:Boolean,left:Boolean,right:Boolean,size:[Number,String],tag:{type:String,required:!1,default:"i"}},computed:{medium(){return!1},hasClickListener(){return Boolean(this.listeners$.click||this.listeners$["!click"])}},methods:{getIcon(){let t="";return this.$slots.default&&(t=this.$slots.default[0].text.trim()),Object(l["u"])(this,t)},getSize(){const t={xSmall:this.xSmall,small:this.small,medium:this.medium,large:this.large,xLarge:this.xLarge},e=Object(l["r"])(t).find(e=>t[e]);return e&&n[e]||Object(l["g"])(this.size)},getDefaultData(){return{staticClass:"v-icon notranslate",class:{"v-icon--disabled":this.disabled,"v-icon--left":this.left,"v-icon--link":this.hasClickListener,"v-icon--right":this.right,"v-icon--dense":this.dense},attrs:{"aria-hidden":!this.hasClickListener,disabled:this.hasClickListener&&this.disabled,type:this.hasClickListener?"button":void 0,...this.attrs$},on:this.listeners$}},getSvgWrapperData(){const t=this.getSize(),e={...this.getDefaultData(),style:t?{fontSize:t,height:t,width:t}:void 0};return this.applyColors(e),e},applyColors(t){t.class={...t.class,...this.themeClasses},this.setTextColor(this.color,t)},renderFontIcon(t,e){const i=[],n=this.getDefaultData();let r="material-icons";const o=t.indexOf("-"),s=o<=-1;s?i.push(t):(r=t.slice(0,o),h(r)&&(r="")),n.class[r]=!0,n.class[t]=!s;const a=this.getSize();return a&&(n.style={fontSize:a}),this.applyColors(n),e(this.hasClickListener?"button":this.tag,n,i)},renderSvgIcon(t,e){const i={class:"v-icon__svg",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":!0}},n=this.getSize();return n&&(i.style={fontSize:n,height:n,width:n}
1),e(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[e("svg",i,[e("path",{attrs:{d:t}})])])},renderSvgIconComponent(t,e){const i={class:{"v-icon__component":!0}},n=this.getSize();n&&(i.style={fontSize:n,height:n,width:n}),this.applyColors(i);const r=t.component;return i.props=t.props,i.nativeOn=i.on,e(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[e(r,i)])}},render(t){const e=this.getIcon();return"string"===typeof e?d(e)?this.renderSvgIcon(e,t):this.renderFontIcon(e,t):this.renderSvgIconComponent(e,t)}});e["a"]=c["a"].extend({name:"v-icon",$_wrapperFor:f,functional:!0,render(t,{data:e,children:i}){let n="";return e.domProps&&(n=e.domProps.textContent||e.domProps.innerHTML||n,delete e.domProps.textContent,delete e.domProps.innerHTML),t(f,e,n?[n]:i)}})},"13b3":function(t,e,i){},"13d2":function(t,e,i){"use strict";var n=i("e330"),r=i("d039"),o=i("1626"),s=i("1a2d"),a=i("83ab"),l=i("5e77").CONFIGURABLE,c=i("8925"),u=i("69f3"),h=u.enforce,d=u.get,f=String,p=Object.defineProperty,m=n("".slice),g=n("".replace),y=n([].join),_=a&&!r((function(){return 8!==p((function(){}),"length",{value:8}).length})),v=String(String).split("String"),b=t.exports=function(t,e,i){"Symbol("===m(f(e),0,7)&&(e="["+g(f(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(e="get "+e),i&&i.setter&&(e="set "+e),(!s(t,"name")||l&&t.name!==e)&&(a?p(t,"name",{value:e,configurable:!0}):t.name=e),_&&i&&s(i,"arity")&&t.length!==i.arity&&p(t,"length",{value:i.arity});try{i&&s(i,"constructor")&&i.constructor?a&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(r){}var n=h(t);return s(n,"source")||(n.source=y(v,"string"==typeof e?e:"")),t};Function.prototype.toString=b((function(){return o(this)&&d(this).source||c(this)}),"toString")},"13d5":function(t,e,i){"use strict";var n=i("23e7"),r=i("d58f").left,o=i("a640"),s=i("1212"),a=i("9adc"),l=!a&&s>79&&s<83,c=l||!o("reduce");n({target:"Array",proto:!0,forced:c},{reduce:function(t){var e=arguments.length;return r(this,t,e,e>1?arguments[1]:void 0)}})},"14d9":function(t,e,i){"use strict";var n=i("23e7"),r=i("7b0b"),o=i("07fa"),s=i("3a34"),a=i("3511"),l=i("d039"),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},h=c||!u();n({target:"Array",proto:!0,arity:1,forced:h},{push:function(t){var e=r(this),i=o(e),n=arguments.length;a(i+n);for(var l=0;l<n;l++)e[i]=arguments[l],i++;return s(e,i),i}})},1626:function(t,e,i){"use strict";var n="object"==typeof document&&document.all;t.exports="undefined"==typeof n&&void 0!==n?function(t){return"function"==typeof t||t===n}:function(t){return"function"==typeof t}},"166a":function(t,e,i){},"169a":function(t,e,i){"use strict";i("e9f5"),i("a732"),i("368e"),i("f665");var n=i("7560"),r=n["a"].extend({name:"v-theme-provider",props:{root:Boolean},computed:{isDark(){return this.root?this.rootIsDark:n["a"].options.computed.isDark.call(this)}},render(){return this.$slots.default&&this.$slots.default.find(t=>!t.isComment&&" "!==t.text)}}),o=i("2b0e"),s=o["a"].extend().extend({name:"delayable",props:{openDelay:{type:[Number,String],default:0},closeDelay:{type:[Number,String],default:0}},data:()=>({openTimeout:void 0,closeTimeout:void 0}),methods:{clearDelay(){clearTimeout(this.openTimeout),clearTimeout(this.closeTimeout)},runDelay(t,e){this.clearDelay();const i=parseInt(this[t+"Delay"],10);this[t+"Timeout"]=setTimeout(e||(()=>{this.isActive={open:!0,close:!1}[t]}),i)}}}),a=i("f2e7"),l=i("58df"),c=i("80d2"),u=i("d9bd");const h=Object(l["a"])(s,a["a"]);var d=h.extend({name:"activatable",props:{activator:{default:null,validator:t=>["string","object"].includes(typeof t)},disabled:Boolean,internalActivator:Boolean,openOnClick:{type:Boolean,default:!0},openOnHover:Boolean,openOnFocus:Boolean},data:()=>({activatorElement:null,activatorNode:[],events:["click","mouseenter","mouseleave","focus"],listeners:{}}),watch:{activator:"resetActivator",openOnFocus:"resetActivator",openOnHover:"resetActivator"},mounted(){const t=Object(c["n"])(this,"activator",!0);t&&["v-slot","normal"].includes(t)&&Object(u["b"])('The activator slot must be bound, try \'<template v-slot:activator="{ on }"><v-btn v-on="on">\'',this),this.addActivatorEvents()},beforeDestroy(){this.removeActivatorEvents()},methods:{addActivatorEvents(){if(!this.activator||this.disabled||!this.getActivator())return;this.listeners=this.genActivatorListeners();const t=Object.keys(this.listeners);for(const e of t)this.getActivator().addEventListener(e,this.listeners[e])},genActivator(){const t=Object(c["m"])(this,"activator",Object.assign(this.getValueProxy(),{on:this.genActivatorListeners(),attrs:this.genActivatorAttributes()}))||[];return this.activatorNode=t,t},genActivatorAttributes(){return{role:this.openOnClick&&!this.openOnHover?"button":void 0,"aria-haspopup":!0,"aria-expanded":String(this.isActive)}},genActivatorListeners(){if(this.disabled)return{};const t={};return this.openOnHover?(t.mouseenter=t=>{this.getActivator(t),this.runDelay("open")},t.mouseleave=t=>{this.getActivator(t),this.runDelay("close")}):this.openOnClick&&(t.click=t=>{const e=this.getActivator(t);e&&e.focus(),t.stopPropagation(),this.isActive=!this.isActive}),this.openOnFocus&&(t.focus=t=>{this.getActivator(t),t.stopPropagation(),this.isActive=!this.isActive}),t},getActivator(t){if(this.activatorElement)return this.activatorElement;let e=null;if(this.activator){const t=this.internalActivator?this.$el:document;e="string"===typeof this.activator?t.querySelector(this.activator):this.activator.$el?this.activator.$el:this.activator}else if(1===this.activatorNode.length||this.activatorNode.length&&!t){const t=this.activatorNode[0].componentInstance;e=t&&t.$options.mixins&&t.$options.mixins.some(t=>t.options&&["activatable","menuable"].includes(t.options.name))?t.getActivator():this.activatorNode[0].elm}else t&&(e=t.currentTarget||t.target);return this.activatorElement=(null===e||void 0===e?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,this.activatorElement},getContentSlot(){return Object(c["m"])(this,"default",this.getValueProxy(),!0)},getValueProxy(){const t=this;return{get value(){return t.isActive},set value(e){t.isActive=e}}},removeActivatorEvents(){if(!this.activator||!this.activatorElement)return;const t=Object.keys(this.listeners);for(const e of t)this.activatorElement.removeEventListener(e,this.listeners[e]);this.listeners={}},resetActivator(){this.removeActivatorEvents(),this.activatorElement=null,this.getActivator(),this.addActivatorEvents()}}});i("14d9");function f(t){const e=[];for(let i=0;i<t.length;i++){const n=t[i];n.isActive&&n.isDependent?e.push(n):e.push(...f(n.$children))}return e}var p=Object(l["a"])().extend({name:"dependent",data(){return{closeDependents:!0,isActive:!1,isDependent:!0}},watch:{isActive(t){if(t)return;const e=this.getOpenDependents();for(let i=0;i<e.length;i++)e[i].isActive=!1}},methods:{getOpenDependents(){return this.closeDependents?f(this.$children):[]},getOpenDependentElements(){const t=[],e=this.getOpenDependents();for(let i=0;i<e.length;i++)t.push(...e[i].getClickableDependentElements());return t},getClickableDependentElements(){const t=[this.$el];return this.$refs.content&&t.push(this.$refs.content),this.overlay&&t.push(this.overlay.$el),t.push(...this.getOpenDependentElements()),t}}}),m=(i("7d54"),i("9d65"));function g(t){const e=typeof t;return"boolean"===e||"string"===e||t.nodeType===Node.ELEMENT_NODE}function y(t){t.forEach(t=>{t.elm&&t.elm.parentNode&&t.elm.parentNode.removeChild(t.elm)})}var _=Object(l["a"])(m["a"]).extend({name:"detachable",props:{attach:{default:!1,validator:g},contentClass:{type:String,default:""}},data:()=>({activatorNode:null,hasDetached:!1}),watch:{attach(){this.hasDetached=!1,this.initDetach()},hasContent(){this.$nextTick(this.initDetach)}},beforeMount(){this.$nextTick(()=>
1{if(this.activatorNode){const t=Array.isArray(this.activatorNode)?this.activatorNode:[this.activatorNode];t.forEach(t=>{if(!t.elm)return;if(!this.$el.parentNode)return;const e=this.$el===this.$el.parentNode.firstChild?this.$el:this.$el.nextSibling;this.$el.parentNode.insertBefore(t.elm,e)})}})},mounted(){this.hasContent&&this.initDetach()},deactivated(){this.isActive=!1},beforeDestroy(){this.$refs.content&&this.$refs.content.parentNode&&this.$refs.content.parentNode.removeChild(this.$refs.content)},destroyed(){if(this.activatorNode){const t=Array.isArray(this.activatorNode)?this.activatorNode:[this.activatorNode];if(this.$el.isConnected){const e=new MutationObserver(i=>{i.some(t=>Array.from(t.removedNodes).includes(this.$el))&&(e.disconnect(),y(t))});e.observe(this.$el.parentNode,{subtree:!1,childList:!0})}else y(t)}},methods:{getScopeIdAttrs(){const t=Object(c["l"])(this.$vnode,"context.$options._scopeId");return t&&{[t]:""}},initDetach(){if(this._isDestroyed||!this.$refs.content||this.hasDetached||""===this.attach||!0===this.attach||"attach"===this.attach)return;let t;t=!1===this.attach?document.querySelector("[data-app]"):"string"===typeof this.attach?document.querySelector(this.attach):this.attach,t?(t.appendChild(this.$refs.content),this.hasDetached=!0):Object(u["c"])("Unable to locate target "+(this.attach||"[data-app]"),this)}}}),v=(i("3c93"),i("a9ad")),b=Object(l["a"])(v["a"],n["a"],a["a"]).extend({name:"v-overlay",props:{absolute:Boolean,color:{type:String,default:"#212121"},dark:{type:Boolean,default:!0},opacity:{type:[Number,String],default:.46},value:{default:!0},zIndex:{type:[Number,String],default:5}},computed:{__scrim(){const t=this.setBackgroundColor(this.color,{staticClass:"v-overlay__scrim",style:{opacity:this.computedOpacity}});return this.$createElement("div",t)},classes(){return{"v-overlay--absolute":this.absolute,"v-overlay--active":this.isActive,...this.themeClasses}},computedOpacity(){return Number(this.isActive?this.opacity:0)},styles(){return{zIndex:this.zIndex}}},methods:{genContent(){return this.$createElement("div",{staticClass:"v-overlay__content"},Object(c["m"])(this))}},render(t){const e=[this.__scrim];return this.isActive&&e.push(this.genContent()),t("div",{staticClass:"v-overlay",on:this.$listeners,class:this.classes,style:this.styles},e)}}),x=b,w=o["a"].extend().extend({name:"overlayable",props:{hideOverlay:Boolean,overlayColor:String,overlayOpacity:[Number,String]},data(){return{animationFrame:0,overlay:null}},watch:{hideOverlay(t){this.isActive&&(t?this.removeOverlay():this.genOverlay())}},beforeDestroy(){this.removeOverlay()},methods:{createOverlay(){const t=new x({propsData:{absolute:this.absolute,value:!1,color:this.overlayColor,opacity:this.overlayOpacity}});t.$mount();const e=this.absolute?this.$el.parentNode:document.querySelector("[data-app]");e&&e.insertBefore(t.$el,e.firstChild),this.overlay=t},genOverlay(){if(this.hideScroll(),!this.hideOverlay)return this.overlay||this.createOverlay(),this.animationFrame=requestAnimationFrame(()=>{this.overlay&&(void 0!==this.activeZIndex?this.overlay.zIndex=String(this.activeZIndex-1):this.$el&&(this.overlay.zIndex=Object(c["o"])(this.$el)),this.overlay.value=!0)}),!0},removeOverlay(t=!0){this.overlay&&(Object(c["a"])(this.overlay.$el,"transitionend",()=>{this.overlay&&this.overlay.$el&&this.overlay.$el.parentNode&&!this.overlay.value&&!this.isActive&&(this.overlay.$el.parentNode.removeChild(this.overlay.$el),this.overlay.$destroy(),this.overlay=null)}),cancelAnimationFrame(this.animationFrame),this.overlay.value=!1),t&&this.showScroll()},scrollListener(t){if("key"in t){if(["INPUT","TEXTAREA","SELECT"].includes(t.target.tagName)||t.target.isContentEditable)return;const e=[c["q"].up,c["q"].pageup],i=[c["q"].down,c["q"].pagedown];if(e.includes(t.keyCode))t.deltaY=-1;else{if(!i.includes(t.keyCode))return;t.deltaY=1}}(t.target===this.overlay||"keydown"!==t.type&&t.target===document.body||this.checkPath(t))&&t.preventDefault()},hasScrollbar(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return(["auto","scroll"].includes(e.overflowY)||"SELECT"===t.tagName)&&t.scrollHeight>t.clientHeight||["auto","scroll"].includes(e.overflowX)&&t.scrollWidth>t.clientWidth},shouldScroll(t,e){if(t.hasAttribute("data-app"))return!1;const i=e.shiftKey||e.deltaX?"x":"y",n="y"===i?e.deltaY:e.deltaX||e.deltaY;let r,o;"y"===i?(r=0===t.scrollTop,o=t.scrollTop+t.clientHeight===t.scrollHeight):(r=0===t.scrollLeft,o=t.scrollLeft+t.clientWidth===t.scrollWidth);const s=n<0,a=n>0;return!(r||!s)||(!(o||!a)||!(!r&&!o||!t.parentNode)&&this.shouldScroll(t.parentNode,e))},isInside(t,e){return t===e||null!==t&&t!==document.body&&this.isInside(t.parentNode,e)},checkPath(t){const e=Object(c["f"])(t);if("keydown"===t.type&&e[0]===document.body){const e=this.$refs.dialog,i=window.getSelection().anchorNode;return!(e&&this.hasScrollbar(e)&&this.isInside(i,e))||!this.shouldScroll(e,t)}for(let i=0;i<e.length;i++){const n=e[i];if(n===document)return!0;
1if(n===document.documentElement)return!0;if(n===this.$refs.content)return!0;if(this.hasScrollbar(n))return!this.shouldScroll(n,t)}return!0},hideScroll(){this.$vuetify.breakpoint.smAndDown?document.documentElement.classList.add("overflow-y-hidden"):(Object(c["b"])(window,"wheel",this.scrollListener,{passive:!1}),window.addEventListener("keydown",this.scrollListener))},showScroll(){document.documentElement.classList.remove("overflow-y-hidden"),window.removeEventListener("wheel",this.scrollListener),window.removeEventListener("keydown",this.scrollListener)}}}),E=o["a"].extend({name:"returnable",props:{returnValue:null},data:()=>({isActive:!1,originalValue:null}),watch:{isActive(t){t?this.originalValue=this.returnValue:this.$emit("update:return-value",this.originalValue)}},methods:{save(t){this.originalValue=t,setTimeout(()=>{this.isActive=!1})}}}),T=o["a"].extend().extend({name:"stackable",data(){return{stackElement:null,stackExclude:null,stackMinZIndex:0,isActive:!1}},computed:{activeZIndex(){if("undefined"===typeof window)return 0;const t=this.stackElement||this.$refs.content,e=this.isActive?this.getMaxZIndex(this.stackExclude||[t])+2:Object(c["o"])(t);return null==e?e:parseInt(e)}},methods:{getMaxZIndex(t=[]){const e=this.$el,i=[this.stackMinZIndex,Object(c["o"])(e)],n=[...document.getElementsByClassName("v-menu__content--active"),...document.getElementsByClassName("v-dialog__content--active")];for(let r=0;r<n.length;r++)t.includes(n[r])||i.push(Object(c["o"])(n[r]));return Math.max(...i)}}}),S=i("a293");const k=Object(l["a"])(p,_,w,E,T,d);e["a"]=k.extend({name:"v-dialog",directives:{ClickOutside:S["a"]}
1,props:{dark:Boolean,disabled:Boolean,fullscreen:Boolean,light:Boolean,maxWidth:[String,Number],noClickAnimation:Boolean,origin:{type:String,default:"center center"},persistent:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,transition:{type:[String,Boolean],default:"dialog-transition"},width:[String,Number]},data(){return{activatedBy:null,animate:!1,animateTimeout:-1,stackMinZIndex:200,previousActiveElement:null}},computed:{classes(){return{[("v-dialog "+this.contentClass).trim()]:!0,"v-dialog--active":this.isActive,"v-dialog--persistent":this.persistent,"v-dialog--fullscreen":this.fullscreen,"v-dialog--scrollable":this.scrollable,"v-dialog--animated":this.animate}},contentClasses(){return{"v-dialog__content":!0,"v-dialog__content--active":this.isActive}},hasActivator(){return Boolean(!!this.$slots.activator||!!this.$scopedSlots.activator)}},watch:{isActive(t){var e;t?(this.show(),this.hideScroll()):(this.removeOverlay(),this.unbind(),null===(e=this.previousActiveElement)||void 0===e||e.focus())},fullscreen(t){this.isActive&&(t?(this.hideScroll(),this.removeOverlay(!1)):(this.showScroll(),this.genOverlay()))}},created(){this.$attrs.hasOwnProperty("full-width")&&Object(u["d"])("full-width",this)},beforeMount(){this.$nextTick(()=>{this.isBooted=this.isActive,this.isActive&&this.show()})},beforeDestroy(){"undefined"!==typeof window&&this.unbind()},methods:{animateClick(){this.animate=!1,this.$nextTick(()=>{this.animate=!0,window.clearTimeout(this.animateTimeout),this.animateTimeout=window.setTimeout(()=>this.animate=!1,150)})},closeConditional(t){const e=t.target;return!(this._isDestroyed||!this.isActive||this.$refs.content.contains(e)||this.overlay&&e&&!this.overlay.$el.contains(e))&&this.activeZIndex>=this.getMaxZIndex()},hideScroll(){this.fullscreen?document.documentElement.classList.add("overflow-y-hidden"):w.options.methods.hideScroll.call(this)},show(){!this.fullscreen&&!this.hideOverlay&&this.genOverlay(),this.$nextTick(()=>{this.$nextTick(()=>{var t,e;(null===(t=this.$refs.dialog)||void 0===t?void 0:t.contains(document.activeElement))||(this.previousActiveElement=document.activeElement,null===(e=this.$refs.dialog)||void 0===e||e.focus()),this.bind()})})},bind(){window.addEventListener("focusin",this.onFocusin)},unbind(){window.removeEventListener("focusin",this.onFocusin)},onClickOutside(t){this.$emit("click:outside",t),this.persistent?this.noClickAnimation||this.animateClick():this.isActive=!1},onKeydown(t){if(t.keyCode===c["q"].esc&&!this.getOpenDependents().length)if(this.persistent)this.noClickAnimation||this.animateClick();else{this.isActive=!1;const t=this.getActivator();this.$nextTick(()=>t&&t.focus())}this.$emit("keydown",t)},onFocusin(t){if(!t||!this.retainFocus)return;const e=t.target;if(e&&this.$refs.dialog&&![document,this.$refs.dialog].includes(e)&&!this.$refs.dialog.contains(e)&&this.activeZIndex>=this.getMaxZIndex()&&!this.getOpenDependentElements().some(t=>t.contains(e))){const t=this.$refs.dialog.querySelectorAll('button, [href], input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])'),e=[...t].find(t=>!t.hasAttribute("disabled")&&!t.matches('[tabindex="-1"]'));e&&e.focus()}},genContent(){return this.showLazyContent(()=>[this.$createElement(r,{props:{root:!0,light:this.light,dark:this.dark}},[this.$createElement("div",{class:this.contentClasses,attrs:{role:"dialog","aria-modal":this.hideOverlay?void 0:"true",...this.getScopeIdAttrs()},on:{keydown:this.onKeydown},style:{zIndex:this.activeZIndex},ref:"content"},[this.genTransition()])])])},genTransition(){const t=this.genInnerContent();return this.transition?this.$createElement("transition",{props:{name:this.transition,origin:this.origin,appear:!0}},[t]):t},genInnerContent(){const t={class:this.classes,attrs:{tabindex:this.isActive?0:void 0},ref:"dialog",directives:[{name:"click-outside",value:{handler:this.onClickOutside,closeConditional:this.closeConditional,include:this.getOpenDependentElements}},{name:"show",value:this.isActive}],style:{transformOrigin:this.origin}};return this.fullscreen||(t.style={...t.style,maxWidth:Object(c["g"])(this.maxWidth),width:Object(c["g"])(this.width)}),this.$createElement("div",t,this.getContentSlot())}},render(t){return t("div",{staticClass:"v-dialog__container",class:{"v-dialog__container--attached":""===this.attach||!0===this.attach||"attach"===this.attach}},[this.genActivator(),this.genContent()])}})}
vendor: 5,986 bytes, line 1
1,"173f":function(t,e,i){},1787:function(t,e,i){"use strict";var n=i("861d");t.exports=function(t){return n(t)||null===t}},"19aa":function(t,e,i){"use strict";var n=i("3a9b"),r=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new r("Incorrect invocation")}},"1a2d":function(t,e,i){"use strict";var n=i("e330"),r=i("7b0b"),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(r(t),e)}},"1ae6":function(t,e,i){},"1b2c":function(t,e,i){},"1be4":function(t,e,i){"use strict";var n=i("d066");t.exports=n("document","documentElement")},"1c5e":function(t,e,i){"use strict";i.d(e,"a",(function(){return x}));var n=i("04b4");function r(t){return`"${t.replace(o,s)}"`}const o=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function s(t){return a[t.charCodeAt(0)]}const a=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var l=i("2f6c");function c(t){return Object(l["b"])(t,h)}const u=80,h={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>d(t.definitions,"\n\n")},OperationDefinition:{leave(t){const e=p("(",d(t.variableDefinitions,", "),")"),i=d([t.operation,d([t.name,e]),d(t.directives," ")]," ");return("query"===i?"":i+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:e,defaultValue:i,directives:n})=>t+": "+e+p(" = ",i)+p(" ",d(n," "))},SelectionSet:{leave:({selections:t})=>f(t)},Field:{leave({alias:t,name:e,arguments:i,directives:n,selectionSet:r}){const o=p("",t,": ")+e;let s=o+p("(",d(i,", "),")");return s.length>u&&(s=o+p("(\n",m(d(i,"\n")),"\n)")),d([s,d(n," "),r]," ")}},Argument:{leave:({name:t,value:e})=>t+": "+e},FragmentSpread:{leave:({name:t,directives:e})=>"..."+t+p(" ",d(e," "))},InlineFragment:{leave:({typeCondition:t,directives:e,selectionSet:i})=>d(["...",p("on ",t),d(e," "),i]," ")},FragmentDefinition:{leave:({name:t,typeCondition:e,variableDefinitions:i,directives:n,selectionSet:r})=>`fragment ${t}${p("(",d(i,", "),")")} on ${e} ${p("",d(n," ")," ")}`+r},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:e})=>e?Object(n["b"])(t):r(t)},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+d(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+d(t,", ")+"}"},ObjectField:{leave:({name:t,value:e})=>t+": "+e},Directive:{leave:({name:t,arguments:e})=>"@"+t+p("(",d(e,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:e,operationTypes:i})=>p("",t,"\n")+d(["schema",d(e," "),f(i)]," ")},OperationTypeDefinition:{leave:({operation:t,type:e})=>t+": "+e},ScalarTypeDefinition:{leave:({description:t,name:e,directives:i})=>p("",t,"\n")+d(["scalar",e,d(i," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:e,interfaces:i,directives:n,fields:r})=>p("",t,"\n")+d(["type",e,p("implements ",d(i," & ")),d(n," "),f(r)]," ")},FieldDefinition:{leave:({description:t,name:e,arguments:i,type:n,directives:r})=>p("",t,"\n")+e+(g(i)?p("(\n",m(d(i,"\n")),"\n)"):p("(",d(i,", "),")"))+": "+n+p(" ",d(r," "))},InputValueDefinition:{leave:({description:t,name:e,type:i,defaultValue:n,directives:r})=>p("",t,"\n")+d([e+": "+i,p("= ",n),d(r," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:e,interfaces:i,directives:n,fields:r})=>p("",t,"\n")+d(["interface",e,p("implements ",d(i," & ")),d(n," "),f(r)]," ")},UnionTypeDefinition:{leave:({description:t,name:e,directives:i,types:n})=>p("",t,"\n")+d(["union",e,d(i," "),p("= ",d(n," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:e,directives:i,values:n})=>p("",t,"\n")+d(["enum",e,d(i," "),f(n)]," ")},EnumValueDefinition:{leave:({description:t,name:e,directives:i})=>p("",t,"\n")+d([e,d(i," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:e,directives:i,fields:n})=>p("",t,"\n")+d(["input",e,d(i," "),f(n)]," ")},DirectiveDefinition:{leave:({description:t,name:e,arguments:i,repeatable:n,locations:r})=>p("",t,"\n")+"directive @"+e+(g(i)?p("(\n",m(d(i,"\n")),"\n)"):p("(",d(i,", "),")"))+(n?" repeatable":"")+" on "+d(r," | ")},SchemaExtension:{leave:({directives:t,operationTypes:e})=>d(["extend schema",d(t," "),f(e)]," ")},ScalarTypeExtension:{leave:({name:t,directives:e})=>d(["extend scalar",t,d(e," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:e,directives:i,fields:n})=>d(["extend type",t,p("implements ",d(e," & ")),d(i," "),f(n)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:e,directives:i,fields:n})=>d(["extend interface",t,p("implements ",d(e," & ")),d(i," "),f(n)]," ")},UnionTypeExtension:{leave:({name:t,directives:e,types:i})=>d(["extend union",t,d(e," "),p("= ",d(i," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:e,values:i})=>d(["extend enum",t,d(e," "),f(i)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:e,fields:i})=>d(["extend input",t,d(e," "),f(i)]," ")}};function d(t,e=""){var i;return null!==(i=null===t||void 0===t?void 0:t.filter(t=>t).join(e))&&void 0!==i?i:""}function f(t){return p("{\n",m(d(t,"\n")),"\n}")}
1function p(t,e,i=""){return null!=e&&""!==e?t+e+i:""}function m(t){return p(" ",t.replace(/\n/g,"\n "))}function g(t){var e;return null!==(e=null===t||void 0===t?void 0:t.some(t=>t.includes("\n")))&&void 0!==e&&e}var y,_=i("841e"),v=i("876b"),b=i("f45e"),x=Object.assign((function(t){var e=y.get(t);return e||(e=c(t),y.set(t,e)),e}),{reset:function(){y=new _["b"](v["a"].print||2e3)}});x.reset(),!1!==globalThis.__DEV__&&Object(b["d"])("print",(function(){return y?y.size:0}))},"1c87":function(t,e,i){"use strict";var n=i("2b0e"),r=i("5607"),o=i("80d2");e["a"]=n["a"].extend({name:"routable",directives:{Ripple:r["a"]},props:{activeClass:String,append:Boolean,disabled:Boolean,exact:{type:Boolean,default:void 0},exactPath:Boolean,exactActiveClass:String,link:Boolean,href:[String,Object],to:[String,Object],nuxt:Boolean,replace:Boolean,ripple:{type:[Boolean,Object],default:null},tag:String,target:String},data:()=>({isActive:!1,proxyClass:""}),computed:{classes(){const t={};return this.to||(this.activeClass&&(t[this.activeClass]=this.isActive),this.proxyClass&&(t[this.proxyClass]=this.isActive)),t},computedRipple(){var t;return null!==(t=this.ripple)&&void 0!==t?t:!this.disabled&&this.isClickable},isClickable(){return!this.disabled&&Boolean(this.isLink||this.$listeners.click||this.$listeners["!click"]||this.$attrs.tabindex)},isLink(){return this.to||this.href||this.link},styles:()=>({})},watch:{$route:"onRouteChange"},mounted(){this.onRouteChange()},methods:{generateRouteLink(){let t,e=this.exact;const i={attrs:{tabindex:"tabindex"in this.$attrs?this.$attrs.tabindex:void 0},class:this.classes,style:this.styles,props:{},directives:[{name:"ripple",value:this.computedRipple}],[this.to?"nativeOn":"on"]:{...this.$listeners,..."click"in this?{click:this.click}:void 0},ref:"link"};if("undefined"===typeof this.exact&&(e="/"===this.to||this.to===Object(this.to)&&"/"===this.to.path),this.to){let n=this.activeClass,r=this.exactActiveClass||n;this.proxyClass&&(n=`${n} ${this.proxyClass}`.trim(),r=`${r} ${this.proxyClass}`.trim()),t=this.nuxt?"nuxt-link":"router-link",Object.assign(i.props,{to:this.to,exact:e,exactPath:this.exactPath,activeClass:n,exactActiveClass:r,append:this.append,replace:this.replace})}else t=(this.href?"a":this.tag)||"div","a"===t&&this.href&&(i.attrs.href=this.href);return this.target&&(i.attrs.target=this.target),{tag:t,data:i}},onRouteChange(){if(!this.to||!this.$refs.link||!this.$route)return;const t=`${this.activeClass||""} ${this.proxyClass||""}`.trim(),e=`${this.exactActiveClass||""} ${this.proxyClass||""}`.trim()||t,i="_vnode.data.class."+(this.exact?e:t);this.$nextTick(()=>{!Object(o["l"])(this.$refs.link,i)===this.isActive&&this.toggle()})},toggle(){this.isActive=!this.isActive}}})},"1d1f":function(t,e,i){"use strict";i.d(e,"a",(function(){return K}));var n,r=[],o=function(){return r.some((function(t){return t.activeTargets.length>0}))},s=function(){return r.some((function(t){return t.skippedTargets.length>0}))},a="ResizeObserver loop completed with undelivered notifications.",l=function(){var t;"function"===typeof ErrorEvent?t=new ErrorEvent("error",{message:a}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=a),window.dispatchEvent(t)};(function(t){t["BORDER_BOX"]="border-box",t["CONTENT_BOX"]="content-box",t["DEVICE_PIXEL_CONTENT_BOX"]="device-pixel-content-box"})(n||(n={}));var c,u=function(t){return Object.freeze(t)},h=function(){function t(t,e){this.inlineSize=t,this.blockSize=e,u(this)}return t}(),d=function(){function t(t,e,i,n){return this.x=t,this.y=e,this.width=i,this.height=n,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,u(this)}return t.prototype.toJSON=function(){var t=this,e=t.x,i=t.y,n=t.top,r=t.right,o=t.bottom,s=t.left,a=t.width,l=t.height;return{x:e,y:i,top:n,right:r,bottom:o,left:s,width:a,height:l}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),f=function(t){return t instanceof SVGElement&&"getBBox"in t},p=function(t){if(f(t)){var e=t.getBBox(),i=e.width,n=e.height;return!i&&!n}var r=t,o=r.offsetWidth,s=r.offsetHeight;return!(o||s||t.getClientRects().length)},m=function(t){var e;if(t instanceof Element)return!0;var i=null===(e=null===t||void 0===t?void 0:t.ownerDocument)||void 0===e?void 0:e.defaultView;return!!(i&&t instanceof i.Element)},g=function(t){switch(t.tagName){case"INPUT":if("image"!==t.type)break;
vendor: 4,132 bytes, line 1
1case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},y="undefined"!==typeof window?window:{},_=new WeakMap,v=/auto|scroll/,b=/^tb|vertical/,x=/msie|trident/i.test(y.navigator&&y.navigator.userAgent),w=function(t){return parseFloat(t||"0")},E=function(t,e,i){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=!1),new h((i?e:t)||0,(i?t:e)||0)},T=u({devicePixelContentBoxSize:E(),borderBoxSize:E(),contentBoxSize:E(),contentRect:new d(0,0,0,0)}),S=function(t,e){if(void 0===e&&(e=!1),_.has(t)&&!e)return _.get(t);if(p(t))return _.set(t,T),T;var i=getComputedStyle(t),n=f(t)&&t.ownerSVGElement&&t.getBBox(),r=!x&&"border-box"===i.boxSizing,o=b.test(i.writingMode||""),s=!n&&v.test(i.overflowY||""),a=!n&&v.test(i.overflowX||""),l=n?0:w(i.paddingTop),c=n?0:w(i.paddingRight),h=n?0:w(i.paddingBottom),m=n?0:w(i.paddingLeft),g=n?0:w(i.borderTopWidth),y=n?0:w(i.borderRightWidth),S=n?0:w(i.borderBottomWidth),k=n?0:w(i.borderLeftWidth),O=m+c,A=l+h,C=k+y,I=g+S,M=a?t.offsetHeight-I-t.clientHeight:0,P=s?t.offsetWidth-C-t.clientWidth:0,D=r?O+C:0,L=r?A+I:0,R=n?n.width:w(i.width)-D-P,z=n?n.height:w(i.height)-L-M,j=R+O+P+C,B=z+A+M+I,F=u({devicePixelContentBoxSize:E(Math.round(R*devicePixelRatio),Math.round(z*devicePixelRatio),o),borderBoxSize:E(j,B,o),contentBoxSize:E(R,z,o),contentRect:new d(m,l,R,z)});return _.set(t,F),F},k=function(t,e,i){var r=S(t,i),o=r.borderBoxSize,s=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(e){case n.DEVICE_PIXEL_CONTENT_BOX:return a;case n.BORDER_BOX:return o;default:return s}},O=function(){function t(t){var e=S(t);this.target=t,this.contentRect=e.contentRect,this.borderBoxSize=u([e.borderBoxSize]),this.contentBoxSize=u([e.contentBoxSize]),this.devicePixelContentBoxSize=u([e.devicePixelContentBoxSize])}return t}(),A=function(t){if(p(t))return 1/0;var e=0,i=t.parentNode;while(i)e+=1,i=i.parentNode;return e},C=function(){var t=1/0,e=[];r.forEach((function(i){if(0!==i.activeTargets.length){var n=[];i.activeTargets.forEach((function(e){var i=new O(e.target),r=A(e.target);n.push(i),e.lastReportedSize=k(e.target,e.observedBox),r<t&&(t=r)})),e.push((function(){i.callback.call(i.observer,n,i.observer)})),i.activeTargets.splice(0,i.activeTargets.length)}}));for(var i=0,n=e;i<n.length;i++){var o=n[i];o()}return t},I=function(t){r.forEach((function(e){e.activeTargets.splice(0,e.activeTargets.length),e.skippedTargets.splice(0,e.skippedTargets.length),e.observationTargets.forEach((function(i){i.isActive()&&(A(i.target)>t?e.activeTargets.push(i):e.skippedTargets.push(i))}))}))},M=function(){var t=0;I(t);while(o())t=C(),I(t);return s()&&l(),t>0},P=[],D=function(){return P.splice(0).forEach((function(t){return t()}))},L=function(t){if(!c){var e=0,i=document.createTextNode(""),n={characterData:!0};new MutationObserver((function(){return D()})).observe(i,n),c=function(){i.textContent="".concat(e?e--:e++)}}P.push(t),c()},R=function(t){L((function(){requestAnimationFrame(t)}))},z=0,j=function(){return!!z},B=250,F={attributes:!0,characterData:!0,childList:!0,subtree:!0},N=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],V=function(t){return void 0===t&&(t=0),Date.now()+t},$=!1,U=function(){function t(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return t.prototype.run=function(t){var e=this;if(void 0===t&&(t=B),!$){$=!0;var i=V(t);R((function(){var n=!1;try{n=M()}finally{if($=!1,t=i-V(),!j())return;n?e.run(1e3):t>0?e.run(t):e.start()}}))}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var t=this,e=function(){return t.observer&&t.observer.observe(document.body,F)};document.body?e():y.addEventListener("DOMContentLoaded",e)},t.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),N.forEach((function(e){return y.addEventListener(e,t.listener,!0)})))},t.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),N.forEac
1h((function(e){return y.removeEventListener(e,t.listener,!0)})),this.stopped=!0)},t}(),q=new U,G=function(t){!z&&t>0&&q.start(),z+=t,!z&&q.stop()},W=function(t){return!f(t)&&!g(t)&&"inline"===getComputedStyle(t).display},Z=function(){function t(t,e){this.target=t,this.observedBox=e||n.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var t=k(this.target,this.observedBox,!0);return W(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},t}(),H=function(){function t(t,e){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=e}return t}(),X=new WeakMap,Q=function(t,e){for(var i=0;i<t.length;i+=1)if(t[i].target===e)return i;return-1},Y=function(){function t(){}return t.connect=function(t,e){var i=new H(t,e);X.set(t,i)},t.observe=function(t,e,i){var n=X.get(t),o=0===n.observationTargets.length;Q(n.observationTargets,e)<0&&(o&&r.push(n),n.observationTargets.push(new Z(e,i&&i.box)),G(1),q.schedule())},t.unobserve=function(t,e){var i=X.get(t),n=Q(i.observationTargets,e),o=1===i.observationTargets.length;n>=0&&(o&&r.splice(r.indexOf(i),1),i.observationTargets.splice(n,1),G(-1))},t.disconnect=function(t){var e=this,i=X.get(t);i.observationTargets.slice().forEach((function(i){return e.unobserve(t,i.target)})),i.activeTargets.splice(0,i.activeTargets.length)},t}(),K=function(){function t(t){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!==typeof t)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Y.connect(this,t)}return t.prototype.observe=function(t,e){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!m(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Y.observe(this,t,e)},t.prototype.unobserve=function(t){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!m(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Y.unobserve(this,t)},t.prototype.disconnect=function(){Y.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}()},"1d80":function(t,e,i){"use strict";var n=i("7234"),r=TypeError;t.exports=function(t){if(n(t))throw new r("Can't call method on "+t);return t}},"1e5a":function(t,e,i){"use strict";var n=i("23e7"),r=i("9961"),o=i("dad2");n({target:"Set",proto:!0,real:!0,forced:!o("symmetricDifference")},{symmetricDifference:r})},"1e70":function(t,e,i){"use strict";var n=i("23e7"),r=i("a5f7"),o=i("dad2"),s=!o("difference",(function(t){return 0===t.size}));n({target:"Set",proto:!0,real:!0,forced:s},{difference:r})},"1f09":function(t,e,i){},"1fb5":function(t,e,i){"use strict";e.byteLength=u,e.toByteArray=d,e.fromByteArray=m;for(var n=[],r=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=s.length;a<l;++a)n[a]=s[a],r[s.charCodeAt(a)]=a;function c(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");-1===i&&(i=e);var n=i===e?0:4-i%4;return[i,n]}function u(t){var e=c(t),i=e[0],n=e[1];return 3*(i+n)/4-n}function h(t,e,i){return 3*(e+i)/4-i}function d(t){var e,i,n=c(t),s=n[0],a=n[1],l=new o(h(t,s,a)),u=0,d=a>0?s-4:s;for(i=0;i<d;i+=4)e=r[t.charCodeAt(i)]<<18|r[t.charCodeAt(i+1)]<<12|r[t.charCodeAt(i+2)]<<6|r[t.charCodeAt(i+3)],l[u++]=e>>16&255,l[u++]=e>>8&255,l[u++]=255&e;return 2===a&&(e=r[t.charCodeAt(i)]<<2|r[t.charCodeAt(i+1)]>>4,l[u++]=255&e),1===a&&(e=r[t.charCodeAt(i)]<<10|r[t.charCodeAt(i+1)]<<4|r[t.charCodeAt(i+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e),l}function f(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}
1function p(t,e,i){for(var n,r=[],o=e;o<i;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),r.push(f(n));return r.join("")}function m(t){for(var e,i=t.length,r=i%3,o=[],s=16383,a=0,l=i-r;a<l;a+=s)o.push(p(t,a,a+s>l?l:a+s));return 1===r?(e=t[i-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===r&&(e=(t[i-2]<<8)+t[i-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},2266:function(t,e,i){"use strict";var n=i("0366"),r=i("c65b"),o=i("825a"),s=i("0d51"),a=i("e95a"),l=i("07fa"),c=i("3a9b"),u=i("9a1f"),h=i("35a1"),d=i("2a62"),f=TypeError,p=function(t,e){this.stopped=t,this.result=e},m=p.prototype;t.exports=function(t,e,i){var g,y,_,v,b,x,w,E=i&&i.that,T=!(!i||!i.AS_ENTRIES),S=!(!i||!i.IS_RECORD),k=!(!i||!i.IS_ITERATOR),O=!(!i||!i.INTERRUPTED),A=n(e,E),C=function(t){return g&&d(g,"normal",t),new p(!0,t)},I=function(t){return T?(o(t),O?A(t[0],t[1],C):A(t[0],t[1])):O?A(t,C):A(t)};if(S)g=t.iterator;else if(k)g=t;else{if(y=h(t),!y)throw new f(s(t)+" is not iterable");if(a(y)){for(_=0,v=l(t);v>_;_++)if(b=I(t[_]),b&&c(m,b))return b;return new p(!1)}g=u(t,y)}x=S?t.next:g.next;while(!(w=r(x,g)).done){try{b=I(w.value)}catch(M){d(g,"throw",M)}if("object"==typeof b&&b&&c(m,b))return b}return new p(!1)}},"22da":function(t,e,i){"use strict";var n=i("490a");e["a"]=n["a"]},2335:function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},"23cb":function(t,e,i){"use strict";var n=i("5926"),r=Math.max,o=Math.min;t.exports=function(t,e){var i=n(t);return i<0?r(i+e,0):o(i,e)}},"23e7":function(t,e,i){"use strict";var n=i("cfe9"),r=i("06cf").f,o=i("9112"),s=i("cb2d"),a=i("6374"),l=i("e893"),c=i("94ca");t.exports=function(t,e){var i,u,h,d,f,p,m=t.target,g=t.global,y=t.stat;if(u=g?n:y?n[m]||a(m,{}):n[m]&&n[m].prototype,u)for(h in e){if(f=e[h],t.dontCallGetSet?(p=r(u,h),d=p&&p.value):d=u[h],i=c(g?h:m+(y?".":"#")+h,t.forced),!i&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(t.sham||d&&d.sham)&&o(f,"sham",!0),s(u,h,f,t)}}},"241c":function(t,e,i){"use strict";var n=i("ca84"),r=i("7839"),o=r.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},"24b2":function(t,e,i){"use strict";var n=i("80d2"),r=i("2b0e");e["a"]=r["a"].extend({name:"measurable",props:{height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},computed:{measurableStyles(){const t={},e=Object(n["g"])(this.height),i=Object(n["g"])(this.minHeight),r=Object(n["g"])(this.minWidth),o=Object(n["g"])(this.maxHeight),s=Object(n["g"])(this.maxWidth),a=Object(n["g"])(this.width);return e&&(t.height=e),i&&(t.minHeight=i),r&&(t.minWidth=r),o&&(t.maxHeight=o),s&&(t.maxWidth=s),a&&(t.width=a),t}}})},"25a8":function(t,e,i){},"271a":function(t,e,i){"use strict";var n=i("cb2d"),r=i("e330"),o=i("577e"),s=i("d6d6"),a=URLSearchParams,l=a.prototype,c=r(l.getAll),u=r(l.has),h=new a("a=1");!h.has("a",2)&&h.has("a",void 0)||n(l,"has",(function(t){var e=arguments.length,i=e<2?void 0:arguments[1];if(e&&void 0===i)return u(this,t);var n=c(this,t);s(e,1);var r=o(i),a=0;while(a<n.length)if(n[a++]===r)return!0;return!1}),{enumerable:!0,unsafe:!0})},2877:function(t,e,i){"use strict";function n(t,e,i,n,r,o,s,a){var l,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=i,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=l):r&&(l=a?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:c}}i.d(e,"a",(function(){return n}))},"297c":function(t,e,i){"use strict";var n=i("2b0e"),r=i("37c6"),o=i("80d2");e["a"]=n["a"].extend().extend({name:"loadable",props:{loading:{type:[Boolean,String],default:!1},loaderHeight:{type:[Number,String],default:2}},methods:{genProgress(){return!1===this.loading?null:Object(o["m"])(this,"progress")||this.$createElement(r["a"],{props:{absolute:!0,color:!0===this.loading||""===this.loading?this.color||"primary":this.loading,height:this.loaderHeight,indeterminate:!0}})}}})}
1,"297cd":function(t,e,i){"use strict";var n=i("a066"),r=i("9dc5");function o(t){r.call(this,t)}function s(t){return new o(t)}o.prototype=Object.create(r.prototype),o.prototype.constructor=o,o.prototype.sendRequest=n.browserSend,o.prototype.abortRequest=n.browserAbort,t.exports=s},2995:function(t,e,i){"use strict";function n(t,e){var i="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=r(t))||e&&t&&"number"===typeof t.length){i&&(t=i);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(t,e){if(t){if("string"===typeof t)return o(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function a(t,e,i){return e&&s(t.prototype,e),i&&s(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}i.d(e,"a",(function(){return k}));var l=function(){return"function"===typeof Symbol},c=function(t){return l()&&Boolean(Symbol[t])},u=function(t){return c(t)?Symbol[t]:"@@"+t};l()&&!c("observable")&&(Symbol.observable=Symbol("observable"));var h=u("iterator"),d=u("observable"),f=u("species");function p(t,e){var i=t[e];if(null!=i){if("function"!==typeof i)throw new TypeError(i+" is not a function");return i}}function m(t){var e=t.constructor;return void 0!==e&&(e=e[f],null===e&&(e=void 0)),void 0!==e?e:k}function g(t){return t instanceof k}function y(t){y.log?y.log(t):setTimeout((function(){throw t}))}function _(t){Promise.resolve().then((function(){try{t()}catch(e){y(e)}}))}function v(t){var e=t._cleanup;if(void 0!==e&&(t._cleanup=void 0,e))try{if("function"===typeof e)e();else{var i=p(e,"unsubscribe");i&&i.call(e)}}catch(n){y(n)}}function b(t){t._observer=void 0,t._queue=void 0,t._state="closed"}function x(t){var e=t._queue;if(e){t._queue=void 0,t._state="ready";for(var i=0;i<e.length;++i)if(w(t,e[i].type,e[i].value),"closed"===t._state)break}}function w(t,e,i){t._state="running";var n=t._observer;try{var r=p(n,e);switch(e){case"next":r&&r.call(n,i);break;case"error":if(b(t),!r)throw i;r.call(n,i);break;case"complete":b(t),r&&r.call(n);break}}catch(o){y(o)}"closed"===t._state?v(t):"running"===t._state&&(t._state="ready")}function E(t,e,i){if("closed"!==t._state){if("buffering"!==t._state)return"ready"!==t._state?(t._state="buffering",t._queue=[{type:e,value:i}],void _((function(){return x(t)}))):void w(t,e,i);t._queue.push({type:e,value:i})}}var T=function(){function t(t,e){this._cleanup=void 0,this._observer=t,this._queue=void 0,this._state="initializing";var i=new S(this);try{this._cleanup=e.call(void 0,i)}catch(n){i.error(n)}"initializing"===this._state&&(this._state="ready")}var e=t.prototype;return e.unsubscribe=function(){"closed"!==this._state&&(b(this),v(this))},a(t,[{key:"closed",get:function(){return"closed"===this._state}}]),t}(),S=function(){function t(t){this._subscription=t}var e=t.prototype;return e.next=function(t){E(this._subscription,"next",t)},e.error=function(t){E(this._subscription,"error",t)},e.complete=function(){E(this._subscription,"complete")},a(t,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),t}(),k=function(){function t(e){if(!(this instanceof t))throw new TypeError("Observable cannot be called as a function");if("function"!==typeof e)throw new TypeError("Observable initializer must be a function");this._subscriber=e}var e=t.prototype;return e.subscribe=function(t){return"object"===typeof t&&null!==t||(t={next:t,error:arguments[1],complete:arguments[2]}),new T(t,this._subscriber)},e.forEach=function(t){var e=this;return new Promise((function(i,n){if("function"===typeof t)var r=e.subscribe({next:function(e){try{t(e,o)}catch(i){n(i),r.unsubscribe()}},error:n,complete:i});else n(new TypeError(t+" is not a function"));function o(){r.unsubscribe(),i()}}))},e.map=function(t){var e=this;if("function"!==typeof t)throw new TypeError(t+" is not a function");var i=m(this);return new i((function(i){return e.subscribe({next:function(e){try{e=t(e)}catch(n){return i.error(n)}i.next(e)},error:function(t){i.error(t)},complete:function(){i.complete()}})}))},e.filter=function(t){var e=this;if("function"!==typeof t)throw new TypeError(t+" is not a function");var i=m(this);return new i((function(i){return e.subscribe({next:function(e){try{if(!t(e))return}catch(n){return i.error(n)}i.next(e)},error:function(t){i.error(t)},complete:function(){i.complete()}})}))},e.reduce=function(t){var e=this;if("function"!==typeof t)throw new TypeError(t+" is not a function");var i=m(this),n=arguments.length>1,r=!1,o=arguments[1],s=o;return new i((function(i){return e.subscribe({next:function(e){var o=!r;if(r=!0,!o||n)try{s=t(s,e)}catch(a){return i.error(a)}else s=e},error:function(t){i.error(t)},complete:function(){if(!r&&!n)return i.error(new TypeError("Cannot reduce an empty sequence"));i.next(s),i.complete()}})}))},e.concat=function(){for(var t=this,e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];var r=m(this);return new r((function(e){var n,o=0;function s(t){n=t.subscribe({next:function(t){e.next(t)},error:function(t){e.error(t)},complete:function(){o===i.length?(n=void 0,e.complete()):s(r.from(i[o++]))}})}return s(t),function(){n&&(n.unsubscribe(),n=void 0)}}))},e.flatMap=function(t){var e=this;if("function"!==typeof t)throw new TypeError(t+" is not a function");var i=m(this);return new i((function(n){var r=[],o=e.subscribe({next:function(e){if(t)try{e=t(e)}catch(a){return n.error(a)}var o=i.from(e).subscribe({next:function(t){n.next(t)},error:function(t){n.error(t)},complete:function(){var t=r.indexOf(o);t>=0&&r.splice(t,1),s()}});r.push(o)},error:function(t){n.error(t)},complete:function(){s()}});function s(){o.closed&&0===r.length&&n.complete()}return function(){r.forEach((function(t){return t.unsubscribe()})),o.unsubscribe()}}))},e[d]=function(){return this},t.from=function(e){var i="function"===typeof this?this:t;if(null==e)throw new TypeError(e+" is not an object");var r=p(e,d);if(r){var o=r.call(e);
1if(Object(o)!==o)throw new TypeError(o+" is not an object");return g(o)&&o.constructor===i?o:new i((function(t){return o.subscribe(t)}))}if(c("iterator")&&(r=p(e,h),r))return new i((function(t){_((function(){if(!t.closed){for(var i,o=n(r.call(e));!(i=o()).done;){var s=i.value;if(t.next(s),t.closed)return}t.complete()}}))}));if(Array.isArray(e))return new i((function(t){_((function(){if(!t.closed){for(var i=0;i<e.length;++i)if(t.next(e[i]),t.closed)return;t.complete()}}))}));throw new TypeError(e+" is not observable")},t.of=function(){for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];var r="function"===typeof this?this:t;return new r((function(t){_((function(){if(!t.closed){for(var e=0;e<i.length;++e)if(t.next(i[e]),t.closed)return;t.complete()}}))}))},a(t,null,[{key:f,get:function(){return this}}]),t}();l()&&Object.defineProperty(k,Symbol("extensions"),{value:{symbol:d,hostReportError:y},configurable:!0})},"2a42":function(t,e,i){"use strict";var n=i("2ad4"),r=i("0aed"),o=i("57fc"),s=i("7854"),a={getDirections:function(t){n.assertShape({profile:n.oneOf("driving-traffic","driving","walking","cycling"),waypoints:n.required(n.arrayOf(n.shape({coordinates:n.required(n.coordinates),approach:n.oneOf("unrestricted","curb"),bearing:n.arrayOf(n.range([0,360])),radius:n.oneOfType(n.number,n.equal("unlimited")),waypointName:n.string}))),alternatives:n.boolean,annotations:n.arrayOf(n.oneOf("duration","distance","speed","congestion","congestion_numeric","max_speed","closure","state_of_charge")),bannerInstructions:n.boolean,continueStraight:n.boolean,exclude:n.string,geometries:n.string,language:n.string,overview:n.string,roundaboutExits:n.boolean,steps:n.boolean,voiceInstru
1ctions:n.boolean,voiceUnits:n.string,engine:n.string,ev_initial_charge:n.number,ev_max_charge:n.number,ev_connector_types:n.string,energy_consumption_curve:n.string,ev_charging_curve:n.string,ev_unconditioned_charging_curve:n.string,ev_pre_conditioning_time:n.number,ev_max_ac_charging_power:n.number,ev_min_charge_at_destination:n.number,ev_min_charge_at_charging_station:n.number,auxiliary_consumption:n.number})(t),t.profile=t.profile||"driving";var e={coordinates:[],approach:[],bearing:[],radius:[],waypointName:[]},i=t.waypoints.length;if(i<2||i>25)throw new Error("waypoints must include between 2 and 25 DirectionsWaypoints");t.waypoints.forEach((function(t){e.coordinates.push(t.coordinates[0]+","+t.coordinates[1]),["bearing"].forEach((function(e){t.hasOwnProperty(e)&&null!=t[e]&&(t[e]=t[e].join(","))})),["approach","bearing","radius","waypointName"].forEach((function(i){t.hasOwnProperty(i)&&null!=t[i]?e[i].push(t[i]):e[i].push("")}))})),["approach","bearing","radius","waypointName"].forEach((function(t){e[t].every((function(t){return""===t}))?delete e[t]:e[t]=e[t].join(";")}));var r=s({alternatives:t.alternatives,annotations:t.annotations,banner_instructions:t.bannerInstructions,continue_straight:t.continueStraight,exclude:t.exclude,geometries:t.geometries,language:t.language,overview:t.overview,roundabout_exits:t.roundaboutExits,steps:t.steps,voice_instructions:t.voiceInstructions,voice_units:t.voiceUnits,approaches:e.approach,bearings:e.bearing,radiuses:e.radius,waypoint_names:e.waypointName,engine:t.engine,ev_initial_charge:t.ev_initial_charge,ev_max_charge:t.ev_max_charge,ev_connector_types:t.ev_connector_types,energy_consumption_curve:t.energy_consumption_curve,ev_charging_curve:t.ev_charging_curve,ev_unconditioned_charging_curve:t.ev_unconditioned_charging_curve,ev_pre_conditioning_time:t.ev_pre_conditioning_time,ev_max_ac_charging_power:t.ev_max_ac_charging_power,ev_min_charge_at_destination:t.ev_min_charge_at_destination,ev_min_charge_at_charging_station:t.ev_min_charge_at_charging_station,auxiliary_consumption:t.auxiliary_consumption});return this.client.createRequest({method:"GET",path:"/directions/v5/mapbox/:profile/:coordinates",params:{profile:t.profile,coordinates:e.coordinates.join(";")},query:o(r)})}};t.exports=r(a)},"2a62":function(t,e,i){"use strict";var n=i("c65b"),r=i("825a"),o=i("dc4a");t.exports=function(t,e,i){var s,a;r(t);try{if(s=o(t,"return"),!s){if("throw"===e)throw i;return i}s=n(s,t)}catch(l){a=!0,s=l}if("throw"===e)throw i;if(a)throw s;return r(s),i}},"2ad4":function(t,e,i){"use strict";(function(e){var n=i("53a8"),r=i("a62b");function o(t){if("undefined"!==typeof window){if(t instanceof e.Blob||t instanceof e.ArrayBuffer)return;return"Blob or ArrayBuffer"}if("string"!==typeof t&&void 0===t.pipe)return"Filename or Readable stream"}function s(t,e){return r.assert(r.strictShape(t),e)}function a(t){var e="date";if("boolean"===typeof t)return e;try{var i=new Date(t);if(i.getTime&&isNaN(i.getTime()))return e}catch(n){return e}}function l(t){return r.tuple(r.number,r.number)(t)}t.exports=n(r,{file:o,date:a,coordinates:l,assertShape:s})}).call(this,i("c8ba"))},"2b0e":function(t,e,i){"use strict";(function(t){i.d(e,"a",(function(){return Kn})); 2/*! 3 * Vue.js v2.7.16 4 * (c) 2014-2023 Evan You 5 * Released under the MIT License. 6 */ 7var n=Object.freeze({}),r=Array.isArray;function o(t){return void 0===t||null===t}function s(t){return void 0!==t&&null!==t}function a(t){return!0===t}function l(t){return!1===t}function c(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function u(t){return"function"===typeof t}function h(t){return null!==t&&"object"===typeof t}var d=Object.prototype.toString;function f(t){return"[object Object]"===d.call(t)}function p(t){return"[object RegExp]"===d.call(t)}function m(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function g(t){return s(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function y(t){return null==t?"":Array.isArray(t)||f(t)&&t.toString===d?JSON.stringify(t,_,2):String(t)}function _(t,e){return e&&e.__v_isRef?e.value:e}function v(t){var e=parseFloat(t);return isNaN(e)?t:e}function b(t,e){for(var i=Object.create(null),n=t.split(","),r=0;r<n.length;r++)i[n[r]]=!0;return e?function(t){return i[t.toLowerCase()]}:function(t){return i[t]}}b("slot,component",!0);var x=b("key,ref,slot,slot-scope,is");function w(t,e){var i=t.length;if(i){if(e===t[i-1])return void(t.length=i-1);var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var E=Object.prototype.hasOwnProperty;function T(t,e){return E.call(t,e)}function S(t){var e=Object.create(null);return function(i){var n=e[i];return n||(e[i]=t(i))}}var k=/-(\w)/g,O=S((function(t){return t.replace(k,(function(t,e){return e?e.toUpperCase():""}))})),A=S((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),C=/\B([A-Z])/g,I=S((function(t){return t.replace(C,"-$1").toLowerCase()}));function M(t,e){function i(i){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,i):t.call(e)}return i._length=t.length,i}function P(t,e){return t.bind(e)}var D=Function.prototype.bind?P:M;function L(t,e){e=e||0;var i=t.length-e,n=new Array(i);while(i--)n[i]=t[i+e];return n}function R(t,e){for(var i in e)t[i]=e[i];return t}function z(t){for(var e={},i=0;i<t.length;i++)t[i]&&R(e,t[i]);return e}function j(t,e,i){}
vendor: 69,311 bytes, line 7
7var B=function(t,e,i){return!1},F=function(t){return t};function N(t,e){if(t===e)return!0;var i=h(t),n=h(e);if(!i||!n)return!i&&!n&&String(t)===String(e);try{var r=Array.isArray(t),o=Array.isArray(e);if(r&&o)return t.length===e.length&&t.every((function(t,i){return N(t,e[i])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(r||o)return!1;var s=Object.keys(t),a=Object.keys(e);return s.length===a.length&&s.every((function(i){return N(t[i],e[i])}))}catch(l){return!1}}function V(t,e){for(var i=0;i<t.length;i++)if(N(t[i],e))return i;return-1}function $(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}function U(t,e){return t===e?0===t&&1/t!==1/e:t===t||e===e}var q="data-server-rendered",G=["component","directive","filter"],W=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"],Z={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:B,isReservedAttr:B,isUnknownElement:B,getTagNamespace:j,parsePlatformTagName:F,mustUseProp:B,async:!0,_lifecycleHooks:W},H=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function X(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function Q(t,e,i,n){Object.defineProperty(t,e,{value:i,enumerable:!!n,writable:!0,configurable:!0})}var Y=new RegExp("[^".concat(H.source,".$_\\d]"));function K(t){if(!Y.test(t)){var e=t.split(".");return function(t){for(var i=0;i<e.length;i++){if(!t)return;t=t[e[i]]}return t}}}var J="__proto__"in{},tt="undefined"!==typeof window,et=tt&&window.navigator.userAgent.toLowerCase(),it=et&&/msie|trident/.test(et),nt=et&&et.indexOf("msie 9.0")>0,rt=et&&et.indexOf("edge/")>0;et&&et.indexOf("android");var ot=et&&/iphone|ipad|ipod|ios/.test(et);et&&/chrome\/\d+/.test(et),et&&/phantomjs/.test(et);var st,at=et&&et.match(/firefox\/(\d+)/),lt={}.watch,ct=!1;if(tt)try{var ut={};Object.defineProperty(ut,"passive",{get:function(){ct=!0}}),window.addEventListener("test-passive",null,ut)}catch(Js){}var ht=function(){return void 0===st&&(st=!tt&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),st},dt=tt&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ft(t){return"function"===typeof t&&/native code/.test(t.toString())}var pt,mt="undefined"!==typeof Symbol&&ft(Symbol)&&"undefined"!==typeof Reflect&&ft(Reflect.ownKeys);pt="undefined"!==typeof Set&&ft(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var gt=null;function yt(t){void 0===t&&(t=null),t||gt&>._scope.off(),gt=t,t&&t._scope.on()}var _t=function(){function t(t,e,i,n,r,o,s,a){this.tag=t,this.data=e,this.children=i,this.text=n,this.elm=r,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=s,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=a,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(t.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),t}(),vt=function(t){void 0===t&&(t="");var e=new _t;return e.text=t,e.isComment=!0,e};function bt(t){return new _t(void 0,void 0,void 0,String(t))}function xt(t){var e=new _t(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}"function"===typeof SuppressedError&&SuppressedError;var wt=0,Et=[],Tt=function(){for(var t=0;t<Et.length;t++){var e=Et[t];e.subs=e.subs.filter((function(t){return t})),e._pending=!1}Et.length=0},St=function(){function t(){this._pending=!1,this.id=wt++,this.subs=[]}return t.prototype.addSub=function(t){this.subs.push(t)},t.prototype.removeSub=function(t){this.subs[this.subs.indexOf(t)]=null,this._pending||(this._pending=!0,Et.push(this))},t.prototype.depend=function(e){t.target&&t.target.addDep(this)},t.prototype.notify=function(t){var e=this.subs.filter((function(t){return t}));for(var i=0,n=e.length;i<n;i++){var r=e[i];0,r.update()}},t}();St.target=null;var kt=[];function Ot(t){kt.push(t),St.target=t}function At(){kt.pop(),St.target=kt[kt.length-1]}var Ct=Array.prototype,It=Object.create(Ct),Mt=["push","pop","shift","unshift","splice","sort","reverse"];Mt.forEach((function(t){var e=Ct[t];Q(It,t,(function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var r,o=e.apply(this,i),s=this.__ob__;switch(t){case"push":case"unshift":r=i;break;case"splice":r=i.slice(2);break}return r&&s.observeArray(r),s.dep.notify(),o}))}));var Pt=Object.getOwnPropertyNames(It),Dt={},Lt=!0;function Rt(t){Lt=t}var zt={notify:j,depend:j,addSub:j,removeSub:j},jt=function(){function t(t,e,i){if(void 0===e&&(e=!1),void 0===i&&(i=!1),this.value=t,this.shallow=e,this.mock=i,this.dep=i?zt:new St,this.vmCount=0,Q(t,"__ob__",this),r(t)){if(!i)if(J)t.__proto__=It;else for(var n=0,o=Pt.length;n<o;n++){var s=Pt[n];Q(t,s,It[s])}e||this.observeArray(t)}else{var a=Object.keys(t);for(n=0;n<a.length;n++){s=a[n];Ft(t,s,Dt,void 0,e,i)}}}return t.prototype.observeArray=function(t){for(var e=0,i=t.length;e<i;e++)Bt(t[e],!1,this.mock)},t}();function Bt(t,e,i){return t&&T(t,"__ob__")&&t.__ob__ instanceof jt?t.__ob__:!Lt||!i&&ht()||!r(t)&&!f(t)||!Object.isExtensible(t)||t.__v_skip||Wt(t)||t instanceof _t?void 0:new jt(t,e,i)}function Ft(t,e,i,n,o,s,a){void 0===a&&(a=!1);var l=new St,c=Object.getOwnPropertyDescriptor(t,e);if(!c||!1!==c.configurable){var u=c&&c.get,h=c&&c.set;u&&!h||i!==Dt&&2!==arguments.length||(i=t[e]);var d=o?i&&i.__ob__:Bt(i,!1,s);return Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=u?u.call(t):i;return St.target&&(l.depend(),d&&(d.dep.depend(),r(e)&&$t(e))),Wt(e)&&!o?e.value:e},set:function(e){var n=u?u.call(t):i;if(U(n,e)){if(h)h.call(t,e);else{if(u)return;if(!o&&Wt(n)&&!Wt(e))return void(n.value=e);i=e}d=o?e&&e.__ob__:Bt(e,!1,s),l.notify()}}}),l}}function Nt(t,e,i){if(!Gt(t)){var n=t.__ob__;return r(t)&&m(e)?(t.length=Math.max(t.length,e),t.splice(e,1,i),n&&!n.shallow&&n.mock&&Bt(i,!1,!0),i):e in t&&!(e in Object.prototype)?(t[e]=i,i):t._isVue||n&&n.vmCount?i:n?(Ft(n.value,e,i,void 0,n.shallow,n.mock),n.dep.notify(),i):(t[e]=i,i)}}function Vt(t,e){if(r(t)&&m(e))t.splice(e,1);else{var i=t.__ob__;t._isVue||i&&i.vmCount||Gt(t)||T(t,e)&&(delete t[e],i&&i.dep.notify())}}function $t(t){for(var e=void 0,i=0,n=t.length;i<n;i++)e=t[i],e&&e.__ob__&&e.__ob__.dep.depend(),r(e)&&$t(e)}function Ut(t){return qt(t,!0),Q(t,"__v_isShallow",!0),t}function qt(t,e){if(!Gt(t)){Bt(t,e,ht());0}}function Gt(t){return!(!t||!t.__v_isReadonly)}function Wt(t){return!(!t||!0!==t.__v_isRef)}function Zt(t,e,i){Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:function(){var t=e[i];if(Wt(t))return t.value;var n=t&&t.__ob__;return n&&n.dep.depend(),t},set:function(t){var n=e[i];Wt(n)&&!Wt(t)?n.value=t:e[i]=t}})}var Ht="watcher";"".concat(Ht," callback"),"".concat(Ht," getter"),"".concat(Ht," cleanup");var Xt;var Qt=function(){function t(t){void 0===t&&(t=!1),this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Xt,!t&&Xt&&(this.index=(Xt.scopes||(Xt.scopes=[])).push(this)-1)}return t.prototype.run=function(t){if(this.active){var e=Xt;try{return Xt=this,t()}finally{Xt=e}}else 0},t.prototype.on=function(){Xt=this},t.prototype.off=function(){Xt=this.parent},t.prototype.stop=function(t){if(this.active){var e=void 0,i=void 0;for(e=0,i=this.effects.length;e<i;e++)this.effects[e].teardown();for(e=0,i=this.cleanups.length;e<i;e++)this.cleanups[e]();if(this.scopes)for(e=0,i=this.scopes.length;e<i;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){var n=this.parent.scopes.pop();n&&n!==this&&(this.parent.scopes[this.index]=n,n.index=this.index)}this.parent=void 0,this.active=!1}},t}();function Yt(t,e){void 0===e&&(e=Xt),e&&e.active&&e.effects.push(t)}function Kt(){return Xt}function Jt(t){var e=t._provided,i=t.$parent&&t.$parent._provided;return i===e?t._provided=Object.create(i):e}var te=S((function(t){var e="&"===t.charAt(0);t=e?t.slice(1):t;var i="~"===t.charAt(0);t=i?t.slice(1):t;var n="!"===t.charAt(0);return t=n?t.slice(1):t,{name:t,once:i,capture:n,passive:e}}));function ee(t,e){function i(){var t=i.fns;if(!r(t))return Ye(t,null,arguments,e,"v-on handler");for(var n=t.slice(),o=0;o<n.length;o++)Ye(n[o],null,arguments,e,"v-on handler")}return i.fns=t,i}function ie(t,e,i,n,r,s){var l,c,u,h;for(l in t)c=t[l],u=e[l],h=te(l),o(c)||(o(u)?(o(c.fns)&&(c=t[l]=ee(c,s)),a(h.once)&&(c=t[l]=r(h.name,c,h.capture)),i(h.name,c,h.capture,h.passive,h.params)):c!==u&&(u.fns=c,t[l]=u));for(l in e)o(t[l])&&(h=te(l),n(h.name,e[l],h.capture))}function ne(t,e,i){var n;t instanceof _t&&(t=t.data.hook||(t.data.hook={}));var r=t[e];function l(){i.apply(this,arguments),w(n.fns,l)}o(r)?n=ee([l]):s(r.fns)&&a(r.merged)?(n=r,n.fns.push(l)):n=ee([r,l]),n.merged=!0,t[e]=n}function re(t,e,i){var n=e.options.props;if(!o(n)){var r={},a=t.attrs,l=t.props;if(s(a)||s(l))for(var c in n){var u=I(c);oe(r,l,c,u,!0)||oe(r,a,c,u,!1)}return r}}function oe(t,e,i,n,r){if(s(e)){if(T(e,i))return t[i]=e[i],r||delete e[i],!0;if(T(e,n))return t[i]=e[n],r||delete e[n],!0}return!1}function se(t){for(var e=0;e<t.length;e++)if(r(t[e]))return Array.prototype.concat.apply([],t);return t}function ae(t){return c(t)?[bt(t)]:r(t)?ce(t):void 0}function le(t){return s(t)&&s(t.text)&&l(t.isComment)}function ce(t,e){var i,n,l,u,h=[];for(i=0;i<t.length;i++)n=t[i],o(n)||"boolean"===typeof n||(l=h.length-1,u=h[l],r(n)?n.length>0&&(n=ce(n,"".concat(e||"","_").concat(i)),le(n[0])&&le(u)&&(h[l]=bt(u.text+n[0].text),n.shift()),h.push.apply(h,n)):c(n)?le(u)?h[l]=bt(u.text+n):""!==n&&h.push(bt(n)):le(n)&&le(u)?h[l]=bt(u.text+n.text):(a(t._isVList)&&s(n.tag)&&o(n.key)&&s(e)&&(n.key="__vlist".concat(e,"_").concat(i,"__")),h.push(n)));return h}function ue(t,e){var i,n,o,a,l=null;if(r(t)||"string"===typeof t)for(l=new Array(t.length),i=0,n=t.length;i<n;i++)l[i]=e(t[i],i);else if("number"===typeof t)for(l=new Array(t),i=0;i<t;i++)l[i]=e(i+1,i);else if(h(t))if(mt&&t[Symbol.iterator]){l=[];var c=t[Symbol.iterator](),u=c.next();while(!u.done)l.push(e(u.value,l.length)),u=c.next()}else for(o=Object.keys(t),l=new Array(o.length),i=0,n=o.length;i<n;i++)a=o[i],l[i]=e(t[a],a,i);return s(l)||(l=[]),l._isVList=!0,l}function he(t,e,i,n){var r,o=this.$scopedSlots[t];o?(i=i||{},n&&(i=R(R({},n),i)),r=o(i)||(u(e)?e():e)):r=this.$slots[t]||(u(e)?e():e);var s=i&&i.slot;return s?this.$createElement("template",{slot:s},r):r}function de(t){return Sn(this.$options,"filters",t,!0)||F}function fe(t,e){return r(t)?-1===t.indexOf(e):t!==e}function pe(t,e,i,n,r){var o=Z.keyCodes[e]||i;return r&&n&&!Z.keyCodes[e]?fe(r,n):o?fe(o,t):n?I(n)!==e:void 0===t}function me(t,e,i,n,o){if(i)if(h(i)){r(i)&&(i=z(i));var s=void 0,a=function(r){if("class"===r||"style"===r||x(r))s=t;else{var a=t.attrs&&t.attrs.type;s=n||Z.mustUseProp(e,a,r)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var l=O(r),c=I(r);if(!(l in s)&&!(c in s)&&(s[r]=i[r],o)){var u=t.on||(t.on={});u["update:".concat(r)]=function(t){i[r]=t}}};for(var l in i)a(l)}else;return t}function ge(t,e){var i=this._staticTrees||(this._staticTrees=[]),n=i[t];return n&&!e||(n=i[t]=this.$options.staticRenderFns[t].call(this._renderProxy,this._c,this),_e(n,"__static__".concat(t),!1)),n}function ye(t,e,i){return _e(t,"__once__".concat(e).concat(i?"_".concat(i):""),!0),t}function _e(t,e,i){if(r(t))for(var n=0;n<t.length;n++)t[n]&&"string"!==typeof t[n]&&ve(t[n],"".concat(e,"_").concat(n),i);else ve(t,e,i)}function ve(t,e,i){t.isStatic=!0,t.key=e,t.isOnce=i}function be(t,e){if(e)if(f(e)){var i=t.on=t.on?R({},t.on):{};for(var n in e){var r=i[n],o=e[n];i[n]=r?[].concat(r,o):o}}else;return t}function xe(t,e,i,n){e=e||{$stable:!i};for(var o=0;o<t.length;o++){var s=t[o];r(s)?xe(s,e,i):s&&(s.proxy&&(s.fn.proxy=!0),e[s.key]=s.fn)}return n&&(e.$key=n),e}function we(t,e){for(var i=0;i<e.length;i+=2){var n=e[i];"string"===typeof n&&n&&(t[e[i]]=e[i+1])}return t}function Ee(t,e){return"string"===typeof t?e+t:t}function Te(t){t._o=ye,t._n=v,t._s=y,t._l=ue,t._t=he,t._q=N,t._i=V,t._m=ge,t._f=de,t._k=pe,t._b=me,t._v=bt,t._e=vt,t._u=xe,t._g=be,t._d=we,t._p=Ee}function Se(t,e){if(!t||!t.length)return{};for(var i={},n=0,r=t.length;n<r;n++){var o=t[n],s=o.data;if(s&&s.attrs&&s.attrs.slot&&delete s.attrs.slot,o.context!==e&&o.fnContext!==e||!s||null==s.slot)(i.default||(i.default=[])).push(o);else{var a=s.slot,l=i[a]||(i[a]=[]);"template"===o.tag?l.push.apply(l,o.children||[]):l.push(o)}}for(var c in i)i[c].every(ke)&&delete i[c];return i}function ke(t){return t.isComment&&!t.asyncFactory||" "===t.text}function Oe(t){return t.isComment&&t.asyncFactory}function Ae(t,e,i,r){var o,s=Object.keys(i).length>0,a=e?!!e.$stable:!s,l=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&r&&r!==n&&l===r.$key&&!s&&!r.$hasNormal)return r;for(var c in o={},e)e[c]&&"$"!==c[0]&&(o[c]=Ce(t,i,c,e[c]))}else o={};for(var u in i)u in o||(o[u]=Ie(i,u));return e&&Object.isExtensible(e)&&(e._normalized=o),Q(o,"$stable",a),Q(o,"$key",l),Q(o,"$hasNormal",s),o}function Ce(t,e,i,n){var o=function(){var e=gt;yt(t);var i=arguments.length?n.apply(null,arguments):n({});i=i&&"object"===typeof i&&!r(i)?[i]:ae(i);var o=i&&i[0];return yt(e),i&&(!o||1===i.length&&o.isComment&&!Oe(o))?void 0:i};return n.proxy&&Object.defineProperty(e,i,{get:o,enumerable:!0,configurable:!0}),o}function Ie(t,e){return function(){return t[e]}}function Me(t){var e=t.$options,i=e.setup;if(i){var n=t._setupContext=Pe(t);yt(t),Ot();var r=Ye(i,null,[t._props||Ut({}),n],t,"setup");if(At(),yt(),u(r))e.render=r;else if(h(r))if(t._setupState=r,r.__sfc){var o=t._setupProxy={};for(var s in r)"__sfc"!==s&&Zt(o,r,s)}else for(var s in r)X(s)||Zt(t,r,s);else 0}}function Pe(t){return{get attrs(){if(!t._attrsProxy){var e=t._attrsProxy={};Q(e,"_v_attr_proxy",!0),De(e,t.$attrs,n,t,"$attrs")}return t._attrsProxy},get listeners(){if(!t._listenersProxy){var e=t._listenersProxy={};De(e,t.$listeners,n,t,"$listeners")}return t._listenersProxy},get slots(){return Re(t)},emit:D(t.$emit,t),expose:function(e){e&&Object.keys(e).forEach((function(i){return Zt(t,e,i)}))}}}function De(t,e,i,n,r){var o=!1;for(var s in e)s in t?e[s]!==i[s]&&(o=!0):(o=!0,Le(t,s,n,r));for(var s in t)s in e||(o=!0,delete t[s]);return o}function Le(t,e,i,n){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){return i[n][e]}})}function Re(t){return t._slotsProxy||ze(t._slotsProxy={},t.$scopedSlots),t._slotsProxy}function ze(t,e){for(var i in e)t[i]=e[i];for(var i in t)i in e||delete t[i]}function je(t){t._vnode=null,t._staticTrees=null;var e=t.$options,i=t.$vnode=e._parentVnode,r=i&&i.context;t.$slots=Se(e._renderChildren,r),t.$scopedSlots=i?Ae(t.$parent,i.data.scopedSlots,t.$slots):n,t._c=function(e,i,n,r){return We(t,e,i,n,r,!1)},t.$createElement=function(e,i,n,r){return We(t,e,i,n,r,!0)};var o=i&&i.data;Ft(t,"$attrs",o&&o.attrs||n,null,!0),Ft(t,"$listeners",e._parentListeners||n,null,!0)}var Be=null;function Fe(t){Te(t.prototype),t.prototype.$nextTick=function(t){return ci(t,this)},t.prototype._render=function(){var t=this,e=t.$options,i=e.render,n=e._parentVnode;n&&t._isMounted&&(t.$scopedSlots=Ae(t.$parent,n.data.scopedSlots,t.$slots,t.$scopedSlots),t._slotsProxy&&ze(t._slotsProxy,t.$scopedSlots)),t.$vnode=n;var o,s=gt,a=Be;try{yt(t),Be=t,o=i.call(t._renderProxy,t.$createElement)}catch(Js){Qe(Js,t,"render"),o=t._vnode}finally{Be=a,yt(s)}return r(o)&&1===o.length&&(o=o[0]),o instanceof _t||(o=vt()),o.parent=n,o}}function Ne(t,e){return(t.__esModule||mt&&"Module"===t[Symbol.toStringTag])&&(t=t.default),h(t)?e.extend(t):t}function Ve(t,e,i,n,r){var o=vt();return o.asyncFactory=t,o.asyncMeta={data:e,context:i,children:n,tag:r},o}function $e(t,e){if(a(t.error)&&s(t.errorComp))return t.errorComp;if(s(t.resolved))return t.resolved;var i=Be;if(i&&s(t.owners)&&-1===t.owners.indexOf(i)&&t.owners.push(i),a(t.loading)&&s(t.loadingComp))return t.loadingComp;if(i&&!s(t.owners)){var n=t.owners=[i],r=!0,l=null,c=null;i.$on("hook:destroyed",(function(){return w(n,i)}));var u=function(t){for(var e=0,i=n.length;e<i;e++)n[e].$forceUpdate();t&&(n.length=0,null!==l&&(clearTimeout(l),l=null),null!==c&&(clearTimeout(c),c=null))},d=$((function(i){t.resolved=Ne(i,e),r?n.length=0:u(!0)})),f=$((function(e){s(t.errorComp)&&(t.error=!0,u(!0))})),p=t(d,f);return h(p)&&(g(p)?o(t.resolved)&&p.then(d,f):g(p.component)&&(p.component.then(d,f),s(p.error)&&(t.errorComp=Ne(p.error,e)),s(p.loading)&&(t.loadingComp=Ne(p.loading,e),0===p.delay?t.loading=!0:l=setTimeout((function(){l=null,o(t.resolved)&&o(t.error)&&(t.loading=!0,u(!1))}),p.delay||200)),s(p.timeout)&&(c=setTimeout((function(){c=null,o(t.resolved)&&f(null)}),p.timeout)))),r=!1,t.loading?t.loadingComp:t.resolved}}function Ue(t){if(r(t))for(var e=0;e<t.length;e++){var i=t[e];if(s(i)&&(s(i.componentOptions)||Oe(i)))return i}}var qe=1,Ge=2;function We(t,e,i,n,o,s){return(r(i)||c(i))&&(o=n,n=i,i=void 0),a(s)&&(o=Ge),Ze(t,e,i,n,o)}function Ze(t,e,i,n,o){if(s(i)&&s(i.__ob__))return vt();if(s(i)&&s(i.is)&&(e=i.is),!e)return vt();var a,l;if(r(n)&&u(n[0])&&(i=i||{},i.scopedSlots={default:n[0]},n.length=0),o===Ge?n=ae(n):o===qe&&(n=se(n)),"string"===typeof e){var c=void 0;l=t.$vnode&&t.$vnode.ns||Z.getTagNamespace(e),a=Z.isReservedTag(e)?new _t(Z.parsePlatformTagName(e),i,n,void 0,void 0,t):i&&i.pre||!s(c=Sn(t.$options,"components",e))?new _t(e,i,n,void 0,void 0,t):ln(c,i,t,n,e)}else a=ln(e,i,t,n);return r(a)?a:s(a)?(s(l)&&He(a,l),s(i)&&Xe(i),a):vt()}function He(t,e,i){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,i=!0),s(t.children))for(var n=0,r=t.children.length;n<r;n++){var l=t.children[n];s(l.tag)&&(o(l.ns)||a(i)&&"svg"!==l.tag)&&He(l,e,i)}}function Xe(t){h(t.style)&&pi(t.style),h(t.class)&&pi(t.class)}function Qe(t,e,i){Ot();try{if(e){var n=e;while(n=n.$parent){var r=n.$options.errorCaptured;if(r)for(var o=0;o<r.length;o++)try{var s=!1===r[o].call(n,t,e,i);if(s)return}catch(Js){Ke(Js,n,"errorCaptured hook")}}}Ke(t,e,i)}finally{At()}}function Ye(t,e,i,n,r){var o;try{o=i?t.apply(e,i):t.call(e),o&&!o._isVue&&g(o)&&!o._handled&&(o.catch((function(t){return Qe(t,n,r+" (Promise/async)")})),o._handled=!0)}catch(Js){Qe(Js,n,r)}return o}function Ke(t,e,i){if(Z.errorHandler)try{return Z.errorHandler.call(null,t,e,i)}catch(Js){Js!==t&&Je(Js,null,"config.errorHandler")}Je(t,e,i)}function Je(t,e,i){if(!tt||"undefined"===typeof console)throw t;console.error(t)}var ti,ei=!1,ii=[],ni=!1;function ri(){ni=!1;var t=ii.slice(0);ii.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!==typeof Promise&&ft(Promise)){var oi=Promise.resolve();ti=function(){oi.then(ri),ot&&setTimeout(j)},ei=!0}else if(it||"undefined"===typeof MutationObserver||!ft(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())ti="undefined"!==typeof setImmediate&&ft(setImmediate)?function(){setImmediate(ri)}:function(){setTimeout(ri,0)};else{var si=1,ai=new MutationObserver(ri),li=document.createTextNode(String(si));ai.observe(li,{characterData:!0}),ti=function(){si=(si+1)%2,li.data=String(si)},ei=!0}function ci(t,e){var i;if(ii.push((function(){if(t)try{t.call(e)}catch(Js){Qe(Js,e,"nextTick")}else i&&i(e)})),ni||(ni=!0,ti()),!t&&"undefined"!==typeof Promise)return new Promise((function(t){i=t}))}function ui(t){return function(e,i){if(void 0===i&&(i=gt),i)return hi(i,t,e)}}function hi(t,e,i){var n=t.$options;n[e]=yn(n[e],i)}ui("beforeMount"),ui("mounted"),ui("beforeUpdate"),ui("updated"),ui("beforeDestroy"),ui("destroyed"),ui("activated"),ui("deactivated"),ui("serverPrefetch"),ui("renderTracked"),ui("renderTriggered"),ui("errorCaptured");var di="2.7.16";var fi=new pt;function pi(t){return mi(t,fi),fi.clear(),t}function mi(t,e){var i,n,o=r(t);if(!(!o&&!h(t)||t.__v_skip||Object.isFrozen(t)||t instanceof _t)){if(t.__ob__){var s=t.__ob__.dep.id;if(e.has(s))return;e.add(s)}if(o){i=t.length;while(i--)mi(t[i],e)}else if(Wt(t))mi(t.value,e);else{n=Object.keys(t),i=n.length;while(i--)mi(t[n[i]],e)}}}var gi,yi=0,_i=function(){function t(t,e,i,n,r){Yt(this,Xt&&!Xt._vm?Xt:t?t._scope:void 0),(this.vm=t)&&r&&(t._watcher=this),n?(this.deep=!!n.deep,this.user=!!n.user,this.lazy=!!n.lazy,this.sync=!!n.sync,this.before=n.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=i,this.id=++yi,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new pt,this.newDepIds=new pt,this.expression="",u(e)?this.getter=e:(this.getter=K(e),this.getter||(this.getter=j)),this.value=this.lazy?void 0:this.get()}return t.prototype.get=function(){var t;Ot(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(Js){if(!this.user)throw Js;Qe(Js,e,'getter for watcher "'.concat(this.expression,'"'))}finally{this.deep&&pi(t),At(),this.cleanupDeps()}return t},t.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},t.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var i=this.depIds;this.depIds=this.newDepIds,this.newDepIds=i,this.newDepIds.clear(),i=this.deps,this.deps=this.newDeps,this.newDeps=i,this.newDeps.length=0},t.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Qi(this)},t.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||h(t)||this.deep){var e=this.value;if(this.value=t,this.user){var i='callback for watcher "'.concat(this.expression,'"');Ye(this.cb,this.vm,[t,e],this.vm,i)}else this.cb.call(this.vm,t,e)}}},t.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},t.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},t.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&w(this.vm._scope.effects,this),this.active){var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},t}();function vi(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Ei(t,e)}function bi(t,e){gi.$on(t,e)}function xi(t,e){gi.$off(t,e)}function wi(t,e){var i=gi;return function n(){var r=e.apply(null,arguments);null!==r&&i.$off(t,n)}}function Ei(t,e,i){gi=t,ie(e,i||{},bi,xi,wi,t),gi=void 0}function Ti(t){var e=/^hook:/;t.prototype.$on=function(t,i){var n=this;if(r(t))for(var o=0,s=t.length;o<s;o++)n.$on(t[o],i);else(n._events[t]||(n._events[t]=[])).push(i),e.test(t)&&(n._hasHookEvent=!0);return n},t.prototype.$once=function(t,e){var i=this;function n(){i.$off(t,n),e.apply(i,arguments)}return n.fn=e,i.$on(t,n),i},t.prototype.$off=function(t,e){var i=this;if(!arguments.length)return i._events=Object.create(null),i;if(r(t)){for(var n=0,o=t.length;n<o;n++)i.$off(t[n],e);return i}var s,a=i._events[t];if(!a)return i;if(!e)return i._events[t]=null,i;var l=a.length;while(l--)if(s=a[l],s===e||s.fn===e){a.splice(l,1);break}return i},t.prototype.$emit=function(t){var e=this,i=e._events[t];if(i){i=i.length>1?L(i):i;for(var n=L(arguments,1),r='event handler for "'.concat(t,'"'),o=0,s=i.length;o<s;o++)Ye(i[o],e,n,e,r)}return e}}var Si=null;function ki(t){var e=Si;return Si=t,function(){Si=e}}function Oi(t){var e=t.$options,i=e.parent;if(i&&!e.abstract){while(i.$options.abstract&&i.$parent)i=i.$parent;i.$children.push(t)}t.$parent=i,t.$root=i?i.$root:t,t.$children=[],t.$refs={},t._provided=i?i._provided:Object.create(null),t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function Ai(t){t.prototype._update=function(t,e){var i=this,n=i.$el,r=i._vnode,o=ki(i);i._vnode=t,i.$el=r?i.__patch__(r,t):i.__patch__(i.$el,t,e,!1),o(),n&&(n.__vue__=null),i.$el&&(i.$el.__vue__=i);var s=i;while(s&&s.$vnode&&s.$parent&&s.$vnode===s.$parent._vnode)s.$parent.$el=s.$el,s=s.$parent},t.prototype.$forceUpdate=function(){var t=this;t._watcher&&t._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){Li(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||w(e.$children,t),t._scope.stop(),t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),Li(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}function Ci(t,e,i){var n;t.$el=e,t.$options.render||(t.$options.render=vt),Li(t,"beforeMount"),n=function(){t._update(t._render(),i)};var r={before:function(){t._isMounted&&!t._isDestroyed&&Li(t,"beforeUpdate")}};new _i(t,n,j,r,!0),i=!1;var o=t._preWatchers;if(o)for(var s=0;s<o.length;s++)o[s].run();return null==t.$vnode&&(t._isMounted=!0,Li(t,"mounted")),t}function Ii(t,e,i,r,o){var s=r.data.scopedSlots,a=t.$scopedSlots,l=!!(s&&!s.$stable||a!==n&&!a.$stable||s&&t.$scopedSlots.$key!==s.$key||!s&&t.$scopedSlots.$key),c=!!(o||t.$options._renderChildren||l),u=t.$vnode;t.$options._parentVnode=r,t.$vnode=r,t._vnode&&(t._vnode.parent=r),t.$options._renderChildren=o;var h=r.data.attrs||n;t._attrsProxy&&De(t._attrsProxy,h,u.data&&u.data.attrs||n,t,"$attrs")&&(c=!0),t.$attrs=h,i=i||n;var d=t.$options._parentListeners;if(t._listenersProxy&&De(t._listenersProxy,i,d||n,t,"$listeners"),t.$listeners=t.$options._parentListeners=i,Ei(t,i,d),e&&t.$options.props){Rt(!1);for(var f=t._props,p=t.$options._propKeys||[],m=0;m<p.length;m++){var g=p[m],y=t.$options.props;f[g]=kn(g,y,e,t)}Rt(!0),t.$options.propsData=e}c&&(t.$slots=Se(o,r.context),t.$forceUpdate())}function Mi(t){while(t&&(t=t.$parent))if(t._inactive)return!0;return!1}function Pi(t,e){if(e){if(t._directInactive=!1,Mi(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var i=0;i<t.$children.length;i++)Pi(t.$children[i]);Li(t,"activated")}}function Di(t,e){if((!e||(t._directInactive=!0,!Mi(t)))&&!t._inactive){t._inactive=!0;for(var i=0;i<t.$children.length;i++)Di(t.$children[i]);Li(t,"deactivated")}}function Li(t,e,i,n){void 0===n&&(n=!0),Ot();var r=gt,o=Kt();n&&yt(t);var s=t.$options[e],a="".concat(e," hook");if(s)for(var l=0,c=s.length;l<c;l++)Ye(s[l],t,i||null,t,a);t._hasHookEvent&&t.$emit("hook:"+e),n&&(yt(r),o&&o.on()),At()}var Ri=[],zi=[],ji={},Bi=!1,Fi=!1,Ni=0;function Vi(){Ni=Ri.length=zi.length=0,ji={},Bi=Fi=!1}var $i=0,Ui=Date.now;if(tt&&!it){var qi=window.performance;qi&&"function"===typeof qi.now&&Ui()>document.createEvent("Event").timeStamp&&(Ui=function(){return qi.now()})}var Gi=function(t,e){if(t.post){if(!e.post)return 1}else if(e.post)return-1;return t.id-e.id};function Wi(){var t,e;for($i=Ui(),Fi=!0,Ri.sort(Gi),Ni=0;Ni<Ri.length;Ni++)t=Ri[Ni],t.before&&t.before(),e=t.id,ji[e]=null,t.run();var i=zi.slice(),n=Ri.slice();Vi(),Xi(i),Zi(n),Tt(),dt&&Z.devtools&&dt.emit("flush")}function Zi(t){var e=t.length;while(e--){var i=t[e],n=i.vm;n&&n._watcher===i&&n._isMounted&&!n._isDestroyed&&Li(n,"updated")}}function Hi(t){t._inactive=!1,zi.push(t)}function Xi(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,Pi(t[e],!0)}function Qi(t){var e=t.id;if(null==ji[e]&&(t!==St.target||!t.noRecurse)){if(ji[e]=!0,Fi){var i=Ri.length-1;while(i>Ni&&Ri[i].id>t.id)i--;Ri.splice(i+1,0,t)}else Ri.push(t);Bi||(Bi=!0,ci(Wi))}}function Yi(t){var e=t.$options.provide;if(e){var i=u(e)?e.call(t):e;if(!h(i))return;for(var n=Jt(t),r=mt?Reflect.ownKeys(i):Object.keys(i),o=0;o<r.length;o++){var s=r[o];Object.defineProperty(n,s,Object.getOwnPropertyDescriptor(i,s))}}}function Ki(t){var e=Ji(t.$options.inject,t);e&&(Rt(!1),Object.keys(e).forEach((function(i){Ft(t,i,e[i])})),Rt(!0))}function Ji(t,e){if(t){for(var i=Object.create(null),n=mt?Reflect.ownKeys(t):Object.keys(t),r=0;r<n.length;r++){var o=n[r];if("__ob__"!==o){var s=t[o].from;if(s in e._provided)i[o]=e._provided[s];else if("default"in t[o]){var a=t[o].default;i[o]=u(a)?a.call(e):a}else 0}}return i}}function tn(t,e,i,o,s){var l,c=this,u=s.options;T(o,"_uid")?(l=Object.create(o),l._original=o):(l=o,o=o._original);var h=a(u._compiled),d=!h;this.data=t,this.props=e,this.children=i,this.parent=o,this.listeners=t.on||n,this.injections=Ji(u.inject,o),this.slots=function(){return c.$slots||Ae(o,t.scopedSlots,c.$slots=Se(i,o)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Ae(o,t.scopedSlots,this.slots())}}),h&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=Ae(o,t.scopedSlots,this.$slots)),u._scopeId?this._c=function(t,e,i,n){var s=We(l,t,e,i,n,d);return s&&!r(s)&&(s.fnScopeId=u._scopeId,s.fnContext=o),s}:this._c=function(t,e,i,n){return We(l,t,e,i,n,d)}}function en(t,e,i,o,a){var l=t.options,c={},u=l.props;if(s(u))for(var h in u)c[h]=kn(h,u,e||n);else s(i.attrs)&&rn(c,i.attrs),s(i.props)&&rn(c,i.props);var d=new tn(i,c,a,o,t),f=l.render.call(null,d._c,d);if(f instanceof _t)return nn(f,i,d.parent,l,d);if(r(f)){for(var p=ae(f)||[],m=new Array(p.length),g=0;g<p.length;g++)m[g]=nn(p[g],i,d.parent,l,d);return m}}function nn(t,e,i,n,r){var o=xt(t);return o.fnContext=i,o.fnOptions=n,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function rn(t,e){for(var i in e)t[O(i)]=e[i]}function on(t){return t.name||t.__name||t._componentTag}Te(tn.prototype);var sn={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var i=t;sn.prepatch(i,i)}else{var n=t.componentInstance=cn(t,Si);n.$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var i=e.componentOptions,n=e.componentInstance=t.componentInstance;Ii(n,i.propsData,i.listeners,e,i.children)},insert:function(t){var e=t.context,i=t.componentInstance;i._isMounted||(i._isMounted=!0,Li(i,"mounted")),t.data.keepAlive&&(e._isMounted?Hi(i):Pi(i,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?Di(e,!0):e.$destroy())}},an=Object.keys(sn);function ln(t,e,i,n,r){if(!o(t)){var l=i.$options._base;if(h(t)&&(t=l.extend(t)),"function"===typeof t){var c;if(o(t.cid)&&(c=t,t=$e(c,l),void 0===t))return Ve(c,e,i,n,r);e=e||{},Qn(t),s(e.model)&&dn(t.options,e);var u=re(e,t,r);if(a(t.options.functional))return en(t,u,e,i,n);var d=e.on;if(e.on=e.nativeOn,a(t.options.abstract)){var f=e.slot;e={},f&&(e.slot=f)}un(e);var p=on(t.options)||r,m=new _t("vue-component-".concat(t.cid).concat(p?"-".concat(p):""),e,void 0,void 0,void 0,i,{Ctor:t,propsData:u,listeners:d,tag:r,children:n},c);return m}}}function cn(t,e){var i={_isComponent:!0,_parentVnode:t,parent:e},n=t.data.inlineTemplate;return s(n)&&(i.render=n.render,i.staticRenderFns=n.staticRenderFns),new t.componentOptions.Ctor(i)}function un(t){for(var e=t.hook||(t.hook={}),i=0;i<an.length;i++){var n=an[i],r=e[n],o=sn[n];r===o||r&&r._merged||(e[n]=r?hn(o,r):o)}}function hn(t,e){var i=function(i,n){t(i,n),e(i,n)};return i._merged=!0,i}function dn(t,e){var i=t.model&&t.model.prop||"value",n=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[i]=e.model.value;var o=e.on||(e.on={}),a=o[n],l=e.model.callback;s(a)?(r(a)?-1===a.indexOf(l):a!==l)&&(o[n]=[l].concat(a)):o[n]=l}var fn=j,pn=Z.optionMergeStrategies;function mn(t,e,i){if(void 0===i&&(i=!0),!e)return t;for(var n,r,o,s=mt?Reflect.ownKeys(e):Object.keys(e),a=0;a<s.length;a++)n=s[a],"__ob__"!==n&&(r=t[n],o=e[n],i&&T(t,n)?r!==o&&f(r)&&f(o)&&mn(r,o):Nt(t,n,o));return t}function gn(t,e,i){return i?function(){var n=u(e)?e.call(i,i):e,r=u(t)?t.call(i,i):t;return n?mn(n,r):r}:e?t?function(){return mn(u(e)?e.call(this,this):e,u(t)?t.call(this,this):t)}:e:t}function yn(t,e){var i=e?t?t.concat(e):r(e)?e:[e]:t;return i?_n(i):i}function _n(t){for(var e=[],i=0;i<t.length;i++)-1===e.indexOf(t[i])&&e.push(t[i]);return e}function vn(t,e,i,n){var r=Object.create(t||null);return e?R(r,e):r}pn.data=function(t,e,i){return i?gn(t,e,i):e&&"function"!==typeof e?t:gn(t,e)},W.forEach((function(t){pn[t]=yn})),G.forEach((function(t){pn[t+"s"]=vn})),pn.watch=function(t,e,i,n){if(t===lt&&(t=void 0),e===lt&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var o={};for(var s in R(o,t),e){var a=o[s],l=e[s];a&&!r(a)&&(a=[a]),o[s]=a?a.concat(l):r(l)?l:[l]}return o},pn.props=pn.methods=pn.inject=pn.computed=function(t,e,i,n){if(!t)return e;var r=Object.create(null);return R(r,t),e&&R(r,e),r},pn.provide=function(t,e){return t?function(){var i=Object.create(null);return mn(i,u(t)?t.call(this):t),e&&mn(i,u(e)?e.call(this):e,!1),i}:e};var bn=function(t,e){return void 0===e?t:e};function xn(t,e){var i=t.props;if(i){var n,o,s,a={};if(r(i)){n=i.length;while(n--)o=i[n],"string"===typeof o&&(s=O(o),a[s]={type:null})}else if(f(i))for(var l in i)o=i[l],s=O(l),a[s]=f(o)?o:{type:o};else 0;t.props=a}}function wn(t,e){var i=t.inject;if(i){var n=t.inject={};if(r(i))for(var o=0;o<i.length;o++)n[i[o]]={from:i[o]};else if(f(i))for(var s in i){var a=i[s];n[s]=f(a)?R({from:s},a):{from:a}}else 0}}function En(t){var e=t.directives;if(e)for(var i in e){var n=e[i];u(n)&&(e[i]={bind:n,update:n})}}function Tn(t,e,i){if(u(e)&&(e=e.options),xn(e,i),wn(e,i),En(e),!e._base&&(e.extends&&(t=Tn(t,e.extends,i)),e.mixins))for(var n=0,r=e.mixins.length;n<r;n++)t=Tn(t,e.mixins[n],i);var o,s={};for(o in t)a(o);for(o in e)T(t,o)||a(o);function a(n){var r=pn[n]||bn;s[n]=r(t[n],e[n],i,n)}return s}function Sn(t,e,i,n){if("string"===typeof i){var r=t[e];if(T(r,i))return r[i];var o=O(i);if(T(r,o))return r[o];var s=A(o);if(T(r,s))return r[s];var a=r[i]||r[o]||r[s];return a}}function kn(t,e,i,n){var r=e[t],o=!T(i,t),s=i[t],a=Mn(Boolean,r.type);if(a>-1)if(o&&!T(r,"default"))s=!1;else if(""===s||s===I(t)){var l=Mn(String,r.type);(l<0||a<l)&&(s=!0)}if(void 0===s){s=On(n,r,t);var c=Lt;Rt(!0),Bt(s),Rt(c)}return s}function On(t,e,i){if(T(e,"default")){var n=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[i]&&void 0!==t._props[i]?t._props[i]:u(n)&&"Function"!==Cn(e.type)?n.call(t):n}}var An=/^\s*function (\w+)/;function Cn(t){var e=t&&t.toString().match(An);return e?e[1]:""}function In(t,e){return Cn(t)===Cn(e)}function Mn(t,e){if(!r(e))return In(e,t)?0:-1;for(var i=0,n=e.length;i<n;i++)if(In(e[i],t))return i;return-1}var Pn={enumerable:!0,configurable:!0,get:j,set:j};function Dn(t,e,i){Pn.get=function(){return this[e][i]},Pn.set=function(t){this[e][i]=t},Object.defineProperty(t,i,Pn)}function Ln(t){var e=t.$options;if(e.props&&Rn(t,e.props),Me(t),e.methods&&Un(t,e.methods),e.data)zn(t);else{var i=Bt(t._data={});i&&i.vmCount++}e.computed&&Fn(t,e.computed),e.watch&&e.watch!==lt&&qn(t,e.watch)}function Rn(t,e){var i=t.$options.propsData||{},n=t._props=Ut({}),r=t.$options._propKeys=[],o=!t.$parent;o||Rt(!1);var s=function(o){r.push(o);var s=kn(o,e,i,t);Ft(n,o,s,void 0,!0),o in t||Dn(t,"_props",o)};for(var a in e)s(a);Rt(!0)}function zn(t){var e=t.$options.data;e=t._data=u(e)?jn(e,t):e||{},f(e)||(e={});var i=Object.keys(e),n=t.$options.props,r=(t.$options.methods,i.length);while(r--){var o=i[r];0,n&&T(n,o)||X(o)||Dn(t,"_data",o)}var s=Bt(e);s&&s.vmCount++}function jn(t,e){Ot();try{return t.call(e,e)}catch(Js){return Qe(Js,e,"data()"),{}}finally{At()}}var Bn={lazy:!0};function Fn(t,e){var i=t._computedWatchers=Object.create(null),n=ht();for(var r in e){var o=e[r],s=u(o)?o:o.get;0,n||(i[r]=new _i(t,s||j,j,Bn)),r in t||Nn(t,r,o)}}function Nn(t,e,i){var n=!ht();u(i)?(Pn.get=n?Vn(e):$n(i),Pn.set=j):(Pn.get=i.get?n&&!1!==i.cache?Vn(e):$n(i.get):j,Pn.set=i.set||j),Object.defineProperty(t,e,Pn)}function Vn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),St.target&&e.depend(),e.value}}function $n(t){return function(){return t.call(this,this)}}function Un(t,e){t.$options.props;for(var i in e)t[i]="function"!==typeof e[i]?j:D(e[i],t)}function qn(t,e){for(var i in e){var n=e[i];if(r(n))for(var o=0;o<n.length;o++)Gn(t,i,n[o]);else Gn(t,i,n)}}function Gn(t,e,i,n){return f(i)&&(n=i,i=i.handler),"string"===typeof i&&(i=t[i]),t.$watch(e,i,n)}function Wn(t){var e={get:function(){return this._data}},i={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",i),t.prototype.$set=Nt,t.prototype.$delete=Vt,t.prototype.$watch=function(t,e,i){var n=this;if(f(e))return Gn(n,t,e,i);i=i||{},i.user=!0;var r=new _i(n,t,e,i);if(i.immediate){var o='callback for immediate watcher "'.concat(r.expression,'"');Ot(),Ye(e,n,[r.value],n,o),At()}return function(){r.teardown()}}}var Zn=0;function Hn(t){t.prototype._init=function(t){var e=this;e._uid=Zn++,e._isVue=!0,e.__v_skip=!0,e._scope=new Qt(!0),e._scope.parent=void 0,e._scope._vm=!0,t&&t._isComponent?Xn(e,t):e.$options=Tn(Qn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,Oi(e),vi(e),je(e),Li(e,"beforeCreate",void 0,!1),Ki(e),Ln(e),Yi(e),Li(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}function Xn(t,e){var i=t.$options=Object.create(t.constructor.options),n=e._parentVnode;i.parent=e.parent,i._parentVnode=n;var r=n.componentOptions;i.propsData=r.propsData,i._parentListeners=r.listeners,i._renderChildren=r.children,i._componentTag=r.tag,e.render&&(i.render=e.render,i.staticRenderFns=e.staticRenderFns)}function Qn(t){var e=t.options;if(t.super){var i=Qn(t.super),n=t.superOptions;if(i!==n){t.superOptions=i;var r=Yn(t);r&&R(t.extendOptions,r),e=t.options=Tn(i,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function Yn(t){var e,i=t.options,n=t.sealedOptions;for(var r in i)i[r]!==n[r]&&(e||(e={}),e[r]=i[r]);return e}function Kn(t){this._init(t)}function Jn(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var i=L(arguments,1);return i.unshift(this),u(t.install)?t.install.apply(t,i):u(t)&&t.apply(null,i),e.push(t),this}}function tr(t){t.mixin=function(t){return this.options=Tn(this.options,t),this}}function er(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var i=this,n=i.cid,r=t._Ctor||(t._Ctor={});if(r[n])return r[n];var o=on(t)||on(i.options);var s=function(t){this._init(t)};return s.prototype=Object.create(i.prototype),s.prototype.constructor=s,s.cid=e++,s.options=Tn(i.options,t),s["super"]=i,s.options.props&&ir(s),s.options.computed&&nr(s),s.extend=i.extend,s.mixin=i.mixin,s.use=i.use,G.forEach((function(t){s[t]=i[t]})),o&&(s.options.components[o]=s),s.superOptions=i.options,s.extendOptions=t,s.sealedOptions=R({},s.options),r[n]=s,s}}function ir(t){var e=t.options.props;for(var i in e)Dn(t.prototype,"_props",i)}function nr(t){var e=t.options.computed;for(var i in e)Nn(t.prototype,i,e[i])}function rr(t){G.forEach((function(e){t[e]=function(t,i){return i?("component"===e&&f(i)&&(i.name=i.name||t,i=this.options._base.extend(i)),"directive"===e&&u(i)&&(i={bind:i,update:i}),this.options[e+"s"][t]=i,i):this.options[e+"s"][t]}}))}function or(t){return t&&(on(t.Ctor.options)||t.tag)}function sr(t,e){return r(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!p(t)&&t.test(e)}function ar(t,e){var i=t.cache,n=t.keys,r=t._vnode,o=t.$vnode;for(var s in i){var a=i[s];if(a){var l=a.name;l&&!e(l)&&lr(i,s,n,r)}}o.componentOptions.children=void 0}function lr(t,e,i,n){var r=t[e];!r||n&&r.tag===n.tag||r.componentInstance.$destroy(),t[e]=null,w(i,e)}Hn(Kn),Wn(Kn),Ti(Kn),Ai(Kn),Fe(Kn);var cr=[String,RegExp,Array],ur={name:"keep-alive",abstract:!0,props:{include:cr,exclude:cr,max:[String,Number]},methods:{cacheVNode:function(){var t=this,e=t.cache,i=t.keys,n=t.vnodeToCache,r=t.keyToCache;if(n){var o=n.tag,s=n.componentInstance,a=n.componentOptions;e[r]={name:or(a),tag:o,componentInstance:s},i.push(r),this.max&&i.length>parseInt(this.max)&&lr(e,i[0],i,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)lr(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",(function(e){ar(t,(function(t){return sr(e,t)}))})),this.$watch("exclude",(function(e){ar(t,(function(t){return!sr(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=Ue(t),i=e&&e.componentOptions;if(i){var n=or(i),r=this,o=r.include,s=r.exclude;if(o&&(!n||!sr(o,n))||s&&n&&sr(s,n))return e;var a=this,l=a.cache,c=a.keys,u=null==e.key?i.Ctor.cid+(i.tag?"::".concat(i.tag):""):e.key;l[u]?(e.componentInstance=l[u].componentInstance,w(c,u),c.push(u)):(this.vnodeToCache=e,this.keyToCache=u),e.data.keepAlive=!0}return e||t&&t[0]}},hr={KeepAlive:ur};function dr(t){var e={get:function(){return Z}};Object.defineProperty(t,"config",e),t.util={warn:fn,extend:R,mergeOptions:Tn,defineReactive:Ft},t.set=Nt,t.delete=Vt,t.nextTick=ci,t.observable=function(t){return Bt(t),t},t.options=Object.create(null),G.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,R(t.options.components,hr),Jn(t),tr(t),er(t),rr(t)}dr(Kn),Object.defineProperty(Kn.prototype,"$isServer",{get:ht}),Object.defineProperty(Kn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Kn,"FunctionalRenderContext",{value:tn}),Kn.version=di;var fr=b("style,class"),pr=b("input,textarea,option,select,progress"),mr=function(t,e,i){return"value"===i&&pr(t)&&"button"!==e||"selected"===i&&"option"===t||"checked"===i&&"input"===t||"muted"===i&&"video"===t},gr=b("contenteditable,draggable,spellcheck"),yr=b("events,caret,typing,plaintext-only"),_r=function(t,e){return Er(e)||"false"===e?"false":"contenteditable"===t&&yr(e)?e:"true"},vr=b("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),br="http://www.w3.org/1999/xlink",xr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},wr=function(t){return xr(t)?t.slice(6,t.length):""},Er=function(t){return null==t||!1===t};function Tr(t){var e=t.data,i=t,n=t;while(s(n.componentInstance))n=n.componentInstance._vnode,n&&n.data&&(e=Sr(n.data,e));while(s(i=i.parent))i&&i.data&&(e=Sr(e,i.data));return kr(e.staticClass,e.class)}function Sr(t,e){return{staticClass:Or(t.staticClass,e.staticClass),class:s(t.class)?[t.class,e.class]:e.class}}function kr(t,e){return s(t)||s(e)?Or(t,Ar(e)):""}function Or(t,e){return t?e?t+" "+e:t:e||""}function Ar(t){return Array.isArray(t)?Cr(t):h(t)?Ir(t):"string"===typeof t?t:""}function Cr(t){for(var e,i="",n=0,r=t.length;n<r;n++)s(e=Ar(t[n]))&&""!==e&&(i&&(i+=" "),i+=e);return i}function Ir(t){var e="";for(var i in t)t[i]&&(e&&(e+=" "),e+=i);return e}var Mr={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Pr=b("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Dr=b("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Lr=function(t){return Pr(t)||Dr(t)};function Rr(t){return Dr(t)?"svg":"math"===t?"math":void 0}var zr=Object.create(null);function jr(t){if(!tt)return!0;if(Lr(t))return!1;if(t=t.toLowerCase(),null!=zr[t])return zr[t];var e=document.createElement(t);return t.indexOf("-")>-1?zr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:zr[t]=/HTMLUnknownElement/.test(e.toString())}var Br=b("text,number,password,search,email,tel,url");function Fr(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function Nr(t,e){var i=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&i.setAttribute("multiple","multiple"),i}function Vr(t,e){return document.createElementNS(Mr[t],e)}function $r(t){return document.createTextNode(t)}function Ur(t){return document.createComment(t)}function qr(t,e,i){t.insertBefore(e,i)}function Gr(t,e){t.removeChild(e)}function Wr(t,e){t.appendChild(e)}function Zr(t){return t.parentNode}function Hr(t){return t.nextSibling}function Xr(t){return t.tagName}function Qr(t,e){t.textContent=e}function Yr(t,e){t.setAttribute(e,"")}var Kr=Object.freeze({__proto__:null,createElement:Nr,createElementNS:Vr,createTextNode:$r,createComment:Ur,insertBefore:qr,removeChild:Gr,appendChild:Wr,parentNode:Zr,nextSibling:Hr,tagName:Xr,setTextContent:Qr,setStyleScope:Yr}),Jr={create:function(t,e){to(e)},update:function(t,e){t.data.ref!==e.data.ref&&(to(t,!0),to(e))},destroy:function(t){to(t,!0)}};function to(t,e){var i=t.data.ref;if(s(i)){var n=t.context,o=t.componentInstance||t.elm,a=e?null:o,l=e?void 0:o;if(u(i))Ye(i,n,[a],n,"template ref function");else{var c=t.data.refInFor,h="string"===typeof i||"number"===typeof i,d=Wt(i),f=n.$refs;if(h||d)if(c){var p=h?f[i]:i.value;e?r(p)&&w(p,o):r(p)?p.includes(o)||p.push(o):h?(f[i]=[o],eo(n,i,f[i])):i.value=[o]}else if(h){if(e&&f[i]!==o)return;f[i]=l,eo(n,i,a)}else if(d){if(e&&i.value!==o)return;i.value=a}else 0}}}function eo(t,e,i){var n=t._setupState;n&&T(n,e)&&(Wt(n[e])?n[e].value=i:n[e]=i)}var io=new _t("",{},[]),no=["create","activate","update","remove","destroy"];function ro(t,e){return t.key===e.key&&t.asyncFactory===e.asyncFactory&&(t.tag===e.tag&&t.isComment===e.isComment&&s(t.data)===s(e.data)&&oo(t,e)||a(t.isAsyncPlaceholder)&&o(e.asyncFactory.error))}function oo(t,e){if("input"!==t.tag)return!0;var i,n=s(i=t.data)&&s(i=i.attrs)&&i.type,r=s(i=e.data)&&s(i=i.attrs)&&i.type;return n===r||Br(n)&&Br(r)}function so(t,e,i){var n,r,o={};for(n=e;n<=i;++n)r=t[n].key,s(r)&&(o[r]=n);return o}function ao(t){var e,i,n={},l=t.modules,u=t.nodeOps;for(e=0;e<no.length;++e)for(n[no[e]]=[],i=0;i<l.length;++i)s(l[i][no[e]])&&n[no[e]].push(l[i][no[e]]);function h(t){return new _t(u.tagName(t).toLowerCase(),{},[],void 0,t)}function d(t,e){function i(){0===--i.listeners&&f(t)}return i.listeners=e,i}function f(t){var e=u.parentNode(t);s(e)&&u.removeChild(e,t)}function p(t,e,i,n,r,o,l){if(s(t.elm)&&s(o)&&(t=o[l]=xt(t)),t.isRootInsert=!r,!m(t,e,i,n)){var c=t.data,h=t.children,d=t.tag;s(d)?(t.elm=t.ns?u.createElementNS(t.ns,d):u.createElement(d,t),E(t),v(t,h,e),s(c)&&w(t,e),_(i,t.elm,n)):a(t.isComment)?(t.elm=u.createComment(t.text),_(i,t.elm,n)):(t.elm=u.createTextNode(t.text),_(i,t.elm,n))}}function m(t,e,i,n){var r=t.data;if(s(r)){var o=s(t.componentInstance)&&r.keepAlive;if(s(r=r.hook)&&s(r=r.init)&&r(t,!1),s(t.componentInstance))return g(t,e),_(i,t.elm,n),a(o)&&y(t,e,i,n),!0}}function g(t,e){s(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,x(t)?(w(t,e),E(t)):(to(t),e.push(t))}function y(t,e,i,r){var o,a=t;while(a.componentInstance)if(a=a.componentInstance._vnode,s(o=a.data)&&s(o=o.transition)){for(o=0;o<n.activate.length;++o)n.activate[o](io,a);e.push(a);break}_(i,t.elm,r)}function _(t,e,i){s(t)&&(s(i)?u.parentNode(i)===t&&u.insertBefore(t,e,i):u.appendChild(t,e))}function v(t,e,i){if(r(e)){0;for(var n=0;n<e.length;++n)p(e[n],i,t.elm,null,!0,e,n)}else c(t.text)&&u.appendChild(t.elm,u.createTextNode(String(t.text)))}function x(t){while(t.componentInstance)t=t.componentInstance._vnode;return s(t.tag)}function w(t,i){for(var r=0;r<n.create.length;++r)n.create[r](io,t);e=t.data.hook,s(e)&&(s(e.create)&&e.create(io,t),s(e.insert)&&i.push(t))}function E(t){var e;if(s(e=t.fnScopeId))u.setStyleScope(t.elm,e);else{var i=t;while(i)s(e=i.context)&&s(e=e.$options._scopeId)&&u.setStyleScope(t.elm,e),i=i.parent}s(e=Si)&&e!==t.context&&e!==t.fnContext&&s(e=e.$options._scopeId)&&u.setStyleScope(t.elm,e)}function T(t,e,i,n,r,o){for(;n<=r;++n)p(i[n],o,t,e,!1,i,n)}function S(t){var e,i,r=t.data;if(s(r))for(s(e=r.hook)&&s(e=e.destroy)&&e(t),e=0;e<n.destroy.length;++e)n.destroy[e](t);if(s(e=t.children))for(i=0;i<t.children.length;++i)S(t.children[i])}function k(t,e,i){for(;e<=i;++e){var n=t[e];s(n)&&(s(n.tag)?(O(n),S(n)):f(n.elm))}}function O(t,e){if(s(e)||s(t.data)){var i,r=n.remove.length+1;for(s(e)?e.listeners+=r:e=d(t.elm,r),s(i=t.componentInstance)&&s(i=i._vnode)&&s(i.data)&&O(i,e),i=0;i<n.remove.length;++i)n.remove[i](t,e);s(i=t.data.hook)&&s(i=i.remove)?i(t,e):e()}else f(t.elm)}function A(t,e,i,n,r){var a,l,c,h,d=0,f=0,m=e.length-1,g=e[0],y=e[m],_=i.length-1,v=i[0],b=i[_],x=!r;while(d<=m&&f<=_)o(g)?g=e[++d]:o(y)?y=e[--m]:ro(g,v)?(I(g,v,n,i,f),g=e[++d],v=i[++f]):ro(y,b)?(I(y,b,n,i,_),y=e[--m],b=i[--_]):ro(g,b)?(I(g,b,n,i,_),x&&u.insertBefore(t,g.elm,u.nextSibling(y.elm)),g=e[++d],b=i[--_]):ro(y,v)?(I(y,v,n,i,f),x&&u.insertBefore(t,y.elm,g.elm),y=e[--m],v=i[++f]):(o(a)&&(a=so(e,d,m)),l=s(v.key)?a[v.key]:C(v,e,d,m),o(l)?p(v,n,t,g.elm,!1,i,f):(c=e[l],ro(c,v)?(I(c,v,n,i,f),e[l]=void 0,x&&u.insertBefore(t,c.elm,g.elm)):p(v,n,t,g.elm,!1,i,f)),v=i[++f]);d>m?(h=o(i[_+1])?null:i[_+1].elm,T(t,h,i,f,_,n)):f>_&&k(e,d,m)}function C(t,e,i,n){for(var r=i;r<n;r++){var o=e[r];if(s(o)&&ro(t,o))return r}}function I(t,e,i,r,l,c){if(t!==e){s(e.elm)&&s(r)&&(e=r[l]=xt(e));var h=e.elm=t.elm;if(a(t.isAsyncPlaceholder))s(e.asyncFactory.resolved)?D(t.elm,e,i):e.isAsyncPlaceholder=!0;else if(a(e.isStatic)&&a(t.isStatic)&&e.key===t.key&&(a(e.isCloned)||a(e.isOnce)))e.componentInstance=t.componentInstance;else{var d,f=e.data;s(f)&&s(d=f.hook)&&s(d=d.prepatch)&&d(t,e);var p=t.children,m=e.children;if(s(f)&&x(e)){for(d=0;d<n.update.length;++d)n.update[d](t,e);s(d=f.hook)&&s(d=d.update)&&d(t,e)}o(e.text)?s(p)&&s(m)?p!==m&&A(h,p,m,i,c):s(m)?(s(t.text)&&u.setTextContent(h,""),T(h,null,m,0,m.length-1,i)):s(p)?k(p,0,p.length-1):s(t.text)&&u.setTextContent(h,""):t.text!==e.text&&u.setTextContent(h,e.text),s(f)&&s(d=f.hook)&&s(d=d.postpatch)&&d(t,e)}}}function M(t,e,i){if(a(i)&&s(t.parent))t.parent.data.pendingInsert=e;else for(var n=0;n<e.length;++n)e[n].data.hook.insert(e[n])}var P=b("attrs,class,staticClass,staticStyle,key");function D(t,e,i,n){var r,o=e.tag,l=e.data,c=e.children;if(n=n||l&&l.pre,e.elm=t,a(e.isComment)&&s(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(s(l)&&(s(r=l.hook)&&s(r=r.init)&&r(e,!0),s(r=e.componentInstance)))return g(e,i),!0;if(s(o)){if(s(c))if(t.hasChildNodes())if(s(r=l)&&s(r=r.domProps)&&s(r=r.innerHTML)){if(r!==t.innerHTML)return!1}else{for(var u=!0,h=t.firstChild,d=0;d<c.length;d++){if(!h||!D(h,c[d],i,n)){u=!1;break}h=h.nextSibling}if(!u||h)return!1}else v(e,c,i);if(s(l)){var f=!1;for(var p in l)if(!P(p)){f=!0,w(e,i);break}!f&&l["class"]&&pi(l["class"])}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,i,r){if(!o(e)){var l=!1,c=[];if(o(t))l=!0,p(e,c);else{var d=s(t.nodeType);if(!d&&ro(t,e))I(t,e,c,null,null,r);else{if(d){if(1===t.nodeType&&t.hasAttribute(q)&&(t.removeAttribute(q),i=!0),a(i)&&D(t,e,c))return M(e,c,!0),t;t=h(t)}var f=t.elm,m=u.parentNode(f);if(p(e,c,f._leaveCb?null:m,u.nextSibling(f)),s(e.parent)){var g=e.parent,y=x(e);while(g){for(var _=0;_<n.destroy.length;++_)n.destroy[_](g);if(g.elm=e.elm,y){for(var v=0;v<n.create.length;++v)n.create[v](io,g);var b=g.data.hook.insert;if(b.merged)for(var w=b.fns.slice(1),E=0;E<w.length;E++)w[E]()}else to(g);g=g.parent}}s(m)?k([t],0,0):s(t.tag)&&S(t)}}return M(e,c,l),e.elm}s(t)&&S(t)}}var lo={create:co,update:co,destroy:function(t){co(t,io)}};function co(t,e){(t.data.directives||e.data.directives)&&uo(t,e)}function uo(t,e){var i,n,r,o=t===io,s=e===io,a=fo(t.data.directives,t.context),l=fo(e.data.directives,e.context),c=[],u=[];for(i in l)n=a[i],r=l[i],n?(r.oldValue=n.value,r.oldArg=n.arg,mo(r,"update",e,t),r.def&&r.def.componentUpdated&&u.push(r)):(mo(r,"bind",e,t),r.def&&r.def.inserted&&c.push(r));if(c.length){var h=function(){for(var i=0;i<c.length;i++)mo(c[i],"inserted",e,t)};o?ne(e,"insert",h):h()}if(u.length&&ne(e,"postpatch",(function(){for(var i=0;i<u.length;i++)mo(u[i],"componentUpdated",e,t)})),!o)for(i in a)l[i]||mo(a[i],"unbind",t,t,s)}var ho=Object.create(null);function fo(t,e){var i,n,r=Object.create(null);if(!t)return r;for(i=0;i<t.length;i++){if(n=t[i],n.modifiers||(n.modifiers=ho),r[po(n)]=n,e._setupState&&e._setupState.__sfc){var o=n.def||Sn(e,"_setupState","v-"+n.name);n.def="function"===typeof o?{bind:o,update:o}:o}n.def=n.def||Sn(e.$options,"directives",n.name,!0)}return r}function po(t){return t.rawName||"".concat(t.name,".").concat(Object.keys(t.modifiers||{}).join("."))}function mo(t,e,i,n,r){var o=t.def&&t.def[e];if(o)try{o(i.elm,t,i,n,r)}catch(Js){Qe(Js,i.context,"directive ".concat(t.name," ").concat(e," hook"))}}var go=[Jr,lo];function yo(t,e){var i=e.componentOptions;if((!s(i)||!1!==i.Ctor.options.inheritAttrs)&&(!o(t.data.attrs)||!o(e.data.attrs))){var n,r,l,c=e.elm,u=t.data.attrs||{},h=e.data.attrs||{};for(n in(s(h.__ob__)||a(h._v_attr_proxy))&&(h=e.data.attrs=R({},h)),h)r=h[n],l=u[n],l!==r&&_o(c,n,r,e.data.pre);for(n in(it||rt)&&h.value!==u.value&&_o(c,"value",h.value),u)o(h[n])&&(xr(n)?c.removeAttributeNS(br,wr(n)):gr(n)||c.removeAttribute(n))}}function _o(t,e,i,n){n||t.tagName.indexOf("-")>-1?vo(t,e,i):vr(e)?Er(i)?t.removeAttribute(e):(i="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,i)):gr(e)?t.setAttribute(e,_r(e,i)):xr(e)?Er(i)?t.removeAttributeNS(br,wr(e)):t.setAttributeNS(br,e,i):vo(t,e,i)}function vo(t,e,i){if(Er(i))t.removeAttribute(e);else{if(it&&!nt&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==i&&!t.__ieph){var n=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",n)};t.addEventListener("input",n),t.__ieph=!0}t.setAttribute(e,i)}}var bo={create:yo,update:yo};function xo(t,e){var i=e.elm,n=e.data,r=t.data;if(!(o(n.staticClass)&&o(n.class)&&(o(r)||o(r.staticClass)&&o(r.class)))){var a=Tr(e),l=i._transitionClasses;s(l)&&(a=Or(a,Ar(l))),a!==i._prevClass&&(i.setAttribute("class",a),i._prevClass=a)}}var wo,Eo={create:xo,update:xo},To="__r",So="__c";function ko(t){if(s(t[To])){var e=it?"change":"input";t[e]=[].concat(t[To],t[e]||[]),delete t[To]}s(t[So])&&(t.change=[].concat(t[So],t.change||[]),delete t[So])}function Oo(t,e,i){var n=wo;return function r(){var o=e.apply(null,arguments);null!==o&&Io(t,r,i,n)}}var Ao=ei&&!(at&&Number(at[1])<=53);function Co(t,e,i,n){if(Ao){var r=$i,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=r||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}wo.addEventListener(t,e,ct?{capture:i,passive:n}:i)}function Io(t,e,i,n){(n||wo).removeEventListener(t,e._wrapper||e,i)}function Mo(t,e){if(!o(t.data.on)||!o(e.data.on)){var i=e.data.on||{},n=t.data.on||{};wo=e.elm||t.elm,ko(i),ie(i,n,Co,Io,Oo,e.context),wo=void 0}}var Po,Do={create:Mo,update:Mo,destroy:function(t){return Mo(t,io)}};function Lo(t,e){if(!o(t.data.domProps)||!o(e.data.domProps)){var i,n,r=e.elm,l=t.data.domProps||{},c=e.data.domProps||{};for(i in(s(c.__ob__)||a(c._v_attr_proxy))&&(c=e.data.domProps=R({},c)),l)i in c||(r[i]="");for(i in c){if(n=c[i],"textContent"===i||"innerHTML"===i){if(e.children&&(e.children.length=0),n===l[i])continue;1===r.childNodes.length&&r.removeChild(r.childNodes[0])}if("value"===i&&"PROGRESS"!==r.tagName){r._value=n;var u=o(n)?"":String(n);Ro(r,u)&&(r.value=u)}else if("innerHTML"===i&&Dr(r.tagName)&&o(r.innerHTML)){Po=Po||document.createElement("div"),Po.innerHTML="<svg>".concat(n,"</svg>");var h=Po.firstChild;while(r.firstChild)r.removeChild(r.firstChild);while(h.firstChild)r.appendChild(h.firstChild)}else if(n!==l[i])try{r[i]=n}catch(Js){}}}}function Ro(t,e){return!t.composing&&("OPTION"===t.tagName||zo(t,e)||jo(t,e))}function zo(t,e){var i=!0;try{i=document.activeElement!==t}catch(Js){}return i&&t.value!==e}function jo(t,e){var i=t.value,n=t._vModifiers;if(s(n)){if(n.number)return v(i)!==v(e);if(n.trim)return i.trim()!==e.trim()}return i!==e}var Bo={create:Lo,update:Lo},Fo=S((function(t){var e={},i=/;(?![^(]*\))/g,n=/:(.+)/;return t.split(i).forEach((function(t){if(t){var i=t.split(n);i.length>1&&(e[i[0].trim()]=i[1].trim())}})),e}));function No(t){var e=Vo(t.style);return t.staticStyle?R(t.staticStyle,e):e}function Vo(t){return Array.isArray(t)?z(t):"string"===typeof t?Fo(t):t}function $o(t,e){var i,n={};if(e){var r=t;while(r.componentInstance)r=r.componentInstance._vnode,r&&r.data&&(i=No(r.data))&&R(n,i)}(i=No(t.data))&&R(n,i);var o=t;while(o=o.parent)o.data&&(i=No(o.data))&&R(n,i);return n}var Uo,qo=/^--/,Go=/\s*!important$/,Wo=function(t,e,i){if(qo.test(e))t.style.setProperty(e,i);else if(Go.test(i))t.style.setProperty(I(e),i.replace(Go,""),"important");else{var n=Ho(e);if(Array.isArray(i))for(var r=0,o=i.length;r<o;r++)t.style[n]=i[r];else t.style[n]=i}},Zo=["Webkit","Moz","ms"],Ho=S((function(t){if(Uo=Uo||document.createElement("div").style,t=O(t),"filter"!==t&&t in Uo)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<Zo.length;i++){var n=Zo[i]+e;if(n in Uo)return n}}));function Xo(t,e){var i=e.data,n=t.data;if(!(o(i.staticStyle)&&o(i.style)&&o(n.staticStyle)&&o(n.style))){var r,a,l=e.elm,c=n.staticStyle,u=n.normalizedStyle||n.style||{},h=c||u,d=Vo(e.data.style)||{};e.data.normalizedStyle=s(d.__ob__)?R({},d):d;var f=$o(e,!0);for(a in h)o(f[a])&&Wo(l,a,"");for(a in f)r=f[a],Wo(l,a,null==r?"":r)}}var Qo={create:Xo,update:Xo},Yo=/\s+/;function Ko(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Yo).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var i=" ".concat(t.getAttribute("class")||""," ");i.indexOf(" "+e+" ")<0&&t.setAttribute("class",(i+e).trim())}}function Jo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Yo).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var i=" ".concat(t.getAttribute("class")||""," "),n=" "+e+" ";while(i.indexOf(n)>=0)i=i.replace(n," ");i=i.trim(),i?t.setAttribute("class",i):t.removeAttribute("class")}}function ts(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&R(e,es(t.name||"v")),R(e,t),e}return"string"===typeof t?es(t):void 0}}var es=S((function(t){return{enterClass:"".concat(t,"-enter"),enterToClass:"".concat(t,"-enter-to"),enterActiveClass:"".concat(t,"-enter-active"),leaveClass:"".concat(t,"-leave"),leaveToClass:"".concat(t,"-leave-to"),leaveActiveClass:"".concat(t,"-leave-active")}})),is=tt&&!nt,ns="transition",rs="animation",os="transition",ss="transitionend",as="animation",ls="animationend";is&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(os="WebkitTransition",ss="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(as="WebkitAnimation",ls="webkitAnimationEnd"));var cs=tt?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function us(t){cs((function(){cs(t)}))}function hs(t,e){var i=t._transitionClasses||(t._transitionClasses=[]);i.indexOf(e)<0&&(i.push(e),Ko(t,e))}function ds(t,e){t._transitionClasses&&w(t._transitionClasses,e),Jo(t,e)}function fs(t,e,i){var n=ms(t,e),r=n.type,o=n.timeout,s=n.propCount;if(!r)return i();var a=r===ns?ss:ls,l=0,c=function(){t.removeEventListener(a,u),i()},u=function(e){e.target===t&&++l>=s&&c()};setTimeout((function(){l<s&&c()}),o+1),t.addEventListener(a,u)}var ps=/\b(transform|all)(,|$)/;function ms(t,e){var i,n=window.getComputedStyle(t),r=(n[os+"Delay"]||"").split(", "),o=(n[os+"Duration"]||"").split(", "),s=gs(r,o),a=(n[as+"Delay"]||"").split(", "),l=(n[as+"Duration"]||"").split(", "),c=gs(a,l),u=0,h=0;e===ns?s>0&&(i=ns,u=s,h=o.length):e===rs?c>0&&(i=rs,u=c,h=l.length):(u=Math.max(s,c),i=u>0?s>c?ns:rs:null,h=i?i===ns?o.length:l.length:0);var d=i===ns&&ps.test(n[os+"Property"]);return{type:i,timeout:u,propCount:h,hasTransform:d}}function gs(t,e){while(t.length<e.length)t=t.concat(t);return Math.max.apply(null,e.map((function(e,i){return ys(e)+ys(t[i])})))}function ys(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function _s(t,e){var i=t.elm;s(i._leaveCb)&&(i._leaveCb.cancelled=!0,i._leaveCb());var n=ts(t.data.transition);if(!o(n)&&!s(i._enterCb)&&1===i.nodeType){var r=n.css,a=n.type,l=n.enterClass,c=n.enterToClass,d=n.enterActiveClass,f=n.appearClass,p=n.appearToClass,m=n.appearActiveClass,g=n.beforeEnter,y=n.enter,_=n.afterEnter,b=n.enterCancelled,x=n.beforeAppear,w=n.appear,E=n.afterAppear,T=n.appearCancelled,S=n.duration,k=Si,O=Si.$vnode;while(O&&O.parent)k=O.context,O=O.parent;var A=!k._isMounted||!t.isRootInsert;if(!A||w||""===w){var C=A&&f?f:l,I=A&&m?m:d,M=A&&p?p:c,P=A&&x||g,D=A&&u(w)?w:y,L=A&&E||_,R=A&&T||b,z=v(h(S)?S.enter:S);0;var j=!1!==r&&!nt,B=xs(D),F=i._enterCb=$((function(){j&&(ds(i,M),ds(i,I)),F.cancelled?(j&&ds(i,C),R&&R(i)):L&&L(i),i._enterCb=null}));t.data.show||ne(t,"insert",(function(){var e=i.parentNode,n=e&&e._pending&&e._pending[t.key];n&&n.tag===t.tag&&n.elm._leaveCb&&n.elm._leaveCb(),D&&D(i,F)})),P&&P(i),j&&(hs(i,C),hs(i,I),us((function(){ds(i,C),F.cancelled||(hs(i,M),B||(bs(z)?setTimeout(F,z):fs(i,a,F)))}))),t.data.show&&(e&&e(),D&&D(i,F)),j||B||F()}}}function vs(t,e){var i=t.elm;s(i._enterCb)&&(i._enterCb.cancelled=!0,i._enterCb());var n=ts(t.data.transition);if(o(n)||1!==i.nodeType)return e();if(!s(i._leaveCb)){var r=n.css,a=n.type,l=n.leaveClass,c=n.leaveToClass,u=n.leaveActiveClass,d=n.beforeLeave,f=n.leave,p=n.afterLeave,m=n.leaveCancelled,g=n.delayLeave,y=n.duration,_=!1!==r&&!nt,b=xs(f),x=v(h(y)?y.leave:y);0;var w=i._leaveCb=$((function(){i.parentNode&&i.parentNode._pending&&(i.parentNode._pending[t.key]=null),_&&(ds(i,c),ds(i,u)),w.cancelled?(_&&ds(i,l),m&&m(i)):(e(),p&&p(i)),i._leaveCb=null}));g?g(E):E()}function E(){w.cancelled||(!t.data.show&&i.parentNode&&((i.parentNode._pending||(i.parentNode._pending={}))[t.key]=t),d&&d(i),_&&(hs(i,l),hs(i,u),us((function(){ds(i,l),w.cancelled||(hs(i,c),b||(bs(x)?setTimeout(w,x):fs(i,a,w)))}))),f&&f(i,w),_||b||w())}}function bs(t){return"number"===typeof t&&!isNaN(t)}function xs(t){if(o(t))return!1;var e=t.fns;return s(e)?xs(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function ws(t,e){!0!==e.data.show&&_s(e)}var Es=tt?{create:ws,activate:ws,remove:function(t,e){!0!==t.data.show?vs(t,e):e()}}:{},Ts=[bo,Eo,Do,Bo,Qo,Es],Ss=Ts.concat(go),ks=ao({nodeOps:Kr,modules:Ss});nt&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&Ls(t,"input")}));var Os={inserted:function(t,e,i,n){"select"===i.tag?(n.elm&&!n.elm._vOptions?ne(i,"postpatch",(function(){Os.componentUpdated(t,e,i)})):As(t,e,i.context),t._vOptions=[].map.call(t.options,Ms)):("textarea"===i.tag||Br(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",Ps),t.addEventListener("compositionend",Ds),t.addEventListener("change",Ds),nt&&(t.vmodel=!0)))},componentUpdated:function(t,e,i){if("select"===i.tag){As(t,e,i.context);var n=t._vOptions,r=t._vOptions=[].map.call(t.options,Ms);if(r.some((function(t,e){return!N(t,n[e])}))){var o=t.multiple?e.value.some((function(t){return Is(t,r)})):e.value!==e.oldValue&&Is(e.value,r);o&&Ls(t,"change")}}}};function As(t,e,i){Cs(t,e,i),(it||rt)&&setTimeout((function(){Cs(t,e,i)}),0)}function Cs(t,e,i){var n=e.value,r=t.multiple;if(!r||Array.isArray(n)){for(var o,s,a=0,l=t.options.length;a<l;a++)if(s=t.options[a],r)o=V(n,Ms(s))>-1,s.selected!==o&&(s.selected=o);else if(N(Ms(s),n))return void(t.selectedIndex!==a&&(t.selectedIndex=a));r||(t.selectedIndex=-1)}}function Is(t,e){return e.every((function(e){return!N(e,t)}))}function Ms(t){return"_value"in t?t._value:t.value}function Ps(t){t.target.composing=!0}function Ds(t){t.target.composing&&(t.target.composing=!1,Ls(t.target,"input"))}function Ls(t,e){var i=document.createEvent("HTMLEvents");i.initEvent(e,!0,!0),t.dispatchEvent(i)}function Rs(t){return!t.componentInstance||t.data&&t.data.transition?t:Rs(t.componentInstance._vnode)}var zs={bind:function(t,e,i){var n=e.value;i=Rs(i);var r=i.data&&i.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;n&&r?(i.data.show=!0,_s(i,(function(){t.style.display=o}))):t.style.display=n?o:"none"},update:function(t,e,i){var n=e.value,r=e.oldValue;if(!n!==!r){i=Rs(i);var o=i.data&&i.data.transition;o?(i.data.show=!0,n?_s(i,(function(){t.style.display=t.__vOriginalDisplay})):vs(i,(function(){t.style.display="none"}))):t.style.display=n?t.__vOriginalDisplay:"none"}},unbind:function(t,e,i,n,r){r||(t.style.display=t.__vOriginalDisplay)}},js={model:Os,show:zs},Bs={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Fs(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Fs(Ue(e.children)):t}function Ns(t){var e={},i=t.$options;for(var n in i.propsData)e[n]=t[n];var r=i._parentListeners;for(var n in r)e[O(n)]=r[n];return e}function Vs(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function $s(t){while(t=t.parent)if(t.data.transition)return!0}function Us(t,e){return e.key===t.key&&e.tag===t.tag}var qs=function(t){return t.tag||Oe(t)},Gs=function(t){return"show"===t.name},Ws={name:"transition",props:Bs,abstract:!0,render:function(t){var e=this,i=this.$slots.default;if(i&&(i=i.filter(qs),i.length)){0;var n=this.mode;0;var r=i[0];if($s(this.$vnode))return r;var o=Fs(r);if(!o)return r;if(this._leaving)return Vs(t,r);var s="__transition-".concat(this._uid,"-");o.key=null==o.key?o.isComment?s+"comment":s+o.tag:c(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var a=(o.data||(o.data={})).transition=Ns(this),l=this._vnode,u=Fs(l);if(o.data.directives&&o.data.directives.some(Gs)&&(o.data.show=!0),u&&u.data&&!Us(o,u)&&!Oe(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var h=u.data.transition=R({},a);if("out-in"===n)return this._leaving=!0,ne(h,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),Vs(t,r);if("in-out"===n){if(Oe(o))return l;var d,f=function(){d()};ne(a,"afterEnter",f),ne(a,"enterCancelled",f),ne(h,"delayLeave",(function(t){d=t}))}}return r}}},Zs=R({tag:String,moveClass:String},Bs);delete Zs.mode;var Hs={props:Zs,beforeMount:function(){var t=this,e=this._update;this._update=function(i,n){var r=ki(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,r(),e.call(t,i,n)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",i=Object.create(null),n=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],s=Ns(this),a=0;a<r.length;a++){var l=r[a];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))o.push(l),i[l.key]=l,(l.data||(l.data={})).transition=s;else;}if(n){var c=[],u=[];for(a=0;a<n.length;a++){l=n[a];l.data.transition=s,l.data.pos=l.elm.getBoundingClientRect(),i[l.key]?c.push(l):u.push(l)}this.kept=t(e,null,c),this.removed=u}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(Xs),t.forEach(Qs),t.forEach(Ys),this._reflow=document.body.offsetHeight,t.forEach((function(t){if(t.data.moved){var i=t.elm,n=i.style;hs(i,e),n.transform=n.WebkitTransform=n.transitionDuration="",i.addEventListener(ss,i._moveCb=function t(n){n&&n.target!==i||n&&!/transform$/.test(n.propertyName)||(i.removeEventListener(ss,t),i._moveCb=null,ds(i,e))})}})))},methods:{hasMove:function(t,e){if(!is)return!1;if(this._hasMove)return this._hasMove;var i=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach((function(t){Jo(i,t)})),Ko(i,e),i.style.display="none",this.$el.appendChild(i);var n=ms(i);return this.$el.removeChild(i),this._hasMove=n.hasTransform}}};function Xs(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Qs(t){t.data.newPos=t.elm.getBoundingClientRect()}function Ys(t){var e=t.data.pos,i=t.data.newPos,n=e.left-i.left,r=e.top-i.top;if(n||r){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate(".concat(n,"px,").concat(r,"px)"),o.transitionDuration="0s"}}var Ks={Transition:Ws,TransitionGroup:Hs};Kn.config.mustUseProp=mr,Kn.config.isReservedTag=Lr,Kn.config.isReservedAttr=fr,Kn.config.getTagNamespace=Rr,Kn.config.isUnknownElement=jr,R(Kn.options.directives,js),R(Kn.options.components,Ks),Kn.prototype.__patch__=tt?ks:j,Kn.prototype.$mount=function(t,e){return t=t&&tt?Fr(t):void 0,Ci(this,t,e)},tt&&setTimeout((function(){Z.devtools&&dt&&dt.emit("init",Kn)}),0)}).call(this,i("c8ba"))}
7,"2b62":function(t,e,i){},"2ba4":function(t,e,i){"use strict";var n=i("40d5"),r=Function.prototype,o=r.apply,s=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(o):function(){return s.apply(o,arguments)})},"2c4c":function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("4623");function r(t){var e=new Set([t]);return e.forEach((function(t){Object(n["a"])(t)&&o(t)===t&&Object.getOwnPropertyNames(t).forEach((function(i){Object(n["a"])(t[i])&&e.add(t[i])}))})),t}function o(t){if(!1!==globalThis.__DEV__&&!Object.isFrozen(t))try{Object.freeze(t)}catch(e){if(e instanceof TypeError)return null;throw e}return t}function s(t){return!1!==globalThis.__DEV__&&r(t),t}},"2cee":function(t,e,i){"use strict";i.d(e,"a",(function(){return h}));var n=i("eee5"),r=i("cdfd"),o=i("b070"),s=i("8f69"),a=i("6a8f"),l=i("4251"),c=i("876b");function u(t){return t}var h=function(){function t(t,e){void 0===e&&(e=Object.create(null)),this.resultCache=r["d"]?new WeakSet:new Set,this.transform=t,e.getCacheKey&&(this.getCacheKey=e.getCacheKey),this.cached=!1!==e.cache,this.resetCache()}return t.prototype.getCacheKey=function(t){return[t]},t.identity=function(){return new t(u,{cache:!1})},t.split=function(e,i,n){return void 0===n&&(n=t.identity()),Object.assign(new t((function(t){var r=e(t)?i:n;return r.transformDocument(t)}),{cache:!1}),{left:i,right:n})},t.prototype.resetCache=function(){var e=this;if(this.cached){var i=new n["a"](r["c"]);this.performWork=Object(l["c"])(t.prototype.performWork.bind(this),{makeCacheKey:function(t){var n=e.getCacheKey(t);if(n)return Object(s["b"])(Array.isArray(n),77),i.lookupArray(n)},max:c["a"]["documentTransform.cache"],cache:a["a"]})}},t.prototype.performWork=function(t){return Object(o["a"])(t),this.transform(t)},t.prototype.transformDocument=function(t){if(this.resultCache.has(t))return t;var e=this.performWork(t);return this.resultCache.add(e),e},t.prototype.concat=function(e){var i=this;return Object.assign(new t((function(t){return e.transformDocument(i.transformDocument(t))}),{cache:!1}),{left:this,right:e})},t}()},"2d69":function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("fe35"),r=i("2c4c"),o=i("e7a4"),s=i("41c0"),a=i("dc7e"),l=i("8f69");function c(t,e,i){return a["c"].withValue(!0,(function(){var n=h(t,e,i,!1);return Object.isFrozen(t)&&Object(r["a"])(n),n}))}function u(t,e){if(e.has(t))return e.get(t);var i=Array.isArray(t)?[]:Object.create(null);return e.set(t,i),i}function h(t,e,i,r,a){var c,f=i.knownChanged,p=u(t,i.mutableTargets);if(Array.isArray(t)){for(var m=0,g=Array.from(t.entries());m<g.length;m++){var y=g[m],_=y[0],v=y[1];if(null!==v){var b=h(v,e,i,r,!1!==globalThis.__DEV__?"".concat(a||"","[").concat(_,"]"):void 0);f.has(b)&&f.add(p),p[_]=b}else p[_]=null}return f.has(p)?p:t}for(var x=0,w=e.selections;x<w.length;x++){var E=w[x],T=void 0;if(r&&f.add(p),E.kind===n["a"].FIELD){var S=Object(o["i"])(E),k=E.selectionSet;if(T=p[S]||t[S],void 0===T)continue;if(k&&null!==T){b=h(t[S],k,i,r,!1!==globalThis.__DEV__?"".concat(a||"",".").concat(S):void 0);f.has(b)&&(T=b)}!1===globalThis.__DEV__&&(p[S]=T),!1!==globalThis.__DEV__&&(r&&"__typename"!==S&&!(null===(c=Object.getOwnPropertyDescriptor(p,S))||void 0===c?void 0:c.value)?Object.defineProperty(p,S,d(S,T,a||"",i.operationName,i.operationType)):(delete p[S],p[S]=T))}if(E.kind!==n["a"].INLINE_FRAGMENT||E.typeCondition&&!i.cache.fragmentMatches(E,t.__typename)||(T=h(t,E.selectionSet,i,r,a)),E.kind===n["a"].FRAGMENT_SPREAD){var O=E.name.value,A=i.fragmentMap[O]||(i.fragmentMap[O]=i.cache.lookupFragment(O));Object(l["b"])(A,47,O);var C=Object(s["a"])(E);"mask"!==C&&(T=h(t,A.selectionSet,i,"migrate"===C,a))}f.has(T)&&f.add(p)}return"__typename"in t&&!("__typename"in p)&&(p.__typename=t.__typename),Object.keys(p).length!==Object.keys(t).length&&f.add(p),f.has(p)?p:t}function d(t,e,i,n,r){var o=function(){return a["c"].getValue()||(!1!==globalThis.__DEV__&&l["b"].warn(48,n?"".concat(r," '").concat(n,"'"):"anonymous ".concat(r),"".concat(i,".").concat(t).replace(/^\./,"")),o=function(){return e}),e};return{get:function(){return o()},set:function(t){o=function(){return t}},enumerable:!0,configurable:!0}}}
7,"2edf":function(t,e,i){},"2f6c":function(t,e,i){"use strict";i.d(e,"a",(function(){return a})),i.d(e,"b",(function(){return l}));var n=i("b774"),r=i("ad67"),o=i("9257"),s=i("fe35");const a=Object.freeze({});function l(t,e,i=o["c"]){const l=new Map;for(const n of Object.values(s["a"]))l.set(n,c(e,n));let u=void 0,h=Array.isArray(t),d=[t],f=-1,p=[],m=t,g=void 0,y=void 0;const _=[],v=[];do{f++;const t=f===d.length,s=t&&0!==p.length;if(t){if(g=0===v.length?void 0:_[_.length-1],m=y,y=v.pop(),s)if(h){m=m.slice();let t=0;for(const[e,i]of p){const n=e-t;null===i?(m.splice(n,1),t++):m[n]=i}}else{m=Object.defineProperties({},Object.getOwnPropertyDescriptors(m));for(const[t,e]of p)m[t]=e}f=u.index,d=u.keys,p=u.edits,h=u.inArray,u=u.prev}else if(y){if(g=h?f:d[f],m=y[g],null===m||void 0===m)continue;_.push(g)}let c;if(!Array.isArray(m)){var b,x;Object(o["e"])(m)||Object(n["a"])(!1,`Invalid AST Node: ${Object(r["a"])(m)}.`);const i=t?null===(b=l.get(m.kind))||void 0===b?void 0:b.leave:null===(x=l.get(m.kind))||void 0===x?void 0:x.enter;if(c=null===i||void 0===i?void 0:i.call(e,m,g,y,_,v),c===a)break;if(!1===c){if(!t){_.pop();continue}}else if(void 0!==c&&(p.push([g,c]),!t)){if(!Object(o["e"])(c)){_.pop();continue}m=c}}var w;if(void 0===c&&s&&p.push([g,m]),t)_.pop();else u={inArray:h,index:f,keys:d,edits:p,prev:u},h=Array.isArray(m),d=h?m:null!==(w=i[m.kind])&&void 0!==w?w:[],f=-1,p=[],y&&v.push(y),y=m}while(void 0!==u);return 0!==p.length?p[p.length-1][1]:t}function c(t,e){const i=t[e];return"object"===typeof i?i:"function"===typeof i?{enter:i,leave:void 0}:{enter:t.enter,leave:t.leave}}},"30c8":function(t,e,i){"use strict";i.d(e,"a",(function(){return H}));var n=i("9ab4"),r=i("dd2f"),o=i("8f69"),s=i("41c0"),a=i("2995"),l=function(t,e){var i;try{i=JSON.stringify(t)}catch(r){var n=Object(o["d"])(42,e,r.message);throw n.parseError=r,n}return i},c=function(t,e){var i=t.getContext(),n=i.uri;return n||("function"===typeof e?e(t):e||"/graphql")},u=i("cdfd");function h(t){var e,i=t[Symbol.asyncIterator]();return e={next:function(){return i.next()}},e[Symbol.asyncIterator]=function(){return this},e}function d(t){var e=null,i=null,n=!1,r=[],o=[];function s(t){if(!i){if(o.length){var e=o.shift();if(Array.isArray(e)&&e[0])return e[0]({value:t,done:!1})}r.push(t)}}function a(t){i=t;var n=o.slice();n.forEach((function(e){e[1](t)})),!e||e()}function l(){n=!0;var t=o.slice();t.forEach((function(t){t[0]({value:void 0,done:!0})})),!e||e()}function c(){return new Promise((function(t,e){return i?e(i):r.length?t({value:r.shift(),done:!1}):n?t({value:void 0,done:!0}):void o.push([t,e])}))}e=function(){e=null,t.removeListener("data",s),t.removeListener("error",a),t.removeListener("end",l),t.removeListener("finish",l),t.removeListener("close",l)},t.on("data",s),t.on("error",a),t.on("end",l),t.on("finish",l),t.on("close",l);var h={next:function(){return c()}};return u["a"]&&(h[Symbol.asyncIterator]=function(){return this}),h}function f(t){var e=!1,i={next:function(){return e?Promise.resolve({value:void 0,done:!0}):(e=!0,new Promise((function(e,i){t.then((function(t){e({value:t,done:!1})})).catch(i)})))}};return u["a"]&&(i[Symbol.asyncIterator]=function(){return this}),i}function p(t){var e={next:function(){return t.read()}};return u["a"]&&(e[Symbol.asyncIterator]=function(){return this}),e}function m(t){return!!t.body}function g(t){return!!t.getReader}function y(t){return!(!u["a"]||!t[Symbol.asyncIterator])}function _(t){return!!t.stream}function v(t){return!!t.arrayBuffer}function b(t){return!!t.pipe}function x(t){var e=t;if(m(t)&&(e=t.body),y(e))return h(e);if(g(e))return p(e.getReader());if(_(e))return p(e.stream().getReader());if(v(e))return f(e.arrayBuffer());if(b(e))return d(e);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var w=function(t,e,i){var n=new Error(i);throw n.name="ServerError",n.response=t,n.statusCode=t.status,n.result=e,n},E=i("3ca0"),T=i("1034"),S=Object.prototype.hasOwnProperty;function k(t,e){return Object(n["b"])(this,void 0,void 0,(function(){var i,r,o,s,a,l,c,u,h,d,f,p,m,g,y,_,v,b,w,S,k,C,I,M;return Object(n["d"])(this,(function(P){switch(P.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");i=new TextDecoder("utf-8"),r=null===(M=t.headers)||void 0===M?void 0:M.get("content-type"),o="boundary=",s=(null===r||void 0===r?void 0:r.includes(o))?null===r||void 0===r?void 0:r.substring((null===r||void 0===r?void 0:r.indexOf(o))+o.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",a="\r\n--".concat(s),l="",c=x(t),u=!0,P.label=1;case 1:return u?[4,c.next()]:[3,3];case 2:h=P.sent(),d=h.value,f=h.done,p="string"===typeof d?d:i.decode(d),m=l.length-a.length+1,u=!f,l+=p,g=l.indexOf(a,m);
7while(g>-1){if(y=void 0,C=[l.slice(0,g),l.slice(g+a.length)],y=C[0],l=C[1],_=y.indexOf("\r\n\r\n"),v=O(y.slice(0,_)),b=v["content-type"],b&&-1===b.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(w=y.slice(_),w)if(S=A(t,w),Object.keys(S).length>1||"data"in S||"incremental"in S||"errors"in S||"payload"in S)if(Object(T["a"])(S)){if(k={},"payload"in S){if(1===Object.keys(S).length&&null===S.payload)return[2];k=Object(n["a"])({},S.payload)}"errors"in S&&(k=Object(n["a"])(Object(n["a"])({},k),{extensions:Object(n["a"])(Object(n["a"])({},"extensions"in k?k.extensions:null),(I={},I[E["b"]]=S.errors,I))})),e(k)}else e(S);else if(1===Object.keys(S).length&&"hasNext"in S&&!S.hasNext)return[2];g=l.indexOf(a)}return[3,1];case 3:return[2]}}))}))}function O(t){var e={};return t.split("\n").forEach((function(t){var i=t.indexOf(":");if(i>-1){var n=t.slice(0,i).trim().toLowerCase(),r=t.slice(i+1).trim();e[n]=r}})),e}function A(t,e){if(t.status>=300){var i=function(){try{return JSON.parse(e)}catch(t){return e}};w(t,i(),"Response not successful: Received status code ".concat(t.status))}try{return JSON.parse(e)}catch(r){var n=r;throw n.name="ServerParseError",n.response=t,n.statusCode=t.status,n.bodyText=e,n}}function C(t,e){t.result&&t.result.errors&&t.result.data&&e.next(t.result),e.error(t)}function I(t){return function(e){return e.text().then((function(t){return A(e,t)})).then((function(i){return Array.isArray(i)||S.call(i,"data")||S.call(i,"errors")||w(e,i,"Server response was missing for query '".concat(Array.isArray(t)?t.map((function(t){return t.operationName})):t.operationName,"'.")),i}))}}var M=function(t){if(!t&&"undefined"===typeof fetch)throw Object(o["d"])(40)},P=i("1c5e"),D={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},L={accept:"*/*","content-type":"application/json"},R={method:"POST"},z={http:D,headers:L,options:R},j=function(t,e){return e(t)};function B(t,e){for(var i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];var o={},s={};i.forEach((function(t){o=Object(n["a"])(Object(n["a"])(Object(n["a"])({},o),t.options),{headers:Object(n["a"])(Object(n["a"])({},o.headers),t.headers)}),t.credentials&&(o.credentials=t.credentials),s=Object(n["a"])(Object(n["a"])({},s),t.http)})),o.headers&&(o.headers=F(o.headers,s.preserveHeaderCase));var a=t.operationName,l=t.extensions,c=t.variables,u=t.query,h={operationName:a,variables:c};return s.includeExtensions&&(h.extensions=l),s.includeQuery&&(h.query=e(u,P["a"])),{options:o,body:h}}function F(t,e){if(!e){var i={};return Object.keys(Object(t)).forEach((function(e){i[e.toLowerCase()]=t[e]})),i}var n={};Object.keys(Object(t)).forEach((function(e){n[e.toLowerCase()]={originalName:e,value:t[e]}}));var r={};return Object.keys(n).forEach((function(t){r[n[t].originalName]=n[t].value})),r}function N(t,e){var i=[],n=function(t,e){i.push("".concat(t,"=").concat(encodeURIComponent(e)))};if("query"in e&&n("query",e.query),e.operationName&&n("operationName",e.operationName),e.variables){var r=void 0;try{r=l(e.variables,"Variables map")}catch(d){return{parseError:d}}n("variables",r)}if(e.extensions){var o=void 0;try{o=l(e.extensions,"Extensions map")}catch(d){return{parseError:d}}n("extensions",o)}var s="",a=t,c=t.indexOf("#");-1!==c&&(s=t.substr(c),a=t.substr(0,c));var u=-1===a.indexOf("?")?"?":"&",h=a+u+i.join("&")+s;return{newURI:h}}function V(t){return new a["a"]((function(e){e.error(t)}))}var $=i("2f6c");function U(t,e){var i=Object(n["a"])({},t),r=new Set(Object.keys(t));return Object($["b"])(e,{Variable:function(t,e,i){i&&"VariableDefinition"!==i.kind&&r.delete(t.name.value)}}),r.forEach((function(t){delete i[t]})),i}var q=i("0403"),G=i("b070"),W=Object(o["c"])((function(){return fetch})),Z=function(t){void 0===t&&(t={});var e=t.uri,i=void 0===e?"/graphql":e,u=t.fetch,h=t.print,d=void 0===h?j:h,f=t.includeExtensions,p=t.preserveHeaderCase,m=t.useGETForQueries,g=t.includeUnusedVariables,y=void 0!==g&&g,_=Object(n["e"])(t,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&M(u||W);var v={http:{includeExtensions:f,preserveHeaderCase:p},options:_.fetchOptions,credentials:_.credentials,headers:_.headers};return new r["a"]((function(t){var e=c(t,i),r=t.getContext(),h={};if(r.clientAwareness){var f=r.clientAwareness,p=f.name,g=f.version;p&&(h["apollographql-client-name"]=p),g&&(h["apollographql-client-version"]=g)}var _=Object(n["a"])(Object(n["a"])({},h),r.headers),b={http:r.http,options:r.fetchOptions,credentials:r.credentials,headers:_};if(Object(s["c"])(["client"],t.query)){var x=Object(q["d"])(t.query);if(!x)return V(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));t.query=x}var w,E=B(t,d,z,v,b),T=E.options,S=E.body;S.variables&&!y&&(S.variables=U(S.variables,t.query)),T.signal||"undefined"===typeof AbortController||(w=new AbortController,T.signal=w.signal);var O=function(t){return"OperationDefinition"===t.kind&&"mutation"===t.operation},A=function(t){return"OperationDefinition"===t.kind&&"subscription"===t.operation},M=A(Object(G["e"])(t.query)),P=Object(s["c"])(["defer"],t.query);if(m&&!t.query.definitions.some(O)&&(T.method="GET"),P||M){T.headers=T.headers||{};var D="multipart/mixed;";M&&P&&!1!==globalThis.__DEV__&&o["b"].warn(41),M?D+="boundary=graphql;subscriptionSpec=1.0,application/json":P&&(D+="deferSpec=20220824,application/json"),T.headers.accept=D}if("GET"===T.method){var L=N(e,S),R=L.newURI,j=L.parseError;if(j)return V(j);e=R}else try{T.body=l(S,"Payload")}catch(j){return V(j)}return new a["a"]((function(i){var n=u||Object(o["c"])((function(){return fetch}))||W,r=i.next.bind(i);return n(e,T).then((function(e){var i;t.setContext({response:e});var n=null===(i=e.headers)||void 0===i?void 0:i.get("content-type");return null!==n&&/^multipart\/mixed/i.test(n)?k(e,r):I(t)(e).then(r)})).then((function(){w=void 0,i.complete()}
7)).catch((function(t){w=void 0,C(t,i)})),function(){w&&w.abort()}}))}))},H=function(t){function e(e){void 0===e&&(e={});var i=t.call(this,Z(e).request)||this;return i.options=e,i}return Object(n["c"])(e,t),e}(r["a"])},3129:function(t,e,i){"use strict";i("14d9"),i("e9f5"),i("ab43"),i("1f09");var n=i("c995"),r=i("24b2"),o=i("7560"),s=i("58df"),a=i("80d2");e["a"]=Object(s["a"])(n["a"],r["a"],o["a"]).extend({name:"VSkeletonLoader",props:{boilerplate:Boolean,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},tile:Boolean,transition:String,type:String,types:{type:Object,default:()=>({})}},computed:{attrs(){return this.isLoading?{"aria-busy":!this.boilerplate||void 0,"aria-live":this.boilerplate?void 0:"polite","aria-label":this.boilerplate?void 0:this.$vuetify.lang.t(this.loadingText),role:this.boilerplate?void 0:"alert",...this.$attrs}:this.$attrs},classes(){return{"v-skeleton-loader--boilerplate":this.boilerplate,"v-skeleton-loader--is-loading":this.isLoading,"v-skeleton-loader--tile":this.tile,...this.themeClasses,...this.elevationClasses}},isLoading(){return!("default"in this.$scopedSlots)||this.loading},rootTypes(){return{actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, card-heading","card-avatar":"image, list-item-avatar","card-heading":"heading",chip:"chip","date-picker":"list-item, card-heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",paragraph:"text@3",sentences:"text@2",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"heading, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"table-cell@6","table-cell":"text","table-tfoot":"text@2, avatar@2",text:"text",...this.types}}},methods:{genBone(t,e){return this.$createElement("div",{staticClass:`v-skeleton-loader__${t} v-skeleton-loader__bone`},e)},genBones(t){const[e,i]=t.split("@"),n=()=>this.genStructure(e);return Array.from({length:i}).map(n)},genStructure(t){let e=[];t=t||this.type||"";const i=this.rootTypes[t]||"";if(t===i);else{if(t.indexOf(",")>-1)return this.mapBones(t);if(t.indexOf("@")>-1)return this.genBones(t);i.indexOf(",")>-1?e=this.mapBones(i):i.indexOf("@")>-1?e=this.genBones(i):i&&e.push(this.genStructure(i))}return[this.genBone(t,e)]},genSkeleton(){const t=[];return this.isLoading?t.push(this.genStructure()):t.push(Object(a["m"])(this)),this.transition?this.$createElement("transition",{props:{name:this.transition},on:{afterEnter:this.resetStyles,beforeEnter:this.onBeforeEnter,beforeLeave:this.onBeforeLeave,leaveCancelled:this.resetStyles}},t):t},mapBones(t){return t.replace(/\s/g,"").split(",").map(this.genStructure)},onBeforeEnter(t){this.resetStyles(t),this.isLoading&&(t._initialStyle={display:t.style.display,transition:t.style.transition},t.style.setProperty("transition","none","important"))},onBeforeLeave(t){t.style.setProperty("display","none","important")},resetStyles(t){t._initialStyle&&(t.style.display=t._initialStyle.display||"",t.style.transition=t._initialStyle.transition,delete t._initialStyle)}},render(t){return t("div",{staticClass:"v-skeleton-loader",attrs:this.attrs,on:this.$listeners,class:this.classes,style:this.isLoading?this.measurableStyles:void 0},[this.genSkeleton()])}})},3161:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("9ab4"),r=i("dd2f"),o=i("2995");function s(t){return new r["a"]((function(e,i){var r=Object(n["e"])(e,[]);return new o["a"]((function(n){var o,s=!1;return Promise.resolve(r).then((function(i){return t(i,e.getContext())})).then(e.setContext).then((function(){s||(o=i(e).subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}))})).catch(n.error.bind(n)),function(){s=!0,o&&o.unsubscribe()}}))}))}}
7,3206:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("2b0e"),r=i("d9bd");function o(t,e){return()=>Object(r["c"])(`The ${t} component must be used inside a ${e}`)}function s(t,e,i){const r=e&&i?{register:o(e,i),unregister:o(e,i)}:null;return n["a"].extend({name:"registrable-inject",inject:{[t]:{default:r}}})}},"331e":function(t,e,i){},3408:function(t,e,i){},"34c3":function(t,e,i){"use strict";var n=i("2b0e");e["a"]=n["a"].extend({name:"v-list-item-icon",functional:!0,render(t,{data:e,children:i}){return e.staticClass=("v-list-item__icon "+(e.staticClass||"")).trim(),t("div",e,i)}})},3511:function(t,e,i){"use strict";var n=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw n("Maximum allowed index exceeded");return t}},"35a1":function(t,e,i){"use strict";var n=i("f5df"),r=i("dc4a"),o=i("7234"),s=i("3f8c"),a=i("b622"),l=a("iterator");t.exports=function(t){if(!o(t))return r(t,l)||r(t,"@@iterator")||s[n(t)]}},"35b3":function(t,e,i){},3642:function(t,e,i){"use strict";var n=Object.prototype.toString;t.exports=function(t){var e;return"[object Object]"===n.call(t)&&(e=Object.getPrototypeOf(t),null===e||e===Object.getPrototypeOf({}))}},"365c":function(t,e,i){"use strict";i.d(e,"a",(function(){return mt}));var n=i("9ab4"),r=i("8f69"),o=i("dd2f"),s=o["a"].execute,a=i("0e7f"),l=i("30c8"),c=i("11ed"),u=i("1034"),h=i("41c0"),d=i("0403"),f=i("0ae3"),p=i("eba2"),m=i("2cee"),g=i("2995");function y(t,e,i){return new g["a"]((function(n){var r={then:function(t){return new Promise((function(e){return e(t())}))}};function o(t,e){return function(i){if(t){var o=function(){return n.closed?0:t(i)};r=r.then(o,o).then((function(t){return n.next(t)}),(function(t){return n.error(t)}))}else n[e](i)}}var s={next:o(e,"next"),error:o(i,"error"),complete:function(){r.then((function(){return n.complete()}))}},a=t.subscribe(s);return function(){return a.unsubscribe()}}))}var _=i("81c9");function v(t){var e=b(t);return Object(_["b"])(e)}function b(t){var e=Object(_["b"])(t.errors)?t.errors.slice(0):[];return Object(u["b"])(t)&&Object(_["b"])(t.incremental)&&t.incremental.forEach((function(t){t.errors&&e.push.apply(e,t.errors)})),e}var x=i("b070"),w=i("e7a4"),E=i("4623"),T=i("ea5fe");function S(t,e,i){var n=[];t.forEach((function(t){return t[e]&&n.push(t)})),n.forEach((function(t){return t[e](i)}))}var k=i("cdfd");function O(t){function e(e){Object.defineProperty(t,e,{value:g["a"]})}return k["b"]&&Symbol.species&&e(Symbol.species),e("@@species"),t}function A(t){return t&&"function"===typeof t.then}var C=function(t){function e(e){var i=t.call(this,(function(t){return i.addObserver(t),function(){return i.removeObserver(t)}}))||this;return i.observers=new Set,i.promise=new Promise((function(t,e){i.resolve=t,i.reject=e})),i.handlers={next:function(t){null!==i.sub&&(i.latest=["next",t],i.notify("next",t),S(i.observers,"next",t))},error:function(t){var e=i.sub;null!==e&&(e&&setTimeout((function(){return e.unsubscribe()})),i.sub=null,i.latest=["error",t],i.reject(t),i.notify("error",t),S(i.observers,"error",t))},complete:function(){var t=i,e=t.sub,n=t.sources,r=void 0===n?[]:n;if(null!==e){var o=r.shift();o?A(o)?o.then((function(t){return i.sub=t.subscribe(i.handlers)}),i.handlers.error):i.sub=o.subscribe(i.handlers):(e&&setTimeout((function(){return e.unsubscribe()})),i.sub=null,i.latest&&"next"===i.latest[0]?i.resolve(i.latest[1]):i.resolve(),i.notify("complete"),S(i.observers,"complete"))}}},i.nextResultListeners=new Set,i.cancel=function(t){i.reject(t),i.sources=[],i.handlers.error(t)},i.promise.catch((function(t){})),"function"===typeof e&&(e=[new g["a"](e)]),A(e)?e.then((function(t){return i.start(t)}),i.handlers.error):i.start(e),i}return Object(n["c"])(e,t),e.prototype.start=function(t){void 0===this.sub&&(this.sources=Array.from(t),this.handlers.complete())},e.prototype.deliverLastMessage=function(t){if(this.latest){var e=this.latest[0],i=t[e];i&&i.call(t,this.latest[1]),null===this.sub&&"next"===e&&t.complete&&t.complete()}},e.prototype.addObserver=function(t){this.observers.has(t)||(this.deliverLastMessage(t),this.observers.add(t))},e.prototype.removeObserver=function(t){this.observers.delete(t)&&this.observers.size<1&&this.handlers.complete()},e.prototype.notify=function(t,e){var i=this.nextResultListeners;
7i.size&&(this.nextResultListeners=new Set,i.forEach((function(i){return i(t,e)})))},e.prototype.beforeNext=function(t){var e=!1;this.nextResultListeners.add((function(i,n){e||(e=!0,t(i,n))}))},e}(g["a"]);O(C);var I,M=i("3ca0");function P(t){return!!t&&t<7}(function(t){t[t["loading"]=1]="loading",t[t["setVariables"]=2]="setVariables",t[t["fetchMore"]=3]="fetchMore",t[t["refetch"]=4]="refetch",t[t["poll"]=6]="poll",t[t["ready"]=7]="ready",t[t["error"]=8]="error"})(I||(I={}));var D=i("cca5"),L=i("67da");function R(t){return t.catch((function(){})),t}var z=i("615f"),j=Object.assign,B=Object.hasOwnProperty,F=function(t){function e(e){var i=e.queryManager,r=e.queryInfo,o=e.options,s=t.call(this,(function(t){try{var i=t._subscription._observer;i&&!i.error&&(i.error=V)}catch(e){}var n=!s.observers.size;s.observers.add(t);var r=s.last;return r&&r.error?t.error&&t.error(r.error):r&&r.result&&t.next&&t.next(s.maskResult(r.result)),n&&s.reobserve().catch((function(){})),function(){s.observers.delete(t)&&!s.observers.size&&s.tearDownQuery()}}))||this;s.observers=new Set,s.subscriptions=new Set,s.queryInfo=r,s.queryManager=i,s.waitForOwnResult=U(o.fetchPolicy),s.isTornDown=!1,s.subscribeToMore=s.subscribeToMore.bind(s),s.maskResult=s.maskResult.bind(s);var a=i.defaultOptions.watchQuery,l=void 0===a?{}:a,c=l.fetchPolicy,u=void 0===c?"cache-first":c,h=o.fetchPolicy,d=void 0===h?u:h,f=o.initialFetchPolicy,p=void 0===f?"standby"===d?u:d:f;s.options=Object(n["a"])(Object(n["a"])({},o),{initialFetchPolicy:p,fetchPolicy:d}),s.queryId=r.queryId||i.generateQueryId();var m=Object(x["f"])(s.query);return s.queryName=m&&m.name&&m.name.value,s}return Object(n["c"])(e,t),Object.defineProperty(e.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),e.prototype.result=function(){var t=this;return new Promise((function(e,i){var n={next:function(i){e(i),t.observers.delete(n),t.observers.size||t.queryManager.removeQuery(t.queryId),setTimeout((function(){r.unsubscribe()}),0)},error:i},r=t.subscribe(n)}))},e.prototype.resetDiff=function(){this.queryInfo.resetDiff()},e.prototype.getCurrentFullResult=function(t){void 0===t&&(t=!0);var e=this.getLastResult(!0),i=this.queryInfo.networkStatus||e&&e.networkStatus||I.ready,r=Object(n["a"])(Object(n["a"])({},e),{loading:P(i),networkStatus:i}),o=this.options.fetchPolicy,s=void 0===o?"cache-first":o;if(U(s)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo["updateWatch"]();else{var a=this.queryInfo.getDiff();(a.complete||this.options.returnPartialData)&&(r.data=a.result),Object(c["b"])(r.data,{})&&(r.data=void 0),a.complete?(delete r.partial,!a.complete||r.networkStatus!==I.loading||"cache-first"!==s&&"cache-only"!==s||(r.networkStatus=I.ready,r.loading=!1)):r.partial=!0,r.networkStatus===I.ready&&(r.error||r.errors)&&(r.networkStatus=I.error),!1===globalThis.__DEV__||a.complete||this.options.partialRefetch||r.loading||r.data||r.error||$(a.missing)}return t&&this.updateLastResult(r),r},e.prototype.getCurrentResult=function(t){return void 0===t&&(t=!0),this.maskResult(this.getCurrentFullResult(t))},e.prototype.isDifferentFromLastResult=function(t,e){if(!this.last)return!0;var i=this.queryManager.getDocumentInfo(this.query),n=this.queryManager.dataMasking,r=n?i.nonReactiveQuery:this.query,o=n||i.hasNonreactiveDirective?!Object(z["a"])(r,this.last.result,t,this.variables):!Object(c["b"])(this.last.result,t);return o||e&&!Object(c["b"])(this.last.variables,e)},e.prototype.getLast=function(t,e){var i=this.last;if(i&&i[t]&&(!e||Object(c["b"])(i.variables,this.variables)))return i[t]},e.prototype.getLastResult=function(t){return this.getLast("result",t)},e.prototype.getLastError=function(t){return this.getLast("error",t)},e.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},e.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},e.prototype.refetch=function(t){var e,i={pollInterval:0},o=this.options.fetchPolicy;if(i.fetchPolicy="no-cache"===o?"no-cache":"network-only",!1!==globalThis.__DEV__&&t&&B.call(t,"variables")){var s=Object(x["h"])(this.query),a=s.variableDefinitions;a&&a.some((function(t){return"variables"===t.variable.name.value}))||!1!==globalThis.__DEV__&&r["b"].warn(21,t,(null===(e=s.name)||void 0===e?void 0:e.value)||s)}return t&&!Object(c["b"])(this.options.variables,t)&&(i.variables=this.options.variables=Object(n["a"])(Object(n["a"])({},this.options.variables),t)),this.queryInfo.resetLastWrite(),this.reobserve(i,I.refetch)},e.prototype.fetchMore=function(t){var e=this,i=Object(n["a"])(Object(n["a"])({},t.query?t:Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])({},this.options),{query:this.options.query}),t),{variables:Object(n["a"])(Object(n["a"])({},this.options.variables),t.variables)})),{fetchPolicy:"no-cache"});i.query=this.transformDocument(i.query);var o=this.queryManager.generateQueryId();this.lastQuery=t.query?this.transformDocument(this.options.query):i.query;var s=this.queryInfo,a=s.networkStatus;s.networkStatus=I.fetchMore,i.notifyOnNetworkStatusChange&&this.observe();var l=new Set,c=null===t||void 0===t?void 0:t.updateQuery,u="no-cache"!==this.options.fetchPolicy;return u||Object(r["b"])(c,22),this.queryManager.fetchQuery(o,i,I.fetchMore).then((function(r){if(e.queryManager.removeQuery(o),s.networkStatus===I.fetchMore&&(s.networkStatus=a),u)e.queryManager.cache.batch({update:function(n){var o=t.updateQuery;o?n.updateQuery({query:e.query,variables:e.variables,returnPartialData:!0,optimistic:!1},(function(t){return o(t,{fetchMoreResult:r.data,variables:i.variables})})):n.writeQuery({query:i.query,variables:i.variables,data:r.data})},onWatchUpdated:function(t){l.add(t.query)}});else{var h=e.getLast("result"),d=c(h.data,{fetchMoreResult:r.data,variables:i.variables});e.reportResult(Object(n["a"])(Object(n["a"])({},h),{networkStatus:a,loading:P(a),data:d}),e.variables)}return e.maskResult(r)})).finally((function(){u&&!l.has(e.query)&&N(e)}))},e.prototype.subscribeToMore=function(t){var e=this,i=this.queryManager.startGraphQLSubscription({query:t.document,variables:t.variables,context:t.context}).subscribe({next:function(i){var r=t.updateQuery;r&&e.updateQuery((function(t,e){return r(t,Object(n["a"])({subscriptionData:i},e))}))},error:function(e){t.onError?t.onError(e):!1!==globalThis.__DEV__&&r["b"].error(23,e)}});return this.subscriptions.add(i),function(){e.subscriptions.delete(i)&&i.unsubscribe()}},e.prototype.setOptions=function(t){return this.reobserve(t)},e.prototype.silentSetOptions=function(t){var e=Object(D["a"])(this.options,t||{});j(this.options,e)},e.prototype.setVariables=function(t){return Object(c["b"])(this.variables,t)?this.observers.size?this.result():Promise.resolve():(this.options.variables=t,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:t},I.setVariables):Promise.resolve())},e.prototype.updateQuery=function(t){var e=this.queryManager,i=e.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),n=i.result,r=i.complete,o=t(n,{variables:this.variables,complete:!!r,previousData:n});
7o&&(e.cache.writeQuery({query:this.options.query,data:o,variables:this.variables}),e.broadcastQueries())},e.prototype.startPolling=function(t){this.options.pollInterval=t,this.updatePolling()},e.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},e.prototype.applyNextFetchPolicy=function(t,e){if(e.nextFetchPolicy){var i=e.fetchPolicy,n=void 0===i?"cache-first":i,r=e.initialFetchPolicy,o=void 0===r?n:r;"standby"===n||("function"===typeof e.nextFetchPolicy?e.fetchPolicy=e.nextFetchPolicy(n,{reason:t,options:e,observable:this,initialFetchPolicy:o}):e.fetchPolicy="variables-changed"===t?o:e.nextFetchPolicy)}return e.fetchPolicy},e.prototype.fetch=function(t,e,i){return this.queryManager.setObservableQuery(this),this.queryManager["fetchConcastWithInfo"](this.queryId,t,e,i)},e.prototype.updatePolling=function(){var t=this;if(!this.queryManager.ssrMode){var e=this,i=e.pollingInfo,n=e.options.pollInterval;if(n&&this.hasObservers()){if(!i||i.interval!==n){Object(r["b"])(n,24);var o=i||(this.pollingInfo={});o.interval=n;var s=function(){var e,i;t.pollingInfo&&(P(t.queryInfo.networkStatus)||(null===(i=(e=t.options).skipPollAttempt)||void 0===i?void 0:i.call(e))?a():t.reobserve({fetchPolicy:"no-cache"===t.options.initialFetchPolicy?"no-cache":"network-only"},I.poll).then(a,a))},a=function(){var e=t.pollingInfo;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(s,e.interval))};a()}}else i&&(clearTimeout(i.timeout),delete this.pollingInfo)}},e.prototype.updateLastResult=function(t,e){void 0===e&&(e=this.variables);var i=this.getLastError();return i&&this.last&&!Object(c["b"])(e,this.last.variables)&&(i=void 0),this.last=Object(n["a"])({result:this.queryManager.assumeImmutableResults?t:Object(L["a"])(t),variables:e},i?{error:i}:null)},e.prototype.reobserveAsConcast=function(t,e){var i=this;this.isTornDown=!1;var r=e===I.refetch||e===I.fetchMore||e===I.poll,o=this.options.variables,s=this.options.fetchPolicy,a=Object(D["a"])(this.options,t||{}),l=r?a:j(this.options,a),u=this.transformDocument(l.query);this.lastQuery=u,r||(this.updatePolling(),!t||!t.variables||Object(c["b"])(t.variables,o)||"standby"===l.fetchPolicy||l.fetchPolicy!==s&&"function"!==typeof l.nextFetchPolicy||(this.applyNextFetchPolicy("variables-changed",l),void 0===e&&(e=I.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=U(l.fetchPolicy));var h=function(){i.concast===p&&(i.waitForOwnResult=!1)},d=l.variables&&Object(n["a"])({},l.variables),f=this.fetch(l,e,u),p=f.concast,m=f.fromLink,g={next:function(t){Object(c["b"])(i.variables,d)&&(h(),i.reportResult(t,d))},error:function(t){Object(c["b"])(i.variables,d)&&(Object(M["d"])(t)||(t=new M["a"]({networkError:t})),h(),i.reportError(t,d))}};return r||!m&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=p,this.observer=g),p.addObserver(g),p},e.prototype.reobserve=function(t,e){return R(this.reobserveAsConcast(t,e).promise.then(this.maskResult))},e.prototype.resubscribeAfterError=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=this.last;this.resetLastResults();var n=this.subscribe.apply(this,t);return this.last=i,n},e.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},e.prototype.reportResult=function(t,e){var i=this.getLastError(),n=this.isDifferentFromLastResult(t,e);(i||!t.partial||this.options.returnPartialData)&&this.updateLastResult(t,e),(i||n)&&S(this.observers,"next",this.maskResult(t))},e.prototype.reportError=function(t,e){var i=Object(n["a"])(Object(n["a"])({},this.getLastResult()),{error:t,errors:t.graphQLErrors,networkStatus:I.error,loading:!1});this.updateLastResult(i,e),S(this.observers,"error",this.last.error=t)},e.prototype.hasObservers=function(){return this.observers.size>0},e.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(t){return t.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},e.prototype.transformDocument=function(t){return this.queryManager.transform(t)},e.prototype.maskResult=function(t){return t&&"data"in t?Object(n["a"])(Object(n["a"])({},t),{data:this.queryManager.maskOperation({document:this.query,data:t.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):t},e}(g["a"]);function N(t){var e=t.options,i=e.fetchPolicy,n=e.nextFetchPolicy;return"cache-and-network"===i||"network-only"===i?t.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(t,e){return this.nextFetchPolicy=n,"function"===typeof this.nextFetchPolicy?this.nextFetchPolicy(t,e):i}}):t.reobserve()}function V(t){!1!==globalThis.__DEV__&&r["b"].error(25,t.message,t.stack)}function $(t){!1!==globalThis.__DEV__&&t&&!1!==globalThis.__DEV__&&r["b"].debug(26,t)}function U(t){return"network-only"===t||"no-cache"===t||"standby"===t}O(F);var q=i("9a98"),G=new(k["c"]?WeakMap:Map);function W(t,e){var i=t[e];"function"===typeof i&&(t[e]=function(){return G.set(t,(G.get(t)+1)%1e15),i.apply(this,arguments)})}function Z(t){t["notifyTimeout"]&&(clearTimeout(t["notifyTimeout"]),t["notifyTimeout"]=void 0)}var H=function(){function t(t,e){void 0===e&&(e=t.generateQueryId()),this.queryId=e,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var i=this.cache=t.cache;G.has(i)||(G.set(i,0),W(i,"evict"),W(i,"modify"),W(i,"reset"))}return t.prototype.init=function(t){var e=t.networkStatus||I.loading;return this.variables&&this.networkStatus!==I.loading&&!Object(c["b"])(this.variables,t.variables)&&(e=I.setVariables),Object(c["b"])(t.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:t.document,variables:t.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:e}),t.observableQuery&&this.setObservableQuery(t.observableQuery),t.lastRequestId&&(this.lastRequestId=t.lastRequestId),this},t.prototype.reset=function(){Z(this),this.dirty=!1},t.prototype.resetDiff=function(){this.lastDiff=void 0},t.prototype.getDiff=function(){var t=this.getDiffOptions();if(this.lastDiff&&Object(c["b"])(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var e=this.observableQuery;if(e&&"no-cache"===e.options.fetchPolicy)return{complete:!1};var i=this.cache.diff(t);return this.updateLastDiff(i,t),i},t.prototype.updateLastDiff=function(t,e){this.lastDiff=t?{diff:t,options:e||this.getDiffOptions()}:void 0},t.prototype.getDiffOptions=function(t){var e;return void 0===t&&(t=this.variables),{query:this.document,variables:t,returnPartialData:!0,optimistic:!0,canonizeResults:null===(e=this.observableQuery)||void 0===e?void 0:e.options.canonizeResults}},t.prototype.setDiff=function(t){var e,i=this,n=this.lastDiff&&this.lastDiff.diff;t&&!t.complete&&(null===(e=this.observableQuery)||void 0===e?void 0:e.getLastError())||(this.updateLastDiff(t),this.dirty||Object(c["b"])(n&&n.result,t&&t.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return i.notify()}),0))))},t.prototype.setObservableQuery=function(t){var e=this;t!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=t,t?(t["queryInfo"]=this,this.listeners.add(this.oqListener=function(){var i=e.getDiff();i.fromOptimisticTransaction?t["observe"]():N(t)})):delete this.oqListener)},t.prototype.notify=function(){var t=this;
7Z(this),this.shouldNotify()&&this.listeners.forEach((function(e){return e(t)})),this.dirty=!1},t.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(P(this.networkStatus)&&this.observableQuery){var t=this.observableQuery.options.fetchPolicy;if("cache-only"!==t&&"cache-and-network"!==t)return!1}return!0},t.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel();var t=this.observableQuery;t&&t.stopPolling()}},t.prototype.cancel=function(){var t;null===(t=this.cancelWatch)||void 0===t||t.call(this),this.cancelWatch=void 0},t.prototype.updateWatch=function(t){var e=this;void 0===t&&(t=this.variables);var i=this.observableQuery;if(!i||"no-cache"!==i.options.fetchPolicy){var r=Object(n["a"])(Object(n["a"])({},this.getDiffOptions(t)),{watcher:this,callback:function(t){return e.setDiff(t)}});this.lastWatch&&Object(c["b"])(r,this.lastWatch)||(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=r))}},t.prototype.resetLastWrite=function(){this.lastWrite=void 0},t.prototype.shouldWrite=function(t,e){var i=this.lastWrite;return!(i&&i.dmCount===G.get(this.cache)&&Object(c["b"])(e,i.variables)&&Object(c["b"])(t.data,i.result.data))},t.prototype.markResult=function(t,e,i,n){var r=this,o=new q["a"],s=Object(_["b"])(t.errors)?t.errors.slice(0):[];if(this.reset(),"incremental"in t&&Object(_["b"])(t.incremental)){var a=Object(u["d"])(this.getDiff().result,t);t.data=a}else if("hasNext"in t&&t.hasNext){var l=this.getDiff();t.data=o.merge(l.result,t.data)}this.graphQLErrors=s,"no-cache"===i.fetchPolicy?this.updateLastDiff({result:t.data,complete:!0},this.getDiffOptions(i.variables)):0!==n&&(X(t,i.errorPolicy)?this.cache.performTransaction((function(o){if(r.shouldWrite(t,i.variables))o.writeQuery({query:e,data:t.data,variables:i.variables,overwrite:1===n}),r.lastWrite={result:t,variables:i.variables,dmCount:G.get(r.cache)};else if(r.lastDiff&&r.lastDiff.diff.complete)return void(t.data=r.lastDiff.diff.result);var s=r.getDiffOptions(i.variables),a=o.diff(s);!r.stopped&&Object(c["b"])(r.variables,i.variables)&&r.updateWatch(i.variables),r.updateLastDiff(a,s),a.complete&&(t.data=a.result)})):this.lastWrite=void 0)},t.prototype.markReady=function(){return this.networkError=null,this.networkStatus=I.ready},t.prototype.markError=function(t){return this.networkStatus=I.error,this.lastWrite=void 0,this.reset(),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},t}();function X(t,e){void 0===e&&(e="none");var i="ignore"===e||"all"===e,n=!v(t);return!n&&i&&t.data&&(n=!0),n}var Q=i("1c5e"),Y=i("eee5"),K=i("841e"),J=i("876b"),tt=i("2d69"),et=i("dc7e");function it(t,e,i){var n;if(!i.fragmentMatches)return!1!==globalThis.__DEV__&&Object(et["d"])(),t;var o=Object(x["f"])(e);return Object(r["b"])(o,51),null==t?t:Object(tt["a"])(t,o.selectionSet,{operationType:o.operation,operationName:null===(n=o.name)||void 0===n?void 0:n.value,fragmentMap:Object(f["a"])(Object(x["d"])(e)),cache:i,mutableTargets:new et["a"],knownChanged:new et["b"]})}var nt=i("a447"),rt=Object.prototype.hasOwnProperty,ot=Object.create(null),st=function(){function t(t){var e=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new K["b"](J["a"]["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Y["a"](!1),this.noCacheWarningsByQueryId=new Set;var i=new m["a"]((function(t){return e.cache.transformDocument(t)}),{cache:!1});this.cache=t.cache,this.link=t.link,this.defaultOptions=t.defaultOptions,this.queryDeduplication=t.queryDeduplication,this.clientAwareness=t.clientAwareness,this.localState=t.localState,this.ssrMode=t.ssrMode,this.assumeImmutableResults=t.assumeImmutableResults,this.dataMasking=t.dataMasking;var n=t.documentTransform;this.documentTransform=n?i.concat(n).concat(i):i,this.defaultContext=t.defaultContext||Object.create(null),(this.onBroadcast=t.onBroadcast)&&(this.mutationStore=Object.create(null))}return t.prototype.stop=function(){var t=this;
7this.queries.forEach((function(e,i){t.stopQueryNoBroadcast(i)})),this.cancelPendingFetches(Object(r["d"])(27))},t.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach((function(e){return e(t)})),this.fetchCancelFns.clear()},t.prototype.mutate=function(t){return Object(n["b"])(this,arguments,void 0,(function(t){var e,i,o,s,a,l,c,u=t.mutation,h=t.variables,d=t.optimisticResponse,f=t.updateQueries,p=t.refetchQueries,m=void 0===p?[]:p,g=t.awaitRefetchQueries,_=void 0!==g&&g,x=t.update,w=t.onQueryUpdated,E=t.fetchPolicy,T=void 0===E?(null===(l=this.defaultOptions.mutate)||void 0===l?void 0:l.fetchPolicy)||"network-only":E,S=t.errorPolicy,k=void 0===S?(null===(c=this.defaultOptions.mutate)||void 0===c?void 0:c.errorPolicy)||"none":S,O=t.keepRootFields,A=t.context;return Object(n["d"])(this,(function(t){switch(t.label){case 0:return Object(r["b"])(u,28),Object(r["b"])("network-only"===T||"no-cache"===T,29),e=this.generateMutationId(),u=this.cache.transformForLink(this.transform(u)),i=this.getDocumentInfo(u).hasClientExports,h=this.getVariables(u,h),i?[4,this.localState.addExportedVariables(u,h,A)]:[3,2];case 1:h=t.sent(),t.label=2;case 2:return o=this.mutationStore&&(this.mutationStore[e]={mutation:u,variables:h,loading:!0,error:null}),s=d&&this.markMutationOptimistic(d,{mutationId:e,document:u,variables:h,fetchPolicy:T,errorPolicy:k,context:A,updateQueries:f,update:x,keepRootFields:O}),this.broadcastQueries(),a=this,[2,new Promise((function(t,i){return y(a.getObservableFromLink(u,Object(n["a"])(Object(n["a"])({},A),{optimisticResponse:s?d:void 0}),h,{},!1),(function(t){if(v(t)&&"none"===k)throw new M["a"]({graphQLErrors:b(t)});o&&(o.loading=!1,o.error=null);var i=Object(n["a"])({},t);return"function"===typeof m&&(m=m(i)),"ignore"===k&&v(i)&&delete i.errors,a.markMutationResult({mutationId:e,result:i,document:u,variables:h,fetchPolicy:T,errorPolicy:k,context:A,update:x,updateQueries:f,awaitRefetchQueries:_,refetchQueries:m,removeOptimistic:s?e:void 0,onQueryUpdated:w,keepRootFields:O})})).subscribe({next:function(i){a.broadcastQueries(),"hasNext"in i&&!1!==i.hasNext||t(Object(n["a"])(Object(n["a"])({},i),{data:a.maskOperation({document:u,data:i.data,fetchPolicy:T,id:e})}))},error:function(t){o&&(o.loading=!1,o.error=t),s&&a.cache.removeOptimistic(e),a.broadcastQueries(),i(t instanceof M["a"]?t:new M["a"]({networkError:t}))}})}))]}}))}))},t.prototype.markMutationResult=function(t,e){var i=this;void 0===e&&(e=this.cache);var r=t.result,o=[],s="no-cache"===t.fetchPolicy;if(!s&&X(r,t.errorPolicy)){if(Object(u["b"])(r)||o.push({result:r.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}),Object(u["b"])(r)&&Object(_["b"])(r.incremental)){var a=e.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}),l=void 0;a.result&&(l=Object(u["d"])(a.result,r)),"undefined"!==typeof l&&(r.data=l,o.push({result:l,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}))}var c=t.updateQueries;c&&this.queries.forEach((function(t,n){var s=t.observableQuery,a=s&&s.queryName;if(a&&rt.call(c,a)){var l=c[a],u=i.queries.get(n),h=u.document,d=u.variables,f=e.diff({query:h,variables:d,returnPartialData:!0,optimistic:!1}),p=f.result,m=f.complete;if(m&&p){var g=l(p,{mutationResult:r,queryName:h&&Object(x["g"])(h)||void 0,queryVariables:d});g&&o.push({result:g,dataId:"ROOT_QUERY",query:h,variables:d})}}}))}if(o.length>0||(t.refetchQueries||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){var h=[];if(this.refetchQueries({updateCache:function(e){s||o.forEach((function(t){return e.write(t)}));var a=t.update,l=!Object(u["c"])(r)||Object(u["b"])(r)&&!r.hasNext;if(a){if(!s){var c=e.diff({id:"ROOT_MUTATION",query:i.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});c.complete&&(r=Object(n["a"])(Object(n["a"])({},r),{data:c.result}),"incremental"in r&&delete r.incremental,"hasNext"in r&&delete r.hasNext)}l&&a(e,r,{context:t.context,variables:t.variables})}s||t.keepRootFields||!l||e.modify({id:"ROOT_MUTATION",fields:function(t,e){var i=e.fieldName,n=e.DELET
7E;return"__typename"===i?t:n}})},include:t.refetchQueries,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach((function(t){return h.push(t)})),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(h).then((function(){return r}))}return Promise.resolve(r)},t.prototype.markMutationOptimistic=function(t,e){var i=this,o="function"===typeof t?t(e.variables,{IGNORE:ot}):t;return o!==ot&&(this.cache.recordOptimisticTransaction((function(t){try{i.markMutationResult(Object(n["a"])(Object(n["a"])({},e),{result:{data:o}}),t)}catch(s){!1!==globalThis.__DEV__&&r["b"].error(s)}}),e.mutationId),!0)},t.prototype.fetchQuery=function(t,e,i){return this.fetchConcastWithInfo(t,e,i).concast.promise},t.prototype.getQueryStore=function(){var t=Object.create(null);return this.queries.forEach((function(e,i){t[i]={variables:e.variables,networkStatus:e.networkStatus,networkError:e.networkError,graphQLErrors:e.graphQLErrors}})),t},t.prototype.resetErrors=function(t){var e=this.queries.get(t);e&&(e.networkError=void 0,e.graphQLErrors=[])},t.prototype.transform=function(t){return this.documentTransform.transformDocument(t)},t.prototype.getDocumentInfo=function(t){var e=this.transformCache;if(!e.has(t)){var i={hasClientExports:Object(h["b"])(t),hasForcedResolvers:this.localState.shouldForceResolvers(t),hasNonreactiveDirective:Object(h["c"])(["nonreactive"],t),nonReactiveQuery:Object(d["a"])(t),clientQuery:this.localState.clientQuery(t),serverQuery:Object(d["e"])([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],t),defaultVars:Object(x["b"])(Object(x["f"])(t)),asQuery:Object(n["a"])(Object(n["a"])({},t),{definitions:t.definitions.map((function(t){return"OperationDefinition"===t.kind&&"query"!==t.operation?Object(n["a"])(Object(n["a"])({},t),{operation:"query"}):t}))})};e.set(t,i)}return e.get(t)},t.prototype.getVariables=function(t,e){return Object(n["a"])(Object(n["a"])({},this.getDocumentInfo(t).defaultVars),e)},t.prototype.watchQuery=function(t){var e=this.transform(t.query);t=Object(n["a"])(Object(n["a"])({},t),{variables:this.getVariables(e,t.variables)}),"undefined"===typeof t.notifyOnNetworkStatusChange&&(t.notifyOnNetworkStatusChange=!1);var i=new H(this),r=new F({queryManager:this,queryInfo:i,options:t});return r["lastQuery"]=e,this.queries.set(r.queryId,i),i.init({document:e,observableQuery:r,variables:r.variables}),r},t.prototype.query=function(t,e){var i=this;void 0===e&&(e=this.generateQueryId()),Object(r["b"])(t.query,30),Object(r["b"])("Document"===t.query.kind,31),Object(r["b"])(!t.returnPartialData,32),Object(r["b"])(!t.pollInterval,33);var o=this.transform(t.query);return this.fetchQuery(e,Object(n["a"])(Object(n["a"])({},t),{query:o})).then((function(r){return r&&Object(n["a"])(Object(n["a"])({},r),{data:i.maskOperation({document:o,data:r.data,fetchPolicy:t.fetchPolicy,id:e})})})).finally((function(){return i.stopQuery(e)}))},t.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},t.prototype.generateRequestId=function(){return this.requestIdCounter++},t.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},t.prototype.stopQueryInStore=function(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},t.prototype.stopQueryInStoreNoBroadcast=function(t){var e=this.queries.get(t);e&&e.stop()},t.prototype.clearStore=function(t){return void 0===t&&(t={discardWatches:!0}),this.cancelPendingFetches(Object(r["d"])(34)),this.queries.forEach((function(t){t.observableQuery?t.networkStatus=I.loading:t.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(t)},t.prototype.getObservableQueries=function(t){var e=this;void 0===t&&(t="active");var i=new Map,o=new Map,s=new Map,a=new Set;return Array.isArray(t)&&t.forEach((function(t){if("string"===typeof t)o.set(t,t),s.set(t,!1);else if(Object(w["d"])(t)){var i=Object(Q["a"])(e.transform(t));o.set(i,Object(x["g"])(t)),s.set(i,!1)}else Object(E["a"])(t)&&t.query&&a.add(t)})),this.queries.forEach((function(e,n){var r=e.observableQuery,o=e.document;if(r){if("all"===t)return void i.set(n,r);
7var a=r.queryName,l=r.options.fetchPolicy;if("standby"===l||"active"===t&&!r.hasObservers())return;("active"===t||a&&s.has(a)||o&&s.has(Object(Q["a"])(o)))&&(i.set(n,r),a&&s.set(a,!0),o&&s.set(Object(Q["a"])(o),!0))}})),a.size&&a.forEach((function(t){var o=Object(T["a"])("legacyOneTimeQuery"),s=e.getQuery(o).init({document:t.query,variables:t.variables}),a=new F({queryManager:e,queryInfo:s,options:Object(n["a"])(Object(n["a"])({},t),{fetchPolicy:"network-only"})});Object(r["b"])(a.queryId===o),s.setObservableQuery(a),i.set(o,a)})),!1!==globalThis.__DEV__&&s.size&&s.forEach((function(t,e){if(!t){var i=o.get(e);i?!1!==globalThis.__DEV__&&r["b"].warn(35,i):!1!==globalThis.__DEV__&&r["b"].warn(36)}})),i},t.prototype.reFetchObservableQueries=function(t){var e=this;void 0===t&&(t=!1);var i=[];return this.getObservableQueries(t?"all":"active").forEach((function(n,r){var o=n.options.fetchPolicy;n.resetLastResults(),(t||"standby"!==o&&"cache-only"!==o)&&i.push(n.refetch()),e.getQuery(r).setDiff(null)})),this.broadcastQueries(),Promise.all(i)},t.prototype.setObservableQuery=function(t){this.getQuery(t.queryId).setObservableQuery(t)},t.prototype.startGraphQLSubscription=function(t){var e=this,i=t.query,n=t.variables,r=t.fetchPolicy,o=t.errorPolicy,s=void 0===o?"none":o,a=t.context,l=void 0===a?{}:a,c=t.extensions,u=void 0===c?{}:c;i=this.transform(i),n=this.getVariables(i,n);var h=function(t){return e.getObservableFromLink(i,l,t,u).map((function(n){"no-cache"!==r&&(X(n,s)&&e.cache.write({query:i,result:n.data,dataId:"ROOT_SUBSCRIPTION",variables:t}),e.broadcastQueries());var o=v(n),a=Object(M["c"])(n);if(o||a){var l={};if(o&&(l.graphQLErrors=n.errors),a&&(l.protocolErrors=n.extensions[M["b"]]),"none"===s||a)throw new M["a"](l)}return"ignore"===s&&delete n.errors,n}))};if(this.getDocumentInfo(i).hasClientExports){var d=this.localState.addExportedVariables(i,n,l).then(h);return new g["a"]((function(t){var e=null;return d.then((function(i){return e=i.subscribe(t)}),t.error),function(){return e&&e.unsubscribe()}}))}return h(n)},t.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},t.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},t.prototype.removeQuery=function(t){this.fetchCancelFns.delete(t),this.queries.has(t)&&(this.getQuery(t).stop(),this.queries.delete(t))},t.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(t){return t.notify()}))},t.prototype.getLocalState=function(){return this.localState},t.prototype.getObservableFromLink=function(t,e,i,r,o){var a,l,c=this;void 0===o&&(o=null!==(a=null===e||void 0===e?void 0:e.queryDeduplication)&&void 0!==a?a:this.queryDeduplication);var u=this.getDocumentInfo(t),h=u.serverQuery,d=u.clientQuery;if(h){var f=this,m=f.inFlightLinkObservables,_=f.link,v={query:h,variables:i,operationName:Object(x["g"])(h)||void 0,context:this.prepareContext(Object(n["a"])(Object(n["a"])({},e),{forceFetch:!o})),extensions:r};if(e=v.context,o){var b=Object(Q["a"])(h),w=Object(p["a"])(i),E=m.lookup(b,w);if(l=E.observable,!l){var T=new C([s(_,v)]);l=E.observable=T,T.beforeNext((function t(e,i){"next"===e&&"hasNext"in i&&i.hasNext?T.beforeNext(t):m.remove(b,w)}))}}else l=new C([s(_,v)])}else l=new C([g["a"].of({data:{}})]),e=this.prepareContext(e);return d&&(l=y(l,(function(t){return c.localState.runResolvers({document:d,remoteResult:t,context:e,variables:i})}))),l},t.prototype.getResultsFromLink=function(t,e,i){var n=t.lastRequestId=this.generateRequestId(),r=this.cache.transformForLink(i.query);return y(this.getObservableFromLink(r,i.context,i.variables),(function(o){var s=b(o),a=s.length>0,l=i.errorPolicy;if(n>=t.lastRequestId){if(a&&"none"===l)throw t.markError(new M["a"]({graphQLErrors:s}));t.markResult(o,r,i,e),t.markReady()}var c={data:o.data,loading:!1,networkStatus:I.ready};return a&&"none"===l&&(c.data=void 0),a&&"ignore"!==l&&(c.errors=s,c.networkStatus=I.error),c}),(function(e){var i=Object(M["d"])(e)?e:new M["a"]({networkError:e});throw n>=t.lastRequestId&&t.markError(i),i}))}
7,t.prototype.fetchConcastWithInfo=function(t,e,i,n){var r=this;void 0===i&&(i=I.loading),void 0===n&&(n=e.query);var o,s,a=this.getVariables(n,e.variables),l=this.getQuery(t),c=this.defaultOptions.watchQuery,u=e.fetchPolicy,h=void 0===u?c&&c.fetchPolicy||"cache-first":u,d=e.errorPolicy,f=void 0===d?c&&c.errorPolicy||"none":d,p=e.returnPartialData,m=void 0!==p&&p,g=e.notifyOnNetworkStatusChange,y=void 0!==g&&g,_=e.context,v=void 0===_?{}:_,b=Object.assign({},e,{query:n,variables:a,fetchPolicy:h,errorPolicy:f,returnPartialData:m,notifyOnNetworkStatusChange:y,context:v}),x=function(t){b.variables=t;var n=r.fetchQueryByPolicy(l,b,i);return"standby"!==b.fetchPolicy&&n.sources.length>0&&l.observableQuery&&l.observableQuery["applyNextFetchPolicy"]("after-fetch",e),n},w=function(){return r.fetchCancelFns.delete(t)};if(this.fetchCancelFns.set(t,(function(t){w(),setTimeout((function(){return o.cancel(t)}))})),this.getDocumentInfo(b.query).hasClientExports)o=new C(this.localState.addExportedVariables(b.query,b.variables,b.context).then(x).then((function(t){return t.sources}))),s=!0;else{var E=x(b.variables);s=E.fromLink,o=new C(E.sources)}return o.promise.then(w,w),{concast:o,fromLink:s}},t.prototype.refetchQueries=function(t){var e=this,i=t.updateCache,n=t.include,r=t.optimistic,o=void 0!==r&&r,s=t.removeOptimistic,a=void 0===s?o?Object(T["a"])("refetchQueries"):void 0:s,l=t.onQueryUpdated,c=new Map;n&&this.getObservableQueries(n).forEach((function(t,i){c.set(i,{oq:t,lastDiff:e.getQuery(i).getDiff()})}));var u=new Map;return i&&this.cache.batch({update:i,optimistic:o&&a||!1,removeOptimistic:a,onWatchUpdated:function(t,e,i){var n=t.watcher instanceof H&&t.watcher.observableQuery;if(n){if(l){c.delete(n.queryId);var r=l(n,e,i);return!0===r&&(r=n.refetch()),!1!==r&&u.set(n,r),r}null!==l&&c.set(n.queryId,{oq:n,lastDiff:i,diff:e})}}}),c.size&&c.forEach((function(t,i){var n,r=t.oq,o=t.lastDiff,s=t.diff;if(l){if(!s){var a=r["queryInfo"];a.reset(),s=a.getDiff()}n=l(r,s,o)}l&&!0!==n||(n=r.refetch()),!1!==n&&u.set(r,n),i.indexOf("legacyOneTimeQuery")>=0&&e.stopQueryNoBroadcast(i)})),a&&this.cache.removeOptimistic(a),u},t.prototype.maskOperation=function(t){var e,i,n,o=t.document,s=t.data;if(!1!==globalThis.__DEV__){var a=t.fetchPolicy,l=t.id,c=null===(e=Object(x["f"])(o))||void 0===e?void 0:e.operation,u=(null!==(i=null===c||void 0===c?void 0:c[0])&&void 0!==i?i:"o")+l;!this.dataMasking||"no-cache"!==a||Object(f["d"])(o)||this.noCacheWarningsByQueryId.has(u)||(this.noCacheWarningsByQueryId.add(u),!1!==globalThis.__DEV__&&r["b"].warn(37,null!==(n=Object(x["g"])(o))&&void 0!==n?n:"Unnamed ".concat(null!==c&&void 0!==c?c:"operation")))}return this.dataMasking?it(s,o,this.cache):s},t.prototype.maskFragment=function(t){var e=t.data,i=t.fragment,n=t.fragmentName;return this.dataMasking?Object(nt["a"])(e,i,this.cache,n):e},t.prototype.fetchQueryByPolicy=function(t,e,i){var r=this,o=e.query,s=e.variables,a=e.fetchPolicy,l=e.refetchWritePolicy,u=e.errorPolicy,h=e.returnPartialData,d=e.context,f=e.notifyOnNetworkStatusChange,p=t.networkStatus;t.init({document:o,variables:s,networkStatus:i});var m=function(){return t.getDiff()},y=function(e,i){void 0===i&&(i=t.networkStatus||I.loading);var a=e.result;!1===globalThis.__DEV__||h||Object(c["b"])(a,{})||$(e.missing);var l=function(t){return g["a"].of(Object(n["a"])({data:t,loading:P(i),networkStatus:i},e.complete?null:{partial:!0}))};return a&&r.getDocumentInfo(o).hasForcedResolvers?r.localState.runResolvers({document:o,remoteResult:{data:a},context:d,variables:s,onlyRunForcedResolvers:!0}).then((function(t){return l(t.data||void 0)})):"none"===u&&i===I.refetch&&Array.isArray(e.missing)?l(void 0):l(a)},_="no-cache"===a?0:i===I.refetch&&"merge"!==l?1:2,v=function(){return r.getResultsFromLink(t,_,{query:o,variables:s,context:d,fetchPolicy:a,errorPolicy:u})},b=f&&"number"===typeof p&&p!==i&&P(i);switch(a){default:case"cache-first":var x=m();return x.complete?{fromLink:!1,sources:[y(x,t.markReady())]}:h||b?{fromLink:!0,sources:[y(x),v()]}:{fromLink:!0,sources:[v()]};case"cache-and-network":x=m();return x.complete||h||b?{fromLink:!0,sources:[y(x),v()]}:{fromLink:!0,sources:[v()]};case"cache-only":return{fromLink:!1,sources:[y(m(),t.markReady())]};case"network-only":return b?{fromLink:!0,sources:[y(m()),v()]}:{fromLink:!0,sources:[v()]};case"no-cache":return b?{fromLink:!0,sources:[y(t.getDiff()),v()]}:{fromLink:!0,sources:[v()]};case"standby":return{fromLink:!1,sources:[]}}},t.prototype.getQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new H(this,t)),this.queries.get(t)},t.prototype.prepareContext=function(t){void 0===t&&(t={});var e=this.localState.prepareContext(t);return Object(n["a"])(Object(n["a"])(Object(n["a"])({},this.defaultContext),e),{clientAwareness:this.clientAwareness})},t}(),at=i("2f6c"),lt=i("fe35");function ct(t){return t.kind===lt["a"].FIELD||t.kind===lt["a"].FRAGMENT_SPREAD||t.kind===lt["a"].INLINE_FRAGMENT}var ut=i("ba23"),ht=function(){function t(t){var e=t.cache,i=t.client,n=t.resolvers,r=t.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=e,i&&(this.client=i),n&&this.addResolvers(n),r&&this.setFragmentMatcher(r)}return t.prototype.addResolvers=function(t){var e=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach((function(t){e.resolvers=Object(q["b"])(e.resolvers,t)})):this.resolvers=Object(q["b"])(this.resolvers,t)},t.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},t.prototype.getResolvers=function(){return this.resolvers||{}},t.prototype.runResolvers=function(t){return Object(n["b"])(this,arguments,void 0,(function(t){var e=t.document,i=t.remoteResult,r=t.context,o=t.variables,s=t.onlyRunForcedResolvers,a=void 0!==s&&s;return Object(n["d"])(this,(function(t){return e?[2,this.resolveDocument(e,i.data,r,o,this.fragmentMatcher,a).then((function(t){return Object(n["a"])(Object(n["a"])({},i),{data:t.result})}))]:[2,i]}))}))},t.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},t.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},t.prototype.clientQuery=function(t){return Object(h["c"])(["client"],t)&&this.resolvers?t:null},t.prototype.serverQuery=function(t){return Object(d["d"])(t)},t.prototype.prepareContext=function(t){var e=this.cache;return Object(n["a"])(Object(n["a"])({},t),{cache:e,getCacheKey:function(t){return e.identify(t)}})},t.prototype.addExportedVariables=function(t){return Object(n["b"])(this,arguments,void 0,(function(t,e,
7i){return void 0===e&&(e={}),void 0===i&&(i={}),Object(n["d"])(this,(function(r){return t?[2,this.resolveDocument(t,this.buildRootValueFromCache(t,e)||{},this.prepareContext(i),e).then((function(t){return Object(n["a"])(Object(n["a"])({},e),t.exportedVariables)}))]:[2,Object(n["a"])({},e)]}))}))},t.prototype.shouldForceResolvers=function(t){var e=!1;return Object(at["b"])(t,{Directive:{enter:function(t){if("client"===t.name.value&&t.arguments&&(e=t.arguments.some((function(t){return"always"===t.name.value&&"BooleanValue"===t.value.kind&&!0===t.value.value})),e))return at["a"]}}}),e},t.prototype.buildRootValueFromCache=function(t,e){return this.cache.diff({query:Object(d["c"])(t),variables:e,returnPartialData:!0,optimistic:!1}).result},t.prototype.resolveDocument=function(t,e){return Object(n["b"])(this,arguments,void 0,(function(t,e,i,r,o,s){var a,l,c,u,h,d,p,m,g,y,_;return void 0===i&&(i={}),void 0===r&&(r={}),void 0===o&&(o=function(){return!0}),void 0===s&&(s=!1),Object(n["d"])(this,(function(v){return a=Object(x["e"])(t),l=Object(x["d"])(t),c=Object(f["a"])(l),u=this.collectSelectionsToResolve(a,c),h=a.operation,d=h?h.charAt(0).toUpperCase()+h.slice(1):"Query",p=this,m=p.cache,g=p.client,y={fragmentMap:c,context:Object(n["a"])(Object(n["a"])({},i),{cache:m,client:g}),variables:r,fragmentMatcher:o,defaultOperationType:d,exportedVariables:{},selectionsToResolve:u,onlyRunForcedResolvers:s},_=!1,[2,this.resolveSelectionSet(a.selectionSet,_,e,y).then((function(t){return{result:t,exportedVariables:y.exportedVariables}}))]}))}))},t.prototype.resolveSelectionSet=function(t,e,i,o){return Object(n["b"])(this,void 0,void 0,(function(){var s,a,l,c,u,d=this;return Object(n["d"])(this,(function(f){return s=o.fragmentMap,a=o.context,l=o.variables,c=[i],u=function(t){return Object(n["b"])(d,void 0,void 0,(function(){var u,d;return Object(n["d"])(this,(function(n){return(e||o.selectionsToResolve.has(t))&&Object(h["d"])(t,l)?Object(w["e"])(t)?[2,this.resolveField(t,e,i,o).then((function(e){var i;"undefined"!==typeof e&&c.push((i={},i[Object(w["i"])(t)]=e,i))}))]:(Object(w["f"])(t)?u=t:(u=s[t.name.value],Object(r["b"])(u,19,t.name.value)),u&&u.typeCondition&&(d=u.typeCondition.name.value,o.fragmentMatcher(i,d,a))?[2,this.resolveSelectionSet(u.selectionSet,e,i,o).then((function(t){c.push(t)}))]:[2]):[2]}))}))},[2,Promise.all(t.selections.map(u)).then((function(){return Object(q["c"])(c)}))]}))}))},t.prototype.resolveField=function(t,e,i,r){return Object(n["b"])(this,void 0,void 0,(function(){var o,s,a,l,c,u,h,d,f,p=this;return Object(n["d"])(this,(function(n){return i?(o=r.variables,s=t.name.value,a=Object(w["i"])(t),l=s!==a,c=i[a]||i[s],u=Promise.resolve(c),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(t)||(h=i.__typename||r.defaultOperationType,d=this.resolvers&&this.resolvers[h],d&&(f=d[l?s:a],f&&(u=Promise.resolve(ut["a"].withValue(this.cache,f,[i,Object(w["a"])(t,o),r.context,{field:t,fragmentMap:r.fragmentMap}]))))),[2,u.then((function(i){var n,o;if(void 0===i&&(i=c),t.directives&&t.directives.forEach((function(t){"export"===t.name.value&&t.arguments&&t.arguments.forEach((function(t){"as"===t.name.value&&"StringValue"===t.value.kind&&(r.exportedVariables[t.value.value]=i)}))})),!t.selectionSet)return i;if(null==i)return i;var s=null!==(o=null===(n=t.directives)||void 0===n?void 0:n.some((function(t){return"client"===t.name.value})))&&void 0!==o&&o;return Array.isArray(i)?p.resolveSubSelectedArray(t,e||s,i,r):t.selectionSet?p.resolveSelectionSet(t.selectionSet,e||s,i,r):void 0}))]):[2,null]}))}))},t.prototype.resolveSubSelectedArray=function(t,e,i,n){var r=this;return Promise.all(i.map((function(i){return null===i?null:Array.isArray(i)?r.resolveSubSelectedArray(t,e,i,n):t.selectionSet?r.resolveSelectionSet(t.selectionSet,e,i,n):void 0})))},t.prototype.collectSelectionsToResolve=function(t,e){var i=function(t){return!Array.isArray(t)},n=this.selectionsToResolveCache;function o(t){if(!n.has(t)){var s=new Set;n.set(t,s),Object(at["b"])(t,{Directive:function(t,e,n,r,o){"client"===t.name.value&&o.forEach((function(t){i(t)&&ct(t)&&s.add(t)}))},FragmentSpread:function(t,n,a,l,c){var u=e[t.name.value];Object(r["b"])(u,20,t.name.value);var h=o(u);h.size>0&&(c.forEach((function(t){i(t)&&ct(t)&&s.add(t)})),s.add(t),h.forEach((function(t){s.add(t)})))}})}return n.get(t)}return o(t)},t}();function dt(t,e){return Object(D["a"])(t,e,e.variables&&{variables:Object(D["a"])(Object(n["a"])(Object(n["a"])({},t&&t.variables),e.variables))})}var ft=i("f45e"),pt=!1,mt=function(){function t(t){var e,i=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!t.cache)throw Object(r["d"])(16);var s=t.uri,c=t.credentials,u=t.headers,h=t.cache,d=t.documentTransform,f=t.ssrMode,p=void 0!==f&&f,m=t.ssrForceFetchDelay,g=void 0===m?0:m,y=t.connectToDevTools,_=t.queryDeduplication,v=void 0===_||_,b
7=t.defaultOptions,x=t.defaultContext,w=t.assumeImmutableResults,E=void 0===w?h.assumeImmutableResults:w,T=t.resolvers,S=t.typeDefs,k=t.fragmentMatcher,O=t.name,A=t.version,C=t.devtools,I=t.dataMasking,M=t.link;M||(M=s?new l["a"]({uri:s,credentials:c,headers:u}):o["a"].empty()),this.link=M,this.cache=h,this.disableNetworkFetches=p||g>0,this.queryDeduplication=v,this.defaultOptions=b||Object.create(null),this.typeDefs=S,this.devtoolsConfig=Object(n["a"])(Object(n["a"])({},C),{enabled:null!==(e=null===C||void 0===C?void 0:C.enabled)&&void 0!==e?e:y}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),g&&setTimeout((function(){return i.disableNetworkFetches=!1}),g),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=a["a"],this.localState=new ht({cache:h,client:this,resolvers:T,fragmentMatcher:k}),this.queryManager=new st({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:x,documentTransform:d,queryDeduplication:v,ssrMode:p,dataMasking:!!I,clientAwareness:{name:O,version:A},localState:this.localState,assumeImmutableResults:E,onBroadcast:this.devtoolsConfig.enabled?function(){i.devToolsHookCb&&i.devToolsHookCb({action:{},state:{queries:i.queryManager.getQueryStore(),mutations:i.queryManager.mutationStore||{}},dataWithOptimisticResults:i.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return t.prototype.connectToDevTools=function(){if("undefined"!==typeof window){var t=window,e=Symbol.for("apollo.devtools");(t[e]=t[e]||[]).push(this),t.__APOLLO_CLIENT__=this,pt||!1===globalThis.__DEV__||(pt=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout((function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var t=window.navigator,e=t&&t.userAgent,i=void 0;"string"===typeof e&&(e.indexOf("Chrome/")>-1?i="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":e.indexOf("Firefox/")>-1&&(i="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),i&&!1!==globalThis.__DEV__&&r["b"].log("Download the Apollo DevTools for a better development experience: %s",i)}}),1e4))}},Object.defineProperty(t.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),t.prototype.stop=function(){this.queryManager.stop()},t.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=dt(this.defaultOptions.watchQuery,t)),!this.disableNetworkFetches||"network-only"!==t.fetchPolicy&&"cache-and-network"!==t.fetchPolicy||(t=Object(n["a"])(Object(n["a"])({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},t.prototype.query=function(t){return this.defaultOptions.query&&(t=dt(this.defaultOptions.query,t)),Object(r["b"])("cache-and-network"!==t.fetchPolicy,17),this.disableNetworkFetches&&"network-only"===t.fetchPolicy&&(t=Object(n["a"])(Object(n["a"])({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},t.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=dt(this.defaultOptions.mutate,t)),this.queryManager.mutate(t)},t.prototype.subscribe=function(t){var e=this,i=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(t).map((function(r){return Object(n["a"])(Object(n["a"])({},r),{data:e.queryManager.maskOperation({document:t.query,data:r.data,fetchPolicy:t.fetchPolicy,id:i})})}))},t.prototype.readQuery=function(t,e){return void 0===e&&(e=!1),this.cache.readQuery(t,e)},t.prototype.watchFragment=function(t){var e;return this.cache.watchFragment(Object(n["a"])(Object(n["a"])({},t),(e={},e[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,e)))},t.prototype.readFragment=function(t,e){return void 0===e&&(e=!1),this.cache.readFragment(t,e)},t.prototype.writeQuery=function(t){var e=this.cache.writeQuery(t);return!1!==t.broadcast&&this.queryManager.broadcastQueries(),e},t.prototype.writeFragment=function(t){var e=this.cache.writeFragment(t);return!1!==t.broadcast&&this.queryManager.broadcastQueries(),e},t.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},t.prototype.__requestRaw=function(t){return s(this.link,t)},t.prototype.resetStore=function(){var t=this;return Promise.resolve().then((function(){return t.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(t.resetStoreCallbacks.map((function(t){return t()})))})).then((function(){return t.reFetchObservableQueries()}))},t.prototype.clearStore=function(){var t=this;return Promise.resolve().then((function(){return t.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(t.clearStoreCallbacks.map((function(t){return t()})))}))},t.prototype.onResetStore=function(t){var e=this;return this.resetStoreCallbacks.push(t),function(){e.resetStoreCallbacks=e.resetStoreCallbacks.filter((function(e){return e!==t}))}},t.prototype.onClearStore=function(t){var e=this;return this.clearStoreCallbacks.push(t),function(){e.clearStoreCallbacks=e.clearStoreCallbacks.filter((function(e){return e!==t}))}},t.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},t.prototype.refetchQueries=function(t){var e=this.queryManager.refetchQueries(t),i=[],n=[];e.forEach((function(t,e){i.push(e),n.push(t)}));var o=Promise.all(n);return o.queries=i,o.results=n,o.catch((function(t){!1!==globalThis.__DEV__&&r["b"].debug(18,t)})),o},t.prototype.getObservableQueries=function(t){return void 0===t&&(t="active"),this.queryManager.getObservableQueries(t)},t.prototype.extract=function(t){return this.cache.extract(t)},t.prototype.restore=function(t){return this.cache.restore(t)},t.prototype.addResolvers=function(t){this.localState.addResolvers(t)},t.prototype.setResolvers=function(t){this.localState.setResolvers(t)},t.prototype.getResolvers=function(){return this.localState.getResolvers()},t.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},t.prototype.setLink=function(t){this.link=this.queryManager.link=t},Object.defineProperty(t.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext}
7,enumerable:!1,configurable:!0}),t}();!1!==globalThis.__DEV__&&(mt.prototype.getMemoryInternals=ft["b"])},"368e":function(t,e,i){},"36a7":function(t,e,i){},"370b":function(t,e,i){"use strict";i.d(e,"a",(function(){return r})),i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return c}));var n=i("d30b");function r(t,e,i){if(null!==t)for(var n,o,s,a,l,c,u,h,d=0,f=0,p=t.type,m="FeatureCollection"===p,g="Feature"===p,y=m?t.features.length:1,_=0;_<y;_++){u=m?t.features[_].geometry:g?t.geometry:t,h=!!u&&"GeometryCollection"===u.type,l=h?u.geometries.length:1;for(var v=0;v<l;v++){var b=0,x=0;if(a=h?u.geometries[v]:u,null!==a){c=a.coordinates;var w=a.type;switch(d=!i||"Polygon"!==w&&"MultiPolygon"!==w?0:1,w){case null:break;case"Point":if(!1===e(c,f,_,b,x))return!1;f++,b++;break;case"LineString":case"MultiPoint":for(n=0;n<c.length;n++){if(!1===e(c[n],f,_,b,x))return!1;f++,"MultiPoint"===w&&b++}"LineString"===w&&b++;break;case"Polygon":case"MultiLineString":for(n=0;n<c.length;n++){for(o=0;o<c[n].length-d;o++){if(!1===e(c[n][o],f,_,b,x))return!1;f++}"MultiLineString"===w&&b++,"Polygon"===w&&x++}"Polygon"===w&&b++;break;case"MultiPolygon":for(n=0;n<c.length;n++){for(x=0,o=0;o<c[n].length;o++){for(s=0;s<c[n][o].length-d;s++){if(!1===e(c[n][o][s],f,_,b,x))return!1;f++}x++}b++}break;case"GeometryCollection":for(n=0;n<a.geometries.length;n++)if(!1===r(a.geometries[n],e,i))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function o(t,e){var i,n,r,o,s,a,l,c,u,h,d=0,f="FeatureCollection"===t.type,p="Feature"===t.type,m=f?t.features.length:1;for(i=0;i<m;i++){for(a=f?t.features[i].geometry:p?t.geometry:t,c=f?t.features[i].properties:p?t.properties:{},u=f?t.features[i].bbox:p?t.bbox:void 0,h=f?t.features[i].id:p?t.id:void 0,l=!!a&&"GeometryCollection"===a.type,s=l?a.geometries.length:1,r=0;r<s;r++)if(o=l?a.geometries[r]:a,null!==o)switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===e(o,d,c,u,h))return!1;break;case"GeometryCollection":for(n=0;n<o.geometries.length;n++)if(!1===e(o.geometries[n],d,c,u,h))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===e(null,d,c,u,h))return!1;d++}}function s(t,e,i){var n=i;return o(t,(function(t,r,o,s,a){n=0===r&&void 0===i?t:e(n,t,r,o,s,a)})),n}function a(t,e){o(t,(function(t,i,r,o,s){var a,l=null===t?null:t.type;switch(l){case null:case"Point":case"LineString":case"Polygon":return!1!==e(Object(n["b"])(t,r,{bbox:o,id:s}),i,0)&&void 0}switch(l){case"MultiPoint":a="Point";break;case"MultiLineString":a="LineString";break;case"MultiPolygon":a="Polygon";break}for(var c=0;c<t.coordinates.length;c++){var u=t.coordinates[c],h={type:a,coordinates:u};if(!1===e(Object(n["b"])(h,r),i,c))return!1}}))}function l(t,e){a(t,(function(t,i,o){var s=0;if(t.geometry){var a=t.geometry.type;if("Point"!==a&&"MultiPoint"!==a){var l,c=0,u=0,h=0;return!1!==r(t,(function(r,a,d,f,p){if(void 0===l||i>c||f>u||p>h)return l=r,c=i,u=f,h=p,void(s=0);var m=Object(n["g"])([l,r],t.properties);if(!1===e(m,i,o,p,s))return!1;s++,l=r}))&&void 0}}}))}function c(t,e,i){var n=i,r=!1;return l(t,(function(t,o,s,a,l){n=!1===r&&void 0===i?t:e(n,t,o,s,a,l),r=!0})),n}},"37c6":function(t,e,i){"use strict";var n=i("8e36");e["a"]=n["a"]},"37e8":function(t,e,i){"use strict";var n=i("83ab"),r=i("aed9"),o=i("9bf2"),s=i("825a"),a=i("fc6a"),l=i("df75");e.f=n&&!r?Object.defineProperties:function(t,e){s(t);var i,n=a(e),r=l(e),c=r.length,u=0;while(c>u)o.f(t,i=r[u++],n[i]);return t}},"384f":function(t,e,i){"use strict";var n=i("e330"),r=i("5388"),o=i("cb27"),s=o.Set,a=o.proto,l=n(a.forEach),c=n(a.keys),u=c(new s).next;t.exports=function(t,e,i){return i?r({iterator:c(t),next:u},e):l(t,e)}},3860:function(t,e,i){"use strict";var n=i("604c");e["a"]=n["a"].extend({name:"button-group",provide(){return{btnToggle:this}},computed:{classes(){return n["a"].options.computed.classes.call(this)}},methods:{genData:n["a"].options.methods.genData}})},"38cb":function(t,e,i){"use strict";i("14d9");var n=i("a9ad"),r=i("7560"),o=i("3206"),s=i("80d2"),a=i("d9bd"),l=i("58df");const c=Object(l["a"])(n["a"],Object(o["a"])("form"),r["a"]);e["a"]=c.extend({name:"validatable",props:{disabled:{type:Boolean,default:null},error:Boolean,errorCount:{type:[Number,String],default:1},errorMessages:{type:[String,Array],default:()=>[]},messages:{type:[String,Array],default:()=>[]},readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},success:Boolean,successMessages:{type:[String,Array],default:()=>[]},validateOnBlur:Boolean,value:{required:!1}},data(){return{errorBucket:[],hasColor:!1,hasFocused:!1,hasInput
7:!1,isFocused:!1,isResetting:!1,lazyValue:this.value,valid:!1}},computed:{computedColor(){if(!this.isDisabled)return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"},hasError(){return this.internalErrorMessages.length>0||this.errorBucket.length>0||this.error},hasSuccess(){return this.internalSuccessMessages.length>0||this.success},externalError(){return this.internalErrorMessages.length>0||this.error},hasMessages(){return this.validationTarget.length>0},hasState(){return!this.isDisabled&&(this.hasSuccess||this.shouldValidate&&this.hasError)},internalErrorMessages(){return this.genInternalMessages(this.errorMessages)},internalMessages(){return this.genInternalMessages(this.messages)},internalSuccessMessages(){return this.genInternalMessages(this.successMessages)},internalValue:{get(){return this.lazyValue},set(t){this.lazyValue=t,this.$emit("input",t)}},isDisabled(){var t;return null!==(t=this.disabled)&&void 0!==t?t:!!this.form&&this.form.disabled},isInteractive(){return!this.isDisabled&&!this.isReadonly},isReadonly(){var t;return null!==(t=this.readonly)&&void 0!==t?t:!!this.form&&this.form.readonly},shouldValidate(){return!!this.externalError||!this.isResetting&&(this.validateOnBlur?this.hasFocused&&!this.isFocused:this.hasInput||this.hasFocused)},validations(){return this.validationTarget.slice(0,Number(this.errorCount))},validationState(){if(!this.isDisabled)return this.hasError&&this.shouldValidate?"error":this.hasSuccess?"success":this.hasColor?this.computedColor:void 0},validationTarget(){return this.internalErrorMessages.length>0?this.internalErrorMessages:this.successMessages&&this.successMessages.length>0?this.internalSuccessMessages:this.messages&&this.messages.length>0?this.internalMessages:this.shouldValidate?this.errorBucket:[]}},watch:{rules:{handler(t,e){Object(s["i"])(t,e)||this.validate()},deep:!0},internalValue(){this.hasInput=!0,this.validateOnBlur||this.$nextTick(this.validate)},isFocused(t){t||this.isDisabled||(this.hasFocused=!0,this.validateOnBlur&&this.$nextTick(this.validate))},isResetting(){setTimeout(()=>{this.hasInput=!1,this.hasFocused=!1,this.isResetting=!1,this.validate()},0)},hasError(t){this.shouldValidate&&this.$emit("update:error",t)},value(t){this.lazyValue=t}},beforeMount(){this.validate()},created(){this.form&&this.form.register(this)},beforeDestroy(){this.form&&this.form.unregister(this)},methods:{genInternalMessages(t){return t?Array.isArray(t)?t:[t]:[]},reset(){this.isResetting=!0,this.internalValue=Array.isArray(this.internalValue)?[]:null},resetValidation(){this.isResetting=!0},validate(t=!1,e){const i=[];e=e||this.internalValue,t&&(this.hasInput=this.hasFocused=!0);for(let n=0;n<this.rules.length;n++){const t=this.rules[n],r="function"===typeof t?t(e):t;!1===r||"string"===typeof r?i.push(r||""):"boolean"!==typeof r&&Object(a["b"])(`Rules should return a string or boolean, received '${typeof r}' instead`,this)}return this.errorBucket=i,this.valid=0===i.length,this.valid}}})},"395e":function(t,e,i){"use strict";var n=i("dc19"),r=i("cb27").has,o=i("8e16"),s=i("7f65"),a=i("5388"),l=i("2a62");t.exports=function(t){var e=n(this),i=s(t);if(o(e)<i.size)return!1;var c=i.getIterator();return!1!==a(c,(function(t){if(!r(e,t))return l(c,"normal",!1)}))}},"3a34":function(t,e,i){"use strict";var n=i("83ab"),r=i("e8b5"),o=TypeError,s=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(r(t)&&!s(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},"3a59":function(t,e,i){"use strict";var n=i("4703"),r=Math.PI/180,o=180/Math.PI,s=function(t,e){this.lon=t,this.lat=e,this.x=r*t,this.y=r*e};s.prototype.view=function(){return String(this.lon).slice(0,4)+","+String(this.lat).slice(0,4)},s.prototype.antipode=function(){var t=-1*this.lat,e=this.lon<0?180+this.lon:-1*(180-this.lon);return new s(e,t)};var a=function(){this.coords=[],this.length=0};a.prototype.move_to=function(t){this.length++,this.coords.push(t)};var l=function(t){this.properties=t||{},this.geometries=[]};l.prototype.json=function(){if(this.geometries.length<=0)return{geometry:{type:"LineString",coordinates:null},type:"Feature",properties:this.properties};if(1===this.geometries.length)return{geometry:{type:"LineString",coordinates:this.geometries[0].c
7oords},type:"Feature",properties:this.properties};for(var t=[],e=0;e<this.geometries.length;e++)t.push(this.geometries[e].coords);return{geometry:{type:"MultiLineString",coordinates:t},type:"Feature",properties:this.properties}},l.prototype.wkt=function(){for(var t="",e="LINESTRING(",i=function(t){e+=t[0]+" "+t[1]+","},n=0;n<this.geometries.length;n++){if(0===this.geometries[n].coords.length)return"LINESTRING(empty)";var r=this.geometries[n].coords;r.forEach(i),t+=e.substring(0,e.length-1)+")"}return t};var c=function(t,e,i){if(!t||void 0===t.x||void 0===t.y)throw new Error("GreatCircle constructor expects two args: start and end objects with x and y properties");if(!e||void 0===e.x||void 0===e.y)throw new Error("GreatCircle constructor expects two args: start and end objects with x and y properties");this.start=new s(t.x,t.y),this.end=new s(e.x,e.y),this.properties=i||{};var n=this.start.x-this.end.x,r=this.start.y-this.end.y,o=Math.pow(Math.sin(r/2),2)+Math.cos(this.start.y)*Math.cos(this.end.y)*Math.pow(Math.sin(n/2),2);if(this.g=2*Math.asin(Math.sqrt(o)),this.g===Math.PI)throw new Error("it appears "+t.view()+" and "+e.view()+" are 'antipodal', e.g diametrically opposite, thus there is no single route but rather infinite");if(isNaN(this.g))throw new Error("could not calculate great circle between "+t+" and "+e)};function u(t,e,i){if(i=i||{},"object"!==typeof i)throw new Error("options is invalid");var r=i.properties,o=i.npoints,s=i.offset;t=Object(n["a"])(t),e=Object(n["a"])(e),r=r||{},o=o||100,s=s||10;var a=new c({x:t[0],y:t[1]},{x:e[0],y:e[1]},r),l=a.Arc(o,{offset:s});return l.json()}c.prototype.interpolate=function(t){var e=Math.sin((1-t)*this.g)/Math.sin(this.g),i=Math.sin(t*this.g)/Math.sin(this.g),n=e*Math.cos(this.start.y)*Math.cos(this.start.x)+i*Math.cos(this.end.y)*Math.cos(this.end.x),r=e*Math.cos(this.start.y)*Math.sin(this.start.x)+i*Math.cos(this.end.y)*Math.sin(this.end.x),s=e*Math.sin(this.start.y)+i*Math.sin(this.end.y),a=o*Math.atan2(s,Math.sqrt(Math.pow(n,2)+Math.pow(r,2))),l=o*Math.atan2(r,n);return[l,a]},c.prototype.Arc=function(t,e){var i=[];if(!t||t<=2)i.push([this.start.lon,this.start.lat]),i.push([this.end.lon,this.end.lat]);else for(var n=1/(t-1),r=0;r<t;++r){var o=n*r,s=this.interpolate(o);i.push(s)}for(var c=!1,u=0,h=e&&e.offset?e.offset:10,d=180-h,f=-180+h,p=360-h,m=1;m<i.length;++m){var g=i[m-1][0],y=i[m][0],_=Math.abs(y-g);_>p&&(y>d&&g<f||g>d&&y<f)?c=!0:_>u&&(u=_)}var v=[];if(c&&u<h){var b=[];v.push(b);for(var x=0;x<i.length;++x){var w=parseFloat(i[x][0]);if(x>0&&Math.abs(w-i[x-1][0])>p){var E=parseFloat(i[x-1][0]),T=parseFloat(i[x-1][1]),S=parseFloat(i[x][0]),k=parseFloat(i[x][1]);if(E>-180&&E<f&&180===S&&x+1<i.length&&i[x-1][0]>-180&&i[x-1][0]<f){b.push([-180,i[x][1]]),x++,b.push([i[x][0],i[x][1]]);continue}if(E>d&&E<180&&-180===S&&x+1<i.length&&i[x-1][0]>d&&i[x-1][0]<180){b.push([180,i[x][1]]),x++,b.push([i[x][0],i[x][1]]);continue}if(E<f&&S>d){var O=E;E=S,S=O;var A=T;T=k,k=A}if(E>d&&S<f&&(S+=360),E<=180&&S>=180&&E<S){var C=(180-E)/(S-E),I=C*k+(1-C)*T;b.push([i[x-1][0]>d?180:-180,I]),b=[],b.push([i[x-1][0]>d?-180:180,I]),v.push(b)}else b=[],v.push(b);b.push([w,i[x][1]])}else b.push([i[x][0],i[x][1]])}}else{var M=[];v.push(M);for(var P=0;P<i.length;++P)M.push([i[P][0],i[P][1]])}for(var D=new l(this.properties),L=0;L<v.length;++L){var R=new a;D.geometries.push(R);for(var z=v[L],j=0;j<z.length;++j)R.move_to(z[j])}return D},e["a"]=u},"3a9b":function(t,e,i){"use strict";var n=i("e330");t.exports=n({}.isPrototypeOf)},"3ad0":function(t,e,i){},"3bbe":function(t,e,i){"use strict";var n=i("1787"),r=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw new o("Can't set "+r(t)+" as a prototype")}},"3c93":function(t,e,i){},"3ca0":function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return s})),i.d(e,"d",(function(){return a})),i.d(e,"a",(function(){return c}));var n=i("9ab4"),r=(i("8f69"),i("4623")),o=Symbol();function s(t){return!!t.extensions&&Array.isArray(t.extensions[o])}function a(t){return t.hasOwnProperty("graphQLErrors")}var l=function(t){var e=Object(n["f"])(Object(n["f"])(Object(n["f"])([],t.graphQLErrors,!0),t.clientErrors,!0),t.protocolErrors,!0);return t.networkError&&e.push(t.networkError),e.map((function(t){return Object(r["a"])(t)&&t.message||"Error message not found."})).join("\n")},c=function(t){function e(i){var r=i.graphQLErrors,o=i.protocolErrors,s=i.clientErrors,a=i.networkError,c=i.errorMessage,u=i.extraInfo,h=t.call(this,c)||this;return h.name="ApolloError",h.graphQLErrors=r||[],h.protocolErrors=o||[],h.clientErrors=s||[],h.networkError=a||null,h.message=c||l(h),h.extraInfo=u,h.cause=Object(n["f"])(Object(n["f"])(Object(n["f"])([a],r||[],!0),o||[],!0),s||[],!0).find((function(t){return!!t}))||null,h.__proto__=e.prototype,h}return Object(n["c"])(e,t),e}(Error)}
7,"3e35":function(t,e,i){"use strict";i("14d9");var n=i("9d65"),r=i("4e82"),o=i("c3f0"),s=i("80d2"),a=i("58df");const l=Object(a["a"])(n["a"],Object(r["a"])("windowGroup","v-window-item","v-window"));var c=l.extend().extend().extend({name:"v-window-item",directives:{Touch:o["a"]},props:{disabled:Boolean,reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},value:{required:!1}},data(){return{isActive:!1,inTransition:!1}},computed:{classes(){return this.groupClasses},computedTransition(){return this.windowGroup.internalReverse?"undefined"!==typeof this.reverseTransition?this.reverseTransition||"":this.windowGroup.computedTransition:"undefined"!==typeof this.transition?this.transition||"":this.windowGroup.computedTransition}},methods:{genDefaultSlot(){return Object(s["m"])(this)},genWindowItem(){return this.$createElement("div",{staticClass:"v-window-item",class:this.classes,directives:[{name:"show",value:this.isActive}],on:this.$listeners},this.genDefaultSlot())},onAfterTransition(){this.inTransition&&(this.inTransition=!1,this.windowGroup.transitionCount>0&&(this.windowGroup.transitionCount--,0===this.windowGroup.transitionCount&&(this.windowGroup.transitionHeight=void 0)))},onBeforeTransition(){this.inTransition||(this.inTransition=!0,0===this.windowGroup.transitionCount&&(this.windowGroup.transitionHeight=Object(s["g"])(this.windowGroup.$el.clientHeight)),this.windowGroup.transitionCount++)},onTransitionCancelled(){this.onAfterTransition()},onEnter(t){this.inTransition&&this.$nextTick(()=>{this.computedTransition&&this.inTransition&&(this.windowGroup.transitionHeight=Object(s["g"])(t.clientHeight))})}},render(t){return t("transition",{props:{name:this.computedTransition},on:{beforeEnter:this.onBeforeTransition,afterEnter:this.onAfterTransition,enterCancelled:this.onTransitionCancelled,beforeLeave:this.onBeforeTransition,afterLeave:this.onAfterTransition,leaveCancelled:this.onTransitionCancelled,enter:this.onEnter}},this.showLazyContent(()=>[this.genWindowItem()]))}}),u=i("adda"),h=i("1c87");const d=Object(a["a"])(c,h["a"]);e["a"]=d.extend().extend({name:"v-carousel-item",inject:{parentTheme:{default:{isDark:!1}}},provide(){return{theme:this.parentTheme}},inheritAttrs:!1,methods:{genDefaultSlot(){return[this.$createElement(u["a"],{staticClass:"v-carousel__item",props:{...this.$attrs,height:this.windowGroup.internalHeight},on:this.$listeners,scopedSlots:{placeholder:this.$scopedSlots.placeholder}},Object(s["m"])(this))]},genWindowItem(){const{tag:t,data:e}=this.generateRouteLink();return e.staticClass="v-window-item",e.directives.push({name:"show",value:this.isActive}),this.$createElement(t,e,this.genDefaultSlot())}}})},"3ef4":function(t,e,i){"use strict";const n={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","Map.Title":"Map","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScrollZoomBlocker.CtrlMessage":"Use ctrl + scroll to zoom the map","ScrollZoomBlocker.CmdMessage":"Use â + scroll to zoom the map","TouchPanBlocker.Message":"Use two fingers to move the map"};e["a"]=n},"3f11":function(t,e,i){"use strict";(function(t){var n=i("9f3c");e["a"]=Object(n["a"])((function(){return globalThis}))||Object(n["a"])((function(){return window}))||Object(n["a"])((function(){return self}))||Object(n["a"])((function(){return t}))||Object(n["a"])((function(){return n["a"].constructor("return this")()}))}).call(this,i("c8ba"))},"3f8c":function(t,e,i){"use strict";t.exports={}},"40d5":function(t,e,i){"use strict";var n=i("d039");t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},"41c0":function(t,e,i){"use strict";i.d(e,"d",(function(){return s})),i.d(e,"c",(function(){return a})),i.d(e,"b",(function(){return l})),i.d(e,"a",(function(){return h}));var n=i("8f69"),r=i("2f6c"),o=i("fe35");function s(t,e){var i=t.directives;return!i||!i.length||u(i).every((function(t){var i=t.directive,r=t.ifArgument,o=!1;return"Variable"===r.value.kind?(o=e&&e[r.value.name.value],Object(n["b"])(void 0!==o,78,i.name.value)):o=r.value.value,"skip"===i.name.value?!o:o}))}function a(t,e,i){var n=new Set(t),o=n.size;return Object(r["b"])(e,{Directive:function(t){if(n.delete(t.name.value)&&(!i||!n.size))return r["a"]}}),i?!n.size:n.size<o}function l(t){return t&&a(["client","export"],t,!0)}function c(t){var e=t.name.value;return"skip"===e||"include"===e}function u(t){var e=[];return t&&t.length&&t.forEach((function(t){if(c(t)){var i=t.arguments,r=t.name.value;Object(n["b"])(i&&1===i.length,79,r);var o=i[0];Object(n["b"])(o.name&&"if"===o.name.value,80,r);var s=o.value;Object(n["b"])(s&&("Variable"===s.kind||"BooleanValue"===s.kind),81,r),e.push({directive:t,ifArgument:o})}})),e}function h(t){var e,i,r=null===(e=t.directives)||void 0===e?void 0:e.find((function(t){var e=t.name;return"unmask"===e.value}));if(!r)return"mask";var s=null===(i=r.arguments)||void 0===i?void 0:i.find((function(t){var e=t.name;return"mode"===e.value}));return!1!==globalThis.__DEV__&&s&&(s.value.kind===o["a"].VARIABLE?!1!==globalThis.__DEV__&&n["b"].warn(82):s.value.kind!==o["a"].STRING?!1!==globalThis.__DEV__&&n["b"].warn(83):"migrate"!==s.value.value&&!1!==globalThis.__DEV__&&n["b"].warn(84,s.value.value)),s&&"value"in s.value&&"migrate"===s.value.value?"migrate":"unmask"}}
7,4227:function(t,e,i){"use strict";var n=i("4703"),r=i("d30b");function o(t,e,i){void 0===i&&(i={});var o=Object(n["a"])(t),s=Object(n["a"])(e),a=Object(r["a"])(s[1]-o[1]),l=Object(r["a"])(s[0]-o[0]),c=Object(r["a"])(o[1]),u=Object(r["a"])(s[1]),h=Math.pow(Math.sin(a/2),2)+Math.pow(Math.sin(l/2),2)*Math.cos(c)*Math.cos(u);return Object(r["l"])(2*Math.atan2(Math.sqrt(h),Math.sqrt(1-h)),i.units)}e["a"]=o},4251:function(t,e,i){"use strict";i.d(e,"a",(function(){return o["a"]})),i.d(e,"b",(function(){return L})),i.d(e,"c",(function(){return B}));var n=i("eee5"),r=i("f88b"),o=i("d6de");const{bind:s,noContext:a}=o["a"];const l=new o["a"];const{hasOwnProperty:c}=Object.prototype,u=Array.from||function(t){const e=[];return t.forEach(t=>e.push(t)),e};function h(t){const{unsubscribe:e}=t;"function"===typeof e&&(t.unsubscribe=void 0,e())}const d=[],f=100;function p(t,e){if(!t)throw new Error(e||"assertion failure")}function m(t,e){const i=t.length;return i>0&&i===e.length&&t[i-1]===e[i-1]}function g(t){switch(t.length){case 0:throw new Error("unknown value");case 1:return t[0];case 2:throw t[1]}}function y(t){return t.slice(0)}class _{constructor(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++_.count}peek(){if(1===this.value.length&&!w(this))return v(this),this.value[0]}recompute(t){return p(!this.recomputing,"already recomputing"),v(this),w(this)?b(this,t):g(this.value)}setDirty(){this.dirty||(this.dirty=!0,T(this),h(this))}dispose(){this.setDirty(),I(this),k(this,(t,e)=>{t.setDirty(),M(t,this)})}forget(){this.dispose()}dependOn(t){t.add(this),this.deps||(this.deps=d.pop()||new Set),this.deps.add(t)}forgetDeps(){this.deps&&(u(this.deps).forEach(t=>t.delete(this)),this.deps.clear(),d.push(this.deps),this.deps=null)}}function v(t){const e=l.getValue();if(e)return t.parents.add(e),e.childValues.has(t)||e.childValues.set(t,[]),w(t)?O(e,t):A(e,t),e}function b(t,e){return I(t),l.withValue(t,x,[t,e]),P(t,e)&&E(t),g(t.value)}function x(t,e){t.recomputing=!0;const{normalizeResult:i}=t;let n;i&&1===t.value.length&&(n=y(t.value)),t.value.length=0;try{if(t.value[0]=t.fn.apply(null,e),i&&n&&!m(n,t.value))try{t.value[0]=i(t.value[0],n[0])}catch(r){}}catch(o){t.value[1]=o}t.recomputing=!1}function w(t){return t.dirty||!(!t.dirtyChildren||!t.dirtyChildren.size)}function E(t){t.dirty=!1,w(t)||S(t)}function T(t){k(t,O)}function S(t){k(t,A)}function k(t,e){const i=t.parents.size;if(i){const n=u(t.parents);for(let r=0;r<i;++r)e(n[r],t)}}function O(t,e){p(t.childValues.has(e)),p(w(e));const i=!w(t);if(t.dirtyChildren){if(t.dirtyChildren.has(e))return}else t.dirtyChildren=d.pop()||new Set;t.dirtyChildren.add(e),i&&T(t)}function A(t,e){p(t.childValues.has(e)),p(!w(e));const i=t.childValues.get(e);0===i.length?t.childValues.set(e,y(e.value)):m(i,e.value)||t.setDirty(),C(t,e),w(t)||S(t)}function C(t,e){const i=t.dirtyChildren;i&&(i.delete(e),0===i.size&&(d.length<f&&d.push(i),t.dirtyChildren=null))}function I(t){t.childValues.size>0&&t.childValues.forEach((e,i)=>{M(t,i)}),t.forgetDeps(),p(null===t.dirtyChildren)}function M(t,e){e.parents.delete(t),t.childValues.delete(e),C(t,e)}function P(t,e){if("function"===typeof t.subscribe)try{h(t),t.unsubscribe=t.subscribe.apply(null,e)}catch(i){return t.setDirty(),!1}return!0}_.count=0;const D={setDirty:!0,dispose:!0,forget:!0};function L(t){const e=new Map,i=t&&t.subscribe;function n(t){const n=l.getValue();if(n){let r=e.get(t);r||e.set(t,r=new Set),n.dependOn(r),"function"===typeof i&&(h(r),r.unsubscribe=i(t))}}return n.dirty=function(t,i){const n=e.get(t);if(n){const r=i&&c.call(D,i)?i:"setDirty";u(n).forEach(t=>t[r]()),e.delete(t),h(n)}},n}let R;function z(...t){const e=R||(R=new n["a"]("function"===typeof WeakMap));return e.lookupArray(t)}const j=new Set;function B(t,{max:e=Math.pow(2,16),keyArgs:i,makeCacheKey:n=z,normalizeResult:o,subscribe:s,cache:a=r["a"]}=Object.create(null)){const c="function"===typeof a?new a(e,t=>t.dispose()):a,u=function(){const e=n.apply(null,i?i.apply(null,arguments):arguments);if(void 0===e)return t.apply(null,arguments);let r=c.get(e);
7r||(c.set(e,r=new _(t)),r.normalizeResult=o,r.subscribe=s,r.forget=()=>c.delete(e));const a=r.recompute(Array.prototype.slice.call(arguments));return c.set(e,r),j.add(c),l.hasValue()||(j.forEach(t=>t.clean()),j.clear()),a};function h(t){const e=t&&c.get(t);e&&e.setDirty()}function d(t){const e=t&&c.get(t);if(e)return e.peek()}function f(t){return!!t&&c.delete(t)}return Object.defineProperty(u,"size",{get:()=>c.size,configurable:!1,enumerable:!1}),Object.freeze(u.options={max:e,keyArgs:i,makeCacheKey:n,normalizeResult:o,subscribe:s,cache:c}),u.dirtyKey=h,u.dirty=function(){h(n.apply(null,arguments))},u.peekKey=d,u.peek=function(){return d(n.apply(null,arguments))},u.forgetKey=f,u.forget=function(){return f(n.apply(null,arguments))},u.makeCacheKey=n,u.getKey=i?function(){return n.apply(null,i.apply(null,arguments))}:n,Object.freeze(u)}},"435d":function(t,e,i){},4362:function(t,e,i){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,n="/";e.cwd=function(){return n},e.chdir=function(e){t||(t=i("df7c")),n=t.resolve(e,n)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"44ad":function(t,e,i){"use strict";var n=i("e330"),r=i("d039"),o=i("c6b6"),s=Object,a=n("".split);t.exports=r((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?a(t,""):s(t)}:s},"44e7":function(t,e,i){"use strict";var n=i("861d"),r=i("c6b6"),o=i("b622"),s=o("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[s])?!!e:"RegExp"===r(t))}},"45b9":function(t,e,i){"use strict";e.encode=i("6c57"),e.decode=i("92cd")},4623:function(t,e,i){"use strict";function n(t){return null!==t&&"object"===typeof t}i.d(e,"a",(function(){return n}))},4625:function(t,e,i){"use strict";var n=i("c6b6"),r=i("e330");t.exports=function(t){if("Function"===n(t))return r(t)}},"46c4":function(t,e,i){"use strict";t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},"46d3":function(t,e,i){},4703:function(t,e,i){"use strict";i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return o}));i("d30b");
7function n(t){if(!t)throw new Error("coord is required");if(!Array.isArray(t)){if("Feature"===t.type&&null!==t.geometry&&"Point"===t.geometry.type)return t.geometry.coordinates;if("Point"===t.type)return t.coordinates}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1]))return t;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function r(t){return"Feature"===t.type?t.geometry:t}function o(t,e){return"FeatureCollection"===t.type?"FeatureCollection":"GeometryCollection"===t.type?"GeometryCollection":"Feature"===t.type&&null!==t.geometry?t.geometry.type:t.type}},4754:function(t,e,i){"use strict";t.exports=function(t,e){return{value:t,done:e}}},4804:function(t,e,i){},"485a":function(t,e,i){"use strict";var n=i("c65b"),r=i("1626"),o=i("861d"),s=TypeError;t.exports=function(t,e){var i,a;if("string"===e&&r(i=t.toString)&&!o(a=n(i,t)))return a;if(r(i=t.valueOf)&&!o(a=n(i,t)))return a;if("string"!==e&&r(i=t.toString)&&!o(a=n(i,t)))return a;throw new s("Can't convert object to primitive value")}},"490a":function(t,e,i){"use strict";i("8d4f");var n=i("90a2"),r=i("a9ad"),o=i("80d2");e["a"]=r["a"].extend({name:"v-progress-circular",directives:{intersect:n["a"]},props:{button:Boolean,indeterminate:Boolean,rotate:{type:[Number,String],default:0},size:{type:[Number,String],default:32},width:{type:[Number,String],default:4},value:{type:[Number,String],default:0}},data:()=>({radius:20,isVisible:!0}),computed:{calculatedSize(){return Number(this.size)+(this.button?8:0)},circumference(){return 2*Math.PI*this.radius},classes(){return{"v-progress-circular--visible":this.isVisible,"v-progress-circular--indeterminate":this.indeterminate,"v-progress-circular--button":this.button}},normalizedValue(){return this.value<0?0:this.value>100?100:parseFloat(this.value)},strokeDashArray(){return Math.round(1e3*this.circumference)/1e3},strokeDashOffset(){return(100-this.normalizedValue)/100*this.circumference+"px"},strokeWidth(){return Number(this.width)/+this.size*this.viewBoxSize*2},styles(){return{height:Object(o["g"])(this.calculatedSize),width:Object(o["g"])(this.calculatedSize)}},svgStyles(){return{transform:`rotate(${Number(this.rotate)}deg)`}},viewBoxSize(){return this.radius/(1-Number(this.width)/+this.size)}},methods:{genCircle(t,e){return this.$createElement("circle",{class:"v-progress-circular__"+t,attrs:{fill:"transparent",cx:2*this.viewBoxSize,cy:2*this.viewBoxSize,r:this.radius,"stroke-width":this.strokeWidth,"stroke-dasharray":this.strokeDashArray,"stroke-dashoffset":e}})},genSvg(){const t=[this.indeterminate||this.genCircle("underlay",0),this.genCircle("overlay",this.strokeDashOffset)];return this.$createElement("svg",{style:this.svgStyles,attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:`${this.viewBoxSize} ${this.viewBoxSize} ${2*this.viewBoxSize} ${2*this.viewBoxSize}`}},t)},genInfo(){return this.$createElement("div",{staticClass:"v-progress-circular__info"},Object(o["m"])(this))},onObserve(t,e,i){this.isVisible=i}},render(t){return t("div",this.setTextColor(this.color,{staticClass:"v-progress-circular",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,directives:[{name:"intersect",value:this.onObserve}],style:this.styles,on:this.$listeners}),[this.genSvg(),this.genInfo()])}})},"49e4":function(t,e,i){"use strict";var n=i("d30b"),r=i("4703"),o=function(){function t(t){this.points=t.points||[],this.duration=t.duration||1e4,this.sharpness=t.sharpness||.85,this.centers=[],this.controls=[],this.stepLength=t.stepLength||60,this.length=this.points.length,this.delay=0;for(var e=0;e<this.length;e++)this.points[e].z=this.points[e].z||0;for(e=0;e<this.length-1;e++){var i=this.points[e],n=this.points[e+1];this.centers.push({x:(i.x+n.x)/2,y:(i.y+n.y)/2,z:(i.z+n.z)/2})}this.controls.push([this.points[0],this.points[0]]);for(e=0;e<this.centers.length-1;e++){var r=this.points[e+1].x-(this.centers[e].x+this.centers[e+1].x)/2,o=this.points[e+1].y-(this.centers[e].y+this.centers[e+1].y)/2,s=this.points[e+1].z-(this.centers[e].y+this.centers[e+1].z)/2;this.controls.push([{x:(1-this.sharpness)*this.points[e+1].x+this.sharpness*(this.centers[e].x+r),y:(1-this.sharpness)*this.points[e+1].y+this.sharpness*(this.centers[e].y+o),z:(1-this.sharpness)*this.points[e+1].z+this.sharpness*(this.centers[e].z+s)},{x:(1-this.sharpness)*this.points[e+1].x+this.sharpness*(this.centers[e+1].x+r),y:(1-this.sharpness)*this.points[e+1].y+this.sharpness*(this.centers[e+1].y+o),z:(1-this.sharpness)*this.points[e+1].z+this.sharpness*(this.centers[e+1].z+s)}])}return this.controls.push([this.points[this.length-1],this.points[this.length-1]]),this.steps=this.cacheSteps(this.stepLength),this}return t.prototype.cacheSteps=function(t){var e=[],i=this.pos(0);e.push(0);for(var n=0;n<this.duration;n+=10){var r=this.pos(n),o=Math.sqrt((r.x-i.x)*(r.x-i.x)+(r.y-i.y)*(r.y-i.y)+(r.z-i.z)*(r.z-i.z));o>t&&(e.push(n),i=r)}return e},t.prototype.vector=function(t){var e=this.pos(t+10),i=this.pos(t-10);return{angle:180*Math.atan2(e.y-i.y,e.x-i.x)/3.14,speed:Math.sqrt((i.x-e.x)*(i.x-e.x)+(i.y-e.y)*(i.y-e.y)+(i.z-e.z)*(i.z-e.z))}},t.prototype.pos=function(t){var e=t-this.delay;e<0&&(e=0),e>this.duration&&(e=this.duration-1);var i=e/this.duration;if(i>=1)return this.points[this.length-1];var n=Math.floor((this.points.length-1)*i),r=(this.length-1)*i-n;return a(r,this.points[n],this.controls[n][1],this.controls[n+1][0],this.points[n+1])},t}(),s=o;function a(t,e,i,n,r){var o=l(t),s={x:r.x*o[0]+n.x*o[1]+i.x*o[2]+e.x*o[3],y:r.y*o[0]+n.y*o[1]+i.y*o[2]+e.y*o[3],z:r.z*o[0]+n.z*o[1]+i.z*o[2]+e.z*o[3]};return s}function l(t){var e=t*t,i=e*t;return[i,3*e*(1-t),3*t*(1-t)*(1-t),(1-t)*(1-t)*(1-t)]}function c(t,e){void 0===e&&(e={});for(var i=e.resolution||1e4,o=e.sharpness||.85,a=[],l=Object(r["b"])(t).coordinates.map((function(t){return{x:t[0],y:t[1]}})),c=new s({duration:i,points:l,sharpness:o}),u=function(t){var e=c.pos(t);Math.floor(t/100)%2===0&&a.push([e.x,e.y])},h=0;h<c.duration;h+=10)u(h);return u(c.duration),Object(n["g"])(a,e.properties)}e["a"]=c}
7,"4a69":function(t,e,i){"use strict";function n(t,e){return Object.keys(t).reduce((function(i,n){return i[n]=e(n,t[n]),i}),{})}t.exports=n},"4b85":function(t,e,i){},"4ca6":function(t,e,i){"use strict";i("14d9"),i("ff44");var n=i("132d"),r=i("a9ad"),o=i("7560"),s=i("f2e7"),a=i("f40d"),l=i("fe6c"),c=i("58df"),u=i("80d2");e["a"]=Object(c["a"])(r["a"],Object(l["b"])(["left","bottom"]),o["a"],s["a"],a["a"]).extend({name:"v-badge",props:{avatar:Boolean,bordered:Boolean,color:{type:String,default:"primary"},content:{required:!1},dot:Boolean,label:{type:String,default:"$vuetify.badge"},icon:String,inline:Boolean,offsetX:[Number,String],offsetY:[Number,String],overlap:Boolean,tile:Boolean,transition:{type:String,default:"scale-rotate-transition"},value:{default:!0}},computed:{classes(){return{"v-badge--avatar":this.avatar,"v-badge--bordered":this.bordered,"v-badge--bottom":this.bottom,"v-badge--dot":this.dot,"v-badge--icon":null!=this.icon,"v-badge--inline":this.inline,"v-badge--left":this.left,"v-badge--overlap":this.overlap,"v-badge--tile":this.tile,...this.themeClasses}},computedBottom(){return this.bottom?"auto":this.computedYOffset},computedLeft(){return this.isRtl?this.left?this.computedXOffset:"auto":this.left?"auto":this.computedXOffset},computedRight(){return this.isRtl?this.left?"auto":this.computedXOffset:this.left?this.computedXOffset:"auto"},computedTop(){return this.bottom?this.computedYOffset:"auto"},computedXOffset(){return this.calcPosition(this.offsetX)},computedYOffset(){return this.calcPosition(this.offsetY)},isRtl(){return this.$vuetify.rtl},offset(){return this.overlap?this.dot?8:12:this.dot?2:4},styles(){return this.inline?{}:{bottom:this.computedBottom,left:this.computedLeft,right:this.computedRight,top:this.computedTop}}},methods:{calcPosition(t){return`calc(100% - ${Object(u["g"])(t||this.offset)})`},genBadge(){const t=this.$vuetify.lang,e=this.$attrs["aria-label"]||t.t(this.label),i=this.setBackgroundColor(this.color,{staticClass:"v-badge__badge",style:this.styles,attrs:{"aria-atomic":this.$attrs["aria-atomic"]||"true","aria-label":e,"aria-live":this.$attrs["aria-live"]||"polite",title:this.$attrs.title,role:this.$attrs.role||"status"},directives:[{name:"show",value:this.isActive}]}),n=this.$createElement("span",i,[this.genBadgeContent()]);return this.transition?this.$createElement("transition",{props:{name:this.transition,origin:this.origin,mode:this.mode}},[n]):n},genBadgeContent(){if(this.dot)return;const t=Object(u["m"])(this,"badge");return t||(this.content?String(this.content):this.icon?this.$createElement(n["a"],this.icon):void 0)},genBadgeWrapper(){return this.$createElement("span",{staticClass:"v-badge__wrapper"},[this.genBadge()])}},render(t){const e=[this.genBadgeWrapper()],i=[Object(u["m"])(this)],{"aria-atomic":n,"aria-label":r,"aria-live":o,role:s,title:a,...l}=this.$attrs;return this.inline&&this.left?i.unshift(e):i.push(e),t("span",{staticClass:"v-badge",attrs:l,class:this.classes},i)}})},"4d64":function(t,e,i){"use strict";var n=i("fc6a"),r=i("23cb"),o=i("07fa"),s=function(t){return function(e,i,s){var a=n(e),l=o(a);if(0===l)return!t&&-1;var c,u=r(s,l);if(t&&i!==i){while(l>u)if(c=a[u++],c!==c)return!0}else for(;l>u;u++)if((t||u in a)&&a[u]===i)return t||u||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},"4e82":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("3206");function r(t,e,i){return Object(n["a"])(t,e,i).extend({name:"groupable",props:{activeClass:{type:String,default(){if(this[t])return this[t].activeClass}},disabled:Boolean},data(){return{isActive:!1}},computed:{groupClasses(){return this.activeClass?{[this.activeClass]:this.isActive}:{}}},created(){this[t]&&this[t].register(this)},beforeDestroy(){this[t]&&this[t].unregister(this)},methods:{toggle(t){this.disabled&&t?t.preventDefault():this.$emit("change")}}})}r("itemGroup")},"4f5d":function(t,e,i){},"4ff9":function(t,e,i){},"504b":function(t,e,i){"use strict";var n={};function r(t){return Math.floor(Math.abs(t)+.5)*(t>=0?1:-1)}function o(t,e,i){t=r(t*i),e=r(e*i);var n=2*(t-e);n<0&&(n=-n-1);var o="";while(n>=32)o+=String.fromCharCode(63+(32|31&n)),n/=32;return o+=String.fromCharCode(63+(0|n)),o}function s(t){for(var e=[],i=0;i<t.length;i++){var n=t[i].slice();e.push([n[1],n[0]])}return e}n.decode=function(t,e){var i,n,r=0,o=0,s=0,a=[],l=0,c=0,u=null,h=Math.pow(10,Number.isInteger(e)?e:5);while(r<t.length){u=null,l=1,c=0;do{u=t.charCodeAt(r++)-63,c+=(31&u)*l,l*=32}while(u>=32);i=1&c?(-c-1)/2:c/2,l=1,c=0;do{u=t.charCodeAt(r++)-63,c+=(31&u)*l,l*=32}while(u>=32);n=1&c?(-c-1)/2:c/2,o+=i,s+=n,a.push([o/h,s/h])}return a},n.encode=function(t,e){if(!t.length)return"";for(var i=Math.pow(10,Number.isInteger(e)?e:5),n=o(t[0][0],0,i)+o(t[0][1],0,i),r=1;r<t.length;r++){var s=t[r],a=t[r-1];n+=o(s[0],a[0],i),n+=o(s[1],a[1],i)}return n},n.fromGeoJSON=function(t,e){if(t&&"Feature"===t.type&&(t=t.geometry),!t||"LineString"!==t.type)throw new Error("Input must be a GeoJSON LineString");return n.encode(s(t.coordinates),e)},n.toGeoJSON=function(t,e){var i=n.decode(t,e);return{type:"LineString",coordinates:s(i)}},t.exports&&(t.exports=n)}
7,"50c4":function(t,e,i){"use strict";var n=i("5926"),r=Math.min;t.exports=function(t){var e=n(t);return e>0?r(e,9007199254740991):0}},5184:function(t,e,i){"use strict";var n=i("9ab4");function r(t){return"object"==typeof t&&null!==t}function o(t,e){const i=Boolean(t);if(!i)throw new Error(null!=e?e:"Unexpected invariant triggered.")}const s=/\r\n|[\n\r]/g;function a(t,e){let i=0,n=1;for(const r of t.body.matchAll(s)){if("number"===typeof r.index||o(!1),r.index>=e)break;i=r.index+r[0].length,n+=1}return{line:n,column:e+1-i}}function l(t){return c(t.source,a(t.source,t.start))}function c(t,e){const i=t.locationOffset.column-1,n="".padStart(i)+t.body,r=e.line-1,o=t.locationOffset.line-1,s=e.line+o,a=1===e.line?i:0,l=e.column+a,c=`${t.name}:${s}:${l}\n`,h=n.split(/\r\n|[\n\r]/g),d=h[r];if(d.length>120){const t=Math.floor(l/80),e=l%80,i=[];for(let n=0;n<d.length;n+=80)i.push(d.slice(n,n+80));return c+u([[s+" |",i[0]],...i.slice(1,t+1).map(t=>["|",t]),["|","^".padStart(e)],["|",i[t+1]]])}return c+u([[s-1+" |",h[r-1]],[s+" |",d],["|","^".padStart(l)],[s+1+" |",h[r+1]]])}function u(t){const e=t.filter(([t,e])=>void 0!==e),i=Math.max(...e.map(([t])=>t.length));return e.map(([t,e])=>t.padStart(i)+(e?" "+e:"")).join("\n")}function h(t){const e=t[0];return null==e||"kind"in e||"length"in e?{nodes:e,source:t[1],positions:t[2],path:t[3],originalError:t[4],extensions:t[5]}:e}class d extends Error{constructor(t,...e){var i,n,o;const{nodes:s,source:l,positions:c,path:u,originalError:p,extensions:m}=h(e);super(t),this.name="GraphQLError",this.path=null!==u&&void 0!==u?u:void 0,this.originalError=null!==p&&void 0!==p?p:void 0,this.nodes=f(Array.isArray(s)?s:s?[s]:void 0);const g=f(null===(i=this.nodes)||void 0===i?void 0:i.map(t=>t.loc).filter(t=>null!=t));this.source=null!==l&&void 0!==l?l:null===g||void 0===g||null===(n=g[0])||void 0===n?void 0:n.source,this.positions=null!==c&&void 0!==c?c:null===g||void 0===g?void 0:g.map(t=>t.start),this.locations=c&&l?c.map(t=>a(l,t)):null===g||void 0===g?void 0:g.map(t=>a(t.source,t.start));const y=r(null===p||void 0===p?void 0:p.extensions)?null===p||void 0===p?void 0:p.extensions:void 0;this.extensions=null!==(o=null!==m&&void 0!==m?m:y)&&void 0!==o?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!==p&&void 0!==p&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,d):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const e of this.nodes)e.loc&&(t+="\n\n"+l(e.loc));else if(this.source&&this.locations)for(const e of this.locations)t+="\n\n"+c(this.source,e);return t}toJSON(){const t={message:this.message};return null!=this.locations&&(t.locations=this.locations),null!=this.path&&(t.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function f(t){return void 0===t||0===t.length?void 0:t}function p(t,e,i){return new d("Syntax Error: "+i,{source:t,positions:[e]})}var m,g=i("9257");(function(t){t["QUERY"]="QUERY",t["MUTATION"]="MUTATION",t["SUBSCRIPTION"]="SUBSCRIPTION",t["FIELD"]="FIELD",t["FRAGMENT_DEFINITION"]="FRAGMENT_DEFINITION",t["FRAGMENT_SPREAD"]="FRAGMENT_SPREAD",t["INLINE_FRAGMENT"]="INLINE_FRAGMENT",t["VARIABLE_DEFINITION"]="VARIABLE_DEFINITION",t["SCHEMA"]="SCHEMA",t["SCALAR"]="SCALAR",t["OBJECT"]="OBJECT",t["FIELD_DEFINITION"]="FIELD_DEFINITION",t["ARGUMENT_DEFINITION"]="ARGUMENT_DEFINITION",t["INTERFACE"]="INTERFACE",t["UNION"]="UNION",t["ENUM"]="ENUM",t["ENUM_VALUE"]="ENUM_VALUE",t["INPUT_OBJECT"]="INPUT_OBJECT",t["INPUT_FIELD_DEFINITION"]="INPUT_FIELD_DEFINITION"})(m||(m={}));var y,_=i("fe35"),v=i("04b4"),b=i("b0e8");(function(t){t["SOF"]="<SOF>",t["EOF"]="<EOF>",t["BANG"]="!",t["DOLLAR"]="$",t["AMP"]="&",t["PAREN_L"]="(",t["PAREN_R"]=")",t["SPREAD"]="...",t["COLON"]=":",t["EQUALS"]="=",t["AT"]="@",t["BRACKET_L"]="[",t["BRACKET_R"]="]",t["BRACE_L"]="{",t["PIPE"]="|",t["BRACE_R"]="}",t["NAME"]="Name",t["INT"]="Int",t["FLOAT"]="Float",t["STRING"]="String",t["BLOCK_STRING"]="BlockString",t["COMMENT"]="Comment"})(y||(y={}));class x{constructor(t){const e=new g["d"](y.SOF,0,0,0,0);this.source=t,this.lastToken=e,this.token=e,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;const t=this.token=this.lookahead();return t}lookahead(){let t=this.token;if(t.kind!==y.EOF)do{if(t.next)t=t.next;else{const e=C(this,t.end);t.next=e,e.prev=t,t=e}}while(t.kind===y.COMMENT);return t}}function w(t){return t===y.BANG||t===y.DOLLAR||t===y.AMP||t===y.PAREN_L||t===y.PAREN_R||t===y.SPREAD||t===y.COLON||t===y.EQUALS||t===y.AT||t===y.BRACKET_L||t===y.BRACKET_R||t===y.BRACE_L||t===y.PIPE||t===y.BRACE_R}function E(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function T(t,e){return S(t.charCodeAt(e))&&k(t.charCodeAt(e+1))}function S(t){return t>=55296&&t<=56319}function k(t){return t>=56320&&t<=57343}function O(t,e){const i=t.source.body.codePointAt(e);if(void 0===i)return y.EOF;
7if(i>=32&&i<=126){const t=String.fromCodePoint(i);return'"'===t?"'\"'":`"${t}"`}return"U+"+i.toString(16).toUpperCase().padStart(4,"0")}function A(t,e,i,n,r){const o=t.line,s=1+i-t.lineStart;return new g["d"](e,i,n,o,s,r)}function C(t,e){const i=t.source.body,n=i.length;let r=e;while(r<n){const e=i.charCodeAt(r);switch(e){case 65279:case 9:case 32:case 44:++r;continue;case 10:++r,++t.line,t.lineStart=r;continue;case 13:10===i.charCodeAt(r+1)?r+=2:++r,++t.line,t.lineStart=r;continue;case 35:return I(t,r);case 33:return A(t,y.BANG,r,r+1);case 36:return A(t,y.DOLLAR,r,r+1);case 38:return A(t,y.AMP,r,r+1);case 40:return A(t,y.PAREN_L,r,r+1);case 41:return A(t,y.PAREN_R,r,r+1);case 46:if(46===i.charCodeAt(r+1)&&46===i.charCodeAt(r+2))return A(t,y.SPREAD,r,r+3);break;case 58:return A(t,y.COLON,r,r+1);case 61:return A(t,y.EQUALS,r,r+1);case 64:return A(t,y.AT,r,r+1);case 91:return A(t,y.BRACKET_L,r,r+1);case 93:return A(t,y.BRACKET_R,r,r+1);case 123:return A(t,y.BRACE_L,r,r+1);case 124:return A(t,y.PIPE,r,r+1);case 125:return A(t,y.BRACE_R,r,r+1);case 34:return 34===i.charCodeAt(r+1)&&34===i.charCodeAt(r+2)?F(t,r):D(t,r)}if(Object(b["a"])(e)||45===e)return M(t,r,e);if(Object(b["c"])(e))return N(t,r);throw p(t.source,r,39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":E(e)||T(i,r)?`Unexpected character: ${O(t,r)}.`:`Invalid character: ${O(t,r)}.`)}return A(t,y.EOF,n,n)}function I(t,e){const i=t.source.body,n=i.length;let r=e+1;while(r<n){const t=i.charCodeAt(r);if(10===t||13===t)break;if(E(t))++r;else{if(!T(i,r))break;r+=2}}return A(t,y.COMMENT,e,r,i.slice(e+1,r))}function M(t,e,i){const n=t.source.body;let r=e,o=i,s=!1;if(45===o&&(o=n.charCodeAt(++r)),48===o){if(o=n.charCodeAt(++r),Object(b["a"])(o))throw p(t.source,r,`Invalid number, unexpected digit after 0: ${O(t,r)}.`)}else r=P(t,r,o),o=n.charCodeAt(r);if(46===o&&(s=!0,o=n.charCodeAt(++r),r=P(t,r,o),o=n.charCodeAt(r)),69!==o&&101!==o||(s=!0,o=n.charCodeAt(++r),43!==o&&45!==o||(o=n.charCodeAt(++r)),r=P(t,r,o),o=n.charCodeAt(r)),46===o||Object(b["c"])(o))throw p(t.source,r,`Invalid number, expected digit but got: ${O(t,r)}.`);return A(t,s?y.FLOAT:y.INT,e,r,n.slice(e,r))}function P(t,e,i){if(!Object(b["a"])(i))throw p(t.source,e,`Invalid number, expected digit but got: ${O(t,e)}.`);const n=t.source.body;let r=e+1;while(Object(b["a"])(n.charCodeAt(r)))++r;return r}function D(t,e){const i=t.source.body,n=i.length;let r=e+1,o=r,s="";while(r<n){const n=i.charCodeAt(r);if(34===n)return s+=i.slice(o,r),A(t,y.STRING,e,r+1,s);if(92!==n){if(10===n||13===n)break;if(E(n))++r;else{if(!T(i,r))throw p(t.source,r,`Invalid character within String: ${O(t,r)}.`);r+=2}}else{s+=i.slice(o,r);const e=117===i.charCodeAt(r+1)?123===i.charCodeAt(r+2)?L(t,r):R(t,r):B(t,r);s+=e.value,r+=e.size,o=r}}throw p(t.source,r,"Unterminated string.")}function L(t,e){const i=t.source.body;let n=0,r=3;while(r<12){const t=i.charCodeAt(e+r++);if(125===t){if(r<5||!E(n))break;return{value:String.fromCodePoint(n),size:r}}if(n=n<<4|j(t),n<0)break}throw p(t.source,e,`Invalid Unicode escape sequence: "${i.slice(e,e+r)}".`)}function R(t,e){const i=t.source.body,n=z(i,e+2);if(E(n))return{value:String.fromCodePoint(n),size:6};if(S(n)&&92===i.charCodeAt(e+6)&&117===i.charCodeAt(e+7)){const t=z(i,e+8);if(k(t))return{value:String.fromCodePoint(n,t),size:12}}throw p(t.source,e,`Invalid Unicode escape sequence: "${i.slice(e,e+6)}".`)}function z(t,e){return j(t.charCodeAt(e))<<12|j(t.charCodeAt(e+1))<<8|j(t.charCodeAt(e+2))<<4|j(t.charCodeAt(e+3))}function j(t){return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function B(t,e){const i=t.source.body,n=i.charCodeAt(e+1);switch(n){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw p(t.source,e,`Invalid character escape sequence: "${i.slice(e,e+2)}".`)}function F(t,e){const i=t.source.body,n=i.length;let r=t.lineStart,o=e+3,s=o,a="";const l=[];
7while(o<n){const n=i.charCodeAt(o);if(34===n&&34===i.charCodeAt(o+1)&&34===i.charCodeAt(o+2)){a+=i.slice(s,o),l.push(a);const n=A(t,y.BLOCK_STRING,e,o+3,Object(v["a"])(l).join("\n"));return t.line+=l.length-1,t.lineStart=r,n}if(92!==n||34!==i.charCodeAt(o+1)||34!==i.charCodeAt(o+2)||34!==i.charCodeAt(o+3))if(10!==n&&13!==n)if(E(n))++o;else{if(!T(i,o))throw p(t.source,o,`Invalid character within String: ${O(t,o)}.`);o+=2}else a+=i.slice(s,o),l.push(a),13===n&&10===i.charCodeAt(o+1)?o+=2:++o,a="",s=o,r=o;else a+=i.slice(s,o),s=o+1,o+=4}throw p(t.source,o,"Unterminated string.")}function N(t,e){const i=t.source.body,n=i.length;let r=e+1;while(r<n){const t=i.charCodeAt(r);if(!Object(b["b"])(t))break;++r}return A(t,y.NAME,e,r,i.slice(e,r))}var V=i("b774"),$=i("ad67");const U=globalThis.process&&!0,q=U?function(t,e){return t instanceof e}:function(t,e){if(t instanceof e)return!0;if("object"===typeof t&&null!==t){var i;const n=e.prototype[Symbol.toStringTag],r=Symbol.toStringTag in t?t[Symbol.toStringTag]:null===(i=t.constructor)||void 0===i?void 0:i.name;if(n===r){const e=Object($["a"])(t);throw new Error(`Cannot use ${n} "${e}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class G{constructor(t,e="GraphQL request",i={line:1,column:1}){"string"===typeof t||Object(V["a"])(!1,`Body must be a string. Received: ${Object($["a"])(t)}.`),this.body=t,this.name=e,this.locationOffset=i,this.locationOffset.line>0||Object(V["a"])(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Object(V["a"])(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function W(t){return q(t,G)}function Z(t,e){const i=new H(t,e),n=i.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:i.tokenCount}),n}class H{constructor(t,e={}){const i=W(t)?t:new G(t);this._lexer=new x(i),this._options=e,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(y.NAME);return this.node(t,{kind:_["a"].NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:_["a"].DOCUMENT,definitions:this.many(y.SOF,this.parseDefinition,y.EOF)})}parseDefinition(){if(this.peek(y.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),e=t?this._lexer.lookahead():this._lexer.token;if(e.kind===y.NAME){switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw p(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(e.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(e)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(y.BRACE_L))return this.node(t,{kind:_["a"].OPERATION_DEFINITION,operation:g["b"].QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const e=this.parseOperationType();let i;return this.peek(y.NAME)&&(i=this.parseName()),this.node(t,{kind:_["a"].OPERATION_DEFINITION,operation:e,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(y.NAME);switch(t.value){case"query":return g["b"].QUERY;case"mutation":return g["b"].MUTATION;case"subscription":return g["b"].SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(y.PAREN_L,this.parseVariableDefinition,y.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:_["a"].VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(y.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(y.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(y.DOLLAR),this.node(t,{kind:_["a"].VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:_["a"].SELECTION_SET,selections:this.many(y.BRACE_L,this.parseSelection,y.BRACE_R)})}parseSelection(){return this.peek(y.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,e=this.parseName();let i,n;return this.expectOptionalToken(y.COLON)?(i=e,n=this.parseName()):n=e,this.node(t,{kind:_["a"].FIELD,alias:i,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(y.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const e=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(y.PAREN_L,e,y.PAREN_R)}parseArgument(t=!1){const e=this._lexer.token,i=this.parseName();return this.expectToken(y.COLON),this.node(e,{kind:_["a"].ARGUMENT,name:i,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(y.SPREAD);const e=this.expectOptionalKeyword("on");return!e&&this.peek(y.NAME)?this.node(t,{kind:_["a"].FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:_["a"].INLINE_FRAGMENT,typeCondition:e?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(t,{kind:_["a"].FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:_["a"].FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(t){const e=this._lexer.token;switch(e.kind){case y.BRACKET_L:return this.parseList(t);case y.BRACE_L:return this.parseObject(t);case y.INT:return this.advanceLexer(),this.node(e,{kind:_["a"].INT,value:e.value});case y.FLOAT:return this.advanceLexer(),this.node(e,{kind:_["a"].FLOAT,value:e.value});case y.STRING:case y.BLOCK_STRING:return this.parseStringLiteral();case y.NAME:switch(this.advanceLexer(),e.value){case"true":return this.node(e,{kind:_["a"].BOOLEAN,value:!0});case"false":return this.node(e,{kind:_["a"].BOOLEAN,value:!1});case"null":return this.node(e,{kind:_["a"].NULL});default:return this.node(e,{kind:_["a"].ENUM,value:e.value})}case y.DOLLAR:if(t){if(this.expectToken(y.DOLLAR),this._lexer.token.kind===y.NAME){const t=this._lexer.token.value;throw p(this._lexer.source,e.start,`Unexpected variable "$${t}" in constant value.`)}throw this.unexpected(e)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:_["a"].STRING,value:t.value,block:t.kind===y.BLOCK_STRING})}parseList(t){const e=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:_["a"].LIST,values:this.any(y.BRACKET_L,e,y.BRACKET_R)})}parseObject(t){const e=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:_["a"].OBJECT,fields:this.any(y.BRACE_L,e,y.BRACE_R)})}parseObjectField(t){const e=this._lexer.token,i=this.parseName();return this.expectToken(y.COLON),this.node(e,{kind:_["a"].OBJECT_FIELD,name:i,value:this.parseValueLiteral(t)})}parseDirectives(t){const e=[];
7while(this.peek(y.AT))e.push(this.parseDirective(t));return e}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const e=this._lexer.token;return this.expectToken(y.AT),this.node(e,{kind:_["a"].DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let e;if(this.expectOptionalToken(y.BRACKET_L)){const i=this.parseTypeReference();this.expectToken(y.BRACKET_R),e=this.node(t,{kind:_["a"].LIST_TYPE,type:i})}else e=this.parseNamedType();return this.expectOptionalToken(y.BANG)?this.node(t,{kind:_["a"].NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:_["a"].NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(y.STRING)||this.peek(y.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("schema");const i=this.parseConstDirectives(),n=this.many(y.BRACE_L,this.parseOperationTypeDefinition,y.BRACE_R);return this.node(t,{kind:_["a"].SCHEMA_DEFINITION,description:e,directives:i,operationTypes:n})}parseOperationTypeDefinition(){const t=this._lexer.token,e=this.parseOperationType();this.expectToken(y.COLON);const i=this.parseNamedType();return this.node(t,{kind:_["a"].OPERATION_TYPE_DEFINITION,operation:e,type:i})}parseScalarTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("scalar");const i=this.parseName(),n=this.parseConstDirectives();return this.node(t,{kind:_["a"].SCALAR_TYPE_DEFINITION,description:e,name:i,directives:n})}parseObjectTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("type");const i=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:_["a"].OBJECT_TYPE_DEFINITION,description:e,name:i,interfaces:n,directives:r,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(y.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(y.BRACE_L,this.parseFieldDefinition,y.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,e=this.parseDescription(),i=this.parseName(),n=this.parseArgumentDefs();this.expectToken(y.COLON);const r=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(t,{kind:_["a"].FIELD_DEFINITION,description:e,name:i,arguments:n,type:r,directives:o})}parseArgumentDefs(){return this.optionalMany(y.PAREN_L,this.parseInputValueDef,y.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,e=this.parseDescription(),i=this.parseName();this.expectToken(y.COLON);const n=this.parseTypeReference();let r;this.expectOptionalToken(y.EQUALS)&&(r=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(t,{kind:_["a"].INPUT_VALUE_DEFINITION,description:e,name:i,type:n,defaultValue:r,directives:o})}parseInterfaceTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("interface");const i=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:_["a"].INTERFACE_TYPE_DEFINITION,description:e,name:i,interfaces:n,directives:r,fields:o})}parseUnionTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("union");const i=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();return this.node(t,{kind:_["a"].UNION_TYPE_DEFINITION,description:e,name:i,directives:n,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(y.EQUALS)?this.delimitedMany(y.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("enum");const i=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();return this.node(t,{kind:_["a"].ENUM_TYPE_DEFINITION,description:e,name:i,directives:n,values:r})}parseEnumValuesDefinition(){return this.optionalMany(y.BRACE_L,this.parseEnumValueDefinition,y.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,e=this.parseDescription(),i=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(t,{kind:_["a"].ENUM_VALUE_DEFINITION,description:e,name:i,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw p(this._lexer.source,this._lexer.token.start,X(this._lexer.token)+" is reserved and cannot be used for an enum value.");return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("input");const i=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();return this.node(t,{kind:_["a"].INPUT_OBJECT_TYPE_DEFINITION,description:e,name:i,directives:n,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(y.BRACE_L,this.parseInputValueDef,y.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===y.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const e=this.parseConstDirectives(),i=this.optionalMany(y.BRACE_L,this.parseOperationTypeDefinition,y.BRACE_R);if(0===e.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:_["a"].SCHEMA_EXTENSION,directives:e,operationTypes:i})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const e=this.parseName(),i=this.parseConstDirectives();if(0===i.length)throw this.unexpected();return this.node(t,{kind:_["a"].SCALAR_TYPE_EXTENSION,name:e,directives:i})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const e=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===i.length&&0===n.length&&0===r.length)throw this.unexpected();return this.node(t,{kind:_["a"].OBJECT_TYPE_EXTENSION,name:e,interfaces:i,directives:n,fields:r})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const e=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===i.length&&0===n.length&&0===r.length)throw this.unexpected();return this.node(t,{kind:_["a"].INTERFACE_TYPE_EXTENSION,name:e,interfaces:i,directives:n,fields:r})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const e=this.parseName(),i=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===i.length&&0===n.length)throw this.unexpected();return this.node(t,{kind:_["a"].UNION_TYPE_EXTENSION,name:e,directives:i,types:n})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const e=this.parseName(),i=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===i.length&&0===n.length)throw this.unexpected();return this.node(t,{kind:_["a"].ENUM_TYPE_EXTENSION,name:e,directives:i,values:n})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const e=this.parseName(),i=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===i.length&&0===n.length)throw this.unexpected();return this.node(t,{kind:_["a"].INPUT_OBJECT_TYPE_EXTENSION,name:e,directives:i,fields:n})}parseDirectiveDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("directive"),this.expectToken(y.AT);const i=this.parseName(),n=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(t,{kind:_["a"].DIRECTIVE_DEFINITION,description:e,name:i,arguments:n,repeatable:r,locations:o})}parseDirectiveLocations(){return this.delimitedMany(y.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,e=this.parseName();if(Object.prototype.hasOwnProperty.call(m,e.value))return e;throw this.unexpected(t)}node(t,e){return!0!==this._options.noLocation&&(e.loc=new g["a"](t,this._lexer.lastToken,this._lexer.source)),e}peek(t){return this._lexer.token.kind===t}expectToken(t){const e=this._lexer.token;if(e.kind===t)return this.advanceLexer(),e;throw p(this._lexer.source,e.start,`Expected ${Q(t)}, found ${X(e)}.`)}expectOptionalToken(t){const e=this._lexer.token;return e.kind===t&&(this.advanceLexer(),!0)}expectKeyword(t){const e=this._lexer.token;if(e.kind!==y.NAME||e.value!==t)throw p(this._lexer.source,e.start,`Expected "${t}", found ${X(e)}.`);this.advanceLexer()}expectOptionalKeyword(t){const e=this._lexer.token;return e.kind===y.NAME&&e.value===t&&(this.advanceLexer(),!0)}unexpected(t){const e=null!==t&&void 0!==t?t:this._lexer.token;return p(this._lexer.source,e.start,`Unexpected ${X(e)}.`)}any(t,e,i){this.expectToken(t);const n=[];while(!this.expectOptionalToken(i))n.push(e.call(this));return n}optionalMany(t,e,i){if(this.expectOptionalToken(t)){const t=[];do{t.push(e.call(this))}while(!this.expectOptionalToken(i));return t}return[]}many(t,e,i){this.expectToken(t);const n=[];do{n.push(e.call(this))}while(!this.expectOptionalToken(i));return n}delimitedMany(t,e){this.expectOptionalToken(t);const i=[];do{i.push(e.call(this))}while(this.expectOptionalToken(t));return i}advanceLexer(){const{maxTokens:t}=this._options,e=this._lexer.advance();if(e.kind!==y.EOF&&(++this._tokenCounter,void 0!==t&&this._tokenCounter>t))throw p(this._lexer.source,e.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function X(t){const e=t.value;return Q(t.kind)+(null!=e?` "${e}"`:"")}function Q(t){return w(t)?`"${t}"`:t}var Y=new Map,K=new Map,J=!0,tt=!1;function et(t){return t.replace(/[\s,]+/g," ").trim()}function it(t){return et(t.source.body.substring(t.start,t.end))}function nt(t){var e=new Set,i=[];return t.definitions.forEach((function(t){if("FragmentDefinition"===t.kind){var n=t.name.value,r=it(t.loc),o=K.get(n);o&&!o.has(r)?J&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||K.set(n,o=new Set),o.add(r),e.has(r)||(e.add(r),i.push(t))}else i.push(t)})),Object(n["a"])(Object(n["a"])({},t),{definitions:i})}function rt(t){var e=new Set(t.definitions);e.forEach((function(t){t.loc&&delete t.loc,Object.keys(t).forEach((function(i){var n=t[i];n&&"object"===typeof n&&e.add(n)}))}));var i=t.loc;return i&&(delete i.startToken,delete i.endToken),t}function ot(t){var e=et(t);if(!Y.has(e)){var i=Z(t,{experimentalFragmentVariables:tt,allowLegacyFragmentVariables:tt});if(!i||"Document"!==i.kind)throw new Error("Not a valid GraphQL document.");Y.set(e,rt(nt(i)))}return Y.get(e)}function st(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];"string"===typeof t&&(t=[t]);var n=t[0];return e.forEach((function(e,i){e&&"Document"===e.kind?n+=e.loc.source.body:n+=e,n+=t[i+1]})),ot(n)}function at(){Y.clear(),K.clear()}function lt(){J=!1}function ct(){tt=!0}function ut(){tt=!1}var ht={gql:st,resetCaches:at,disableFragmentWarnings:lt,enableExperimentalFragmentVariables:ct,disableExperimentalFragmentVariables:ut};(function(t){t.gql=ht.gql,t.resetCaches=ht.resetCaches,t.disableFragmentWarnings=ht.disableFragmentWarnings,t.enableExperimentalFragmentVariables=ht.enableExperimentalFragmentVariables,t.disableExperimentalFragmentVariables=ht.disableExperimentalFragmentVariables})(st||(st={})),st["default"]=st;e["a"]=st}
7,"522d":function(t,e,i){"use strict";(function(t){var n=i("5184");function r(t){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function a(t,e,i){return e&&s(t.prototype,e),i&&s(t,i),t}function l(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function c(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function u(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?c(Object(i),!0).forEach((function(e){l(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function h(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function f(t,e){return f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},f(t,e)}function p(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t,e){return!e||"object"!==typeof e&&"function"!==typeof e?m(t):e}function y(t){var e=p();return function(){var i,n=d(t);if(e){var r=d(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return g(this,i)}}function _(t,e){while(!Object.prototype.hasOwnProperty.call(t,e))if(t=d(t),null===t)break;return t}function v(t,e,i){return v="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=_(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}},v(t,e,i||t)}function b(t,e){return E(t)||S(t,e)||k(t,e)||C()}function x(t){return w(t)||T(t)||k(t)||A()}function w(t){if(Array.isArray(t))return O(t)}function E(t){if(Array.isArray(t))return t}function T(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function S(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var i=[],n=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done);n=!0)if(i.push(s.value),e&&i.length===e)break}catch(l){r=!0,o=l}finally{try{n||null==a["return"]||a["return"]()}finally{if(r)throw o}}return i}}function k(t,e){if(t){if("string"===typeof t)return O(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?O(t,e):void 0}}function O(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function A(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function C(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof t||"undefined"!==typeof self&&self;function I(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t["default"]:t}function M(t,e){return e={exports:{}},t(e,e.exports),e.exports}var P=M((function(t,e){(function(t,i){i(e)})(0,(function(t){function e(t,e,i,n){var r,o=!1,s=0;function a(){r&&clearTimeout(r)}function l(){a(),o=!0}function c(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var h=this,d=Date.now()-s;function f(){s=Date.now(),i.apply(h,c)}function p(){r=void 0}
7o||(n&&!r&&f(),a(),void 0===n&&d>t?f():!0!==e&&(r=setTimeout(n?p:f,void 0===n?t-d:t)))}return"boolean"!==typeof e&&(n=i,i=e,e=void 0),c.cancel=l,c}function i(t,i,n){return void 0===n?e(t,i,!1):e(t,n,!1!==i)}t.debounce=i,t.throttle=e,Object.defineProperty(t,"__esModule",{value:!0})}))}));I(P);var D=M((function(t,e){var i=e.Globals={};function n(t){return function(e,i){return t(i,e)}}e.throttle=n(P.throttle),e.debounce=n(P.debounce),e.getMergedDefinition=function(t){return i.Vue.util.mergeOptions({},t)},e.reapply=function(t,e){while("function"===typeof t)t=t.call(e);return t},e.omit=function(t,e){return Object.entries(t).filter((function(t){var i=b(t,1),n=i[0];return!e.includes(n)})).reduce((function(t,e){var i=b(e,2),n=i[0],r=i[1];return t[n]=r,t}),{})},e.addGqlError=function(t){t.graphQLErrors&&t.graphQLErrors.length&&(t.gqlError=t.graphQLErrors[0])},e.noop=function(){}})),L=D.Globals,R=D.throttle,z=D.debounce,j=(D.getMergedDefinition,D.reapply),B=D.omit,F=D.addGqlError,N=(D.noop,{query:"_skipAllQueries",subscription:"_skipAllSubscriptions"}),V=function(){function t(e,i,n){o(this,t),l(this,"type",null),l(this,"vueApolloSpecialKeys",[]),this.vm=e,this.key=i,this.initialOptions=n,this.options=Object.assign({},n),this._skip=!1,this._pollInterval=null,this._watchers=[],this._destroyed=!1,this.lastApolloOptions=null}return a(t,[{key:"autostart",value:function(){var t=this;"function"===typeof this.options.skip?this._skipWatcher=this.vm.$watch((function(){return t.options.skip.call(t.vm,t.vm,t.key)}),this.skipChanged.bind(this),{immediate:!0,deep:this.options.deep}):this.options.skip||this.allSkip?this._skip=!0:this.start(),"function"===typeof this.options.pollInterval&&(this._pollWatcher=this.vm.$watch(this.options.pollInterval.bind(this.vm),this.pollIntervalChanged.bind(this),{immediate:!0}))}},{key:"pollIntervalChanged",value:function(t,e){t!==e&&(this.pollInterval=t,null==t?this.stopPolling():this.startPolling(t))}},{key:"skipChanged",value:function(t,e){t!==e&&(this.skip=t)}},{key:"pollInterval",get:function(){return this._pollInterval},set:function(t){this._pollInterval=t}},{key:"skip",get:function(){return this._skip},set:function(t){t||this.allSkip?this.stop():this.start(),this._skip=t}},{key:"allSkip",get:function(){return this.vm.$apollo[N[this.type]]}},{key:"refresh",value:function(){this._skip||(this.stop(),this.start())}},{key:"start",value:function(){var t=this;this.starting=!0;for(var e=function(e,i){var n=i[e];if("function"===typeof t.initialOptions[n]){var r=t.initialOptions[n].bind(t.vm);t.options[n]=r();var o=function(e){t.options[n]=e,t.refresh()};t.vm.$isServer||(o=t.options.throttle?R(o,t.options.throttle):o,o=t.options.debounce?z(o,t.options.debounce):o),t._watchers.push(t.vm.$watch(r,o,{deep:t.options.deep}))}},i=0,n=["query","document","context"];i<n.length;i++)e(i,n);if("function"===typeof this.options.variables){var r=this.executeApollo.bind(this);this.vm.$isServer||(r=this.options.throttle?R(r,this.options.throttle):r,r=this.options.debounce?z(r,this.options.debounce):r),this._watchers.push(this.vm.$watch((function(){return"function"===typeof t.options.variables?t.options.variables.call(t.vm):t.options.variables}),r,{immediate:!0,deep:this.options.deep}))}else this.executeApollo(this.options.variables)}},{key:"stop",value:function(){for(var t=0,e=this._watchers;t<e.length;t++){var i=e[t];i()}this.sub&&(this.sub.unsubscribe(),this.sub=null)}},{key:"generateApolloOptions",value:function(t){var e=B(this.options,this.vueApolloSpecialKeys);return e.variables=t,this.lastApolloOptions=e,e}},{key:"executeApollo",value:function(t){this.starting=!1}},{key:"nextResult",value:function(t){var e=t.error;e&&F(e)}},{key:"callHandlers",value:function(t){for(var e=!1,i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];for(var o=0;o<t.length;o++){var s=t[o];if(s){e=!0;var a=s.apply(this.vm,n);if("undefined"!==typeof a&&!a)break}}return e}},{key:"errorHandler",value:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return this.callHandlers.apply(this,[[this.options.error,this.vm.$apollo.error,this.vm.$apollo.provider.errorHandler]].concat(e))}},{key:"catchError",value:function(t){F(t);var e=this.errorHandler(t,this.vm,this.key,this.type,this.lastApolloOptions);if(!e)if(t.graphQLErrors&&0!==t.graphQLErrors.length){console.error("GraphQL execution errors for ".concat(this.t
7ype," '").concat(this.key,"'"));for(var i=0,n=t.graphQLErrors;i<n.length;i++){var r=n[i];console.error(r)}}else if(t.networkError)console.error("Error sending the ".concat(this.type," '").concat(this.key,"'"),t.networkError);else{var o;if(console.error("[vue-apollo] An error has occurred for ".concat(this.type," '").concat(this.key,"'")),Array.isArray(t))(o=console).error.apply(o,x(t));else console.error(t)}}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.stop(),this._skipWatcher&&this._skipWatcher())}}]),t}(),$=["variables","watch","update","result","error","loadingKey","watchLoading","skip","throttle","debounce","subscribeToMore","prefetch","manual"],U=function(t){h(i,t);var e=y(i);function i(t,n,r){var s,a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return o(this,i),t.$data.$apolloData&&!t.$data.$apolloData.queries[n]&&t.$set(t.$data.$apolloData.queries,n,{loading:!1}),s=e.call(this,t,n,r),l(m(s),"type","query"),l(m(s),"vueApolloSpecialKeys",$),l(m(s),"_loading",!1),l(m(s),"_linkedSubscriptions",[]),t.$isServer&&(s.firstRun=new Promise((function(t,e){s._firstRunResolve=t,s._firstRunReject=e}))),s.vm.$isServer&&(s.options.fetchPolicy="network-only"),r.manual||(s.hasDataField=Object.prototype.hasOwnProperty.call(s.vm.$data,n),s.hasDataField?Object.defineProperty(s.vm.$data.$apolloData.data,n,{get:function(){return s.vm.$data[n]},enumerable:!0,configurable:!0}):Object.defineProperty(s.vm.$data,n,{get:function(){return s.vm.$data.$apolloData.data[n]},enumerable:!0,configurable:!0})),a&&s.autostart(),s}return a(i,[{key:"client",get:function(){return this.vm.$apollo.getClient(this.options)}},{key:"loading",get:function(){return this.vm.$data.$apolloData&&this.vm.$data.$apolloData.queries[this.key]?this.vm.$data.$apolloData.queries[this.key].loading:this._loading},set:function(t){this._loading!==t&&(this._loading=t,this.vm.$data.$apolloData&&this.vm.$data.$apolloData.queries[this.key]&&(this.vm.$data.$apolloData.queries[this.key].loading=t,this.vm.$data.$apolloData.loading+=t?1:-1))}},{key:"stop",value:function(){v(d(i.prototype),"stop",this).call(this),this.loadingDone(),this.observer&&(this.observer.stopPolling(),this.observer=null)}},{key:"generateApolloOptions",value:function(t){var e=v(d(i.prototype),"generateApolloOptions",this).call(this,t);return this.vm.$isServer&&delete e.pollInterval,e}},{key:"executeApollo",value:function(t){var e=JSON.stringify(t);if(this.sub){if(e===this.previousVariablesJson)return;this.sub.unsubscribe();for(var n=0,r=this._linkedSubscriptions;n<r.length;n++){var o=r[n];o.stop()}}if(this.previousVariablesJson=e,this.observer=this.vm.$apollo.watchQuery(this.generateApolloOptions(t)),this.startQuerySubscription(),"no-cache"!==this.options.fetchPolicy||this.options.notifyOnNetworkStatusChange){var s=this.retrieveCurrentResult();(this.options.notifyOnNetworkStatusChange||this.observer.getCurrentResult&&!s.loading)&&this.nextResult(s)}v(d(i.prototype),"executeApollo",this).call(this,t);for(var a=0,l=this._linkedSubscriptions;a<l.length;a++){var c=l[a];c.start()}}},{key:"startQuerySubscription",value:function(){this.sub&&!this.sub.closed||(this.sub=this.observer.subscribe({next:this.nextResult.bind(this),error:this.catchError.bind(this)}))}},{key:"retrieveCurrentResult",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.observer.getCurrentResult?this.observer.getCurrentResult():this.observer.currentResult();return(t||e.loading)&&(this.loading||this.applyLoadingModifier(1),this.loading=!0),e}},{key:"nextResult",value:function(t){v(d(i.prototype),"nextResult",this).call(this,t);var e=t.data,n=t.loading,r=t.error,o=t.errors,s=o&&o.length;if((r||s)&&this.firstRunReject(r),n||this.loadingDone(),s){var a=new Error("GraphQL error: ".concat(o.map((function(t){return t.message})).join(" | ")));Object.assign(a,{graphQLErrors:o,networkError:null}),v(d(i.prototype),"catchError",this).call(this,a)}if("none"!==this.observer.options.errorPolicy||!r&&!s){var l="function"===typeof this.options.result;null==e||(this.options.manual?l||console.error("".concat(this.key," query must have a 'result' hook in manual mode")):"function"===typeof this.options.update?this.setData(this.options.update.call(this.vm,e)):"undefined"===typeof e[this.key]&&Object.keys(e).length?console.error("Missing ".concat(this.key," attribute on result"),e):this.setData(e[this.key])),l&&this.options.result.call(this.vm,t,this.key)}}},{key:"setData",value:function(t){this.vm.$set(this.hasDataField?this.vm.$data:this.vm.$data.$apolloData.data,this.key,t)}},{key:"catchError",value:function(t){v(d(i.prototype),"catchError",this).call(this,t),this.firstRunReject(t),this.loadingDone(t),this.nextResult(this.observer.getCurrentResult?this.observer.getCurrentResult():this.observer.currentResult()),this.resubscribeToQuery()}},{key:"resubscribeToQuery",value:function(){var t=this.observer.getLastError(),e=this.observer.getLastResult();this.observer.resetLastResults(),this.startQuerySubscription(),Object.assign(this.observer,{lastError:t,lastResult:e})}},{key:"loadingKey",get:function(){return this.options.loadingKey||this.vm.$apollo.loadingKey}},{key:"watchLoading",value:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return this.callHandlers.apply(this,[[this.options.watchLoading,this.vm.$apollo.watchLoading,this.vm.$apollo.provider.watchLoading]].concat(e,[this]))}},{key:"applyLoadingModifier",value:function(t){var e=this.loadingKey;e&&"number"===typeof this.vm[e]&&(this.vm[e]+=t),this.watchLoading(1===t,t)}},{key:"loadingDone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.loading&&this.applyLoadingModifier(-1),this.loading=!1,t||this.firstRunResolve()}},{key:"fetchMore",value:function(){var t,e=this;if(this.observer)return this.retrieveCurrentResult(!0),(t=this.observer).fetchMore.apply(t,arguments).then((function(t){return t.loading||e.loadingDone(),t}))}},{key:"subscribeToMore",value:function(){var t;if(this.observer)return{unsubscribe:(t=this.observer).subscribeToMore.apply(t,arguments)}}},{key:"refetch",value:function(t){var e=this;if(t&&(this.options.variables=t),this.observer){var i=this.observer.refetch(t).then((function(t){return t.loading||e.loadingDone(),t}));return this.retrieveCurrentResult(),i}}},{key:"setVariables",value:function(t,e){if(this.options.variables=t,this.observer){var i=this.observer.setVariables(t,e);return this.retrieveCurrentResult(),i}}},{key:"setOptions",value:function(t){if(Object.assign(this.options,t),this.observer){var e=this.observer.setOptions(t);return this.retrieveCurrentResult(),e}}},{key:"startPolling",value:function(){var t;if(this.observer)return(t=this.observer).startPolling.apply(t,arguments)}},{key:"stopPolling",value:function(){var t;if(this.observer)return(t=this.observer).stopPolling.apply(t,arguments)}},{key:"firstRunResolve",value:function(){this._firstRunResolve&&(this._firstRunResolve(),this._firstRunResolve=null)}},{key:"firstRunReject",value:function(t){this._firstRunReject&&(this._firstRunReject(t),this._firstRunReject=null)}},{key:"destroy",value:function(){v(d(i.prototype),"destroy",this).call(this),this.loading&&this.watchLoading(!1,-1),this.loading=!1}}]),i}(V),q=5,G=500,W=function(t){h(i,t);var e=y(i);function i(t,n,r){var s,a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return o(this,i),s=e.call(this,t,n,r),l(m(s),"type","subscription"),l(m(s),"vueApolloSpecialKeys",["variables","result","error","throttle","debounce","linkedQuery"]),s.attempts=0,a&&s.autostart(),s}return a(i,[{key:"generateApolloOptions",value:function(t){var e=v(d(i.prototype),"generateApolloOptions",this).call(this,t);return e.onError=this.catchError.bind(this),e}},{key:"executeApollo",value:function(t){if(!this._destroyed){var e=JSON.stringify(t);if(this.sub){if(e===this.previousVariablesJson)return;this.sub.unsubscribe()}this.previousVariablesJson=e;var n=this.generateApolloOptions(t);if("function"===typeof n.updateQuery&&(n.updateQuery=n.updateQuery.bind(this.vm)),this.options.linkedQuery){if("function"===typeof this.options.result){var r=this.options.result.bind(this.vm),o=n.updateQuery&&n.updateQuery.bind(this.vm);n.updateQuery=function(){return r.apply(void 0,arguments),o&&o.apply(void 0,arguments)}}this.sub=this.options.linkedQuery.subscribeToMore(n)}else this.observer=this.vm.$apollo.subscribe(n),this.sub=this.observer.subscribe({next:this.nextResult.bind(this),error:this.catchError.bind(this)});v(d(i.prototype),"executeApollo",this).call(this,t)}}},{key:"nextResult",value:function(t){v(d(i.prototype),"nextResult",this).call(this,t),this.attempts=0,"function"===typeof this.options.result&&this.options.result.call(this.vm,t,this.key)}},{key:"catchError",value:function(t){v(d(i.prototype),"catchError",this).call(this,t),this.skip||this.attempts>=q||(this.stop(),this.retryTimeout=setTimeout(this.start.bind(this),Math.pow(2,this.attempts)*G),this.attempts++)}},{key:"stop",value:function(){v(d(i.prototype),"stop",this).call(this),clearTimeout(this.retryTimeout)}}]),i}(V),Z=function(){function t(e){o(this,t),this._apolloSubscriptions=[],this._watchers=[],this.vm=e,this.queries={},this.subscriptions={},this.client=void 0,this.loadingKey=void 0,this.error=void 0}return a(t,[{key:"provider",get:function(){return this.vm.$apolloProvider}},{key:"getClient",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t||!t.client){if("object"===r(this.client))return this.client;if(this.client){if(this.provider.clients){var e=this.provider.clients[this.client];if(!e)throw new Error("[vue-apollo] Missing client '".concat(this.client,"' in 'apolloProvider'"));return e}throw new Error("[vue-apollo] Missing 'clients' options in 'apolloProvider'")}return this.provider.defaultClient}var i=this.provider.clients[t.client];if(!i)throw new Error("[vue-apollo] Missing client '".concat(t.client,"' in 'apolloProvider'"));return i}},{key:"query",value:function(t){return this.getClient(t).query(t)}},{key:"watchQuery",value:function(t){var e=this,i=this.getClient(t).watchQuery(t),n=i.subscribe.bind(i);return i.subscribe=function(t){var i=n(t);return e._apolloSubscriptions.push(i),i},i}},{key:"mutate",value:function(t){return this.getClient(t).mutate(t)}},{key:"subscribe",value:function(t){var e=this;if(!this.vm.$isServer){var i=this.getClient(t).subscribe(t),n=i.subscribe.bind(i);return i.subscribe=function(t){var i=n(t);return e._apolloSubscriptions.push(i),i},i}}},{key:"loading",get:function(){return 0!==this.vm.$data.$apolloData.loading}},{key:"data",get:function(){return this.vm.$data.$apolloData.data}},{key:"addSmartQuery",value:function(t,e){var i=this,n=j(e,this.vm);if(!n.query){var r=n;n={query:r}}var o,s=this.vm.$options.apollo,a=this.provider.defaultOptions;if(a&&a.$query&&(o=a.$query),s&&s.$query&&(o=u(u({},o||{}),s.$query)),o)for(var l in o)"undefined"===typeof n[l]&&(n[l]=o[l]);var c=this.queries[t]=new U(this.vm,t,n,!1);if(this.vm.$isServer&&!1===n.prefetch||c.autostart(),!this.vm.$isServer){var h=n.subscribeToMore;h&&(Array.isArray(h)?h.forEach((function(e,n){i.addSmartSubscription("".concat(t).concat(n),u(u({},e),{},{linkedQuery:c}))}
7)):this.addSmartSubscription(t,u(u({},h),{},{linkedQuery:c})))}return c}},{key:"addSmartSubscription",value:function(t,e){if(!this.vm.$isServer){e=j(e,this.vm);var i=this.subscriptions[t]=new W(this.vm,t,e,!1);return i.autostart(),e.linkedQuery&&e.linkedQuery._linkedSubscriptions.push(i),i}}},{key:"defineReactiveSetter",value:function(t,e,i){var n=this;this._watchers.push(this.vm.$watch(e,(function(e){n[t]=e}),{immediate:!0,deep:i}))}},{key:"skipAllQueries",set:function(t){for(var e in this._skipAllQueries=t,this.queries)this.queries[e].skip=t}},{key:"skipAllSubscriptions",set:function(t){for(var e in this._skipAllSubscriptions=t,this.subscriptions)this.subscriptions[e].skip=t}},{key:"skipAll",set:function(t){this.skipAllQueries=t,this.skipAllSubscriptions=t}},{key:"destroy",value:function(){for(var t=0,e=this._watchers;t<e.length;t++){var i=e[t];i()}for(var n in this.queries)this.queries[n].destroy();for(var r in this.subscriptions)this.subscriptions[r].destroy();this._apolloSubscriptions.forEach((function(t){t.unsubscribe()}))}}]),t}(),H=function(){function t(e){if(o(this,t),!e)throw new Error("Options argument required");this.clients=e.clients||{},e.defaultClient&&(this.clients.defaultClient=this.defaultClient=e.defaultClient),this.defaultOptions=e.defaultOptions,this.watchLoading=e.watchLoading,this.errorHandler=e.errorHandler,this.prefetch=e.prefetch}return a(t,[{key:"provide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"$apolloProvider";return console.warn("<ApolloProvider>.provide() is deprecated. Use the 'apolloProvider' option instead with the provider object directly."),l({},t,this)}}]),t}();function X(t){return t&&Object.keys(t).length>0}var Q={name:"ApolloQuery",provide:function(){return{getDollarApollo:this.getDollarApollo,getApolloQuery:this.getApolloQuery}},props:{query:{type:[Function,Object],required:!0},variables:{type:Object,default:void 0},fetchPolicy:{type:String,default:void 0},pollInterval:{type:Number,default:void 0},notifyOnNetworkStatusChange:{type:Boolean,default:void 0},context:{type:Object,default:void 0},update:{type:Function,default:function(t){return t}},skip:{type:Boolean,default:!1},debounce:{type:Number,default:0},throttle:{type:Number,default:0},clientId:{type:String,default:void 0},deep:{type:Boolean,default:void 0},tag:{type:String,default:"div"},prefetch:{type:Boolean,default:!0},options:{type:Object,default:function(){return{}}}},data:function(){return{result:{data:null,loading:!1,networkStatus:7,error:null},times:0}},watch:{fetchPolicy:function(t){this.$apollo.queries.query.setOptions({fetchPolicy:t})},pollInterval:function(t){this.$apollo.queries.query.setOptions({pollInterval:t})},notifyOnNetworkStatusChange:function(t){this.$apollo.queries.query.setOptions({notifyOnNetworkStatusChange:t})},"$data.$apolloData.loading":function(t){this.$emit("loading",!!t)}},apollo:{$client:function(){return this.clientId},query:function(){return u(u({query:function(){return"function"===typeof this.query?this.query(n["a"]):this.query},variables:function(){return this.variables},fetchPolicy:this.fetchPolicy,pollInterval:this.pollInterval,debounce:this.debounce,throttle:this.throttle,notifyOnNetworkStatusChange:this.notifyOnNetworkStatusChange,context:function(){return this.context},skip:function(){return this.skip},deep:this.deep,prefetch:this.prefetch},this.options),{},{manual:!0,result:function(t){var e=t,i=e.errors,n=e.loading,r=e.networkStatus,o=t,s=o.error;t=Object.assign({},t),i&&i.length&&(s=new Error("Apollo errors occurred (".concat(i.length,")")),s.graphQLErrors=i);var a={};n?Object.assign(a,this.$_previousData,t.data):s?Object.assign(a,this.$apollo.queries.query.observer.getLastResult()||{},t.data):(a=t.data,this.$_previousData=t.data);var l=X(a);this.result={data:l?this.update(a):void 0,fullData:l?a:void 0,loading:n,error:s,networkStatus:r},this.times=++this.$_times,this.$emit("result",this.result)},error:function(t){this.result.loading=!1,this.result.error=t,this.$emit("error",t)}})}},created:function(){this.$_times=0},methods:{getDollarApollo:function(){return this.$apollo},getApolloQuery:function(){return this.$apollo.queries.query}},render:function(t){var e=this.$scopedSlots["default"]({result:this.result,times:this.times,query:this.$apollo.queries.query,isLoading:this.$apolloData.loading,gqlError:this.result&&this.result.error&&this.result.error.gqlError});return e=Array.isArray(e)?e.concat(this.$slots["default"]):[e].concat(this.$slots["default"]),this.tag?t(this.tag,e):e[0]}},Y=0,K={name:"ApolloSubscribeToMore",inject:["getDollarApollo","getApolloQuery"],props:{document:{type:[Function,Object],required:!0},variables:{type:Object,default:void 0},updateQuery:{type:Function,default:void 0}},watch:{document:"refresh",variables:"refresh"},created:function(){this.$_key="sub_component_".concat(Y++)},mounted:function(){this.refresh()},beforeDestroy:function(){this.destroy()},methods:{destroy:function(){this.$_sub&&this.$_sub.destroy()},refresh:function(){this.destroy();var t=this.document;"function"===typeof t&&(t=t(n["a"])),this.$_sub=this.getDollarApollo().addSmartSubscription(this.$_key,{document:t,variables:this.variables,updateQuery:this.updateQuery,linkedQuery:this.getApolloQuery()})}},render:function(t){return null}},J={props:{mutation:{type:[Function,Object],required:!0},variables:{type:Object,default:void 0},optimisticResponse:{type:Object,default:void 0},update:{type:Function,default:void 0},refetchQueries:{type:Function,default:void 0},clientId:{type:String,default:void 0},tag:{type:String,default:"div"},context:{type:Object,default:void 0}},data:function(){return{loading:!1,error:null}},watch:{loading:function(t){this.$emit("loading",t)}},methods:{mutate:function(t){var e=this;this.loading=!0,this.error=null;var i=this.mutation;return"function"===typeof i&&(i=i(n["a"])),this.$apollo.mutate(u({mutation:i,client:this.clientId,variables:this.variables,optimisticResponse:this.optimisticResponse,update:this.update,refetchQueries:this.refetchQueries,context:this.context},t)).then((function(t){return e.$emit("done",t),e.loading=!1,t}))["catch"]((function(t){F(t),e.error=t,e.$emit("error",t),e.loading=!1}))}},render:function(t){var e=this.$scopedSlots["default"]({mutate:this.mutate,loading:this.loading,error:this.error,gqlError:this.error&&this.error.gqlError});return e=Array.isArray(e)?e.concat(this.$slots["default"]):[e].concat(this.$slots["default"]),this.tag?t(this.tag,e):e[0]}};function tt(t,e){return"undefined"!==typeof t&&Object.prototype.hasOwnProperty.call(t,e)}function et(){var t=this.$options,e=t.apolloProvider;e?this.$apolloProvider="function"===typeof e?e():e:t.parent&&t.parent.$apolloProvider&&(this.$apolloProvider=t.parent.$apolloProvider)}function it(){var t=this;this.$_apolloInitData={};var e=this.$options.apollo;if(e){var i=function(i){if("$"!==i.charAt(0)){var n=e[i];n.manual||tt(t.$options.props,i)||tt(t.$options.computed,i)||tt(t.$options.methods,i)||Object.defineProperty(t,i,{get:function(){return t.$data.$apolloData.data[i]},set:function(e){return t.$_apolloInitData[i]=e},enumerable:!0,configurable:!0})}};for(var n in e)i(n)}}function nt(){var t=this,e=this.$apolloProvider;if(!this._apolloLaunched&&e){this._apolloLaunched=!0;var i=this.$options.apollo;if(i){for(var n in this.$_apolloPromises=[],i.$init||(i.$init=!0,e.defaultOptions&&(i=this.$options.apollo=Object.assign({},e.defaultOptions,i))),rt(this.$apollo,"skipAll",i.$skipAll,i.$deep),rt(this.$apollo,"skipAllQueries",i.$skipAllQueries,i.$deep),rt(this.$apollo,"skipAllSubscriptions",i.$skipAllSubscriptions,i.$deep),rt(this.$apollo,"client",i.$client,i.$deep),rt(this.$apollo,"loadingKey",i.$loadingKey,i.$deep),rt(this.$apollo,"error",i.$error,i.$deep),rt(this.$apollo,"watchLoading",i.$watchLoading,i.$deep),Object.defineProperty(this,"$apolloData",{get:function(){return t.$data.$apolloData},enumerable:!0,configurable:!0}),i)if("$"!==n.charAt(0)){var r=i[n],o=this.$apollo.addSmartQuery(n,r);this.$isServer&&(r=j(r,this),!1===e.prefetch||!1===r.prefetch||!1===i.$prefetch||o.skip||this.$_apolloPromises.push(o.firstRun))}if(i.subscribe&&L.Vue.util.warn("vue-apollo -> `subscribe` option is deprecated. Use the `$subscribe` option instead."),i.$subscribe)for(var s in i.$subscribe)this.$apollo.addSmartSubscription(s,i.$subscribe[s])}}}function rt(t,e,i,n){"undefined"!==typeof i&&("function"===typeof i?t.defineReactiveSetter(e,i,n):t[e]=i)}function ot(){this.$_apollo&&this.$_apollo.destroy()}function st(t,e){t.mixin(u(u(u({},"1"===e?{init:et}:{}),"2"===e?{data:function(){return{$apolloData:{queries:{},loading:0,data:this.$_apolloInitData}}},beforeCreate:function(){et.call(this),it.call(this)},serverPrefetch:function(){var t=this;if(this.$_apolloPromises)return Promise.all(this.$_apolloPromises).then((function(){ot.call(t)}))["catch"]((function(e){return ot.call(t),Promise.reject(e)}))}}:{}),{},{created:nt,destroyed:ot}))}var at=["$subscribe"];function lt(t,e){if(!lt.installed){lt.installed=!0,L.Vue=t;
7var i=t.version.substr(0,t.version.indexOf(".")),n=t.config.optionMergeStrategies.methods;t.config.optionMergeStrategies.apollo=function(t,e,i){if(!t)return e;if(!e)return t;for(var r=Object.assign({},B(t,at),t.data),o=Object.assign({},B(e,at),e.data),s={},a=0;a<at.length;a++){var l=at[a];s[l]=n(t[l],e[l])}return Object.assign(s,n(r,o))},Object.prototype.hasOwnProperty.call(t,"$apollo")||Object.defineProperty(t.prototype,"$apollo",{get:function(){return this.$_apollo||(this.$_apollo=new Z(this)),this.$_apollo}}),st(t,i),"2"===i&&(t.component("ApolloQuery",Q),t.component("ApolloQuery",Q),t.component("ApolloSubscribeToMore",K),t.component("ApolloSubscribeToMore",K),t.component("ApolloMutation",J),t.component("ApolloMutation",J))}}H.install=lt,H.version="3.1.2";var ct=null;"undefined"!==typeof window?ct=window.Vue:"undefined"!==typeof t&&(ct=t.Vue),ct&&ct.use(H),e["a"]=H}).call(this,i("c8ba"))},5363:function(t,e,i){},5388:function(t,e,i){"use strict";var n=i("c65b");t.exports=function(t,e,i){var r,o,s=i?t:t.iterator,a=t.next;while(!(r=n(a,s)).done)if(o=e(r.value),void 0!==o)return o}},"53a8":function(t,e){t.exports=n;var i=Object.prototype.hasOwnProperty;function n(){for(var t={},e=0;e<arguments.length;e++){var n=arguments[e];for(var r in n)i.call(n,r)&&(t[r]=n[r])}return t}},5494:function(t,e,i){"use strict";var n=i("83ab"),r=i("e330"),o=i("edd0"),s=URLSearchParams.prototype,a=r(s.forEach);n&&!("size"in s)&&o(s,"size",{get:function(){var t=0;return a(this,(function(){t++})),t},configurable:!0,enumerable:!0})},5568:function(t,e,i){"use strict";var n=i("370b");function r(t){var e=[1/0,1/0,-1/0,-1/0];return Object(n["a"])(t,(function(t){e[0]>t[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]<t[0]&&(e[2]=t[0]),e[3]<t[1]&&(e[3]=t[1])})),e}r["default"]=r,e["a"]=r},5607:function(t,e,i){"use strict";i("7435");var n=i("80d2");const r=80;function o(t,e){t.style.transform=e,t.style.webkitTransform=e}function s(t){return"TouchEvent"===t.constructor.name}function a(t){return"KeyboardEvent"===t.constructor.name}const l=(t,e,i={})=>{let n=0,r=0;if(!a(t)){const i=e.getBoundingClientRect(),o=s(t)?t.touches[t.touches.length-1]:t;n=o.clientX-i.left,r=o.clientY-i.top}let o=0,l=.3;e._ripple&&e._ripple.circle?(l=.15,o=e.clientWidth/2,o=i.center?o:o+Math.sqrt((n-o)**2+(r-o)**2)/4):o=Math.sqrt(e.clientWidth**2+e.clientHeight**2)/2;const c=(e.clientWidth-2*o)/2+"px",u=(e.clientHeight-2*o)/2+"px",h=i.center?c:n-o+"px",d=i.center?u:r-o+"px";return{radius:o,scale:l,x:h,y:d,centerX:c,centerY:u}},c={show(t,e,i={}){if(!e._ripple||!e._ripple.enabled)return;const n=document.createElement("span"),r=document.createElement("span");n.appendChild(r),n.className="v-ripple__container",i.class&&(n.className+=" "+i.class);const{radius:s,scale:a,x:c,y:u,centerX:h,centerY:d}=l(t,e,i),f=2*s+"px";r.className="v-ripple__animation",r.style.width=f,r.style.height=f,e.appendChild(n);const p=window.getComputedStyle(e);p&&"static"===p.position&&(e.style.position="relative",e.dataset.previousPosition="static"),r.classList.add("v-ripple__animation--enter"),r.classList.add("v-ripple__animation--visible"),o(r,`translate(${c}, ${u}) scale3d(${a},${a},${a})`),r.dataset.activated=String(performance.now()),setTimeout(()=>{r.classList.remove("v-ripple__animation--enter"),r.classList.add("v-ripple__animation--in"),o(r,`translate(${h}, ${d}) scale3d(1,1,1)`)},0)},hide(t){if(!t||!t._ripple||!t._ripple.enabled)return;const e=t.getElementsByClassName("v-ripple__animation");if(0===e.length)return;const i=e[e.length-1];if(i.dataset.isHiding)return;i.dataset.isHiding="true";const n=performance.now()-Number(i.dataset.activated),r=Math.max(250-n,0);setTimeout(()=>{i.classList.remove("v-ripple__animation--in"),i.classList.add("v-ripple__animation--out"),setTimeout(()=>{var e;const n=t.getElementsByClassName("v-ripple__animation");1===n.length&&t.dataset.previousPosition&&(t.style.position=t.dataset.previousPosition,delete t.dataset.previousPosition),(null===(e=i.parentNode)||void 0===e?void 0:e.parentNode)===t&&t.removeChild(i.parentNode)},300)},r)}};function u(t){return"undefined"===typeof t||!!t}function h(t){const e={},i=t.currentTarget;if(i&&i._ripple&&!i._ripple.touched&&!t.rippleStop){if(t.rippleStop=!0,s(t))i._ripple.touched=!0,i._ripple.isTouch=!0;else if(i._ripple.isTouch)return;if(e.center=i._ripple.centered||a(t),i._ripple.class&&(e.class=i._ripple.class),s(t)){if(i._ripple.showTimerCommit)return;i._ripple.showTimerCommit=()=>{c.show(t,i,e)},i._ripple.showTimer=window.setTimeout(()=>{i&&i._ripple&&i._ripple.showTimerCommit&&(i._ripple.showTimerCommit(),i._ripple.showTimerCommit=null)},r)}else c.show(t,i,e)}}function d(t){const e=t.currentTarget;if(e&&e._ripple){if(window.clearTimeout(e._ripple.showTimer),"touchend"===t.type&&e._ripple.showTimerCommit)return e._ripple.showTimerCommit(),e._ripple.showTimerCommit=null,void(e._ripple.showTimer=setTimeout(()=>{d(t)}));window.setTimeout(()=>
7{e._ripple&&(e._ripple.touched=!1)}),c.hide(e)}}function f(t){const e=t.currentTarget;e&&e._ripple&&(e._ripple.showTimerCommit&&(e._ripple.showTimerCommit=null),window.clearTimeout(e._ripple.showTimer))}let p=!1;function m(t){p||t.keyCode!==n["q"].enter&&t.keyCode!==n["q"].space||(p=!0,h(t))}function g(t){p=!1,d(t)}function y(t){!0===p&&(p=!1,d(t))}function _(t,e,i){const n=u(e.value);n||c.hide(t),t._ripple=t._ripple||{},t._ripple.enabled=n;const r=e.value||{};r.center&&(t._ripple.centered=!0),r.class&&(t._ripple.class=e.value.class),r.circle&&(t._ripple.circle=r.circle),n&&!i?(t.addEventListener("touchstart",h,{passive:!0}),t.addEventListener("touchend",d,{passive:!0}),t.addEventListener("touchmove",f,{passive:!0}),t.addEventListener("touchcancel",d),t.addEventListener("mousedown",h),t.addEventListener("mouseup",d),t.addEventListener("mouseleave",d),t.addEventListener("keydown",m),t.addEventListener("keyup",g),t.addEventListener("blur",y),t.addEventListener("dragstart",d,{passive:!0})):!n&&i&&v(t)}function v(t){t.removeEventListener("mousedown",h),t.removeEventListener("touchstart",h),t.removeEventListener("touchend",d),t.removeEventListener("touchmove",f),t.removeEventListener("touchcancel",d),t.removeEventListener("mouseup",d),t.removeEventListener("mouseleave",d),t.removeEventListener("keydown",m),t.removeEventListener("keyup",g),t.removeEventListener("dragstart",d),t.removeEventListener("blur",y)}function b(t,e,i){_(t,e,!1)}function x(t){delete t._ripple,v(t)}function w(t,e){if(e.value===e.oldValue)return;const i=u(e.oldValue);_(t,e,i)}const E={bind:b,unbind:x,update:w};e["a"]=E},5692:function(t,e,i){"use strict";var n=i("c6cd");t.exports=function(t,e){return n[t]||(n[t]=e||{})}},"56ef":function(t,e,i){"use strict";var n=i("d066"),r=i("e330"),o=i("241c"),s=i("7418"),a=i("825a"),l=r([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(a(t)),i=s.f;return i?l(e,i(t)):e}},"577e":function(t,e,i){"use strict";var n=i("f5df"),r=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return r(t)}},"57fc":function(t,e,i){"use strict";var n=i("6da3");function r(t){return n(t,(function(t,e){return null!=e}))}t.exports=r},"58df":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("2b0e");function r(...t){return n["a"].extend({mixins:t})}},5926:function(t,e,i){"use strict";var n=i("b42e");t.exports=function(t){var e=+t;return e!==e||0===e?0:n(e)}},"59ed":function(t,e,i){"use strict";var n=i("1626"),r=i("0d51"),o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(r(t)+" is not a function")}},"5a74":function(t,e,i){function n(t){if(t=Object.assign({},t),!(this instanceof n))throw new Error("MapboxLanguage needs to be called with the new keyword");this.setLanguage=this.setLanguage.bind(this),this._initialStyleUpdate=this._initialStyleUpdate.bind(this),this._defaultLanguage=t.defaultLanguage,this._isLanguageField=t.languageField||/^name_/,this._getLanguageField=t.getLanguageField||function(t){return"mul"===t?"name":"name_"+t},this._languageSource=t.languageSource||null,this._languageTransform=t.languageTransform,this._excludedLayerIds=t.excludedLayerIds||[],this.supportedLanguages=t.supportedLanguages||["ar","de","en","es","fr","it","ja","ko","mul","pt","ru","vi","zh-Hans","zh-Hant"]}const r=/^\{name/;function o(t,e){const i=Array.isArray(e)&&"get"===e[0];return i&&r.test(e[1])&&console.warn("This plugin no longer supports the use of token syntax (e.g. {name}). Please use a get expression. See https://docs.mapbox.com/mapbox-gl-js/style-spec/expressions/ for more details."),i&&t.test(e[1])}function s(t,e,i){if(Array.isArray(e))for(let n=1;n<e.length;n++)Array.isArray(e[n])&&(o(t,e[n])&&(e[n][1]=i),s(t,e[n],i))}function a(t,e,i){if(o(t,e)&&(e[1]=i),s(t,e,i),"get"===e[0]&&"name"===e[1]){const t=e.slice(),n=["get",i];e=["coalesce",n,t]}return e}function l(t,e,i,n){return e.layout&&e.layout["text-field"]&&-1===n.indexOf(e.id)?Object.assign({},e,{layout:Object.assign({},e.layout,{"text-field":a(t,e.layout["text-field"],i)})}):e}function c(t){const e=Object.keys(t.sources).filter(e=>{const i=t.sources[e].url;return i&&i.indexOf("mapbox.mapbox-streets-v8")>-1||/mapbox-streets-v[1-9][1-9]/.test(i)});if(!e.length)throw new Error('If using MapboxLanguage with a Mapbox style, the style must be based on vector tile version 8, e.g. "streets-v11"');return e[0]}function u(t){const e=navigator.languages?navigator.languages[0]:navigator.language||navigator.userLanguage,i=e&&e.split("-");let n=e;return i.length>1&&(n=i[0]),t.indexOf(n)>-1?n:null}n.prototype.setLanguage=function(t,e){if(this.supportedLanguages.indexOf(e)<0)throw new Error(`Language ${e} is not supported`);const i=this._languageSource||c(t);if(!i)return t;const n=this._getLanguageField(e),r=this._isLanguageField,o=this._excludedLayerIds,s=t.layers.map(t=>t.source===i?l(r,t,n,o):t),a=Object.assign({},t,{layers:s});return this._languageTransform?this._languageTransform(a,e):a},n.prototype._initialStyleUpdate=function(){const t=this._map.getStyle(),e=this._defaultLanguage||u(this.supportedLanguages);this._map.setStyle(this.setLanguage(t,e))},n.prototype.onAdd=function(t){return this._map=t,this._map.style&&this._map.style._loaded?this._initialStyleUpdate():this._map.on("style.load",this._initialStyleUpdate),this._container=document.createElement("div"),this._container},n.prototype.onRemove=function(){this._map.off("style.load",this._initialStyleUpdate),this._map=void 0},"undefined"!==typeof t.exports?t.exports=n:window.MapboxLanguage=n}
7,"5b81":function(t,e,i){"use strict";var n=i("23e7"),r=i("c65b"),o=i("e330"),s=i("1d80"),a=i("1626"),l=i("7234"),c=i("44e7"),u=i("577e"),h=i("dc4a"),d=i("90d8"),f=i("0cb2"),p=i("b622"),m=i("c430"),g=p("replace"),y=TypeError,_=o("".indexOf),v=o("".replace),b=o("".slice),x=Math.max;n({target:"String",proto:!0},{replaceAll:function(t,e){var i,n,o,p,w,E,T,S,k,O,A=s(this),C=0,I="";if(!l(t)){if(i=c(t),i&&(n=u(s(d(t))),!~_(n,"g")))throw new y("`.replaceAll` does not allow non-global regexes");if(o=h(t,g),o)return r(o,t,A,e);if(m&&i)return v(u(A),t,e)}p=u(A),w=u(t),E=a(e),E||(e=u(e)),T=w.length,S=x(1,T),k=_(p,w);while(-1!==k)O=E?u(e(w,k,p)):f(w,p,k,[],void 0,e),I+=b(p,C,k)+O,C=k+T,k=k+S>p.length?-1:_(p,w,k+S);return C<p.length&&(I+=b(p,C)),I}})},"5c6c":function(t,e,i){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5d23":function(t,e,i){"use strict";i.d(e,"a",(function(){return S})),i.d(e,"b",(function(){return k}));var n=i("80d2"),r=i("8860"),o=(i("db42"),i("9d26")),s=i("da13"),a=i("34c3"),l=i("7e2b"),c=i("9d65"),u=i("a9ad"),h=i("f2e7"),d=i("3206"),f=i("5607"),p=i("0789"),m=i("58df");const g=Object(m["a"])(l["a"],c["a"],u["a"],Object(d["a"])("list"),h["a"]);var y=g.extend().extend({name:"v-list-group",directives:{ripple:f["a"]},props:{activeClass:{type:String,default:""},appendIcon:{type:String,default:"$expand"},color:{type:String,default:"primary"},disabled:Boolean,group:[String,RegExp],noAction:Boolean,prependIcon:String,ripple:{type:[Boolean,Object],default:!0},subGroup:Boolean},computed:{classes(){return{"v-list-group--active":this.isActive,"v-list-group--disabled":this.disabled,"v-list-group--no-action":this.noAction,"v-list-group--sub-group":this.subGroup}}},watch:{isActive(t){!this.subGroup&&t&&this.list&&this.list.listClick(this._uid)},$route:"onRouteChange"},created(){this.list&&this.list.register(this),this.group&&this.$route&&null==this.value&&(this.isActive=this.matchRoute(this.$route.path))},beforeDestroy(){this.list&&this.list.unregister(this)},methods:{click(t){this.disabled||(this.isBooted=!0,this.$emit("click",t),this.$nextTick(()=>this.isActive=!this.isActive))},genIcon(t){return this.$createElement(o["a"],t)},genAppendIcon(){const t=!this.subGroup&&this.appendIcon,e=Object(n["m"])(this,"appendIcon");return t||e?this.$createElement(a["a"],{staticClass:"v-list-group__header__append-icon"},[e||this.genIcon(t)]):null},genHeader(){return this.$createElement(s["a"],{staticClass:"v-list-group__header",attrs:{"aria-expanded":String(this.isActive),role:"button"},class:{[this.activeClass]:this.isActive},props:{inputValue:this.isActive},directives:[{name:"ripple",value:this.ripple}],on:{...this.listeners$,click:this.click}},[this.genPrependIcon(),Object(n["m"])(this,"activator"),this.genAppendIcon()])},genItems(){return this.showLazyContent(()=>[this.$createElement("div",{staticClass:"v-list-group__items",directives:[{name:"show",value:this.isActive}]},Object(n["m"])(this))])},genPrependIcon(){const t=this.subGroup&&null==this.prependIcon?"$subgroup":this.prependIcon,e=Object(n["m"])(this,"prependIcon");return t||e?this.$createElement(a["a"],{staticClass:"v-list-group__header__prepend-icon"},[e||this.genIcon(t)]):null},onRouteChange(t){if(!this.group)return;const e=this.matchRoute(t.path);e&&this.isActive!==e&&this.list&&this.list.listClick(this._uid),this.isActive=e},toggle(t){const e=this._uid===t;e&&(this.isBooted=!0),this.$nextTick(()=>this.isActive=e)},matchRoute(t){return null!==t.match(this.group)}},render(t){return t("div",this.setTextColor(this.isActive&&this.color,{staticClass:"v-list-group",class:this.classes}),[this.genHeader(),t(p["a"],this.genItems())])}}),_=(i("899c"),i("604c")),v=Object(m["a"])(_["a"],u["a"]).extend({name:"v-list-item-group",provide(){return{isInGroup:!0,listItemGroup:this}},computed:{classes(){return{..._["a"].options.computed.classes.call(this),"v-list-item-group":!0}}},methods:{genData(){return this.setTextColor(this.color,{..._["a"].options.methods.genData.call(this),attrs:{role:"listbox"}})}}}),b=(i("e9f5"),i("910d"),i("2b0e")),x=b["a"].extend({name:"v-list-item-action",functional:!0,render(t,{data:e,children:i=[]}){e.staticClass=e.staticClass?"v-list-item__action "+e.staticClass:"v-list-item__action";const n=i.filter(t=>!1===t.isComment&&" "!==t.text);return n.length>1&&(e.staticClass+=" v-list-item__action--stack"),t("div",e,i)}}),w=i("713a"),E=w["a"].extend({name:"v-list-item-avatar",props:{horizontal:Boolean,size:{type:[Number,String],default:40}},computed:{classes(){return{"v-list-item__avatar--horizontal":this.horizontal,...w["a"].options.computed.classes.call(this),"v-avatar--tile":this.tile||this.horizontal}}},render(t){const e=w["a"].options.render.call(this,t);return e.data=e.data||{},e.data.staticClass+=" v-list-item__avatar",e}});const T=Object(n["h"])("v-list-item__action-text","span"),S=Object(n["h"])("v-list-item__content","div"),k=Object(n["h"])("v-list-item__title","div"),O=Object(n["h"])("v-list-item__subtitle","div");r["a"],s["a"],a["a"]}
7,"5e66":function(t,e,i){"use strict";i("14d9"),i("63b7"),i("e9f5"),i("f665"),i("13b3");var n=i("c3f0"),r=i("afdd"),o=i("9d26"),s=i("604c"),a=i("80d2"),l=s["a"].extend({name:"v-window",directives:{Touch:n["a"]},provide(){return{windowGroup:this}},props:{activeClass:{type:String,default:"v-window-item--active"},continuous:Boolean,mandatory:{type:Boolean,default:!0},nextIcon:{type:[Boolean,String],default:"$next"},prevIcon:{type:[Boolean,String],default:"$prev"},reverse:Boolean,showArrows:Boolean,showArrowsOnHover:Boolean,touch:Object,touchless:Boolean,value:{required:!1},vertical:Boolean},data(){return{changedByDelimiters:!1,internalHeight:void 0,transitionHeight:void 0,transitionCount:0,isBooted:!1,isReverse:!1}},computed:{isActive(){return this.transitionCount>0},classes(){return{...s["a"].options.computed.classes.call(this),"v-window--show-arrows-on-hover":this.showArrowsOnHover}},computedTransition(){if(!this.isBooted)return"";const t=this.vertical?"y":"x",e=this.internalReverse?!this.isReverse:this.isReverse,i=e?"-reverse":"";return`v-window-${t}${i}-transition`},hasActiveItems(){return Boolean(this.items.find(t=>!t.disabled))},hasNext(){return this.continuous||this.internalIndex<this.items.length-1},hasPrev(){return this.continuous||this.internalIndex>0},internalIndex(){return this.items.findIndex((t,e)=>this.internalValue===this.getValue(t,e))},internalReverse(){return this.$vuetify.rtl?!this.reverse:this.reverse}},watch:{internalIndex(t,e){this.isReverse=this.updateReverse(t,e)}},mounted(){window.requestAnimationFrame(()=>this.isBooted=!0)},methods:{genDefaultSlot(){return Object(a["m"])(this)},genContainer(){const t=[this.genDefaultSlot()];return this.showArrows&&t.push(this.genControlIcons()),this.$createElement("div",{staticClass:"v-window__container",class:{"v-window__container--is-active":this.isActive},style:{height:this.internalHeight||this.transitionHeight}},t)},genIcon(t,e,i){var n,s,a;const l={click:t=>{t.stopPropagation(),this.changedByDelimiters=!0,i()}},c={"aria-label":this.$vuetify.lang.t("$vuetify.carousel."+t)},u=null!==(a=null===(s=(n=this.$scopedSlots)[t])||void 0===s?void 0:s.call(n,{on:l,attrs:c}))&&void 0!==a?a:[this.$createElement(r["a"],{props:{icon:!0},attrs:c,on:l},[this.$createElement(o["a"],{props:{large:!0}},e)])];return this.$createElement("div",{staticClass:"v-window__"+t},u)},genControlIcons(){const t=[],e=this.$vuetify.rtl?this.nextIcon:this.prevIcon;if(this.hasPrev&&e&&"string"===typeof e){const i=this.genIcon("prev",e,this.prev);i&&t.push(i)}const i=this.$vuetify.rtl?this.prevIcon:this.nextIcon;if(this.hasNext&&i&&"string"===typeof i){const e=this.genIcon("next",i,this.next);e&&t.push(e)}return t},getNextIndex(t){const e=(t+1)%this.items.length,i=this.items[e];return i.disabled?this.getNextIndex(e):e},getPrevIndex(t){const e=(t+this.items.length-1)%this.items.length,i=this.items[e];return i.disabled?this.getPrevIndex(e):e},next(){if(!this.hasActiveItems||!this.hasNext)return;const t=this.getNextIndex(this.internalIndex),e=this.items[t];this.internalValue=this.getValue(e,t)},prev(){if(!this.hasActiveItems||!this.hasPrev)return;const t=this.getPrevIndex(this.internalIndex),e=this.items[t];this.internalValue=this.getValue(e,t)},updateReverse(t,e){const i=this.items.length,n=i-1;return i<=2?t<e:t===n&&0===e||(0!==t||e!==n)&&t<e}},render(t){const e={staticClass:"v-window",class:this.classes,directives:[]};if(!this.touchless){const t=this.touch||{left:()=>{this.$vuetify.rtl?this.prev():this.next()},right:()=>{this.$vuetify.rtl?this.next():this.prev()},end:t=>{t.stopPropagation()},start:t=>{t.stopPropagation()}};e.directives.push({name:"touch",value:t})}return t("div",e,[this.genContainer()])}}),c=i("37c6"),u=i("3860"),h=i("d9bd");e["a"]=l.extend({name:"v-carousel",props:{continuous:{type:Boolean,default:!0},cycle:Boolean,delimiterIcon:{type:String,default:"$delimiter"},height:{type:[Number,String],default:500},hideDelimiters:Boolean,hideDelimiterBackground:Boolean,interval:{type:[Number,String],default:6e3,validator:t=>t>0},mandatory:{type:Boolean,default:!0},progress:Boolean,progressColor:String,showArrows:{type:Boolean,default:!0},verticalDelimiters:{type:String,default:void 0}},provide(){return{parentTheme:this.theme}},data(){return{internalHeight:this.height,slideTimeout:void 0}},computed:{classes(){return{...l.options.computed.classes.call(this),"v-carou
7sel":!0,"v-carousel--hide-delimiter-background":this.hideDelimiterBackground,"v-carousel--vertical-delimiters":this.isVertical}},isDark(){return this.dark||!this.light},isVertical(){return null!=this.verticalDelimiters}},watch:{internalValue:"restartTimeout",interval:"restartTimeout",height(t,e){t!==e&&t&&(this.internalHeight=t)},cycle(t){t?this.restartTimeout():(clearTimeout(this.slideTimeout),this.slideTimeout=void 0)}},created(){this.$attrs.hasOwnProperty("hide-controls")&&Object(h["a"])("hide-controls",':show-arrows="false"',this)},mounted(){this.startTimeout()},methods:{genControlIcons(){return this.isVertical?null:l.options.methods.genControlIcons.call(this)},genDelimiters(){return this.$createElement("div",{staticClass:"v-carousel__controls",style:{left:"left"===this.verticalDelimiters&&this.isVertical?0:"auto",right:"right"===this.verticalDelimiters?0:"auto"}},[this.genItems()])},genItems(){const t=this.items.length,e=[];for(let i=0;i<t;i++){const n=this.$createElement(r["a"],{staticClass:"v-carousel__controls__item",attrs:{"aria-label":this.$vuetify.lang.t("$vuetify.carousel.ariaLabel.delimiter",i+1,t)},props:{icon:!0,small:!0,value:this.getValue(this.items[i],i)},key:i},[this.$createElement(o["a"],{props:{size:18}},this.delimiterIcon)]);e.push(n)}return this.$createElement(u["a"],{props:{value:this.internalValue,mandatory:this.mandatory},on:{change:t=>{this.internalValue=t}}},e)},genProgress(){return this.$createElement(c["a"],{staticClass:"v-carousel__progress",props:{color:this.progressColor,value:(this.internalIndex+1)/this.items.length*100}})},restartTimeout(){this.slideTimeout&&clearTimeout(this.slideTimeout),this.slideTimeout=void 0,window.requestAnimationFrame(this.startTimeout)},startTimeout(){this.cycle&&(this.slideTimeout=window.setTimeout(this.next,+this.interval>0?+this.interval:6e3))}},render(t){const e=l.options.render.call(this,t);return e.data.style=`height: ${Object(a["g"])(this.height)};`,this.hideDelimiters||e.children.push(this.genDelimiters()),(this.progress||this.progressColor)&&e.children.push(this.genProgress()),e}})},"5e77":function(t,e,i){"use strict";var n=i("83ab"),r=i("1a2d"),o=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=r(o,"name"),l=a&&"something"===function(){}.name,c=a&&(!n||n&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},"604c":function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));i("14d9"),i("e9f5"),i("910d"),i("f665"),i("7d54"),i("a732"),i("166a");var n=i("8547"),r=i("a452"),o=i("7560"),s=i("58df"),a=i("d9bd"),l=i("80d2");const c=Object(s["a"])(n["a"],r["a"],o["a"]).extend({name:"base-item-group",props:{activeClass:{type:String,default:"v-item--active"},mandatory:Boolean,max:{type:[Number,String],default:null},multiple:Boolean,tag:{type:String,default:"div"}},data(){return{internalLazyValue:void 0!==this.value?this.value:this.multiple?[]:void 0,items:[]}},computed:{classes(){return{"v-item-group":!0,...this.themeClasses}},selectedIndex(){return this.selectedItem&&this.items.indexOf(this.selectedItem)||-1},selectedItem(){if(!this.multiple)return this.selectedItems[0]},selectedItems(){return this.items.filter((t,e)=>this.toggleMethod(this.getValue(t,e)))},selectedValues(){return null==this.internalValue?[]:Array.isArray(this.internalValue)?this.internalValue:[this.internalValue]},toggleMethod(){if(!this.multiple)return t=>this.valueComparator(this.internalValue,t);const t=this.internalValue;return Array.isArray(t)?e=>t.some(t=>this.valueComparator(t,e)):()=>!1}},watch:{internalValue:"updateItemsState",items:"updateItemsState"},created(){this.multiple&&!Array.isArray(this.internalValue)&&Object(a["c"])("Model must be bound to an array if the multiple property is true.",this)},methods:{genData(){return{class:this.classes}},getValue(t,e){return void 0===t.value?e:t.value},onClick(t){this.updateInternalValue(this.getValue(t,this.items.indexOf(t)))},register(t){const e=this.items.push(t)-1;t.$on("change",()=>this.onClick(t)),this.mandatory&&!this.selectedValues.length&&this.updateMandatory(),this.updateItem(t,e)},unregister(t){if(this._isDestroyed)return;const e=this.items.indexOf(t),i=this.getValue(t,e);this.items.splice(e,1);const n=this.selectedValues.indexOf(i);
7if(!(n<0)){if(!this.mandatory)return this.updateInternalValue(i);this.multiple&&Array.isArray(this.internalValue)?this.internalValue=this.internalValue.filter(t=>t!==i):this.internalValue=void 0,this.selectedItems.length||this.updateMandatory(!0)}},updateItem(t,e){const i=this.getValue(t,e);t.isActive=this.toggleMethod(i)},updateItemsState(){this.$nextTick(()=>{if(this.mandatory&&!this.selectedItems.length)return this.updateMandatory();this.items.forEach(this.updateItem)})},updateInternalValue(t){this.multiple?this.updateMultiple(t):this.updateSingle(t)},updateMandatory(t){if(!this.items.length)return;const e=this.items.slice();t&&e.reverse();const i=e.find(t=>!t.disabled);if(!i)return;const n=this.items.indexOf(i);this.updateInternalValue(this.getValue(i,n))},updateMultiple(t){const e=Array.isArray(this.internalValue)?this.internalValue:[],i=e.slice(),n=i.findIndex(e=>this.valueComparator(e,t));this.mandatory&&n>-1&&i.length-1<1||null!=this.max&&n<0&&i.length+1>this.max||(n>-1?i.splice(n,1):i.push(t),this.internalValue=i)},updateSingle(t){const e=this.valueComparator(this.internalValue,t);this.mandatory&&e||(this.internalValue=e?void 0:t)}},render(t){return t(this.tag,this.genData(),Object(l["m"])(this))}});c.extend({name:"v-item-group",provide(){return{itemGroup:this}}})},"608e":function(t,e,i){"use strict";var n=i("6aa0"),r={};function o(t){if(r[t])return r[t];var e=t.split("."),i=e[0],n=e[1];if(!n)throw new Error("Invalid token");var o=s(n),l={usage:i,user:o.u};return a(o,"a")&&(l.authorization=o.a),a(o,"exp")&&(l.expires=1e3*o.exp),a(o,"iat")&&(l.created=1e3*o.iat),a(o,"scopes")&&(l.scopes=o.scopes),a(o,"client")&&(l.client=o.client),a(o,"ll")&&(l.lastLogin=o.ll),a(o,"iu")&&(l.impersonator=o.iu),r[t]=l,l}function s(t){try{return JSON.parse(n.decode(t))}catch(e){throw new Error("Invalid token")}}function a(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=o},"615b":function(t,e,i){},"615f":function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));var n=i("9ab4"),r=i("11ed"),o=i("b070"),s=i("0ae3"),a=i("41c0"),l=i("e7a4");function c(t,e,i,a){var l=e.data,c=Object(n["e"])(e,["data"]),h=i.data,d=Object(n["e"])(i,["data"]);return Object(r["a"])(c,d)&&u(Object(o["e"])(t).selectionSet,l,h,{fragmentMap:Object(s["a"])(Object(o["d"])(t)),variables:a})}function u(t,e,i,n){if(e===i)return!0;var o=new Set;return t.selections.every((function(t){if(o.has(t))return!0;if(o.add(t),!Object(a["d"])(t,n.variables))return!0;if(h(t))return!0;if(Object(l["e"])(t)){var c=Object(l["i"])(t),d=e&&e[c],f=i&&i[c],p=t.selectionSet;if(!p)return Object(r["a"])(d,f);var m=Array.isArray(d),g=Array.isArray(f);if(m!==g)return!1;if(m&&g){var y=d.length;if(f.length!==y)return!1;for(var _=0;_<y;++_)if(!u(p,d[_],f[_],n))return!1;return!0}return u(p,d,f,n)}var v=Object(s["b"])(t,n.fragmentMap);return v?!!h(v)||u(v.selectionSet,e,i,n):void 0}))}function h(t){return!!t.directives&&t.directives.some(d)}function d(t){return"nonreactive"===t.name.value}},"61d2":function(t,e,i){},"62ad":function(t,e,i){"use strict";i("14d9"),i("13d5"),i("e9f5"),i("7d54"),i("a732"),i("4b85");var n=i("2b0e"),r=i("d9f7"),o=i("80d2");const s=["sm","md","lg","xl"],a=(()=>s.reduce((t,e)=>(t[e]={type:[Boolean,String,Number],default:!1},t),{}))(),l=(()=>s.reduce((t,e)=>(t["offset"+Object(o["v"])(e)]={type:[String,Number],default:null},t),{}))(),c=(()=>s.reduce((t,e)=>(t["order"+Object(o["v"])(e)]={type:[String,Number],default:null},t),{}))(),u={col:Object.keys(a),offset:Object.keys(l),order:Object.keys(c)};function h(t,e,i){let n=t;if(null!=i&&!1!==i){if(e){const i=e.replace(t,"");n+="-"+i}return"col"!==t||""!==i&&!0!==i?(n+="-"+i,n.toLowerCase()):n.toLowerCase()}}const d=new Map;e["a"]=n["a"].extend({name:"v-col",functional:!0,props:{cols:{type:[Boolean,String,Number],default:!1},...a,offset:{type:[String,Number],default:null},...l,order:{type:[String,Number],default:null},...c,alignSelf:{type:String,default:null,validator:t=>["auto","start","end","center","baseline","stretch"].includes(t)},tag:{type:String,default:"div"}},render(t,{props:e,data:i,children:n,parent:o}){let s="";for(const r in e)s+=String(e[r]);let a=d.get(s);if(!a){let t;for(t in a=[],u)u[t].forEach(i=>
7{const n=e[i],r=h(t,i,n);r&&a.push(r)});const i=a.some(t=>t.startsWith("col-"));a.push({col:!i||!e.cols,["col-"+e.cols]:e.cols,["offset-"+e.offset]:e.offset,["order-"+e.order]:e.order,["align-self-"+e.alignSelf]:e.alignSelf}),d.set(s,a)}return t(e.tag,Object(r["a"])(i,{class:a}),n)}})},"62e4":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},6369:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("4227"),r=i("370b");function o(t,e){return void 0===e&&(e={}),Object(r["c"])(t,(function(t,i){var r=i.geometry.coordinates;return t+Object(n["a"])(r[0],r[1],e)}),0)}},6374:function(t,e,i){"use strict";var n=i("cfe9"),r=Object.defineProperty;t.exports=function(t,e){try{r(n,t,{value:e,configurable:!0,writable:!0})}catch(i){n[t]=e}return e}},"63b7":function(t,e,i){},6530:function(t,e,i){},"67da":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=Object.prototype.toString;function r(t){return o(t)}function o(t,e){switch(n.call(t)){case"[object Array]":if(e=e||new Map,e.has(t))return e.get(t);var i=t.slice(0);return e.set(t,i),i.forEach((function(t,n){i[n]=o(t,e)})),i;case"[object Object]":if(e=e||new Map,e.has(t))return e.get(t);var r=Object.create(Object.getPrototypeOf(t));return e.set(t,r),Object.keys(t).forEach((function(i){r[i]=o(t[i],e)})),r;default:return t}}},"68df":function(t,e,i){"use strict";var n=i("dc19"),r=i("8e16"),o=i("384f"),s=i("7f65");t.exports=function(t){var e=n(this),i=s(t);return!(r(e)>i.size)&&!1!==o(e,(function(t){if(!i.includes(t))return!1}),!0)}},"694b":function(t,e,i){"use strict";t.exports=function t(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){if(e.constructor!==i.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=i.length)return!1;for(r=n;0!==r--;)if(!t(e[r],i[r]))return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===i.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(i).length)return!1;for(r=n;0!==r--;)if(!Object.prototype.hasOwnProperty.call(i,o[r]))return!1;for(r=n;0!==r--;){var s=o[r];if(!t(e[s],i[s]))return!1}return!0}return e!==e&&i!==i}},6964:function(t,e,i){"use strict";var n=i("cb2d");t.exports=function(t,e,i){for(var r in e)n(t,r,e[r],i);return t}},"69f3":function(t,e,i){"use strict";var n,r,o,s=i("cdce"),a=i("cfe9"),l=i("861d"),c=i("9112"),u=i("1a2d"),h=i("c6cd"),d=i("f772"),f=i("d012"),p="Object already initialized",m=a.TypeError,g=a.WeakMap,y=function(t){return o(t)?r(t):n(t,{})},_=function(t){return function(e){var i;if(!l(e)||(i=r(e)).type!==t)throw new m("Incompatible receiver, "+t+" required");return i}};if(s||h.state){var v=h.state||(h.state=new g);v.get=v.get,v.has=v.has,v.set=v.set,n=function(t,e){if(v.has(t))throw new m(p);return e.facade=t,v.set(t,e),e},r=function(t){return v.get(t)||{}},o=function(t){return v.has(t)}}else{var b=d("state");f[b]=!0,n=function(t,e){if(u(t,b))throw new m(p);return e.facade=t,c(t,b,e),e},r=function(t){return u(t,b)?t[b]:{}},o=function(t){return u(t,b)}}t.exports={set:n,get:r,has:o,enforce:y,getterFor:_}},"6a8f":function(t,e,i){"use strict";function n(){}i.d(e,"a",(function(){return c}));const r=n,o="undefined"!==typeof WeakRef?WeakRef:function(t){return{deref:()=>t}},s="undefined"!==typeof WeakMap?WeakMap:Map,a="undefined"!==typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:n,unregister:n}},l=10024;class c{constructor(t=1/0,e=r){this.max=t,this.dispose=e,this.map=new s,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const t=this.unfinalizedNodes.values();for(let e=0;e<l;e++){const e=t.next().value;if(!e)break;this.unfinalizedNodes.delete(e);const i=e.key;delete e.key,e.keyRef=new o(i),this.registry.register(i,e,e)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new a(this.deleteNode.bind(this))}has(t){return this.map.has(t)}get(t){const e=this.getNode(t);return e&&e.value}getNode(t){const e=this.map.get(t);if(e&&e!==this.newest){const{older:t,newer:i}=e;i&&(i.older=t),t&&(t.newer=i),e.older=this.newest,e.older.newer=e,e.newer=null,this.newest=e,e===this.oldest&&(this.oldest=i)}return e}set(t,e){let i=this.getNode(t);
7return i?i.value=e:(i={key:t,value:e,newer:null,older:this.newest},this.newest&&(this.newest.newer=i),this.newest=i,this.oldest=this.oldest||i,this.scheduleFinalization(i),this.map.set(t,i),this.size++,i.value)}clean(){while(this.oldest&&this.size>this.max)this.deleteNode(this.oldest)}deleteNode(t){t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.size--;const e=t.key||t.keyRef&&t.keyRef.deref();this.dispose(t.value,e),t.keyRef?this.registry.unregister(t):this.unfinalizedNodes.delete(t),e&&this.map.delete(e)}delete(t){const e=this.map.get(t);return!!e&&(this.deleteNode(e),!0)}scheduleFinalization(t){this.unfinalizedNodes.add(t),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}},"6aa0":function(t,e,i){(function(t,n){var r;/*! http://mths.be/base64 v0.1.0 by @mathias | MIT license */(function(o){var s=e,a=(t&&t.exports,"object"==typeof n&&n);a.global!==a&&a.window;var l=function(t){this.message=t};l.prototype=new Error,l.prototype.name="InvalidCharacterError";var c=function(t){throw new l(t)},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=/[\t\n\f\r ]/g,d=function(t){t=String(t).replace(h,"");var e=t.length;e%4==0&&(t=t.replace(/==?$/,""),e=t.length),(e%4==1||/[^+a-zA-Z0-9/]/.test(t))&&c("Invalid character: the string to be decoded is not correctly encoded.");var i,n,r=0,o="",s=-1;while(++s<e)n=u.indexOf(t.charAt(s)),i=r%4?64*i+n:n,r++%4&&(o+=String.fromCharCode(255&i>>(-2*r&6)));return o},f=function(t){t=String(t),/[^\0-\xFF]/.test(t)&&c("The string to be encoded contains characters outside of the Latin1 range.");var e,i,n,r,o=t.length%3,s="",a=-1,l=t.length-o;while(++a<l)e=t.charCodeAt(a)<<16,i=t.charCodeAt(++a)<<8,n=t.charCodeAt(++a),r=e+i+n,s+=u.charAt(r>>18&63)+u.charAt(r>>12&63)+u.charAt(r>>6&63)+u.charAt(63&r);return 2==o?(e=t.charCodeAt(a)<<8,i=t.charCodeAt(++a),r=e+i,s+=u.charAt(r>>10)+u.charAt(r>>4&63)+u.charAt(r<<2&63)+"="):1==o&&(r=t.charCodeAt(a),s+=u.charAt(r>>2)+u.charAt(r<<4&63)+"=="),s},p={encode:f,decode:d,version:"0.1.0"};r=function(){return p}.call(e,i,e,t),void 0===r||(t.exports=r)})()}).call(this,i("62e4")(t),i("c8ba"))},"6c57":function(t,e,i){"use strict";t.exports=u;var n,r,o,s,a,l=1e6,c={Point:0,MultiPoint:1,LineString:2,MultiLineString:3,Polygon:4,MultiPolygon:5,GeometryCollection:6};function u(t,e){n={},o=[],r=0,s=0,a=1,h(t),a=Math.min(a,l);for(var i=Math.ceil(Math.log(a)/Math.LN10),c=0;c<o.length;c++)e.writeStringField(1,o[c]);return 2!==s&&e.writeVarintField(2,s),6!==i&&e.writeVarintField(3,i),"FeatureCollection"===t.type?e.writeMessage(4,g,t):"Feature"===t.type?e.writeMessage(5,y,t):e.writeMessage(6,_,t),n=null,e.finish()}function h(t){var e,i;if("FeatureCollection"===t.type)for(e=0;e<t.features.length;e++)h(t.features[e]);else if("Feature"===t.type)for(i in null!==t.geometry&&h(t.geometry),t.properties)m(i);else if("Point"===t.type)p(t.coordinates);else if("MultiPoint"===t.type)f(t.coordinates);else if("GeometryCollection"===t.type)for(e=0;e<t.geometries.length;e++)h(t.geometries[e]);else if("LineString"===t.type)f(t.coordinates);else if("Polygon"===t.type||"MultiLineString"===t.type)d(t.coordinates);else if("MultiPolygon"===t.type)for(e=0;e<t.coordinates.length;e++)d(t.coordinates[e]);for(i in t)k(i,t.type)||m(i)}function d(t){for(var e=0;e<t.length;e++)f(t[e])}function f(t){for(var e=0;e<t.length;e++)p(t[e])}function p(t){s=Math.max(s,t.length);for(var e=0;e<t.length;e++)while(Math.round(t[e]*a)/a!==t[e]&&a<l)a*=10}function m(t){void 0===n[t]&&(o.push(t),n[t]=r++)}function g(t,e){for(var i=0;i<t.features.length;i++)e.writeMessage(1,y,t.features[i]);v(t,e,!0)}function y(t,e){null!==t.geometry&&e.writeMessage(1,_,t.geometry),void 0!==t.id&&("number"===typeof t.id&&t.id%1===0?e.writeSVarintField(12,t.id):e.writeStringField(11,t.id)),t.properties&&v(t.properties,e),v(t,e,!0)}function _(t,e){e.writeVarintField(1,c[t.type]);var i=t.coordinates;if("Point"===t.type)x(i,e);else if("MultiPoint"===t.type)w(i,e,!0);else if("LineString"===t.type)w(i,e);else if("MultiLineString"===t.type)E(i,e);else if("Polygon"===t.type)E(i,e,!0);else if("MultiPolygon"===t.type)T(i,e);else if("GeometryCollection"===t.type)for(var n=0;n<t.geometries.length;n++)e.writeMessage(4,_,t.geometries[n]);v(t,e,!0)}function v(t,e,i){var r=[],o=0;for(var s in t)i&&k(s,t.type)||(e.writeMessage(13,b,t[s]),r.push(n[s]),r.push(o++));e.writePackedVarint(i?15:14,r)}function b(t,e){if(null!==t){var i=typeof t;"string"===i?e.writeStringField(1,t):"boolean"===i?e.writeBooleanField(5,t):"object"===i?e.writeStringField(6,JSON.stringify(t)):"number"===i&&(t%1!==0?e.writeDoubleField(2,t):t>=0?e.writeVarintField(3,t):e.writeVarintField(4,-t))}}function x(t,e){for(var i=[],n=0;n<s;n++)i.push(Math.round(t[n]*a));e.writePackedSVarint(3,i)}function w(t,e){var i=[];S(i,t),e.writePackedSVarint(3,i)}function E(t,e,i){var n,r=t.length;if(1!==r){var o=[];for(n=0;n<r;n++)o.push(t[n].length-(i?1:0));e.writePackedVarint(2,o)}var s=[];for(n=0;n<r;n++)S(s,t[n],i);e.writePackedSVarint(3,s)}function T(t,e){var i,n,r=t.length;if(1!==r||1!==t[0].length){var o=[r];for(i=0;i<r;i++)for(o.push(t[i].length),n=0;n<t[i].length;n++)o.push(t[i][n].length-1);e.writePackedVarint(2,o)}var s=[];for(i=0;i<r;i++)for(n=0;n<t[i].length;n++)S(s,t[i][n],!0);e.writePackedSVarint(3,s)}function S(t,e,i){var n,r,o=e.length-(i?1:0),l=new Array(s);for(r=0;r<s;r++)l[r]=0;for(n=0;n<o;n++)for(r=0;r<s;
7r++){var c=Math.round(e[n][r]*a)-l[r];t.push(c),l[r]+=c}}function k(t,e){if("type"===t)return!0;if("FeatureCollection"===e){if("features"===t)return!0}else if("Feature"===e){if("id"===t||"properties"===t||"geometry"===t)return!0}else if("GeometryCollection"===e){if("geometries"===t)return!0}else if("coordinates"===t)return!0;return!1}},"6ca7":function(t,e,i){},"6da3":function(t,e,i){"use strict";function n(t,e){var i=function(t,i){return-1!==e.indexOf(t)&&void 0!==i};return"function"===typeof e&&(i=e),Object.keys(t).filter((function(e){return i(e,t[e])})).reduce((function(e,i){return e[i]=t[i],e}),{})}t.exports=n},"6ece":function(t,e,i){},"6f19":function(t,e,i){"use strict";var n=i("9112"),r=i("0d26"),o=i("b980"),s=Error.captureStackTrace;t.exports=function(t,e,i,a){o&&(s?s(t,e):n(t,"stack",r(i,a)))}},7119:function(t,e,i){"use strict";var n=i("031b");function r(t,e){this.request=t,this.headers=e.headers,this.rawBody=e.body,this.statusCode=e.statusCode;try{this.body=JSON.parse(e.body||"{}")}catch(i){this.body=e.body}this.links=n(this.headers.link)}r.prototype.hasNextPage=function(){return!!this.links.next},r.prototype.nextPage=function(){return this.hasNextPage()?this.request._extend({path:this.links.next.url}):null},t.exports=r},"713a":function(t,e,i){"use strict";var n=i("8212");e["a"]=n["a"]},7156:function(t,e,i){"use strict";var n=i("1626"),r=i("861d"),o=i("d2bb");t.exports=function(t,e,i){var s,a;return o&&n(s=e.constructor)&&s!==i&&r(a=s.prototype)&&a!==i.prototype&&o(t,a),t}},7234:function(t,e,i){"use strict";t.exports=function(t){return null===t||void 0===t}},7282:function(t,e,i){"use strict";var n=i("e330"),r=i("59ed");t.exports=function(t,e,i){try{return n(r(Object.getOwnPropertyDescriptor(t,e)[i]))}catch(o){}}},"72bc":function(t,e,i){"use strict";function n(t){var e=t.indexOf(":"),i=t.substring(0,e).trim().toLowerCase(),n=t.substring(e+1).trim();return{name:i,value:n}}function r(t){var e={};return t?(t.trim().split(/[\r|\n]+/).forEach((function(t){var i=n(t);e[i.name]=i.value})),e):e}t.exports=r},"72c3":function(t,e,i){"use strict";var n=i("23e7"),r=i("e9bc"),o=i("dad2");n({target:"Set",proto:!0,real:!0,forced:!o("union")},{union:r})},7418:function(t,e,i){"use strict";e.f=Object.getOwnPropertySymbols},7435:function(t,e,i){},7496:function(t,e,i){"use strict";i("d9e2"),i("df86");var n=i("7560"),r=i("58df"),o=i("80d2");e["a"]=Object(r["a"])(n["a"]).extend({name:"v-app",props:{dark:{type:Boolean,default:void 0},id:{type:String,default:"app"},light:{type:Boolean,default:void 0}},computed:{isDark(){return this.$vuetify.theme.dark}},beforeCreate(){if(!this.$vuetify||this.$vuetify===this.$root)throw new Error("Vuetify is not properly initialized, see https://v2.vuetifyjs.com/getting-started/quick-start#bootstrapping-the-vuetify-object")},render(t){const e=t("div",{staticClass:"v-application--wrap"},Object(o["m"])(this));return t("div",{staticClass:"v-application",class:{"v-application--is-rtl":this.$vuetify.rtl,"v-application--is-ltr":!this.$vuetify.rtl,...this.themeClasses},attrs:{"data-app":!0},domProps:{id:this.id}},[e])}})},7560:function(t,e,i){"use strict";i.d(e,"b",(function(){return o}));var n=i("2b0e");const r=n["a"].extend().extend({name:"themeable",provide(){return{theme:this.themeableProvide}},inject:{theme:{default:{isDark:!1}}},props:{dark:{type:Boolean,default:null},light:{type:Boolean,default:null}},data(){return{themeableProvide:{isDark:!1}}},computed:{appIsDark(){return this.$vuetify.theme.dark||!1},isDark(){return!0===this.dark||!0!==this.light&&this.theme.isDark},themeClasses(){return{"theme--dark":this.isDark,"theme--light":!this.isDark}},rootIsDark(){return!0===this.dark||!0!==this.light&&this.appIsDark},rootThemeClasses(){return{"theme--dark":this.rootIsDark,"theme--light":!this.rootIsDark}}},watch:{isDark:{handler(t,e){t!==e&&(this.themeableProvide.isDark=this.isDark)},immediate:!0}}});function o(t){const e={...t.props,...t.injections},i=r.options.computed.isDark.call(e);return r.options.computed.themeClasses.call({isDark:i})}e["a"]=r},"75d2":function(t,e,i){"use strict";var n=i("d30b"),r=i("4703");function o(t,e,i){if(void 0===i&&(i={}),!0===i.final)return s(t,e);var o=Object(r["a"])(t),a=Object(r["a"])(e),l=Object(n["a"])(o[0]),c=Object(n["a"])(a[0]),u=Object(n["a"])(o[1]),h=Object(n["a"])(a[1]),d=Math.sin(c-l)*Math.cos(h),f=Math.cos(u)*Math.sin(h)-Math.sin(u)*Math.cos(h)*Math.cos(c-l);return Object(n["k"])(Math.atan2(d,f))}function s(t,e){var i=o(e,t);return i=(i+180)%360,i}var a=i("4227");function l(t,e,i,o){void 0===o&&(o={});var s=Object(r["a"])(t),a=Object(n["a"])(s[0]),l=Object(n["a"])(s[1]),c=Object(n["a"])(i),u=Object(n["f"])(e,o.units),h=Math.asin(Math.sin(l)*Math.cos(u)+Math.cos(l)*Math.sin(u)*Math.cos(c)),d=a+Math.atan2(Math.sin(c)*Math.sin(u)*Math.cos(l),Math.cos(u)-Math.sin(l)*Math.sin(h)),f=Object(n["k"])(d),p=Object(n["k"])(h);return Object(n["i"])([f,p],o.properties)}function c(t,e,i,r){if(r=r||{}
7,!Object(n["e"])(r))throw new Error("options is invalid");var s,c=[];if("Feature"===t.type)s=t.geometry.coordinates;else{if("LineString"!==t.type)throw new Error("input must be a LineString Feature or Geometry");s=t.coordinates}for(var u,h,d,f=s.length,p=0,m=0;m<s.length;m++){if(e>=p&&m===s.length-1)break;if(p>e&&0===c.length){if(u=e-p,!u)return c.push(s[m]),Object(n["g"])(c);h=o(s[m],s[m-1])-180,d=l(s[m],u,h,r),c.push(d.geometry.coordinates)}if(p>=i)return u=i-p,u?(h=o(s[m],s[m-1])-180,d=l(s[m],u,h,r),c.push(d.geometry.coordinates),Object(n["g"])(c)):(c.push(s[m]),Object(n["g"])(c));if(p>=e&&c.push(s[m]),m===s.length-1)return Object(n["g"])(c);p+=Object(a["a"])(s[m],s[m+1],r)}if(p<e&&s.length===f)throw new Error("Start position is beyond line");var g=s[s.length-1];return Object(n["g"])([g,g])}e["a"]=c},"774a":function(t,e,i){"use strict";function n(t){return t.map(encodeURIComponent).join(",")}function r(t){return Array.isArray(t)?n(t):encodeURIComponent(String(t))}function o(t,e,i){if(!1===i||null===i)return t;var n=/\?/.test(t)?"&":"?",o=encodeURIComponent(e);return void 0!==i&&""!==i&&!0!==i&&(o+="="+r(i)),""+t+n+o}function s(t,e){if(!e)return t;var i=t;return Object.keys(e).forEach((function(t){var n=e[t];void 0!==n&&(Array.isArray(n)&&(n=n.filter((function(t){return null!==t&&void 0!==t})).join(",")),i=o(i,t,n))})),i}function a(t,e){if(!e)return t;if("http"===t.slice(0,4))return t;var i="/"===t[0]?"":"/";return""+e.replace(/\/$/,"")+i+t}function l(t,e){return e?t.replace(/\/:([a-zA-Z0-9]+)/g,(function(t,i){var n=e[i];if(void 0===n)throw new Error("Unspecified route parameter "+i);var o=r(n);return"/"+o})):t}t.exports={appendQueryObject:s,appendQueryParam:o,prependOrigin:a,interpolateRouteParams:l}},7839:function(t,e,i){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7854:function(t,e,i){"use strict";var n=i("4a69");function r(t){return n(t,(function(t,e){return"boolean"===typeof e?JSON.stringify(e):e}))}t.exports=r},"78b9":function(t,e,i){},7915:function(t,e,i){"use strict";t.exports=r;var n=i("9152");function r(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}r.Varint=0,r.Fixed64=1,r.Bytes=2,r.Fixed32=5;var o=4294967296,s=1/o,a=12,l="undefined"===typeof TextDecoder?null:new TextDecoder("utf-8");function c(t,e,i){var n,r,o=i.buf;if(r=o[i.pos++],n=(112&r)>>4,r<128)return h(t,n,e);if(r=o[i.pos++],n|=(127&r)<<3,r<128)return h(t,n,e);if(r=o[i.pos++],n|=(127&r)<<10,r<128)return h(t,n,e);if(r=o[i.pos++],n|=(127&r)<<17,r<128)return h(t,n,e);if(r=o[i.pos++],n|=(127&r)<<24,r<128)return h(t,n,e);if(r=o[i.pos++],n|=(1&r)<<31,r<128)return h(t,n,e);throw new Error("Expected varint not more than 10 bytes")}function u(t){return t.type===r.Bytes?t.readVarint()+t.pos:t.pos+1}function h(t,e,i){return i?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function d(t,e){var i,n;if(t>=0?(i=t%4294967296|0,n=t/4294967296|0):(i=~(-t%4294967296),n=~(-t/4294967296),4294967295^i?i=i+1|0:(i=0,n=n+1|0)),t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),f(i,n,e),p(n,e)}function f(t,e,i){i.buf[i.pos++]=127&t|128,t>>>=7,i.buf[i.pos++]=127&t|128,t>>>=7,i.buf[i.pos++]=127&t|128,t>>>=7,i.buf[i.pos++]=127&t|128,t>>>=7,i.buf[i.pos]=127&t}function p(t,e){var i=(7&t)<<4;e.buf[e.pos++]|=i|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t)))))}function m(t,e,i){var n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));i.realloc(n);for(var r=i.pos-1;r>=t;r--)i.buf[r+n]=i.buf[r]}function g(t,e){for(var i=0;i<t.length;i++)e.writeVarint(t[i])}function y(t,e){for(var i=0;i<t.length;i++)e.writeSVarint(t[i])}function _(t,e){for(var i=0;i<t.length;i++)e.writeFloat(t[i])}function v(t,e){for(var i=0;i<t.length;i++)e.writeDouble(t[i])}function b(t,e){for(var i=0;i<t.length;i++)e.writeBoolean(t[i])}function x(t,e){for(var i=0;i<t.length;i++)e.writeFixed32(t[i])}function w(t,e){for(var i=0;i<t.length;i++)e.writeSFixed32(t[i])}function E(t,e){for(var i=0;i<t.length;
vendor: 8,205 bytes, line 7
7i++)e.writeFixed64(t[i])}function T(t,e){for(var i=0;i<t.length;i++)e.writeSFixed64(t[i])}function S(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+16777216*t[e+3]}function k(t,e,i){t[i]=e,t[i+1]=e>>>8,t[i+2]=e>>>16,t[i+3]=e>>>24}function O(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}function A(t,e,i){var n="",r=e;while(r<i){var o,s,a,l=t[r],c=null,u=l>239?4:l>223?3:l>191?2:1;if(r+u>i)break;1===u?l<128&&(c=l):2===u?(o=t[r+1],128===(192&o)&&(c=(31&l)<<6|63&o,c<=127&&(c=null))):3===u?(o=t[r+1],s=t[r+2],128===(192&o)&&128===(192&s)&&(c=(15&l)<<12|(63&o)<<6|63&s,(c<=2047||c>=55296&&c<=57343)&&(c=null))):4===u&&(o=t[r+1],s=t[r+2],a=t[r+3],128===(192&o)&&128===(192&s)&&128===(192&a)&&(c=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a,(c<=65535||c>=1114112)&&(c=null))),null===c?(c=65533,u=1):c>65535&&(c-=65536,n+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),n+=String.fromCharCode(c),r+=u}return n}function C(t,e,i){return l.decode(t.subarray(e,i))}function I(t,e,i){for(var n,r,o=0;o<e.length;o++){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!r){n>56319||o+1===e.length?(t[i++]=239,t[i++]=191,t[i++]=189):r=n;continue}if(n<56320){t[i++]=239,t[i++]=191,t[i++]=189,r=n;continue}n=r-55296<<10|n-56320|65536,r=null}else r&&(t[i++]=239,t[i++]=191,t[i++]=189,r=null);n<128?t[i++]=n:(n<2048?t[i++]=n>>6|192:(n<65536?t[i++]=n>>12|224:(t[i++]=n>>18|240,t[i++]=n>>12&63|128),t[i++]=n>>6&63|128),t[i++]=63&n|128)}return i}r.prototype={destroy:function(){this.buf=null},readFields:function(t,e,i){i=i||this.length;while(this.pos<i){var n=this.readVarint(),r=n>>3,o=this.pos;this.type=7&n,t(r,e,this),this.pos===o&&this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=S(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=O(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=S(this.buf,this.pos)+S(this.buf,this.pos+4)*o;return this.pos+=8,t},readSFixed64:function(){var t=S(this.buf,this.pos)+O(this.buf,this.pos+4)*o;return this.pos+=8,t},readFloat:function(){var t=n.read(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=n.read(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,i,n=this.buf;return i=n[this.pos++],e=127&i,i<128?e:(i=n[this.pos++],e|=(127&i)<<7,i<128?e:(i=n[this.pos++],e|=(127&i)<<14,i<128?e:(i=n[this.pos++],e|=(127&i)<<21,i<128?e:(i=n[this.pos],e|=(15&i)<<28,c(e,t,this)))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2===1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=a&&l?C(this.buf,e,t):A(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==r.Bytes)return t.push(this.readVarint(e));var i=u(this);t=t||[];while(this.pos<i)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==r.Bytes)return t.push(this.readSVarint());var e=u(this);t=t||[];while(this.pos<e)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==r.Bytes)return t.push(this.readBoolean());var e=u(this);t=t||[];while(this.pos<e)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==r.Bytes)return t.push(this.readFloat());var e=u(this);t=t||[];while(this.pos<e)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==r.Bytes)return t.push(this.readDouble());var e=u(this);t=t||[];while(this.pos<e)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==r.Bytes)return t.push(this.readFixed32());var e=u(this);t=t||[];while(this.pos<e)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==r.Bytes)return t.push(this.readSFixed32());var e=u(this);t=t||[];while(this.pos<e)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==r.Bytes)return t.push(this.readFixed64());var e=u(this);t=t||[];while(this.pos<e)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==r.Bytes)return t.push(this.readSFixed64());var e=u(this);t=t||[];while(this.pos<e)t.push(this.readSFixed64());return t},skip:function(t){var e=7&t;if(e===r.Varint)while(this.buf[this.pos++]>127);else if(e===r.Bytes)this.pos=this.readVarint()+this.pos;else if(e===r.Fixed32)this.pos+=4;else{if(e!==r.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){var e=this.length||16;while(e<this.pos+t)e*=2;if(e!==this.length){var i=new Uint8Array(e);i.set(this.buf),this.buf=i,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),k(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),k(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),k(this.buf,-1&t,this.pos),k(this.buf,Math.floor(t*s),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),k(this.buf,-1&t,this.pos),k(this.buf,Math.floor(t*s),this.pos+4),this.pos+=8},writeVarint:function(t){t=+t||0,t>268435455||t<0?d(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=I(this.buf,t,this.pos);var i=this.pos-e;i>=128&&m(e,i,this),this.pos=e-1,this.writeVarint(i),this.pos+=i},writeFloat:function(t){this.realloc(4),n.write(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),n.write(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var i=0;i<e;i++)this.buf[this.pos++]=t[i]},writeRawMessage:function(t,e){this.pos++;var i=this.pos;t(e,this);var n=this.pos-i;n>=128&&m(i,n,this),this.pos=i-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,i){this.writeTag(t,r.Bytes),this.writeRawMessage(e,i)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,g,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,y,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,b,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,_,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,v,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,x,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,w,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,E,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,T,e)},writeBytesField:function(t,e){this.writeTag(t,r.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,r.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,r.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,r.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,r.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,r.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,r.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,r.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,r.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,r.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}}},"79a4":function(t,e,i){"use strict";var n=i("23e7"),r=i("d039"),o=i("953b"),s=i("dad2"),a=!s("intersection",(function(t){return 2===t.size&&t.has(1)&&t.has(2)}))||r((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}));n({target:"Set",proto:!0,real:!0,forced:a},{intersection:o})}
7,"7b0b":function(t,e,i){"use strict";var n=i("1d80"),r=Object;t.exports=function(t){return r(n(t))}},"7bc6":function(t,e,i){"use strict";i.d(e,"d",(function(){return r})),i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return a}));i("d9e2"),i("e9f5"),i("ab43");var n=i("d9bd");i("80d2"),i("8da5");function r(t){return!!t&&!!t.match(/^(#|var\(--|(rgb|hsl)a?\()/)}function o(t){let e;if("number"===typeof t)e=t;else{if("string"!==typeof t)throw new TypeError(`Colors can only be numbers or strings, recieved ${null==t?t:t.constructor.name} instead`);{let i="#"===t[0]?t.substring(1):t;3===i.length&&(i=i.split("").map(t=>t+t).join("")),6!==i.length&&Object(n["c"])(`'${t}' is not a valid rgb color`),e=parseInt(i,16)}}return e<0?(Object(n["c"])(`Colors cannot be negative: '${t}'`),e=0):(e>16777215||isNaN(e))&&(Object(n["c"])(`'${t}' is not a valid rgb color`),e=16777215),e}function s(t){let e=t.toString(16);return e.length<6&&(e="0".repeat(6-e.length)+e),"#"+e}function a(t){return s(o(t))}},"7c73":function(t,e,i){"use strict";var n,r=i("825a"),o=i("37e8"),s=i("7839"),a=i("d012"),l=i("1be4"),c=i("cc12"),u=i("f772"),h=">",d="<",f="prototype",p="script",m=u("IE_PROTO"),g=function(){},y=function(t){return d+p+h+t+d+"/"+p+h},_=function(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){var t,e=c("iframe"),i="java"+p+":";return e.style.display="none",l.appendChild(e),e.src=String(i),t=e.contentWindow.document,t.open(),t.write(y("document.F=Object")),t.close(),t.F},b=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}b="undefined"!=typeof document?document.domain&&n?_(n):v():_(n);var t=s.length;while(t--)delete b[f][s[t]];return b()};a[m]=!0,t.exports=Object.create||function(t,e){var i;return null!==t?(g[f]=r(t),i=new g,g[f]=null,i[m]=t):i=b(),void 0===e?i:o.f(i,e)}},"7d54":function(t,e,i){"use strict";var n=i("23e7"),r=i("2266"),o=i("59ed"),s=i("825a"),a=i("46c4");n({target:"Iterator",proto:!0,real:!0},{forEach:function(t){s(this),o(t);var e=a(this),i=0;r(e,(function(e){t(e,i++)}),{IS_RECORD:!0})}})},"7e2b":function(t,e,i){"use strict";var n=i("2b0e");function r(t){return function(e,i){for(const n in i)Object.prototype.hasOwnProperty.call(e,n)||this.$delete(this.$data[t],n);for(const n in e)this.$set(this.$data[t],n,e[n])}}e["a"]=n["a"].extend({data:()=>({attrs$:{},listeners$:{}}),created(){this.$watch("$attrs",r("attrs$"),{immediate:!0}),this.$watch("$listeners",r("listeners$"),{immediate:!0})}})},"7e58":function(t,e,i){},"7f65":function(t,e,i){"use strict";var n=i("59ed"),r=i("825a"),o=i("c65b"),s=i("5926"),a=i("46c4"),l="Invalid size",c=RangeError,u=TypeError,h=Math.max,d=function(t,e){this.set=t,this.size=h(e,0),this.has=n(t.has),this.keys=n(t.keys)};d.prototype={getIterator:function(){return a(r(o(this.keys,this.set)))},includes:function(t){return o(this.has,this.set,t)}},t.exports=function(t){r(t);var e=+t.size;if(e!==e)throw new u(l);var i=s(e);if(i<0)throw new c(l);return new d(t,i)}},"80d2":function(t,e,i){"use strict";i.d(e,"h",(function(){return r})),i.d(e,"a",(function(){return o})),i.d(e,"b",(function(){return a})),i.d(e,"k",(function(){return l})),i.d(e,"i",(function(){return c})),i.d(e,"l",(function(){return u})),i.d(e,"o",(function(){return h})),i.d(e,"j",(function(){return d})),i.d(e,"g",(function(){return f})),i.d(e,"p",(function(){return p})),i.d(e,"q",(function(){return g})),i.d(e,"u",(function(){return y})),i.d(e,"r",(function(){return _})),i.d(e,"c",(function(){return b})),i.d(e,"v",(function(){return x})),i.d(e,"w",(function(){return w})),i.d(e,"n",(function(){return E})),i.d(e,"m",(function(){return T})),i.d(e,"e",(function(){return S})),i.d(e,"t",(function(){return k})),i.d(e,"d",(function(){return O})),i.d(e,"s",(function(){return A})),i.d(e,"f",(function(){return C}));i("14d9"),i("13d5"),i("e9f5"),i("d866"),i("910d"),i("9485"),i("a732");var n=i("2b0e");function r(t,e="div",i){return n["a"].extend({name:i||t.replace(/__/g,"-"),functional:!0,props:{tag:{type:String,default:e}},render(e,{data:i,props:n,children:r}){return i.staticClass=`${t} ${i.staticClass||""}`.trim(),e(n.tag,i,r)}})}function o(t,e,i,n=!1){const r=o=>{i(o),t.removeEventListener(e,r,n)};t.addEventListener(e,r,n)}let s=!1;try{if("undefined"!==typeof window){const t=Object.defineProperty({},"passive",{get:()=>{s=!0}});window.addEventListener("testListener",t,t),window.removeEventListener("testListener",t,t)}}catch(I){console.warn(I)}function a(t,e,i,n){t.addEventListener(e,i,!!s&&n)}function l(t,e,i){const n=e.length-1;if(n<0)return void 0===t?i:t;for(let r=0;r<n;r++){if(null==t)return i;t=t[e[r]]}return null==t||void 0===t[e[n]]?i:t[e[n]]}function c(t,e){if(t===e)return!0;
7if(t instanceof Date&&e instanceof Date&&t.getTime()!==e.getTime())return!1;if(t!==Object(t)||e!==Object(e))return!1;const i=Object.keys(t);return i.length===Object.keys(e).length&&i.every(i=>c(t[i],e[i]))}function u(t,e,i){return null!=t&&e&&"string"===typeof e?void 0!==t[e]?t[e]:(e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,""),l(t,e.split("."),i)):i}function h(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return 0;const e=+window.getComputedStyle(t).getPropertyValue("z-index");return e||h(t.parentNode)}function d(t,e){const i={};for(let n=0;n<e.length;n++){const r=e[n];"undefined"!==typeof t[r]&&(i[r]=t[r])}return i}function f(t,e="px"){return null==t||""===t?void 0:isNaN(+t)?String(t):`${Number(t)}${e}`}function p(t){return(t||"").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function m(t){return null!==t&&"object"===typeof t}const g=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16});function y(t,e){const i=t.$vuetify.icons.component;if(e.startsWith("$")){const i="$vuetify.icons.values."+e.split("$").pop().split(".").pop(),n=u(t,i,e);if("string"!==typeof n)return n;e=n}return null==i?e:{component:i,props:{icon:e}}}function _(t){return Object.keys(t)}const v=/-(\w)/g,b=t=>t.replace(v,(t,e)=>e?e.toUpperCase():"");function x(t){return t.charAt(0).toUpperCase()+t.slice(1)}function w(t){return null!=t?Array.isArray(t)?t:[t]:[]}function E(t,e,i){return t.$slots.hasOwnProperty(e)&&t.$scopedSlots.hasOwnProperty(e)&&t.$scopedSlots[e].name?i?"v-slot":"scoped":t.$slots.hasOwnProperty(e)?"normal":t.$scopedSlots.hasOwnProperty(e)?"scoped":void 0}function T(t,e="default",i,n=!1){const r=p(e);return t.$scopedSlots.hasOwnProperty(e)?t.$scopedSlots[e](i instanceof Function?i():i):t.$scopedSlots.hasOwnProperty(r)?t.$scopedSlots[r](i instanceof Function?i():i):!t.$slots.hasOwnProperty(e)||i&&!n?!t.$slots.hasOwnProperty(r)||i&&!n?void 0:t.$slots[r]:t.$slots[e]}function S(t,e=0,i=1){return Math.max(e,Math.min(i,t))}function k(t,e,i="0"){return t+i.repeat(Math.max(0,e-t.length))}function O(t,e=1){const i=[];let n=0;while(n<t.length)i.push(t.substr(n,e)),n+=e;return i}function A(t={},e={}){for(const i in e){const n=t[i],r=e[i];m(n)&&m(r)?t[i]=A(n,r):t[i]=r}return t}function C(t){if(t.composedPath)return t.composedPath();const e=[];let i=t.target;while(i){if(e.push(i),"HTML"===i.tagName)return e.push(document),e.push(window),e;i=i.parentElement}return e}},"81c9":function(t,e,i){"use strict";i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return r}));var n=Array.isArray;function r(t){return Array.isArray(t)&&t.length>0}},8212:function(t,e,i){"use strict";i("3408");var n=i("a9ad"),r=i("24b2"),o=i("a236"),s=i("80d2"),a=i("58df");e["a"]=Object(a["a"])(n["a"],r["a"],o["a"]).extend({name:"v-avatar",props:{left:Boolean,right:Boolean,size:{type:[Number,String],default:48}},computed:{classes(){return{"v-avatar--left":this.left,"v-avatar--right":this.right,...this.roundedClasse
7s}},styles(){return{height:Object(s["g"])(this.size),minWidth:Object(s["g"])(this.size),width:Object(s["g"])(this.size),...this.measurableStyles}}},render(t){const e={staticClass:"v-avatar",class:this.classes,style:this.styles,on:this.$listeners};return t("div",this.setBackgroundColor(this.color,e),Object(s["m"])(this))}})},"825a":function(t,e,i){"use strict";var n=i("861d"),r=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(r(t)+" is not an object")}},8336:function(t,e,i){"use strict";i("86cc");var n=i("10d2"),r=i("22da"),o=i("4e82"),s=i("f2e7"),a=i("c995"),l=i("fe6c"),c=i("1c87"),u=i("af2b"),h=i("58df"),d=i("d9bd"),f=i("80d2");const p=Object(h["a"])(n["a"],c["a"],l["a"],u["a"],Object(o["a"])("btnToggle"),Object(s["b"])("inputValue"));e["a"]=p.extend().extend({name:"v-btn",props:{activeClass:{type:String,default(){return this.btnToggle?this.btnToggle.activeClass:""}},block:Boolean,depressed:Boolean,fab:Boolean,icon:Boolean,loading:Boolean,outlined:Boolean,plain:Boolean,retainFocusOnClick:Boolean,rounded:Boolean,tag:{type:String,default:"button"},text:Boolean,tile:Boolean,type:{type:String,default:"button"},value:null},data:()=>({proxyClass:"v-btn--active"}),computed:{classes(){return{"v-btn":!0,...c["a"].options.computed.classes.call(this),"v-btn--absolute":this.absolute,"v-btn--block":this.block,"v-btn--bottom":this.bottom,"v-btn--disabled":this.disabled,"v-btn--is-elevated":this.isElevated,"v-btn--fab":this.fab,"v-btn--fixed":this.fixed,"v-btn--has-bg":this.hasBg,"v-btn--icon":this.icon,"v-btn--left":this.left,"v-btn--loading":this.loading,"v-btn--outlined":this.outlined,"v-btn--plain":this.plain,"v-btn--right":this.right,"v-btn--round":this.isRound,"v-btn--rounded":this.rounded,"v-btn--router":this.to,"v-btn--text":this.text,"v-btn--tile":this.tile,"v-btn--top":this.top,...this.themeClasses,...this.groupClasses,...this.elevationClasses,...this.sizeableClasses}},computedElevation(){if(!this.disabled)return a["a"].options.computed.computedElevation.call(this)},computedRipple(){var t;const e=!this.icon&&!this.fab||{circle:!0};return!this.disabled&&(null!==(t=this.ripple)&&void 0!==t?t:e)},hasBg(){return!this.text&&!this.plain&&!this.outlined&&!this.icon},isElevated(){return Boolean(!this.icon&&!this.text&&!this.outlined&&!this.depressed&&!this.disabled&&!this.plain&&(null==this.elevation||Number(this.elevation)>0))},isRound(){return Boolean(this.icon||this.fab)},styles(){return{...this.measurableStyles}}},created(){const t=[["flat","text"],["outline","outlined"],["round","rounded"]];t.forEach(([t,e])=>{this.$attrs.hasOwnProperty(t)&&Object(d["a"])(t,e,this)})},methods:{click(t){!this.retainFocusOnClick&&!this.fab&&t.detail&&this.$el.blur(),this.$emit("click",t),this.btnToggle&&this.toggle()},genContent(){return this.$createElement("span",{staticClass:"v-btn__content"},Object(f["m"])(this))},genLoader(){return this.$createElement("span",{class:"v-btn__loader"},Object(f["m"])(this,"loader")||[this.$createElement(r["a"],{props:{indeterminate:!0,size:23,width:2}})])}},render(t){const e=[this.genContent(),this.loading&&this.genLoader()],{tag:i,data:n}=this.generateRouteLink(),r=this.hasBg?this.setBackgroundColor:this.setTextColor;
7return"button"===i&&(n.attrs.type=this.type,n.attrs.disabled=this.disabled),n.attrs.value=["string","number"].includes(typeof this.value)?this.value:JSON.stringify(this.value),t(i,this.disabled?n:r(this.color,n),e)}})},"83ab":function(t,e,i){"use strict";var n=i("d039");t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(t,e,i){"use strict";var n=i("cb27"),r=i("384f"),o=n.Set,s=n.add;t.exports=function(t){var e=new o;return r(t,(function(t){s(e,t)})),e}},8418:function(t,e,i){"use strict";var n=i("83ab"),r=i("9bf2"),o=i("5c6c");t.exports=function(t,e,i){n?r.f(t,e,o(0,i)):t[e]=i}},"841e":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"a",(function(){return l}));var n=i("6a8f"),r=i("f88b"),o=new WeakSet;function s(t){t.size<=(t.max||-1)||o.has(t)||(o.add(t),setTimeout((function(){t.clean(),o.delete(t)}),100))}var a=function(t,e){var i=new n["a"](t,e);return i.set=function(t,e){var i=n["a"].prototype.set.call(this,t,e);return s(this),i},i},l=function(t,e){var i=new r["a"](t,e);return i.set=function(t,e){var i=r["a"].prototype.set.call(this,t,e);return s(this),i},i}},"84a2":function(t,e,i){(function(e){var i="Expected a function",n=NaN,r="[object Symbol]",o=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,u="object"==typeof e&&e&&e.Object===Object&&e,h="object"==typeof self&&self&&self.Object===Object&&self,d=u||h||Function("return this")(),f=Object.prototype,p=f.toString,m=Math.max,g=Math.min,y=function(){return d.Date.now()};function _(t,e,n){var r,o,s,a,l,c,u=0,h=!1,d=!1,f=!0;if("function"!=typeof t)throw new TypeError(i);function p(e){var i=r,n=o;return r=o=void 0,u=e,a=t.apply(n,i),a}function _(t){return u=t,l=setTimeout(w,e),h?p(t):a}function v(t){var i=t-c,n=t-u,r=e-i;return d?g(r,s-n):r}function x(t){var i=t-c,n=t-u;return void 0===c||i>=e||i<0||d&&n>=s}function w(){var t=y();if(x(t))return T(t);l=setTimeout(w,v(t))}function T(t){return l=void 0,f&&r?p(t):(r=o=void 0,a)}function S(){void 0!==l&&clearTimeout(l),u=0,r=c=o=l=void 0}function k(){return void 0===l?a:T(y())}function O(){var t=y(),i=x(t);if(r=arguments,o=this,c=t,i){if(void 0===l)return _(c);if(d)return l=setTimeout(w,e),p(c)}return void 0===l&&(l=setTimeout(w,e)),a}return e=E(e)||0,b(n)&&(h=!!n.leading,d="maxWait"in n,s=d?m(E(n.maxWait)||0,e):s,f="trailing"in n?!!n.trailing:f),O.cancel=S,O.flush=k,O}function v(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new TypeError(i);return b(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),_(t,e,{leading:r,maxWait:e,trailing:o})}function b(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function x(t){return!!t&&"object"==typeof t}function w(t){return"symbol"==typeof t||x(t)&&p.call(t)==r}function E(t){if("number"==typeof t)return t;if(w(t))return n;if(b(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=b(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var i=a.test(t);return i||l.test(t)?c(t.slice(2),i?2:8):s.test(t)?n:+t}t.exports=v}).call(this,i("c8ba"))},8547:function(t,e,i){"use strict";var n=i("2b0e"),r=i("80d2");e["a"]=n["a"].extend({name:"comparable",props:{valueComparator:{type:Function,default:r["i"]}}})},8558:function(t,e,i){"use strict";var n=i("cfe9"),r=i("b5db"),o=i("c6b6"),s=function(t){return r.slice(0,t.length)===t};t.exports=function(){return s("Bun/")?"BUN":s("Cloudflare-Workers")?"CLOUDFLARE":s("Deno/")?"DENO":s("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"}()},"861d":function(t,e,i){"use strict";var n=i("1626");t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},8654:function(t,e,i){"use strict";i("14d9"),i("4ff9");var n=i("c37a"),r=(i("e9b1"),i("7560")),o=i("58df"),s=Object(o["a"])(r["a"]).extend({name:"v-counter",functional:!0,props:{value:{type:[Number,String],default:""},max:[Number,String]},render(t,e){const{props:i}=e,n=parseInt(i.max,10),o=parseInt(i.value,10),s=n?`${o} / ${n}`:String(i.value),a=n&&o>n;return t("div",{staticClass:"v-counter",class:{"error--text":a,...Object(r["b"])(e)}},s)}}),a=s,l=i("ba87"),c=i("90a2"),u=i("d9bd"),h=i("2b0e");function d(t){return h["a"].extend({name:"intersectable",data:()=>({isIntersecting:!1}),mounted(){c["a"].inserted(this.$el,{name:"intersect",value:this.onObserve},this.$vnode)},destroyed(){c["a"].unbind(this.$el,{name:"intersect",value:this.onObserve},this.$vnode)},methods:{onObserve(e,i,n){if(this.isIntersecting=n,n)for(let r=0,o=t.onVisible.length;r<o;r++){const e=this[t.onVisible[r]];"function"!==typeof e?Object(u["c"])(t.onVisible[r]+" method is not available on the instance but referenced in intersectable mixin options"):e()}}}})}var f=i("297c"),p=i("38cb");function m(t,e,i){const n=e.value,r=e.options||{passive:!0};window.addEventListener("resize",n,r),t._onResize=Object(t._onResize),t._onResize[i.context._uid]={callback:n,options:r},e.modifiers&&e.modifiers.quiet||n()}function g(t,e,i){var n;if(!(null===(n=t._onResize)||void 0===n?void 0:n[i.context._uid]))return;const{callback:r,options:o}=t._onResize[i.context._uid];window.removeEventListener("resize",r,o),delete t._onResize[i.context._uid]}const y={inserted:m,unbind:g};var _=y,v=i("5607"),b=i("dd89"),x=i("80d2");const w=Object(o["a"])(n["a"],d({onVisible:["onResize","tryAutofocus"]}),f["a"]),E=["color","file","time","date","datetime-local","week","month"];e["a"]=w.extend().extend({name:"v-text-field",directives:{resize:_,ripple:v["a"]},inheritAttrs:!1,props:{appendOuterIcon:String,autofocus:Boolean,clearable:Boolean,clearIcon:{type:String,default:"$clear"},counter:[Boolean,Number,String],counterValue:Function,filled:Boolean,flat:Boolean,fullWidth:Boolean,label:String,outlined:Boolean,placeholder:String,prefix:String,prepe
7ndInnerIcon:String,persistentPlaceholder:Boolean,reverse:Boolean,rounded:Boolean,shaped:Boolean,singleLine:Boolean,solo:Boolean,soloInverted:Boolean,suffix:String,type:{type:String,default:"text"}},data:()=>({badInput:!1,labelWidth:0,prefixWidth:0,prependWidth:0,initialValue:null,isBooted:!1,isClearing:!1}),computed:{classes(){return{...n["a"].options.computed.classes.call(this),"v-text-field":!0,"v-text-field--full-width":this.fullWidth,"v-text-field--prefix":this.prefix,"v-text-field--single-line":this.isSingle,"v-text-field--solo":this.isSolo,"v-text-field--solo-inverted":this.soloInverted,"v-text-field--solo-flat":this.flat,"v-text-field--filled":this.filled,"v-text-field--is-booted":this.isBooted,"v-text-field--enclosed":this.isEnclosed,"v-text-field--reverse":this.reverse,"v-text-field--outlined":this.outlined,"v-text-field--placeholder":this.placeholder,"v-text-field--rounded":this.rounded,"v-text-field--shaped":this.shaped}},computedColor(){const t=p["a"].options.computed.computedColor.call(this);return this.soloInverted&&this.isFocused?this.color||"primary":t},computedCounterValue(){return"function"===typeof this.counterValue?this.counterValue(this.internalValue):[...(this.internalValue||"").toString()].length},hasCounter(){return!1!==this.counter&&null!=this.counter},hasDetails(){return n["a"].options.computed.hasDetails.call(this)||this.hasCounter},internalValue:{get(){return this.lazyValue},set(t){this.lazyValue=t,this.$emit("input",this.lazyValue)}},isDirty(){var t;return(null===(t=this.lazyValue)||void 0===t?void 0:t.toString().length)>0||this.badInput},isEnclosed(){return this.filled||this.isSolo||this.outlined},isLabelActive(){return this.isDirty||E.includes(this.type)},isSingle(){return this.isSolo||this.singleLine||this.fullWidth||this.filled&&!this.hasLabel},isSolo(){return this.solo||this.soloInverted},labelPosition(){let t=this.prefix&&!this.labelValue?this.prefixWidth:0;return this.labelValue&&this.prependWidth&&(t-=this.prependWidth),this.$vuetify.rtl===this.reverse?{left:t,right:"auto"}:{left:"auto",right:t}},showLabel(){return this.hasLabel&&!(this.isSingle&&this.labelValue)},labelValue(){return this.isFocused||this.isLabelActive||this.persistentPlaceholder}},watch:{outlined:"setLabelWidth",label(){this.$nextTick(this.setLabelWidth)},prefix(){this.$nextTick(this.setPrefixWidth)},isFocused:"updateValue",value(t){this.lazyValue=t}},created(){this.$attrs.hasOwnProperty("box")&&Object(u["a"])("box","filled",this),this.$attrs.hasOwnProperty("browser-autocomplete")&&Object(u["a"])("browser-autocomplete","autocomplete",this),this.shaped&&!(this.filled||this.outlined||this.isSolo)&&Object(u["c"])("shaped should be used with either filled or outlined",this)},mounted(){this.$watch(()=>this.labelValue,this.setLabelWidth),this.autofocus&&this.tryAutofocus(),requestAnimationFrame(()=>{this.isBooted=!0,requestAnimationFrame(()=>{this.isIntersecting||this.onResize()})})},methods:{focus(){this.onFocus()},blur(t){window.requestAnimationFrame(()=>{this.$refs.input&&this.$refs.input.blur()})},clearableCallback(){this.$refs.input&&this.$refs.input.focus(),this.$nextTick(()=>this.internalValue=null)},genAppendSlot(){const t=[];return this.$slots["append-outer"]?t.push(this.$slots["append-outer"]):this.appendOuterIcon&&t.push(this.genIcon("appendOuter")),this.genSlot("append","outer",t)},genPrependInnerSlot(){const t=[];return this.$slots["prepend-inner"]?t.push(this.$slots["prepend-inner"]):this.prependInnerIcon&&t.push(this.genIcon("prependInner")),this.genSlot("prepend","inner",t)},genIconSlot(){const t=[];return this.$slots.append?t.push(this.$slots.append):this.appendIcon&&t.push(this.genIcon("append")),this.genSlot("append","inner",t)},genInputSlot(){const t=n["a"].options.methods.genInputSlot.call(this),e=this.genPrependInnerSlot();return e&&(t.children=t.children||[],t.children.unshift(e)),t},genClearIcon(){return this.clearable?this.isDirty?this.genSlot("append","inner",[this.genIcon("clear",this.clearableCallback)]):this.genSlot("append","inner",[this.$createElement("div")]):null},genCounter(){var t,e,i;if(!this.hasCounter)return null;const n=!0===this.counter?this.attrs$.maxlength:this.counter,r={dark:this.dark,light:this.light,max:n,value:this.computedCounterValue};return null!==(i=null===(e=(t=this.$scopedSlots).counter)||void 0===e?void 0:e.call(t,{props:r}))&&void 0!==i?i:this.$createElement(a,{props:r})},genControl(){return n["a"].options.methods.genControl.call(this)},genDefaultSlot(){return[this.genFieldset(),this.genTextFieldSlot(),this.genClearIcon(),this.genIconSlot(),this.genProgress()]},genFieldset(){return this.outlined?this.$createElement("fieldset",{attrs:{"aria-hidden":!0}},[this.genLegend()]):null},genLabel(){if(!this.showLabel)return null;const t={props:{absolute:!0,color:this.validationState,dark:this.dark,disabled:this.isDisabled,focused:!this.isSingle&&(this.isFocused||!!this.validationState),for:this.computedId,left:this.labelPosition.left,light:this.light,right:this.labelPosition.right,value:this.labelValue}};return this.$createElement(l["a"],t,Object(x["m"])(this,"label")||this.label)},genLegend(){const t=this.singleLine||!this.labelValue&&!this.isDirty?0:this.labelWidth,e=this.$createElement("span",{domProps:{innerHTML:"​"},staticClass:"notranslate"});return this.$createElement("legend",{style:{width:this.isSingle?void 0:Object(x["g"])(t)}},[e])},genInput(){const t=Object.assign({},this.listeners$);delete t.change;const{title:e,...i}=this.attrs$;return this.$createElement("input",{style:{},domProps:{value:"number"===this.type&&Object.is(this.lazyValue,-0)?"-0":this.lazyValue},attrs:{...i,autofocus:this.autofocus,disabled:this.isDisabled,id:this.computedId,placeholder:this.persistentPlaceholder||this.isFocused||!this.hasLabel?this.placeholder:void 0,readonly:this.isReadonly,type:this.t
7ype},on:Object.assign(t,{blur:this.onBlur,input:this.onInput,focus:this.onFocus,keydown:this.onKeyDown}),ref:"input",directives:[{name:"resize",modifiers:{quiet:!0},value:this.onResize}]})},genMessages(){if(!this.showDetails)return null;const t=n["a"].options.methods.genMessages.call(this),e=this.genCounter();return this.$createElement("div",{staticClass:"v-text-field__details"},[t,e])},genTextFieldSlot(){return this.$createElement("div",{staticClass:"v-text-field__slot"},[this.genLabel(),this.prefix?this.genAffix("prefix"):null,this.genInput(),this.suffix?this.genAffix("suffix"):null])},genAffix(t){return this.$createElement("div",{class:"v-text-field__"+t,ref:t},this[t])},onBlur(t){this.isFocused=!1,t&&this.$nextTick(()=>this.$emit("blur",t))},onClick(){this.isFocused||this.isDisabled||!this.$refs.input||this.$refs.input.focus()},onFocus(t){if(!this.$refs.input)return;const e=Object(b["a"])(this.$el);return e?e.activeElement!==this.$refs.input?this.$refs.input.focus():void(this.isFocused||(this.isFocused=!0,t&&this.$emit("focus",t))):void 0},onInput(t){const e=t.target;this.internalValue=e.value,this.badInput=e.validity&&e.validity.badInput},onKeyDown(t){t.keyCode===x["q"].enter&&this.lazyValue!==this.initialValue&&(this.initialValue=this.lazyValue,this.$emit("change",this.initialValue)),this.$emit("keydown",t)},onMouseDown(t){t.target!==this.$refs.input&&(t.preventDefault(),t.stopPropagation()),n["a"].options.methods.onMouseDown.call(this,t)},onMouseUp(t){this.hasMouseDown&&this.focus(),n["a"].options.methods.onMouseUp.call(this,t)},setLabelWidth(){this.outlined&&(this.labelWidth=this.$refs.label?Math.min(.75*this.$refs.label.scrollWidth+6,this.$el.offsetWidth-24):0)},setPrefixWidth(){this.$refs.prefix&&(this.prefixWidth=this.$refs.prefix.offsetWidth)},setPrependWidth(){this.outlined&&this.$refs["prepend-inner"]&&(this.prependWidth=this.$refs["prepend-inner"].offsetWidth)},tryAutofocus(){if(!this.autofocus||"undefined"===typeof document||!this.$refs.input)return!1;const t=Object(b["a"])(this.$el);return!(!t||t.activeElement===this.$refs.input)&&(this.$refs.input.focus(),!0)},updateValue(t){this.hasColor=t,t?this.initialValue=this.lazyValue:this.initialValue!==this.lazyValue&&this.$emit("change",this.lazyValue)},onResize(){this.setLabelWidth(),this.setPrefixWidth(),this.setPrependWidth()}}})},"86cc":function(t,e,i){},"876b":function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("9ab4"),r=i("8f69"),o=Symbol.for("apollo.cacheSize"),s=Object(n["a"])({},r["a"][o])},8860:function(t,e,i){"use strict";i("14d9"),i("3ad0");var n=i("8dd9"),r=i("80d2");e["a"]=n["a"].extend().extend({name:"v-list",provide(){return{isInList:!0,list:this}},inject:{isInMenu:{default:!1},isInNav:{default:!1}},props:{dense:Boolean,disabled:Boolean,expand:Boolean,flat:Boolean,nav:Boolean,rounded:Boolean,subheader:Boolean,threeLine:Boolean,twoLine:Boolean},data:()=>({groups:[]}),computed:{classes(){return{...n["a"].options.computed.classes.call(this),"v-list--dense":this.dense,"v-list--disabled":this.disabled,"v-list--flat":this.flat,"v-list--nav":this.nav,"v-list--rounded":this.rounded,"v-list--subheader":this.subheader,"v-list--two-line":this.twoLine,"v-list--three-line":this.threeLine}}},methods:{register(t){this.groups.push(t)},unregister(t){const e=this.groups.findIndex(e=>e._uid===t._uid);e>-1&&this.groups.splice(e,1)},listClick(t){if(!this.expand)for(const e of this.groups)e.toggle(t)}},render(t){const e={staticClass:"v-list",class:this.classes,style:this.styles,attrs:{role:this.isInNav||this.isInMenu?void 0:"list",...this.attrs$},on:this.listeners$};return t(this.tag,this.setBackgroundColor(this.color,e),Object(r["m"])(this))}})},"88a7":function(t,e,i){"use strict";var n=i("cb2d"),r=i("e330"),o=i("577e"),s=i("d6d6"),a=URLSearchParams,l=a.prototype,c=r(l.append),u=r(l["delete"]),h=r(l.forEach),d=r([].push),f=new a("a=1&a=2&b=3");f["delete"]("a",1),f["delete"]("b",void 0),f+""!=="a=2"&&n(l,"delete",(function(t){var e=arguments.length,i=e<2?void 0:arguments[1];if(e&&void 0===i)return u(this,t);var n=[];h(this,(function(t,e){d(n,{key:e,value:t})})),s(e,1);var r,a=o(t),l=o(i),f=0,p=0,m=!1,g=n.length;while(f<g)r=n[f++],m||r.key===a?(m=!0,u(this,r.key)):p++;
7while(p<g)r=n[p++],r.key===a&&r.value===l||c(this,r.key,r.value)}),{enumerable:!0,unsafe:!0})},8925:function(t,e,i){"use strict";var n=i("e330"),r=i("1626"),o=i("c6cd"),s=n(Function.toString);r(o.inspectSource)||(o.inspectSource=function(t){return s(t)}),t.exports=o.inspectSource},"899c":function(t,e,i){},"8adc":function(t,e,i){},"8ae5":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("d30b");function r(t,e){void 0===e&&(e={});var i=Number(t[0]),r=Number(t[1]),o=Number(t[2]),s=Number(t[3]);if(6===t.length)throw new Error("@turf/bbox-polygon does not support BBox with 6 positions");var a=[i,r],l=[i,s],c=[o,s],u=[o,r];return Object(n["j"])([[a,u,c,l,a]],e.properties,{bbox:t,id:e.id})}},"8b00":function(t,e,i){"use strict";var n=i("23e7"),r=i("68df"),o=i("dad2"),s=!o("isSubsetOf",(function(t){return t}));n({target:"Set",proto:!0,real:!0,forced:s},{isSubsetOf:r})},"8cb5":function(t,e,i){"use strict";t.exports={API_ORIGIN:"https://api.mapbox.com",EVENT_PROGRESS_DOWNLOAD:"downloadProgress",EVENT_PROGRESS_UPLOAD:"uploadProgress",EVENT_ERROR:"error",EVENT_RESPONSE:"response",ERROR_HTTP:"HttpError",ERROR_REQUEST_ABORTED:"RequestAbortedError"}},"8ce9":function(t,e,i){},"8d4f":function(t,e,i){},"8da5":function(t,e,i){"use strict";i.d(e,"a",(function(){return l})),i.d(e,"b",(function(){return c}));var n=i("80d2");const r=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],o=t=>t<=.0031308?12.92*t:1.055*t**(1/2.4)-.055,s=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],a=t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4;function l(t){const e=Array(3),i=o,s=r;for(let r=0;r<3;++r)e[r]=Math.round(255*Object(n["e"])(i(s[r][0]*t[0]+s[r][1]*t[1]+s[r][2]*t[2])));return(e[0]<<16)+(e[1]<<8)+(e[2]<<0)}function c(t){const e=[0,0,0],i=a,n=s,r=i((t>>16&255)/255),o=i((t>>8&255)/255),l=i((t>>0&255)/255);for(let s=0;s<3;++s)e[s]=n[s][0]*r+n[s][1]*o+n[s][2]*l;return e}},"8dd9":function(t,e,i){"use strict";i("25a8");var n=i("7e2b"),r=i("a9ad"),o=i("c995"),s=i("24b2"),a=i("a236"),l=i("7560"),c=i("58df");e["a"]=Object(c["a"])(n["a"],r["a"],o["a"],s["a"],a["a"],l["a"]).extend({name:"v-sheet",props:{outlined:Boolean,shaped:Boolean,tag:{type:String,default:"div"}},computed:{classes(){return{"v-sheet":!0,"v-sheet--outlined":this.outlined,"v-sheet--shaped":this.shaped,...this.themeClasses,...this.elevationClasses,...this.roundedClasse
7s}},styles(){return this.measurableStyles}},render(t){const e={class:this.classes,style:this.styles,on:this.listeners$};return t(this.tag,this.setBackgroundColor(this.color,e),this.$slots.default)}})},"8e16":function(t,e,i){"use strict";var n=i("7282"),r=i("cb27");t.exports=n(r.proto,"size","get")||function(t){return t.size}},"8e36":function(t,e,i){"use strict";i("6ece");var n=i("0789"),r=i("90a2"),o=i("a9ad"),s=i("fe6c"),a=i("a452"),l=i("7560"),c=i("80d2"),u=i("58df");const h=Object(u["a"])(o["a"],Object(s["b"])(["absolute","fixed","top","bottom"]),a["a"],l["a"]);e["a"]=h.extend({name:"v-progress-linear",directives:{intersect:r["a"]},props:{active:{type:Boolean,default:!0},backgroundColor:{type:String,default:null},backgroundOpacity:{type:[Number,String],default:null},bufferValue:{type:[Number,String],default:100},color:{type:String,default:"primary"},height:{type:[Number,String],default:4},indeterminate:Boolean,query:Boolean,reverse:Boolean,rounded:Boolean,stream:Boolean,striped:Boolean,value:{type:[Number,String],default:0}},data(){return{internalLazyValue:this.value||0,isVisible:!0}},computed:{__cachedBackground(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor||this.color,{staticClass:"v-progress-linear__background",style:this.backgroundStyle}))},__cachedBar(){return this.$createElement(this.computedTransition,[this.__cachedBarType])},__cachedBarType(){return this.indeterminate?this.__cachedIndeterminate:this.__cachedDeterminate},__cachedBuffer(){return this.$createElement("div",{staticClass:"v-progress-linear__buffer",style:this.styles})},__cachedDeterminate(){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__determinate",style:{width:Object(c["g"])(this.normalizedValue,"%")}}))},__cachedIndeterminate(){return this.$createElement("div",{staticClass:"v-progress-linear__indeterminate",class:{"v-progress-linear__indeterminate--active":this.active}},[this.genProgressBar("long"),this.genProgressBar("short")])},__cachedStream(){return this.stream?this.$createElement("div",this.setTextColor(this.color,{staticClass:"v-progress-linear__stream",style:{width:Object(c["g"])(100-this.normalizedBuffer,"%")}})):null},backgroundStyle(){const t=null==this.backgroundOpacity?this.backgroundColor?1:.3:parseFloat(this.backgroundOpacity);return{opacity:t,[this.isReversed?"right":"left"]:Object(c["g"])(this.normalizedValue,"%"),width:Object(c["g"])(Math.max(0,this.normalizedBuffer-this.normalizedValue),"%")}},classes(){return{"v-progress-linear--absolute":this.absolute,"v-progress-linear--fixed":this.fixed,"v-progress-linear--query":this.query,"v-progress-linear--reactive":this.reactive,"v-progress-linear--reverse":this.isReversed,"v-progress-linear--rounded":this.rounded,"v-progress-linear--striped":this.striped,"v-progress-linear--visible":this.isVisible,...this.themeClasses}},computedTransition(){return this.indeterminate?n["c"]:n["d"]},isReversed(){return this.$vuetify.rtl!==this.reverse},normalizedBuffer(){return this.normalize(this.bufferValue)},normalizedValue(){return this.normalize(this.internalLazyValue)},reactive(){return Boolean(this.$listeners.change)},styles(){const t={};return this.active||(t.height=0),this.indeterminate||100===parseFloat(this.normalizedBuffer)||(t.width=Object(c["g"])(this.normalizedBuffer,"%")),t}},methods:{genContent(){const t=Object(c["m"])(this,"default",{value:this.internalLazyValue});return t?this.$createElement("div",{staticClass:"v-progress-linear__content"},t):null},genListeners(){const t=this.$listeners;return this.reactive&&(t.click=this.onClick),t},genProgressBar(t){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__indeterminate",class:{[t]:!0}}))},onClick(t){if(!this.reactive)return;const{width:e}=this.$el.getBoundingClientRect();this.internalValue=t.offsetX/e*100},onObserve(t,e,i){this.isVisible=i},normalize(t){return t<0?0:t>100?100:parseFloat(t)}},render(t){const e={staticClass:"v-progress-linear",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":this.normalizedBuffer,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,directives:[{name:"intersect",value:this.onObserve}],style:{bottom:this.bottom?0:void 0,height:this.active?Object(c["g"])(this.height):0,top:this.top?0:void 0},on:this.genListeners()};
7return t("div",e,[this.__cachedStream,this.__cachedBackground,this.__cachedBuffer,this.__cachedBar,this.genContent()])}})},"8efc":function(t,e,i){},"8f14":function(t,e,i){var n;(function(){var r=Object.assign||function(t){for(var e,i=1;i<arguments.length;i++)for(var n in e=arguments[i],e)m(e,n)&&(t[n]=e[n]);return t},o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},s=l((function(t){return 1===t?"ÏÏÏνοÏ":"ÏÏÏνια"}),(function(t){return 1===t?"μήναÏ":"μήνεÏ"}),(function(t){return 1===t?"εβδομάδα":"εβδομάδεÏ"}),(function(t){return 1===t?"μÎÏα":"μÎÏεÏ"}),(function(t){return 1===t?"ÏÏα":"ÏÏεÏ"}),(function(t){return 1===t?"λεÏÏÏ":"λεÏÏά"}),(function(t){return 1===t?"δεÏ
ÏεÏÏλεÏÏο":"δεÏ
ÏεÏÏλεÏÏα"}),(function(t){return(1===t?"ÏιλιοÏÏÏ":"ÏιλιοÏÏά")+" ÏοÏ
δεÏ
ÏεÏολÎÏÏοÏ
"}),","),a={af:l("jaar",(function(t){return"maand"+(1===t?"":"e")}),(function(t){return 1===t?"week":"weke"}),(function(t){return 1===t?"dag":"dae"}),(function(t){return 1===t?"uur":"ure"}),(function(t){return 1===t?"minuut":"minute"}),(function(t){return"sekonde"+(1===t?"":"s")}),(function(t){return"millisekonde"+(1===t?"":"s")}),","),am:l("áááµ","áá","á³áááµ","áá","á°ááµ","á°áá","á°á¨ááµ","ááá°á¨ááµ"),ar:r(l((function(t){return["Ø³ÙØ©","Ø³ÙØªØ§Ù","سÙÙØ§Øª"][c(t)]}),(function(t){return["Ø´ÙØ±","Ø´ÙØ±Ø§Ù","Ø£Ø´ÙØ±"][c(t)]}),(function(t){return["Ø£Ø³Ø¨ÙØ¹","Ø£Ø³Ø¨ÙØ¹ÙÙ","Ø£Ø³Ø§Ø¨ÙØ¹"][c(t)]}),(function(t){return["ÙÙÙ
","ÙÙÙ
ÙÙ","Ø£ÙØ§Ù
"][c(t)]}),(function(t){return["ساعة","ساعتÙÙ","ساعات"][c(t)]}),(function(t){return["دÙÙÙØ©","دÙÙÙØªØ§Ù","Ø¯ÙØ§Ø¦Ù"][c(t)]}),(function(t){return["ثاÙÙØ©","ثاÙÙØªØ§Ù","Ø«ÙØ§ÙÙ"][c(t)]}),(function(t){return["جزء Ù
Ù Ø§ÙØ«Ø§ÙÙØ©","جزآ٠Ù
Ù Ø§ÙØ«Ø§ÙÙØ©","أجزاء Ù
Ù Ø§ÙØ«Ø§ÙÙØ©"][c(t)]}),","),{delimiter:" ï» ",_hideCountIf2:!0,_digitReplacements:["Û°","Ù¡","Ù¢","Ù£","Ù¤","Ù¥","Ù¦","Ù§","Ù¨","Ù©"]}),bg:l((function(t){return["години","година","години"][h(t)]}),(function(t){return["меÑеÑа","меÑеÑ","меÑеÑа"][h(t)]}),(function(t){return["ÑедмиÑи","ÑедмиÑа","ÑедмиÑи"][h(t)]}),(function(t){return["дни","ден","дни"][h(t)]}),(function(t){return["ÑаÑа","ÑаÑ","ÑаÑа"][h(t)]}),(function(t){return["минÑÑи","минÑÑа","минÑÑи"][h(t)]}),(function(t){return["ÑекÑнди","ÑекÑнда","ÑекÑнди"][h(t)]}),(function(t){return["милиÑекÑнди","милиÑекÑнда","милиÑекÑнди"][h(t)]}),","),bn:l("বà¦à¦°","মাস","সপà§à¦¤à¦¾à¦¹","দিন","à¦à¦¨à§à¦à¦¾","মিনিà¦","সà§à¦à§à¦¨à§à¦¡","মিলিসà§à¦à§à¦¨à§à¦¡"),ca:l((function(t){return"any"+(1===t?"":"s")}),(function(t){return"mes"+(1===t?"":"os")}),(function(t){return"setman"+(1===t?"a":"es")}),(function(t){return"di"+(1===t?"a":"es")}),(function(t){return"hor"+(1===t?"a":"es")}),(function(t){return"minut"+(1===t?"":"s")}),(function(t){return"segon"+(1===t?"":"s")}),(function(t){return"milisegon"+(1===t?"":"s")}),","),ckb:l("ساڵ","Ù
اÙÚ¯","ÙÛÙØªÛ","ÚÛÚ","کاÚÛØ±","Ø®ÙÙÛÚ©","ÚØ±Ú©Û","Ù
ÛÙÛ ÚØ±Ú©Û","."),cs:l((function(t){return["rok","roku","roky","let"][d(t)]}),(function(t){return["mÄsÃc","mÄsÃce","mÄsÃce","mÄsÃců"][d(t)]}),(function(t){return["týden","týdne","týdny","týdnů"][d(t)]}),(function(t){return["den","dne","dny","dnÃ"][d(t)]}),(function(t){return["hodina","hodiny","hodiny","hodin"][d(t)]}),(function(t){return["minuta","minuty","minuty","minut"][d(t)]}),(function(t){return["sekunda","sekundy","sekundy","sekund"][d(t)]}),(function(t){return["milisekunda","milisekundy","milisekundy","milisekund"][d(t)]}),","),cy:l("flwyddyn","mis","wythnos","diwrnod","awr","munud","eiliad","milieiliad"),da:l("Ã¥r",(function(t){return"mÃ¥ned"+(1===t?"":"er")}),(function(t){return"uge"+(1===t?"":"r")}),(function(t){return"dag"+(1===t?"":"e")}),(function(t){return"time"+(1===t?"":"r")}),(function(t){return"minut"+(1===t?"":"ter")}),(function(t){return"sekund"+(1===t?"":"er")}),(function(t){return"millisekund"+(1===t?"":"er")}),","),de:l((function(t){return"Jahr"+(1===t?"":"e")}),(function(t){return"Monat"+(1===t?"":"e")}),(function(t){return"Woche"+(1===t?"":"n")}),(function(t){return"Tag"+(1===t?"":"e")}),(function(t){return"Stunde"+(1===t?"":"n")}),(function(t){return"Minute"+(1===t?"":"n")}),(function(t){return"Sekunde"+(1===t?"":"n")}),(function(t){return"Millisekunde"+(1===t?"":"n")}),","),el:s,en:l((function(t){return"year"+(1===t?"":"s")}),(function(t){return"month"+(1===t?"":"s")}),(function(t){return"week"+(1===t?"":"s")}),(function(t){return"day"+(1===t?"":"s")}),(function(t){return"hour"+(1===t?"":"s")}),(function(t){return"minute"+(1===t?"":"s")}),(function(t){return"second"+(1===t?"":"s")}),(function(t){return"millisecond"+(1===t?"":"s")})),eo:l((function(t){return"jaro"+(1===t?"":"j")}),(function(t){return"monato"+(1===t?"":"j")}),(function(t){return"semajno"+(1===t?"":"j")}),(function(t){return"tago"+(1===t?"":"j")}),(function(t){return"horo"+(1===t?"":"j")}),(function(t){return"minuto"+(1===t?"":"j")}),(function(t){return"sekundo"+(1===t?"":"j")}),(function(t){return"milisekundo"+(1===t?"":"j")}),","),es:l((function(t){return"año"+(1===t?"":"s")}),(function(t){return"mes"+(1===t?"":"es")}),(function(t){return"semana"+(1===t?"":"s")}),(function(t){return"dÃa"+(1===t?"":"s")}),(function(t){return"hora"+(1===t?"":"s")}),(function(t){return"minuto"+(1===t?"":"s")}),(function(t){return"segundo"+(1===t?"":"s")}),(function(t){return"milisegundo"+(1===t?"":"s")}),","),et:l((function(t){return"aasta"+(1===t?"":"t")}),(function(t){return"kuu"+(1===t?"":"d")}),(function(t){return"nädal"+(1===t?"":"at")}),(function(t){return"päev"+(1===t?"":"a")}),(function(t){return"tund"+(1===t?"":"i")}),(function(t){return"minut"+(1===t?"":"it")}),(function(t){return"sekund"+(1===t?"":"it")}),(function(t){return"millisekund"+(1===t?"":"it")}),","),eu:l("urte","hilabete","aste","egun","ordu","minutu","segundo","milisegundo",","),fa:l("ساÙ","Ù
اÙ","ÙÙØªÙ","Ø±ÙØ²","ساعت","دÙÛÙÙ","ثاÙÛÙ","Ù
ÛÙÛ Ø«Ø§ÙÛÙ"),fi:l((function(t){return 1===t?"vuosi":"vuotta"}
7),(function(t){return 1===t?"kuukausi":"kuukautta"}),(function(t){return"viikko"+(1===t?"":"a")}),(function(t){return"päivä"+(1===t?"":"ä")}),(function(t){return"tunti"+(1===t?"":"a")}),(function(t){return"minuutti"+(1===t?"":"a")}),(function(t){return"sekunti"+(1===t?"":"a")}),(function(t){return"millisekunti"+(1===t?"":"a")}),","),fo:l("ár",(function(t){return 1===t?"mánaður":"mánaðir"}),(function(t){return 1===t?"vika":"vikur"}),(function(t){return 1===t?"dagur":"dagar"}),(function(t){return 1===t?"tÃmi":"tÃmar"}),(function(t){return 1===t?"minuttur":"minuttir"}),"sekund","millisekund",","),fr:l((function(t){return"an"+(t>=2?"s":"")}),"mois",(function(t){return"semaine"+(t>=2?"s":"")}),(function(t){return"jour"+(t>=2?"s":"")}),(function(t){return"heure"+(t>=2?"s":"")}),(function(t){return"minute"+(t>=2?"s":"")}),(function(t){return"seconde"+(t>=2?"s":"")}),(function(t){return"milliseconde"+(t>=2?"s":"")}),","),gr:s,he:l((function(t){return 1===t?"×©× ×":"×©× ××"}),(function(t){return 1===t?"×××ש":"×××ש××"}),(function(t){return 1===t?"ש×××¢":"ש×××¢×ת"}),(function(t){return 1===t?"×××":"××××"}),(function(t){return 1===t?"שע×":"שע×ת"}),(function(t){return 1===t?"××§×":"××§×ת"}),(function(t){return 1===t?"×©× ××":"×©× ××ת"}),(function(t){return 1===t?"×××××©× ×××":"×××××©× ××ת"})),hr:l((function(t){return t%10===2||t%10===3||t%10===4?"godine":"godina"}),(function(t){return 1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci"}),(function(t){return t%10===1&&11!==t?"tjedan":"tjedna"}),(function(t){return 1===t?"dan":"dana"}),(function(t){return 1===t?"sat":2===t||3===t||4===t?"sata":"sati"}),(function(t){var e=t%10;return 2!==e&&3!==e&&4!==e||!(t<10||t>14)?"minuta":"minute"}),(function(t){var e=t%10;return 5===e||Math.floor(t)===t&&t>=10&&t<=19?"sekundi":1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi"}),(function(t){return 1===t?"milisekunda":t%10===2||t%10===3||t%10===4?"milisekunde":"milisekundi"}),","),hi:l("साल",(function(t){return 1===t?"महà¥à¤¨à¤¾":"महà¥à¤¨à¥"}),(function(t){return 1===t?"हà¥à¥à¤¤à¤¾":"हफà¥à¤¤à¥"}),"दिन",(function(t){return 1===t?"à¤à¤à¤à¤¾":"à¤à¤à¤à¥"}),"मिनà¤","सà¥à¤à¤à¤¡","मिलà¥à¤¸à¥à¤à¤à¤¡"),hu:l("év","hónap","hét","nap","óra","perc","másodperc","ezredmásodperc",","),id:l("tahun","bulan","minggu","hari","jam","menit","detik","milidetik"),is:l("ár",(function(t){return"mánuð"+(1===t?"ur":"ir")}),(function(t){return"vik"+(1===t?"a":"ur")}),(function(t){return"dag"+(1===t?"ur":"ar")}),(function(t){return"klukkutÃm"+(1===t?"i":"ar")}),(function(t){return"mÃnút"+(1===t?"a":"ur")}),(function(t){return"sekúnd"+(1===t?"a":"ur")}),(function(t){return"millisekúnd"+(1===t?"a":"ur")})),it:l((function(t){return"ann"+(1===t?"o":"i")}),(function(t){return"mes"+(1===t?"e":"i")}),(function(t){return"settiman"+(1===t?"a":"e")}),(function(t){return"giorn"+(1===t?"o":"i")}),(function(t){return"or"+(1===t?"a":"e")}),(function(t){return"minut"+(1===t?"o":"i")}),(function(t){return"second"+(1===t?"o":"i")}),(function(t){return"millisecond"+(1===t?"o":"i")}),","),ja:l("å¹´","ã¶æ","é±","æ¥","æé","å","ç§","ããªç§"),km:l("áááá¶á","áá","ááááá¶á á","áááá","áááá","áá¶áá¸","áá·áá¶áá¸","áá·áááá¸áá·áá¶áá¸"),kn:l((function(t){return 1===t?"ವರà³à²·":"ವರà³à²·à²à²³à³"}),(function(t){return 1===t?"ತಿà²à²à²³à³":"ತಿà²à²à²³à³à²à²³à³"}),(function(t){return 1===t?"ವಾರ":"ವಾರà²à²³à³"}),(function(t){return 1===t?"ದಿನ":"ದಿನà²à²³à³"}),(function(t){return 1===t?"à²à²à²à³":"à²à²à²à³à²à²³à³"}),(function(t){return 1===t?"ನಿಮಿಷ":"ನಿಮಿಷà²à²³à³"}),(function(t){return 1===t?"ಸà³à²à³à²à²¡à³":"ಸà³à²à³à²à²¡à³à²à²³à³"}),(function(t){return 1===t?"ಮಿಲಿಸà³à²à³à²à²¡à³":"ಮಿಲಿಸà³à²à³à²à²¡à³à²à²³à³"})),ko:l("ë
","ê°ì","주ì¼","ì¼","ìê°","ë¶","ì´","ë°ë¦¬ ì´"),ku:l("sal","meh","hefte","roj","seet","deqe","saniye","mîlîçirk",","),lo:l("àºàºµ","à»àºàº·àºàº","àºàº²àºàº´àº","ມືà»","àºàº»à»àº§à»àº¡àº","àºàº²àºàºµ","ວິàºàº²àºàºµ","ມິàºàº¥àº´àº§àº´àºàº²àºàºµ",","),lt:l((function(t){return t%10===0||t%100>=10&&t%100<=20?"metų":"metai"}),(function(t){return["mÄnuo","mÄnesiai","mÄnesių"][f(t)]}),(function(t){return["savaitÄ","savaitÄs","savaiÄių"][f(t)]}),(function(t){return["diena","dienos","dienų"][f(t)]}),(function(t){return["valanda","valandos","valandų"][f(t)]}),(function(t){return["minutÄ","minutÄs","minuÄių"][f(t)]}),(function(t){return["sekundÄ","sekundÄs","sekundžių"][f(t)]}),(function(t){return["milisekundÄ","milisekundÄs","milisekundžių"][f(t)]}),","),lv:l((function(t){return p(t)?"gads":"gadi"}),(function(t){return p(t)?"mÄnesis":"mÄneÅ¡i"}),(function(t){return p(t)?"nedÄļa":"nedÄļas"}),(function(t){return p(t)?"diena":"dienas"}),(function(t){return p(t)?"stunda":"stundas"}),(function(t){return p(t)?"minÅ«te":"minÅ«tes"}),(function(t){return p(t)?"sekunde":"sekundes"}),(function(t){return p(t)?"milisekunde":"milisekundes"}),","),mk:l((function(t){return 1===t?"година":"години"}),(function(t){return 1===t?"меÑеÑ":"меÑеÑи"}),(function(t){return 1===t?"недела":"недели"}),(function(t){return 1===t?"ден":"дена"}),(function(t){return 1===t?"ÑаÑ":"ÑаÑа"}),(function(t){return 1===t?"минÑÑа":"минÑÑи"}),(function(t){return 1===t?"ÑекÑнда":"ÑекÑнди"}),(function(t){return 1===t?"милиÑекÑнда":"милиÑекÑнди"}),","),mn:l("жил","ÑаÑ","долоо Ñ
оног","өдөÑ","Ñаг","минÑÑ","ÑекÑнд","миллиÑекÑнд"),mr:l((function(t){return 1===t?"वरà¥à¤·":"वरà¥à¤·à¥"}),(function(t){return 1===t?"महिना":"महिनà¥"}),(function(t){return 1===t?"à¤à¤ वडा":"à¤à¤ वडà¥"}),"दिवस","तास",(function(t){return 1===t?"मिनिà¤":"मिनिà¤à¥"}),"सà¥à¤à¤à¤¦","मिलिसà¥à¤à¤à¤¦"),ms:l("tahun","bulan","minggu","hari","jam","minit","saat","milisaat"),nl:l("jaar",(function(t){return 1===t?"maand":"maanden"}),(function(t){return 1===t?"week":"weken"}),(function(t){return 1===t?"dag":"dagen"}),"uur",(function(t){return 1===t?"minuut":"minuten"}),(function(t){return 1===t?"seconde":"seconden"}),(function(t){return 1===t?"milliseconde":"milliseconden"}),","),no:l("Ã¥r",(function(t){return"mÃ¥ned"+(1===t?"":"er")}),(function(t){return"uke"+(1===t?"":"r")}),(function(t){return"dag"+(1===t?"":"er")}),(function(t){return"time"+(1===t?"":"r")}),(function(t){return"minutt"+(1===t?"":"er")}),(function(t){return"sekund"+(1===t?"":"er")}),(function(t){return"millisekund"+(1===t?"":"er")}),","),pl:l((function(t){return["rok","roku","lata","lat"][u(t)]}),(function(t){return["miesiÄ
c","miesiÄ
ca","miesiÄ
ce","miesiÄcy"][u(t)]}),(function(t){return["tydzieÅ","tygodnia","tygodnie","tygodni"][u(t)]}),(function(t){return["dzieÅ","dnia","dni","dni"][u(t)]}),(function(t){return["godzina","godziny","godziny","godzin"][u(t)]}),(function(t){return["minuta","minuty","minuty","minut"][u(t)]}),(function(t){return["sekunda","sekundy","sekundy","sekund"][u(t)]}),(function(t){return["milisekunda","milisekundy","milisekundy","milisekund"][u(t)]}),","),pt:l((function(t){return"ano"+(1===t?"":"s")}),(function(t){return 1===t?"mês":"meses"}),(function(t){return"semana"+(1===t?"":"s")}),(function(t){return"dia"+(1===t?"":"s")}),(function(t){return"hora"+(1===t?"":"s")}),(function(t){return"minuto"+(1===t?"":"s")}),(function(t){return"segundo"+(1===t?"":"s")}),(function(t){return"milissegundo"+(1===t?"":"s")}),","),ro:l((function(t){return 1===t?"an":"ani"}),(function(t){return 1===t?"lunÄ":"luni"}),(function(t){return 1===t?"sÄptÄmânÄ":"sÄptÄmâni"}),(function(t){return 1===t?"zi":"zile"}),(function(t){return 1===t?"orÄ":"ore"}),(function(t){return 1===t?"minut":"minute"}),(function(t){return 1===t?"secundÄ":"secunde"}),(function(t){return 1===t?"milisecundÄ":"milisecunde"}),","),ru:l((function(t){return["леÑ","год","года"][h(t)]}),(function(t){return["меÑÑÑев","меÑÑÑ","меÑÑÑа"][h(t)]}),(function(t){return["неделÑ","неделÑ","недели"][h(t)]}),(function(t){return["дней","денÑ","днÑ"][h(t)]}),(function(t){return["ÑаÑов","ÑаÑ","ÑаÑа"][h(t)]}),(function(t){return["минÑÑ","минÑÑа","минÑÑÑ"][h(t)]}),(function(t){return["ÑекÑнд","ÑекÑнда","ÑекÑндÑ"][h(t)]}),(function(t){return["миллиÑекÑнд","миллиÑекÑнда","миллиÑекÑндÑ"][h(t)]}),","),sq:l((function(t){return 1===t?"vit":"vjet"}),"muaj","javë","ditë","orë",(function(t){return"minut"+(1===t?"ë":"a")}),(function(t){return"sekond"+(1===t?"ë":"a")}),(function(t){return"milisekond"+(1===t?"ë":"a")}),","),sr:l((function(t){return["години","година","године"][h(t)]}),(function(t){return["меÑеÑи","меÑеÑ","меÑеÑа"][h(t)]}),(function(t){return["недеÑи","недеÑа","недеÑе"][h(t)]}),(function(t){return["дани","дан","дана"][h(t)]}),(function(t){return["ÑаÑи","ÑаÑ","ÑаÑа"][h(t)]}),(function(t){return["минÑÑа","минÑÑ","минÑÑа"][h(t)]}),(function(t){return["ÑекÑнди","ÑекÑнда","ÑекÑнде"][h(t)]}),(function(t){return["милиÑекÑнди","милиÑекÑнда","милиÑекÑнде"][h(t)]}),","),ta:l((function(t){return 1===t?"வரà¯à®à®®à¯":"à®à®£à¯à®à¯à®à®³à¯"}
7),(function(t){return 1===t?"மாதமà¯":"மாதà®à¯à®à®³à¯"}),(function(t){return 1===t?"வாரமà¯":"வாரà®à¯à®à®³à¯"}),(function(t){return 1===t?"நாளà¯":"நாà®à¯à®à®³à¯"}),(function(t){return 1===t?"மணி":"மணிநà¯à®°à®®à¯"}),(function(t){return"நிமிà®"+(1===t?"à®®à¯":"à®à¯à®à®³à¯")}),(function(t){return"வினாà®à®¿"+(1===t?"":"à®à®³à¯")}),(function(t){return"மிலà¯à®²à®¿ விநாà®à®¿"+(1===t?"":"à®à®³à¯")})),te:l((function(t){return"à°¸à°à°µà°¤à±à°¸"+(1===t?"à°°à°":"రాల")}),(function(t){return"à°¨à±à°²"+(1===t?"":"à°²")}),(function(t){return 1===t?"వారà°":"వారాలà±"}),(function(t){return"à°°à±à°à±"+(1===t?"":"à°²à±")}),(function(t){return"à°à°à°"+(1===t?"":"à°²à±")}),(function(t){return 1===t?"నిమిషà°":"నిమిషాలà±"}),(function(t){return 1===t?"à°¸à±à°à°¨à±":"à°¸à±à°à°¨à±à°²à±"}),(function(t){return 1===t?"మిలà±à°²à±à°¸à±à°à°¨à±":"మిలà±à°²à±à°¸à±à°à°¨à±à°²à±"})),uk:l((function(t){return["ÑокÑв","ÑÑк","Ñоки"][h(t)]}),(function(t){return["мÑÑÑÑÑв","мÑÑÑÑÑ","мÑÑÑÑÑ"][h(t)]}),(function(t){return["ÑижнÑв","ÑижденÑ","ÑижнÑ"][h(t)]}),(function(t){return["днÑв","денÑ","днÑ"][h(t)]}),(function(t){return["годин","година","години"][h(t)]}),(function(t){return["Ñ
вилин","Ñ
вилина","Ñ
вилини"][h(t)]}),(function(t){return["ÑекÑнд","ÑекÑнда","ÑекÑнди"][h(t)]}),(function(t){return["мÑлÑÑекÑнд","мÑлÑÑекÑнда","мÑлÑÑекÑнди"][h(t)]}),","),ur:l("ساÙ",(function(t){return 1===t?"Ù
ÛÛÙÛ":"Ù
ÛÛÙÛ"}),(function(t){return 1===t?"ÛÙØªÛ":"ÛÙØªÛ"}),"دÙ",(function(t){return 1===t?"Ú¯Ú¾ÙÙ¹Û":"Ú¯Ú¾ÙÙ¹Û"}),"Ù
ÙÙ¹","سÛÚ©ÙÚ","Ù
ÙÛ Ø³ÛÚ©ÙÚ"),sk:l((function(t){return["rok","roky","roky","rokov"][d(t)]}),(function(t){return["mesiac","mesiace","mesiace","mesiacov"][d(t)]}),(function(t){return["týždeÅ","týždne","týždne","týždÅov"][d(t)]}),(function(t){return["deÅ","dni","dni","dnÃ"][d(t)]}),(function(t){return["hodina","hodiny","hodiny","hodÃn"][d(t)]}),(function(t){return["minúta","minúty","minúty","minút"][d(t)]}),(function(t){return["sekunda","sekundy","sekundy","sekúnd"][d(t)]}),(function(t){return["milisekunda","milisekundy","milisekundy","milisekúnd"][d(t)]}),","),sl:l((function(t){return t%10===1?"leto":t%100===2?"leti":t%100===3||t%100===4||Math.floor(t)!==t&&t%100<=5?"leta":"let"}),(function(t){return t%10===1?"mesec":t%100===2||Math.floor(t)!==t&&t%100<=5?"meseca":t%10===3||t%10===4?"mesece":"mesecev"}),(function(t){return t%10===1?"teden":t%10===2||Math.floor(t)!==t&&t%100<=4?"tedna":t%10===3||t%10===4?"tedne":"tednov"}),(function(t){return t%100===1?"dan":"dni"}),(function(t){return t%10===1?"ura":t%100===2?"uri":t%10===3||t%10===4||Math.floor(t)!==t?"ure":"ur"}),(function(t){return t%10===1?"minuta":t%10===2?"minuti":t%10===3||t%10===4||Math.floor(t)!==t&&t%100<=4?"minute":"minut"}),(function(t){return t%10===1?"sekunda":t%100===2?"sekundi":t%100===3||t%100===4||Math.floor(t)!==t?"sekunde":"sekund"}),(function(t){return t%10===1?"milisekunda":t%100===2?"milisekundi":t%100===3||t%100===4||Math.floor(t)!==t?"milisekunde":"milisekund"}),","),sv:l("Ã¥r",(function(t){return"mÃ¥nad"+(1===t?"":"er")}),(function(t){return"veck"+(1===t?"a":"or")}),(function(t){return"dag"+(1===t?"":"ar")}),(function(t){return"timm"+(1===t?"e":"ar")}),(function(t){return"minut"+(1===t?"":"er")}),(function(t){return"sekund"+(1===t?"":"er")}),(function(t){return"millisekund"+(1===t?"":"er")}),","),sw:r(l((function(t){return 1===t?"mwaka":"miaka"}),(function(t){return 1===t?"mwezi":"miezi"}),"wiki",(function(t){return 1===t?"siku":"masiku"}),(function(t){return 1===t?"saa":"masaa"}),"dakika","sekunde","milisekunde"),{_numberFirst:!0}),tr:l("yıl","ay","hafta","gün","saat","dakika","saniye","milisaniye",","),th:l("à¸à¸µ","à¹à¸à¸·à¸à¸","สัà¸à¸à¸²à¸«à¹","วัà¸","à¸à¸±à¹à¸§à¹à¸¡à¸","à¸à¸²à¸à¸µ","วิà¸à¸²à¸à¸µ","มิลลิวิà¸à¸²à¸à¸µ"),uz:l("yil","oy","hafta","kun","soat","minut","sekund","millisekund"),uz_CYR:l("йил","ой","ҳаÑÑа","кÑн","ÑоаÑ","минÑÑ","ÑекÑнд","миллиÑекÑнд"),vi:l("nÄm","tháng","tuần","ngà y","giá»","phút","giây","mili giây",","),zh_CN:l("å¹´","个æ","å¨","天","å°æ¶","åé","ç§","毫ç§"),zh_TW:l("å¹´","åæ","å¨","天","å°æ","åé","ç§","毫ç§")};function l(t,e,i,n,r,o,s,a,l){var c={y:t,mo:e,w:i,d:n,h:r,m:o,s:s,ms:a};return"undefined"!==typeof l&&(c.decimal=l),c}function c(t){return 2===t?1:t>2&&t<11?2:0}function u(t){return 1===t?0:Math.floor(t)!==t?1:t%10>=2&&t%10<=4&&!(t%100>10&&t%100<20)?2:3}function h(t){return Math.floor(t)!==t?2:t%100>=5&&t%100<=20||t%10>=5&&t%10<=9||t%10===0?0:t%10===1?1:t>1?2:0}function d(t){return 1===t?0:Math.floor(t)!==t?1:t%10>=2&&t%10<=4&&t%100<10?2:3}function f(t){return 1===t||t%10===1&&t%100>20?0:Math.floor(t)!==t||t%10>=2&&t%100>20||t%10>=2&&t%100<10?1:2}function p(t){return t%10===1&&t%100!==11}function m(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function g(t){var e=[t.language];if(m(t,"fallbacks")){if(!o(t.fallbacks)||!t.fallbacks.length)throw new Error("fallbacks must be an array with at least one element");e=e.concat(t.fallbacks)}for(var i=0;i<e.length;i++){var n=e[i];if(m(t.languages,n))return t.languages[n];if(m(a,n))return a[n]}throw new Error("No language found.")}function y(t,e,i){var n,r,o,s=t.unitName,a=t.unitCount,l=i.spacer,c=i.maxDecimalPoints;
7n=m(i,"decimal")?i.decimal:m(e,"decimal")?e.decimal:".","digitReplacements"in i?r=i.digitReplacements:"_digitReplacements"in e&&(r=e._digitReplacements);var u=void 0===c?a:Math.floor(a*Math.pow(10,c))/Math.pow(10,c),h=u.toString();if(e._hideCountIf2&&2===a)o="",l="";else if(r){o="";for(var d=0;d<h.length;d++){var f=h[d];o+="."===f?n:r[f]}}else o=h.replace(".",n);var p,g=e[s];return p="function"===typeof g?g(a):g,e._numberFirst?p+l+o:o+l+p}function _(t,e){var i,n,r,o,s=e.units,a=e.unitMeasures,l="largest"in e?e.largest:1/0;if(!s.length)return[];var c={};for(o=t,n=0;n<s.length;n++){i=s[n];var u=a[i],h=n===s.length-1;r=h?o/u:Math.floor(o/u),c[i]=r,o-=r*u}if(e.round){var d=l;for(n=0;n<s.length;n++)if(i=s[n],r=c[i],0!==r&&(d--,0===d)){for(var f=n+1;f<s.length;f++){var p=s[f],m=c[p];c[i]+=m*a[p]/a[i],c[p]=0}break}for(n=s.length-1;n>=0;n--)if(i=s[n],r=c[i],0!==r){var g=Math.round(r);if(c[i]=g,0===n)break;var y=s[n-1],_=a[y],v=Math.floor(g*a[i]/_);if(!v)break;c[y]+=v,c[i]=0}}var b=[];for(n=0;n<s.length&&b.length<l;n++)i=s[n],r=c[i],r&&b.push({unitName:i,unitCount:r});return b}function v(t,e){var i=g(e);if(!t.length){var n=e.units,r=n[n.length-1];return y({unitName:r,unitCount:0},i,e)}var o,s=e.conjunction,a=e.serialComma;o=m(e,"delimiter")?e.delimiter:m(i,"delimiter")?i.delimiter:", ";for(var l=[],c=0;c<t.length;c++)l.push(y(t[c],i,e));return s&&1!==t.length?2===t.length?l.join(s):l.slice(0,-1).join(o)+(a?",":"")+s+l.slice(-1):l.join(o)}function b(t){var e=function(t,i){t=Math.abs(t);var n=r({},e,i||{}),o=_(t,n);return v(o,n)};return r(e,{language:"en",spacer:" ",conjunction:"",serialComma:!0,units:["y","mo","w","d","h","m","s"],languages:{},round:!1,unitMeasures:{y:315576e5,mo:26298e5,w:6048e5,d:864e5,h:36e5,m:6e4,s:1e3,ms:1}},t)}var x=r(b({}),{getSupportedLanguages:function(){var t=[];for(var e in a)m(a,e)&&"gr"!==e&&t.push(e);return t},humanizer:b});n=function(){return x}.call(e,i,e,t),void 0===n||(t.exports=n)})()},"8f69":function(t,e,i){"use strict";i.d(e,"c",(function(){return w["a"]})),i.d(e,"a",(function(){return f["a"]})),i.d(e,"b",(function(){return g})),i.d(e,"d",(function(){return y}));var n=i("9ab4"),r="Invariant Violation",o=Object.setPrototypeOf,s=void 0===o?function(t,e){return t.__proto__=e,t}:o,a=function(t){function e(i){void 0===i&&(i=r);var n=t.call(this,"number"===typeof i?r+": "+i+" (see https://github.com/apollographql/invariant-packages)":i)||this;return n.framesToPop=1,n.name=r,s(n,e.prototype),n}return Object(n["c"])(e,t),e}(Error);function l(t,e){if(!t)throw new a(e)}var c=["debug","log","warn","error","silent"],u=c.indexOf("log");function h(t){return function(){if(c.indexOf(t)>=u){var e=console[t]||console.log;return e.apply(console,arguments)}}}(function(t){t.debug=h("debug"),t.log=h("log"),t.warn=h("warn"),t.error=h("error")})(l||(l={}));var d=i("0e7f"),f=i("3f11"),p=i("f846");function m(t){return function(e){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];if("number"===typeof e){var r=e;e=b(r),e||(e=x(r,i),i=[])}t.apply(void 0,[e].concat(i))}}var g=Object.assign((function(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];t||l(t,b(e,i)||x(e,i))}),{debug:m(l.debug),log:m(l.log),warn:m(l.warn),error:m(l.error)});function y(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return new a(b(t,e)||x(t,e))}var _=Symbol.for("ApolloErrorMessageHandler_"+d["a"]);function v(t){if("string"==typeof t)return t;try{return Object(p["a"])(t,2).slice(0,1e3)}catch(o){return"<non-serializable>"}}function b(t,e){if(void 0===e&&(e=[]),t)return f["a"][_]&&f["a"][_](t,e.map(v))}function x(t,e){if(void 0===e&&(e=[]),t)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:d["a"],message:t,args:e.map(v)})))}var w=i("9f3c");globalThis.__DEV__},"8f9a":function(t,e,i){var n=function(){var t={},e=Math.PI/180,i=180/Math.PI,n=6378137,r=20037508.342789244;function o(t){return Number(t)===t&&t%1!==0}function s(e){if(e=e||{},this.size=e.size||256,this.expansion=!0===e.antimeridian?2:1,!t[this.size]){var i=this.size,n=t[this.size]={};n.Bc=[],n.Cc=[],n.zc=[],n.Ac=[];for(var r=0;r<30;r++)n.Bc.push(i/360),n.Cc.push(i/(2*Math.PI)),n.zc.push(i/2),n.Ac.push(i),i*=2}this.Bc=t[this.size].Bc,this.Cc=t[this.size].Cc,this.zc=t[this.size].zc,this.Ac=t[this.size].Ac}return s.prototype.px=function(t,i){if(o(i)){var n=this.size*Math.pow(2,i),r=n/2,s=n/360,a=n/(2*Math.PI),l=n,c=Math.min(Math.max(Math.sin(e*t[1]),-.9999),.9999),u=r+t[0]*s,h=r+.5*Math.log((1+c)/(1-c))*-a;return u>l*this.expansion&&(u=l*this.expansion),h>l&&(h=l),[u,h]}r=this.zc[i],c=Math.min(Math.max(Math.sin(e*t[1]),-.9999),.9999),u=Math.round(r+t[0]*this.Bc[i]),h=Math.round(r+.5*Math.log((1+c)/(1-c))*-this.Cc[i]);return u>this.Ac[i]*this.expansion&&(u=this.Ac[i]*this.expansion),h>this.Ac[i]&&(h=this.Ac[i]),[u,h]},s.prototype.ll=function(t,e){if(o(e)){var n=this.size*Math.pow(2,e),r=n/360,s=n/(2*Math.PI),a=n/2,l=(t[1]-a)/-s,c=(t[0]-a)/r,u=i*(2*Math.atan(Math.exp(l))-.5*Math.PI);return[c,u]}l=(t[1]-this.zc[e])/-this.Cc[e],c=(t[0]-this.zc[e])/this.Bc[e],u=i*(2*Math.atan(Math.exp(l))-.5*Math.PI);return[c,u]}
7,s.prototype.bbox=function(t,e,i,n,r){n&&(e=Math.pow(2,i)-1-e);var o=[t*this.size,(+e+1)*this.size],s=[(+t+1)*this.size,e*this.size],a=this.ll(o,i).concat(this.ll(s,i));return"900913"===r?this.convert(a,"900913"):a},s.prototype.xyz=function(t,e,i,n){"900913"===n&&(t=this.convert(t,"WGS84"));var r=[t[0],t[1]],o=[t[2],t[3]],s=this.px(r,e),a=this.px(o,e),l=[Math.floor(s[0]/this.size),Math.floor((a[0]-1)/this.size)],c=[Math.floor(a[1]/this.size),Math.floor((s[1]-1)/this.size)],u={minX:Math.min.apply(Math,l)<0?0:Math.min.apply(Math,l),minY:Math.min.apply(Math,c)<0?0:Math.min.apply(Math,c),maxX:Math.max.apply(Math,l),maxY:Math.max.apply(Math,c)};if(i){var h={minY:Math.pow(2,e)-1-u.maxY,maxY:Math.pow(2,e)-1-u.minY};u.minY=h.minY,u.maxY=h.maxY}return u},s.prototype.convert=function(t,e){return"900913"===e?this.forward(t.slice(0,2)).concat(this.forward(t.slice(2,4))):this.inverse(t.slice(0,2)).concat(this.inverse(t.slice(2,4)))},s.prototype.forward=function(t){var i=[n*t[0]*e,n*Math.log(Math.tan(.25*Math.PI+.5*t[1]*e))];return i[0]>r&&(i[0]=r),i[0]<-r&&(i[0]=-r),i[1]>r&&(i[1]=r),i[1]<-r&&(i[1]=-r),i},s.prototype.inverse=function(t){return[t[0]*i/n,(.5*Math.PI-2*Math.atan(Math.exp(-t[1]/n)))*i]},s}();t.exports=n},"8ff2":function(t,e,i){},"90a2":function(t,e,i){"use strict";i("e9f5"),i("a732");function n(t,e,i){if("undefined"===typeof window||!("IntersectionObserver"in window))return;const n=e.modifiers||{},o=e.value,{handler:s,options:a}="object"===typeof o?o:{handler:o,options:{}},l=new IntersectionObserver((o=[],a)=>{var l;const c=null===(l=t._observe)||void 0===l?void 0:l[i.context._uid];if(!c)return;const u=o.some(t=>t.isIntersecting);!s||n.quiet&&!c.init||n.once&&!u&&!c.init||s(o,a,u),u&&n.once?r(t,e,i):c.init=!0},a);t._observe=Object(t._observe),t._observe[i.context._uid]={init:!1,observer:l},l.observe(t)}function r(t,e,i){var n;const r=null===(n=t._observe)||void 0===n?void 0:n[i.context._uid];r&&(r.observer.unobserve(t),delete t._observe[i.context._uid])}const o={inserted:n,unbind:r};e["a"]=o},"90d8":function(t,e,i){"use strict";var n=i("c65b"),r=i("1a2d"),o=i("3a9b"),s=i("ad6d"),a=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in a||r(t,"flags")||!o(a,t)?e:n(s,t)}},"90e3":function(t,e,i){"use strict";var n=i("e330"),r=0,o=Math.random(),s=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++r+o,36)}},"910d":function(t,e,i){"use strict";var n=i("23e7"),r=i("c65b"),o=i("59ed"),s=i("825a"),a=i("46c4"),l=i("c5cc"),c=i("9bdd"),u=i("c430"),h=l((function(){var t,e,i,n=this.iterator,o=this.predicate,a=this.next;while(1){if(t=s(r(a,n)),e=this.done=!!t.done,e)return;if(i=t.value,c(n,o,[i,this.counter++],!0))return i}}));n({target:"Iterator",proto:!0,real:!0,forced:u},{filter:function(t){return s(this),o(t),new h(a(this),{predicate:t})}})},9112:function(t,e,i){"use strict";var n=i("83ab"),r=i("9bf2"),o=i("5c6c");t.exports=n?function(t,e,i){return r.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},9152:function(t,e){ 8/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ 9e.read=function(t,e,i,n,r){var o,s,a=8*r-n-1,l=(1<<a)-1,c=l>>1,u=-7,h=i?r-1:0,d=i?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-u)-1,f>>=-u,u+=a;u>0;o=256*o+t[e+h],h+=d,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=n;u>0;s=256*s+t[e+h],h+=d,u-=8);if(0===o)o=1-c;else{if(o===l)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),o-=c}return(f?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,i,n,r,o){var s,a,l,c=8*o-r-1,u=(1<<c)-1,h=u>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,p=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),e+=s+h>=1?d/l:d*Math.pow(2,1-h),e*l>=2&&(s++,l/=2),s+h>=u?(a=0,s=u):s+h>=1?(a=(e*l-1)*Math.pow(2,r),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,r),s=0));r>=8;t[i+f]=255&a,f+=p,a/=256,r-=8);for(s=s<<r|a,c+=r;c>0;t[i+f]=255&s,f+=p,s/=256,c-=8);t[i+f-p]|=128*m}},9257:function(t,e,i){"use strict";i.d(e,"a",(function(){return n})),i.d(e,"d",(function(){return r})),i.d(e,"c",(function(){return o}
9)),i.d(e,"e",(function(){return a})),i.d(e,"b",(function(){return l}));class n{constructor(t,e,i){this.start=t.start,this.end=e.end,this.startToken=t,this.endToken=e,this.source=i}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class r{constructor(t,e,i,n,r,o){this.kind=t,this.start=e,this.end=i,this.line=n,this.column=r,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const o={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},s=new Set(Object.keys(o));function a(t){const e=null===t||void 0===t?void 0:t.kind;return"string"===typeof e&&s.has(e)}var l;(function(t){t["QUERY"]="query",t["MUTATION"]="mutation",t["SUBSCRIPTION"]="subscription"})(l||(l={}))},"92cd":function(t,e,i){"use strict";var n,r,o,s,a;t.exports=c;var l=["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon","GeometryCollection"];function c(t){s=2,a=Math.pow(10,6),o=null,n=[],r=[];var e=t.readFields(u,{});return n=null,e}function u(t,e,i){1===t?n.push(i.readString()):2===t?s=i.readVarint():3===t?a=Math.pow(10,i.readVarint()):4===t?h(i,e):5===t?d(i,e):6===t&&f(i,e)}function h(t,e){return e.type="FeatureCollection",e.features=[],t.readMessage(p,e)}function d(t,e){e.type="Feature";var i=t.readMessage(m,e);return"geometry"in i||(i.geometry=null),i}function f(t,e){return e.type="Point",t.readMessage(g,e)}function p(t,e,i){1===t?e.features.push(d(i,{})):13===t?r.push(_(i)):15===t&&v(i,e)}function m(t,e,i){1===t?e.geometry=f(i,{}):11===t?e.id=i.readString():12===t?e.id=i.readSVarint():13===t?r.push(_(i)):14===t?e.properties=v(i,{}):15===t&&v(i,e)}function g(t,e,i){1===t?e.type=l[i.readVarint()]:2===t?o=i.readPackedVarint():3===t?y(e,i,e.type):4===t?(e.geometries=e.geometries||[],e.geometries.push(f(i,{}))):13===t?r.push(_(i)):15===t&&v(i,e)}function y(t,e,i){"Point"===i?t.coordinates=b(e):"MultiPoint"===i?t.coordinates=w(e,!0):"LineString"===i?t.coordinates=w(e):"MultiLineString"===i?t.coordinates=E(e):"Polygon"===i?t.coordinates=E(e,!0):"MultiPolygon"===i&&(t.coordinates=T(e))}function _(t){var e=t.readVarint()+t.pos,i=null;while(t.pos<e){var n=t.readVarint(),r=n>>3;1===r?i=t.readString():2===r?i=t.readDouble():3===r?i=t.readVarint():4===r?i=-t.readVarint():5===r?i=t.readBoolean():6===r&&(i=JSON.parse(t.readString()))}return i}function v(t,e){var i=t.readVarint()+t.pos;while(t.pos<i)e[n[t.readVarint()]]=r[t.readVarint()];return r=[],e}function b(t){var e=t.readVarint()+t.pos,i=[];while(t.pos<e)i.push(t.readSVarint()/a);return i}function x(t,e,i,n){var r,o,l=0,c=[],u=[];for(o=0;o<s;o++)u[o]=0;while(i?l<i:t.pos<e){for(r=[],o=0;o<s;o++)u[o]+=t.readSVarint(),r[o]=u[o]/a;c.push(r),l++}return n&&c.push(c[0]),c}function w(t){return x(t,t.readVarint()+t.pos)}function E(t,e){var i=t.readVarint()+t.pos;if(!o)return[x(t,i,null,e)];for(var n=[],r=0;r<o.length;r++)n.push(x(t,i,o[r],e));return o=null,n}function T(t){var e=t.readVarint()+t.pos;if(!o)return[[x(t,e,null,!0)]];for(var i=[],n=1,r=0;r<o[0];r++){for(var s=[],a=0;a<o[n];a++)s.push(x(t,e,o[n+1+a],!0));n+=o[n]+1,i.push(s)}return o=null,i}}
9,9485:function(t,e,i){"use strict";var n=i("23e7"),r=i("2266"),o=i("59ed"),s=i("825a"),a=i("46c4"),l=TypeError;n({target:"Iterator",proto:!0,real:!0},{reduce:function(t){s(this),o(t);var e=a(this),i=arguments.length<2,n=i?void 0:arguments[1],c=0;if(r(e,(function(e){i?(i=!1,n=e):n=t(n,e,c),c++}),{IS_RECORD:!0}),i)throw new l("Reduce of empty iterator with no initial value");return n}})},"94ca":function(t,e,i){"use strict";var n=i("d039"),r=i("1626"),o=/#|\.prototype\./,s=function(t,e){var i=l[a(t)];return i===u||i!==c&&(r(e)?n(e):!!e)},a=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=s.data={},c=s.NATIVE="N",u=s.POLYFILL="P";t.exports=s},"94ed":function(t,e,i){"use strict";i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return o})),i.d(e,"d",(function(){return s})),i.d(e,"e",(function(){return a})),i.d(e,"f",(function(){return l}));var n="M3,5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5V19A2,2 0 0,1 19,21H5C3.89,21 3,20.1 3,19V5M11,6V14.5L7.5,11L6.08,12.42L12,18.34L17.92,12.42L16.5,11L13,14.5V6H11Z",r="M19,3A2,2 0 0,1 21,5V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V5C3,3.89 3.9,3 5,3H19M18,11H9.5L13,7.5L11.58,6.08L5.66,12L11.58,17.92L13,16.5L9.5,13H18V11Z",o="M5,21A2,2 0 0,1 3,19V5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5V19C21,20.11 20.1,21 19,21H5M6,13H14.5L11,16.5L12.42,17.92L18.34,12L12.42,6.08L11,7.5L14.5,11H6V13Z",s="M21,19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V5A2,2 0 0,1 5,3H19C20.11,3 21,3.9 21,5V19M13,18V9.5L16.5,13L17.92,11.58L12,5.66L6.08,11.58L7.5,13L11,9.5V18H13Z",a="M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z",l="M17,13H13V17H11V13H7V11H11V7H13V11H17M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z"},"953b":function(t,e,i){"use strict";var n=i("dc19"),r=i("cb27"),o=i("8e16"),s=i("7f65"),a=i("384f"),l=i("5388"),c=r.Set,u=r.add,h=r.has;t.exports=function(t){var e=n(this),i=s(t),r=new c;return o(e)>i.size?l(i.getIterator(),(function(t){h(e,t)&&u(r,t)})):a(e,(function(t){i.includes(t)&&u(r,t)})),r}},9547:function(t,e,i){"use strict";var n=i("23e7"),r=i("825a"),o=i("2266"),s=i("46c4"),a=[].push;n({target:"Iterator",proto:!0,real:!0},{toArray:function(){var t=[];return o(s(r(this)),a,{that:t,IS_RECORD:!0}),t}})},"957f":function(t,e,i){"use strict";i.d(e,"a",(function(){return Bt}));var n=i("9ab4"),r=i("8f69"),o=i("4251"),s=i("11ed"),a=i("0ae3"),l=i("876b"),c=i("b070"),u=i("2995"),h=i("9a98"),d=i("6a8f"),f=i("f45e"),p=i("615f"),m=i("a447"),g=function(){function t(){this.assumeImmutableResults=!1,this.getFragmentDoc=Object(o["c"])(a["c"],{max:l["a"]["cache.fragmentQueryDocuments"]||1e3,cache:d["a"]})}return t.prototype.lookupFragment=function(t){return null},t.prototype.batch=function(t){var e,i=this,n="string"===typeof t.optimistic?t.optimistic:!1===t.optimistic?null:void 0;return this.performTransaction((function(){return e=t.update(i)}),n),e},t.prototype.recordOptimisticTransaction=function(t,e){this.performTransaction(t,e)},t.prototype.transformDocument=function(t){return t},t.prototype.transformForLink=function(t){return t},t.prototype.identify=function(t){},t.prototype.gc=function(){return[]},t.prototype.modify=function(t){return!1},t.prototype.readQuery=function(t,e){return void 0===e&&(e=!!t.optimistic),this.read(Object(n["a"])(Object(n["a"])({},t),{rootId:t.id||"ROOT_QUERY",optimistic:e}))},t.prototype.watchFragment=function(t){var e=this,i=t.fragment,o=t.fragmentName,s=t.from,a=t.optimistic,l=void 0===a||a,d=Object(n["e"])(t,["fragment","fragmentName","from","optimistic"]),f=this.getFragmentDoc(i,o),g="undefined"===typeof s||"string"===typeof s?s:this.identify(s),y=!!t[Symbol.for("apollo.dataMasking")];if(!1!==globalThis.__DEV__){var _=o||Object(c["c"])(i).name.value;g||!1!==globalThis.__DEV__&&r["b"].warn(1,_)}var v,b=Object(n["a"])(Object(n["a"])({},d),{returnPartialData:!0,id:g,query:f,optimistic:l});return new u["a"]((function(r){return e.watch(Object(n["a"])(Object(n["a"])({},b),{immediate:!0,callback:function(s){var a=y?Object(m["a"])(s.result,i,e,o):s.result;if(!v||!Object(p["a"])(f,{data:v.result},{data:a},t.variables)){var l={data:a,complete:!!s.complete};s.missing&&(l.missing=Object(h["c"])(s.missing.map((function(t){return t.missing})))),v=Object(n["a"])(Object(n["a"])({},s),{result:a}),r.next(l)}}}))}))},t.prototype.readFragment=function(t,e){return void 0===e&&(e=!!t.o
9ptimistic),this.read(Object(n["a"])(Object(n["a"])({},t),{query:this.getFragmentDoc(t.fragment,t.fragmentName),rootId:t.id,optimistic:e}))},t.prototype.writeQuery=function(t){var e=t.id,i=t.data,r=Object(n["e"])(t,["id","data"]);return this.write(Object.assign(r,{dataId:e||"ROOT_QUERY",result:i}))},t.prototype.writeFragment=function(t){var e=t.id,i=t.data,r=t.fragment,o=t.fragmentName,s=Object(n["e"])(t,["id","data","fragment","fragmentName"]);return this.write(Object.assign(s,{query:this.getFragmentDoc(r,o),dataId:e,result:i}))},t.prototype.updateQuery=function(t,e){return this.batch({update:function(i){var r=i.readQuery(t),o=e(r);return void 0===o||null===o?r:(i.writeQuery(Object(n["a"])(Object(n["a"])({},t),{data:o})),o)}})},t.prototype.updateFragment=function(t,e){return this.batch({update:function(i){var r=i.readFragment(t),o=e(r);return void 0===o||null===o?r:(i.writeFragment(Object(n["a"])(Object(n["a"])({},t),{data:o})),o)}})},t}();!1!==globalThis.__DEV__&&(g.prototype.getMemoryInternals=f["a"]);var y=function(t){function e(i,n,r,o){var s,a=t.call(this,i)||this;if(a.message=i,a.path=n,a.query=r,a.variables=o,Array.isArray(a.path)){a.missing=a.message;for(var l=a.path.length-1;l>=0;--l)a.missing=(s={},s[a.path[l]]=a.missing,s)}else a.missing=a.path;return a.__proto__=e.prototype,a}return Object(n["c"])(e,t),e}(Error),_=i("2cee"),v=i("0403"),b=i("eba2"),x=i("1c5e"),w=i("e7a4"),E=i("fe35"),T=i("cdfd"),S=i("cca5"),k=i("41c0"),O=i("2c4c"),A=i("4623"),C=i("eee5"),I=i("81c9"),M=Object.prototype.hasOwnProperty;function P(t){return null===t||void 0===t}function D(t,e){var i=t.__typename,n=t.id,r=t._id;if("string"===typeof i&&(e&&(e.keyObject=P(n)?P(r)?void 0:{_id:r}:{id:n}),P(n)&&!P(r)&&(n=r),!P(n)))return"".concat(i,":").concat("number"===typeof n||"string"===typeof n?n:JSON.stringify(n))}var L={dataIdFromObject:D,addTypename:!0,resultCaching:!0,canonizeResults:!1};function R(t){return Object(S["a"])(L,t)}function z(t){var e=t.canonizeResults;return void 0===e?L.canonizeResults:e}function j(t,e){return Object(w["g"])(e)?t.get(e.__ref,"__typename"):e&&e.__typename}var B=/^[_a-z][_0-9a-z]*/i;function F(t){var e=t.match(B);return e?e[0]:t}function N(t,e,i){return!!Object(A["a"])(e)&&(Object(I["a"])(e)?e.every((function(e){return N(t,e,i)})):t.selections.every((function(t){if(Object(w["e"])(t)&&Object(k["d"])(t,i)){var n=Object(w["i"])(t);return M.call(e,n)&&(!t.selectionSet||N(t.selectionSet,e[n],i))}return!0})))}function V(t){return Object(A["a"])(t)&&!Object(w["g"])(t)&&!Object(I["a"])(t)}function $(){return new h["a"]}function U(t,e){var i=Object(a["a"])(Object(c["d"])(t));return{fragmentMap:i,lookupFragment:function(t){var n=i[t];return!n&&e&&(n=e.lookup(t)),n||null}}}var q=Object.create(null),G=function(){return q},W=Object.create(null),Z=function(){function t(t,e){var i=this;this.policies=t,this.group=e,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(t,e){return Object(O["a"])(Object(w["g"])(t)?i.get(t.__ref,e):t&&t[e])},this.canRead=function(t){return Object(w["g"])(t)?i.has(t.__ref):"object"===typeof t},this.toReference=function(t,e){if("string"===typeof t)return Object(w["h"])(t);if(Object(w["g"])(t))return t;var n=i.policies.identify(t)[0];if(n){var r=Object(w["h"])(n);return e&&i.merge(n,t),r}}}return t.prototype.toObject=function(){return Object(n["a"])({},this.data)},t.prototype.has=function(t){return void 0!==this.lookup(t,!0)},t.prototype.get=function(t,e){if(this.group.depend(t,e),M.call(this.data,t)){var i=this.data[t];if(i&&M.call(i,e))return i[e]}return"__typename"===e&&M.call(this.policies.rootTypenamesById,t)?this.policies.rootTypenamesById[t]:this instanceof Y?this.parent.get(t,e):void 0},t.prototype.lookup=function(t,e){return e&&this.group.depend(t,"__exists"),M.call(this.data,t)?this.data[t]:this instanceof Y?this.parent.lookup(t,e):this.policies.rootTypenamesById[t]?Object.create(null):void 0},t.prototype.merge=function(t,e){var i,n=this;Object(w["g"])(t)&&(t=t.__ref),Object(w["g"])(e)&&(e=e.__ref);var o="string"===typeof t?this.lookup(i=t):t,s="string"===typeof e?this.lookup(i=e):e;if(s){Object(r["b"])("string"===typeof i,2);
9var a=new h["a"](J).merge(o,s);if(this.data[i]=a,a!==o&&(delete this.refs[i],this.group.caching)){var l=Object.create(null);o||(l.__exists=1),Object.keys(s).forEach((function(t){if(!o||o[t]!==a[t]){l[t]=1;var e=F(t);e===t||n.policies.hasKeyArgs(a.__typename,e)||(l[e]=1),void 0!==a[t]||n instanceof Y||delete a[t]}})),!l.__typename||o&&o.__typename||this.policies.rootTypenamesById[i]!==a.__typename||delete l.__typename,Object.keys(l).forEach((function(t){return n.group.dirty(i,t)}))}}},t.prototype.modify=function(t,e){var i=this,o=this.lookup(t);if(o){var s=Object.create(null),a=!1,l=!0,c={DELETE:q,INVALIDATE:W,isReference:w["g"],toReference:this.toReference,canRead:this.canRead,readField:function(e,n){return i.policies.readField("string"===typeof e?{fieldName:e,from:n||Object(w["h"])(t)}:e,{store:i})}};if(Object.keys(o).forEach((function(u){var h=F(u),d=o[u];if(void 0!==d){var f="function"===typeof e?e:e[u]||e[h];if(f){var p=f===G?q:f(Object(O["a"])(d),Object(n["a"])(Object(n["a"])({},c),{fieldName:h,storeFieldName:u,storage:i.getStorage(t,u)}));if(p===W)i.group.dirty(t,u);else if(p===q&&(p=void 0),p!==d&&(s[u]=p,a=!0,d=p,!1!==globalThis.__DEV__)){var m=function(t){if(void 0===i.lookup(t.__ref))return!1!==globalThis.__DEV__&&r["b"].warn(3,t),!0};if(Object(w["g"])(p))m(p);else if(Array.isArray(p))for(var g=!1,y=void 0,_=0,v=p;_<v.length;_++){var b=v[_];if(Object(w["g"])(b)){if(g=!0,m(b))break}else if("object"===typeof b&&b){var x=i.policies.identify(b)[0];x&&(y=b)}if(g&&void 0!==y){!1!==globalThis.__DEV__&&r["b"].warn(4,y);break}}}}void 0!==d&&(l=!1)}})),a)return this.merge(t,s),l&&(this instanceof Y?this.data[t]=void 0:delete this.data[t],this.group.dirty(t,"__exists")),!0}return!1},t.prototype.delete=function(t,e,i){var n,r=this.lookup(t);if(r){var o=this.getFieldValue(r,"__typename"),s=e&&i?this.policies.getStoreFieldName({typename:o,fieldName:e,args:i}):e;return this.modify(t,s?(n={},n[s]=G,n):G)}return!1},t.prototype.evict=function(t,e){var i=!1;return t.id&&(M.call(this.data,t.id)&&(i=this.delete(t.id,t.fieldName,t.args)),this instanceof Y&&this!==e&&(i=this.parent.evict(t,e)||i),(t.fieldName||i)&&this.group.dirty(t.id,t.fieldName||"__exists")),i},t.prototype.clear=function(){this.replace(null)},t.prototype.extract=function(){var t=this,e=this.toObject(),i=[];return this.getRootIdSet().forEach((function(e){M.call(t.policies.rootTypenamesById,e)||i.push(e)})),i.length&&(e.__META={extraRootIds:i.sort()}),e},t.prototype.replace=function(t){var e=this;if(Object.keys(this.data).forEach((function(i){t&&M.call(t,i)||e.delete(i)})),t){var i=t.__META,r=Object(n["e"])(t,["__META"]);Object.keys(r).forEach((function(t){e.merge(t,r[t])})),i&&i.extraRootIds.forEach(this.retain,this)}},t.prototype.retain=function(t){return this.rootIds[t]=(this.rootIds[t]||0)+1},t.prototype.release=function(t){if(this.rootIds[t]>0){var e=--this.rootIds[t];return e||delete this.rootIds[t],e}return 0},t.prototype.getRootIdSet=function(t){return void 0===t&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof Y?this.parent.getRootIdSet(t):Object.keys(this.policies.rootTypenamesById).forEach(t.add,t),t},t.prototype.gc=function(){var t=this,e=this.getRootIdSet(),i=this.toObject();e.forEach((function(n){M.call(i,n)&&(Object.keys(t.findChildRefIds(n)).forEach(e.add,e),delete i[n])}));var n=Object.keys(i);if(n.length){var r=this;while(r instanceof Y)r=r.parent;n.forEach((function(t){return r.delete(t)}))}return n},t.prototype.findChildRefIds=function(t){if(!M.call(this.refs,t)){var e=this.refs[t]=Object.create(null),i=this.data[t];if(!i)return e;var n=new Set([i]);n.forEach((function(t){Object(w["g"])(t)&&(e[t.__ref]=!0),Object(A["a"])(t)&&Object.keys(t).forEach((function(e){var i=t[e];Object(A["a"])(i)&&n.add(i)}))}))}return this.refs[t]},t.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},t}(),H=function(){function t(t,e){void 0===e&&(e=null),this.caching=t,this.parent=e,this.d=null,this.resetCaching()}return t.prototype.resetCaching=function(){this.d=this.caching?Object(o["b"])():null,this.keyMaker=new C["a"](T["c"])}
9,t.prototype.depend=function(t,e){if(this.d){this.d(X(t,e));var i=F(e);i!==e&&this.d(X(t,i)),this.parent&&this.parent.depend(t,e)}},t.prototype.dirty=function(t,e){this.d&&this.d.dirty(X(t,e),"__exists"===e?"forget":"setDirty")},t}();function X(t,e){return e+"#"+t}function Q(t,e){tt(t)&&t.group.depend(e,"__exists")}(function(t){var e=function(t){function e(e){var i=e.policies,n=e.resultCaching,r=void 0===n||n,o=e.seed,s=t.call(this,i,new H(r))||this;return s.stump=new K(s),s.storageTrie=new C["a"](T["c"]),o&&s.replace(o),s}return Object(n["c"])(e,t),e.prototype.addLayer=function(t,e){return this.stump.addLayer(t,e)},e.prototype.removeLayer=function(){return this},e.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},e}(t);t.Root=e})(Z||(Z={}));var Y=function(t){function e(e,i,n,r){var o=t.call(this,i.policies,r)||this;return o.id=e,o.parent=i,o.replay=n,o.group=r,n(o),o}return Object(n["c"])(e,t),e.prototype.addLayer=function(t,i){return new e(t,this,i,this.group)},e.prototype.removeLayer=function(t){var e=this,i=this.parent.removeLayer(t);return t===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(t){var n=e.data[t],r=i["lookup"](t);r?n?n!==r&&Object.keys(n).forEach((function(i){Object(s["b"])(n[i],r[i])||e.group.dirty(t,i)})):(e.group.dirty(t,"__exists"),Object.keys(r).forEach((function(i){e.group.dirty(t,i)}))):e.delete(t)})),i):i===this.parent?this:i.addLayer(this.id,this.replay)},e.prototype.toObject=function(){return Object(n["a"])(Object(n["a"])({},this.parent.toObject()),this.data)},e.prototype.findChildRefIds=function(e){var i=this.parent.findChildRefIds(e);return M.call(this.data,e)?Object(n["a"])(Object(n["a"])({},i),t.prototype.findChildRefIds.call(this,e)):i},e.prototype.getStorage=function(){var t=this.parent;while(t.parent)t=t.parent;return t.getStorage.apply(t,arguments)},e}(Z),K=function(t){function e(e){return t.call(this,"EntityStore.Stump",e,(function(){}),new H(e.group.caching,e.group))||this}return Object(n["c"])(e,t),e.prototype.removeLayer=function(){return this},e.prototype.merge=function(t,e){return this.parent.merge(t,e)},e}(Y);function J(t,e,i){var n=t[i],r=e[i];return Object(s["b"])(n,r)?n:r}function tt(t){return!!(t instanceof Z&&t.group.caching)}function et(t){return Object(A["a"])(t)?Object(I["a"])(t)?t.slice(0):Object(n["a"])({__proto__:Object.getPrototypeOf(t)},t):t}var it=function(){function t(){this.known=new(T["d"]?WeakSet:Set),this.pool=new C["a"](T["c"]),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return t.prototype.isKnown=function(t){return Object(A["a"])(t)&&this.known.has(t)},t.prototype.pass=function(t){if(Object(A["a"])(t)){var e=et(t);return this.passes.set(e,t),e}return t},t.prototype.admit=function(t){var e=this;if(Object(A["a"])(t)){var i=this.passes.get(t);if(i)return i;var n=Object.getPrototypeOf(t);switch(n){case Array.prototype:if(this.known.has(t))return t;var r=t.map(this.admit,this),o=this.pool.lookupArray(r);return o.array||(this.known.add(o.array=r),!1!==globalThis.__DEV__&&Object.freeze(r)),o.array;case null:case Object.prototype:if(this.known.has(t))return t;var s=Object.getPrototypeOf(t),a=[s],l=this.sortedKeys(t);a.push(l.json);var c=a.length;l.sorted.forEach((function(i){a.push(e.admit(t[i]))}));o=this.pool.lookupArray(a);if(!o.object){var u=o.object=Object.create(s);this.known.add(u),l.sorted.forEach((function(t,e){u[t]=a[c+e]})),!1!==globalThis.__DEV__&&Object.freeze(u)}return o.object}}return t},t.prototype.sortedKeys=function(t){var e=Object.keys(t),i=this.pool.lookupArray(e);if(!i.keys){e.sort();var n=JSON.stringify(e);(i.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,i.keys={sorted:e,json:n})}return i.keys},t}();function nt(t){return[t.selectionSet,t.objectOrReference,t.context,t.context.canonizeResults]}var rt=function(){function t(t){var e=this;this.knownResults=new(T["c"]?WeakMap:Map),this.config=Object(S["a"])(t,{addT
9ypename:!1!==t.addTypename,canonizeResults:z(t)}),this.canon=t.canon||new it,this.executeSelectionSet=Object(o["c"])((function(t){var i,r=t.context.canonizeResults,o=nt(t);o[3]=!r;var s=(i=e.executeSelectionSet).peek.apply(i,o);return s?r?Object(n["a"])(Object(n["a"])({},s),{result:e.canon.admit(s.result)}):s:(Q(t.context.store,t.enclosingRef.__ref),e.execSelectionSetImpl(t))}),{max:this.config.resultCacheMaxSize||l["a"]["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:nt,makeCacheKey:function(t,e,i,n){if(tt(i.store))return i.store.makeCacheKey(t,Object(w["g"])(e)?e.__ref:e,i.varString,n)}}),this.executeSubSelectedArray=Object(o["c"])((function(t){return Q(t.context.store,t.enclosingRef.__ref),e.execSubSelectedArrayImpl(t)}),{max:this.config.resultCacheMaxSize||l["a"]["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(t){var e=t.field,i=t.array,n=t.context;if(tt(n.store))return n.store.makeCacheKey(e,i,n.varString)}})}return t.prototype.resetCanon=function(){this.canon=new it},t.prototype.diffQueryAgainstStore=function(t){var e=t.store,i=t.query,r=t.rootId,o=void 0===r?"ROOT_QUERY":r,s=t.variables,a=t.returnPartialData,l=void 0===a||a,u=t.canonizeResults,h=void 0===u?this.config.canonizeResults:u,d=this.config.cache.policies;s=Object(n["a"])(Object(n["a"])({},Object(c["b"])(Object(c["h"])(i))),s);var f,p=Object(w["h"])(o),m=this.executeSelectionSet({selectionSet:Object(c["e"])(i).selectionSet,objectOrReference:p,enclosingRef:p,context:Object(n["a"])({store:e,query:i,policies:d,variables:s,varString:Object(b["a"])(s),canonizeResults:h},U(i,this.config.fragments))});if(m.missing&&(f=[new y(ot(m.missing),m.missing,i,s)],!l))throw f[0];return{result:m.result,complete:!f,missing:f}},t.prototype.isFresh=function(t,e,i,n){if(tt(n.store)&&this.knownResults.get(t)===i){var r=this.executeSelectionSet.peek(i,e,n,this.canon.isKnown(t));if(r&&t===r.result)return!0}return!1},t.prototype.execSelectionSetImpl=function(t){var e=this,i=t.selectionSet,n=t.objectOrReference,o=t.enclosingRef,s=t.context;if(Object(w["g"])(n)&&!s.policies.rootTypenamesById[n.__ref]&&!s.store.has(n.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(n.__ref," object")};var l,c=s.variables,u=s.policies,d=s.store,f=d.getFieldValue(n,"__typename"),p=[],m=new h["a"];function g(t,e){var i;return t.missing&&(l=m.merge(l,(i={},i[e]=t.missing,i))),t.result}this.config.addTypename&&"string"===typeof f&&!u.rootIdsByTypename[f]&&p.push({__typename:f});var y=new Set(i.selections);y.forEach((function(t){var i,h;if(Object(k["d"])(t,c))if(Object(w["e"])(t)){var d=u.readField({fieldName:t.name.value,field:t,variables:s.variables,from:n},s),_=Object(w["i"])(t);void 0===d?v["b"].added(t)||(l=m.merge(l,(i={},i[_]="Can't find field '".concat(t.name.value,"' on ").concat(Object(w["g"])(n)?n.__ref+" object":"object "+JSON.stringify(n,null,2)),i))):Object(I["a"])(d)?d.length>0&&(d=g(e.executeSubSelectedArray({field:t,array:d,enclosingRef:o,context:s}),_)):t.selectionSet?null!=d&&(d=g(e.executeSelectionSet({selectionSet:t.selectionSet,objectOrReference:d,enclosingRef:Object(w["g"])(d)?d:o,context:s}),_)):s.canonizeResults&&(d=e.canon.pass(d)),void 0!==d&&p.push((h={},h[_]=d,h))}else{var b=Object(a["b"])(t,s.lookupFragment);if(!b&&t.kind===E["a"].FRAGMENT_SPREAD)throw Object(r["d"])(10,t.name.value);b&&u.fragmentMatches(b,f)&&b.selectionSet.selections.forEach(y.add,y)}}));var _=Object(h["c"])(p),b={result:_,missing:l},x=s.canonizeResults?this.canon.admit(b):Object(O["a"])(b);return x.result&&this.knownResults.set(x.result,i),x},t.prototype.execSubSelectedArrayImpl=function(t){var e,i=this,n=t.field,r=t.array,o=t.enclosingRef,s=t.context,a=new h["a"];function l(t,i){var n;return t.missing&&(e=a.merge(e,(n={},n[i]=t.missing,n))),t.result}return n.selectionSet&&(r=r.filter(s.store.canRead)),r=r.map((function(t,e){return null===t?null:Object(I["a"])(t)?l(i.executeSubSelectedArray({field:n,array:t,enclosingRef:o,context:s}),e):n.selectionSet?l(i.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:t,enclosingRef:Object(w["g"])(t)?t:o,context:s}),e):(!1!==globalThis.__DEV__&&st(s.store,n,t),t)})),{result:s.canonizeResults?this.canon.admit(r):r,missing:e}},t}();function ot(t){try{JSON.stringify(t,(function(t,e){if("string"===typeof e)throw e;return e}))}catch(e){return e}}function st(t,e,i){if(!e.selectionSet){var n=new Set([i]);
9n.forEach((function(i){Object(A["a"])(i)&&(Object(r["b"])(!Object(w["g"])(i),11,j(t,i),e.name.value),Object.values(i).forEach(n.add,n))}))}}var at=i("67da"),lt=i("f846"),ct=i("ba23"),ut=Object.create(null);function ht(t){var e=JSON.stringify(t);return ut[e]||(ut[e]=Object.create(null))}function dt(t){var e=ht(t);return e.keyFieldsFn||(e.keyFieldsFn=function(e,i){var n=function(t,e){return i.readField(e,t)},o=i.keyObject=pt(t,(function(t){var o=yt(i.storeObject,t,n);return void 0===o&&e!==i.storeObject&&M.call(e,t[0])&&(o=yt(e,t,gt)),Object(r["b"])(void 0!==o,5,t.join("."),e),o}));return"".concat(i.typename,":").concat(JSON.stringify(o))})}function ft(t){var e=ht(t);return e.keyArgsFn||(e.keyArgsFn=function(e,i){var n=i.field,r=i.variables,o=i.fieldName,s=pt(t,(function(t){var i=t[0],o=i.charAt(0);if("@"!==o)if("$"!==o){if(e)return yt(e,t)}else{var s=i.slice(1);if(r&&M.call(r,s)){var a=t.slice(0);return a[0]=s,yt(r,a)}}else if(n&&Object(I["b"])(n.directives)){var l=i.slice(1),c=n.directives.find((function(t){return t.name.value===l})),u=c&&Object(w["a"])(c,r);return u&&yt(u,t.slice(1))}})),a=JSON.stringify(s);return(e||"{}"!==a)&&(o+=":"+a),o})}function pt(t,e){var i=new h["a"];return mt(t).reduce((function(t,n){var r,o=e(n);if(void 0!==o){for(var s=n.length-1;s>=0;--s)r={},r[n[s]]=o,o=r;t=i.merge(t,o)}return t}),Object.create(null))}function mt(t){var e=ht(t);if(!e.paths){var i=e.paths=[],n=[];t.forEach((function(e,r){Object(I["a"])(e)?(mt(e).forEach((function(t){return i.push(n.concat(t))})),n.length=0):(n.push(e),Object(I["a"])(t[r+1])||(i.push(n.slice(0)),n.length=0))}))}return e.paths}function gt(t,e){return t[e]}function yt(t,e,i){return i=i||gt,_t(e.reduce((function t(e,n){return Object(I["a"])(e)?e.map((function(e){return t(e,n)})):e&&i(e,n)}),t))}function _t(t){return Object(A["a"])(t)?Object(I["a"])(t)?t.map(_t):pt(Object.keys(t).sort(),(function(e){return yt(t,e)})):t}var vt=i("dc7e");function bt(t){return void 0!==t.args?t.args:t.field?Object(w["a"])(t.field,t.variables):null}var xt=function(){},wt=function(t,e){return e.fieldName},Et=function(t,e,i){var n=i.mergeObjects;return n(t,e)},Tt=function(t,e){return e},St=function(){function t(t){this.config=t,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=Object(n["a"])({dataIdFromObject:D},t),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}return t.prototype.identify=function(t,e){var i,r=this,o=e&&(e.typename||(null===(i=e.storeObject)||void 0===i?void 0:i.__typename))||t.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var s,a=e&&e.storeObject||t,l=Object(n["a"])(Object(n["a"])({},e),{typename:o,storeObject:a,readField:e&&e.readField||function(){var t=Ot(arguments,a);return r.readField(t,{store:r.cache["data"],variables:t.variables})}}),c=o&&this.getTypePolicy(o),u=c&&c.keyFn||this.config.dataIdFromObject;return vt["c"].withValue(!0,(function(){while(u){var e=u(Object(n["a"])(Object(n["a"])({},t),a),l);if(!Object(I["a"])(e)){s=e;break}u=dt(e)}})),s=s?String(s):void 0,l.keyObject?[s,l.keyObject]:[s]},t.prototype.addTypePolicies=function(t){var e=this;Object.keys(t).forEach((function(i){var r=t[i],o=r.queryType,s=r.mutationType,a=r.subscriptionType,l=Object(n["e"])(r,["queryType","mutationType","subscriptionType"]);o&&e.setRootTypename("Query",i),s&&e.setRootTypename("Mutation",i),a&&e.setRootTypename("Subscription",i),M.call(e.toBeAdded,i)?e.toBeAdded[i].push(l):e.toBeAdded[i]=[l]}))},t.prototype.updateTypePolicy=function(t,e){var i=this,n=this.getTypePolicy(t),r=e.keyFields,o=e.fields;function s(t,e){t.merge="function"===typeof e?e:!0===e?Et:!1===e?Tt:t.merge}s(n,e.merge),n.keyFn=!1===r?xt:Object(I["a"])(r)?dt(r):"function"===typeof r?r:n.keyFn,o&&Object.keys(o).forEac
9h((function(e){var n=i.getFieldPolicy(t,e,!0),r=o[e];if("function"===typeof r)n.read=r;else{var a=r.keyArgs,l=r.read,c=r.merge;n.keyFn=!1===a?wt:Object(I["a"])(a)?ft(a):"function"===typeof a?a:n.keyFn,"function"===typeof l&&(n.read=l),s(n,c)}n.read&&n.merge&&(n.keyFn=n.keyFn||wt)}))},t.prototype.setRootTypename=function(t,e){void 0===e&&(e=t);var i="ROOT_"+t.toUpperCase(),n=this.rootTypenamesById[i];e!==n&&(Object(r["b"])(!n||n===t,6,t),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[e]=i,this.rootTypenamesById[i]=e)},t.prototype.addPossibleTypes=function(t){var e=this;this.usingPossibleTypes=!0,Object.keys(t).forEach((function(i){e.getSupertypeSet(i,!0),t[i].forEach((function(t){e.getSupertypeSet(t,!0).add(i);var n=t.match(B);n&&n[0]===t||e.fuzzySubtypes.set(t,new RegExp(t))}))}))},t.prototype.getTypePolicy=function(t){var e=this;if(!M.call(this.typePolicies,t)){var i=this.typePolicies[t]=Object.create(null);i.fields=Object.create(null);var r=this.supertypeMap.get(t);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(t,!0),this.fuzzySubtypes.forEach((function(i,n){if(i.test(t)){var o=e.supertypeMap.get(n);o&&o.forEach((function(t){return r.add(t)}))}}))),r&&r.size&&r.forEach((function(t){var r=e.getTypePolicy(t),o=r.fields,s=Object(n["e"])(r,["fields"]);Object.assign(i,s),Object.assign(i.fields,o)}))}var o=this.toBeAdded[t];return o&&o.length&&o.splice(0).forEach((function(i){e.updateTypePolicy(t,i)})),this.typePolicies[t]},t.prototype.getFieldPolicy=function(t,e,i){if(t){var n=this.getTypePolicy(t).fields;return n[e]||i&&(n[e]=Object.create(null))}},t.prototype.getSupertypeSet=function(t,e){var i=this.supertypeMap.get(t);return!i&&e&&this.supertypeMap.set(t,i=new Set),i},t.prototype.fragmentMatches=function(t,e,i,n){var o=this;if(!t.typeCondition)return!0;if(!e)return!1;var s=t.typeCondition.name.value;if(e===s)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(s))for(var a=this.getSupertypeSet(e,!0),l=[a],c=function(t){var e=o.getSupertypeSet(t,!1);e&&e.size&&l.indexOf(e)<0&&l.push(e)},u=!(!i||!this.fuzzySubtypes.size),h=!1,d=0;d<l.length;++d){var f=l[d];if(f.has(s))return a.has(s)||(h&&!1!==globalThis.__DEV__&&r["b"].warn(7,e,s),a.add(s)),!0;f.forEach(c),u&&d===l.length-1&&N(t.selectionSet,i,n)&&(u=!1,h=!0,this.fuzzySubtypes.forEach((function(t,i){var n=e.match(t);n&&n[0]===e&&c(i)})))}return!1},t.prototype.hasKeyArgs=function(t,e){var i=this.getFieldPolicy(t,e,!1);return!(!i||!i.keyFn)},t.prototype.getStoreFieldName=function(t){var e,i=t.typename,n=t.fieldName,r=this.getFieldPolicy(i,n,!1),o=r&&r.keyFn;if(o&&i){var s={typename:i,fieldName:n,field:t.field||null,variables:t.variables},a=bt(t);while(o){var l=o(a,s);if(!Object(I["a"])(l)){e=l||n;break}o=ft(l)}}return void 0===e&&(e=t.field?Object(w["j"])(t.field,t.variables):Object(w["b"])(n,bt(t))),!1===e?n:n===F(e)?e:n+":"+e},t.prototype.readField=function(t,e){var i=t.from;if(i){var n=t.field||t.fieldName;if(n){if(void 0===t.typename){var r=e.store.getFieldValue(i,"__typename");r&&(t.typename=r)}var o=this.getStoreFieldName(t),s=F(o),a=e.store.getFieldValue(i,o),l=this.getFieldPolicy(t.typename,s,!1),c=l&&l.read;if(c){var u=kt(this,i,t,e,e.store.getStorage(Object(w["g"])(i)?i.__ref:i,o));return ct["a"].withValue(this.cache,c,[a,u])}return a}}},t.prototype.getReadFunction=function(t,e){var i=this.getFieldPolicy(t,e,!1);return i&&i.read},t.prototype.getMergeFunction=function(t,e,i){var n=this.getFieldPolicy(t,e,!1),r=n&&n.merge;return!r&&i&&(n=this.getTypePolicy(i),r=n&&n.merge),r},t.prototype.runMergeFunction=function(t,e,i,n,r){var o=i.field,s=i.typename,a=i.merge;return a===Et?At(n.store)(t,e):a===Tt?e:(n.overwrite&&(t=void 0),a(t,e,kt(this,void 0,{typename:s,fieldName:o.name.value,field:o,variables:n.variables},n,r||Object.create(null))))},t}();function kt(t,e,i,n,r){var o=t.getStoreFieldName(i),s=F(o),a=i.variables||n.variables,l=n.store,c=l.toReference,u=l.canRead;return{args:bt(i),field:i.field||null,fieldName:s,storeFieldName:o,variables:a,isReference:w["g"],toReference:c,storage:r,cache:t.cache,canRead:u,readField:function(){return t.readField(Ot(arguments,e,a),n)},mergeObjects:At(n.store)}}function Ot(t,e,i){var o,s=t[0],a=t[1],l=t.length;return"string"===typeof s?o={fieldName:s,from:l>1?a:e}:(o=Object(n["a"])({},s),M.call(o,"from")||(o.from=e)),!1!==globalThis.__DEV__&&void 0===o.from&&!1!==globalThis.__DEV__&&r["b"].warn(8,Object(lt["a"])(Array.from(t))),void 0===o.variables&&(o.variables=i),o}function At(t){return function(e,i){if(Object(I["a"])(e)||Object(I["a"])(i))throw Object(r["d"])(9);if(Object(A["a"])(e)&&Object(A["a"])(i)){var o=t.getFieldValue(e,"__typename"),s=t.getFieldValue(i,"__typename"),a=o&&s&&o!==s;if(a)return i;if(Object(w["g"])(e)&&V(i))return t.merge(e.__ref,i),e;if(V(e)&&Object(w["g"])(i))return t.merge(e,i.__ref),i;if(V(e)&&V(i))return Object(n["a"])(Object(n["a"])({},e),i)}return i}}function Ct(t,e,i){var r="".concat(e).concat(i),o=t.flavors.get(r);return o||t.flavors.set(r,o=t.clientOnly===e&&t.deferred===i?t:Object(n["a"])(Object(n["a"])({},t),{clientOnly:e,deferred:i})),o}var It=function(){function t(t,e,i){this.cache=t,this.reader=e,this.fragments=i}return t.prototype.writeToStore=function(t,e){var i=this,o=e.query,s=e.result,a=e.dataId,l=e.variables,u=e.overwrite,h=Object(c["f"])(o),d=$(
9);l=Object(n["a"])(Object(n["a"])({},Object(c["b"])(h)),l);var f=Object(n["a"])(Object(n["a"])({store:t,written:Object.create(null),merge:function(t,e){return d.merge(t,e)},variables:l,varString:Object(b["a"])(l)},U(o,this.fragments)),{overwrite:!!u,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),p=this.processSelectionSet({result:s||Object.create(null),dataId:a,selectionSet:h.selectionSet,mergeTree:{map:new Map},context:f});if(!Object(w["g"])(p))throw Object(r["d"])(12,s);return f.incomingById.forEach((function(e,n){var r=e.storeObject,o=e.mergeTree,s=e.fieldNodeSet,a=Object(w["h"])(n);if(o&&o.map.size){var l=i.applyMerges(o,a,r,f);if(Object(w["g"])(l))return;r=l}if(!1!==globalThis.__DEV__&&!f.overwrite){var c=Object.create(null);s.forEach((function(t){t.selectionSet&&(c[t.name.value]=!0)}));var u=function(t){return!0===c[F(t)]},h=function(t){var e=o&&o.map.get(t);return Boolean(e&&e.info&&e.info.merge)};Object.keys(r).forEach((function(t){u(t)&&!h(t)&&jt(a,r,t,f.store)}))}t.merge(n,r)})),t.retain(p.__ref),p},t.prototype.processSelectionSet=function(t){var e=this,i=t.dataId,o=t.result,s=t.selectionSet,a=t.context,l=t.mergeTree,c=this.cache.policies,u=Object.create(null),h=i&&c.rootTypenamesById[i]||Object(w["c"])(o,s,a.fragmentMap)||i&&a.store.get(i,"__typename");"string"===typeof h&&(u.__typename=h);var d=function(){var t=Ot(arguments,u,a.variables);if(Object(w["g"])(t.from)){var e=a.incomingById.get(t.from.__ref);if(e){var i=c.readField(Object(n["a"])(Object(n["a"])({},t),{from:e.storeObject}),a);if(void 0!==i)return i}}return c.readField(t,a)},f=new Set;
9this.flattenFields(s,o,a,h).forEach((function(t,i){var n,s=Object(w["i"])(i),a=o[s];if(f.add(i),void 0!==a){var p=c.getStoreFieldName({typename:h,fieldName:i.name.value,field:i,variables:t.variables}),m=Pt(l,p),g=e.processFieldValue(a,i,i.selectionSet?Ct(t,!1,!1):t,m),y=void 0;i.selectionSet&&(Object(w["g"])(g)||V(g))&&(y=d("__typename",g));var _=c.getMergeFunction(h,i.name.value,y);_?m.info={field:i,typename:h,merge:_}:Rt(l,p),u=t.merge(u,(n={},n[p]=g,n))}else!1===globalThis.__DEV__||t.clientOnly||t.deferred||v["b"].added(i)||c.getReadFunction(h,i.name.value)||!1!==globalThis.__DEV__&&r["b"].error(13,Object(w["i"])(i),o)}));try{var p=c.identify(o,{typename:h,selectionSet:s,fragmentMap:a.fragmentMap,storeObject:u,readField:d}),m=p[0],g=p[1];i=i||m,g&&(u=a.merge(u,g))}catch(x){if(!i)throw x}if("string"===typeof i){var y=Object(w["h"])(i),_=a.written[i]||(a.written[i]=[]);if(_.indexOf(s)>=0)return y;if(_.push(s),this.reader&&this.reader.isFresh(o,y,s,a))return y;var b=a.incomingById.get(i);return b?(b.storeObject=a.merge(b.storeObject,u),b.mergeTree=Dt(b.mergeTree,l),f.forEach((function(t){return b.fieldNodeSet.add(t)}))):a.incomingById.set(i,{storeObject:u,mergeTree:Lt(l)?void 0:l,fieldNodeSet:f}),y}return u},t.prototype.processFieldValue=function(t,e,i,n){var r=this;return e.selectionSet&&null!==t?Object(I["a"])(t)?t.map((function(t,o){var s=r.process
9FieldValue(t,e,i,Pt(n,o));return Rt(n,o),s})):this.processSelectionSet({result:t,selectionSet:e.selectionSet,context:i,mergeTree:n}):!1!==globalThis.__DEV__?Object(at["a"])(t):t},t.prototype.flattenFields=function(t,e,i,n){void 0===n&&(n=Object(w["c"])(e,t,i.fragmentMap));var o=new Map,s=this.cache.policies,l=new C["a"](!1);return function t(c,u){var h=l.lookup(c,u.clientOnly,u.deferred);h.visited||(h.visited=!0,c.selections.forEach((function(l){if(Object(k["d"])(l,i.variables)){var c=u.clientOnly,h=u.deferred;if(c&&h||!Object(I["b"])(l.directives)||l.directives.forEach((function(t){var e=t.name.value;if("client"===e&&(c=!0),"defer"===e){var n=Object(w["a"])(t,i.variables);n&&!1===n.if||(h=!0)}})),Object(w["e"])(l)){var d=o.get(l);d&&(c=c&&d.clientOnly,h=h&&d.deferred),o.set(l,Ct(i,c,h))}else{var f=Object(a["b"])(l,i.lookupFragment);if(!f&&l.kind===E["a"].FRAGMENT_SPREAD)throw Object(r["d"])(14,l.name.value);f&&s.fragmentMatches(f,n,e,i.variables)&&t(f.selectionSet,Ct(i,c,h))}}})))}(t,i),o},t.prototype.applyMerges=function(t,e,i,o,s){var a,l=this;if(t.map.size&&!Object(w["g"])(i)){var c,u=Object(I["a"])(i)||!Object(w["g"])(e)&&!V(e)?void 0:e,h=i;u&&!s&&(s=[Object(w["g"])(u)?u.__ref:u]);var d=function(t,e){return Object(I["a"])(t)?"number"===typeof e?t[e]:void 0:o.store.getFieldValue(t,String(e))};t.map.forEach((function(t,e){var i=d(u,e),n=d(h,e);if(void 0!==n){s&&s.push(e);var a=l.applyMerges(t,i,n,o,s);a!==n&&(c=c||new Map,c.set(e,a)),s&&Object(r["b"])(s.pop()===e)}})),c&&(i=Object(I["a"])(h)?h.slice(0):Object(n["a"])({},h),c.forEach((function(t,e){i[e]=t})))}return t.info?this.cache.policies.runMergeFunction(e,i,t.info,o,s&&(a=o.store).getStorage.apply(a,s)):i},t}(),Mt=[];function Pt(t,e){var i=t.map;return i.has(e)||i.set(e,Mt.pop()||{map:new Map}),i.get(e)}function Dt(t,e){if(t===e||!e||Lt(e))return t;if(!t||Lt(t))return e;var i=t.info&&e.info?Object(n["a"])(Object(n["a"])({},t.info),e.info):t.info||e.info,r=t.map.size&&e.map.size,o=r?new Map:t.map.size?t.map:e.map,s={info:i,map:o};if(r){var a=new Set(e.map.keys());t.map.forEach((function(t,i){s.map.set(i,Dt(t,e.map.get(i))),a.delete(i)})),a.forEach((function(i){s.map.set(i,Dt(e.map.get(i),t.map.get(i)))}))}return s}function Lt(t){return!t||!(t.info||t.map.size)}function Rt(t,e){var i=t.map,n=i.get(e);n&&Lt(n)&&(Mt.push(n),i.delete(e))}var zt=new Set;function jt(t,e,i,o){var a=function(t){var e=o.getFieldValue(t,i);return"object"===typeof e&&e},l=a(t);if(l){var c=a(e);if(c&&!Object(w["g"])(l)&&!Object(s["b"])(l,c)&&!Object.keys(l).every((function(t){return void 0!==o.getFieldValue(c,t)}))){var u=o.getFieldValue(t,"__typename")||o.getFieldValue(e,"__typename"),h=F(i),d="".concat(u,".").concat(h);if(!zt.has(d)){zt.add(d);var f=[];Object(I["a"])(l)||Object(I["a"])(c)||[l,c].forEach((function(t){var e=o.getFieldValue(t,"__typename");"string"!==typeof e||f.includes(e)||f.push(e)})),!1!==globalThis.__DEV__&&r["b"].warn(15,h,u,f.length?"either ensure all objects of type "+f.join(" and ")+" have an ID or a custom merge function, or ":"",d,Object(n["a"])({},l),Object(n["a"])({},c))}}}}var Bt=function(t){function e(e){void 0===e&&(e={});var i=t.call(this)||this;return i.watches=new Set,i.addTypenameTransform=new _["a"](v["b"]),i.assumeImmutableResults=!0,i.makeVar=ct["c"],i.txCount=0,i.config=R(e),i.addTypename=!!i.config.addTypename,i.policies=new St({cache:i,dataIdFromObject:i.config.dataIdFromObject,possibleTypes:i.config.possibleTypes,typePolicies:i.config.typePolicies}),i.init(),i}return Object(n["c"])(e,t),e.prototype.init=function(){var t=this.data=new Z.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=t.stump,this.resetResultCache()},e.prototype.resetResultCache=function(t){var e=this,i=this.storeReader,n=this.config.fragments;this.storeWriter=new It(this,this.storeReader=new rt({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:z(this.config),canon:t?void 0:i&&i.canon,fragments:n}),n),this.maybeBroadcastWatch=Object(o["c"])((function(t,i){return e.broadcastWatch(t,i)}),{max:this.config.resultCacheMaxSize||l["a"]["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(t){var i=t.o
vendor: 1,562 bytes, line 9
9ptimistic?e.optimisticData:e.data;if(tt(i)){var n=t.optimistic,r=t.id,o=t.variables;return i.makeCacheKey(t.query,t.callback,Object(b["a"])({optimistic:n,id:r,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(t){return t.resetCaching()}))},e.prototype.restore=function(t){return this.init(),t&&this.data.replace(t),this},e.prototype.extract=function(t){return void 0===t&&(t=!1),(t?this.optimisticData:this.data).extract()},e.prototype.read=function(t){var e=t.returnPartialData,i=void 0!==e&&e;try{return this.storeReader.diffQueryAgainstStore(Object(n["a"])(Object(n["a"])({},t),{store:t.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:i})).result||null}catch(r){if(r instanceof y)return null;throw r}},e.prototype.write=function(t){try{return++this.txCount,this.storeWriter.writeToStore(this.data,t)}finally{--this.txCount||!1===t.broadcast||this.broadcastWatches()}},e.prototype.modify=function(t){if(M.call(t,"id")&&!t.id)return!1;var e=t.optimistic?this.optimisticData:this.data;try{return++this.txCount,e.modify(t.id||"ROOT_QUERY",t.fields)}finally{--this.txCount||!1===t.broadcast||this.broadcastWatches()}},e.prototype.diff=function(t){return this.storeReader.diffQueryAgainstStore(Object(n["a"])(Object(n["a"])({},t),{store:t.optimistic?this.optimisticData:this.data,rootId:t.id||"ROOT_QUERY",config:this.config}))},e.prototype.watch=function(t){var e=this;return this.watches.size||Object(ct["d"])(this),this.watches.add(t),t.immediate&&this.maybeBroadcastWatch(t),function(){e.wat
9ches.delete(t)&&!e.watches.size&&Object(ct["b"])(e),e.maybeBroadcastWatch.forget(t)}},e.prototype.gc=function(t){var e;b["a"].reset(),x["a"].reset(),this.addTypenameTransform.resetCache(),null===(e=this.config.fragments)||void 0===e||e.resetCaches();var i=this.optimisticData.gc();return t&&!this.txCount&&(t.resetResultCache?this.resetResultCache(t.resetResultIdentities):t.resetResultIdentities&&this.storeReader.resetCanon()),i},e.prototype.retain=function(t,e){return(e?this.optimisticData:this.data).retain(t)},e.prototype.release=function(t,e){return(e?this.optimisticData:this.data).release(t)},e.prototype.identify=function(t){if(Object(w["g"])(t))return t.__ref;try{return this.policies.identify(t)[0]}catch(e){!1!==globalThis.__DEV__&&r["b"].warn(e)}},e.prototype.evict=function(t){if(!t.id){if(M.call(t,"id"))return!1;t=Object(n["a"])(Object(n["a"])({},t),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(t,this.data)}finally{--this.txCount||!1===t.broadcast||this.broadcastWatches()}},e.prototype.reset=function(t){var e=this;return this.init(),b["a"].reset(),t&&t.discardWatches?(this.watches.forEach((function(t){return e.maybeBroadcastWatch.forget(t)})),this.watches.clear(),Object(ct["b"])(this)):this.broadcastWatches(),Promise.resolve()},e.prototype.removeOptimistic=function(t){var e=this.optimisticData.removeLayer(t);e!==this.optimisticData&&(this.optimisticData=e,this.broadcastWatches())},e.prototype.batch=function(t){var e,i=this,r=t.update,o=t.optimistic,s=void 0===o||o,a=t.removeOptimistic,l=t.onWatchUpdated,c=function(t){var n=i,o=n.data,s=n.optimisticData;++i.txCount,t&&(i.data=i.optimisticData=t);try{return e=r(i)}finally{--i.txCount,i.data=o,i.optimisticData=s}},u=new Set;return l&&!this.txCount&&this.broadcastWatches(Object(n["a"])(Object(n["a"])({},t),{onWatchUpdated:function(t){return u.add(t),!1}})),"string"===typeof s?this.optimisticData=this.optimisticData.addLayer(s,c):!1===s?c(this.data):c(),"string"===typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),l&&u.size?(this.broadcastWatches(Object(n["a"])(Object(n["a"])({},t),{onWatchUpdated:function(t,e){var i=l.call(this,t,e);return!1!==i&&u.delete(t),i}})),u.size&&u.forEach((function(t){return i.maybeBroadcastWatch.dirty(t)}))):this.broadcastWatches(t),e},e.prototype.performTransaction=function(t,e){return this.batch({update:t,optimistic:e||null!==e})},e.prototype.transformDocument=function(t){return this.addTypenameToDocument(this.addFragmentsToDocument(t))},e.prototype.fragmentMatches=function(t,e){return this.policies.fragmentMatches(t,e)},e.prototype.lookupFragment=function(t){var e;return(null===(e=this.config.fragments)||void 0===e?void 0:e.lookup(t))||null},e.prototype.broadcastWatches=function(t){var e=this;this.txCount||this.watches.forEach((function(i){return e.maybeBroadcastWatch(i,t)}))},e.prototype.addFragmentsToDocument=function(t){var e=this.config.fragments;return e?e.transform(t):t},e.prototype.addTypenameToDocument=function(t){return this.addTypename?this.addTypenameTransform.transformDocument(t):t},e.prototype.broadcastWatch=function(t,e){var i=t.lastDiff,n=this.diff(t);e&&(t.optimistic&&"string"===typeof e.optimistic&&(n.fromOptimisticTransaction=!0),e.onWatchUpdated&&!1===e.onWatchUpdated.call(this,t,n,i))||i&&Object(s["b"])(i.result,n.result)||t.callback(t.lastDiff=n,i)},e}(g);!1!==globalThis.__DEV__&&(Bt.prototype.getMemoryInternals=f["c"])},"95ed":function(t,e,i){},9961:function(t,e,i){"use strict";var n=i("dc19"),r=i("cb27"),o=i("83b9"),s=i("7f65"),a=i("5388"),l=r.add,c=r.has,u=r.remove;t.exports=function(t){var e=n(this),i=s(t).getIterator(),r=o(e);return a(i,(function(t){c(e,t)?u(r,t):l(r,t)})),r}},"99d9":function(t,e,i){"use strict";i.d(e,"a",(function(){return o})),i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return l}));var n=i("b0af"),r=i("80d2");const o=Object(r["h"])("v-card__actions"),s=Object(r["h"])("v-card__subtitle"),a=Object(r["h"])("v-card__text"),l=Object(r["h"])("v-card__title");n["a"]},"9a1f":function(t,e,i){"use strict";var n=i("c65b"),r=i("59ed"),o=i("825a"),s=i("0d51"),a=i("35a1"),l=TypeError;t.exports=function(t,e){var i=arguments.length<2?a(t):e;if(r(i))return o(n(i,t));throw new l(s(t)+" is not iterable")}}
9,"9a98":function(t,e,i){"use strict";i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return c}));var n=i("9ab4"),r=i("4623"),o=Object.prototype.hasOwnProperty;function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return a(t)}function a(t){var e=t[0]||{},i=t.length;if(i>1)for(var n=new c,r=1;r<i;++r)e=n.merge(e,t[r]);return e}var l=function(t,e,i){return this.merge(t[i],e[i])},c=function(){function t(t){void 0===t&&(t=l),this.reconciler=t,this.isObject=r["a"],this.pastCopies=new Set}return t.prototype.merge=function(t,e){for(var i=this,s=[],a=2;a<arguments.length;a++)s[a-2]=arguments[a];return Object(r["a"])(e)&&Object(r["a"])(t)?(Object.keys(e).forEach((function(r){if(o.call(t,r)){var a=t[r];if(e[r]!==a){var l=i.reconciler.apply(i,Object(n["f"])([t,e,r],s,!1));l!==a&&(t=i.shallowCopyForMerge(t),t[r]=l)}}else t=i.shallowCopyForMerge(t),t[r]=e[r]})),t):e},t.prototype.shallowCopyForMerge=function(t){return Object(r["a"])(t)&&(this.pastCopies.has(t)||(t=Array.isArray(t)?t.slice(0):Object(n["a"])({__proto__:Object.getPrototypeOf(t)},t),this.pastCopies.add(t))),t},t}()},"9ab4":function(t,e,i){"use strict";i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return o})),i.d(e,"e",(function(){return s})),i.d(e,"b",(function(){return a})),i.d(e,"d",(function(){return l})),i.d(e,"f",(function(){return c}));
9var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(t,e)};function r(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var o=function(){return o=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i],e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)};function s(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(t);r<n.length;r++)e.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(i[n[r]]=t[n[r]])}return i}function a(t,e,i,n){function r(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,o){function s(t){try{l(n.next(t))}catch(e){o(e)}}function a(t){try{l(n["throw"](t))}catch(e){o(e)}}function l(t){t.done?i(t.value):r(t.value).then(s,a)}l((n=n.apply(t,e||[])).next())}))}function l(t,e){var i,n,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"===typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s["throw"]=a(1),s["return"]=a(2),"function"===typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return l([t,e])}}function l(a){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(o=0)),o)try{if(i=1,n&&(r=2&a[0]?n["return"]:a[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(r=o.trys,!(r=r.length>0&&r[r.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(l){a=[6,l],n=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}Object.create;function c(t,e,i){if(i||2===arguments.length)for(var n,r=0,o=e.length;r<o;r++)!n&&r in e||(n||(n=Array.prototype.slice.call(e,0,r)),n[r]=e[r]);return t.concat(n||Array.prototype.slice.call(e))}Object.create;"function"===typeof SuppressedError&&SuppressedError},"9adc":function(t,e,i){"use strict";var n=i("8558");t.exports="NODE"===n},"9b53":function(t,e,i){"use strict";i.d(e,"a",(function(){return U}));const n=t=>void 0===t||"auto"===t||"instant"===t||"smooth"===t;function r(t,e){this.scrollLeft=t,this.scrollTop=e}const o=(t,e,i="cannot convert to dictionary.")=>`Failed to execute '${t}' on '${e}': ${i}`,s=(t,e,i)=>o(t,e,`The provided value '${i}' is not a valid enum value of type ScrollBehavior.`),a=(t,e,i)=>{var n;const r="__SEAMLESS.BACKUP$"+e;return t[r]||!t[e]||(null===(n=t[e])||void 0===n?void 0:n.__isPolyfill)||(t[r]=t[e]),t[r]||i},l=t=>{const e=typeof t;return null!==t&&("object"===e||"function"===e)},c=t=>"scrollBehavior"in window.document.documentElement.style&&!0!==(null===t||void 0===t?void 0:t.forcePolyfill),u=t=>{Object.defineProperty(t,"__isPolyfill",{value:!0})},h=(t,e)=>{u(e),[HTMLElement.prototype,SVGElement.prototype,Element.prototype].forEach(i=>{a(i,t),i[t]=e})},d=t=>t.ownerDocument.scrollingElement||t.ownerDocument.documentElement;function f(t){if("function"===typeof Event)return new Event("scrollend",{bubbles:t,cancelable:!1});const e=document.createEvent("Event");return e.initEvent("scrollend",t,!1),e}const p=t=>.5*(1-Math.cos(Math.PI*t));function m(){var t;let e;return e=(null===(t=window.performance)||void 0===t?void 0:t.now)?()=>window.performance.now():()=>window.Date.now(),m=e,e()}const g=500,y=t=>{const e=m(),i=(e-t.timeStamp)/(t.duration||g);if(i>1)return t.method(t.targetX,t.targetY),void t.callback();const n=(t.timingFunc||p)(i),r=t.startX+(t.targetX-t.startX)*n,o=t.startY+(t.targetY-t.startY)*n;t.method(r,o),t.rafId=window.requestAnimationFrame(()=>{y(t)})},_=t=>isFinite(t)?Number(t):0,v=t=>{var e;return null!==(e=t.isConnected)&&void 0!==e?e:!t.ownerDocument||!(1&t.ownerDocument.compareDocumentPosition(t))},b=(t,e,i)=>{var n,o;if(!v(t))return;
9const s=t.scrollLeft,l=t.scrollTop,c=_(null!==(n=e.left)&&void 0!==n?n:s),u=_(null!==(o=e.top)&&void 0!==o?o:l);if(c===s&&u===l)return;const h=a(HTMLElement.prototype,"scroll",r),d=a(Object.getPrototypeOf(t),"scroll",h).bind(t);if("smooth"!==e.behavior)return void d(c,u);const p=()=>{window.removeEventListener("wheel",x),window.removeEventListener("touchmove",x)},g=()=>{p();const e=9===t.nodeType;t.dispatchEvent(f(e))},b=Object.assign(Object.assign({},i),{timeStamp:m(),startX:s,startY:l,targetX:c,targetY:u,rafId:0,method:d,callback:g}),x=()=>{window.cancelAnimationFrame(b.rafId),p()};window.addEventListener("wheel",x,{passive:!0,once:!0}),window.addEventListener("touchmove",x,{passive:!0,once:!0}),y(b)},x=t=>t.window===t,w=t=>(e,i,r)=>{const[a,c]=x(e)?[d(e.document.documentElement),"Window"]:[e,"Element"],u=null!==i&&void 0!==i?i:{};if(!l(u))throw new TypeError(o(t,c));if(!n(u.behavior))throw new TypeError(s(t,c,u.behavior));"scrollBy"===t&&(u.left=_(u.left)+a.scrollLeft,u.top=_(u.top)+a.scrollTop),b(a,u,r)},E=w("scroll"),T=E,S=t=>{switch(t){case"horizontal-tb":case"lr":case"lr-tb":case"rl":case"rl-tb":return 0;case"vertical-rl":case"tb":case"tb-rl":return 1;case"vertical-lr":case"tb-lr":return 2;case"sideways-rl":return 3;case"sideways-lr":return 4}return 0},k=(t,e,i,n)=>{let r=0;switch(e||(r^=2),t){case 0:r=r>>1|(1&r)<<1,[i,n]=[n,i];break;case 1:case 3:r^=1;break;case 4:r^=2;break}return[r,i,n]},O=t=>{const e=k(S(t.writingMode),"rtl"!==t.direction,void 0,void 0)[0];return 1===(1&e)},A=(t,e,i)=>{const[n,r,o]=k(e,i,t.block||"start",t.inline||"nearest");return[r,o].map((t,e)=>{switch(t){case"center":return 1;case"nearest":return 0;default:{const i=n>>e&1;return"start"===t===!i?2:3}}})},C=(t,e,i,n,r,o,s)=>0!==t?t:r<e&&o>i||r>e&&o<i?null:r<=e&&s<=n||o>=i&&s>=n?2:o>i&&s<n||r<e&&s>n?3:null,I=t=>"visible"!==t&&"clip"!==t,M=t=>{var e;try{return(null===(e=t.ownerDocument.defaultView)||void 0===e?void 0:e.frameElement)||null}catch(i){return null}},P=(t,e)=>(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth)&&(I(e.overflowY)||I(e.overflowX)||t===d(t)),D=t=>{const e=t.parentNode,i=t.parentElement;if(null===i&&null!==e){if(11===e.nodeType)return e.host;if(9===e.nodeType)return M(t)}return i},L=(t,e,i)=>t<e?e:t>i?i:t,R=t=>["scroll-margin","scroll-snap-margin"].filter(e=>e in t.documentElement.style)[0],z=(t,e,i)=>{const{top:n,right:r,bottom:o,left:s}=e,a=R(t.ownerDocument);if(!a)return[n,r,o,s];const l=t=>{const e=i.getPropertyValue(`${a}-${t}`);return parseInt(e,10)||0};return[n-l("top"),r+l("right"),o+l("bottom"),s-l("left")]},j=(t,e,i)=>{switch(t){case 1:return(e+i)/2;case 3:return i;case 2:case 0:return e}},B=(t,e)=>{var i,n,r;const o=null===(i=t.ownerDocument.defaultView)||void 0===i?void 0:i.visualViewport,[s,a,l,c]=t===d(t)?[0,0,null!==(n=null===o||void 0===o?void 0:o.width)&&void 0!==n?n:t.clientWidth,null!==(r=null===o||void 0===o?void 0:o.height)&&void 0!==r?r:t.clientHeight]:[e.left,e.top,t.clientWidth,t.clientHeight],u=s+t.clientLeft,h=a+t.clientTop,f=u+l,p=h+c;return[h,f,p,u]},F=(t,e)=>{const i=[];let n=t.ownerDocument,r=n.defaultView;if(!r)return i;const o=window.getComputedStyle(t),s="rtl"!==o.direction,a=S(o.writingMode||o.getPropertyValue("-webkit-writing-mode")||o.getPropertyValue("-ms-writing-mode")),[l,c]=A(e,a,s);let[u,h,d,f]=z(t,t.getBoundingClientRect(),o);for(let p=D(t);null!==p;p=D(p)){if(n!==p.ownerDocument){if(n=p.ownerDocument,r=n.defaultView,!r)break;const{left:t,top:e}=p.getBoundingClientRect();u+=e,h+=t,d+=e,f+=t}const t=r.getComputedStyle(p);if("fixed"===t.position)break;if(!P(p,t))continue;const o=p.getBoundingClientRect(),[s,a,m,g]=B(p,o),y=C(l,g,a,p.clientWidth,f,h,h-f),_=C(c,s,m,p.clientHeight,u,d,d-u),v=null===y?0:j(y,f,h)-j(y,g,a),b=null===_?0:j(_,u,d)-j(_,s,m),x=O(t)?L(v,-p.scrollWidth+p.clientWidth-p.scrollLeft,-p.scrollLeft):L(v,-p.scrollLeft,p.scrollWidth-p.clientWidth-p.scrollLeft),w=L(b,-p.scrollTop,p.scrollHeight-p.clientHeight-p.scrollTop);i.push([p,{left:p.scrollLeft+x,top:p.scrollTop+w,behavior:e.behavior}]),u=Math.max(u-w,s),h=Math.min(h-x,a),d=Math.min(d-w,m),f=Math.max(f-x,g)}return i},N=(t,e,i)=>{const r=e||{};if(!n(r.behavior))throw new TypeError(s("scrollIntoView","Element",r.behavior));const o=F(t,r);o.forEach(([t,e])=>{T(t,e,i)})},V=N;function $(t){V(this,{block:null===t||void 0===t||t?"start":"end",inline:"nearest"})}const U=t=>{if(c(t))return;const e=a(window.HTMLElement.prototype,"scrollIntoView",$);h("scrollIntoView",(function(){const i=arguments,n=i[0];1===i.length&&l(n)?V(this,n,t):e.apply(this,i)}))}}
9,"9bdd":function(t,e,i){"use strict";var n=i("825a"),r=i("2a62");t.exports=function(t,e,i,o){try{return o?e(n(i)[0],i[1]):e(i)}catch(s){r(t,"throw",s)}}},"9bf2":function(t,e,i){"use strict";var n=i("83ab"),r=i("0cfb"),o=i("aed9"),s=i("825a"),a=i("a04b"),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",f="writable";e.f=n?o?function(t,e,i){if(s(t),e=a(e),s(i),"function"===typeof t&&"prototype"===e&&"value"in i&&f in i&&!i[f]){var n=u(t,e);n&&n[f]&&(t[e]=i.value,i={configurable:d in i?i[d]:n[d],enumerable:h in i?i[h]:n[h],writable:!1})}return c(t,e,i)}:c:function(t,e,i){if(s(t),e=a(e),s(i),r)try{return c(t,e,i)}catch(n){}if("get"in i||"set"in i)throw new l("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},"9d26":function(t,e,i){"use strict";var n=i("132d");e["a"]=n["a"]},"9d65":function(t,e,i){"use strict";var n=i("d9bd"),r=i("2b0e");e["a"]=r["a"].extend().extend({name:"bootable",props:{eager:Boolean},data:()=>({isBooted:!1}),computed:{hasContent(){return this.isBooted||this.eager||this.isActive}},watch:{isActive(){this.isBooted=!0}},created(){"lazy"in this.$attrs&&Object(n["d"])("lazy",this)},methods:{showLazyContent(t){return this.hasContent&&t?t():[this.$createElement()]}}})},"9dc5":function(t,e,i){"use strict";var n=i("608e"),r=i("dbe1"),o=i("8cb5");function s(t){if(!t||!t.accessToken)throw new Error("Cannot create a client without an access token");n(t.accessToken),this.accessToken=t.accessToken,this.origin=t.origin||o.API_ORIGIN}s.prototype.createRequest=function(t){return new r(this,t)},t.exports=s},"9f3c":function(t,e,i){"use strict";function n(t){try{return t()}catch(e){}}i.d(e,"a",(function(){return n}))},a04b:function(t,e,i){"use strict";var n=i("c04e"),r=i("d9b5");t.exports=function(t){var e=n(t,"string");return r(e)?e:e+""}},a066:function(t,e,i){"use strict";var n=i("7119"),r=i("ef78"),o=i("8cb5"),s=i("72bc"),a={};function l(t){var e=a[t.id];e&&(e.abort(),delete a[t.id])}function c(t,e){return new n(t,{body:e.response,headers:s(e.getAllResponseHeaders()),statusCode:e.status})}function u(t){var e=t.total,i=t.loaded,n=100*i/e;return{total:e,transferred:i,percent:n}}function h(t,e){return new Promise((function(i,n){e.onprogress=function(e){t.emitter.emit(o.EVENT_PROGRESS_DOWNLOAD,u(e))};var s=t.file;s&&(e.upload.onprogress=function(e){t.emitter.emit(o.EVENT_PROGRESS_UPLOAD,u(e))}),e.onerror=function(t){n(t)},e.onabort=function(){var e=new r({request:t,type:o.ERROR_REQUEST_ABORTED});n(e)},e.onload=function(){if(delete a[t.id],e.status<200||e.status>=400){var o=new r({request:t,body:e.response,statusCode:e.status});n(o)}else i(e)};var l=t.body;"string"===typeof l?e.send(l):l?e.send(JSON.stringify(l)):s?e.send(s):e.send(),a[t.id]=e})).then((function(e){return c(t,e)}))}function d(t,e){var i=t.url(e),n=new window.XMLHttpRequest;return n.open(t.method,i),Object.keys(t.headers).forEach((function(e){n.setRequestHeader(e,t.headers[e])})),n}function f(t){return Promise.resolve().then((function(){var e=d(t,t.client.accessToken);return h(t,e)}))}t.exports={browserAbort:l,sendRequestXhr:h,browserSend:f,createRequestXhr:d}},a236:function(t,e,i){"use strict";i("14d9");var n=i("2b0e");e["a"]=n["a"].extend({name:"roundable",props:{rounded:[Boolean,String],tile:Boolean}
9,computed:{roundedClasses(){const t=[],e="string"===typeof this.rounded?String(this.rounded):!0===this.rounded;if(this.tile)t.push("rounded-0");else if("string"===typeof e){const i=e.split(" ");for(const e of i)t.push("rounded-"+e)}else e&&t.push("rounded");return t.length>0?{[t.join(" ")]:!0}:{}}}})},a293:function(t,e,i){"use strict";i("14d9"),i("e9f5"),i("a732");var n=i("dd89");function r(){return!0}function o(t,e,i){if(!t||!1===s(t,i))return!1;const r=Object(n["a"])(e);if("undefined"!==typeof ShadowRoot&&r instanceof ShadowRoot&&r.host===t.target)return!1;const o=("object"===typeof i.value&&i.value.include||(()=>[]))();return o.push(e),!o.some(e=>e.contains(t.target))}function s(t,e){const i="object"===typeof e.value&&e.value.closeConditional||r;return i(t)}function a(t,e,i){const n="function"===typeof i.value?i.value:i.value.handler;e._clickOutside.lastMousedownWasOutside&&o(t,e,i)&&setTimeout(()=>{s(t,i)&&n&&n(t)},0)}function l(t,e){const i=Object(n["a"])(t);e(document),"undefined"!==typeof ShadowRoot&&i instanceof ShadowRoot&&e(i)}
9const c={inserted(t,e,i){const n=i=>a(i,t,e),r=i=>{t._clickOutside.lastMousedownWasOutside=o(i,t,e)};l(t,t=>{t.addEventListener("click",n,!0),t.addEventListener("mousedown",r,!0)}),t._clickOutside||(t._clickOutside={lastMousedownWasOutside:!0}),t._clickOutside[i.context._uid]={onClick:n,onMousedown:r}},unbind(t,e,i){t._clickOutside&&(l(t,e=>{var n;if(!e||!(null===(n=t._clickOutside)||void 0===n?void 0:n[i.context._uid]))return;const{onClick:r,onMousedown:o}=t._clickOutside[i.context._uid];e.removeEventListener("click",r,!0),e.removeEventListener("mousedown",o,!0)}),delete t._clickOutside[i.context._uid])}};e["a"]=c},a2d2:function(t,e,i){},a447:function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n=i("fe35"),r=i("dc7e"),o=i("8f69"),s=i("11ed"),a=i("2d69"),l=i("0ae3"),c=i("b070");function u(t,e,i,u){if(!i.fragmentMatches)return!1!==globalThis.__DEV__&&Object(r["d"])(),t;var h=e.definitions.filter((function(t){return t.kind===n["a"].FRAGMENT_DEFINITION}));"undefined"===typeof u&&(Object(o["b"])(1===h.length,49,h.length),u=h[0].name.value);var d=h.find((function(t){return t.name.value===u}));return Object(o["b"])(!!d,50,u),null==t||Object(s["a"])(t,{})?t:Object(a["a"])(t,d.selectionSet,{operationType:"fragment",operationName:d.name.value,fragmentMap:Object(l["a"])(Object(c["d"])(e)),cache:i,mutableTargets:new r["a"],knownChanged:new r["b"]})}},a452:function(t,e,i){"use strict";var n=i("2b0e");function r(t="value",e="change"){return n["a"].extend({name:"proxyable",model:{prop:t,event:e},props:{[t]:{required:!1}},data(){return{internalLazyValue:this[t]}},computed:{internalValue:{get(){return this.internalLazyValue},set(t){t!==this.internalLazyValue&&(this.internalLazyValue=t,this.$emit(e,t))}}},watch:{[t](t){this.internalLazyValue=t}}})}const o=r();e["a"]=o},a4e7:function(t,e,i){"use strict";var n=i("23e7"),r=i("395e"),o=i("dad2"),s=!o("isSupersetOf",(function(t){return!t}));n({target:"Set",proto:!0,real:!0,forced:s},{isSupersetOf:r})},a5f7:function(t,e,i){"use strict";var n=i("dc19"),r=i("cb27"),o=i("83b9"),s=i("8e16"),a=i("7f65"),l=i("384f"),c=i("5388"),u=r.has,h=r.remove;t.exports=function(t){var e=n(this),i=a(t),r=o(e);return s(e)<=i.size?l(e,(function(t){i.includes(t)&&h(r,t)})):c(i.getIterator(),(function(t){u(e,t)&&h(r,t)})),r}},a609:function(t,e,i){"use strict";i("7e58");var n=i("3860"),r=i("a9ad"),o=i("58df");e["a"]=Object(o["a"])(n["a"],r["a"]).extend({name:"v-btn-toggle",props:{backgroundColor:String,borderless:Boolean,dense:Boolean,group:Boolean,rounded:Boolean,shaped:Boolean,tile:Boolean},computed:{classes(){return{...n["a"].options.computed.classes.call(this),"v-btn-toggle":!0,"v-btn-toggle--borderless":this.borderless,"v-btn-toggle--dense":this.dense,"v-btn-toggle--group":this.group,"v-btn-toggle--rounded":this.rounded,"v-btn-toggle--shaped":this.shaped,"v-btn-toggle--tile":this.tile,...this.themeClasses}}},methods:{genData(){const t=this.setTextColor(this.color,{...n["a"].options.methods.genData.call(this)});return this.group?t:this.setBackgroundColor(this.backgroundColor,t)}}})},a62b:function(t,e,i){"use strict";var n=i("3642"),r=i("53a8"),o="value",s="\n ",a={};function l(t){var e=Array.isArray(t),i=function(i){return e?t[i]:t};return function(n){var r=c(a.plainArray,n);if(r)return r;if(e&&n.length!==t.length)return"an array with "+t.length+" items";for(var o=0;o<n.length;o++)if(r=c(i(o),n[o]),r)return[o].concat(r)}}function c(t,e){if(null!=e||t.hasOwnProperty("__required")){var i=t(e);return i?Array.isArray(i)?i:[i]:void 0}}function u(t,e){var i=t.length,n=t[i-1],s=t.slice(0,i-1);return 0===s.length&&(s=[o]),e=r(e,{path:s}),"function"===typeof n?n(e):p(e,d(n))}function h(t){return t.length<2?t[0]:2===t.length?t.join(" or "):t.slice(0,-1).join(", ")+", or "+t.slice(-1)}function d(t){return"must be "+f(t)+"."}function f(t){return/^an? /.test(t)?t:/^[aeiou]/i.test(t)?"an "+t:/^[a-z]/i.test(t)?"a "+t:t}function p(t,e){var i=m(t.path),n=t.path.join(".")+" "+e,r=i?"Item at position ":"";return r+n}function m(t){return"number"==typeof t[t.length-1]||"number"==typeof t[0]}function g(t){return Object.keys(t||{}).map((function(e){return{key:e,value:t[e]}}))}a.assert=function(t,e){return e=e||{},function(i){var n=c(t,i);if(n){var r=u(n,e);throw e.apiName&&(r=e.apiName+": "+r),new Error(r)}}},a.shape=function(t){var e=g(t);return function(t){var i,n,r=c(a.plainObject,t);if(r)return r;for(var l=[],h=0;h<e.length;h++)i=e[h].key,n=e[h].value,r=c(n,t[i]),r&&l.push([i].concat(r));return l.length<2?l[0]:function(t){l=l.map((function(e){var i=e[0],n=u(e,t).split("\n").join(s);return"- "+i+": "+n}));var e=t.path.join("."),i=e===o?"":" of "+e;return"The following properties"+i+" have invalid values:"+s+l.join(s)}}},a.strictShape=function(t){var e=a.shape(t);return function(i){var n=e(i);if(n)return n;var r=Object.keys(i).reduce((function(e,i){return void 0===t[i]&&e.push(i),e}),[]);return 0!==r.length?function(){return"The following keys are invalid: "+r.join(", ")}:void 0}},a.arrayOf=function(t){return l(t)},a.tuple=function(){var t=Array.isArray(arguments[0])?arguments[0]:Array.prototype.slice.call(arguments);return l(t)},a.required=function(t){function e(e){return null==e?function(t){return p(t,m(t.path)?"cannot be undefined/null.":"is required.")}:t.apply(this,arguments)}return e.__required=!0,e},a.oneOfType=function(){var t=Array.isArray(arguments[0])?arguments[0]:Array.prototype.slice.call(arguments);return function(e){var i=t.map((function(t){return c(t,e)}
9)).filter(Boolean);if(i.length===t.length)return i.every((function(t){return 1===t.length&&"string"===typeof t[0]}))?h(i.map((function(t){return t[0]}))):i.reduce((function(t,e){return e.length>t.length?e:t}))}},a.equal=function(t){return function(e){if(e!==t)return JSON.stringify(t)}},a.oneOf=function(){var t=Array.isArray(arguments[0])?arguments[0]:Array.prototype.slice.call(arguments),e=t.map((function(t){return a.equal(t)}));return a.oneOfType.apply(this,e)},a.range=function(t){var e=t[0],i=t[1];return function(t){var n=c(a.number,t);if(n||t<e||t>i)return"number between "+e+" & "+i+" (inclusive)"}},a.any=function(){},a.boolean=function(t){if("boolean"!==typeof t)return"boolean"},a.number=function(t){if("number"!==typeof t)return"number"},a.plainArray=function(t){if(!Array.isArray(t))return"array"},a.plainObject=function(t){if(!n(t))return"object"},a.string=function(t){if("string"!==typeof t)return"string"},a.func=function(t){if("function"!==typeof t)return"function"},a.validate=c,a.processMessage=u,t.exports=a},a640:function(t,e,i){"use strict";var n=i("d039");t.exports=function(t,e){var i=[][t];return!!i&&n((function(){i.call(null,e||function(){return 1},1)}))}},a732:function(t,e,i){"use strict";var n=i("23e7"),r=i("2266"),o=i("59ed"),s=i("825a"),a=i("46c4");n({target:"Iterator",proto:!0,real:!0},{some:function(t){s(this),o(t);var e=a(this),i=0;return r(e,(function(e,n){if(t(e,i++))return n()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},a9ad:function(t,e,i){"use strict";var n=i("2b0e"),r=i("d9bd"),o=i("7bc6");e["a"]=n["a"].extend({name:"colorable",props:{color:String},methods:{setBackgroundColor(t,e={}){return"string"===typeof e.style?(Object(r["b"])("style must be an object",this),e):"string"===typeof e.class?(Object(r["b"])("class must be an object",this),e):(Object(o["d"])(t)?e.style={...e.style,"background-color":""+t,"border-color":""+t}:t&&(e.class={...e.class,[t]:!0}),e)},setTextColor(t,e={}){if("string"===typeof e.style)return Object(r["b"])("style must be an object",this),e;if("string"===typeof e.class)return Object(r["b"])("class must be an object",this),e;if(Object(o["d"])(t))e.style={...e.style,color:""+t,"caret-color":""+t};else if(t){const[i,n]=t.toString().trim().split(" ",2);e.class={...e.class,[i+"--text"]:!0},n&&(e.class["text--"+n]=!0)}return e}}})},ab36:function(t,e,i){"use strict";var n=i("861d"),r=i("9112");t.exports=function(t,e){n(e)&&"cause"in e&&r(t,"cause",e.cause)}},ab43:function(t,e,i){"use strict";var n=i("23e7"),r=i("d024"),o=i("c430");n({target:"Iterator",proto:!0,real:!0,forced:o},{map:r})},ac6d:function(t,e,i){},ac7c:function(t,e,i){"use strict";i("6ca7"),i("ec29");var n=i("9d26"),r=i("c37a"),o=(i("14d9"),i("e9f5"),i("910d"),i("a732"),i("5607")),s=i("2b0e"),a=s["a"].extend({name:"rippleable",directives:{ripple:o["a"]},props:{ripple:{type:[Boolean,Object],default:!0}},methods:{genRipple(t={}){return this.ripple?(t.staticClass="v-input--selection-controls__ripple",t.directives=t.directives||[],t.directives.push({name:"ripple",value:{center:!0}}),this.$createElement("div",t)):null}}}),l=i("8547"),c=i("58df");function u(t){t.preventDefault()}var h=Object(c["a"])(r["a"],a,l["a"]).extend({name:"selectable",model:{prop:"inputValue",event:"change"},props:{id:String,inputValue:null,falseValue:null,trueValue:null,multiple:{type:Boolean,default:null},label:String},data(){return{hasColor:this.inputValue,lazyValue:this.inputValue}},computed:{computedColor(){if(this.isActive)return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"},isMultiple(){return!0===this.multiple||null===this.multiple&&Array.isArray(this.internalValue)},isActive(){const t=this.value,e=this.internalValue;return this.isMultiple?!!Array.isArray(e)&&e.some(e=>this.valueComparator(e,t)):void 0===this.trueValue||void 0===this.falseValue?t?this.valueComparator(t,e):Boolean(e):this.valueComparator(e,this.trueValue)},isDirty(){return this.isActive},rippleState(){return this.isDisabled||this.validationState?this.validationState:void 0}},watch:{inputValue(t){this.lazyValue=t,this.hasColor=t}},methods:{genLabel(){const t=r["a"].options.methods.genLabel.call(this);return t?(t.data.on={click:u},t):t},genInput(t,e){return this.$createElement("input",{attrs:Object.assign({"aria-checked":this.isActive.toString(),disabled:this.isDisabled,id:this.computedId,role:t,type:t},e),domProps:{value:this.value,checked:this.isActive},on:{blur:this.onBlur,change:this.onChange,focus:this.onFocus,keydown:this.onKeydown,click:u},ref:"input"})},onClick(t){this.onChange(),this.$emit("click",t)},onChange(){if(!this.isInteractive)return;const t=this.value;let e=this.internalValue;if(this.isMultiple){Array.isArray(e)||(e=[]);const i=e.length;e=e.filter(e=>!this.valueComparator(e,t)),e.length===i&&e.push(t)}else e=void 0!==this.trueValue&&void 0!==this.falseValue?this.valueComparator(e,this.trueValue)?this.falseValue:this.trueValue:t?this.valueComparator(e,t)?null:t:!e;this.validate(!0,e),this.internalValue=e,this.hasColor=e},onFocus(t){this.isFocused=!0,this.$emit("focus",t)},onBlur(t){this.isFocused=!1,this.$emit("blur",t)},onKeydown(t){}}});e["a"]=h.extend({name:"v-checkbox",props:{indeterminate:Boolean,indeterminateIcon:{type:String,default:"$checkboxIndeterminate"},offIcon:{type:String,default:"$checkboxOff"},onIcon:{type:String,default:"$checkboxOn"}},data(){return{inputIndeterminate:this.indeterminate}},computed:{classes(){return{...r["a"].options.computed.classes.call(this),"v-input--selection-controls":!0,"v-input--checkbox":!0,"v-input--indeterminate":this.inputIndeterminate}},computedIcon(){return this.inputIndeterminate?this.indeterminateIcon:this.isActive?this.onIcon:this.offIcon},validationState(){if(!this.isDisabled||this.inputIndeterminate)return this.hasError&&this.shouldValidate?"error":this.hasSuccess?"success":null!==this.hasColor?this.computedColor:void 0}},watch:{indeterminate(t){this.$nextTick(()=>this.inputIndeterminate=t)},inputIndeterminate(t){this.$emit("update:indeterminate",t)},isActive(){this.indeterminate&&(this.inputIndeterminate=!1)}},methods:{genCheckbox(){const{title:t,...e}=this.attrs$;return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.$createElement(n["a"],this.setTextColor(this.validationState,{props:{dense:this.dense,dark:this.dark,light:this.light}}),this.computedIcon),this.genInput("checkbox",{...e,"aria-checked":this.inputIndeterminate?"mixed":this.isActive.toString()}),this.genRipple(this.setTextColor(this.rippleState))])},genDefaultSlot(){return[this.genCheckbox(),this.genLabel()]}}})}
9,ad67:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));const n=10,r=2;function o(t){return s(t,[])}function s(t,e){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return a(t,e);default:return String(t)}}function a(t,e){if(null===t)return"null";if(e.includes(t))return"[Circular]";const i=[...e,t];if(l(t)){const e=t.toJSON();if(e!==t)return"string"===typeof e?e:s(e,i)}else if(Array.isArray(t))return u(t,i);return c(t,i)}function l(t){return"function"===typeof t.toJSON}function c(t,e){const i=Object.entries(t);if(0===i.length)return"{}";if(e.length>r)return"["+h(t)+"]";const n=i.map(([t,i])=>t+": "+s(i,e));return"{ "+n.join(", ")+" }"}function u(t,e){if(0===t.length)return"[]";if(e.length>r)return"[Array]";const i=Math.min(n,t.length),o=t.length-i,a=[];for(let n=0;n<i;++n)a.push(s(t[n],e));return 1===o?a.push("... 1 more item"):o>1&&a.push(`... ${o} more items`),"["+a.join(", ")+"]"}function h(t){const e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if("Object"===e&&"function"===typeof t.constructor){const e=t.constructor.name;if("string"===typeof e&&""!==e)return e}return e}},ad6d:function(t,e,i){"use strict";var n=i("825a");t.exports=function(){var t=n(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},adda:function(t,e,i){"use strict";i("14d9"),i("8efc");var n=i("90a2"),r=(i("36a7"),i("24b2")),o=i("58df"),s=i("80d2"),a=Object(o["a"])(r["a"]).extend({name:"v-responsive",props:{aspectRatio:[String,Number],contentClass:String},computed:{computedAspectRatio(){return Number(this.aspectRatio)},aspectStyle(){return this.computedAspectRatio?{paddingBottom:1/this.computedAspectRatio*100+"%"}:void 0},__cachedSizer(){return this.aspectStyle?this.$createElement("div",{style:this.aspectStyle,staticClass:"v-responsive__sizer"}):[]}},methods:{genContent(){return this.$createElement("div",{staticClass:"v-responsive__content",class:this.contentClass},Object(s["m"])(this))}},render(t){return t("div",{staticClass:"v-responsive",style:this.measurableStyles,on:this.$listeners},[this.__cachedSizer,this.genContent()])}}),l=a,c=i("7560"),u=i("d9f7"),h=i("d9bd");const d="undefined"!==typeof window&&"IntersectionObserver"in window;e["a"]=Object(o["a"])(l,c["a"]).extend({name:"v-img",directives:{intersect:n["a"]},props:{alt:String,contain:Boolean,eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},position:{type:String,default:"center center"},sizes:String,src:{type:[String,Object],default:""},srcset:String,transition:{type:[Boolean,String],default:"fade-transition"}},data(){return{currentSrc:"",image:null,isLoading:!0,calculatedAspectRatio:void 0,naturalWidth:void 0,hasError:!1}},computed:{computedAspectRatio(){return Number(this.normalisedSrc.aspect||this.calculatedAspectRatio)},normalisedSrc(){return this.src&&"object"===typeof this.src?{src:this.src.src,srcset:this.srcset||this.src.srcset,lazySrc:this.lazySrc||this.src.lazySrc,aspect:Number(this.aspectRatio||this.src.aspect)}:{src:this.src,srcset:this.srcset,lazySrc:this.lazySrc,aspect:Number(this.aspectRatio||0)}},__cachedImage(){if(!(this.normalisedSrc.src||this.normalisedSrc.lazySrc||this.gradient))return[];const t=[],e=this.isLoading?this.normalisedSrc.lazySrc:this.currentSrc;this.gradient&&t.push(`linear-gradient(${this.gradient})`),e&&t.push(`url("${e}")`);const i=this.$createElement("div",{staticClass:"v-image__image",class:{"v-image__image--preload":this.isLoading,"v-image__image--contain":this.contain,"v-image__image--cover":!this.contain},style:{backgroundImage:t.join(", "),backgroundPosition:this.position},key:+this.isLoading});return this.transition?this.$createElement("transition",{attrs:{name:this.transition,mode:"in-out"}},[i]):i}},watch:{src(){this.isLoading?this.loadImage():this.init(void 0,void 0,!0)},"$vuetify.breakpoint.width":"getSrc"},mounted(){this.init()},methods:{init(t,e,i){if(!d||i||this.eager){if(this.normalisedSrc.lazySrc){const t=new Image;t.src=this.normalisedSrc.lazySrc,this.pollForSize(t,null)}this.normalisedSrc.src&&this.loadImage()}}
9,onLoad(){this.getSrc(),this.isLoading=!1,this.$emit("load",this.src),this.image&&(this.normalisedSrc.src.endsWith(".svg")||this.normalisedSrc.src.startsWith("data:image/svg+xml"))&&(this.image.naturalHeight&&this.image.naturalWidth?(this.naturalWidth=this.image.naturalWidth,this.calculatedAspectRatio=this.image.naturalWidth/this.image.naturalHeight):this.calculatedAspectRatio=1)},onError(){this.hasError=!0,this.$emit("error",this.src)},getSrc(){this.image&&(this.currentSrc=this.image.currentSrc||this.image.src)},loadImage(){const t=new Image;this.image=t,t.onload=()=>{t.decode?t.decode().catch(t=>{Object(h["c"])("Failed to decode image, trying to render anyway\n\nsrc: "+this.normalisedSrc.src+(t.message?"\nOriginal error: "+t.message:""),this)}).then(this.onLoad):this.onLoad()},t.onerror=this.onError,this.hasError=!1,this.sizes&&(t.sizes=this.sizes),this.normalisedSrc.srcset&&(t.srcset=this.normalisedSrc.srcset),t.src=this.normalisedSrc.src,this.$emit("loadstart",this.normalisedSrc.src),this.aspectRatio||this.pollForSize(t),this.getSrc()},pollForSize(t,e=100){const i=()=>{const{naturalHeight:n,naturalWidth:r}=t;n||r?(this.naturalWidth=r,this.calculatedAspectRatio=r/n):t.complete||!this.isLoading||this.hasError||null==e||setTimeout(i,e)};i()},genContent(){const t=l.options.methods.genContent.call(this);return this.naturalWidth&&this._b(t.data,"div",{style:{width:this.naturalWidth+"px"}}),t},__genPlaceholder(){const t=Object(s["m"])(this,"placeholder");if(t){const e=this.isLoading?[this.$createElement("div",{staticClass:"v-image__placeholder"},t)]:[];return this.transition?this.$createElement("transition",{props:{appear:!0,name:this.transition}},e):e[0]}}},render(t){const e=l.options.render.call(this,t),i=Object(u["a"])(e.data,{staticClass:"v-image",attrs:{"aria-label":this.alt,role:this.alt?"img":void 0},class:this.themeClasses,directives:d?[{name:"intersect",modifiers:{once:!0},value:{handler:this.init,options:this.options}}]:void 0});return e.children=[this.__cachedSizer,this.__cachedImage,this.__genPlaceholder(),this.genContent()],t(e.tag,i,e.children)}})},ae93:function(t,e,i){"use strict";var n,r,o,s=i("d039"),a=i("1626"),l=i("861d"),c=i("7c73"),u=i("e163"),h=i("cb2d"),d=i("b622"),f=i("c430"),p=d("iterator"),m=!1;[].keys&&(o=[].keys(),"next"in o?(r=u(u(o)),r!==Object.prototype&&(n=r)):m=!0);var g=!l(n)||s((function(){var t={};return n[p].call(t)!==t}));g?n={}:f&&(n=c(n)),a(n[p])||h(n,p,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},aeb0:function(t,e,i){"use strict";var n=i("9bf2").f;t.exports=function(t,e,i){i in t||n(t,i,{configurable:!0,get:function(){return e[i]},set:function(t){e[i]=t}})}},aed9:function(t,e,i){"use strict";var n=i("83ab"),r=i("d039");t.exports=n&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},af2b:function(t,e,i){"use strict";var n=i("2b0e");e["a"]=n["a"].extend({name:"sizeable",props:{large:Boolean,small:Boolean,xLarge:Boolean,xSmall:Boolean},computed:{medium(){return Boolean(!this.xSmall&&!this.small&&!this.large&&!this.xLarge)},sizeableClasses(){return{"v-size--x-small":this.xSmall,"v-size--small":this.small,"v-size--default":this.medium,"v-size--large":this.large,"v-size--x-large":this.xLarge}}}})},afdd:function(t,e,i){"use strict";var n=i("8336");e["a"]=n["a"]},b070:function(t,e,i){"use strict";i.d(e,"a",(function(){return o})),i.d(e,"f",(function(){return s})),i.d(e,"g",(function(){return a})),i.d(e,"d",(function(){return l})),i.d(e,"h",(function(){return c})),i.d(e,"c",(function(){return u})),i.d(e,"e",(function(){return h})),i.d(e,"b",(function(){return d}));var n=i("8f69"),r=i("e7a4");function o(t){Object(n["b"])(t&&"Document"===t.kind,88);var e=t.definitions.filter((function(t){return"FragmentDefinition"!==t.kind})).map((function(t){if("OperationDefinition"!==t.kind)throw Object(n["d"])(89,t.kind);return t}));return Object(n["b"])(e.length<=1,90,e.length),t}function s(t){return o(t),t.definitions.filter((function(t){return"OperationDefinition"===t.kind}))[0]}function a(t){return t.definitions.filter((function(t){return"OperationDefinition"===t.kind&&!!t.name})).map((function(t){return t.name.value}))[0]||null}function l(t){return t.definitions.filter((function(t){return"FragmentDefinition"===t.kind}))}function c(t){var e=s(t);return Object(n["b"])(e&&"query"===e.operation,91),e}function u(t){Object(n["b"])("Document"===t.kind,92),Object(n["b"])(t.definitions.length<=1,93);var e=t.definitions[0];return Object(n["b"])("FragmentDefinition"===e.kind,94),e}function h(t){var e;o(t);for(var i=0,r=t.definitions;i<r.length;i++){var s=r[i];if("OperationDefinition"===s.kind){var a=s.operation;if("query"===a||"mutation"===a||"subscription"===a)return s}"FragmentDefinition"!==s.kind||e||(e=s)}if(e)return e;throw Object(n["d"])(95)}function d(t){var e=Object.create(null),i=t&&t.variableDefinitions;
9return i&&i.length&&i.forEach((function(t){t.defaultValue&&Object(r["k"])(e,t.variable.name,t.defaultValue)})),e}},b0af:function(t,e,i){"use strict";i("615b");var n=i("10d2"),r=i("297c"),o=i("1c87"),s=i("58df"),a=i("80d2");e["a"]=Object(s["a"])(r["a"],o["a"],n["a"]).extend({name:"v-card",props:{flat:Boolean,hover:Boolean,img:String,link:Boolean,loaderHeight:{type:[Number,String],default:4},raised:Boolean},computed:{classes(){return{"v-card":!0,...o["a"].options.computed.classes.call(this),"v-card--flat":this.flat,"v-card--hover":this.hover,"v-card--link":this.isClickable,"v-card--loading":this.loading,"v-card--disabled":this.disabled,"v-card--raised":this.raised,...n["a"].options.computed.classes.call(this)}},styles(){const t={...n["a"].options.computed.styles.call(this)};return this.img&&(t.background=`url("${this.img}") center center / cover no-repeat`),t}},methods:{genProgress(){const t=r["a"].options.methods.genProgress.call(this);return t?this.$createElement("div",{staticClass:"v-card__progress",key:"progress"},[t]):null}},render(t){const{tag:e,data:i}=this.generateRouteLink();return i.style=this.styles,this.isClickable&&(i.attrs=i.attrs||{},i.attrs.tabindex=0),t(e,this.setBackgroundColor(this.color,i),[this.genProgress(),Object(a["m"])(this)])}})},b0e8:function(t,e,i){"use strict";function n(t){return 9===t||32===t}function r(t){return t>=48&&t<=57}function o(t){return t>=97&&t<=122||t>=65&&t<=90}function s(t){return o(t)||95===t}function a(t){return o(t)||r(t)||95===t}i.d(e,"d",(function(){return n})),i.d(e,"a",(function(){return r})),i.d(e,"c",(function(){return s})),i.d(e,"b",(function(){return a}))},b42e:function(t,e,i){"use strict";var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?r:n)(e)}},b4bc:function(t,e,i){"use strict";var n=i("dc19"),r=i("cb27").has,o=i("8e16"),s=i("7f65"),a=i("384f"),l=i("5388"),c=i("2a62");t.exports=function(t){var e=n(this),i=s(t);if(o(e)<=i.size)return!1!==a(e,(function(t){if(i.includes(t))return!1}),!0);var u=i.getIterator();return!1!==l(u,(function(t){if(r(e,t))return c(u,"normal",!1)}))}},b5db:function(t,e,i){"use strict";var n=i("cfe9"),r=n.navigator,o=r&&r.userAgent;t.exports=o?String(o):""},b622:function(t,e,i){"use strict";var n=i("cfe9"),r=i("5692"),o=i("1a2d"),s=i("90e3"),a=i("04f8"),l=i("fdbf"),c=n.Symbol,u=r("wks"),h=l?c["for"]||c:c&&c.withoutSetter||s;t.exports=function(t){return o(u,t)||(u[t]=a&&o(c,t)?c[t]:h("Symbol."+t)),u[t]}},b639:function(t,e,i){"use strict";(function(t){ 10/*! 11 * The buffer module from node.js, for the browser. 12 * 13 * @author Feross Aboukhadijeh <http://feross.org> 14 * @license MIT 15 */ 16var n=i("1fb5"),r=i("9152"),o=i("2335");function s(){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(e){return!1}}function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=c.prototype):(null===t&&(t=new c(e)),t.length=e),t}function c(t,e,i){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(t,e,i);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}return u(this,t,e,i)}function u(t,e,i,n){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?g(t,e,i,n):"string"===typeof e?p(t,e,i):y(t,e)}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 d(t,e,i,n){return h(e),e<=0?l(t,e):void 0!==i?"string"===typeof n?l(t,e).fill(i,n):l(t,e).fill(i):l(t,e)}function f(t,e){if(h(e),t=l(t,e<0?0:0|_(e)),!c.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)t[i]=0;return t}function p(t,e,i){if("string"===typeof i&&""!==i||(i="utf8"),!c.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var n=0|b(e,i);t=l(t,n);var r=t.write(e,i);
vendor: 4,776 bytes, line 16
16return r!==n&&(t=t.slice(0,r)),t}function m(t,e){var i=e.length<0?0:0|_(e.length);t=l(t,i);for(var n=0;n<i;n+=1)t[n]=255&e[n];return t}function g(t,e,i,n){if(e.byteLength,i<0||e.byteLength<i)throw new RangeError("'offset' is out of bounds");if(e.byteLength<i+(n||0))throw new RangeError("'length' is out of bounds");return e=void 0===i&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,i):new Uint8Array(e,i,n),c.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=c.prototype):t=m(t,e),t}function y(t,e){if(c.isBuffer(e)){var i=0|_(e.length);return t=l(t,i),0===t.length?t:(e.copy(t,0,0,i),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||et(e.length)?l(t,0):m(t,e);if("Buffer"===e.type&&o(e.data))return m(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function _(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function v(t){return+t!=t&&(t=0),c.alloc(+t)}function b(t,e){if(c.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 i=t.length;if(0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return Q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return J(t).length;default:if(n)return Q(t).length;e=(""+e).toLowerCase(),n=!0}}function x(t,e,i){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if(i>>>=0,e>>>=0,i<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return j(this,e,i);case"utf8":case"utf-8":return P(this,e,i);case"ascii":return R(this,e,i);case"latin1":case"binary":return z(this,e,i);case"base64":return M(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function w(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function E(t,e,i,n,r){if(0===t.length)return-1;if("string"===typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=r?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(r)return-1;i=t.length-1}else if(i<0){if(!r)return-1;i=0}if("string"===typeof e&&(e=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:T(t,e,i,n,r);if("number"===typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):T(t,[e],i,n,r);throw new TypeError("val must be string, number or Buffer")}function T(t,e,i,n,r){var o,s=1,a=t.length,l=e.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,l/=2,i/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(r){var u=-1;for(o=i;o<a;o++)if(c(t,o)===c(e,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*s}else-1!==u&&(o-=o-u),u=-1}else for(i+l>a&&(i=a-l),o=i;o>=0;o--){for(var h=!0,d=0;d<l;d++)if(c(t,o+d)!==c(e,d)){h=!1;break}if(h)return o}return-1}function S(t,e,i,n){i=Number(i)||0;var r=t.length-i;n?(n=Number(n),n>r&&(n=r)):n=r;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[i+s]=a}return s}function k(t,e,i,n){return tt(Q(e,t.length-i),t,i,n)}function O(t,e,i,n){return tt(Y(e),t,i,n)}function A(t,e,i,n){return O(t,e,i,n)}function C(t,e,i,n){return tt(J(e),t,i,n)}function I(t,e,i,n){return tt(K(e,t.length-i),t,i,n)}function M(t,e,i){return 0===e&&i===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,i))}function P(t,e,i){i=Math.min(t.length,i);var n=[],r=e;while(r<i){var o,s,a,l,c=t[r],u=null,h=c>239?4:c>223?3:c>191?2:1;if(r+h<=i)switch(h){case 1:c<128&&(u=c);break;case 2:o=t[r+1],128===(192&o)&&(l=(31&c)<<6|63&o,l>127&&(u=l));break;case 3:o=t[r+1],s=t[r+2],128===(192&o)&&128===(192&s)&&(l=(15&c)<<12|(63&o)<<6|63&s,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:o=t[r+1],s=t[r+2],a=t[r+3],128===(192&o)&&128===(192&s)&&128===(192&a)&&(l=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,h=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),r+=h}return L(n)}e.Buffer=c,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:s(),e.kMaxLength=a(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t}
vendor: 5,970 bytes, line 16
16,c.from=function(t,e,i){return u(null,t,e,i)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,i){return d(null,t,e,i)},c.allocUnsafe=function(t){return f(null,t)},c.allocUnsafeSlow=function(t){return f(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var i=t.length,n=e.length,r=0,o=Math.min(i,n);r<o;++r)if(t[r]!==e[r]){i=t[r],n=e[r];break}return i<n?-1:n<i?1:0},c.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}},c.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;var n=c.allocUnsafe(e),r=0;for(i=0;i<t.length;++i){var s=t[i];if(!c.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,r),r+=s.length}return n},c.byteLength=b,c.prototype._isBuffer=!0,c.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 e=0;e<t;e+=2)w(this,e,e+1);return this},c.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 e=0;e<t;e+=4)w(this,e,e+3),w(this,e+1,e+2);return this},c.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 e=0;e<t;e+=8)w(this,e,e+7),w(this,e+1,e+6),w(this,e+2,e+5),w(this,e+3,e+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?P(this,0,t):x.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),"<Buffer "+t+">"},c.prototype.compare=function(t,e,i,n,r){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),e<0||i>t.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&e>=i)return 0;if(n>=r)return-1;if(e>=i)return 1;if(e>>>=0,i>>>=0,n>>>=0,r>>>=0,this===t)return 0;for(var o=r-n,s=i-e,a=Math.min(o,s),l=this.slice(n,r),u=t.slice(e,i),h=0;h<a;++h)if(l[h]!==u[h]){o=l[h],s=u[h];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(t,e,i){return-1!==this.indexOf(t,e,i)},c.prototype.indexOf=function(t,e,i){return E(this,t,e,i,!0)},c.prototype.lastIndexOf=function(t,e,i){return E(this,t,e,i,!1)},c.prototype.write=function(t,e,i,n){if(void 0===e)n="utf8",i=this.length,e=0;else if(void 0===i&&"string"===typeof e)n=e,i=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(i)?(i|=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}var r=this.length-e;if((void 0===i||i>r)&&(i=r),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return S(this,t,e,i);case"utf8":case"utf-8":return k(this,t,e,i);case"ascii":return O(this,t,e,i);case"latin1":case"binary":return A(this,t,e,i);case"base64":return C(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,e,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var D=4096;function L(t){var e=t.length;if(e<=D)return String.fromCharCode.apply(String,t);var i="",n=0;while(n<e)i+=String.fromCharCode.apply(String,t.slice(n,n+=D));return i}function R(t,e,i){var n="";i=Math.min(t.length,i);for(var r=e;r<i;++r)n+=String.fromCharCode(127&t[r]);return n}function z(t,e,i){var n="";i=Math.min(t.length,i);for(var r=e;r<i;++r)n+=String.fromCharCode(t[r]);return n}function j(t,e,i){var n=t.length;(!e||e<0)&&(e=0),(!i||i<0||i>n)&&(i=n);for(var r="",o=e;o<i;++o)r+=X(t[o]);return r}function B(t,e,i){for(var n=t.slice(e,i),r="",o=0;o<n.length;o+=2)r+=String.fromCharCode(n[o]+256*n[o+1]);return r}function F(t,e,i){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>i)throw new RangeError("Trying to access beyond buffer length")}function N(t,e,i,n,r,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<o)throw new RangeError('"value" argument is out of bounds');if(i+n>t.length)throw new RangeError("Index out of range")}function V(t,e,i,n){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-i,2);r<o;++r)t[i+r]=(e&255<<8*(n?r:1-r))>>>8*(n?r:1-r)}function $(t,e,i,n){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-i,4);r<o;++r)t[i+r]=e>>>8*(n?r:3-r)&255}function U(t,e,i,n,r,o){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function q(t,e,i,n,o){return o||U(t,e,i,4,34028234663852886e22,-34028234663852886e22),r.write(t,e,i,n,23,4),i+4}function G(t,e,i,n,o){return o||U(t,e,i,8,17976931348623157e292,-17976931348623157e292),r.write(t,e,i,n,52,8),i+8}c.prototype.slice=function(t,e){var i,n=this.length;if(t=~~t,e=void 0===e?n:~~e,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<t&&(e=t),c.TYPED_ARRAY_SUPPORT)i=this.subarray(t,e),i.__proto__=c.prototype;else{var r=e-t;i=new c(r,void 0);for(var o=0;o<r;++o)i[o]=this[o+t]}return i}
vendor: 4,075 bytes, line 16
16,c.prototype.readUIntLE=function(t,e,i){t|=0,e|=0,i||F(t,e,this.length);var n=this[t],r=1,o=0;while(++o<e&&(r*=256))n+=this[t+o]*r;return n},c.prototype.readUIntBE=function(t,e,i){t|=0,e|=0,i||F(t,e,this.length);var n=this[t+--e],r=1;while(e>0&&(r*=256))n+=this[t+--e]*r;return n},c.prototype.readUInt8=function(t,e){return e||F(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||F(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||F(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||F(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||F(t,e,this.length);var n=this[t],r=1,o=0;while(++o<e&&(r*=256))n+=this[t+o]*r;return r*=128,n>=r&&(n-=Math.pow(2,8*e)),n},c.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||F(t,e,this.length);var n=e,r=1,o=this[t+--n];while(n>0&&(r*=256))o+=this[t+--n]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return e||F(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||F(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt16BE=function(t,e){e||F(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt32LE=function(t,e){return e||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||F(t,4,this.length),r.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||F(t,4,this.length),r.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||F(t,8,this.length),r.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||F(t,8,this.length),r.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,i,n){if(t=+t,e|=0,i|=0,!n){var r=Math.pow(2,8*i)-1;N(this,t,e,i,r,0)}var o=1,s=0;this[e]=255&t;while(++s<i&&(o*=256))this[e+s]=t/o&255;return e+i},c.prototype.writeUIntBE=function(t,e,i,n){if(t=+t,e|=0,i|=0,!n){var r=Math.pow(2,8*i)-1;N(this,t,e,i,r,0)}var o=i-1,s=1;this[e+o]=255&t;while(--o>=0&&(s*=256))this[e+o]=t/s&255;return e+i},c.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||N(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||N(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||N(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||N(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):$(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||N(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):$(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);N(this,t,e,i,r-1,-r)}var o=0,s=1,a=0;this[e]=255&t;while(++o<i&&(s*=256))t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+i},c.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);N(this,t,e,i,r-1,-r)}var o=i-1,s=1,a=0;this[e+o]=255&t;while(--o>=0&&(s*=256))t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+i},c.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||N(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||N(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2}
vendor: 4,138 bytes, line 16
16,c.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||N(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||N(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):$(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||N(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):$(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,i){return q(this,t,e,!0,i)},c.prototype.writeFloatBE=function(t,e,i){return q(this,t,e,!1,i)},c.prototype.writeDoubleLE=function(t,e,i){return G(this,t,e,!0,i)},c.prototype.writeDoubleBE=function(t,e,i){return G(this,t,e,!1,i)},c.prototype.copy=function(t,e,i,n){if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<i&&(n=i),n===i)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=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-e<n-i&&(n=t.length-e+i);var r,o=n-i;if(this===t&&i<e&&e<n)for(r=o-1;r>=0;--r)t[r+e]=this[r+i];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)t[r+e]=this[r+i];else Uint8Array.prototype.set.call(t,this.subarray(i,i+o),e);return o},c.prototype.fill=function(t,e,i,n){if("string"===typeof t){if("string"===typeof e?(n=e,e=0,i=this.length):"string"===typeof i&&(n=i,i=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;var o;if(e>>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"===typeof t)for(o=e;o<i;++o)this[o]=t;else{var s=c.isBuffer(t)?t:Q(new c(t,n).toString()),a=s.length;for(o=0;o<i-e;++o)this[o+e]=s[o%a]}return this};var W=/[^+\/0-9A-Za-z-_]/g;function Z(t){if(t=H(t).replace(W,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}function H(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function X(t){return t<16?"0"+t.toString(16):t.toString(16)}function Q(t,e){var i;e=e||1/0;for(var n=t.length,r=null,o=[],s=0;s<n;++s){if(i=t.charCodeAt(s),i>55295&&i<57344){if(!r){if(i>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}r=i;continue}if(i<56320){(e-=3)>-1&&o.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,i<128){if((e-=1)<0)break;o.push(i)}else if(i<2048){if((e-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function Y(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}function K(t,e){for(var i,n,r,o=[],s=0;s<t.length;++s){if((e-=2)<0)break;i=t.charCodeAt(s),n=i>>8,r=i%256,o.push(r),o.push(n)}return o}function J(t){return n.toByteArray(Z(t))}function tt(t,e,i,n){for(var r=0;r<n;++r){if(r+i>=e.length||r>=t.length)break;e[r+i]=t[r]}return r}function et(t){return t!==t}}).call(this,i("c8ba"))},b675:function(t,e,i){},b71a:function(t,e,i){(function(t,i){var n=200,r="Expected a function",o="__lodash_hash_undefined__",s=1,a=2,l=1/0,c=9007199254740991,u="[object Arguments]",h="[object Array]",d="[object Boolean]",f="[object Date]",p="[object Error]",m="[object Function]",g="[object GeneratorFunction]",y="[object Map]",_="[object Number]",v="[object Object]",b="[object Promise]",x="[object RegExp]",w="[object Set]",E="[object String]",T="[object Symbol]",S="[object WeakMap]",k="[object ArrayBuffer]",O="[object DataView]",A="[object Float32Array]",C="[object Float64Array
vendor: 12,009 bytes, line 16
16]",I="[object Int8Array]",M="[object Int16Array]",P="[object Int32Array]",D="[object Uint8Array]",L="[object Uint8ClampedArray]",R="[object Uint16Array]",z="[object Uint32Array]",j=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,B=/^\w*$/,F=/^\./,N=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,V=/[\\^$.*+?()[\]{}|]/g,$=/\\(\\)?/g,U=/^\[object .+?Constructor\]$/,q=/^(?:0|[1-9]\d*)$/,G={};G[A]=G[C]=G[I]=G[M]=G[P]=G[D]=G[L]=G[R]=G[z]=!0,G[u]=G[h]=G[k]=G[d]=G[O]=G[f]=G[p]=G[m]=G[y]=G[_]=G[v]=G[x]=G[w]=G[E]=G[S]=!1;var W="object"==typeof t&&t&&t.Object===Object&&t,Z="object"==typeof self&&self&&self.Object===Object&&self,H=W||Z||Function("return this")(),X=e&&!e.nodeType&&e,Q=X&&"object"==typeof i&&i&&!i.nodeType&&i,Y=Q&&Q.exports===X,K=Y&&W.process,J=function(){try{return K&&K.binding("util")}catch(t){}}(),tt=J&&J.isTypedArray;function et(t,e){var i=t?t.length:0;return!!i&&ot(t,e,0)>-1}function it(t,e,i){var n=-1,r=t?t.length:0;while(++n<r)if(i(e,t[n]))return!0;return!1}function nt(t,e){var i=-1,n=t?t.length:0;while(++i<n)if(e(t[i],i,t))return!0;return!1}function rt(t,e,i,n){var r=t.length,o=i+(n?1:-1);while(n?o--:++o<r)if(e(t[o],o,t))return o;return-1}function ot(t,e,i){if(e!==e)return rt(t,st,i);var n=i-1,r=t.length;while(++n<r)if(t[n]===e)return n;return-1}function st(t){return t!==t}function at(t){return function(e){return null==e?void 0:e[t]}}function lt(t,e){var i=-1,n=Array(t);while(++i<t)n[i]=e(i);return n}function ct(t){return function(e){return t(e)}}function ut(t,e){return t.has(e)}function ht(t,e){return null==t?void 0:t[e]}function dt(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(i){}return e}function ft(t){var e=-1,i=Array(t.size);return t.forEach((function(t,n){i[++e]=[n,t]})),i}function pt(t,e){return function(i){return t(e(i))}}function mt(t){var e=-1,i=Array(t.size);return t.forEach((function(t){i[++e]=t})),i}var gt=Array.prototype,yt=Function.prototype,_t=Object.prototype,vt=H["__core-js_shared__"],bt=function(){var t=/[^.]+$/.exec(vt&&vt.keys&&vt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),xt=yt.toString,wt=_t.hasOwnProperty,Et=_t.toString,Tt=RegExp("^"+xt.call(wt).replace(V,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),St=H.Symbol,kt=H.Uint8Array,Ot=_t.propertyIsEnumerable,At=gt.splice,Ct=pt(Object.keys,Object),It=Ve(H,"DataView"),Mt=Ve(H,"Map"),Pt=Ve(H,"Promise"),Dt=Ve(H,"Set"),Lt=Ve(H,"WeakMap"),Rt=Ve(Object,"create"),zt=Je(It),jt=Je(Mt),Bt=Je(Pt),Ft=Je(Dt),Nt=Je(Lt),Vt=St?St.prototype:void 0,$t=Vt?Vt.valueOf:void 0,Ut=Vt?Vt.toString:void 0;function qt(t){var e=-1,i=t?t.length:0;this.clear();while(++e<i){var n=t[e];this.set(n[0],n[1])}}function Gt(){this.__data__=Rt?Rt(null):{}}function Wt(t){return this.has(t)&&delete this.__data__[t]}function Zt(t){var e=this.__data__;if(Rt){var i=e[t];return i===o?void 0:i}return wt.call(e,t)?e[t]:void 0}function Ht(t){var e=this.__data__;return Rt?void 0!==e[t]:wt.call(e,t)}function Xt(t,e){var i=this.__data__;return i[t]=Rt&&void 0===e?o:e,this}function Qt(t){var e=-1,i=t?t.length:0;this.clear();while(++e<i){var n=t[e];this.set(n[0],n[1])}}function Yt(){this.__data__=[]}function Kt(t){var e=this.__data__,i=_e(e,t);if(i<0)return!1;var n=e.length-1;return i==n?e.pop():At.call(e,i,1),!0}function Jt(t){var e=this.__data__,i=_e(e,t);return i<0?void 0:e[i][1]}function te(t){return _e(this.__data__,t)>-1}function ee(t,e){var i=this.__data__,n=_e(i,t);return n<0?i.push([t,e]):i[n][1]=e,this}function ie(t){var e=-1,i=t?t.length:0;this.clear();while(++e<i){var n=t[e];this.set(n[0],n[1])}}function ne(){this.__data__={hash:new qt,map:new(Mt||Qt),string:new qt}}function re(t){return Fe(this,t)["delete"](t)}function oe(t){return Fe(this,t).get(t)}function se(t){return Fe(this,t).has(t)}function ae(t,e){return Fe(this,t).set(t,e),this}function le(t){var e=-1,i=t?t.length:0;this.__data__=new ie;while(++e<i)this.add(t[e])}function ce(t){return this.__data__.set(t,o),this}function ue(t){return this.__data__.has(t)}function he(t){this.__data__=new Qt(t)}function de(){this.__data__=new Qt}function fe(t){return this.__data__["delete"](t)}function pe(t){return this.__data__.get(t)}function me(t){return this.__data__.has(t)}function ge(t,e){var i=this.__data__;if(i instanceof Qt){var r=i.__data__;if(!Mt||r.length<n-1)return r.push([t,e]),this;i=this.__data__=new ie(r)}return i.set(t,e),this}function ye(t,e){var i=ri(t)||ni(t)?lt(t.length,String):[],n=i.length,r=!!n;for(var o in t)!e&&!wt.call(t,o)||r&&("length"==o||qe(o,n))||i.push(o);return i}function _e(t,e){var i=t.length;while(i--)if(ii(t[i][0],e))return i;return-1}function ve(t,e){e=Ge(e,t)?[e]:Le(e);var i=0,n=e.length;while(null!=t&&i<n)t=t[Ke(e[i++])];return i&&i==n?t:void 0}function be(t){return Et.call(t)}function xe(t,e){return null!=t&&e in Object(t)}function we(t,e,i,n,r){return t===e||(null==t||null==e||!ci(t)&&!ui(e)?t!==t&&e!==e:Ee(t,e,we,i,n,r))}function Ee(t,e,i,n,r,o){var s=ri(t),l=ri(e),c=h,d=h;s||(c=$e(t),c=c==u?v:c),l||(d=$e(e),d=d==u?v:d);var f=c==v&&!dt(t),p=d==v&&!dt(e),m=c==d;if(m&&!f)return o||(o=new he),s||di(t)?ze(t,e,i,n,r,o):je(t,e,c,i,n,r,o);if(!(r&a)){var g=f&&wt.call(t,"__wrapped__"),y=p&&wt.call(e,"__wrapped__");if(g||y){var _=g?t.value():t,b=y?e.value():e;return o||(o=new he),i(_,b,n,r,o)}}return!!m&&(o||(o=new he),Be(t,e,i,n,r,o))}function Te(t,e,i,n){var r=i.length,o=r,l=!n;if(null==t)return!o;t=Object(t);while(r--){var c=i[r];if(l&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}while(++r<o){c=i[r];var u=c[0],h=t[u],d=c[1];if(l&&c[2]){if(void 0===h&&!(u in t))return!1}else{var f=new he;if(n)var p=n(h,d,u,t,e,f);if(!(void 0===p?we(d,h,n,s|a,f):p))return!1}}return!0}function Se(t){if(!ci(t)||Ze(t))return!1;var e=ai(t)||dt(t)?Tt:U;return e.test(Je(t))}function ke(t){return ui(t)&&li(t.length)&&!!G[Et.call(t)]}function Oe(t){return"function"==typeof t?t:null==t?yi:"object"==typeof t?ri(t)?Ie(t[0],t[1]):Ce(t):vi(t)}function Ae(t){if(!He(t))return Ct(t);var e=[];for(var i in Object(t))wt.call(t,i)&&"constructor"!=i&&e.push(i);return e}function Ce(t){var e=Ne(t);return 1==e.length&&e[0][2]?Qe(e[0][0],e[0][1]):function(i){return i===t||Te(i,t,e)}}function Ie(t,e){return Ge(t)&&Xe(e)?Qe(Ke(t),e):function(i){var n=pi(i,t);return void 0===n&&n===e?mi(i,t):we(e,n,void 0,s|a)}}function Me(t){return function(e){return ve(e,t)}}function Pe(t){if("string"==typeof t)return t;if(hi(t))return Ut?Ut.call(t):"";var e=t+"";return"0"==e&&1/t==-l?"-0":e}function De(t,e,i){var r=-1,o=et,s=t.length,a=!0,l=[],c=l;if(i)a=!1,o=it;else if(s>=n){var u=e?null:Re(t);if(u)return mt(u);a=!1,o=ut,c=new le}else c=e?[]:l;t:while(++r<s){var h=t[r],d=e?e(h):h;if(h=i||0!==h?h:0,a&&d===d){var f=c.length;while(f--)if(c[f]===d)continue t;e&&c.push(d),l.push(h)}else o(c,d,i)||(c!==l&&c.push(d),l.push(h))}return l}function Le(t){return ri(t)?t:Ye(t)}qt.prototype.clear=Gt,qt.prototype["delete"]=Wt,qt.prototype.get=Zt,qt.prototype.has=Ht,qt.prototype.set=Xt,Qt.prototype.clear=Yt,Qt.prototype["delete"]=Kt,Qt.prototype.get=Jt,Qt.prototype.has=te,Qt.prototype.set=ee,ie.prototype.clear=ne,ie.prototype["delete"]=re,ie.prototype.get=oe,ie.prototype.has=se,ie.prototype.set=ae,le.prototype.add=le.prototype.push=ce,le.prototype.has=ue,he.prototype.clear=de,he.prototype["delete"]=fe,he.prototype.get=pe,he.prototype.has=me,he.prototype.set=ge;var Re=Dt&&1/mt(new Dt([,-0]))[1]==l?function(t){return new Dt(t)}:_i;function ze(t,e,i,n,r,o){var l=r&a,c=t.length,u=e.length;if(c!=u&&!(l&&u>c))return!1;var h=o.get(t);if(h&&o.get(e))return h==e;var d=-1,f=!0,p=r&s?new le:void 0;o.set(t,e),o.set(e,t);while(++d<c){var m=t[d],g=e[d];if(n)var y=l?n(g,m,d,e,t,o):n(m,g,d,t,e,o);if(void 0!==y){if(y)continue;f=!1;break}if(p){if(!nt(e,(function(t,e){if(!p.has(e)&&(m===t||i(m,t,n,r,o)))return p.add(e)}))){f=!1;break}}else if(m!==g&&!i(m,g,n,r,o)){f=!1;break}}return o["delete"](t),o["delete"](e),f}function je(t,e,i,n,r,o,l){switch(i){case O:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case k:return!(t.byteLength!=e.byteLength||!n(new kt(t),new kt(e)));case d:case f:case _:return ii(+t,+e);case p:return t.name==e.name&&t.message==e.message;case x:case E:return t==e+"";case y:var c=ft;case w:var u=o&a;if(c||(c=mt),t.size!=e.size&&!u)return!1;var h=l.get(t);if(h)return h==e;o|=s,l.set(t,e);var m=ze(c(t),c(e),n,r,o,l);return l["delete"](t),m;case T:if($t)return $t.call(t)==$t.call(e)}return!1}function Be(t,e,i,n,r,o){var s=r&a,l=gi(t),c=l.length,u=gi(e),h=u.length;if(c!=h&&!s)return!1;var d=c;while(d--){var f=l[d];if(!(s?f in e:wt.call(e,f)))return!1}var p=o.get(t);if(p&&o.get(e))return p==e;var m=!0;o.set(t,e),o.set(e,t);var g=s;while(++d<c){f=l[d];var y=t[f],_=e[f];if(n)var v=s?n(_,y,f,e,t,o):n(y,_,f,t,e,o);if(!(void 0===v?y===_||i(y,_,n,r,o):v)){m=!1;break}g||(g="constructor"==f)}if(m&&!g){var b=t.constructor,x=e.constructor;b==x||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x||(m=!1)}return o["delete"](t),o["delete"](e),m}function Fe(t,e){var i=t.__data__;return We(e)?i["string"==typeof e?"string":"hash"]:i.map}function Ne(t){var e=gi(t),i=e.length;while(i--){var n=e[i],r=t[n];e[i]=[n,r,Xe(r)]}return e}function Ve(t,e){var i=ht(t,e);return Se(i)?i:void 0}var $e=be;function Ue(t,e,i){e=Ge(e,t)?[e]:Le(e);var n,r=-1,o=e.length;while(++r<o){var s=Ke(e[r]);if(!(n=null!=t&&i(t,s)))break;t=t[s]}if(n)return n;o=t?t.length:0;return!!o&&li(o)&&qe(s,o)&&(ri(t)||ni(t))}function qe(t,e){return e=null==e?c:e,!!e&&("number"==typeof t||q.test(t))&&t>-1&&t%1==0&&t<e}function Ge(t,e){if(ri(t))return!1;var i=typeof t;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=t&&!hi(t))||(B.test(t)||!j.test(t)||null!=e&&t in Object(e))}function We(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function Ze(t){return!!bt&&bt in t}function He(t){var e=t&&t.constructor,i="function"==typeof e&&e.prototype||_t;return t===i}function Xe(t){return t===t&&!ci(t)}function Qe(t,e){return function(i){return null!=i&&(i[t]===e&&(void 0!==e||t in Object(i)))}}(It&&$e(new It(new ArrayBuffer(1)))!=O||Mt&&$e(new Mt)!=y||Pt&&$e(Pt.resolve())!=b||Dt&&$e(new Dt)!=w||Lt&&$e(new Lt)!=S)&&($e=function(t){var e=Et.call(t),i=e==v?t.constructor:void 0,n=i?Je(i):void 0;if(n)switch(n){case zt:return O;case jt:return y;case Bt:return b;case Ft:return w;case Nt:return S}return e});var Ye=ei((function(t){t=fi(t);var e=[];return F.test(t)&&e.push(""),t.replace(N,(function(t,i,n,r){e.push(n?r.replace($,"$1"):i||t)})),e}));function Ke(t){if("string"==typeof t||hi(t))return t;var e=t+"";return"0"==e&&1/t==-l?"-0":e}function Je(t){if(null!=t){try{return xt.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function ti(t,e){return t&&t.length?De(t,Oe(e,2)):[]}function ei(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(r);var i=function(){var n=arguments,r=e?e.apply(this,n):n[0],o=i.cache;if(o.has(r))return o.get(r);var s=t.apply(this,n);return i.cache=o.set(r,s),s};return i.cache=new(ei.Cache||ie),i}function ii(t,e){return t===e||t!==t&&e!==e}function ni(t){return si(t)&&wt.call(t,"callee")&&(!Ot.call(t,"callee")||Et.call(t)==u)}ei.Cache=ie;var ri=Array.isArray;function oi(t){return null!=t&&li(t.length)&&!ai(t)}function si(t){return ui(t)&&oi(t)}function ai(t){var e=ci(t)?Et.call(t):"";return e==m||e==g}function li(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=c}function ci(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function ui(t){return!!t&&"object"==typeof t}function hi(t){return"symbol"==typeof t||ui(t)&&Et.call(t)==T}var di=tt?ct(tt):ke;function fi(t){return null==t?"":Pe(t)}function pi(t,e,i){var n=null==t?void 0:ve(t,e);return void 0===n?i:n}function mi(t,e){return null!=t&&Ue(t,e,xe)}function gi(t){return oi(t)?ye(t):Ae(t)}function yi(t){return t}function _i(){}function vi(t){return Ge(t)?at(Ke(t)):Me(t)}i.exports=ti}).call(this,i("c8ba"),i("62e4")(t))}
16,b758:function(t,e,i){},b774:function(t,e,i){"use strict";function n(t,e){const i=Boolean(t);if(!i)throw new Error(e)}i.d(e,"a",(function(){return n}))},b980:function(t,e,i){"use strict";var n=i("d039"),r=i("5c6c");t.exports=!n((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",r(1,7)),7!==t.stack)}))},ba10:function(t,e,i){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function o(){}function s(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function a(t,e,i,n,o){if("function"!==typeof i)throw new TypeError("The listener must be a function");var a=new s(i,n||t,o),l=r?r+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],a]:t._events[l].push(a):(t._events[l]=a,t._eventsCount++),t}function l(t,e){0===--t._eventsCount?t._events=new o:delete t._events[e]}function c(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(r=!1)),c.prototype.eventNames=function(){var t,e,i=[];if(0===this._eventsCount)return i;for(e in t=this._events)n.call(t,e)&&i.push(r?e.slice(1):e);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},c.prototype.listeners=function(t){var e=r?r+t:t,i=this._events[e];if(!i)return[];if(i.fn)return[i.fn];for(var n=0,o=i.length,s=new Array(o);n<o;n++)s[n]=i[n].fn;return s},c.prototype.listenerCount=function(t){var e=r?r+t:t,i=this._events[e];return i?i.fn?1:i.length:0},c.prototype.emit=function(t,e,i,n,o,s){var a=r?r+t:t;if(!this._events[a])return!1;var l,c,u=this._events[a],h=arguments.length;if(u.fn){switch(u.once&&this.removeListener(t,u.fn,void 0,!0),h){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,e),!0;case 3:return u.fn.call(u.context,e,i),!0;case 4:return u.fn.call(u.context,e,i,n),!0;case 5:return u.fn.call(u.context,e,i,n,o),!0;case 6:return u.fn.call(u.context,e,i,n,o,s),!0}for(c=1,l=new Array(h-1);c<h;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var d,f=u.length;for(c=0;c<f;c++)switch(u[c].once&&this.removeListener(t,u[c].fn,void 0,!0),h){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,e);break;case 3:u[c].fn.call(u[c].context,e,i);break;case 4:u[c].fn.call(u[c].context,e,i,n);break;default:if(!l)for(d=1,l=new Array(h-1);d<h;d++)l[d-1]=arguments[d];u[c].fn.apply(u[c].context,l)}}return!0},c.prototype.on=function(t,e,i){return a(this,t,e,i,!1)},c.prototype.once=function(t,e,i){return a(this,t,e,i,!0)},c.prototype.removeListener=function(t,e,i,n){var o=r?r+t:t;if(!this._events[o])return this;if(!e)return l(this,o),this;var s=this._events[o];if(s.fn)s.fn!==e||n&&!s.once||i&&s.context!==i||l(this,o);else{for(var a=0,c=[],u=s.length;a<u;a++)(s[a].fn!==e||n&&!s[a].once||i&&s[a].context!==i)&&c.push(s[a]);c.length?this._events[o]=1===c.length?c[0]:c:l(this,o)}return this},c.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&l(this,e)):(this._events=new o,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t.exports=c},ba23:function(t,e,i){"use strict";i.d(e,"a",(function(){return r})),i.d(e,"b",(function(){return a})),i.d(e,"d",(function(){return l})),i.d(e,"c",(function(){return c}));var n=i("4251"),r=new n["a"],o=new WeakMap;function s(t){var e=o.get(t);return e||o.set(t,e={vars:new Set,dep:Object(n["b"])()}),e}function a(t){s(t).vars.forEach((function(e){return e.forgetCache(t)}))}function l(t){s(t).vars.forEach((function(e){return e.attachCache(t)}))}function c(t){var e=new Set,i=new Set,n=function(a){if(arguments.length>0){if(t!==a){t=a,e.forEach((function(t){s(t).dep.dirty(n),u(t)}));var l=Array.from(i);i.clear(),l.forEach((function(e){return e(t)}))}}else{var c=r.getValue();c&&(o(c),s(c).dep(n))}return t};n.onNextChange=function(t){return i.add(t),function(){i.delete(t)}};var o=n.attachCache=function(t){return e.add(t),s(t).vars.add(n),n};return n.forgetCache=function(t){return e.delete(t)},n}function u(t){t.broadcastWatches&&t.broadcastWatches()}},ba87:function(t,e,i){"use strict";i("1b2c");var n=i("a9ad"),r=i("7560"),o=i("58df"),s=i("80d2"),a=i("d9f7"),l=Object(o["a"])(r["a"]).extend({name:"v-label",functional:!0,props:{absolute:Boolean,color:{type:String,default:"primary"},disabled:Boolean,focused:Boolean,for:String,left:{type:[Number,String],default:0},right:{type:[Number,String],default:"auto"},value:Boolean},render(t,e){const{children:i,listeners:o,props:l,data:c}=e,u=Object(a["a"])({staticClass:"v-label",class:{"v-label--active":l.value,"v-label--is-disabled":l.disabled,...Object(r["b"])(e)},attrs:{for:l.for,"aria-hidden":!l.for},on:o,style:{left:Object(s["g"])(l.left),right:Object(s["g"])(l.right),position:l.absolute?"absolute":"relative"},ref:"label"},c);return t("label",n["a"].options.methods.setTextColor(l.focused&&l.color,u),i)}});e["a"]=l}
vendor: 4,902 bytes, line 16
16,bd0c:function(t,e,i){},c04e:function(t,e,i){"use strict";var n=i("c65b"),r=i("861d"),o=i("d9b5"),s=i("dc4a"),a=i("485a"),l=i("b622"),c=TypeError,u=l("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var i,l=s(t,u);if(l){if(void 0===e&&(e="default"),i=n(l,t,e),!r(i)||o(i))return i;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},c1a1:function(t,e,i){"use strict";var n=i("23e7"),r=i("b4bc"),o=i("dad2"),s=!o("isDisjointFrom",(function(t){return!t}));n({target:"Set",proto:!0,real:!0,forced:s},{isDisjointFrom:r})},c36e:function(t,e,i){(function(e){var i=200,n="__lodash_hash_undefined__",r=1/0,o="[object Function]",s="[object GeneratorFunction]",a=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,c="object"==typeof e&&e&&e.Object===Object&&e,u="object"==typeof self&&self&&self.Object===Object&&self,h=c||u||Function("return this")();function d(t,e){var i=t?t.length:0;return!!i&&m(t,e,0)>-1}function f(t,e,i){var n=-1,r=t?t.length:0;while(++n<r)if(i(e,t[n]))return!0;return!1}function p(t,e,i,n){var r=t.length,o=i+(n?1:-1);while(n?o--:++o<r)if(e(t[o],o,t))return o;return-1}function m(t,e,i){if(e!==e)return p(t,g,i);var n=i-1,r=t.length;while(++n<r)if(t[n]===e)return n;return-1}function g(t){return t!==t}function y(t,e){return t.has(e)}function _(t,e){return null==t?void 0:t[e]}function v(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(i){}return e}function b(t){var e=-1,i=Array(t.size);return t.forEach((function(t){i[++e]=t})),i}var x=Array.prototype,w=Function.prototype,E=Object.prototype,T=h["__core-js_shared__"],S=function(){var t=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),k=w.toString,O=E.hasOwnProperty,A=E.toString,C=RegExp("^"+k.call(O).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),I=x.splice,M=st(h,"Map"),P=st(h,"Set"),D=st(Object,"create");function L(t){var e=-1,i=t?t.length:0;this.clear();while(++e<i){var n=t[e];this.set(n[0],n[1])}}function R(){this.__data__=D?D(null):{}}function z(t){return this.has(t)&&delete this.__data__[t]}function j(t){var e=this.__data__;if(D){var i=e[t];return i===n?void 0:i}return O.call(e,t)?e[t]:void 0}function B(t){var e=this.__data__;return D?void 0!==e[t]:O.call(e,t)}function F(t,e){var i=this.__data__;return i[t]=D&&void 0===e?n:e,this}function N(t){var e=-1,i=t?t.length:0;this.clear();while(++e<i){var n=t[e];this.set(n[0],n[1])}}function V(){this.__data__=[]}function $(t){var e=this.__data__,i=et(e,t);if(i<0)return!1;var n=e.length-1;return i==n?e.pop():I.call(e,i,1),!0}function U(t){var e=this.__data__,i=et(e,t);return i<0?void 0:e[i][1]}function q(t){return et(this.__data__,t)>-1}function G(t,e){var i=this.__data__,n=et(i,t);return n<0?i.push([t,e]):i[n][1]=e,this}function W(t){var e=-1,i=t?t.length:0;this.clear();while(++e<i){var n=t[e];this.set(n[0],n[1])}}function Z(){this.__data__={hash:new L,map:new(M||N),string:new L}}function H(t){return ot(this,t)["delete"](t)}function X(t){return ot(this,t).get(t)}function Q(t){return ot(this,t).has(t)}function Y(t,e){return ot(this,t).set(t,e),this}function K(t){var e=-1,i=t?t.length:0;this.__data__=new W;while(++e<i)this.add(t[e])}function J(t){return this.__data__.set(t,n),this}function tt(t){return this.__data__.has(t)}function et(t,e){var i=t.length;while(i--)if(ht(t[i][0],e))return i;return-1}function it(t){if(!ft(t)||lt(t))return!1;var e=dt(t)||v(t)?C:l;return e.test(ct(t))}function nt(t,e,n){var r=-1,o=d,s=t.length,a=!0,l=[],c=l;if(n)a=!1,o=f;else if(s>=i){var u=e?null:rt(t);if(u)return b(u);a=!1,o=y,c=new K}else c=e?[]:l;t:while(++r<s){var h=t[r],p=e?e(h):h;if(h=n||0!==h?h:0,a&&p===p){var m=c.length;while(m--)if(c[m]===p)continue t;e&&c.push(p),l.push(h)}else o(c,p,n)||(c!==l&&c.push(p),l.push(h))}return l}L.prototype.clear=R,L.prototype["delete"]=z,L.prototype.get=j,L.prototype.has=B,L.prototype.set=F,N.prototype.clear=V,N.prototype["delete"]=$,N.prototype.get=U,N.prototype.has=q,N.prototype.set=G,W.prototype.clear=Z,W.prototype["delete"]=H,W.prototype.get=X,W.prototype.has=Q,W.prototype.set=Y,K.prototype.add=K.prototype.push=J,K.prototype.has=tt;var rt=P&&1/b(new P([,-0]))[1]==r?function(t){return new P(t)}:pt;function ot(t,e){var i=t.__data__;return at(e)?i["string"==typeof e?"string":"hash"]:i.map}function st(t,e){var i=_(t,e);return it(i)?i:void 0}function at(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function lt(t){return!!S&&S in t}function ct(t){if(null!=t){try{return k.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function ut(t){return t&&t.length?nt(t):[]}function ht(t,e){return t===e||t!==t&&e!==e}function dt(t){var e=ft(t)?A.call(t):"";return e==o||e==s}function ft(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function pt(){}t.exports=ut}).call(this,i("c8ba"))}
16,c37a:function(t,e,i){"use strict";i("14d9"),i("e9f5"),i("910d"),i("ab43"),i("d191");var n=i("9d26"),r=i("ba87"),o=(i("8ff2"),i("a9ad")),s=i("7560"),a=i("58df"),l=i("80d2"),c=Object(a["a"])(o["a"],s["a"]).extend({name:"v-messages",props:{value:{type:Array,default:()=>[]}},methods:{genChildren(){return this.$createElement("transition-group",{staticClass:"v-messages__wrapper",attrs:{name:"message-transition",tag:"div"}},this.value.map(this.genMessage))},genMessage(t,e){return this.$createElement("div",{staticClass:"v-messages__message",key:e},Object(l["m"])(this,"default",{message:t,key:e})||[t])}},render(t){return t("div",this.setTextColor(this.color,{staticClass:"v-messages",class:this.themeClasses}),[this.genChildren()])}}),u=c,h=i("7e2b"),d=i("38cb"),f=i("d9f7");const p=Object(a["a"])(h["a"],d["a"]);var m=p.extend().extend({name:"v-input",inheritAttrs:!1,props:{appendIcon:String,backgroundColor:{type:String,default:""},dense:Boolean,height:[Number,String],hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,id:String,label:String,loading:Boolean,persistentHint:Boolean,prependIcon:String,value:null},data(){return{lazyValue:this.value,hasMouseDown:!1}},computed:{classes(){return{"v-input--has-state":this.hasState,"v-input--hide-details":!this.showDetail
16s,"v-input--is-label-active":this.isLabelActive,"v-input--is-dirty":this.isDirty,"v-input--is-disabled":this.isDisabled,"v-input--is-focused":this.isFocused,"v-input--is-loading":!1!==this.loading&&null!=this.loading,"v-input--is-readonly":this.isReadonly,"v-input--dense":this.dense,"v-input--hide-spin-buttons":this.hideSpinButtons,...this.themeClasses}},computedId(){return this.id||"input-"+this._uid},hasDetails(){return this.messagesToDisplay.length>0},hasHint(){return!this.hasMessages&&!!this.hint&&(this.persistentHint||this.isFocused)},hasLabel(){return!(!this.$slots.label&&!this.label)},internalValue:{get(){return this.lazyValue},set(t){this.lazyValue=t,this.$emit(this.$_modelEvent,t)}},isDirty(){return!!this.lazyValue},isLabelActive(){return this.isDirty},messagesToDisplay(){return this.hasHint?[this.hint]:this.hasMessages?this.validations.map(t=>{if("string"===typeof t)return t;const e=t(this.internalValue);return"string"===typeof e?e:""}).filter(t=>""!==t):[]},showDetails(){return!1===this.hideDetails||"auto"===this.hideDetails&&this.hasDetails}},watch:{value(t){this.lazyValue=t}},beforeCreate(){this.$_modelEvent=this.$options.model&&this.$options.model.event||"input"},methods:{genContent(){return[this.genPrependSlot(),this.genControl(),this.genAppendSlot()]},genControl(){return this.$createElement("div",{staticClass:"v-input__control",attrs:{title:this.attrs$.title}},[this.genInputSlot(),this.genMessages()])},genDefaultSlot(){return[this.genLabel(),Object(l["m"])(this)]},genIcon(t,e,i={}){var r;const o=this[t+"Icon"],s="click:"+Object(l["p"])(t),a=!(!this.listeners$[s]&&!e),c={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendOuter:"appendAction",clear:"clear"}[t],u=a&&c?this.$vuetify.lang.t("$vuetify.input."+c,null!==(r=this.label)&&void 0!==r?r:""):void 0,h=Object(f["a"])({attrs:{"aria-label":u,color:this.validationState,dark:this.dark,disabled:this.isDisabled,light:this.light,tabindex:"clear"===t?-1:void 0},on:a?{click:t=>{t.preventDefault(),t.stopPropagation(),this.$emit(s,t),e&&e(t)},mouseup:t=>{t.preventDefault(),t.stopPropagation()}}:void 0},i);return this.$createElement("div",{staticClass:"v-input__icon",class:t?"v-input__icon--"+Object(l["p"])(t):void 0},[this.$createElement(n["a"],h,o)])},genInputSlot(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor,{staticClass:"v-input__slot",style:{height:Object(l["g"])(this.height)},on:{click:this.onClick,mousedown:this.onMouseDown,mouseup:this.onMouseUp},ref:"input-slot"}),[this.genDefaultSlot()])},genLabel(){return this.hasLabel?this.$createElement(r["a"],{props:{color:this.validationState,dark:this.dark,disabled:this.isDisabled,focused:this.hasState,for:this.computedId,light:this.light}},Object(l["m"])(this,"label")||this.label):null}
16,genMessages(){return this.showDetails?this.$createElement(u,{props:{color:this.hasHint?"":this.validationState,dark:this.dark,light:this.light,value:this.messagesToDisplay},attrs:{role:this.hasMessages?"alert":null},scopedSlots:{default:t=>Object(l["m"])(this,"message",t)}}):null},genSlot(t,e,i){if(!i.length)return null;const n=`${t}-${e}`;return this.$createElement("div",{staticClass:"v-input__"+n,ref:n},i)},genPrependSlot(){const t=[];return this.$slots.prepend?t.push(this.$slots.prepend):this.prependIcon&&t.push(this.genIcon("prepend")),this.genSlot("prepend","outer",t)},genAppendSlot(){const t=[];return this.$slots.append?t.push(this.$slots.append):this.appendIcon&&t.push(this.genIcon("append")),this.genSlot("append","outer",t)},onClick(t){this.$emit("click",t)},onMouseDown(t){this.hasMouseDown=!0,this.$emit("mousedown",t)},onMouseUp(t){this.hasMouseDown=!1,this.$emit("mouseup",t)}},render(t){return t("div",this.setTextColor(this.validationState,{staticClass:"v-input",class:this.classes}),this.genContent())}});e["a"]=m},c3f0:function(t,e,i){"use strict";i("e9f5"),i("7d54");var n=i("80d2");const r=t=>{const{touchstartX:e,touchendX:i,touchstartY:n,touchendY:r}=t,o=.5,s=16;t.offsetX=i-e,t.offsetY=r-n,Math.abs(t.offsetY)<o*Math.abs(t.offsetX)&&(t.left&&i<e-s&&t.left(t),t.right&&i>e+s&&t.right(t)),Math.abs(t.offsetX)<o*Math.abs(t.offsetY)&&(t.up&&r<n-s&&t.up(t),t.down&&r>n+s&&t.down(t))};function o(t,e){const i=t.changedTouches[0];e.touchstartX=i.clientX,e.touchstartY=i.clientY,e.start&&e.start(Object.assign(t,e))}function s(t,e){const i=t.changedTouches[0];e.touchendX=i.clientX,e.touchendY=i.clientY,e.end&&e.end(Object.assign(t,e)),r(e)}function a(t,e){const i=t.changedTouches[0];e.touchmoveX=i.clientX,e.touchmoveY=i.clientY,e.move&&e.move(Object.assign(t,e))}function l(t){const e={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:t.left,right:t.right,up:t.up,down:t.down,start:t.start,move:t.move,end:t.end};return{touchstart:t=>o(t,e),touchend:t=>s(t,e),touchmove:t=>a(t,e)}}function c(t,e,i){const r=e.value,o=r.parent?t.parentElement:t,s=r.options||{passive:!0};if(!o)return;const a=l(e.value);o._touchHandlers=Object(o._touchHandlers),o._touchHandlers[i.context._uid]=a,Object(n["r"])(a).forEach(t=>{o.addEventListener(t,a[t],s)})}function u(t,e,i){const r=e.value.parent?t.parentElement:t;if(!r||!r._touchHandlers)return;const o=r._touchHandlers[i.context._uid];Object(n["r"])(o).forEach(t=>{r.removeEventListener(t,o[t])}),delete r._touchHandlers[i.context._uid]}const h={inserted:c,unbind:u};e["a"]=h},c430:function(t,e,i){"use strict";t.exports=!1},c5cc:function(t,e,i){"use strict";var n=i("c65b"),r=i("7c73"),o=i("9112"),s=i("6964"),a=i("b622"),l=i("69f3"),c=i("dc4a"),u=i("ae93").IteratorPrototype,h=i("4754"),d=i("2a62"),f=a("toStringTag"),p="IteratorHelper",m="WrapForValidIterator",g=l.set,y=function(t){var e=l.getterFor(t?m:p);return s(r(u),{next:function(){var i=e(this);if(t)return i.nextHandler();if(i.done)return h(void 0,!0);try{var n=i.nextHandler();return i.returnHandlerResult?n:h(n,i.done)}catch(r){throw i.done=!0,r}},return:function(){var i=e(this),r=i.iterator;if(i.done=!0,t){var o=c(r,"return");return o?n(o,r):h(void 0,!0)}if(i.inner)try{d(i.inner.iterator,"normal")}catch(s){return d(r,"throw",s)}return r&&d(r,"normal"),h(void 0,!0)}})},_=y(!0),v=y(!1);o(v,f,"Iterator Helper"),t.exports=function(t,e,i){var n=function(n,r){r?(r.iterator=n.iterator,r.next=n.next):r=n,r.type=e?m:p,r.returnHandlerResult=!!i,r.nextHandler=t,r.counter=0,r.done=!1,g(this,r)};return n.prototype=e?_:v,n}},c65b:function(t,e,i){"use strict";var n=i("40d5"),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},c6b6:function(t,e,i){"use strict";var n=i("e330"),r=n({}.toString),o=n("".slice);t.exports=function(t){return o(r(t),8,-1)}},c6cd:function(t,e,i){"use strict";var n=i("c430"),r=i("cfe9"),o=i("6374"),s="__core-js_shared__",a=t.exports=r[s]||o(s,{});(a.versions||(a.versions=[])).push({version:"3.41.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})},c8ba:function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(n){"object"===typeof window&&(i=window)}t.exports=i}
16,c8d5:function(t,e,i){},c995:function(t,e,i){"use strict";var n=i("2b0e");e["a"]=n["a"].extend({name:"elevatable",props:{elevation:[Number,String]},computed:{computedElevation(){return this.elevation},elevationClasses(){const t=this.computedElevation;return null==t||isNaN(parseInt(t))?{}:{["elevation-"+this.elevation]:!0}}}})},ca84:function(t,e,i){"use strict";var n=i("e330"),r=i("1a2d"),o=i("fc6a"),s=i("4d64").indexOf,a=i("d012"),l=n([].push);t.exports=function(t,e){var i,n=o(t),c=0,u=[];for(i in n)!r(a,i)&&r(n,i)&&l(u,i);while(e.length>c)r(n,i=e[c++])&&(~s(u,i)||l(u,i));return u}},cb27:function(t,e,i){"use strict";var n=i("e330"),r=Set.prototype;t.exports={Set:Set,add:n(r.add),has:n(r.has),remove:n(r["delete"]),proto:r}},cb2d:function(t,e,i){"use strict";var n=i("1626"),r=i("9bf2"),o=i("13d2"),s=i("6374");t.exports=function(t,e,i,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:e;if(n(i)&&o(i,c,a),a.global)l?t[e]=i:s(e,i);else{try{a.unsafe?t[e]&&(l=!0):delete t[e]}catch(u){}l?t[e]=i:r.f(t,e,{value:i,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},cc12:function(t,e,i){"use strict";var n=i("cfe9"),r=i("861d"),o=n.document,s=r(o)&&r(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},cc20:function(t,e,i){"use strict";i("14d9"),i("e9f5"),i("910d"),i("8adc");var n=i("58df"),r=i("0789"),o=i("9d26"),s=i("a9ad"),a=i("4e82"),l=i("7560"),c=i("f2e7"),u=i("1c87"),h=i("af2b"),d=i("d9bd"),f=i("80d2");e["a"]=Object(n["a"])(s["a"],h["a"],u["a"],l["a"],Object(a["a"])("chipGroup"),Object(c["b"])("inputValue")).extend({name:"v-chip",props:{active:{type:Boolean,default:!0},activeClass:{type:String,default(){return this.chipGroup?this.chipGroup.activeClass:""}},close:Boolean,closeIcon:{type:String,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},disabled:Boolean,draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:Boolean,outlined:Boolean,pill:Boolean,tag:{type:String,default:"span"},textColor:String,value:null},data:()=>({proxyClass:"v-chip--active"}),computed:{classes(){return{"v-chip":!0,...u["a"].options.computed.classes.call(this),"v-chip--clickable":this.isClickable,"v-chip--disabled":this.disabled,"v-chip--draggable":this.draggable,"v-chip--label":this.label,"v-chip--link":this.isLink,"v-chip--no-color":!this.color,"v-chip--outlined":this.outlined,"v-chip--pill":this.pill,"v-chip--removable":this.hasClose,...this.themeClasses,...this.sizeableClasses,...this.groupClasses}},hasClose(){return Boolean(this.close)},isClickable(){return Boolean(u["a"].options.computed.isClickable.call(this)||this.chipGroup)}},created(){const t=[["outline","outlined"],["selected","input-value"],["value","active"],["@input","@active.sync"]];t.forEach(([t,e])=>{this.$attrs.hasOwnProperty(t)&&Object(d["a"])(t,e,this)})},methods:{click(t){this.$emit("click",t),this.chipGroup&&this.toggle()},genFilter(){const t=[];return this.isActive&&t.push(this.$createElement(o["a"],{staticClass:"v-chip__filter",props:{left:!0}},this.filterIcon)),this.$createElement(r["b"],t)},genClose(){return this.$createElement(o["a"],{staticClass:"v-chip__close",props:{right:!0,size:18},attrs:{"aria-label":this.$vuetify.lang.t(this.closeLabel)},on:{click:t=>{t.stopPropagation(),t.preventDefault(),this.$emit("click:close"),this.$emit("update:active",!1)}}},this.closeIcon)},genContent(){return this.$createElement("span",{staticClass:"v-chip__content"},[this.filter&&this.genFilter(),Object(f["m"])(this),this.hasClose&&this.genClose()])}},render(t){const e=[this.genContent()];let{tag:i,data:n}=this.generateRouteLink();n.attrs={...n.attrs,draggable:this.draggable?"true":void 0,tabindex:this.chipGroup&&!this.disabled?0:n.attrs.tabindex},n.directives.push({name:"show",value:this.active}),n=this.setBackgroundColor(this.color,n);const r=this.textColor||this.outlined&&this.color;return t(i,this.setTextColor(r,n),e)}})},cca5:function(t,e,i){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=Object.create(null);return t.forEach((function(t){t&&Object.keys(t).forEach((function(e){var n=t[e];void 0!==n&&(i[e]=n)}))})),i}i.d(e,"a",(function(){return n}))}
16,cdce:function(t,e,i){"use strict";var n=i("cfe9"),r=i("1626"),o=n.WeakMap;t.exports=r(o)&&/native code/.test(String(o))},cdfd:function(t,e,i){"use strict";(function(t){i.d(e,"c",(function(){return o})),i.d(e,"d",(function(){return s})),i.d(e,"b",(function(){return a})),i.d(e,"a",(function(){return l}));var n=i("8f69"),r="ReactNative"==Object(n["c"])((function(){return navigator.product})),o="function"===typeof WeakMap&&!(r&&!t.HermesInternal),s="function"===typeof WeakSet,a="function"===typeof Symbol&&"function"===typeof Symbol.for,l=a&&Symbol.asyncIterator;Object(n["c"])((function(){return window.document.createElement})),Object(n["c"])((function(){return navigator.userAgent.indexOf("jsdom")>=0}))}).call(this,i("c8ba"))},ce7e:function(t,e,i){"use strict";i("8ce9");var n=i("7560");e["a"]=n["a"].extend({name:"v-divider",props:{inset:Boolean,vertical:Boolean},render(t){let e;return this.$attrs.role&&"separator"!==this.$attrs.role||(e=this.vertical?"vertical":"horizontal"),t("hr",{class:{"v-divider":!0,"v-divider--inset":this.inset,"v-divider--vertical":this.vertical,...this.themeClasses},attrs:{role:"separator","aria-orientation":e,...this.$attrs},on:this.$listeners})}})},cf03:function(t,e,i){},cfe9:function(t,e,i){"use strict";(function(e){var i=function(t){return t&&t.Math===Math&&t};t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof e&&e)||i("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,i("c8ba"))},d012:function(t,e,i){"use strict";t.exports={}},d024:function(t,e,i){"use strict";var n=i("c65b"),r=i("59ed"),o=i("825a"),s=i("46c4"),a=i("c5cc"),l=i("9bdd"),c=a((function(){var t=this.iterator,e=o(n(this.next,t)),i=this.done=!!e.done;if(!i)return l(t,this.mapper,[e.value,this.counter++],!0)}));t.exports=function(t){return o(this),r(t),new c(s(this),{mapper:t})}},d039:function(t,e,i){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,i){"use strict";var n=i("cfe9"),r=i("1626"),o=function(t){return r(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t]):n[t]&&n[t][e]}},d191:function(t,e,i){},d1e7:function(t,e,i){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},d2bb:function(t,e,i){"use strict";var n=i("7282"),r=i("861d"),o=i("1d80"),s=i("3bbe");
16t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{t=n(Object.prototype,"__proto__","set"),t(i,[]),e=i instanceof Array}catch(a){}return function(i,n){return o(i),s(n),r(i)?(e?t(i,n):i.__proto__=n,i):i}}():void 0)},d30b:function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"i",(function(){return s})),i.d(e,"j",(function(){return a})),i.d(e,"g",(function(){return l})),i.d(e,"c",(function(){return c})),i.d(e,"h",(function(){return u})),i.d(e,"l",(function(){return h})),i.d(e,"f",(function(){return d})),i.d(e,"k",(function(){return f})),i.d(e,"a",(function(){return p})),i.d(e,"d",(function(){return m})),i.d(e,"e",(function(){return g}));var n=6371008.8,r={centimeters:100*n,centimetres:100*n,degrees:n/111325,feet:3.28084*n,inches:39.37*n,kilometers:n/1e3,kilometres:n/1e3,meters:n,metres:n,miles:n/1609.344,millimeters:1e3*n,millimetres:1e3*n,nauticalmiles:n/1852,radians:1,yards:1.0936*n};function o(t,e,i){void 0===i&&(i={});var n={type:"Feature"};return(0===i.id||i.id)&&(n.id=i.id),i.bbox&&(n.bbox=i.bbox),n.properties=e||{},n.geometry=t,n}function s(t,e,i){if(void 0===i&&(i={}),!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!m(t[0])||!m(t[1]))throw new Error("coordinates must contain numbers");var n={type:"Point",coordinates:t};return o(n,e,i)}function a(t,e,i){void 0===i&&(i={});for(var n=0,r=t;n<r.length;n++){var s=r[n];if(s.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var a=0;a<s[s.length-1].length;a++)if(s[s.length-1][a]!==s[0][a])throw new Error("First and last Position are not equivalent.")}var l={type:"Polygon",coordinates:t};return o(l,e,i)}function l(t,e,i){if(void 0===i&&(i={}),t.length<2)throw new Error("coordinates must be an array of two or more positions");var n={type:"LineString",coordinates:t};return o(n,e,i)}function c(t,e){void 0===e&&(e={});var i={type:"FeatureCollection"};return e.id&&(i.id=e.id),e.bbox&&(i.bbox=e.bbox),i.features=t,i}function u(t,e,i){void 0===i&&(i={});var n={type:"MultiPolygon",coordinates:t};return o(n,e,i)}function h(t,e){void 0===e&&(e="kilometers");var i=r[e];
16if(!i)throw new Error(e+" units is invalid");return t*i}function d(t,e){void 0===e&&(e="kilometers");var i=r[e];if(!i)throw new Error(e+" units is invalid");return t/i}function f(t){var e=t%(2*Math.PI);return 180*e/Math.PI}function p(t){var e=t%360;return e*Math.PI/180}function m(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}function g(t){return!!t&&t.constructor===Object}},d3d9:function(t,e,i){},d543:function(t,e,i){},d58f:function(t,e,i){"use strict";var n=i("59ed"),r=i("7b0b"),o=i("44ad"),s=i("07fa"),a=TypeError,l="Reduce of empty array with no initial value",c=function(t){return function(e,i,c,u){var h=r(e),d=o(h),f=s(h);if(n(i),0===f&&c<2)throw new a(l);var p=t?f-1:0,m=t?-1:1;if(c<2)while(1){if(p in d){u=d[p],p+=m;break}if(p+=m,t?p<0:f<=p)throw new a(l)}for(;t?p>=0:f>p;p+=m)p in d&&(u=i(u,d[p],p,h));return u}};t.exports={left:c(!1),right:c(!0)}},d6d6:function(t,e,i){"use strict";var n=TypeError;t.exports=function(t,e){if(t<e)throw new n("Not enough arguments");return t}},d6de:function(t,e,i){"use strict";(function(t){i.d(e,"a",(function(){return h}));let n=null;const r={};let o=1;const s=()=>class{constructor(){this.id=["slot",o++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let t=n;t;t=t.parent)if(this.id in t.slots){const e=t.slots[this.id];if(e===r)break;return t!==n&&(n.slots[this.id]=e),!0}return n&&(n.slots[this.id]=r),!1}getValue(){if(this.hasValue())return n.slots[this.id]}withValue(t,e,i,r){const o={__proto__:null,[this.id]:t},s=n;n={parent:s,slots:o};try{return e.apply(r,i)}finally{n=s}}static bind(t){const e=n;return function(){const i=n;try{return n=e,t.apply(this,arguments)}finally{n=i}}}static noContext(t,e,i){if(!n)return t.apply(i,e);{const r=n;try{return n=null,t.apply(i,e)}finally{n=r}}}};function a(t){try{return t()}catch(e){}}const l="@wry/context:Slot",c=a(()=>globalThis)||a(()=>t)||Object.create(null),u=c,h=u[l]||Array[l]||function(t){try{Object.defineProperty(u,l,{value:t,enumerable:!1,writable:!1,configurable:!0})}finally{return t}}(s())}).call(this,i("c8ba"))},d866:function(t,e,i){"use strict";var n=i("23e7"),r=i("2266"),o=i("59ed"),s=i("825a"),a=i("46c4");n({target:"Iterator",proto:!0,real:!0},{every:function(t){s(this),o(t);var e=a(this),i=0;return!r(e,(function(e,n){if(!t(e,i++))return n()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},d9b5:function(t,e,i){"use strict";var n=i("d066"),r=i("1626"),o=i("3a9b"),s=i("fdbf"),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return r(e)&&o(e.prototype,a(t))}},d9bd:function(t,e,i){"use strict";i.d(e,"c",(function(){return o})),i.d(e,"b",(function(){return s})),i.d(e,"a",(function(){return a})),i.d(e,"d",(function(){return l}));i("14d9");var n=i("f309");function r(t,e,i){if(!n["a"].config.silent){if(i&&(e={_isVue:!0,$parent:i,$options:e}),e){if(e.$_alreadyWarned=e.$_alreadyWarned||[],e.$_alreadyWarned.includes(t))return;e.$_alreadyWarned.push(t)}return"[Vuetify] "+t+(e?d(e):"")}}function o(t,e,i){const n=r(t,e,i);null!=n&&console.warn(n)}function s(t,e,i){const n=r(t,e,i);null!=n&&console.error(n)}function a(t,e,i,n){s(`[BREAKING] '${t}' has been removed, use '${e}' instead. For more information, see the upgrade guide https://github.com/vuetifyjs/vuetify/releases/tag/v2.0.0#user-content-upgrade-guide`,i,n)}function l(t,e,i){o(`[REMOVED] '${t}' has been removed. You can safely omit it.`,e,i)}const c=/(?:^|[-_])(\w)/g,u=t=>t.replace(c,t=>t.toUpperCase()).replace(/[-_]/g,"");function h(t,e){if(t.$root===t)return"<Root>";const i="function"===typeof t&&null!=t.cid?t.options:t._isVue?t.$options||t.constructor.options:t||{};let n=i.name||i._componentTag;const r=i.__file;if(!n&&r){const t=r.match(/([^/\\]+)\.vue$/);n=t&&t[1]}return(n?`<${u(n)}>`:"<Anonymous>")+(r&&!1!==e?" at "+r:"")}function d(t){if(t._isVue&&t.$parent){const e=[];let i=0;while(t){if(e.length>0){const n=e[e.length-1];if(n.constructor===t.constructor){i++,t=t.$parent;continue}i>0&&(e[e.length-1]=[n,i],i=0)}e.push(t),t=t.$parent}return"\n\nfound in\n\n"+e.map((t,e)=>`${0===e?"---\x3e ":" ".repeat(5+2*e)}${Array.isArray(t)?`${h(t[0])}... (${t[1]} recursive calls)`:h(t)}`).join("\n")}return`\n\n(found in ${h(t)})`}}
16,d9e2:function(t,e,i){"use strict";var n=i("23e7"),r=i("cfe9"),o=i("2ba4"),s=i("e5cb"),a="WebAssembly",l=r[a],c=7!==new Error("e",{cause:7}).cause,u=function(t,e){var i={};i[t]=s(t,e,c),n({global:!0,constructor:!0,arity:1,forced:c},i)},h=function(t,e){if(l&&l[t]){var i={};i[t]=s(a+"."+t,e,c),n({target:a,stat:!0,constructor:!0,arity:1,forced:c},i)}};u("Error",(function(t){return function(e){return o(t,this,arguments)}})),u("EvalError",(function(t){return function(e){return o(t,this,arguments)}})),u("RangeError",(function(t){return function(e){return o(t,this,arguments)}})),u("ReferenceError",(function(t){return function(e){return o(t,this,arguments)}})),u("SyntaxError",(function(t){return function(e){return o(t,this,arguments)}})),u("TypeError",(function(t){return function(e){return o(t,this,arguments)}})),u("URIError",(function(t){return function(e){return o(t,this,arguments)}})),h("CompileError",(function(t){return function(e){return o(t,this,arguments)}})),h("LinkError",(function(t){return function(e){return o(t,this,arguments)}})),h("RuntimeError",(function(t){return function(e){return o(t,this,arguments)}}))},d9f7:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("80d2");const r={styleList:/;(?![^(]*\))/g,styleProp:/:(.*)/};function o(t){const e={};for(const i of t.split(r.styleList)){let[t,o]=i.split(r.styleProp);t=t.trim(),t&&("string"===typeof o&&(o=o.trim()),e[Object(n["c"])(t)]=o)}return e}function s(){const t={};let e,i=arguments.length;while(i--)for(e of Object.keys(arguments[i]))switch(e){case"class":case"directives":arguments[i][e]&&(t[e]=l(t[e],arguments[i][e]));break;case"style":arguments[i][e]&&(t[e]=a(t[e],arguments[i][e]));break;case"staticClass":if(!arguments[i][e])break;void 0===t[e]&&(t[e]=""),t[e]&&(t[e]+=" "),t[e]+=arguments[i][e].trim();break;case"on":case"nativeOn":arguments[i][e]&&(t[e]=c(t[e],arguments[i][e]));break;case"attrs":case"props":case"domProps":case"scopedSlots":case"staticStyle":case"hook":case"transition":if(!arguments[i][e])break;t[e]||(t[e]={}),t[e]={...arguments[i][e],...t[e]};break;default:t[e]||(t[e]=arguments[i][e])}return t}function a(t,e){return t?e?(t=Object(n["w"])("string"===typeof t?o(t):t),t.concat("string"===typeof e?o(e):e)):t:e}function l(t,e){return e?t&&t?Object(n["w"])(t).concat(e):e:t}function c(...t){if(!t[0])return t[1];if(!t[1])return t[0];const e={};for(let i=2;i--;){const n=t[i];for(const t in n)n[t]&&(e[t]?e[t]=[].concat(n[t],e[t]):e[t]=n[t])}return e}},da13:function(t,e,i){"use strict";i("61d2");var n=i("a9ad"),r=i("1c87"),o=i("4e82"),s=i("7560"),a=i("f2e7"),l=i("5607"),c=i("80d2"),u=i("d9bd"),h=i("58df");const d=Object(h["a"])(n["a"],r["a"],s["a"],Object(o["a"])("listItemGroup"),Object(a["b"])("inputValue"));e["a"]=d.extend().extend({name:"v-list-item",directives:{Ripple:l["a"]},inject:{isInGroup:{default:!1},isInList:{default:!1},isInMenu:{default:!1},isInNav:{default:!1}},inheritAttrs:!1,props:{activeClass:{type:String,default(){return this.listItemGroup?this.listItemGroup.activeClass:""}},dense:Boolean,inactive:Boolean,link:Boolean,selectable:{type:Boolean},tag:{type:String,default:"div"},threeLine:Boolean,twoLine:Boolean,value:null},data:()=>({proxyClass:"v-list-item--active"}),computed:{classes(){return{"v-list-item":!0,...r["a"].options.computed.classes.call(this),"v-list-item--dense":this.dense,"v-list-item--disabled":this.disabled,"v-list-item--link":this.isClickable&&!this.inactive,"v-list-item--selectable":this.selectable,"v-list-item--three-line":this.threeLine,"v-list-item--two-line":this.twoLine,...this.themeClasses}},isClickable(){return Boolean(r["a"].options.computed.isClickable.call(this)||this.listItemGroup)}},created(){this.$attrs.hasOwnProperty("avatar")&&Object(u["d"])("avatar",this)},methods:{click(t){t.detail&&this.$el.blur(),this.$emit("click",t),this.to||this.toggle()},genAttrs(){const t={"aria-disabled":!!this.disabled||void 0,tabindex:this.isClickable&&!this.disabled?0:-1,...this.$attrs};return this.$attrs.hasOwnProperty("role")||this.isInNav||(this.isInGroup?(t.role="option",t["aria-selected"]=String(this.isActive)):this.isInMenu?(t.role=this.isClickable?"menuitem":void 0,t.id=t.id||"list-item-"+this._uid):this.isInList&&(t.role="listitem")),t},toggle(){this.to&&void 0===this.inputValue&&(this.isActive=!this.isActive),this.$emit("change")}},render(t){let{tag:e,data:i}=this.generateRouteLink();i.attrs={...i.attrs,...this.genAttrs()},i[this.to?"nativeOn":"on"]={...i[this.to?"nativeOn":"on"],keydown:t=>{this.disabled||(t.keyCode===c["q"].enter&&this.click(t),this.$emit("keydown",t))}},this.inactive&&(e="div"),this.inactive&&this.to&&(i.on=i.nativeOn,delete i.nativeOn);const n=Object(c["m"])(this,"default",{active:this.isActive,toggle:this.toggle});return t(e,this.isActive?this.setTextColor(this.color,i):i,n)}})}
16,dad2:function(t,e,i){"use strict";var n=i("d066"),r=function(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},o=function(t){return{size:t,has:function(){return!0},keys:function(){throw new Error("e")}}};t.exports=function(t,e){var i=n("Set");try{(new i)[t](r(0));try{return(new i)[t](r(-1)),!1}catch(a){if(!e)return!0;try{return(new i)[t](o(-1/0)),!1}catch(l){var s=new i;return s.add(1),s.add(2),e(s[t](o(1/0)))}}}catch(l){return!1}}},db42:function(t,e,i){},dbe1:function(t,e,i){"use strict";var n=i("608e"),r=i("53a8"),o=i("ba10"),s=i("774a"),a=i("8cb5"),l=1;function c(t,e){if(!t)throw new Error("MapiRequest requires a client");if(!e||!e.path||!e.method)throw new Error("MapiRequest requires an options object with path and method properties");var i={};e.body&&(i["content-type"]="application/json");var n=r(i,e.headers),s=Object.keys(n).reduce((function(t,e){return t[e.toLowerCase()]=n[e],t}),{});this.id=l++,this._options=e,this.emitter=new o,this.client=t,this.response=null,this.error=null,this.sent=!1,this.aborted=!1,this.path=e.path,this.method=e.method,this.origin=e.origin||t.origin,this.query=e.query||{},this.params=e.params||{},this.body=e.body||null,this.file=e.file||null,this.encoding=e.encoding||"utf8",this.sendFileAs=e.sendFileAs||null,this.headers=s}c.prototype.url=function(t){var e=s.prependOrigin(this.path,this.origin);e=s.appendQueryObject(e,this.query);var i=this.params,o=null==t?this.client.accessToken:t;if(o){e=s.appendQueryParam(e,"access_token",o);var a=n(o).user;i=r({ownerId:a},i)}return e=s.interpolateRouteParams(e,i),e},c.prototype.send=function(){var t=this;if(t.sent)throw new Error("This request has already been sent. Check the response and error properties. Create a new request with clone().");return t.sent=!0,t.client.sendRequest(t).then((function(e){return t.response=e,t.emitter.emit(a.EVENT_RESPONSE,e),e}),(function(e){throw t.error=e,t.emitter.emit(a.EVENT_ERROR,e),e}))},c.prototype.abort=function(){this._nextPageRequest&&(this._nextPageRequest.abort(),delete this._nextPageRequest),this.response||this.error||this.aborted||(this.aborted=!0,this.client.abortRequest(this))},c.prototype.eachPage=function(t){var e=this;function i(i){function n(){delete e._nextPageRequest;var t=i.nextPage();t&&(e._nextPageRequest=t,r(t))}t(null,i,n)}function n(e){t(e,null,(function(){}))}function r(t){t.send().then(i,n)}r(this)},c.prototype.clone=function(){return this._extend()},c.prototype._extend=function(t){var e=r(this._options,t);return new c(this.client,e)},t.exports=c},dc19:function(t,e,i){"use strict";var n=i("cb27").has;t.exports=function(t){return n(t),t}},dc4a:function(t,e,i){"use strict";var n=i("59ed"),r=i("7234");t.exports=function(t,e){var i=t[e];return r(i)?void 0:n(i)}},dc7e:function(t,e,i){"use strict";i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return l})),i.d(e,"d",(function(){return u}));var n=i("4251"),r=i("8f69"),o=i("cdfd"),s=o["c"]?WeakMap:Map,a=o["d"]?WeakSet:Set,l=new n["a"],c=!1;function u(){c||(c=!0,!1!==globalThis.__DEV__&&r["b"].warn(52))}},dcbe:function(t,e,i){(function(e){(function(e,i){t.exports=i()})(0,(function(){"use strict"; 17/** 18 * splaytree v3.1.2 19 * Fast Splay tree for Node and browser 20 * 21 * @author Alexander Milevski <[email protected]> 22 * @license MIT 23 * @preserve 24 */ 25/*! ***************************************************************************** 26 Copyright (c) Microsoft Corporation. All rights reserved. 27 Licensed under the Apache License, Version 2.0 (the "License"); you may not use 28 this file except in compliance with the License. You may obtain a copy of the 29 License at http://www.apache.org/licenses/LICENSE-2.0 30 31 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 32 KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 33 WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 34 MERCHANTABLITY OR NON-INFRINGEMENT. 35 36 See the Apache Version 2.0 License for specific language governing permissions 37 and limitations under the License. 38 ***************************************************************************** */function t(t,e){var i,n,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]}
vendor: 26,720 bytes, line 38
38,trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(t){return function(e){return l([t,e])}}function l(o){if(i)throw new TypeError("Generator is already executing.");while(s)try{if(i=1,n&&(r=2&o[0]?n["return"]:o[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}var i=function(){function t(t,e){this.next=null,this.key=t,this.data=e,this.left=null,this.right=null}return t}();function n(t,e){return t>e?1:t<e?-1:0}function r(t,e,n){var r=new i(null,null),o=r,s=r;while(1){var a=n(t,e.key);if(a<0){if(null===e.left)break;if(n(t,e.left.key)<0){var l=e.left;if(e.left=l.right,l.right=e,e=l,null===e.left)break}s.left=e,s=e,e=e.left}else{if(!(a>0))break;if(null===e.right)break;if(n(t,e.right.key)>0){l=e.right;if(e.right=l.left,l.left=e,e=l,null===e.right)break}o.right=e,o=e,e=e.right}}return o.right=e.left,s.left=e.right,e.left=r.right,e.right=r.left,e}function o(t,e,n,o){var s=new i(t,e);if(null===n)return s.left=s.right=null,s;n=r(t,n,o);var a=o(t,n.key);return a<0?(s.left=n.left,s.right=n,n.left=null):a>=0&&(s.right=n.right,s.left=n,n.right=null),s}function s(t,e,i){var n=null,o=null;if(e){e=r(t,e,i);var s=i(e.key,t);0===s?(n=e.left,o=e.right):s<0?(o=e.right,e.right=null,n=e):(n=e.left,e.left=null,o=e)}return{left:n,right:o}}function a(t,e,i){return null===e?t:(null===t||(e=r(t.key,e,i),e.left=t),e)}function l(t,e,i,n,r){if(t){n(e+(i?"âââ ":"âââ ")+r(t)+"\n");var o=e+(i?" ":"â ");t.left&&l(t.left,o,!1,n,r),t.right&&l(t.right,o,!0,n,r)}}var c=function(){function e(t){void 0===t&&(t=n),this._root=null,this._size=0,this._comparator=t}return e.prototype.insert=function(t,e){return this._size++,this._root=o(t,e,this._root,this._comparator)},e.prototype.add=function(t,e){var n=new i(t,e);null===this._root&&(n.left=n.right=null,this._size++,this._root=n);var o=this._comparator,s=r(t,this._root,o),a=o(t,s.key);return 0===a?this._root=s:(a<0?(n.left=s.left,n.right=s,s.left=null):a>0&&(n.right=s.right,n.left=s,s.right=null),this._size++,this._root=n),this._root},e.prototype.remove=function(t){this._root=this._remove(t,this._root,this._comparator)},e.prototype._remove=function(t,e,i){var n;if(null===e)return null;e=r(t,e,i);var o=i(t,e.key);return 0===o?(null===e.left?n=e.right:(n=r(t,e.left,i),n.right=e.right),this._size--,n):e},e.prototype.pop=function(){var t=this._root;if(t){while(t.left)t=t.left;return this._root=r(t.key,this._root,this._comparator),this._root=this._remove(t.key,this._root,this._comparator),{key:t.key,data:t.data}}return null},e.prototype.findStatic=function(t){var e=this._root,i=this._comparator;while(e){var n=i(t,e.key);if(0===n)return e;e=n<0?e.left:e.right}return null},e.prototype.find=function(t){return this._root&&(this._root=r(t,this._root,this._comparator),0!==this._comparator(t,this._root.key))?null:this._root},e.prototype.contains=function(t){var e=this._root,i=this._comparator;while(e){var n=i(t,e.key);if(0===n)return!0;e=n<0?e.left:e.right}return!1},e.prototype.forEach=function(t,e){var i=this._root,n=[],r=!1;while(!r)null!==i?(n.push(i),i=i.left):0!==n.length?(i=n.pop(),t.call(e,i),i=i.right):r=!0;return this},e.prototype.range=function(t,e,i,n){var r,o=[],s=this._comparator,a=this._root;while(0!==o.length||a)if(a)o.push(a),a=a.left;else{if(a=o.pop(),r=s(a.key,e),r>0)break;if(s(a.key,t)>=0&&i.call(n,a))return this;a=a.right}return this},e.prototype.keys=function(){var t=[];return this.forEach((function(e){var i=e.key;return t.push(i)})),t},e.prototype.values=function(){var t=[];return this.forEach((function(e){var i=e.data;return t.push(i)})),t},e.prototype.min=function(){return this._root?this.minNode(this._root).key:null},e.prototype.max=function(){return this._root?this.maxNode(this._root).key:null},e.prototype.minNode=function(t){if(void 0===t&&(t=this._root),t)while(t.left)t=t.left;return t},e.prototype.maxNode=function(t){if(void 0===t&&(t=this._root),t)while(t.right)t=t.right;return t},e.prototype.at=function(t){var e=this._root,i=!1,n=0,r=[];while(!i)if(e)r.push(e),e=e.left;else if(r.length>0){if(e=r.pop(),n===t)return e;n++,e=e.right}else i=!0;return null},e.prototype.next=function(t){var e=this._root,i=null;if(t.right){i=t.right;while(i.left)i=i.left;return i}var n=this._comparator;while(e){var r=n(t.key,e.key);if(0===r)break;r<0?(i=e,e=e.left):e=e.right}return i},e.prototype.prev=function(t){var e=this._root,i=null;if(null!==t.left){i=t.left;while(i.right)i=i.right;return i}var n=this._comparator;while(e){var r=n(t.key,e.key);if(0===r)break;r<0?e=e.left:(i=e,e=e.right)}return i},e.prototype.clear=function(){return this._root=null,this._size=0,this},e.prototype.toList=function(){return d(this._root)},e.prototype.load=function(t,e,i){void 0===e&&(e=[]),void 0===i&&(i=!1);var n=t.length,r=this._comparator;if(i&&m(t,e,0,n-1,r),null===this._root)this._root=u(t,e,0,n),this._size=n;else{var o=p(this.toList(),h(t,e),r);n=this._size+n,this._root=f({head:o},0,n)}return this},e.prototype.isEmpty=function(){return null===this._root},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return this._root},enumerable:!0,configurable:!0}),e.prototype.toString=function(t){void 0===t&&(t=function(t){return String(t.key)});var e=[];return l(this._root,"",!0,(function(t){return e.push(t)}),t),e.join("")},e.prototype.update=function(t,e,i){var n=this._comparator,r=s(t,this._root,n),l=r.left,c=r.right;n(t,e)<0?c=o(e,i,c,n):l=o(e,i,l,n),this._root=a(l,c,n)},e.prototype.split=function(t){return s(t,this._root,this._comparator)},e.prototype[Symbol.iterator]=function(){var e,i,n;return t(this,(function(t){switch(t.label){case 0:e=this._root,i=[],n=!1,t.label=1;case 1:return n?[3,6]:null===e?[3,2]:(i.push(e),e=e.left,[3,5]);case 2:return 0===i.length?[3,4]:(e=i.pop(),[4,e]);case 3:return t.sent(),e=e.right,[3,5];case 4:n=!0,t.label=5;case 5:return[3,1];case 6:return[2]}}))},e}();function u(t,e,n,r){var o=r-n;if(o>0){var s=n+Math.floor(o/2),a=t[s],l=e[s],c=new i(a,l);return c.left=u(t,e,n,s),c.right=u(t,e,s+1,r),c}return null}function h(t,e){for(var n=new i(null,null),r=n,o=0;o<t.length;o++)r=r.next=new i(t[o],e[o]);return r.next=null,n.next}function d(t){var e=t,n=[],r=!1,o=new i(null,null),s=o;while(!r)e?(n.push(e),e=e.left):n.length>0?(e=s=s.next=n.pop(),e=e.right):r=!0;return s.next=null,o.next}function f(t,e,i){var n=i-e;if(n>0){var r=e+Math.floor(n/2),o=f(t,e,r),s=t.head;return s.left=o,t.head=t.head.next,s.right=f(t,r+1,i),s}return null}function p(t,e,n){var r=new i(null,null),o=r,s=t,a=e;while(null!==s&&null!==a)n(s.key,a.key)<0?(o.next=s,s=s.next):(o.next=a,a=a.next),o=o.next;return null!==s?o.next=s:null!==a&&(o.next=a),r.next}function m(t,e,i,n,r){if(!(i>=n)){var o=t[i+n>>1],s=i-1,a=n+1;while(1){do{s++}while(r(t[s],o)<0);do{a--}while(r(t[a],o)>0);if(s>=a)break;var l=t[s];t[s]=t[a],t[a]=l,l=e[s],e[s]=e[a],e[a]=l}m(t,e,i,a,r),m(t,e,a+1,n,r)}}const g=(t,e)=>t.ll.x<=e.x&&e.x<=t.ur.x&&t.ll.y<=e.y&&e.y<=t.ur.y,y=(t,e)=>{if(e.ur.x<t.ll.x||t.ur.x<e.ll.x||e.ur.y<t.ll.y||t.ur.y<e.ll.y)return null;const i=t.ll.x<e.ll.x?e.ll.x:t.ll.x,n=t.ur.x<e.ur.x?t.ur.x:e.ur.x,r=t.ll.y<e.ll.y?e.ll.y:t.ll.y,o=t.ur.y<e.ur.y?t.ur.y:e.ur.y;return{ll:{x:i,y:r},ur:{x:n,y:o}}};let _=Number.EPSILON;void 0===_&&(_=Math.pow(2,-52));const v=_*_,b=(t,e)=>{if(-_<t&&t<_&&-_<e&&e<_)return 0;const i=t-e;return i*i<v*t*e?0:t<e?-1:1};class x{constructor(){this.reset()}reset(){this.xRounder=new w,this.yRounder=new w}round(t,e){return{x:this.xRounder.round(t),y:this.yRounder.round(e)}}}class w{constructor(){this.tree=new c,this.round(0)}round(t){const e=this.tree.add(t),i=this.tree.prev(e);if(null!==i&&0===b(e.key,i.key))return this.tree.remove(t),i.key;const n=this.tree.next(e);return null!==n&&0===b(e.key,n.key)?(this.tree.remove(t),n.key):t}}const E=new x,T=11102230246251565e-32,S=134217729,k=(3+8*T)*T;function O(t,e,i,n,r){let o,s,a,l,c=e[0],u=n[0],h=0,d=0;u>c===u>-c?(o=c,c=e[++h]):(o=u,u=n[++d]);let f=0;if(h<t&&d<i){u>c===u>-c?(s=c+o,a=o-(s-c),c=e[++h]):(s=u+o,a=o-(s-u),u=n[++d]),o=s,0!==a&&(r[f++]=a);while(h<t&&d<i)u>c===u>-c?(s=o+c,l=s-o,a=o-(s-l)+(c-l),c=e[++h]):(s=o+u,l=s-o,a=o-(s-l)+(u-l),u=n[++d]),o=s,0!==a&&(r[f++]=a)}while(h<t)s=o+c,l=s-o,a=o-(s-l)+(c-l),c=e[++h],o=s,0!==a&&(r[f++]=a);while(d<i)s=o+u,l=s-o,a=o-(s-l)+(u-l),u=n[++d],o=s,0!==a&&(r[f++]=a);return 0===o&&0!==f||(r[f++]=o),f}function A(t,e){let i=e[0];for(let n=1;n<t;n++)i+=e[n];return i}function C(t){return new Float64Array(t)}const I=(3+16*T)*T,M=(2+12*T)*T,P=(9+64*T)*T*T,D=C(4),L=C(8),R=C(12),z=C(16),j=C(4);function B(t,e,i,n,r,o,s){let a,l,c,u,h,d,f,p,m,g,y,_,v,b,x,w,E,T;const C=t-r,I=i-r,B=e-o,F=n-o;b=C*F,d=S*C,f=d-(d-C),p=C-f,d=S*F,m=d-(d-F),g=F-m,x=p*g-(b-f*m-p*m-f*g),w=B*I,d=S*B,f=d-(d-B),p=B-f,d=S*I,m=d-(d-I),g=I-m,E=p*g-(w-f*m-p*m-f*g),y=x-E,h=x-y,D[0]=x-(y+h)+(h-E),_=b+y,h=_-b,v=b-(_-h)+(y-h),y=v-w,h=v-y,D[1]=v-(y+h)+(h-w),T=_+y,h=T-_,D[2]=_-(T-h)+(y-h),D[3]=T;let N=A(4,D),V=M*s;if(N>=V||-N>=V)return N;if(h=t-C,a=t-(C+h)+(h-r),h=i-I,c=i-(I+h)+(h-r),h=e-B,l=e-(B+h)+(h-o),h=n-F,u=n-(F+h)+(h-o),0===a&&0===l&&0===c&&0===u)return N;if(V=P*s+k*Math.abs(N),N+=C*u+F*a-(B*c+I*l),N>=V||-N>=V)return N;b=a*F,d=S*a,f=d-(d-a),p=a-f,d=S*F,m=d-(d-F),g=F-m,x=p*g-(b-f*m-p*m-f*g),w=l*I,d=S*l,f=d-(d-l),p=l-f,d=S*I,m=d-(d-I),g=I-m,E=p*g-(w-f*m-p*m-f*g),y=x-E,h=x-y,j[0]=x-(y+h)+(h-E),_=b+y,h=_-b,v=b-(_-h)+(y-h),y=v-w,h=v-y,j[1]=v-(y+h)+(h-w),T=_+y,h=T-_,j[2]=_-(T-h)+(y-h),j[3]=T;const $=O(4,D,4,j,L);b=C*u,d=S*C,f=d-(d-C),p=C-f,d=S*u,m=d-(d-u),g=u-m,x=p*g-(b-f*m-p*m-f*g),w=B*c,d=S*B,f=d-(d-B),p=B-f,d=S*c,m=d-(d-c),g=c-m,E=p*g-(w-f*m-p*m-f*g),y=x-E,h=x-y,j[0]=x-(y+h)+(h-E),_=b+y,h=_-b,v=b-(_-h)+(y-h),y=v-w,h=v-y,j[1]=v-(y+h)+(h-w),T=_+y,h=T-_,j[2]=_-(T-h)+(y-h),j[3]=T;const U=O($,L,4,j,R);b=a*u,d=S*a,f=d-(d-a),p=a-f,d=S*u,m=d-(d-u),g=u-m,x=p*g-(b-f*m-p*m-f*g),w=l*c,d=S*l,f=d-(d-l),p=l-f,d=S*c,m=d-(d-c),g=c-m,E=p*g-(w-f*m-p*m-f*g),y=x-E,h=x-y,j[0]=x-(y+h)+(h-E),_=b+y,h=_-b,v=b-(_-h)+(y-h),y=v-w,h=v-y,j[1]=v-(y+h)+(h-w),T=_+y,h=T-_,j[2]=_-(T-h)+(y-h),j[3]=T;const q=O(U,R,4,j,z);return z[q-1]}function F(t,e,i,n,r,o){const s=(e-o)*(i-r),a=(t-r)*(n-o),l=s-a,c=Math.abs(s+a);return Math.abs(l)>=I*c?l:-B(t,e,i,n,r,o,c)}const N=(t,e)=>t.x*e.y-t.y*e.x,V=(t,e)=>t.x*e.x+t.y*e.y,$=(t,e,i)=>{const n=F(t.x,t.y,e.x,e.y,i.x,i.y);return n>0?-1:n<0?1:0},U=t=>Math.sqrt(V(t,t)),q=(t,e,i)=>{const n={x:e.x-t.x,y:e.y-t.y},r={x:i.x-t.x,y:i.y-t.y};return N(r,n)/U(r)/U(n)},G=(t,e,i)=>{const n={x:e.x-t.x,y:e.y-t.y},r={x:i.x-t.x,y:i.y-t.y};return V(r,n)/U(r)/U(n)},W=(t,e,i)=>0===e.y?null:{x:t.x+e.x/e.y*(i-t.y),y:i},Z=(t,e,i)=>0===e.x?null:{x:i,y:t.y+e.y/e.x*(i-t.x)},H=(t,e,i,n)=>{if(0===e.x)return Z(i,n,t.x);if(0===n.x)return Z(t,e,i.x);if(0===e.y)return W(i,n,t.y);if(0===n.y)return W(t,e,i.y);const r=N(e,n);if(0==r)return null;const o={x:i.x-t.x,y:i.y-t.y},s=N(o,e)/r,a=N(o,n)/r,l=t.x+a*e.x,c=i.x+s*n.x,u=t.y+a*e.y,h=i.y+s*n.y,d=(l+c)/2,f=(u+h)/2;return{x:d,y:f}};class X{static compare(t,e){const i=X.comparePoints(t.point,e.point);return 0!==i?i:(t.point!==e.point&&t.link(e),t.isLeft!==e.isLeft?t.isLeft?1:-1:Y.compare(t.segment,e.segment))}static comparePoints(t,e){return t.x<e.x?-1:t.x>e.x?1:t.y<e.y?-1:t.y>e.y?1:0}constructor(t,e){void 0===t.events?t.events=[this]:t.events.push(this),this.point=t,this.isLeft=e}link(t){if(t.point===this.point)throw new Error("Tried to link already linked events");const e=t.point.events;for(let i=0,n=e.length;i<n;i++){const t=e[i];this.point.events.push(t),t.point=this.point}this.checkForConsuming()}checkForConsuming(){const t=this.point.events.length;for(let e=0;e<t;e++){const i=this.point.events[e];if(void 0===i.segment.consumedBy)for(let n=e+1;n<t;n++){const t=this.point.events[n];void 0===t.consumedBy&&(i.otherSE.point.events===t.otherSE.point.events&&i.segment.consume(t.segment))}}}getAvailableLinkedEvents(){const t=[];for(let e=0,i=this.point.events.length;e<i;e++){const i=this.point.events[e];i!==this&&!i.segment.ringOut&&i.segment.isInResult()&&t.push(i)}return t}getLeftmostComparator(t){const e=new Map,i=i=>{const n=i.otherSE;e.set(i,{sine:q(this.point,t.point,n.point),cosine:G(this.point,t.point,n.point)})};return(t,n)=>{e.has(t)||i(t),e.has(n)||i(n);const{sine:r,cosine:o}=e.get(t),{sine:s,cosine:a}=e.get(n);return r>=0&&s>=0?o<a?1:o>a?-1:0:r<0&&s<0?o<a?-1:o>a?1:0:s<r?-1:s>r?1:0}}}let Q=0;class Y{static compare(t,e){const i=t.leftSE.point.x,n=e.leftSE.point.x,r=t.rightSE.point.x,o=e.rightSE.point.x;if(o<i)return 1;if(r<n)return-1;const s=t.leftSE.point.y,a=e.leftSE.point.y,l=t.rightSE.point.y,c=e.rightSE.point.y;if(i<n){if(a<s&&a<l)return 1;if(a>s&&a>l)return-1;const i=t.comparePoint(e.leftSE.point);if(i<0)return 1;if(i>0)return-1;const n=e.comparePoint(t.rightSE.point);return 0!==n?n:-1}if(i>n){if(s<a&&s<c)return-1;if(s>a&&s>c)return 1;const i=e.comparePoint(t.leftSE.point);if(0!==i)return i;const n=t.comparePoint(e.rightSE.point);return n<0?1:n>0?-1:1}if(s<a)return-1;if(s>a)return 1;if(r<o){const i=e.comparePoint(t.rightSE.point);if(0!==i)return i}if(r>o){const i=t.comparePoint(e.rightSE.point);if(i<0)return 1;if(i>0)return-1}if(r!==o){const t=l-s,e=r-i,u=c-a,h=o-n;if(t>e&&u<h)return 1;if(t<e&&u>h)return-1}return r>o?1:r<o||l<c?-1:l>c?1:t.id<e.id?-1:t.id>e.id?1:0}constructor(t,e,i,n){this.id=++Q,this.leftSE=t,t.segment=this,t.otherSE=e,this.rightSE=e,e.segment=this,e.otherSE=t,this.rings=i,this.windings=n}static fromRing(t,e,i){let n,r,o;const s=X.comparePoints(t,e);if(s<0)n=t,r=e,o=1;else{if(!(s>0))throw new Error(`Tried to create degenerate segment at [${t.x}, ${t.y}]`);n=e,r=t,o=-1}const a=new X(n,!0),l=new X(r,!1);return new Y(a,l,[i],[o])}replaceRightSE(t){this.rightSE=t,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}bbox(){const t=this.leftSE.point.y,e=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:t<e?t:e},ur:{x:this.rightSE.point.x,y:t>e?t:e}}}vector(){return{x:this.rightSE.point.x-this.leftSE.point.x,y:this.rightSE.point.y-this.leftSE.point.y}}isAnEndpoint(t){return t.x===this.leftSE.point.x&&t.y===this.leftSE.point.y||t.x===this.rightSE.point.x&&t.y===this.rightSE.point.y}comparePoint(t){if(this.isAnEndpoint(t))return 0;const e=this.leftSE.point,i=this.rightSE.point,n=this.vector();if(e.x===i.x)return t.x===e.x?0:t.x<e.x?1:-1;const r=(t.y-e.y)/n.y,o=e.x+r*n.x;if(t.x===o)return 0;const s=(t.x-e.x)/n.x,a=e.y+s*n.y;return t.y===a?0:t.y<a?-1:1}getIntersection(t){const e=this.bbox(),i=t.bbox(),n=y(e,i);if(null===n)return null;const r=this.leftSE.point,o=this.rightSE.point,s=t.leftSE.point,a=t.rightSE.point,l=g(e,s)&&0===this.comparePoint(s),c=g(i,r)&&0===t.comparePoint(r),u=g(e,a)&&0===this.comparePoint(a),h=g(i,o)&&0===t.comparePoint(o);if(c&&l)return h&&!u?o:!h&&u?a:null;if(c)return u&&r.x===a.x&&r.y===a.y?null:r;if(l)return h&&o.x===s.x&&o.y===s.y?null:s;if(h&&u)return null;if(h)return o;if(u)return a;const d=H(r,this.vector(),s,t.vector());return null===d?null:g(n,d)?E.round(d.x,d.y):null}split(t){const e=[],i=void 0!==t.events,n=new X(t,!0),r=new X(t,!1),o=this.rightSE;this.replaceRightSE(r),e.push(r),e.push(n);const s=new Y(n,o,this.rings.slice(),this.windings.slice());return X.comparePoints(s.leftSE.point,s.rightSE.point)>0&&s.swapEvents(),X.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),i&&(n.checkForConsuming(),r.checkForConsuming()),e}swapEvents(){const t=this.rightSE;this.rightSE=this.leftSE,this.leftSE=t,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(let e=0,i=this.windings.length;e<i;e++)this.windings[e]*=-1}consume(t){let e=this,i=t;while(e.consumedBy)e=e.consumedBy;while(i.consumedBy)i=i.consumedBy;const n=Y.compare(e,i);if(0!==n){if(n>0){const t=e;e=i,i=t}if(e.prev===i){const t=e;e=i,i=t}for(let t=0,n=i.rings.length;t<n;t++){const n=i.rings[t],r=i.windings[t],o=e.rings.indexOf(n);-1===o?(e.rings.push(n),e.windings.push(r)):e.windings[o]+=r}i.rings=null,i.windings=null,i.consumedBy=e,i.leftSE.consumedBy=e.leftSE,i.rightSE.consumedBy=e.rightSE}}prevInResult(){return void 0!==this._prevInResult||(this.prev?this.prev.isInResult()?this._prevInResult=this.prev:this._prevInResult=this.prev.prevInResult():this._prevInResult=null),this._prevInResult}beforeState(){if(void 0!==this._beforeState)return this._beforeState;if(this.prev){const t=this.prev.consumedBy||this.prev;this._beforeState=t.afterState()}else this._beforeState={rings:[],windings:[],multiPolys:[]};return this._beforeState}afterState(){if(void 0!==this._afterState)return this._afterState;const t=this.beforeState();this._afterState={rings:t.rings.slice(0),windings:t.windings.slice(0),multiPolys:[]};const e=this._afterState.rings,i=this._afterState.windings,n=this._afterState.multiPolys;for(let s=0,a=this.rings.length;s<a;s++){const t=this.rings[s],n=this.windings[s],r=e.indexOf(t);-1===r?(e.push(t),i.push(n)):i[r]+=n}const r=[],o=[];for(let s=0,a=e.length;s<a;s++){if(0===i[s])continue;const t=e[s],n=t.poly;if(-1===o.indexOf(n))if(t.isExterior)r.push(n);else{-1===o.indexOf(n)&&o.push(n);const e=r.indexOf(t.poly);-1!==e&&r.splice(e,1)}}for(let s=0,a=r.length;s<a;s++){const t=r[s].multiPoly;-1===n.indexOf(t)&&n.push(t)}return this._afterState}isInResult(){if(this.consumedBy)return!1;if(void 0!==this._isInResult)return this._isInResult;const t=this.beforeState().multiPolys,e=this.afterState().multiPolys;switch(lt.type){case"union":{const i=0===t.length,n=0===e.length;this._isInResult=i!==n;break}case"intersection":{let i,n;t.length<e.length?(i=t.length,n=e.length):(i=e.length,n=t.length),this._isInResult=n===lt.numMultiPolys&&i<n;break}case"xor":{const i=Math.abs(t.length-e.length);this._isInResult=i%2===1;break}case"difference":{const i=t=>1===t.length&&t[0].isSubject;this._isInResult=i(t)!==i(e);break}default:throw new Error("Unrecognized operation type found "+lt.type)}return this._isInResult}}class K{constructor(t,e,i){if(!Array.isArray(t)||0===t.length)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=e,this.isExterior=i,this.segments=[],"number"!==typeof t[0][0]||"number"!==typeof t[0][1])throw new Error("Input geometry is not a valid Polygon or MultiPolygon");const n=E.round(t[0][0],t[0][1]);this.bbox={ll:{x:n.x,y:n.y},ur:{x:n.x,y:n.y}};let r=n;for(let o=1,s=t.length;o<s;o++){if("number"!==typeof t[o][0]||"number"!==typeof t[o][1])throw new Error("Input geometry is not a valid Polygon or MultiPolygon");let e=E.round(t[o][0],t[o][1]);e.x===r.x&&e.y===r.y||(this.segments.push(Y.fromRing(r,e,this)),e.x<this.bbox.ll.x&&(this.bbox.ll.x=e.x),e.y<this.bbox.ll.y&&(this.bbox.ll.y=e.y),e.x>this.bbox.ur.x&&(this.bbox.ur.x=e.x),e.y>this.bbox.ur.y&&(this.bbox.ur.y=e.y),r=e)}n.x===r.x&&n.y===r.y||this.segments.push(Y.fromRing(r,n,this))}getSweepEvents(){const t=[];for(let e=0,i=this.segments.length;e<i;e++){const i=this.segments[e];t.push(i.leftSE),t.push(i.rightSE)}return t}}class J{constructor(t,e){if(!Array.isArray(t))throw new Error("Input geometry is not a valid Polygon or MultiPolygon");this.exteriorRing=new K(t[0],this,!0),this.bbox={ll:{x:this.exteriorRing.bbox.ll.x,y:this.exteriorRing.bbox.ll.y},ur:{x:this.exteriorRing.bbox.ur.x,y:this.exteriorRing.bbox.ur.y}},this.interiorRings=[];for(let i=1,n=t.length;i<n;i++){const e=new K(t[i],this,!1);e.bbox.ll.x<this.bbox.ll.x&&(this.bbox.ll.x=e.bbox.ll.x),e.bbox.ll.y<this.bbox.ll.y&&(this.bbox.ll.y=e.bbox.ll.y),e.bbox.ur.x>this.bbox.ur.x&&(this.bbox.ur.x=e.bbox.ur.x),e.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=e.bbox.ur.y),this.interiorRings.push(e)}this.multiPoly=e}getSweepEvents(){const t=this.exteriorRing.getSweepEvents();for(let e=0,i=this.interiorRings.length;e<i;e++){const i=this.interiorRings[e].getSweepEvents();for(let e=0,n=i.length;e<n;e++)t.push(i[e])}return t}}class tt{constructor(t,e){if(!Array.isArray(t))throw new Error("Input geometry is not a valid Polygon or MultiPolygon");try{"number"===typeof t[0][0][0]&&(t=[t])}catch(i){}this.polys=[],this.bbox={ll:{x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY},ur:{x:Number.NEGATIVE_INFINITY,y:Number.NEGATIVE_INFINITY}};for(let n=0,r=t.length;n<r;n++){const e=new J(t[n],this);e.bbox.ll.x<this.bbox.ll.x&&(this.bbox.ll.x=e.bbox.ll.x),e.bbox.ll.y<this.bbox.ll.y&&(this.bbox.ll.y=e.bbox.ll.y),e.bbox.ur.x>this.bbox.ur.x&&(this.bbox.ur.x=e.bbox.ur.x),e.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=e.bbox.ur.y),this.polys.push(e)}this.isSubject=e}getSweepEvents(){const t=[];for(let e=0,i=this.polys.length;e<i;e++){const i=this.polys[e].getSweepEvents();for(let e=0,n=i.length;e<n;e++)t.push(i[e])}return t}}class et{static factory(t){const e=[];for(let i=0,n=t.length;i<n;i++){const n=t[i];if(!n.isInResult()||n.ringOut)continue;let r=null,o=n.leftSE,s=n.rightSE;const a=[o],l=o.point,c=[];while(1){if(r=o,o=s,a.push(o),o.point===l)break;while(1){const t=o.getAvailableLinkedEvents();if(0===t.length){const t=a[0].point,e=a[a.length-1].point;throw new Error(`Unable to complete output ring starting at [${t.x}, ${t.y}]. Last matching segment found ends at [${e.x}, ${e.y}].`)}if(1===t.length){s=t[0].otherSE;break}let i=null;for(let e=0,r=c.length;e<r;e++)if(c[e].point===o.point){i=e;break}if(null!==i){const t=c.splice(i)[0],n=a.splice(t.index);n.unshift(n[0].otherSE),e.push(new et(n.reverse()));continue}c.push({index:a.length,point:o.point});const n=o.getLeftmostComparator(r);s=t.sort(n)[0].otherSE;break}}e.push(new et(a))}return e}constructor(t){this.events=t;for(let e=0,i=t.length;e<i;e++)t[e].segment.ringOut=this;this.poly=null}getGeom(){let t=this.events[0].point;const e=[t];for(let l=1,c=this.events.length-1;l<c;l++){const i=this.events[l].point,n=this.events[l+1].point;0!==$(i,t,n)&&(e.push(i),t=i)}if(1===e.length)return null;const i=e[0],n=e[1];0===$(i,t,n)&&e.shift(),e.push(e[0]);const r=this.isExteriorRing()?1:-1,o=this.isExteriorRing()?0:e.length-1,s=this.isExteriorRing()?e.length:-1,a=[];for(let l=o;l!=s;l+=r)a.push([e[l].x,e[l].y]);return a}isExteriorRing(){if(void 0===this._isExteriorRing){const t=this.enclosingRing();this._isExteriorRing=!t||!t.isExteriorRing()}return this._isExteriorRing}enclosingRing(){return void 0===this._enclosingRing&&(this._enclosingRing=this._calcEnclosingRing()),this._enclosingRing}_calcEnclosingRing(){let t=this.events[0];for(let n=1,r=this.events.length;n<r;n++){const e=this.events[n];X.compare(t,e)>0&&(t=e)}let e=t.segment.prevInResult(),i=e?e.prevInResult():null;while(1){if(!e)return null;if(!i)return e.ringOut;if(i.ringOut!==e.ringOut)return i.ringOut.enclosingRing()!==e.ringOut?e.ringOut:e.ringOut.enclosingRing();e=i.prevInResult(),i=e?e.prevInResult():null}}}class it{constructor(t){this.exteriorRing=t,t.poly=this,this.interiorRings=[]}addInterior(t){this.interiorRings.push(t),t.poly=this}getGeom(){const t=[this.exteriorRing.getGeom()];if(null===t[0])return null;for(let e=0,i=this.interiorRings.length;e<i;e++){const i=this.interiorRings[e].getGeom();null!==i&&t.push(i)}return t}}class nt{constructor(t){this.rings=t,this.polys=this._composePolys(t)}getGeom(){const t=[];for(let e=0,i=this.polys.length;e<i;e++){const i=this.polys[e].getGeom();null!==i&&t.push(i)}return t}_composePolys(t){const e=[];for(let i=0,n=t.length;i<n;i++){const n=t[i];if(!n.poly)if(n.isExteriorRing())e.push(new it(n));else{const t=n.enclosingRing();t.poly||e.push(new it(t)),t.poly.addInterior(n)}}return e}}class rt{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y.compare;this.queue=t,this.tree=new c(e),this.segments=[]}process(t){const e=t.segment,i=[];if(t.consumedBy)return t.isLeft?this.queue.remove(t.otherSE):this.tree.remove(e),i;const n=t.isLeft?this.tree.add(e):this.tree.find(e);if(!n)throw new Error(`Unable to find segment #${e.id} [${e.leftSE.point.x}, ${e.leftSE.point.y}] -> [${e.rightSE.point.x}, ${e.rightSE.point.y}] in SweepLine tree.`);let r=n,o=n,s=void 0,a=void 0;while(void 0===s)r=this.tree.prev(r),null===r?s=null:void 0===r.key.consumedBy&&(s=r.key);while(void 0===a)o=this.tree.next(o),null===o?a=null:void 0===o.key.consumedBy&&(a=o.key);if(t.isLeft){let n=null;if(s){const t=s.getIntersection(e);if(null!==t&&(e.isAnEndpoint(t)||(n=t),!s.isAnEndpoint(t))){const e=this._splitSafely(s,t);for(let t=0,n=e.length;t<n;t++)i.push(e[t])}}let r=null;if(a){const t=a.getIntersection(e);if(null!==t&&(e.isAnEndpoint(t)||(r=t),!a.isAnEndpoint(t))){const e=this._splitSafely(a,t);for(let t=0,n=e.length;t<n;t++)i.push(e[t])}}if(null!==n||null!==r){let t=null;if(null===n)t=r;else if(null===r)t=n;else{const e=X.comparePoints(n,r);t=e<=0?n:r}this.queue.remove(e.rightSE),i.push(e.rightSE);const o=e.split(t);for(let e=0,n=o.length;e<n;e++)i.push(o[e])}i.length>0?(this.tree.remove(e),i.push(t)):(this.segments.push(e),e.prev=s)}else{if(s&&a){const t=s.getIntersection(a);if(null!==t){if(!s.isAnEndpoint(t)){const e=this._splitSafely(s,t);for(let t=0,n=e.length;t<n;t++)i.push(e[t])}if(!a.isAnEndpoint(t)){const e=this._splitSafely(a,t);for(let t=0,n=e.length;t<n;t++)i.push(e[t])}}}this.tree.remove(e)}return i}_splitSafely(t,e){this.tree.remove(t);const i=t.rightSE;this.queue.remove(i);const n=t.split(e);return n.push(i),void 0===t.consumedBy&&this.tree.add(t),n}}const ot="undefined"!==typeof e&&Object({NODE_ENV:"production",BASE_URL:""}).POLYGON_CLIPPING_MAX_QUEUE_SIZE||1e6,st="undefined"!==typeof e&&Object({NODE_ENV:"production",BASE_URL:""}).POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS||1e6;class at{run(t,e,i){lt.type=t,E.reset();const n=[new tt(e,!0)];for(let c=0,h=i.length;c<h;c++)n.push(new tt(i[c],!1));if(lt.numMultiPolys=n.length,"difference"===lt.type){const t=n[0];let e=1;while(e<n.length)null!==y(n[e].bbox,t.bbox)?e++:n.splice(e,1)}if("intersection"===lt.type)for(let c=0,h=n.length;c<h;c++){const t=n[c];for(let e=c+1,i=n.length;e<i;e++)if(null===y(t.bbox,n[e].bbox))return[]}const r=new c(X.compare);for(let c=0,h=n.length;c<h;c++){const t=n[c].getSweepEvents();for(let e=0,i=t.length;e<i;e++)if(r.insert(t[e]),r.size>ot)throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big).")}const o=new rt(r);let s=r.size,a=r.pop();while(a){const t=a.key;if(r.size===s){const e=t.segment;
38throw new Error(`Unable to pop() ${t.isLeft?"left":"right"} SweepEvent [${t.point.x}, ${t.point.y}] from segment #${e.id} [${e.leftSE.point.x}, ${e.leftSE.point.y}] -> [${e.rightSE.point.x}, ${e.rightSE.point.y}] from queue.`)}if(r.size>ot)throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big).");if(o.segments.length>st)throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments).");const e=o.process(t);for(let i=0,n=e.length;i<n;i++){const t=e[i];void 0===t.consumedBy&&r.insert(t)}s=r.size,a=r.pop()}E.reset();const l=et.factory(o.segments),u=new nt(l);return u.getGeom()}}const lt=new at,ct=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return lt.run("union",t,i)},ut=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return lt.run("intersection",t,i)},ht=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return lt.run("xor",t,i)},dt=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return lt.run("difference",t,i)};var ft={union:ct,intersection:ut,xor:ht,difference:dt};return ft}))}).call(this,i("4362"))},dd2f:function(t,e,i){"use strict";i.d(e,"a",(function(){return f}));var n=i("8f69"),r=i("2995"),o=i("9ab4");function s(t,e){var i=Object(o["a"])({},t),n=function(t){i="function"===typeof t?Object(o["a"])(Object(o["a"])({},i),t(i)):Object(o["a"])(Object(o["a"])({},i),t)},r=function(){return Object(o["a"])({},i)};return Object.defineProperty(e,"setContext",{enumerable:!1,value:n}),Object.defineProperty(e,"getContext",{enumerable:!1,value:r}),e}var a=i("b070");function l(t){var e={variables:t.variables||{},extensions:t.extensions||{},operationName:t.operationName,query:t.query};return e.operationName||(e.operationName="string"!==typeof e.query?Object(a["g"])(e.query)||void 0:""),e}function c(t){for(var e=["query","operationName","variables","extensions","context"],i=0,r=Object.keys(t);i<r.length;i++){var o=r[i];if(e.indexOf(o)<0)throw Object(n["d"])(46,o)}return t}function u(t,e){return e?e(t):r["a"].of()}function h(t){return"function"===typeof t?new f(t):t}function d(t){return t.request.length<=1}var f=function(){function t(t){t&&(this.request=t)}return t.empty=function(){return new t((function(){return r["a"].of()}))},t.from=function(e){return 0===e.length?t.empty():e.map(h).reduce((function(t,e){return t.concat(e)}))},t.split=function(e,i,n){var o,s=h(i),a=h(n||new t(u));return o=d(s)&&d(a)?new t((function(t){return e(t)?s.request(t)||r["a"].of():a.request(t)||r["a"].of()})):new t((function(t,i){return e(t)?s.request(t,i)||r["a"].of():a.request(t,i)||r["a"].of()})),Object.assign(o,{left:s,right:a})},t.execute=function(t,e){return t.request(s(e.context,l(c(e))))||r["a"].of()},t.concat=function(e,i){var o=h(e);if(d(o))return!1!==globalThis.__DEV__&&n["b"].warn(38,o),o;var s,a=h(i);return s=d(a)?new t((function(t){return o.request(t,(function(t){return a.request(t)||r["a"].of()}))||r["a"].of()})):new t((function(t,e){return o.request(t,(function(t){return a.request(t,e)||r["a"].of()}))||r["a"].of()})),Object.assign(s,{left:o,right:a})},t.prototype.split=function(e,i,n){return this.concat(t.split(e,i,n||new t(u)))},t.prototype.concat=function(e){return t.concat(this,e)},t.prototype.request=function(t,e){throw Object(n["d"])(39)},t.prototype.onError=function(t,e){if(e&&e.error)return e.error(t),!1;throw t},t.prototype.setOnError=function(t){return this.onError=t,this},t}()},dd89:function(t,e,i){"use strict";function n(t){if("function"!==typeof t.getRootNode){while(t.parentNode)t=t.parentNode;return t!==document?null:document}const e=t.getRootNode();return e!==document&&e.getRootNode({composed:!0})!==document?null:e}i.d(e,"a",(function(){return n}))},de2e:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("370b"),r=6378137;function o(t){return Object(n["b"])(t,(function(t,e){return t+s(e)}),0)}function s(t){var e,i=0;switch(t.type){case"Polygon":return a(t.coordinates);case"MultiPolygon":for(e=0;e<t.coordinates.length;e++)i+=a(t.coordinates[e]);return i;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}function a(t){var e=0;if(t&&t.length>0){e+=Math.abs(l(t[0]));for(var i=1;i<t.length;i++)e-=Math.abs(l(t[i]))}return e}function l(t){var e,i,n,o,s,a,l,u=0,h=t.length;if(h>2){for(l=0;l<h;
38l++)l===h-2?(o=h-2,s=h-1,a=0):l===h-1?(o=h-1,s=0,a=1):(o=l,s=l+1,a=l+2),e=t[o],i=t[s],n=t[a],u+=(c(n[0])-c(e[0]))*Math.sin(c(i[1]));u=u*r*r/2}return u}function c(t){return t*Math.PI/180}},df75:function(t,e,i){"use strict";var n=i("ca84"),r=i("7839");t.exports=Object.keys||function(t){return n(t,r)}},df7c:function(t,e,i){(function(t){function i(t,e){for(var i=0,n=t.length-1;n>=0;n--){var r=t[n];"."===r?t.splice(n,1):".."===r?(t.splice(n,1),i++):i&&(t.splice(n,1),i--)}if(e)for(;i--;i)t.unshift("..");return t}function n(t){"string"!==typeof t&&(t+="");var e,i=0,n=-1,r=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!r){i=e+1;break}}else-1===n&&(r=!1,n=e+1);return-1===n?"":t.slice(i,n)}function r(t,e){if(t.filter)return t.filter(e);for(var i=[],n=0;n<t.length;n++)e(t[n],n,t)&&i.push(t[n]);return i}e.resolve=function(){for(var e="",n=!1,o=arguments.length-1;o>=-1&&!n;o--){var s=o>=0?arguments[o]:t.cwd();if("string"!==typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(e=s+"/"+e,n="/"===s.charAt(0))}return e=i(r(e.split("/"),(function(t){return!!t})),!n).join("/"),(n?"/":"")+e||"."},e.normalize=function(t){var n=e.isAbsolute(t),s="/"===o(t,-1);return t=i(r(t.split("/"),(function(t){return!!t})),!n).join("/"),t||n||(t="."),t&&s&&(t+="/"),(n?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,i){function n(t){for(var e=0;e<t.length;e++)if(""!==t[e])break;for(var i=t.length-1;i>=0;i--)if(""!==t[i])break;return e>i?[]:t.slice(e,i-e+1)}t=e.resolve(t).substr(1),i=e.resolve(i).substr(1);for(var r=n(t.split("/")),o=n(i.split("/")),s=Math.min(r.length,o.length),a=s,l=0;l<s;l++)if(r[l]!==o[l]){a=l;break}var c=[];for(l=a;l<r.length;l++)c.push("..");return c=c.concat(o.slice(a)),c.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!==typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),i=47===e,n=-1,r=!0,o=t.length-1;o>=1;--o)if(e=t.charCodeAt(o),47===e){if(!r){n=o;break}}else r=!1;return-1===n?i?"/":".":i&&1===n?"/":t.slice(0,n)},e.basename=function(t,e){var i=n(t);return e&&i.substr(-1*e.length)===e&&(i=i.substr(0,i.length-e.length)),i},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,i=0,n=-1,r=!0,o=0,s=t.length-1;s>=0;--s){var a=t.charCodeAt(s);if(47!==a)-1===n&&(r=!1,n=s+1),46===a?-1===e?e=s:1!==o&&(o=1):-1!==e&&(o=-1);else if(!r){i=s+1;break}}return-1===e||-1===n||0===o||1===o&&e===n-1&&e===i+1?"":t.slice(e,n)};var o="b"==="ab".substr(-1)?function(t,e,i){return t.substr(e,i)}:function(t,e,i){return e<0&&(e=t.length+e),t.substr(e,i)}}).call(this,i("4362"))},df86:function(t,e,i){},e0c7:function(t,e,i){"use strict";i("0bc6");var n=i("7560"),r=i("58df"),o=i("80d2");e["a"]=Object(r["a"])(n["a"]).extend({name:"v-subheader",props:{inset:Boolean},render(t){return t("div",{staticClass:"v-subheader",class:{"v-subheader--inset":this.inset,...this.themeClasses},attrs:this.$attrs,on:this.$listeners},Object(o["m"])(this))}})},e163:function(t,e,i){"use strict";var n=i("1a2d"),r=i("1626"),o=i("7b0b"),s=i("f772"),a=i("e177"),l=s("IE_PROTO"),c=Object,u=c.prototype;t.exports=a?c.getPrototypeOf:function(t){var e=o(t);if(n(e,l))return e[l];var i=e.constructor;return r(i)&&e instanceof i?i.prototype:e instanceof c?u:null}},e177:function(t,e,i){"use strict";var n=i("d039");t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e192:function(t,e,i){(function(e,i){t.exports=i()})(0,(function(){"use strict";var t,e,i;function n(n,r){if(t)if(e){var o="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; ("+t+")(sharedChunk); ("+e+")(sharedChunk); self.onerror = null;",s={};t(s),i=r(s),"undefined"!==typeof window&&window&&window.URL&&window.URL.createObjectURL&&(i.workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"})))}else e=r;else t=r}n(["exports"],(function(t){var e="undefined"!=typeof self?self:{},i="2.15.0";let n;const r={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){if(null==n){const t=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;try{n=null!=Object({NODE_ENV:"production",BASE_URL:""}).API_URL_REGEX?new RegExp(Object({NODE_ENV:"production",BASE_URL:""}).API_URL_REGEX):t}catch(e){n=t}}return n},get API_TILEJSON_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/v[0-9]*\/.*\.json.*$)/i},get API_SPRITE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*\/sprite.*\..*$)/i},get API_FONTS_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/fonts\/v[0-9]*\/)(.*\.pbf.*$)/i},get API_STYLE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*$)/i},get API_CDN_URL_REGEX(){return/^((https?:)?\/\/)?api\.mapbox\.c(n|om)(\/mapbox-gl-js\/)(.*$)/i},get EVENTS_URL(){if(!r.API_URL)return null;try{const t=new URL(r.API_URL);return"api.mapbox.cn"===t.hostname?"https://events.mapbox.cn/events/v2":"api.mapbox.com"===t.hostname?"https://events.mapbox.com/events/v2":null}catch(t){return null}},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},o={supported:!1,testSupport:function(t){!l&&a&&(c?u(t):s=t)}};let s,a,l=!1,c=!1;function u(t){const e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e);try{if(t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,a),t.isContextLost())return;o.supported=!0}
vendor: 10,534 bytes, line 38
38catch(t){}t.deleteTexture(e),l=!0}e.document&&(a=e.document.createElement("img"),a.onload=function(){s&&u(s),s=null,c=!0},a.onerror=function(){l=!0,s=null},a.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const h="01";function d(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var f=p;function p(t,e,i,n){this.cx=3*t,this.bx=3*(i-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=e,this.p2x=i,this.p2y=n}p.prototype={sampleCurveX:function(t){return((this.ax*t+this.bx)*t+this.cx)*t},sampleCurveY:function(t){return((this.ay*t+this.by)*t+this.cy)*t},sampleCurveDerivativeX:function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},solveCurveX:function(t,e){if(void 0===e&&(e=1e-6),t<0)return 0;if(t>1)return 1;for(var i=t,n=0;n<8;n++){var r=this.sampleCurveX(i)-t;if(Math.abs(r)<e)return i;var o=this.sampleCurveDerivativeX(i);if(Math.abs(o)<1e-6)break;i-=r/o}var s=0,a=1;for(i=t,n=0;n<20&&(r=this.sampleCurveX(i),!(Math.abs(r-t)<e));n++)t>r?s=i:a=i,i=.5*(a-s)+s;return i},solve:function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))}};var m=d(f),g=y;function y(t,e){this.x=t,this.y=e}y.prototype={clone:function(){return new y(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,i=t.y-this.y;return e*e+i*i},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[2]*this.x+t[3]*this.y;return this.x=t[0]*this.x+t[1]*this.y,this.y=e,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),i=Math.sin(t),n=i*this.x+e*this.y;return this.x=e*this.x-i*this.y,this.y=n,this},_rotateAround:function(t,e){var i=Math.cos(t),n=Math.sin(t),r=e.y+n*(this.x-e.x)+i*(this.y-e.y);return this.x=e.x+i*(this.x-e.x)-n*(this.y-e.y),this.y=r,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},y.convert=function(t){return t instanceof y?t:Array.isArray(t)?new y(t[0],t[1]):t};var _=d(g);const v=Math.PI/180,b=180/Math.PI;function x(t){return t*v}function w(t){return t*b}const E=[[0,0],[1,0],[1,1],[0,1]];function T(t){if(t<=0)return 0;if(t>=1)return 1;const e=t*t,i=e*t;return 4*(t<.5?i:3*(t-e)+i-.75)}function S(t,e,i,n){const r=new m(t,e,i,n);return function(t){return r.solve(t)}}const k=S(.25,.1,.25,1);function O(t,e,i){return Math.min(i,Math.max(e,t))}function A(t,e,i){return(i=O((i-t)/(e-t),0,1))*i*(3-2*i)}function C(t,e,i){const n=i-e,r=((t-e)%n+n)%n+e;return r===e?i:r}function I(t,e,i){if(!t.length)return i(null,[]);let n=t.length;const r=new Array(t.length);let o=null;t.forEach((t,s)=>{e(t,(t,e)=>{t&&(o=t),r[s]=e,0==--n&&i(o,r)})})}function M(t){const e=[];for(const i in t)e.push(t[i]);return e}function P(t,...e){for(const i of e)for(const e in i)t[e]=i[e];return t}let D=1;function L(){return D++}function R(){return function t(e){return e?(e^Math.random()*(16>>e/4)).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function z(t){return t<=1?1:Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))}function j(t){return!!t&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)}function B(t,e){t.forEach(t=>{e[t]&&(e[t]=e[t].bind(e))})}function F(t,e){return-1!==t.indexOf(e,t.length-e.length)}function N(t,e,i){const n={};for(const r in t)n[r]=e.call(i||this,t[r],r,t);return n}function V(t,e,i){const n={};for(const r in t)e.call(i||this,t[r],r,t)&&(n[r]=t[r]);return n}function $(t){return Array.isArray(t)?t.map($):"object"==typeof t&&t?N(t,$):t}const U={};function q(t){U[t]||("undefined"!=typeof console&&console.warn(t),U[t]=!0)}function G(t,e,i){return(i.y-t.y)*(e.x-t.x)>(e.y-t.y)*(i.x-t.x)}function W(t){let e=0;for(let i,n,r=0,o=t.length,s=o-1;r<o;s=r++)i=t[r],n=t[s],e+=(n.x-i.x)*(i.y+n.y);return e}function Z(){return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope}function H(t){const e={};if(t.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(t,i,n,r)=>{const o=n||r;return e[i]=!o||o.toLowerCase(),""}),e["max-age"]){const t=parseInt(e["max-age"],10);isNaN(t)?delete e["max-age"]:e["max-age"]=t}return e}let X=null;function Q(t){if(null==X){const e=t.navigator?t.navigator.userAgent:null;X=!!t.safari||!(!e||!(/\b(iPad|iPhone|iPod)\b/.test(e)||e.match("Safari")&&!e.match("Chrome")))}return X}function Y(t){try{const i=e[t];return i.setItem("_mapbox_test_",1),i.removeItem("_mapbox_test_"),!0}catch(t){return!1}}function K(t,e){return[t[4*e],t[4*e+1],t[4*e+2],t[4*e+3]]}const J="mapbox-tiles";let tt,et,it=500,nt=50;function rt(){try{return e.caches}catch(t){}}function ot(){rt()&&!tt&&(tt=e.caches.open(J))}function st(t){const e=t.indexOf("?");if(e<0)return t;const i=function(t){const e=t.indexOf("?");return e>0?t.slice(e+1).split("&"):[]}(t),n=i.filter(t=>{const e=t.split("=");return"language"===e[0]||"worldview"===e[0]});return n.length?`${t.slice(0,e)}?${n.join("&")}`:t.slice(0,e)}let at=1/0;const lt={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(lt);class ct extends Error{constructor(t,e,i){401===e&&bt(i)&&(t+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(t),this.status=e,this.url=i}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const ut=Z()?()=>self.worker&&self.worker.referrer:()=>("blob:"===e.location.protocol?e.parent:e).location.href,ht=function(t,i){if(!(/^file:/.test(n=t.url)||/^file:/.test(ut())&&!/^\w+:/.test(n))){if(e.fetch&&e.Request&&e.AbortController&&e.Request.prototype.hasOwnProperty("signal"))return function(t,i){const n=new e.AbortController,r=new e.Request(t.url,{method:t.method||"GET",body:t.body,credentials:t.credentials,headers:t.headers,referrer:ut(),referrerPolicy:t.referrerPolicy,signal:n.signal});let o=!1,s=!1;const a=(l=r.url).indexOf("sku=")>0&&bt(l);var l;"json"===t.type&&r.headers.set("Accept","application/json");const c=(n,o,l)=>{if(s)return;if(n&&"SecurityError"!==n.message&&q(n.toString()),o&&l)return u(o);const c=Date.now();e.fetch(r).then(e=>{if(e.ok){const t=a?e.clone():null;return u(e,t,c)}return i(new ct(e.statusText,e.status,t.url))}).catch(e=>{"AbortError"!==e.name&&i(new Error(`${e.message} ${t.url}`))})},u=(n,a,l)=>{("arrayBuffer"===t.type?n.arrayBuffer():"json"===t.type?n.json():n.text()).then(t=>{s||(a&&l&&function(t,i,n){if(ot(),!tt)return;const r={status:i.status,statusText:i.statusText,headers:new e.Headers};i.headers.forEach((t,e)=>r.headers.set(e,t));const o=H(i.headers.get("Cache-Control")||"");if(o["no-store"])return;o["max-age"]&&r.headers.set("Expires",new Date(n+1e3*o["max-age"]).toUTCString());const s=r.headers.get("Expires");s&&(new Date(s).getTime()-n<42e4||function(t,e){if(void 0===et)try{new Response(new ReadableStream),et=!0}catch(t){et=!1}et?e(t.body):t.blob().then(e)}(i,i=>{const n=new e.Response(i,r);ot(),tt&&tt.then(e=>e.put(st(t.url),n)).catch(t=>q(t.message))}))}(r,a,l),o=!0,i(null,t,n.headers.get("Cache-Control"),n.headers.get("Expires")))}).catch(t=>{s||i(new Error(t.message))})};return a?function(t,e){if(ot(),!tt)return e(null);const i=st(t.url);tt.then(t=>{t.match(i).then(n=>{const r=function(t){if(!t)return!1;const e=new Date(t.headers.get("Expires")||0),i=H(t.headers.get("Cache-Control")||"");return e>Date.now()&&!i["no-cache"]}(n);t.delete(i),r&&t.put(i,n.clone()),e(null,n,r)}).catch(e)}).catch(e)}(r,c):c(null,null),{cancel:()=>{s=!0,o||n.abort()}}}(t,i);if(Z()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",t,i,void 0,!0)}var n;return function(t,i){const n=new e.XMLHttpRequest;n.open(t.method||"GET",t.url,!0),"arrayBuffer"===t.type&&(n.responseType="arraybuffer");for(const e in t.headers)n.setRequestHeader(e,t.headers[e]);return"json"===t.type&&(n.responseType="text",n.setRequestHeader("Accept","application/json")),n.withCredentials="include"===t.credentials,n.onerror=()=>{i(new Error(n.statusText))},n.onload=()=>{if((n.status>=200&&n.status<300||0===n.status)&&null!==n.response){let e=n.response;if("json"===t.type)try{e=JSON.parse(n.response)}catch(t){return i(t)}i(null,e,n.getResponseHeader("Cache-Control"),n.getResponseHeader("Expires"))}else i(new ct(n.statusText,n.status,t.url))},n.send(t.body),{cancel:()=>n.abort()}}(t,i)},dt=function(t,e){return ht(P(t,{type:"arrayBuffer"}),e)};function ft(t){const i=e.document.createElement("a");return i.href=t,i.protocol===e.document.location.protocol&&i.host===e.document.location.host}const pt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let mt,gt;mt=[],gt=0;const yt=function(t,i){if(o.supported&&(t.headers||(t.headers={}),t.headers.accept="image/webp,*/*"),gt>=r.MAX_PARALLEL_IMAGE_REQUESTS){const e={requestParameters:t,callback:i,cancelled:!1,cancel(){this.cancelled=!0}};return mt.push(e),e}gt++;let n=!1;const s=()=>
38{if(!n)for(n=!0,gt--;mt.length&><r.MAX_PARALLEL_IMAGE_REQUESTS;){const t=mt.shift(),{requestParameters:e,callback:i,cancelled:n}=t;n||(t.cancel=yt(e,i).cancel)}},a=dt(t,(t,n,r,o)=>{s(),t?i(t):n&&(e.createImageBitmap?function(t,i){const n=new e.Blob([new Uint8Array(t)],{type:"image/png"});e.createImageBitmap(n).then(t=>{i(null,t)}).catch(t=>{i(new Error(`Could not load image because of ${t.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(n,(t,e)=>i(t,e,r,o)):function(t,i){const n=new e.Image,r=e.URL;n.onload=()=>{i(null,n),r.revokeObjectURL(n.src),n.onload=null,e.requestAnimationFrame(()=>{n.src=pt})},n.onerror=()=>i(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const o=new e.Blob([new Uint8Array(t)],{type:"image/png"});n.src=t.byteLength?r.createObjectURL(o):pt}(n,(t,e)=>i(t,e,r,o)))});return{cancel:()=>{a.cancel(),s()}}},_t="NO_ACCESS_TOKEN";function vt(t){return 0===t.indexOf("mapbox:")}function bt(t){return r.API_URL_REGEX.test(t)}function xt(t){return r.API_CDN_URL_REGEX.test(t)}function wt(t){return r.API_STYLE_REGEX.test(t)&&!Et(t)}function Et(t){return r.API_SPRITE_REGEX.test(t)}const Tt=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function St(t){const e=t.match(Tt);if(!e)throw new Error("Unable to parse URL object");return{protocol:e[1],authority:e[2],path:e[3]||"/",params:e[4]?e[4].split("&"):[]}}function kt(t){const e=t.params.length?"?"+t.params.join("&"):"";return`${t.protocol}://${t.authority}${t.path}${e}`}const Ot="mapbox.eventData";function At(t){if(!t)return null;const i=t.split(".");if(!i||3!==i.length)return null;try{return JSON.parse(decodeURIComponent(e.atob(i[1]).split("").map(t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join("")))}catch(t){return null}}class Ct{constructor(t){this.type=t,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null}getStorageKey(t){const i=At(r.ACCESS_TOKEN);let n="";return n=i&&i.u?e.btoa(encodeURIComponent(i.u).replace(/%([0-9A-F]{2})/g,(t,e)=>String.fromCharCode(Number("0x"+e)))):r.ACCESS_TOKEN||"",t?`${Ot}.${t}:${n}`:`${Ot}:${n}`}fetchEventData(){const t=Y("localStorage"),i=this.getStorageKey(),n=this.getStorageKey("uuid");if(t)try{const t=e.localStorage.getItem(i);t&&(this.eventData=JSON.parse(t));const r=e.localStorage.getItem(n);r&&(this.anonId=r)}catch(t){q("Unable to read from LocalStorage")}}saveEventData(){const t=Y("localStorage"),i=this.getStorageKey(),n=this.getStorageKey("uuid");if(t)try{e.localStorage.setItem(n,this.anonId),Object.keys(this.eventData).length>=1&&e.localStorage.setItem(i,JSON.stringify(this.eventData))}catch(t){q("Unable to write to LocalStorage")}}processRequests(t){}postEvent(t,e,i,n){if(!r.EVENTS_URL)return;const o=St(r.EVENTS_URL);o.params.push("access_token="+(n||r.ACCESS_TOKEN||""));const s={event:this.type,created:new Date(t).toISOString()},a=e?P(s,e):s,l={url:kt(o),headers:{"Content-Type":"text/plain"},body:JSON.stringify([a])};this.pendingRequest=function(t,e){return ht(P(t,{method:"POST"}),e)}(l,t=>{this.pendingRequest=null,i(t),this.saveEventData(),this.processRequests(n)})}queueRequest(t,e){this.queue.push(t),this.processRequests(e)}}const It=new class extends Ct{constructor(t){super("appUserTurnstile"),this._customAccessToken=t}postTurnstileEvent(t,e){r.EVENTS_URL&&r.ACCESS_TOKEN&&Array.isArray(t)&&t.some(t=>vt(t)||bt(t))&&this.queueRequest(Date.now(),e)}processRequests(t){if(this.pendingRequest||0===this.queue.length)return;this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();const e=At(r.ACCESS_TOKEN),n=e?e.u:r.ACCESS_TOKEN;let o=n!==this.eventData.tokenU;j(this.anonId)||(this.anonId=R(),o=!0);const s=this.queue.shift();if(this.eventData.lastSuccess){const t=new Date(this.eventData.lastSuccess),e=new Date(s),i=(s-this.eventData.lastSuccess)/864e5;o=o||i>=1||i<-1||t.getDate()!==e.getDate()}else o=!0;o?this.postEvent(s,{sdkIdentifier:"mapbox-gl-js",sdkVersion:i,skuId:h,"enabled.telemetry":!1,userId:this.anonId},t=>{t||(this.eventData.lastSuccess=s,this.eventData.tokenU=n)},t):this.processRequests()}},Mt=It.postTurnstileEvent.bind(It),Pt=new class extends Ct{constructor(){super("map.load"),this.success={},this.skuToken=""}postMapLoadEvent(t,e,i,n){this.skuToken=e,this.errorCb=n,r.EVENTS_URL&&(i||r.ACCESS_TOKEN?this.queueRequest({id:t,timestamp:Date.now()},i):this.errorCb(new Error(_t)))}processRequests(t){if(this.pendingRequest||0===this.queue.length)return;const{id:e,timestamp:n}=this.queue.shift();e&&this.success[e]||(this.anonId||this.fetchEventData(),j(this.anonId)||(this.anonId=R()),this.postEvent(n,{sdkIdentifier:"mapbox-gl-js",sdkVersion:i,skuId:h,skuToken:this.skuToken,userId:this.anonId},t=>{t?this.errorCb(t):e&&(this.success[e]=!0)},t))}},Dt=Pt.postMapLoadEvent.bind(Pt),Lt=new class extends Ct{constructor(){super("gljs.performance")}postPerformanceEvent(t,e){r.EVENTS_URL&&(t||r.ACCESS_TOKEN)&&this.queueRequest({timestamp:Date.now(),performanceData:e},t)}processRequests(t){if(this.pendingRequest||0===this.queue.length)return;const{timestamp:n,performanceData:r}=this.queue.shift(),o=function(t){const n=e.performance.getEntriesByType("resource"),r=e.performance.getEntriesByType("mark"),o=function(t){const e={};if(t)for(const i in t)if("other"!==i)for(const n of t[i]){const t=i+"ResolveRangeMin",r=i+"ResolveRangeMax",o=i+"RequestCount",s=i+"RequestCachedCount";
vendor: 4,386 bytes, line 38
38e[t]=Math.min(e[t]||1/0,n.startTime),e[r]=Math.max(e[r]||-1/0,n.responseEnd);const a=t=>{void 0===e[t]&&(e[t]=0),++e[t]};void 0!==n.transferSize&&0===n.transferSize&&a(s),a(o)}return e}(function(t,e){const i={};if(t)for(const n of t){const t=e(n);void 0===i[t]&&(i[t]=[]),i[t].push(n)}return i}(n,Vt)),s=e.devicePixelRatio,a=e.navigator.connection||e.navigator.mozConnection||e.navigator.webkitConnection,l={counters:[],metadata:[],attributes:[]},c=(t,e,i)=>{null!=i&&t.push({name:e,value:i.toString()})};for(const e in o)c(l.counters,e,o[e]);if(t.interactionRange[0]!==1/0&&t.interactionRange[1]!==-1/0&&(c(l.counters,"interactionRangeMin",t.interactionRange[0]),c(l.counters,"interactionRangeMax",t.interactionRange[1])),r)for(const e of Object.keys(Ft)){const t=Ft[e],i=r.find(e=>e.name===t);i&&c(l.counters,t,i.startTime)}return c(l.counters,"visibilityHidden",t.visibilityHidden),c(l.attributes,"style",function(t){if(t)for(const e of t){const t=e.name.split("?")[0];if(wt(t)){const e=t.split("/").slice(-2);if(2===e.length)return`mapbox://styles/${e[0]}/${e[1]}`}}}(n)),c(l.attributes,"terrainEnabled",t.terrainEnabled?"true":"false"),c(l.attributes,"fogEnabled",t.fogEnabled?"true":"false"),c(l.attributes,"projection",t.projection),c(l.attributes,"zoom",t.zoom),c(l.metadata,"devicePixelRatio",s),c(l.metadata,"connectionEffectiveType",a?a.effectiveType:void 0),c(l.metadata,"navigatorUserAgent",e.navigator.userAgent),c(l.metadata,"screenWidth",e.screen.width),c(l.metadata,"screenHeight",e.screen.height),c(l.metadata,"windowWidth",e.innerWidth),c(l.metadata,"windowHeight",e.innerHeight),c(l.metadata,"mapWidth",t.width/s),c(l.metadata,"mapHeight",t.height/s),c(l.metadata,"webglRenderer",t.renderer),c(l.metadata,"webglVendor",t.vendor),c(l.metadata,"sdkVersion",i),c(l.metadata,"sdkIdentifier","mapbox-gl-js"),l}(r);for(const e of o.metadata);for(const e of o.counters);for(const e of o.attributes);this.postEvent(n,o,()=>{},t)}},Rt=Lt.postPerformanceEvent.bind(Lt),zt=new class extends Ct{constructor(){super("map.auth"),this.success={},this.skuToken=""}getSession(t,e,i,n){if(!r.API_URL||!r.SESSION_PATH)return;const o=St(r.API_URL+r.SESSION_PATH);o.params.push("sku="+(e||"")),o.params.push("access_token="+(n||r.ACCESS_TOKEN||""));const s={url:kt(o),headers:{"Content-Type":"text/plain"}};this.pendingRequest=function(t,e){return ht(P(t,{method:"GET"}),e)}(s,t=>{this.pendingRequest=null,i(t),this.saveEventData(),this.processRequests(n)})}getSessionAPI(t,e,i,n){this.skuToken=e,this.errorCb=n,r.SESSION_PATH&&r.API_URL&&(i||r.ACCESS_TOKEN?this.queueRequest({id:t,timestamp:Date.now()},i):this.errorCb(new Error(_t)))}processRequests(t){if(this.pendingRequest||0===this.queue.length)return;const{id:e,timestamp:i}=this.queue.shift();e&&this.success[e]||this.getSession(i,this.skuToken,t=>{t?this.errorCb(t):e&&(this.success[e]=!0)},t)}},jt=zt.getSessionAPI.bind(zt),Bt=new Set,Ft={create:"create",load:"load",fullLoad:"fullLoad"},Nt={mark(t){e.performance.mark(t)},measure(t,i,n){e.performance.measure(t,i,n)}};function Vt(t){const e=t.name.split("?")[0];return xt(e)&&e.includes("mapbox-gl.js")?"javascript":xt(e)&&e.includes("mapbox-gl.css")?"css":function(t){return r.API_FONTS_REGEX.test(t)}(e)?"fontRange":Et(e)?"sprite":wt(e)?"style":function(t){return r.API_TILEJSON_REGEX.test(t)}(e)?"tilejson":"other"}const $t=e.performance;function Ut(t){const e=t?t.url.toString():void 0;return $t.getEntriesByName(e)}let qt,Gt,Wt,Zt;const Ht={now:()=>void 0!==Wt?Wt:e.performance.now(),setNow(t){Wt=t},restoreNow(){Wt=void 0},frame(t){const i=e.requestAnimationFrame(t);return{cancel:()=>e.cancelAnimationFrame(i)}},getImageData(t,i=0){const{width:n,height:r}=t;Zt||(Zt=e.document.createElement("canvas"));const o=Zt.getContext("2d",{willReadFrequently:!0});if(!o)throw new Error("failed to create canvas 2d context");return(n>Zt.width||r>Zt.height)&&(Zt.width=n,Zt.height=r),o.clearRect(-i,-i,n+2*i,r+2*i),o.drawImage(t,0,0,n,r),o.getImageData(-i,-i,n+2*i,r+2*i)},resolveURL:t=>(qt||(qt=e.document.createElement("a")),qt.href=t,qt.href),get devicePixelRatio(){return e.devicePixelRatio},get prefersReducedMotion(){return!!e.matchMedia&&(null==Gt&&(Gt=e.matchMedia("(prefers-reduced-motion: reduce)")),Gt.matches)}};function Xt(t,e,i){i[t]&&-1!==i[t].indexOf(e)||(i[t]=i[t]||[],i[t].push(e))}function Qt(t,e,i){if(i&&i[t]){const n=i[t].indexOf(e);-1!==n&&i[t].splice(n,1)}}
vendor: 4,135 bytes, line 38
38class Yt{constructor(t,e={}){P(this,e),this.type=t}}class Kt extends Yt{constructor(t,e={}){super("error",P({error:t},e))}}class Jt{on(t,e){return this._listeners=this._listeners||{},Xt(t,e,this._listeners),this}off(t,e){return Qt(t,e,this._listeners),Qt(t,e,this._oneTimeListeners),this}once(t,e){return e?(this._oneTimeListeners=this._oneTimeListeners||{},Xt(t,e,this._oneTimeListeners),this):new Promise(e=>this.once(t,e))}fire(t,e){"string"==typeof t&&(t=new Yt(t,e||{}));const i=t.type;if(this.listens(i)){t.target=this;const e=this._listeners&&this._listeners[i]?this._listeners[i].slice():[];for(const i of e)i.call(this,t);const n=this._oneTimeListeners&&this._oneTimeListeners[i]?this._oneTimeListeners[i].slice():[];for(const o of n)Qt(i,o,this._oneTimeListeners),o.call(this,t);const r=this._eventedParent;r&&(P(t,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),r.fire(t))}else t instanceof Kt&&console.error(t.error);return this}listens(t){return!!(this._listeners&&this._listeners[t]&&this._listeners[t].length>0||this._oneTimeListeners&&this._oneTimeListeners[t]&&this._oneTimeListeners[t].length>0||this._eventedParent&&this._eventedParent.listens(t))}setEventedParent(t,e){return this._eventedParent=t,this._eventedParentData=e,this}}var te=JSON.parse('{"$version":8,"$root":{"version":{"required":true,"type":"enum","values":[8]},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360,"units":"degrees"},"pitch":{"type":"number","default":0,"units":"degrees"},"light":{"type":"light"},"terrain":{"type":"terrain"},"fog":{"type":"fog"},"sources":{"required":true,"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"required":true,"type":"array","value":"layer"}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],"source_vector":{"type":{"required":true,"type":"enum","values":{"vector":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"scheme":{"type":"enum","values":{"xyz":{},"tms":{}},"default":"xyz"},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"attribution":{"type":"string"},"promoteId":{"type":"promoteId"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster":{"type":{"required":true,"type":"enum","values":{"raster":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512,"units":"pixels"},"scheme":{"type":"enum","values":{"xyz":{},"tms":{}},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"required":true,"type":"enum","values":{"raster-dem":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512,"units":"pixels"},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":{},"mapbox":{}},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"required":true,"type":"enum","values":{"geojson":{}}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"attribution":{"type":"string"},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0},"filter":{"type":"*"},"tolerance":{"type":"number","default":0.375},"cluster":{"type":"boolean","default":false},"clusterRadius":{"type":"number","default":50,"minimum":0}
38,"clusterMaxZoom":{"type":"number"},"clusterMinPoints":{"type":"number"},"clusterProperties":{"type":"*"},"lineMetrics":{"type":"boolean","default":false},"generateId":{"type":"boolean","default":false},"promoteId":{"type":"promoteId"}},"source_video":{"type":{"required":true,"type":"enum","values":{"video":{}}},"urls":{"required":true,"type":"array","value":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"required":true,"type":"enum","values":{"image":{}}},"url":{"required":true,"type":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"layer":{"id":{"type":"string","required":true},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"raster":{},"hillshade":{},"background":{},"sky":{}},"required":true},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"type":"string"},"minzoom":{"type":"number","minimum":0,"maximum":24},"maxzoom":{"type":"number","minimum":0,"maximum":24},"filter":{"type":"filter"},"layout":{"type":"layout"},"paint":{"type":"paint"}},"layout":["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],"layout_background":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"},"fill-extrusion-edge-radius":{"type":"number","private":true,"default":0,"minimum":0,"maximum":1
vendor: 16,128 bytes, line 38
38,"property-type":"constant"}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":{},"round":{},"square":{}},"default":"butt","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":{},"round":{},"miter":{}},"default":"miter","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"requires":[{"line-join":"miter"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-round-limit":{"type":"number","default":1.05,"requires":[{"line-join":"round"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":{},"line":{},"line-center":{}},"default":"point","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-spacing":{"type":"number","default":250,"minimum":1,"units":"pixels","requires":[{"symbol-placement":"line"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":{},"viewport-y":{},"source":{}},"default":"auto","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{"type":"boolean","default":false,"requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{"type":"boolean","default":false,"requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-optional":{"type":"boolean","default":false,"requires":["icon-image","text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-size":{"type":"number","default":1,"minimum":0,"units":"factor of the original icon size","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{"type":"enum","values":{"none":{},"width":{},"height":{},"both":{}},"default":"none","requires":["icon-image","text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"units":"pixels","requires":["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-image":{"type":"resolvedImage","tokens":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"units":"degrees","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{"type":"boolean","default":false,"requires":["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{"type":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"default":"center","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{"type":"number","default":10,"minimum":0,"units":"ems","requires":["text-field",{"symbol-placement":["point"]}],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"units":"ems","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"units":"ems","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":{},"left":{},"center":{},"right":{}},"default":"center","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","units":"ems","default":0,"requires":["text-field"],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"requires":["text-field",{"symbol-placement":["point"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-anchor":{"type":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"default":"center","requires":["text-field",{"!":"text-variable-anchor"}],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"units":"degrees","requires":["text-field",{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":{},"vertical":{}},"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-rotate":{"type":"number","default":0,"period":360,"units":"degrees","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-keep-upright":{"type":"boolean","default":true,"requires":["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-transform":{"type":"enum","values":{"none":{},"uppercase":{},"lowercase":{}},"default":"none","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","units":"ems","length":2,"default":[0,0],"requires":["text-field",{"!":"text-radial-offset"}],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{"type":"boolean","default":false,"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-optional":{"type":"boolean","default":false,"requires":["text-field","icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},"in":{},"!in":{},"all":{},"any":{},"none":{},"has":{},"!has":{},"within":{}}},"geometry_type":{"type":"enum","values":{"Point":{},"LineString":{},"Polygon":{}}},"function":{"expression":{"type":"expression"},"stops":{"type":"array","value":"function_stop"},"base":{"type":"number","default":1,"minimum":0},"property":{"type":"string","default":"$zoom"},"type":{"type":"enum","values":{"identity":{},"exponential":{},"interval":{},"categorical":{}},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":{},"lab":{},"hcl":{}},"default":"rgb"},"default":{"type":"*","required":false}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"high-color":{"type":"color","property-type":"data-constant","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"space-color":{"type":"color","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"horizon-blend":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"star-intensity":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":{},"viewport":{}},"property-type":"data-constant","transition":false,"expression":{"interpolated":false,"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":{},"equalEarth":{},"equirectangular":{},"lambertConformalConic":{},"mercator":{},"naturalEarth":{},"winkelTripel":{},"globe":{}},"default":"mercator","required":true},"center":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-180,-90],"maximum":[180,90],"transition":false,"requires":[{"name":["albers","lambertConformalConic"]}]},"parallels":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-90,-90],"maximum":[90,90],"transition":false,"requires":[{"name":["albers","lambertConformalConic"]}]}},"terrain":{"source":{"type":"string","required":true},"exaggeration":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true,"requires":["source"]}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"fill-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","transition":true,"requires":[{"!":"fill-pattern"},{"fill-antialias":true}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["fill-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-pattern":{"type":"resolvedImage","transition":
vendor: 17,203 bytes, line 38
38false,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"fill-extrusion-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["fill-extrusion-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"units":"meters","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"units":"meters","transition":true,"requires":["fill-extrusion-height"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant","type":"number","private":true,"default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant","type":"number","private":true,"default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true,"requires":["fill-extrusion-edge-radius"]},"fill-extrusion-rounded-roof":{"type":"boolean","default":true,"requires":["fill-extrusion-edge-radius"],"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"line-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["line-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"transition":false,"units":"line widths","requires":[{"!":"line-pattern"}],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{"type":"color","transition":false,"requires":[{"!":"line-pattern"},{"source":"geojson","has":{"lineMetrics":true}}],"expression":{"interpolated":true,"parameters":["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"transition":false,"requires":[{"source":"geojson","has":{"lineMetrics":true}}],"property-type":"constant"}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["circle-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{}},"default":"viewport","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"transition":false,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"transition":false,"expression":{"interpolated":true,"parameters":["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["icon-image","icon-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","transition":true,"overridable":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["text-field","text-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"units":"degrees","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-resampling":{"type":"enum","values":{"linear":{},"nearest":{}},"default":"linear","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"transition":false,"units":"milliseconds","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"transition":false,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"viewport","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_background":{"background-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"background-pattern"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":{},"atmosphere":{}},"default":"atmosphere","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"units":"degrees","minimum":[0,0],"maximum":[360,180],"transition":false,"requires":[{"sky-type":"atmosphere"}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{"type":"number","requires":[{"sky-type":"atmosphere"}],"default":10,"minimum":0,"maximum":100,"transition":false,"property-type":"data-constant"},"sky-gradient-center":{"type":"array","requires":[{"sky-type":"gradient"}],"value":"number","default":[0,0],"length":2,"units":"degrees","minimum":[0,0],"maximum":[360,180],"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{"type":"number","requires":[{"sky-type":"gradient"}],"default":90,"minimum":0,"maximum":180,"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"transition":false,"requires":[{"sky-type":"gradient"}],"expression":{"interpolated":true,"parameters":["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{"type":"color","default":"white","transition":false,"requires":[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{"type":"color","default":"white","transition":false,"requires":[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"transition":{"duration":{"type":"number","default":300,"minimum":0,"units":"milliseconds"},"delay":{"type":"number","default":0,"minimum":0,"units":"milliseconds"}},"property-type":{"data-driven":{"type":"property-type"},"color-ramp":{"type":"property-type"},"data-constant":{"type":"property-type"},"constant":{"type":"property-type"}},"promoteId":{"*":{"type":"string"}}}');function ee(t,...e){for(const i of e)for(const e in i)t[e]=i[e];return t}function ie(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function ne(t){if(Array.isArray(t))return t.map(ne);if(t instanceof Object&&!(t instanceof Number||t instanceof String||t instanceof Boolean)){const e={};for(const i in t)e[i]=ne(t[i]);return e}return ie(t)}
vendor: 27,995 bytes, line 38
38class re extends Error{constructor(t,e){super(e),this.message=e,this.key=t}}var oe=re;class se{constructor(t,e=[]){this.parent=t,this.bindings={};for(const[i,n]of e)this.bindings[i]=n}concat(t){return new se(this,t)}get(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(t+" not found in scope.")}has(t){return!!this.bindings[t]||!!this.parent&&this.parent.has(t)}}var ae=se;const le={kind:"null"},ce={kind:"number"},ue={kind:"string"},he={kind:"boolean"},de={kind:"color"},fe={kind:"object"},pe={kind:"value"},me={kind:"collator"},ge={kind:"formatted"},ye={kind:"resolvedImage"};function _e(t,e){return{kind:"array",itemType:t,N:e}}function ve(t){if("array"===t.kind){const e=ve(t.itemType);return"number"==typeof t.N?`array<${e}, ${t.N}>`:"value"===t.itemType.kind?"array":`array<${e}>`}return t.kind}const be=[le,ce,ue,he,de,ge,fe,_e(pe),ye];function xe(t,e){if("error"===e.kind)return null;if("array"===t.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!xe(t.itemType,e.itemType))&&("number"!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if("value"===t.kind)for(const t of be)if(!xe(t,e))return null}return`Expected ${ve(t)} but found ${ve(e)} instead.`}function we(t,e){return e.some(e=>e.kind===t.kind)}function Ee(t,e){return e.some(e=>"null"===e?null===t:"array"===e?Array.isArray(t):"object"===e?t&&!Array.isArray(t)&&"object"==typeof t:e===typeof t)}var Te,Se={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 ke(t){return(t=Math.round(t))<0?0:t>255?255:t}function Oe(t){return ke("%"===t[t.length-1]?parseFloat(t)/100*255:parseInt(t))}function Ae(t){return(e="%"===t[t.length-1]?parseFloat(t)/100:parseFloat(t))<0?0:e>1?1:e;var e}function Ce(t,e,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}try{Te={}.parseCSSColor=function(t){var e,i=t.replace(/ /g,"").toLowerCase();if(i in Se)return Se[i].slice();if("#"===i[0])return 4===i.length?(e=parseInt(i.substr(1),16))>=0&&e<=4095?[(3840&e)>>4|(3840&e)>>8,240&e|(240&e)>>4,15&e|(15&e)<<4,1]:null:7===i.length&&(e=parseInt(i.substr(1),16))>=0&&e<=16777215?[(16711680&e)>>16,(65280&e)>>8,255&e,1]:null;var n=i.indexOf("("),r=i.indexOf(")");if(-1!==n&&r+1===i.length){var o=i.substr(0,n),s=i.substr(n+1,r-(n+1)).split(","),a=1;switch(o){case"rgba":if(4!==s.length)return null;a=Ae(s.pop());case"rgb":return 3!==s.length?null:[Oe(s[0]),Oe(s[1]),Oe(s[2]),a];case"hsla":if(4!==s.length)return null;a=Ae(s.pop());case"hsl":if(3!==s.length)return null;var l=(parseFloat(s[0])%360+360)%360/360,c=Ae(s[1]),u=Ae(s[2]),h=u<=.5?u*(c+1):u+c-u*c,d=2*u-h;return[ke(255*Ce(d,h,l+1/3)),ke(255*Ce(d,h,l)),ke(255*Ce(d,h,l-1/3)),a];default:return null}}return null}}catch(t){}class Ie{constructor(t,e,i,n=1){this.r=t,this.g=e,this.b=i,this.a=n}static parse(t){if(!t)return;if(t instanceof Ie)return t;if("string"!=typeof t)return;const e=Te(t);return e?new Ie(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3]):void 0}toString(){const[t,e,i,n]=this.toArray();return`rgba(${Math.round(t)},${Math.round(e)},${Math.round(i)},${n})`}toArray(){const{r:t,g:e,b:i,a:n}=this;return 0===n?[0,0,0,0]:[255*t/n,255*e/n,255*i/n,n]}toArray01(){const{r:t,g:e,b:i,a:n}=this;return 0===n?[0,0,0,0]:[t/n,e/n,i/n,n]}toArray01PremultipliedAlpha(){const{r:t,g:e,b:i,a:n}=this;return[t,e,i,n]}}Ie.black=new Ie(0,0,0,1),Ie.white=new Ie(1,1,1,1),Ie.transparent=new Ie(0,0,0,0),Ie.red=new Ie(1,0,0,1),Ie.blue=new Ie(0,0,1,1);var Me=Ie;class Pe{constructor(t,e,i){this.sensitivity=t?e?"variant":"case":e?"accent":"base",this.locale=i,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(t,e){return this.collator.compare(t,e)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class De{constructor(t,e,i,n,r){this.text=t.normalize?t.normalize():t,this.image=e,this.scale=i,this.fontStack=n,this.textColor=r}}class Le{constructor(t){this.sections=t}static fromString(t){return new Le([new De(t,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some(t=>0!==t.text.length||t.image&&0!==t.image.name.length)}static factory(t){return t instanceof Le?t:Le.fromString(t)}toString(){return 0===this.sections.length?"":this.sections.map(t=>t.text).join("")}serialize(){const t=["format"];for(const e of this.sections){if(e.image){t.push(["image",e.image.name]);continue}t.push(e.text);const i={};e.fontStack&&(i["text-font"]=["literal",e.fontStack.split(",")]),e.scale&&(i["font-scale"]=e.scale),e.textColor&&(i["text-color"]=["rgba"].concat(e.textColor.toArray())),t.push(i)}return t}}class Re{constructor(t){this.name=t.name,this.available=t.available}toString(){return this.name}static fromString(t){return t?new Re({name:t,available:!1}):null}serialize(){return["image",this.name]}}function ze(t,e,i,n){return"number"==typeof t&&t>=0&&t<=255&&"number"==typeof e&&e>=0&&e<=255&&"number"==typeof i&&i>=0&&i<=255?void 0===n||"number"==typeof n&&n>=0&&n<=1?null:`Invalid rgba value [${[t,e,i,n].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${("number"==typeof n?[t,e,i,n]:[t,e,i]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function je(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 Me)return!0;if(t instanceof Pe)return!0;if(t instanceof Le)return!0;if(t instanceof Re)return!0;if(Array.isArray(t)){for(const e of t)if(!je(e))return!1;return!0}if("object"==typeof t){for(const e in t)if(!je(t[e]))return!1;return!0}return!1}function Be(t){if(null===t)return le;if("string"==typeof t)return ue;if("boolean"==typeof t)return he;if("number"==typeof t)return ce;if(t instanceof Me)return de;if(t instanceof Pe)return me;if(t instanceof Le)return ge;if(t instanceof Re)return ye;if(Array.isArray(t)){const e=t.length;let i;for(const n of t){const t=Be(n);if(i){if(i===t)continue;i=pe;break}i=t}return _e(i||pe,e)}return fe}function Fe(t){const e=typeof t;return null===t?"":"string"===e||"number"===e||"boolean"===e?String(t):t instanceof Me||t instanceof Le||t instanceof Re?t.toString():JSON.stringify(t)}class Ne{constructor(t,e){this.type=t,this.value=e}static parse(t,e){if(2!==t.length)return e.error(`'literal' expression requires exactly one argument, but found ${t.length-1} instead.`);if(!je(t[1]))return e.error("invalid value");const i=t[1];let n=Be(i);const r=e.expectedType;return"array"!==n.kind||0!==n.N||!r||"array"!==r.kind||"number"==typeof r.N&&0!==r.N||(n=r),new Ne(n,i)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof Me?["rgba"].concat(this.value.toArray()):this.value instanceof Le?this.value.serialize():this.value}}var Ve=Ne,$e=class{constructor(t){this.name="ExpressionEvaluationError",this.message=t}toJSON(){return this.message}};const Ue={string:ue,number:ce,boolean:he,object:fe};class qe{constructor(t,e){this.type=t,this.args=e}static parse(t,e){if(t.length<2)return e.error("Expected at least one argument.");let i,n=1;const r=t[0];if("array"===r){let r,o;if(t.length>2){const i=t[1];if("string"!=typeof i||!(i in Ue)||"object"===i)return e.error('The item type argument of "array" must be one of string, number, boolean',1);r=Ue[i],n++}else r=pe;if(t.length>3){if(null!==t[2]&&("number"!=typeof t[2]||t[2]<0||t[2]!==Math.floor(t[2])))return e.error('The length argument to "array" must be a positive integer literal',2);o=t[2],n++}i=_e(r,o)}else i=Ue[r];const o=[];for(;n<t.length;n++){const i=e.parse(t[n],n,pe);if(!i)return null;o.push(i)}return new qe(i,o)}evaluate(t){for(let e=0;e<this.args.length;e++){const i=this.args[e].evaluate(t);if(!xe(this.type,Be(i)))return i;if(e===this.args.length-1)throw new $e(`Expected value to be of type ${ve(this.type)}, but found ${ve(Be(i))} instead.`)}return null}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}serialize(){const t=this.type,e=[t.kind];if("array"===t.kind){const i=t.itemType;if("string"===i.kind||"number"===i.kind||"boolean"===i.kind){e.push(i.kind);const n=t.N;("number"==typeof n||this.args.length>1)&&e.push(n)}}return e.concat(this.args.map(t=>t.serialize()))}}var Ge=qe;class We{constructor(t){this.type=ge,this.sections=t}static parse(t,e){if(t.length<2)return e.error("Expected at least one argument.");const i=t[1];if(!Array.isArray(i)&&"object"==typeof i)return e.error("First argument must be an image or text section.");const n=[];let r=!1;for(let o=1;o<=t.length-1;++o){const i=t[o];if(r&&"object"==typeof i&&!Array.isArray(i)){r=!1;let t=null;if(i["font-scale"]&&(t=e.parse(i["font-scale"],1,ce),!t))return null;let o=null;if(i["text-font"]&&(o=e.parse(i["text-font"],1,_e(ue)),!o))return null;let s=null;if(i["text-color"]&&(s=e.parse(i["text-color"],1,de),!s))return null;const a=n[n.length-1];a.scale=t,a.font=o,a.textColor=s}else{const i=e.parse(t[o],1,pe);if(!i)return null;const s=i.type.kind;if("string"!==s&&"value"!==s&&"null"!==s&&"resolvedImage"!==s)return e.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");r=!0,n.push({content:i,scale:null,font:null,textColor:null})}}return new We(n)}evaluate(t){return new Le(this.sections.map(e=>{const i=e.content.evaluate(t);return Be(i)===ye?new De("",i,null,null,null):new De(Fe(i),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(","):null,e.textColor?e.textColor.evaluate(t):null)}))}eachChild(t){for(const e of this.sections)t(e.content),e.scale&&t(e.scale),e.font&&t(e.font),e.textColor&&t(e.textColor)}outputDefined(){return!1}serialize(){const t=["format"];for(const e of this.sections){t.push(e.content.serialize());const i={};e.scale&&(i["font-scale"]=e.scale.serialize()),e.font&&(i["text-font"]=e.font.serialize()),e.textColor&&(i["text-color"]=e.textColor.serialize()),t.push(i)}return t}}class Ze{constructor(t){this.type=ye,this.input=t}static parse(t,e){if(2!==t.length)return e.error("Expected two arguments.");const i=e.parse(t[1],1,ue);return i?new Ze(i):e.error("No image name provided.")}evaluate(t){const e=this.input.evaluate(t),i=Re.fromString(e);return i&&t.availableImages&&(i.available=t.availableImages.indexOf(e)>-1),i}eachChild(t){t(this.input)}outputDefined(){return!1}serialize(){return["image",this.input.serialize()]}}const He={"to-boolean":he,"to-color":de,"to-number":ce,"to-string":ue};class Xe{constructor(t,e){this.type=t,this.args=e}static parse(t,e){if(t.length<2)return e.error("Expected at least one argument.");const i=t[0];if(("to-boolean"===i||"to-string"===i)&&2!==t.length)return e.error("Expected one argument.");const n=He[i],r=[];for(let o=1;o<t.length;o++){const i=e.parse(t[o],o,pe);if(!i)return null;r.push(i)}return new Xe(n,r)}evaluate(t){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(t));if("color"===this.type.kind){let e,i;for(const n of this.args){if(e=n.evaluate(t),i=null,e instanceof Me)return e;if("string"==typeof e){const i=t.parseColor(e);if(i)return i}else if(Array.isArray(e)&&(i=e.length<3||e.length>4?`Invalid rbga value ${JSON.stringify(e)}: expected an array containing either three or four numeric values.`:ze(e[0],e[1],e[2],e[3]),!i))return new Me(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new $e(i||`Could not parse color from value '${"string"==typeof e?e:String(JSON.stringify(e))}'`)}if("number"===this.type.kind){let e=null;for(const i of this.args){if(e=i.evaluate(t),null===e)return 0;const n=Number(e);if(!isNaN(n))return n}throw new $e(`Could not convert ${JSON.stringify(e)} to number.`)}return"formatted"===this.type.kind?Le.fromString(Fe(this.args[0].evaluate(t))):"resolvedImage"===this.type.kind?Re.fromString(Fe(this.args[0].evaluate(t))):Fe(this.args[0].evaluate(t))}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}serialize(){if("formatted"===this.type.kind)return new We([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new Ze(this.args[0]).serialize();const t=["to-"+this.type.kind];return this.eachChild(e=>{t.push(e.serialize())}),t}}var Qe=Xe;const Ye=["Unknown","Point","LineString","Polygon"];var Ke=class{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null}id(){return this.feature&&void 0!==this.feature.id?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?Ye[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const t=this.featureDistanceData.center,e=this.featureDistanceData.scale,{x:i,y:n}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(i*e-t[0])+this.featureDistanceData.bearing[1]*(n*e-t[1])}return 0}parseColor(t){let e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=Me.parse(t)),e}};class Je{constructor(t,e,i,n){this.name=t,this.type=e,this._evaluate=i,this.args=n}evaluate(t){return this._evaluate(t,this.args)}eachChild(t){this.args.forEach(t)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(t=>t.serialize()))}static parse(t,e){const i=t[0],n=Je.definitions[i];if(!n)return e.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0);const r=Array.isArray(n)?n[0]:n.type,o=Array.isArray(n)?[[n[1],n[2]]]:n.overloads,s=o.filter(([e])=>!Array.isArray(e)||e.length===t.length-1);let a=null;for(const[l,c]of s){a=new ki(e.registry,e.path,null,e.scope);const n=[];let o=!1;for(let e=1;e<t.length;e++){const i=t[e],r=Array.isArray(l)?l[e-1]:l.type,s=a.parse(i,1+n.length,r);if(!s){o=!0;break}n.push(s)}if(!o)if(Array.isArray(l)&&l.length!==n.length)a.error(`Expected ${l.length} arguments, but found ${n.length} instead.`);else{for(let t=0;t<n.length;t++){const e=Array.isArray(l)?l[t]:l.type,i=n[t];a.concat(t+1).checkSubtype(e,i.type)}if(0===a.errors.length)return new Je(i,r,c,n)}}if(1===s.length)e.errors.push(...a.errors);else{const i=(s.length?s:o).map(([t])=>{return e=t,Array.isArray(e)?`(${e.map(ve).join(", ")})`:`(${ve(e.type)}...)`;var e}).join(" | "),n=[];for(let r=1;r<t.length;r++){const i=e.parse(t[r],1+n.length);if(!i)return null;n.push(ve(i.type))}e.error(`Expected arguments of type ${i}, but found (${n.join(", ")}) instead.`)}return null}static register(t,e){Je.definitions=e;for(const i in e)t[i]=Je}}var ti=Je;class ei{constructor(t,e,i){this.type=me,this.locale=i,this.caseSensitive=t,this.diacriticSensitive=e}static parse(t,e){if(2!==t.length)return e.error("Expected one argument.");const i=t[1];if("object"!=typeof i||Array.isArray(i))return e.error("Collator options argument must be an object.");const n=e.parse(void 0!==i["case-sensitive"]&&i["case-sensitive"],1,he);if(!n)return null;const r=e.parse(void 0!==i["diacritic-sensitive"]&&i["diacritic-sensitive"],1,he);if(!r)return null;let o=null;return i.locale&&(o=e.parse(i.locale,1,ue),!o)?null:new ei(n,r,o)}evaluate(t){return new Pe(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)}eachChild(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)}outputDefined(){return!1}serialize(){const t={};return t["case-sensitive"]=this.caseSensitive.serialize(),t["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(t.locale=this.locale.serialize()),["collator",t]}}const ii=8192;function ni(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function ri(t,e){return!(t[0]<=e[0]||t[2]>=e[2]||t[1]<=e[1]||t[3]>=e[3])}function oi(t,e){const i=(180+t[0])/360,n=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t[1]*Math.PI/360)))/360,r=Math.pow(2,e.z);return[Math.round(i*r*ii),Math.round(n*r*ii)]}function si(t,e,i){const n=t[0]-e[0],r=t[1]-e[1],o=t[0]-i[0],s=t[1]-i[1];return n*s-o*r==0&&n*o<=0&&r*s<=0}function ai(t,e){let i=!1;for(let s=0,a=e.length;s<a;s++){const a=e[s];for(let e=0,s=a.length;e<s-1;e++){if(si(t,a[e],a[e+1]))return!1;(r=a[e])[1]>(n=t)[1]!=(o=a[e+1])[1]>n[1]&&n[0]<(o[0]-r[0])*(n[1]-r[1])/(o[1]-r[1])+r[0]&&(i=!i)}}var n,r,o;return i}function li(t,e){for(let i=0;i<e.length;i++)if(ai(t,e[i]))return!0;return!1}function ci(t,e,i,n){const r=n[0]-i[0],o=n[1]-i[1],s=(t[0]-i[0])*o-r*(t[1]-i[1]),a=(e[0]-i[0])*o-r*(e[1]-i[1]);return s>0&&a<0||s<0&&a>0}function ui(t,e,i){for(const c of i)for(let i=0;i<c.length-1;++i)if(0!=(a=[(s=c[i+1])[0]-(o=c[i])[0],s[1]-o[1]])[0]*(l=[(r=e)[0]-(n=t)[0],r[1]-n[1]])[1]-a[1]*l[0]&&ci(n,r,o,s)&&ci(o,s,n,r))return!0;var n,r,o,s,a,l;return!1}function hi(t,e){for(let i=0;i<t.length;++i)if(!ai(t[i],e))return!1;for(let i=0;i<t.length-1;++i)if(ui(t[i],t[i+1],e))return!1;return!0}function di(t,e){for(let i=0;i<e.length;i++)if(hi(t,e[i]))return!0;return!1}function fi(t,e,i){const n=[];for(let r=0;r<t.length;r++){const o=[];for(let n=0;n<t[r].length;n++){const s=oi(t[r][n],i);ni(e,s),o.push(s)}n.push(o)}return n}function pi(t,e,i){const n=[];for(let r=0;r<t.length;r++){const o=fi(t[r],e,i);n.push(o)}return n}function mi(t,e,i,n){if(t[0]<i[0]||t[0]>i[2]){const e=.5*n;let r=t[0]-i[0]>e?-n:i[0]-t[0]>e?n:0;0===r&&(r=t[0]-i[2]>e?-n:i[2]-t[0]>e?n:0),t[0]+=r}ni(e,t)}function gi(t,e,i,n){const r=Math.pow(2,n.z)*ii,o=[n.x*ii,n.y*ii],s=[];if(!t)return s;for(const a of t)for(const t of a){const n=[t.x+o[0],t.y+o[1]];mi(n,e,i,r),s.push(n)}return s}function yi(t,e,i,n){const r=Math.pow(2,n.z)*ii,o=[n.x*ii,n.y*ii],s=[];if(!t)return s;for(const l of t){const t=[];for(const i of l){const n=[i.x+o[0],i.y+o[1]];ni(e,n),t.push(n)}s.push(t)}if(e[2]-e[0]<=r/2){(a=e)[0]=a[1]=1/0,a[2]=a[3]=-1/0;for(const t of s)for(const n of t)mi(n,e,i,r)}var a;return s}class _i{constructor(t,e){this.type=he,this.geojson=t,this.geometries=e}static parse(t,e){if(2!==t.length)return e.error(`'within' expression requires exactly one argument, but found ${t.length-1} instead.`);if(je(t[1])){const e=t[1];if("FeatureCollection"===e.type)for(let t=0;t<e.features.length;++t){const i=e.features[t].geometry.type;if("Polygon"===i||"MultiPolygon"===i)return new _i(e,e.features[t].geometry)}else if("Feature"===e.type){const t=e.geometry.type;if("Polygon"===t||"MultiPolygon"===t)return new _i(e,e.geometry)}else if("Polygon"===e.type||"MultiPolygon"===e.type)return new _i(e,e)}return e.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(t){if(null!=t.geometry()&&null!=t.canonicalID()){if("Point"===t.geometryType())return function(t,e){const i=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],r=t.canonicalID();if(!r)return!1;if("Polygon"===e.type){const o=fi(e.coordinates,n,r),s=gi(t.geometry(),i,n,r);if(!ri(i,n))return!1;for(const t of s)if(!ai(t,o))return!1}if("MultiPolygon"===e.type){const o=pi(e.coordinates,n,r),s=gi(t.geometry(),i,n,r);if(!ri(i,n))return!1;for(const t of s)if(!li(t,o))return!1}return!0}(t,this.geometries);if("LineString"===t.geometryType())return function(t,e){const i=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],r=t.canonicalID();if(!r)return!1;if("Polygon"===e.type){const o=fi(e.coordinates,n,r),s=yi(t.geometry(),i,n,r);if(!ri(i,n))return!1;for(const t of s)if(!hi(t,o))return!1}if("MultiPolygon"===e.type){const o=pi(e.coordinates,n,r),s=yi(t.geometry(),i,n,r);if(!ri(i,n))return!1;for(const t of s)if(!di(t,o))return!1}return!0}(t,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}var vi=_i;function bi(t){if(t instanceof ti){if("get"===t.name&&1===t.args.length)return!1;if("feature-state"===t.name)return!1;if("has"===t.name&&1===t.args.length)return!1;if("properties"===t.name||"geometry-type"===t.name||"id"===t.name)return!1;if(/^filter-/.test(t.name))return!1}if(t instanceof vi)return!1;let e=!0;return t.eachChild(t=>{e&&!bi(t)&&(e=!1)}),e}function xi(t){if(t instanceof ti&&"feature-state"===t.name)return!1;let e=!0;return t.eachChild(t=>{e&&!xi(t)&&(e=!1)}),e}function wi(t,e){if(t instanceof ti&&e.indexOf(t.name)>=0)return!1;let i=!0;return t.eachChild(t=>{i&&!wi(t,e)&&(i=!1)}),i}class Ei{constructor(t,e){this.type=e.type,this.name=t,this.boundExpression=e}static parse(t,e){if(2!==t.length||"string"!=typeof t[1])return e.error("'var' expression requires exactly one string literal argument.");const i=t[1];return e.scope.has(i)?new Ei(i,e.scope.get(i)):e.error(`Unknown variable "${i}". Make sure "${i}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(t){return this.boundExpression.evaluate(t)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}var Ti=Ei;class Si{constructor(t,e=[],i,n=new ae,r=[]){this.registry=t,this.path=e,this.key=e.map(t=>`[${t}]`).join(""),this.scope=n,this.errors=r,this.expectedType=i}parse(t,e,i,n,r={}){return e?this.concat(e,i,n)._parse(t,r):this._parse(t,r)}_parse(t,e){function i(t,e,i){return"assert"===i?new Ge(e,[t]):"coerce"===i?new Qe(e,[t]):t}if(null!==t&&"string"!=typeof t&&"boolean"!=typeof t&&"number"!=typeof t||(t=["literal",t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const n=t[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;const r=this.registry[n];if(r){let n=r.parse(t,this);if(!n)return null;if(this.expectedType){const t=this.expectedType,r=n.type;if("string"!==t.kind&&"number"!==t.kind&&"boolean"!==t.kind&&"object"!==t.kind&&"array"!==t.kind||"value"!==r.kind)if("color"!==t.kind&&"formatted"!==t.kind&&"resolvedImage"!==t.kind||"value"!==r.kind&&"string"!==r.kind){if(this.checkSubtype(t,r))return null}else n=i(n,t,e.typeAnnotation||"coerce");else n=i(n,t,e.typeAnnotation||"assert")}if(!(n instanceof Ve)&&"resolvedImage"!==n.type.kind&&Oi(n)){const e=new Ke;try{n=new Ve(n.type,n.evaluate(e))}catch(t){return this.error(t.message),null}}return n}return this.error(`Unknown expression "${n}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(void 0===t?"'undefined' value invalid. Use null instead.":"object"==typeof t?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof t} instead.`)}concat(t,e,i){const n="number"==typeof t?this.path.concat(t):this.path,r=i?this.scope.concat(i):this.scope;return new Si(this.registry,n,e||null,r,this.errors)}error(t,...e){const i=`${this.key}${e.map(t=>`[${t}]`).join("")}`;this.errors.push(new oe(i,t))}checkSubtype(t,e){const i=xe(t,e);return i&&this.error(i),i}}var ki=Si;function Oi(t){if(t instanceof Ti)return Oi(t.boundExpression);if(t instanceof ti&&"error"===t.name)return!1;if(t instanceof ei)return!1;if(t instanceof vi)return!1;const e=t instanceof Qe||t instanceof Ge;let i=!0;return t.eachChild(t=>{i=e?i&&Oi(t):i&&t instanceof Ve}),!!i&&bi(t)&&wi(t,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"])}function Ai(t,e){const i=t.length-1;let n,r,o=0,s=i,a=0;for(;o<=s;)if(a=Math.floor((o+s)/2),n=t[a],r=t[a+1],n<=e){if(a===i||e<r)return a;o=a+1}else{if(!(n>e))throw new $e("Input is not a number.");s=a-1}return 0}class Ci{constructor(t,e,i){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(const[n,r]of i)this.labels.push(n),this.outputs.push(r)}static parse(t,e){if(t.length-1<4)return e.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");const i=e.parse(t[1],1,ce);if(!i)return null;const n=[];let r=null;e.expectedType&&"value"!==e.expectedType.kind&&(r=e.expectedType);for(let o=1;o<t.length;o+=2){const i=1===o?-1/0:t[o],s=t[o+1],a=o,l=o+1;if("number"!=typeof i)return e.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not c
38omputed expressions) for the input values.',a);if(n.length&&n[n.length-1][0]>=i)return e.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',a);const c=e.parse(s,l,r);if(!c)return null;r=r||c.type,n.push([i,c])}return new Ci(r,i,n)}evaluate(t){const e=this.labels,i=this.outputs;if(1===e.length)return i[0].evaluate(t);const n=this.input.evaluate(t);if(n<=e[0])return i[0].evaluate(t);const r=e.length;return n>=e[r-1]?i[r-1].evaluate(t):i[Ai(e,n)].evaluate(t)}eachChild(t){t(this.input);for(const e of this.outputs)t(e)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}serialize(){const t=["step",this.input.serialize()];for(let e=0;e<this.labels.length;e++)e>0&&t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t}}var Ii=Ci;function Mi(t,e,i){return t*(1-i)+e*i}var Pi=Object.freeze({__proto__:null,array:function(t,e,i){return t.map((t,n)=>Mi(t,e[n],i))},color:function(t,e,i){return new Me(Mi(t.r,e.r,i),Mi(t.g,e.g,i),Mi(t.b,e.b,i),Mi(t.a,e.a,i))},number:Mi});const Di=.95047,Li=1.08883,Ri=4/29,zi=6/29,ji=3*zi*zi,Bi=zi*zi*zi,Fi=Math.PI/180,Ni=180/Math.PI;function Vi(t){return t>Bi?Math.pow(t,1/3):t/ji+Ri}function $i(t){return t>zi?t*t*t:ji*(t-Ri)}
vendor: 31,929 bytes, line 38
38function Ui(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function qi(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Gi(t){const e=qi(t.r),i=qi(t.g),n=qi(t.b),r=Vi((.4124564*e+.3575761*i+.1804375*n)/Di),o=Vi((.2126729*e+.7151522*i+.072175*n)/1);return{l:116*o-16,a:500*(r-o),b:200*(o-Vi((.0193339*e+.119192*i+.9503041*n)/Li)),alpha:t.a}}function Wi(t){let e=(t.l+16)/116,i=isNaN(t.a)?e:e+t.a/500,n=isNaN(t.b)?e:e-t.b/200;return e=1*$i(e),i=Di*$i(i),n=Li*$i(n),new Me(Ui(3.2404542*i-1.5371385*e-.4985314*n),Ui(-.969266*i+1.8760108*e+.041556*n),Ui(.0556434*i-.2040259*e+1.0572252*n),t.alpha)}function Zi(t,e,i){const n=e-t;return t+i*(n>180||n<-180?n-360*Math.round(n/360):n)}const Hi={forward:Gi,reverse:Wi,interpolate:function(t,e,i){return{l:Mi(t.l,e.l,i),a:Mi(t.a,e.a,i),b:Mi(t.b,e.b,i),alpha:Mi(t.alpha,e.alpha,i)}}},Xi={forward:function(t){const{l:e,a:i,b:n}=Gi(t),r=Math.atan2(n,i)*Ni;return{h:r<0?r+360:r,c:Math.sqrt(i*i+n*n),l:e,alpha:t.a}},reverse:function(t){const e=t.h*Fi,i=t.c;return Wi({l:t.l,a:Math.cos(e)*i,b:Math.sin(e)*i,alpha:t.alpha})},interpolate:function(t,e,i){return{h:Zi(t.h,e.h,i),c:Mi(t.c,e.c,i),l:Mi(t.l,e.l,i),alpha:Mi(t.alpha,e.alpha,i)}}};var Qi=Object.freeze({__proto__:null,hcl:Xi,lab:Hi});class Yi{constructor(t,e,i,n,r){this.type=t,this.operator=e,this.interpolation=i,this.input=n,this.labels=[],this.outputs=[];for(const[o,s]of r)this.labels.push(o),this.outputs.push(s)}static interpolationFactor(t,e,i,n){let r=0;if("exponential"===t.name)r=Ki(e,t.base,i,n);else if("linear"===t.name)r=Ki(e,1,i,n);else if("cubic-bezier"===t.name){const o=t.controlPoints;r=new m(o[0],o[1],o[2],o[3]).solve(Ki(e,1,i,n))}return r}static parse(t,e){let[i,n,r,...o]=t;if(!Array.isArray(n)||0===n.length)return e.error("Expected an interpolation type expression.",1);if("linear"===n[0])n={name:"linear"};else if("exponential"===n[0]){const t=n[1];if("number"!=typeof t)return e.error("Exponential interpolation requires a numeric base.",1,1);n={name:"exponential",base:t}}else{if("cubic-bezier"!==n[0])return e.error("Unknown interpolation type "+String(n[0]),1,0);{const t=n.slice(1);if(4!==t.length||t.some(t=>"number"!=typeof t||t<0||t>1))return e.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);n={name:"cubic-bezier",controlPoints:t}}}if(t.length-1<4)return e.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");if(r=e.parse(r,2,ce),!r)return null;const s=[];let a=null;"interpolate-hcl"===i||"interpolate-lab"===i?a=de:e.expectedType&&"value"!==e.expectedType.kind&&(a=e.expectedType);for(let l=0;l<o.length;l+=2){const t=o[l],i=o[l+1],n=l+3,r=l+4;if("number"!=typeof t)return e.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',n);if(s.length&&s[s.length-1][0]>=t)return e.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',n);const c=e.parse(i,r,a);if(!c)return null;a=a||c.type,s.push([t,c])}return"number"===a.kind||"color"===a.kind||"array"===a.kind&&"number"===a.itemType.kind&&"number"==typeof a.N?new Yi(a,i,n,r,s):e.error(`Type ${ve(a)} is not interpolatable.`)}evaluate(t){const e=this.labels,i=this.outputs;if(1===e.length)return i[0].evaluate(t);const n=this.input.evaluate(t);if(n<=e[0])return i[0].evaluate(t);const r=e.length;if(n>=e[r-1])return i[r-1].evaluate(t);const o=Ai(e,n),s=Yi.interpolationFactor(this.interpolation,n,e[o],e[o+1]),a=i[o].evaluate(t),l=i[o+1].evaluate(t);return"interpolate"===this.operator?Pi[this.type.kind.toLowerCase()](a,l,s):"interpolate-hcl"===this.operator?Xi.reverse(Xi.interpolate(Xi.forward(a),Xi.forward(l),s)):Hi.reverse(Hi.interpolate(Hi.forward(a),Hi.forward(l),s))}eachChild(t){t(this.input);for(const e of this.outputs)t(e)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}serialize(){let t;t="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);const e=[this.operator,t,this.input.serialize()];for(let i=0;i<this.labels.length;i++)e.push(this.labels[i],this.outputs[i].serialize());return e}}function Ki(t,e,i,n){const r=n-i,o=t-i;return 0===r?0:1===e?o/r:(Math.pow(e,o)-1)/(Math.pow(e,r)-1)}var Ji=Yi;class tn{constructor(t,e){this.type=t,this.args=e}static parse(t,e){if(t.length<2)return e.error("Expectected at least one argument.");let i=null;const n=e.expectedType;n&&"value"!==n.kind&&(i=n);const r=[];for(const s of t.slice(1)){const t=e.parse(s,1+r.length,i,void 0,{typeAnnotation:"omit"});if(!t)return null;i=i||t.type,r.push(t)}const o=n&&r.some(t=>xe(n,t.type));return new tn(o?pe:i,r)}evaluate(t){let e,i=null,n=0;for(const r of this.args){if(n++,i=r.evaluate(t),i&&i instanceof Re&&!i.available&&(e||(e=i),i=null,n===this.args.length))return e;if(null!==i)break}return i}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}serialize(){const t=["coalesce"];return this.eachChild(e=>{t.push(e.serialize())}),t}}var en=tn;class nn{constructor(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e}evaluate(t){return this.result.evaluate(t)}eachChild(t){for(const e of this.bindings)t(e[1]);t(this.result)}static parse(t,e){if(t.length<4)return e.error(`Expected at least 3 arguments, but found ${t.length-1} instead.`);const i=[];for(let r=1;r<t.length-1;r+=2){const n=t[r];if("string"!=typeof n)return e.error(`Expected string, but found ${typeof n} instead.`,r);if(/[^a-zA-Z0-9_]/.test(n))return e.error("Variable names must contain only alphanumeric characters or '_'.",r);const o=e.parse(t[r+1],r+1);if(!o)return null;i.push([n,o])}const n=e.parse(t[t.length-1],t.length-1,e.expectedType,i);return n?new nn(i,n):null}outputDefined(){return this.result.outputDefined()}serialize(){const t=["let"];for(const[e,i]of this.bindings)t.push(e,i.serialize());return t.push(this.result.serialize()),t}}var rn=nn;class on{constructor(t,e,i){this.type=t,this.index=e,this.input=i}static parse(t,e){if(3!==t.length)return e.error(`Expected 2 arguments, but found ${t.length-1} instead.`);const i=e.parse(t[1],1,ce),n=e.parse(t[2],2,_e(e.expectedType||pe));return i&&n?new on(n.type.itemType,i,n):null}evaluate(t){const e=this.index.evaluate(t),i=this.input.evaluate(t);if(e<0)throw new $e(`Array index out of bounds: ${e} < 0.`);if(e>=i.length)throw new $e(`Array index out of bounds: ${e} > ${i.length-1}.`);if(e!==Math.floor(e))throw new $e(`Array index must be an integer, but found ${e} instead.`);return i[e]}eachChild(t){t(this.index),t(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}var sn=on;class an{constructor(t,e){this.type=he,this.needle=t,this.haystack=e}static parse(t,e){if(3!==t.length)return e.error(`Expected 2 arguments, but found ${t.length-1} instead.`);const i=e.parse(t[1],1,pe),n=e.parse(t[2],2,pe);return i&&n?we(i.type,[he,ue,ce,le,pe])?new an(i,n):e.error(`Expected first argument to be of type boolean, string, number or null, but found ${ve(i.type)} instead`):null}evaluate(t){const e=this.needle.evaluate(t),i=this.haystack.evaluate(t);if(null==i)return!1;if(!Ee(e,["boolean","string","number","null"]))throw new $e(`Expected first argument to be of type boolean, string, number or null, but found ${ve(Be(e))} instead.`);if(!Ee(i,["string","array"]))throw new $e(`Expected second argument to be of type array or string, but found ${ve(Be(i))} instead.`);return i.indexOf(e)>=0}eachChild(t){t(this.needle),t(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}var ln=an;class cn{constructor(t,e,i){this.type=ce,this.needle=t,this.haystack=e,this.fromIndex=i}static parse(t,e){if(t.length<=2||t.length>=5)return e.error(`Expected 3 or 4 arguments, but found ${t.length-1} instead.`);const i=e.parse(t[1],1,pe),n=e.parse(t[2],2,pe);if(!i||!n)return null;if(!we(i.type,[he,ue,ce,le,pe]))return e.error(`Expected first argument to be of type boolean, string, number or null, but found ${ve(i.type)} instead`);if(4===t.length){const r=e.parse(t[3],3,ce);return r?new cn(i,n,r):null}return new cn(i,n)}evaluate(t){const e=this.needle.evaluate(t),i=this.haystack.evaluate(t);if(!Ee(e,["boolean","string","number","null"]))throw new $e(`Expected first argument to be of type boolean, string, number or null, but found ${ve(Be(e))} instead.`);if(!Ee(i,["string","array"]))throw new $e(`Expected second argument to be of type array or string, but found ${ve(Be(i))} instead.`);if(this.fromIndex){const n=this.fromIndex.evaluate(t);return i.indexOf(e,n)}return i.indexOf(e)}eachChild(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)}outputDefined(){return!1}serialize(){if(null!=this.fromIndex&&void 0!==this.fromIndex){const t=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),t]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}var un=cn;class hn{constructor(t,e,i,n,r,o){this.inputType=t,this.type=e,this.input=i,this.cases=n,this.outputs=r,this.otherwise=o}static parse(t,e){if(t.length<5)return e.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if(t.length%2!=1)return e.error("Expected an even number of arguments.");let i,n;e.expectedType&&"value"!==e.expectedType.kind&&(n=e.expectedType);const r={},o=[];for(let l=2;l<t.length-1;l+=2){let s=t[l];const a=t[l+1];Array.isArray(s)||(s=[s]);const c=e.concat(l);if(0===s.length)return c.error("Expected at least one branch label.");for(const t of s){if("number"!=typeof t&&"string"!=typeof t)return c.error("Branch labels must be numbers or strings.");if("number"==typeof t&&Math.abs(t)>Number.MAX_SAFE_INTEGER)return c.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if("number"==typeof t&&Math.floor(t)!==t)return c.error("Numeric branch labels must be integer values.");if(i){if(c.checkSubtype(i,Be(t)))return null}else i=Be(t);if(void 0!==r[String(t)])return c.error("Branch labels must be unique.");r[String(t)]=o.length}const u=e.parse(a,l,n);if(!u)return null;n=n||u.type,o.push(u)}const s=e.parse(t[1],1,pe);if(!s)return null;const a=e.parse(t[t.length-1],t.length-1,n);return a?"value"!==s.type.kind&&e.concat(1).checkSubtype(i,s.type)?null:new hn(i,n,s,r,o,a):null}evaluate(t){const e=this.input.evaluate(t);return(Be(e)===this.inputType&&this.outputs[this.cases[e]]||this.otherwise).evaluate(t)}eachChild(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)}outputDefined(){return this.outputs.every(t=>t.outputDefined())&&this.otherwise.outputDefined()}serialize(){const t=["match",this.input.serialize()],e=Object.keys(this.cases).sort(),i=[],n={};for(const o of e){const t=n[this.cases[o]];void 0===t?(n[this.cases[o]]=i.length,i.push([this.cases[o],[o]])):i[t][1].push(o)}const r=t=>"number"===this.inputType.kind?Number(t):t;for(const[o,s]of i)t.push(1===s.length?r(s[0]):s.map(r)),t.push(this.outputs[o].serialize());return t.push(this.otherwise.serialize()),t}}var dn=hn;class fn{constructor(t,e,i){this.type=t,this.branches=e,this.otherwise=i}static parse(t,e){if(t.length<4)return e.error(`Expected at least 3 arguments, but found only ${t.length-1}.`);if(t.length%2!=0)return e.error("Expected an odd number of arguments.");let i;e.expectedType&&"value"!==e.expectedType.kind&&(i=e.expectedType);const n=[];for(let o=1;o<t.length-1;o+=2){const r=e.parse(t[o],o,he);if(!r)return null;const s=e.parse(t[o+1],o+1,i);if(!s)return null;n.push([r,s]),i=i||s.type}const r=e.parse(t[t.length-1],t.length-1,i);return r?new fn(i,n,r):null}evaluate(t){for(const[e,i]of this.branches)if(e.evaluate(t))return i.evaluate(t);return this.otherwise.evaluate(t)}eachChild(t){for(const[e,i]of this.branches)t(e),t(i);t(this.otherwise)}outputDefined(){return this.branches.every(([t,e])=>e.outputDefined())&&this.otherwise.outputDefined()}serialize(){const t=["case"];return this.eachChild(e=>{t.push(e.serialize())}),t}}var pn=fn;class mn{constructor(t,e,i,n){this.type=t,this.input=e,this.beginIndex=i,this.endIndex=n}static parse(t,e){if(t.length<=2||t.length>=5)return e.error(`Expected 3 or 4 arguments, but found ${t.length-1} instead.`);const i=e.parse(t[1],1,pe),n=e.parse(t[2],2,ce);if(!i||!n)return null;if(!we(i.type,[_e(pe),ue,pe]))return e.error(`Expected first argument to be of type array or string, but found ${ve(i.type)} instead`);if(4===t.length){const r=e.parse(t[3],3,ce);return r?new mn(i.type,i,n,r):null}return new mn(i.type,i,n)}evaluate(t){const e=this.input.evaluate(t),i=this.beginIndex.evaluate(t);if(!Ee(e,["string","array"]))throw new $e(`Expected first argument to be of type array or string, but found ${ve(Be(e))} instead.`);if(this.endIndex){const n=this.endIndex.evaluate(t);return e.slice(i,n)}return e.slice(i)}eachChild(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)}outputDefined(){return!1}serialize(){if(null!=this.endIndex&&void 0!==this.endIndex){const t=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),t]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}var gn=mn;function yn(t,e){return"=="===t||"!="===t?"boolean"===e.kind||"string"===e.kind||"number"===e.kind||"null"===e.kind||"value"===e.kind:"string"===e.kind||"number"===e.kind||"value"===e.kind}function _n(t,e,i,n){return 0===n.compare(e,i)}function vn(t,e,i){const n="=="!==t&&"!="!==t;return class r{constructor(t,e,i){this.type=he,this.lhs=t,this.rhs=e,this.collator=i,this.hasUntypedArgument="value"===t.type.kind||"value"===e.type.kind}static parse(t,e){if(3!==t.length&&4!==t.length)return e.error("Expected two or three arguments.");const i=t[0];let o=e.parse(t[1],1,pe);if(!o)return null;if(!yn(i,o.type))return e.concat(1).error(`"${i}" comparisons are not supported for type '${ve(o.type)}'.`);let s=e.parse(t[2],2,pe);if(!s)return null;if(!yn(i,s.type))return e.concat(2).error(`"${i}" comparisons are not supported for type '${ve(s.type)}'.`);if(o.type.kind!==s.type.kind&&"value"!==o.type.kind&&"value"!==s.type.kind)return e.error(`Cannot compare types '${ve(o.type)}' and '${ve(s.type)}'.`);n&&("value"===o.type.kind&&"value"!==s.type.kind?o=new Ge(s.type,[o]):"value"!==o.type.kind&&"value"===s.type.kind&&(s=new Ge(o.type,[s])));let a=null;if(4===t.length){if("string"!==o.type.kind&&"string"!==s.type.kind&&"value"!==o.type.kind&&"value"!==s.type.kind)return e.error("Cannot use collator to compare non-string types.");if(a=e.parse(t[3],3,me),!a)return null}return new r(o,s,a)}evaluate(r){const o=this.lhs.evaluate(r),s=this.rhs.evaluate(r);if(n&&this.hasUntypedArgument){const e=Be(o),i=Be(s);if(e.kind!==i.kind||"string"!==e.kind&&"number"!==e.kind)throw new $e(`Expected arguments for "${t}" to be (string, string) or (number, number), but found (${e.kind}, ${i.kind}) instead.`)}if(this.collator&&!n&&this.hasUntypedArgument){const t=Be(o),i=Be(s);if("string"!==t.kind||"string"!==i.kind)return e(r,o,s)}return this.collator?i(r,o,s,this.collator.evaluate(r)):e(r,o,s)}eachChild(t){t(this.lhs),t(this.rhs),this.collator&&t(this.collator)}outputDefined(){return!0}serialize(){const e=[t];return this.eachChild(t=>{e.push(t.serialize())}),e}}}const bn=vn("==",(function(t,e,i){return e===i}),_n),xn=vn("!=",(function(t,e,i){return e!==i}),(function(t,e,i,n){return!_n(0,e,i,n)})),wn=vn("<",(function(t,e,i){return e<i}),(function(t,e,i,n){return n.compare(e,i)<0})),En=vn(">",(function(t,e,i){return e>i}),(function(t,e,i,n){return n.compare(e,i)>0})),Tn=vn("<=",(function(t,e,i){return e<=i}),(function(t,e,i,n){return n.compare(e,i)<=0})),Sn=vn(">=",(function(t,e,i){return e>=i}),(function(t,e,i,n){return n.compare(e,i)>=0}));class kn{constructor(t,e,i,n,r,o){this.type=ue,this.number=t,this.locale=e,this.currency=i,this.unit=n,this.minFractionDigits=r,this.maxFractionDigits=o}static parse(t,e){if(3!==t.length)return e.error("Expected two arguments.");const i=e.parse(t[1],1,ce);if(!i)return null;const n=t[2];if("object"!=typeof n||Array.isArray(n))return e.error("NumberFormat options argument must be an object.");let r=null;if(n.locale&&(r=e.parse(n.locale,1,ue),!r))return null;let o=null;if(n.currency&&(o=e.parse(n.currency,1,ue),!o))return null;let s=null;if(n.unit&&(s=e.parse(n.unit,1,ue),!s))return null;let a=null;if(n["min-fraction-digits"]&&(a=e.parse(n["min-fraction-digits"],1,ce),!a))return null;let l=null;return n["max-fraction-digits"]&&(l=e.parse(n["max-fraction-digits"],1,ce),!l)?null:new kn(i,r,o,s,a,l)}evaluate(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(t):void 0,unit:this.unit?this.unit.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))}eachChild(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.unit&&t(this.unit),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const t={};return this.locale&&(t.locale=this.locale.serialize()),this.currency&&(t.currency=this.currency.serialize()),this.unit&&(t.unit=this.unit.serialize()),this.minFractionDigits&&(t["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(t["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),t]}}class On{constructor(t){this.type=ce,this.input=t}static parse(t,e){if(2!==t.length)return e.error(`Expected 1 argument, but found ${t.length-1} instead.`);const i=e.parse(t[1],1);return i?"array"!==i.type.kind&&"string"!==i.type.kind&&"value"!==i.type.kind?e.error(`Expected argument of type string or array, but found ${ve(i.type)} instead.`):new On(i):null}evaluate(t){const e=this.input.evaluate(t);if("string"==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new $e(`Expected value to be of type string or array, but found ${ve(Be(e))} instead.`)}eachChild(t){t(this.input)}outputDefined(){return!1}serialize(){const t=["length"];return this.eachChild(e=>{t.push(e.serialize())}),t}}const An={"==":bn,"!=":xn,">":En,"<":wn,">=":Sn,"<=":Tn,array:Ge,at:sn,boolean:Ge,case:pn,coalesce:en,collator:ei,format:We,image:Ze,in:ln,"index-of":un,interpolate:Ji,"interpolate-hcl":Ji,"interpolate-lab":Ji,length:On,let:rn,literal:Ve,match:dn,number:Ge,"number-format":kn,object:Ge,slice:gn,step:Ii,string:Ge,"to-boolean":Qe,"to-color":Qe,"to-number":Qe,"to-string":Qe,var:Ti,within:vi};function Cn(t,[e,i,n,r]){e=e.evaluate(t),i=i.evaluate(t),n=n.evaluate(t);const o=r?r.evaluate(t):1,s=ze(e,i,n,o);if(s)throw new $e(s);return new Me(e/255*o,i/255*o,n/255*o,o)}function In(t,e){return t in e}function Mn(t,e){const i=e[t];return void 0===i?null:i}function Pn(t){return{type:t}}ti.register(An,{error:[{kind:"error"},[ue],(t,[e])=>{throw new $e(e.evaluate(t))}],typeof:[ue,[pe],(t,[e])=>ve(Be(e.evaluate(t)))],"to-rgba":[_e(ce,4),[de],(t,[e])=>e.evaluate(t).toArray()],rgb:[de,[ce,ce,ce],Cn],rgba:[de,[ce,ce,ce,ce],Cn],has:{type:he,overloads:[[[ue],(t,[e])=>In(e.evaluate(t),t.properties())],[[ue,fe],(t,[e,i])=>In(e.evaluate(t),i.evaluate(t))]]},get:{type:pe,overloads:[[[ue],(t,[e])=>Mn(e.evaluate(t),t.properties())],[[ue,fe],(t,[e,i])=>Mn(e.evaluate(t),i.evaluate(t))]]},"feature-state":[pe,[ue],(t,[e])=>Mn(e.evaluate(t),t.featureState||{})],properties:[fe,[],t=>t.properties()],"geometry-type":[ue,[],t=>t.geometryType()],id:[pe,[],t=>t.id()],zoom:[ce,[],t=>t.globals.zoom],pitch:[ce,[],t=>t.globals.pitch||0],"distance-from-center":[ce,[],t=>t.distanceFromCenter()],"heatmap-density":[ce,[],t=>t.globals.heatmapDensity||0],"line-progress":[ce,[],t=>t.globals.lineProgress||0],"sky-radial-progress":[ce,[],t=>t.globals.skyRadialProgress||0],accumulated:[pe,[],t=>void 0===t.globals.accumulated?null:t.globals.accumulated],"+":[ce,Pn(ce),(t,e)=>{let i=0;for(const n of e)i+=n.evaluate(t);return i}],"*":[ce,Pn(ce),(t,e)=>{let i=1;for(const n of e)i*=n.evaluate(t);return i}],"-":{type:ce,overloads:[[[ce,ce],(t,[e,i])=>e.evaluate(t)-i.evaluate(t)],[[ce],(t,[e])=>-e.evaluate(t)]]},"/":[ce,[ce,ce],(t,[e,i])=>e.evaluate(t)/i.evaluate(t)],"%":[ce,[ce,ce],(t,[e,i])=>e.evaluate(t)%i.evaluate(t)],ln2:[ce,[],()=>Math.LN2],pi:[ce,[],()=>Math.PI],e:[ce,[],()=>Math.E],"^":[ce,[ce,ce],(t,[e,i])=>Math.pow(e.evaluate(t),i.evaluate(t))],sqrt:[ce,[ce],(t,[e])=>Math.sqrt(e.evaluate(t))],log10:[ce,[ce],(t,[e])=>Math.log(e.evaluate(t))/Math.LN10],ln:[ce,[ce],(t,[e])=>Math.log(e.evaluate(t))],log2:[ce,[ce],(t,[e])=>Math.log(e.evaluate(t))/Math.LN2],sin:[ce,[ce],(t,[e])=>Math.sin(e.evaluate(t))],cos:[ce,[ce],(t,[e])=>Math.cos(e.evaluate(t))],tan:[ce,[ce],(t,[e])=>Math.tan(e.evaluate(t))],asin:[ce,[ce],(t,[e])=>Math.asin(e.evaluate(t))],acos:[ce,[ce],(t,[e])=>Math.acos(e.evaluate(t))],atan:[ce,[ce],(t,[e])=>Math.atan(e.evaluate(t))],min:[ce,Pn(ce),(t,e)=>Math.min(...e.map(e=>e.evaluate(t)))],max:[ce,Pn(ce),(t,e)=>Math.max(...e.map(e=>e.evaluate(t)))],abs:[ce,[ce],(t,[e])=>Math.abs(e.evaluate(t))],round:[ce,[ce],(t,[e])=>{const i=e.evaluate(t);return i<0?-Math.round(-i):Math.round(i)}],floor:[ce,[ce],(t,[e])=>Math.floor(e.evaluate(t))],ceil:[ce,[ce],(t,[e])=>Math.ceil(e.evaluate(t))],"filter-==":[he,[ue,pe],(t,[e,i])=>t.properties()[e.value]===i.value],"filter-id-==":[he,[pe],(t,[e])=>t.id()===e.value],"filter-type-==":[he,[ue],(t,[e])=>t.geometryType()===e.value],"filter-<":[he,[ue,pe],(t,[e,i])=>{const n=t.properties()[e.value],r=i.value;return typeof n==typeof r&&n<r}],"filter-id-<":[he,[pe],(t,[e])=>{const i=t.id(),n=e.value;return typeof i==typeof n&&i<n}],"filter->":[he,[ue,pe],(t,[e,i])=>{const n=t.properties()[e.value],r=i.value;return typeof n==typeof r&&n>r}],"filter-id->":[he,[pe],(t,[e])=>{const i=t.id(),n=e.value;return typeof i==typeof n&&i>n}],"filter-<=":[he,[ue,pe],(t,[e,i])=>{const n=t.properties()[e.value],r=i.value;return typeof n==typeof r&&n<=r}],"filter-id-<=":[he,[pe],(t,[e])=>{const i=t.id(),n=e.value;return typeof i==typeof n&&i<=n}],"filter->=":[he,[ue,pe],(t,[e,i])=>{const n=t.properties()[e.value],r=i.value;return typeof n==typeof r&&n>=r}],"filter-id->=":[he,[pe],(t,[e])=>{const i=t.id(),n=e.value;return typeof i==typeof n&&i>=n}],"filter-has":[he,[pe],(t,[e])=>e.value in t.properties()],"filter-has-id":[he,[],t=>null!==t.id()&&void 0!==t.id()],"filter-type-in":[he,[_e(ue)],(t,[e])=>e.value.indexOf(t.geometryType())>=0],"filter-id-in":[he,[_e(pe)],(t,[e])=>e.value.indexOf(t.id())>=0],"filter-in-small":[he,[ue,_e(pe)],(t,[e,i])=>i.value.indexOf(t.properties()[e.value])>=0],"filter-in-large":[he,[ue,_e(pe)],(t,[e,i])=>function(t,e,i,n){for(;i<=n;){const r=i+n>>1;if(e[r]===t)return!0;e[r]>t?n=r-1:i=r+1}return!1}(t.properties()[e.value],i.value,0,i.value.length-1)],all:{type:he,overloads:[[[he,he],(t,[e,i])=>e.evaluate(t)&&i.evaluate(t)],[Pn(he),(t,e)=>{for(const i of e)if(!i.evaluate(t))return!1;return!0}]]},any:{type:he,overloads:[[[he,he],(t,[e,i])=>e.evaluate(t)||i.evaluate(t)],[Pn(he),(t,e)=>{for(const i of e)if(i.evaluate(t))return!0;return!1}]]},"!":[he,[he],(t,[e])=>!e.evaluate(t)],"is-supported-script":[he,[ue],(t,[e])=>{const i=t.globals&&t.globals.isSupportedScript;return!i||i(e.evaluate(t))}],upcase:[ue,[ue],(t,[e])=>e.evaluate(t).toUpperCase()],downcase:[ue,[ue],(t,[e])=>e.evaluate(t).toLowerCase()],concat:[ue,Pn(pe),(t,e)=>e.map(e=>Fe(e.evaluate(t))).join("")],"resolved-locale":[ue,[me],(t,[e])=>e.evaluate(t).resolvedLocale()]});var Dn=An;function Ln(t){return{result:"success",value:t}}function Rn(t){return{result:"error",value:t}}function zn(t){return"data-driven"===t["property-type"]}function jn(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function Bn(t){return!!t.expression&&t.expression.interpolated}function Fn(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":null===t?"null":typeof t}function Nn(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)}function Vn(t){return t}function $n(t,e){const i="color"===e.type,n=t.stops&&"object"==typeof t.stops[0][0],r=n||!(n||void 0!==t.property),o=t.type||(Bn(e)?"exponential":"interval");if(i&&((t=ee({},t)).stops&&(t.stops=t.stops.map(t=>[t[0],Me.parse(t[1])])),t.default=Me.parse(t.default?t.default:e.default)),t.colorSpace&&"rgb"!==t.colorSpace&&!Qi[t.colorSpace])throw new Error("Unknown color space: "+t.colorSpace);let s,a,l;if("exponential"===o)s=Wn;else if("interval"===o)s=Gn;else if("categorical"===o){s=qn,a=Object.create(null);for(const e of t.stops)a[e[0]]=e[1];l=typeof t.stops[0][0]}else{if("identity"!==o)throw new Error(`Unknown function type "${o}"`);s=Zn}if(n){const i={},n=[];for(let e=0;e<t.stops.length;e++){const r=t.stops[e],o=r[0].zoom;void 0===i[o]&&(i[o]={zoom:o,type:t.type,property:t.property,default:t.default,stops:[]},n.push(o)),i[o].stops.push([r[0].value,r[1]])}const r=[];for(const t of n)r.push([i[t].zoom,$n(i[t],e)]);const o={name:"linear"};return{kind:"composite",interpolationType:o,interpolationFactor:Ji.interpolationFactor.bind(void 0,o),zoomStops:r.map(t=>t[0]),evaluate:({zoom:i},n)=>Wn({stops:r,base:t.base},e,i).evaluate(i,n)}}if(r){const i="exponential"===o?{name:"exponential",base:void 0!==t.base?t.base:1}:null;return{kind:"camera",interpolationType:i,interpolationFactor:Ji.interpolationFactor.bind(void 0,i),zoomStops:t.stops.map(t=>t[0]),evaluate:({zoom:i})=>s(t,e,i,a,l)}}return{kind:"source",evaluate(i,n){const r=n&&n.properties?n.properties[t.property]:void 0;return void 0===r?Un(t.default,e.default):s(t,e,r,a,l)}}}function Un(t,e,i){return void 0!==t?t:void 0!==e?e:void 0!==i?i:void 0}function qn(t,e,i,n,r){return Un(typeof i===r?n[i]:void 0,t.default,e.default)}function Gn(t,e,i){if("number"!==Fn(i))return Un(t.default,e.default);const n=t.stops.length;if(1===n)return t.stops[0][1];if(i<=t.stops[0][0])return t.stops[0][1];if(i>=t.stops[n-1][0])return t.stops[n-1][1];const r=Ai(t.stops.map(t=>t[0]),i);return t.stops[r][1]}function Wn(t,e,i){const n=void 0!==t.base?t.base:1;if("number"!==Fn(i))return Un(t.default,e.default);const r=t.stops.length;if(1===r)return t.stops[0][1];if(i<=t.stops[0][0])return t.stops[0][1];if(i>=t.stops[r-1][0])return t.stops[r-1][1];const o=Ai(t.stops.map(t=>t[0]),i),s=function(t,e,i,n){const r=n-i,o=t-i;return 0===r?0:1===e?o/r:(Math.pow(e,o)-1)/(Math.pow(e,r)-1)}(i,n,t.stops[o][0],t.stops[o+1][0]),a=t.stops[o][1],l=t.stops[o+1][1];let c=Pi[e.type]||Vn;if(t.colorSpace&&"rgb"!==t.colorSpace){const e=Qi[t.colorSpace];c=(t,i)=>e.reverse(e.interpolate(e.forward(t),e.forward(i),s))}return"function"==typeof a.evaluate?{evaluate(...t){const e=a.evaluate.apply(void 0,t),i=l.evaluate.apply(void 0,t);if(void 0!==e&&void 0!==i)return c(e,i,s)}}:c(a,l,s)}function Zn(t,e,i){return"color"===e.type?i=Me.parse(i):"formatted"===e.type?i=Le.fromString(i.toString()):"resolvedImage"===e.type?i=Re.fromString(i.toString()):Fn(i)===e.type||"enum"===e.type&&e.values[i]||(i=void 0),Un(i,t.default,e.default)}class Hn{constructor(t,e){this.expression=t,this._warningHistory={},this._evaluator=new Ke,this._defaultValue=e?function(t){return"color"===t.type&&(Nn(t.default)||Array.isArray(t.default))?new Me(0,0,0,0):"color"===t.type?Me.parse(t.default)||null:void 0===t.default?null:t.default}(e):null,this._enumValues=e&&"enum"===e.type?e.values:null}evaluateWithoutErrorHandling(t,e,i,n,r,o,s,a){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=i,this._evaluator.canonical=n||null,this._evaluator.availableImages=r||null,this._evaluator.formattedSection=o,this._evaluator.featureTileCoord=s||null,this._evaluator.featureDistanceData=a||null,this.expression.evaluate(this._evaluator)}evaluate(t,e,i,n,r,o,s,a){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=i||null,this._evaluator.canonical=n||null,this._evaluator.availableImages=r||null,this._evaluator.formattedSection=o||null,this._evaluator.featureTileCoord=s||null,this._evaluator.featureDistanceData=a||null;try{const t=this.expression.evaluate(this._evaluator);if(null==t||"number"==typeof t&&t!=t)return this._defaultValue;if(this._enumValues&&!(t in this._enumValues))throw new $e(`Expected value to be one of ${Object.keys(this._enumValues).map(t=>JSON.stringify(t)).join(", ")}, but found ${JSON.stringify(t)} instead.`);return t}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,"undefined"!=typeof console&&console.warn(t.message)),this._defaultValue}}}function Xn(t){return Array.isArray(t)&&t.length>0&&"string"==typeof t[0]&&t[0]in Dn}function Qn(t,e){const i=new ki(Dn,[],e?function(t){const e={color:de,string:ue,number:ce,enum:ue,boolean:he,formatted:ge,resolvedImage:ye};return"array"===t.type?_e(e[t.value]||pe,t.length):e[t.type]}(e):void 0),n=i.parse(t,void 0,void 0,void 0,e&&"string"===e.type?{typeAnnotation:"coerce"}:void 0);return n?Ln(new Hn(n,e)):Rn(i.errors)}class Yn{constructor(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent="constant"!==t&&!xi(e.expression)}evaluateWithoutErrorHandling(t,e,i,n,r,o){return this._styleExpression.evaluateWithoutErrorHandling(t,e,i,n,r,o)}evaluate(t,e,i,n,r,o){return this._styleExpression.evaluate(t,e,i,n,r,o)}}class Kn{constructor(t,e,i,n){this.kind=t,this.zoomStops=i,this._styleExpression=e,this.isStateDependent="camera"!==t&&!xi(e.expression),this.interpolationType=n}evaluateWithoutErrorHandling(t,e,i,n,r,o){return this._styleExpression.evaluateWithoutErrorHandling(t,e,i,n,r,o)}evaluate(t,e,i,n,r,o){return this._styleExpression.evaluate(t,e,i,n,r,o)}interpolationFactor(t,e,i){return this.interpolationType?Ji.interpolationFactor(this.interpolationType,t,e,i):0}}function Jn(t,e){if("error"===(t=Qn(t,e)).result)return t;const i=t.value.expression,n=bi(i);if(!n&&!zn(e))return Rn([new oe("","data expressions not supported")]);const r=wi(i,["zoom","pitch","distance-from-center"]);if(!r&&!jn(e))return Rn([new oe("","zoom expressions not supported")]);const o=er(i);return o||r?o instanceof oe?Rn([o]):o instanceof Ji&&!Bn(e)?Rn([new oe("",'"interpolate" expressions cannot be used with this property')]):Ln(o?new Kn(n?"camera":"composite",t.value,o.labels,o instanceof Ji?o.interpolation:void 0):new Yn(n?"constant":"source",t.value)):Rn([new oe("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class tr{constructor(t,e){this._parameters=t,this._specification=e,ee(this,$n(this._parameters,this._specification))}static deserialize(t){return new tr(t._parameters,t._specification)}static serialize(t){return{_parameters:t._parameters,_specification:t._specification}}}function er(t){let e=null;if(t instanceof rn)e=er(t.result);else if(t instanceof en){for(const i of t.args)if(e=er(i),e)break}else(t instanceof Ii||t instanceof Ji)&&t.input instanceof ti&&"zoom"===t.input.name&&(e=t);return e instanceof oe||t.eachChild(t=>{const i=er(t);i instanceof oe?e=i:!e&&i?e=new oe("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):e&&i&&e!==i&&(e=new oe("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),e}class ir{constructor(t,e,i,n){this.message=(t?t+": ":"")+i,n&&(this.identifier=n),null!=e&&e.__line__&&(this.line=e.__line__)}}function nr(t){const e=t.key,i=t.value,n=t.valueSpec||{},r=t.objectElementValidators||{},o=t.style,s=t.styleSpec;let a=[];const l=Fn(i);if("object"!==l)return[new ir(e,i,`object expected, ${l}
38 found`)];for(const c in i){const t=c.split(".")[0];let l;r[t]?l=r[t]:n[t]?l=jr:r["*"]?l=r["*"]:n["*"]&&(l=jr),l?a=a.concat(l({key:(e?e+".":e)+c,value:i[c],valueSpec:n[t]||n["*"],style:o,styleSpec:s,object:i,objectKey:c},i)):a.push(new ir(e,i[c],`unknown property "${c}"`))}for(const c in n)r[c]||n[c].required&&void 0===n[c].default&&void 0===i[c]&&a.push(new ir(e,i,`missing required property "${c}"`));return a}function rr(t){const e=t.value,i=t.valueSpec,n=t.style,r=t.styleSpec,o=t.key,s=t.arrayElementValidator||jr;if("array"!==Fn(e))return[new ir(o,e,`array expected, ${Fn(e)} found`)];if(i.length&&e.length!==i.length)return[new ir(o,e,`array length ${i.length} expected, length ${e.length} found`)];if(i["min-length"]&&e.length<i["min-length"])return[new ir(o,e,`array length at least ${i["min-length"]} expected, length ${e.length} found`)];let a={type:i.value,values:i.values,minimum:i.minimum,maximum:i.maximum,function:void 0};r.$version<7&&(a.function=i.function),"object"===Fn(i.value)&&(a=i.value);let l=[];for(let c=0;c<e.length;c++)l=l.concat(s({array:e,arrayIndex:c,value:e[c],valueSpec:a,style:n,styleSpec:r,key:`${o}[${c}]`}));return l}function or(t){const e=t.key,i=t.value,n=t.valueSpec;let r=Fn(i);if("number"===r&&i!=i&&(r="NaN"),"number"!==r)return[new ir(e,i,`number expected, ${r} found`)];if("minimum"in n){let r=n.minimum;if("array"===Fn(n.minimum)&&(r=n.minimum[t.arrayIndex]),i<r)return[new ir(e,i,`${i} is less than the minimum value ${r}`)]}if("maximum"in n){let r=n.maximum;if("array"===Fn(n.maximum)&&(r=n.maximum[t.arrayIndex]),i>r)return[new ir(e,i,`${i} is greater than the maximum value ${r}`)]}return[]}function sr(t){const e=t.valueSpec,i=ie(t.value.type);let n,r,o,s={};const a="categorical"!==i&&void 0===t.value.property,l=!a,c="array"===Fn(t.value.stops)&&"array"===Fn(t.value.stops[0])&&"object"===Fn(t.value.stops[0][0]),u=nr({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if("identity"===i)return[new ir(t.key,t.value,'identity function may not have a "stops" property')];let e=[];const n=t.value;return e=e.concat(rr({key:t.key,value:n,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:h})),"array"===Fn(n)&&0===n.length&&e.push(new ir(t.key,n,"array must have at least one stop")),e},default:function(t){return jr({key:t.key,value:t.value,valueSpec:e,style:t.style,styleSpec:t.styleSpec})}}});return"identity"===i&&a&&u.push(new ir(t.key,t.value,'missing required property "property"')),"identity"===i||t.value.stops||u.push(new ir(t.key,t.value,'missing required property "stops"')),"exponential"===i&&t.valueSpec.expression&&!Bn(t.valueSpec)&&u.push(new ir(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(l&&!zn(t.valueSpec)?u.push(new ir(t.key,t.value,"property functions not supported")):a&&!jn(t.valueSpec)&&u.push(new ir(t.key,t.value,"zoom functions not supported"))),"categorical"!==i&&!c||void 0!==t.value.property||u.push(new ir(t.key,t.value,'"property" property is required')),u;function h(t){let i=[];const n=t.value,a=t.key;if("array"!==Fn(n))return[new ir(a,n,`array expected, ${Fn(n)} found`)];if(2!==n.length)return[new ir(a,n,`array length 2 expected, length ${n.length} found`)];if(c){if("object"!==Fn(n[0]))return[new ir(a,n,`object expected, ${Fn(n[0])} found`)];if(void 0===n[0].zoom)return[new ir(a,n,"object stop key must have zoom")];if(void 0===n[0].value)return[new ir(a,n,"object stop key must have value")];const e=ie(n[0].zoom);if("number"!=typeof e)return[new ir(a,n[0].zoom,"stop zoom values must be numbers")];if(o&&o>e)return[new ir(a,n[0].zoom,"stop zoom values must appear in ascending order")];e!==o&&(o=e,r=void 0,s={}),i=i.concat(nr({key:a+"[0]",value:n[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:or,value:d}}))}else i=i.concat(d({key:a+"[0]",value:n[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},n));return Xn(ne(n[1]))?i.concat([new ir(a+"[1]",n[1],"expressions are not allowed in function stops.")]):i.concat(jr({key:a+"[1]",value:n[1],valueSpec:e,style:t.style,styleSpec:t.styleSpec}))}function d(t,o){const a=Fn(t.value),l=ie(t.value),c=null!==t.value?t.value:o;if(n){if(a!==n)return[new ir(t.key,c,`${a} stop domain type must match previous stop domain type ${n}`)]}else n=a;if("number"!==a&&"string"!==a&&"boolean"!==a&&"number"!=typeof l&&"string"!=typeof l&&"boolean"!=typeof l)return[new ir(t.key,c,"stop domain value must be a number, string, or boolean")];if("number"!==a&&"categorical"!==i){let n=`number expected, ${a} found`;return zn(e)&&void 0===i&&(n+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new ir(t.key,c,n)]}return"categorical"!==i||"number"!==a||"number"==typeof l&&isFinite(l)&&Math.floor(l)===l?"categorical"!==i&&"number"===a&&"number"==typeof l&&"number"==typeof r&&void 0!==r&&l<r?[new ir(t.key,c,"stop domain values must appear in ascending order")]:(r=l,"categorical"===i&&l in s?[new ir(t.key,c,"stop domain values must be unique")]:(s[l]=!0,[])):[new ir(t.key,c,"integer expected, found "+String(l))]}}function ar(t){const e=("property"===t.expressionContext?Jn:Qn)(ne(t.value),t.valueSpec);if("error"===e.result)return e.value.map(e=>new ir(`${t.key}${e.key}`,t.value,e.message));const i=e.value.expression||e.value._styleExpression.expression;if("property"===t.expressionContext&&"text-font"===t.propertyKey&&!i.outputDefined())return[new ir(t.key,t.value,`Invalid data expression for "${t.propertyKey}". Output values must be contained as literals within the expression.`)];if("property"===t.expressionContext&&"layout"===t.propertyType&&!xi(i))return[new ir(t.key,t.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===t.expressionContext)return lr(i,t);if(t.expressionContext&&0===t.expressionContext.indexOf("cluster")){if(!wi(i,["zoom","feature-state"]))return[new ir(t.key,t.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===t.expressionContext&&!bi(i))return[new ir(t.key,t.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function lr(t,e){const i=new Set(["zoom","feature-state","pitch","distance-from-center"]);if(e.valueSpec&&e.valueSpec.expression)for(const r of e.valueSpec.expression.parameters)i.delete(r);if(0===i.size)return[];const n=[];return t instanceof ti&&i.has(t.name)?[new ir(e.key,e.value,`["${t.name}"] expression is not supported in a filter for a ${e.object.type}
38 layer with id: ${e.object.id}`)]:(t.eachChild(t=>{n.push(...lr(t,e))}),n)}function cr(t){const e=t.key,i=t.value,n=t.valueSpec,r=[];return Array.isArray(n.values)?-1===n.values.indexOf(ie(i))&&r.push(new ir(e,i,`expected one of [${n.values.join(", ")}], ${JSON.stringify(i)} found`)):-1===Object.keys(n.values).indexOf(ie(i))&&r.push(new ir(e,i,`expected one of [${Object.keys(n.values).join(", ")}], ${JSON.stringify(i)} found`)),r}function ur(t){if(!0===t||!1===t)return!0;if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case"has":return t.length>=2&&"$id"!==t[1]&&"$type"!==t[1];case"in":return t.length>=3&&("string"!=typeof t[1]||Array.isArray(t[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(const e of t.slice(1))if(!ur(e)&&"boolean"!=typeof e)return!1;return!0;default:return!0}}function hr(t,e="fill"){if(null==t)return{filter:()=>!0,needGeometry:!1,needFeature:!1};ur(t)||(t=_r(t));const i=t;let n=!0;try{n=function(t){if(!pr(t))return t;let e=ne(t);return fr(e),e=dr(e),e}(i)}catch(t){console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.\nThis is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md\nand paste the contents of this message in the report.\nThank you!\nFilter Expression:\n${JSON.stringify(i,null,2)}\n `)}const r=te["filter_"+e],o=Qn(n,r);let s=null;if("error"===o.result)throw new Error(o.value.map(t=>`${t.key}: ${t.message}`).join(", "));s=(t,e,i)=>o.value.evaluate(t,e,{},i);let a=null,l=null;if(n!==i){const t=Qn(i,r);if("error"===t.result)throw new Error(t.value.map(t=>`${t.key}: ${t.message}`).join(", "));a=(e,i,n,r,o)=>t.value.evaluate(e,i,{},n,void 0,void 0,r,o),l=!bi(t.value.expression)}return{filter:s,dynamicFilter:a||void 0,needGeometry:yr(n),needFeature:!!l}}function dr(t){if(!Array.isArray(t))return t;const e=function(t){if(mr.has(t[0]))for(let e=1;e<t.length;e++)if(pr(t[e]))return!0;return t}(t);return!0===e?e:e.map(t=>dr(t))}function fr(t){let e=!1;const i=[];if("case"===t[0]){for(let n=1;n<t.length-1;n+=2)e=e||pr(t[n]),i.push(t[n+1]);i.push(t[t.length-1])}else if("match"===t[0]){e=e||pr(t[1]);for(let e=2;e<t.length-1;e+=2)i.push(t[e+1]);i.push(t[t.length-1])}else if("step"===t[0]){e=e||pr(t[1]);for(let e=1;e<t.length-1;e+=2)i.push(t[e+1])}e&&(t.length=0,t.push("any",...i));for(let n=1;n<t.length;n++)fr(t[n])}function pr(t){if(!Array.isArray(t))return!1;if("pitch"===(e=t[0])||"distance-from-center"===e)return!0;var e;for(let i=1;i<t.length;i++)if(pr(t[i]))return!0;return!1}const mr=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);function gr(t,e){return t<e?-1:t>e?1:0}function yr(t){if(!Array.isArray(t))return!1;if("within"===t[0])return!0;for(let e=1;e<t.length;e++)if(yr(t[e]))return!0;return!1}function _r(t){if(!t)return!0;const e=t[0];return t.length<=1?"any"!==e:"=="===e?vr(t[1],t[2],"=="):"!="===e?wr(vr(t[1],t[2],"==")):"<"===e||">"===e||"<="===e||">="===e?vr(t[1],t[2],e):"any"===e?(i=t.slice(1),["any"].concat(i.map(_r))):"all"===e?["all"].concat(t.slice(1).map(_r)):"none"===e?["all"].concat(t.slice(1).map(_r).map(wr)):"in"===e?br(t[1],t.slice(2)):"!in"===e?wr(br(t[1],t.slice(2))):"has"===e?xr(t[1]):"!has"===e?wr(xr(t[1])):"within"!==e||t;var i}function vr(t,e,i){switch(t){case"$type":return["filter-type-"+i,e];case"$id":return["filter-id-"+i,e];default:return["filter-"+i,t,e]}}function br(t,e){if(0===e.length)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some(t=>typeof t!=typeof e[0])?["filter-in-large",t,["literal",e.sort(gr)]]:["filter-in-small",t,["literal",e]]}}function xr(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function wr(t){return["!",t]}function Er(t){return ur(ne(t.value))?ar(ee({},t,{expressionContext:"filter",valueSpec:t.styleSpec["filter_"+(t.layerType||"fill")]})):Tr(t)}function Tr(t){const e=t.value,i=t.key;if("array"!==Fn(e))return[new ir(i,e,`array expected, ${Fn(e)} found`)];const n=t.styleSpec;let r,o=[];if(e.length<1)return[new ir(i,e,"filter array must have at least 1 element")];switch(o=o.concat(cr({key:i+"[0]",value:e[0],valueSpec:n.filter_operator,style:t.style,styleSpec:t.styleSpec})),ie(e[0])){case"<":case"<=":case">":case">=":e.length>=2&&"$type"===ie(e[1])&&o.push(new ir(i,e,`"$type" cannot be use with operator "${e[0]}"`));case"==":case"!=":3!==e.length&&o.push(new ir(i,e,`filter array for operator "${e[0]}" must have 3 elements`));case"in":case"!in":e.length>=2&&(r=Fn(e[1]),"string"!==r&&o.push(new ir(i+"[1]",e[1],`string expected, ${r} found`)));for(let s=2;s<e.length;s++)r=Fn(e[s]),"$type"===ie(e[1])?o=o.concat(cr({key:`${i}[${s}]`,value:e[s],valueSpec:n.geometry_type,style:t.style,styleSpec:t.styleSpec})):"string"!==r&&"number"!==r&&"boolean"!==r&&o.push(new ir(`${i}[${s}]`,e[s],`string, number, or boolean expected, ${r} found`));break;case"any":case"all":case"none":for(let n=1;n<e.length;n++)o=o.concat(Tr({key:`${i}[${n}]`,value:e[n],style:t.style,styleSpec:t.styleSpec}));break;case"has":case"!has":r=Fn(e[1]),2!==e.length?o.push(new ir(i,e,`filter array for "${e[0]}" operator must have 2 elements`)):"string"!==r&&o.push(new ir(i+"[1]",e[1],`string expected, ${r} found`));break;case"within":r=Fn(e[1]),2!==e.length?o.push(new ir(i,e,`filter array for "${e[0]}" operator must have 2 elements`)):"object"!==r&&o.push(new ir(i+"[1]",e[1],`object expected, ${r} found`))}return o}function Sr(t,e){const i=t.key,n=t.style,r=t.styleSpec,o=t.value,s=t.objectKey,a=r[`${e}_${t.layerType}`];if(!a)return[];const l=s.match(/^(.*)-transition$/);if("paint"===e&&l&&a[l[1]]&&a[l[1]].transition)return jr({key:i,value:o,valueSpec:r.transition,style:n,styleSpec:r});const c=t.valueSpec||a[s];if(!c)return[new ir(i,o,`unknown property "${s}"`)];let u;if("string"===Fn(o)&&zn(c)&&!c.tokens&&(u=/^{([^}]+)}$/.exec(o))){const t=`\`{ "type": "identity", "property": ${u?JSON.stringify(u[1]):'"_"'} }\``;return[new ir(i,o,`"${s}" does not support interpolation syntax\nUse an identity property function instead: ${t}.`)]}const h=[];return"symbol"===t.layerType&&("text-field"===s&&n&&!n.glyphs&&h.push(new ir(i,o,'use of "text-field" requires a style "glyphs" property')),"text-font"===s&&Nn(ne(o))&&"identity"===ie(o.type)&&h.push(new ir(i,o,'"text-font" does not support identity functions'))),h.concat(jr({key:t.key,value:o,valueSpec:c,style:n,styleSpec:r,expressionContext:"property",propertyType:e,propertyKey:s}))}function kr(t){return Sr(t,"paint")}function Or(t){return Sr(t,"layout")}function Ar(t){let e=[];const i=t.value,n=t.key,r=t.style,o=t.styleSpec;i.type||i.ref||e.push(new ir(n,i,'either "type" or "ref" is required'));let s=ie(i.type);const a=ie(i.ref);
vendor: 11,795 bytes, line 38
38if(i.id){const o=ie(i.id);for(let s=0;s<t.arrayIndex;s++){const t=r.layers[s];ie(t.id)===o&&e.push(new ir(n,i.id,`duplicate layer id "${i.id}", previously used at line ${t.id.__line__}`))}}if("ref"in i){let t;["type","source","source-layer","filter","layout"].forEach(t=>{t in i&&e.push(new ir(n,i[t],`"${t}" is prohibited for ref layers`))}),r.layers.forEach(e=>{ie(e.id)===a&&(t=e)}),t?t.ref?e.push(new ir(n,i.ref,"ref cannot reference another ref layer")):s=ie(t.type):"string"==typeof a&&e.push(new ir(n,i.ref,`ref layer "${a}" not found`))}else if("background"!==s&&"sky"!==s)if(i.source){const t=r.sources&&r.sources[i.source],o=t&&ie(t.type);t?"vector"===o&&"raster"===s?e.push(new ir(n,i.source,`layer "${i.id}" requires a raster source`)):"raster"===o&&"raster"!==s?e.push(new ir(n,i.source,`layer "${i.id}" requires a vector source`)):"vector"!==o||i["source-layer"]?"raster-dem"===o&&"hillshade"!==s?e.push(new ir(n,i.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==s||!i.paint||!i.paint["line-gradient"]&&!i.paint["line-trim-offset"]||"geojson"===o&&t.lineMetrics||e.push(new ir(n,i,`layer "${i.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new ir(n,i,`layer "${i.id}" must specify a "source-layer"`)):e.push(new ir(n,i.source,`source "${i.source}" not found`))}else e.push(new ir(n,i,'missing required property "source"'));return e=e.concat(nr({key:n,value:i,valueSpec:o.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":()=>[],type:()=>jr({key:n+".type",value:i.type,valueSpec:o.layer.type,style:t.style,styleSpec:t.styleSpec,object:i,objectKey:"type"}),filter:t=>Er(ee({layerType:s},t)),layout:t=>nr({layer:i,key:t.key,value:t.value,valueSpec:{},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":t=>Or(ee({layerType:s},t))}}),paint:t=>nr({layer:i,key:t.key,value:t.value,valueSpec:{},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":t=>kr(ee({layerType:s},t))}})}})),e}function Cr(t){const e=t.value,i=t.key,n=Fn(e);return"string"!==n?[new ir(i,e,`string expected, ${n} found`)]:[]}const Ir={promoteId:function({key:t,value:e}){if("string"===Fn(e))return Cr({key:t,value:e});{const i=[];for(const n in e)i.push(...Cr({key:`${t}.${n}`,value:e[n]}));return i}}};function Mr(t){const e=t.value,i=t.key,n=t.styleSpec,r=t.style;if(!e.type)return[new ir(i,e,'"type" is required')];const o=ie(e.type);let s;switch(o){case"vector":case"raster":case"raster-dem":return s=nr({key:i,value:e,valueSpec:n["source_"+o.replace("-","_")],style:t.style,styleSpec:n,objectElementValidators:Ir}),s;case"geojson":if(s=nr({key:i,value:e,valueSpec:n.source_geojson,style:r,styleSpec:n,objectElementValidators:Ir}),e.cluster)for(const t in e.clusterProperties){const[n,r]=e.clusterProperties[t],o="string"==typeof n?[n,["accumulated"],["get",t]]:n;s.push(...ar({key:`${i}.${t}.map`,value:r,expressionContext:"cluster-map"})),s.push(...ar({key:`${i}.${t}.reduce`,value:o,expressionContext:"cluster-reduce"}))}return s;case"video":return nr({key:i,value:e,valueSpec:n.source_video,style:r,styleSpec:n});case"image":return nr({key:i,value:e,valueSpec:n.source_image,style:r,styleSpec:n});case"canvas":return[new ir(i,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return cr({key:i+".type",value:e.type,valueSpec:{values:Pr(n)},style:r,styleSpec:n})}}function Pr(t){return t.source.reduce((e,i)=>{const n=t[i];return"enum"===n.type.type&&(e=e.concat(Object.keys(n.type.values))),e},[])}function Dr(t){const e=t.value,i=t.styleSpec,n=i.light,r=t.style;let o=[];const s=Fn(e);if(void 0===e)return o;if("object"!==s)return o=o.concat([new ir("light",e,`object expected, ${s} found`)]),o;for(const a in e){const t=a.match(/^(.*)-transition$/);o=o.concat(t&&n[t[1]]&&n[t[1]].transition?jr({key:a,value:e[a],valueSpec:i.transition,style:r,styleSpec:i}):n[a]?jr({key:a,value:e[a],valueSpec:n[a],style:r,styleSpec:i}):[new ir(a,e[a],`unknown property "${a}"`)])}return o}function Lr(t){const e=t.value,i=t.key,n=t.style,r=t.styleSpec,o=r.terrain;let s=[];const a=Fn(e);if(void 0===e)return s;if("object"!==a)return s=s.concat([new ir("terrain",e,`object expected, ${a} found`)]),s;for(const l in e){const t=l.match(/^(.*)-transition$/);s=s.concat(t&&o[t[1]]&&o[t[1]].transition?jr({key:l,value:e[l],valueSpec:r.transition,style:n,styleSpec:r}):o[l]?jr({key:l,value:e[l],valueSpec:o[l],style:n,styleSpec:r}):[new ir(l,e[l],`unknown property "${l}"`)])}if(e.source){const t=n.sources&&n.sources[e.source],r=t&&ie(t.type);t?"raster-dem"!==r&&s.push(new ir(i,e.source,`terrain cannot be used with a source of type ${String(r)}, it only be used with a "raster-dem" source type`)):s.push(new ir(i,e.source,`source "${e.source}" not found`))}else s.push(new ir(i,e,'terrain is missing required property "source"'));return s}function Rr(t){const e=t.value,i=t.style,n=t.styleSpec,r=n.fog;let o=[];const s=Fn(e);if(void 0===e)return o;if("object"!==s)return o=o.concat([new ir("fog",e,`object expected, ${s} found`)]),o;for(const a in e){const t=a.match(/^(.*)-transition$/);o=o.concat(t&&r[t[1]]&&r[t[1]].transition?jr({key:a,value:e[a],valueSpec:n.transition,style:i,styleSpec:n}):r[a]?jr({key:a,value:e[a],valueSpec:r[a],style:i,styleSpec:n}):[new ir(a,e[a],`unknown property "${a}"`)])}return o}const zr={"*":()=>[],array:rr,boolean:function(t){const e=t.value,i=t.key,n=Fn(e);return"boolean"!==n?[new ir(i,e,`boolean expected, ${n} found`)]:[]},number:or,color:function(t){const e=t.key,i=t.value,n=Fn(i);return"string"!==n?[new ir(e,i,`color expected, ${n} found`)]:null===Te(i)?[new ir(e,i,`color expected, "${i}" found`)]:[]},enum:cr,filter:Er,function:sr,layer:Ar,object:nr,source:Mr,light:Dr,terrain:Lr,fog:Rr,string:Cr,formatted:function(t){return 0===Cr(t).length?[]:ar(t)},resolvedImage:function(t){return 0===Cr(t).length?[]:ar(t)},projection:function(t){const e=t.value,i=t.styleSpec,n=i.projection,r=t.style;let o=[];const s=Fn(e);if("object"===s)for(const a in e)o=o.concat(jr({key:a,value:e[a],valueSpec:n[a],style:r,styleSpec:i}));else"string"!==s&&(o=o.concat([new ir("projection",e,`object or string expected, ${s} found`)]));return o}};function jr(t){const e=t.value,i=t.valueSpec,n=t.styleSpec;return i.expression&&Nn(ie(e))?sr(t):i.expression&&Xn(ne(e))?ar(t):i.type&&zr[i.type]?zr[i.type](t):nr(ee({},t,{valueSpec:i.type?n[i.type]:i}))}function Br(t){const e=t.value,i=t.key,n=Cr(t);return n.length||(-1===e.indexOf("{fontstack}")&&n.push(new ir(i,e,'"glyphs" url must include a "{fontstack}" token')),-1===e.indexOf("{range}")&&n.push(new ir(i,e,'"glyphs" url must include a "{range}" token'))),n}function Fr(t,e=te){return $r(jr({key:"",value:t,valueSpec:e.$root,styleSpec:e,style:t,objectElementValidators:{glyphs:Br,"*":()=>[]}}))}const Nr=t=>$r(kr(t)),Vr=t=>$r(Or(t));function $r(t){return t.slice().sort((t,e)=>t.line&&e.line?t.line-e.line:0)}function Ur(t,e){let i=!1;if(e&&e.length)for(const n of e)t.fire(new Kt(new Error(n.message))),i=!0;return i}var qr=Wr,Gr=3;function Wr(t,e,i){var n=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var r=new Int32Array(this.arrayBuffer);t=r[0],this.d=(e=r[1])+2*(i=r[2]);for(var o=0;o<this.d*this.d;o++){var s=r[Gr+o],a=r[Gr+o+1];n.push(s===a?null:r.subarray(s,a))}var l=r[Gr+n.length+1];this.keys=r.subarray(r[Gr+n.length],l),this.bboxes=r.subarray(l),this.insert=this._insertReadonly}else{this.d=e+2*i;for(var c=0;c<this.d*this.d;c++)n.push([]);this.keys=[],this.bboxes=[]}this.n=e,this.extent=t,this.padding=i,this.scale=e/t,this.uid=0;var u=i/e*t;this.min=-u,this.max=t+u}Wr.prototype.insert=function(t,e,i,n,r){this._forEachCell(e,i,n,r,this._insertCell,this.uid++),this.keys.push(t),this.bboxes.push(e),this.bboxes.push(i),this.bboxes.push(n),this.bboxes.push(r)},Wr.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},Wr.prototype._insertCell=function(t,e,i,n,r,o){this.cells[r].push(o)},Wr.prototype.query=function(t,e,i,n,r){var o=this.min,s=this.max;if(t<=o&&e<=o&&s<=i&&s<=n&&!r)return Array.prototype.slice.call(this.keys);var a=[];return this._forEachCell(t,e,i,n,this._queryCell,a,{},r),a},Wr.prototype._queryCell=function(t,e,i,n,r,o,s,a){var l=this.cells[r];if(null!==l)for(var c=this.keys,u=this.bboxes,h=0;h<l.length;h++){var d=l[h];if(void 0===s[d]){var f=4*d;(a?a(u[f+0],u[f+1],u[f+2],u[f+3]):t<=u[f+2]&&e<=u[f+3]&&i>=u[f+0]&&n>=u[f+1])?(s[d]=!0,o.push(c[d])):s[d]=!1}}},Wr.prototype._forEachCell=function(t,e,i,n,r,o,s,a){for(var l=this._convertToCellCoord(t),c=this._convertToCellCoord(e),u=this._convertToCellCoord(i),h=this._convertToCellCoord(n),d=l;d<=u;d++)for(var f=c;f<=h;f++){var p=this.d*f+d;if((!a||a(this._convertFromCellCoord(d),this._convertFromCellCoord(f),this._convertFromCellCoord(d+1),this._convertFromCellCoord(f+1)))&&r.call(this,t,e,i,n,p,o,s,a))return}},Wr.prototype._convertFromCellCoord=function(t){return(t-this.padding)/this.scale},Wr.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},Wr.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=Gr+this.cells.length+1+1,i=0,n=0;n<this.cells.length;n++)i+=this.cells[n].length;var r=new Int32Array(e+i+this.keys.length+this.bboxes.length);r[0]=this.extent,r[1]=this.n,r[2]=this.padding;for(var o=e,s=0;s<t.length;s++){var a=t[s];r[Gr+s]=o,r.set(a,o),o+=a.length}return r[Gr+t.length]=o,r.set(this.keys,o),r[Gr+t.length+1]=o+=this.keys.length,r.set(this.bboxes,o),o+=this.bboxes.length,r.buffer};var Zr=d(qr);const Hr={};function Xr(t,e,i={}){Object.defineProperty(t,"_classRegistryKey",{value:e,writeable:!1}),Hr[e]={klass:t,omit:i.omit||[]}}Xr(Object,"Object"),Zr.serialize=function(t,e){const i=t.toArrayBuffer();return e&&e.push(i),{buffer:i}},Zr.deserialize=function(t){return new Zr(t.buffer)},Object.defineProperty(Zr,"name",{value:"Grid"}),Xr(Zr,"Grid"),Xr(Me,"Color"),Xr(Error,"Error"),Xr(ct,"AJAXError"),Xr(Re,"ResolvedImage"),Xr(tr,"StylePropertyFunction"),Xr(Hn,"StyleExpression",{omit:["_evaluator"]}),Xr(Kn,"ZoomDependentExpression"),Xr(Yn,"ZoomConstantExpression"),Xr(ti,"CompoundExpression",{omit:["_evaluate"]});for(const Em in Dn)Hr[Dn[Em]._classRegistryKey]||Xr(Dn[Em],"Expression"+Em);function Qr(t){return t&&"undefined"!=typeof ArrayBuffer&&(t instanceof ArrayBuffer||t.constructor&&"ArrayBuffer"===t.constructor.name)}function Yr(t){return e.ImageBitmap&&t instanceof e.ImageBitmap}function Kr(t,i){if(null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp)return t;if(Qr(t)||Yr(t))return i&&i.push(t),t;if(ArrayBuffer.isView(t)){const e=t;return i&&i.push(e.buffer),e}if(t instanceof e.ImageData)return i&&i.push(t.data.buffer),t;if(Array.isArray(t)){const e=[];for(const n of t)e.push(Kr(n,i));return e}if("object"==typeof t){const e=t.constructor,n=e._classRegistryKey;if(!n)throw new Error("can't serialize object of unregistered class "+n);const r=e.serialize?e.serialize(t,i):{};if(!e.serialize){for(const e in t)t.hasOwnProperty(e)&&(Hr[n].omit.indexOf(e)>=0||(r[e]=Kr(t[e],i)));t instanceof Error&&(r.message=t.message)}if(r.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==n&&(r.$name=n),r}throw new Error("can't serialize object of type "+typeof t)}function Jr(t){if(null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||Qr(t)||Yr(t)||ArrayBuffer.isView(t)||t instanceof e.ImageData)return t;if(Array.isArray(t))return t.map(Jr);
vendor: 4,880 bytes, line 38
38if("object"==typeof t){const e=t.$name||"Object",{klass:i}=Hr[e];if(!i)throw new Error("can't deserialize unregistered class "+e);if(i.deserialize)return i.deserialize(t);const n=Object.create(i.prototype);for(const r of Object.keys(t))"$name"!==r&&(n[r]=Jr(t[r]));return n}throw new Error("can't deserialize object of type "+typeof t)}const to={"Latin-1 Supplement":t=>t>=128&&t<=255,Arabic:t=>t>=1536&&t<=1791,"Arabic Supplement":t=>t>=1872&&t<=1919,"Arabic Extended-A":t=>t>=2208&&t<=2303,"Hangul Jamo":t=>t>=4352&&t<=4607,"Unified Canadian Aboriginal Syllabics":t=>t>=5120&&t<=5759,Khmer:t=>t>=6016&&t<=6143,"Unified Canadian Aboriginal Syllabics Extended":t=>t>=6320&&t<=6399,"General Punctuation":t=>t>=8192&&t<=8303,"Letterlike Symbols":t=>t>=8448&&t<=8527,"Number Forms":t=>t>=8528&&t<=8591,"Miscellaneous Technical":t=>t>=8960&&t<=9215,"Control Pictures":t=>t>=9216&&t<=9279,"Optical Character Recognition":t=>t>=9280&&t<=9311,"Enclosed Alphanumerics":t=>t>=9312&&t<=9471,"Geometric Shapes":t=>t>=9632&&t<=9727,"Miscellaneous Symbols":t=>t>=9728&&t<=9983,"Miscellaneous Symbols and Arrows":t=>t>=11008&&t<=11263,"CJK Radicals Supplement":t=>t>=11904&&t<=12031,"Kangxi Radicals":t=>t>=12032&&t<=12255,"Ideographic Description Characters":t=>t>=12272&&t<=12287,"CJK Symbols and Punctuation":t=>t>=12288&&t<=12351,Hiragana:t=>t>=12352&&t<=12447,Katakana:t=>t>=12448&&t<=12543,Bopomofo:t=>t>=12544&&t<=12591,"Hangul Compatibility Jamo":t=>t>=12592&&t<=12687,Kanbun:t=>t>=12688&&t<=12703,"Bopomofo Extended":t=>t>=12704&&t<=12735,"CJK Strokes":t=>t>=12736&&t<=12783,"Katakana Phonetic Extensions":t=>t>=12784&&t<=12799,"Enclosed CJK Letters and Months":t=>t>=12800&&t<=13055,"CJK Compatibility":t=>t>=13056&&t<=13311,"CJK Unified Ideographs Extension A":t=>t>=13312&&t<=19903,"Yijing Hexagram Symbols":t=>t>=19904&&t<=19967,"CJK Unified Ideographs":t=>t>=19968&&t<=40959,"Yi Syllables":t=>t>=40960&&t<=42127,"Yi Radicals":t=>t>=42128&&t<=42191,"Hangul Jamo Extended-A":t=>t>=43360&&t<=43391,"Hangul Syllables":t=>t>=44032&&t<=55215,"Hangul Jamo Extended-B":t=>t>=55216&&t<=55295,"Private Use Area":t=>t>=57344&&t<=63743,"CJK Compatibility Ideographs":t=>t>=63744&&t<=64255,"Arabic Presentation Forms-A":t=>t>=64336&&t<=65023,"Vertical Forms":t=>t>=65040&&t<=65055,"CJK Compatibility Forms":t=>t>=65072&&t<=65103,"Small Form Variants":t=>t>=65104&&t<=65135,"Arabic Presentation Forms-B":t=>t>=65136&&t<=65279,"Halfwidth and Fullwidth Forms":t=>t>=65280&&t<=65519};function eo(t){for(const e of t)if(ro(e.charCodeAt(0)))return!0;return!1}function io(t){for(const e of t)if(!no(e.charCodeAt(0)))return!1;return!0}function no(t){return!(to.Arabic(t)||to["Arabic Supplement"](t)||to["Arabic Extended-A"](t)||to["Arabic Presentation Forms-A"](t)||to["Arabic Presentation Forms-B"](t))}function ro(t){return!(746!==t&&747!==t&&(t<4352||!(to["Bopomofo Extended"](t)||to.Bopomofo(t)||to["CJK Compatibility Forms"](t)&&!(t>=65097&&t<=65103)||to["CJK Compatibility Ideographs"](t)||to["CJK Compatibility"](t)||to["CJK Radicals Supplement"](t)||to["CJK Strokes"](t)||!(!to["CJK Symbols and Punctuation"](t)||t>=12296&&t<=12305||t>=12308&&t<=12319||12336===t)||to["CJK Unified Ideographs Extension A"](t)||to["CJK Unified Ideographs"](t)||to["Enclosed CJK Letters and Months"](t)||to["Hangul Compatibility Jamo"](t)||to["Hangul Jamo Extended-A"](t)||to["Hangul Jamo Extended-B"](t)||to["Hangul Jamo"](t)||to["Hangul Syllables"](t)||to.Hiragana(t)||to["Ideographic Description Characters"](t)||to.Kanbun(t)||to["Kangxi Radicals"](t)||to["Katakana Phonetic Extensions"](t)||to.Katakana(t)&&12540!==t||!(!to["Halfwidth and Fullwidth Forms"](t)||65288===t||65289===t||65293===t||t>=65306&&t<=65310||65339===t||65341===t||65343===t||t>=65371&&t<=65503||65507===t||t>=65512&&t<=65519)||!(!to["Small Form Variants"](t)||t>=65112&&t<=65118||t>=65123&&t<=65126)||to["Unified Canadian Aboriginal Syllabics"](t)||to["Unified Canadian Aboriginal Syllabics Extended"](t)||to["Vertical Forms"](t)||to["Yijing Hexagram Symbols"](t)||to["Yi Syllables"](t)||to["Yi Radicals"](t))))}function oo(t){return!(ro(t)||function(t){return!!(to["Latin-1 Supplement"](t)&&(167===t||169===t||174===t||177===t||188===t||189===t||190===t||215===t||247===t)||to["General Punctuation"](t)&&(8214===t||8224===t||8225===t||8240===t||8241===t||8251===t||8252===t||8258===t||8263===t||8264===t||8265===t||8273===t)||to["Letterlike Symbols"](t)||to["Number Forms"](t)||to["Miscellaneous Technical"](t)&&(t>=8960&&t<=8967||t>=8972&&t<=8991||t>=8996&&t<=9e3||9003===t||t>=9085&&t<=9114||t>=9150&&t<=9165||9167===t||t>=9169&&t<=9179||t>=9186&&t<=9215)||to["Control Pictures"](t)&&9251!==t||to["Optical Character Recognition"](t)||to["Enclosed Alphanumerics"](t)||to["Geometric Shapes"](t)||to["Miscellaneous Symbols"](t)&&!(t>=9754&&t<=9759)||to["Miscellaneous Symbols and Arrows"](t)&&(t>=11026&&t<=11055||t>=11088&&t<=11097||t>
vendor: 27,335 bytes, line 38
38=11192&&t<=11243)||to["CJK Symbols and Punctuation"](t)||to.Katakana(t)||to["Private Use Area"](t)||to["CJK Compatibility Forms"](t)||to["Small Form Variants"](t)||to["Halfwidth and Fullwidth Forms"](t)||8734===t||8756===t||8757===t||t>=9984&&t<=10087||t>=10102&&t<=10131||65532===t||65533===t)}(t))}function so(t){return t>=1424&&t<=2303||to["Arabic Presentation Forms-A"](t)||to["Arabic Presentation Forms-B"](t)}function ao(t,e){return!(!e&&so(t)||t>=2304&&t<=3583||t>=3840&&t<=4255||to.Khmer(t))}function lo(t){for(const e of t)if(so(e.charCodeAt(0)))return!0;return!1}const co="deferred",uo="loading",ho="loaded";let fo=null,po="unavailable",mo=null;const go=function(t){t&&"string"==typeof t&&t.indexOf("NetworkError")>-1&&(po="error"),fo&&fo(t)};function yo(){_o.fire(new Yt("pluginStateChange",{pluginStatus:po,pluginURL:mo}))}const _o=new Jt,vo=function(){return po},bo=function(){if(po!==co||!mo)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");po=uo,yo(),mo&&dt({url:mo},t=>{t?go(t):(po=ho,yo())})},xo={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>po===ho||null!=xo.applyArabicShaping,isLoading:()=>po===uo,setState(t){po=t.pluginStatus,mo=t.pluginURL},isParsed:()=>null!=xo.applyArabicShaping&&null!=xo.processBidirectionalText&&null!=xo.processStyledBidirectionalText,getPluginURL:()=>mo};class wo{constructor(t,e){this.zoom=t,e?(this.now=e.now,this.fadeDuration=e.fadeDuration,this.transition=e.transition,this.pitch=e.pitch):(this.now=0,this.fadeDuration=0,this.transition={},this.pitch=0)}isSupportedScript(t){return function(t,e){for(const i of t)if(!ao(i.charCodeAt(0),e))return!1;return!0}(t,xo.isLoaded())}}class Eo{constructor(t,e){this.property=t,this.value=e,this.expression=function(t,e){if(Nn(t))return new tr(t,e);if(Xn(t)){const i=Jn(t,e);if("error"===i.result)throw new Error(i.value.map(t=>`${t.key}: ${t.message}`).join(", "));return i.value}{let i=t;return"string"==typeof t&&"color"===e.type&&(i=Me.parse(t)),{kind:"constant",evaluate:()=>i}}}(void 0===e?t.specification.default:e,t.specification)}isDataDriven(){return"source"===this.expression.kind||"composite"===this.expression.kind}possiblyEvaluate(t,e,i){return this.property.possiblyEvaluate(this,t,e,i)}}class To{constructor(t){this.property=t,this.value=new Eo(t,void 0)}transitioned(t,e){return new ko(this.property,this.value,e,P({},t.transition,this.transition),t.now)}untransitioned(){return new ko(this.property,this.value,null,{},0)}}class So{constructor(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)}getValue(t){return $(this._values[t].value.value)}setValue(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new To(this._values[t].property)),this._values[t].value=new Eo(this._values[t].property,null===e?void 0:$(e))}getTransition(t){return $(this._values[t].transition)}setTransition(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new To(this._values[t].property)),this._values[t].transition=$(e)||void 0}serialize(){const t={};for(const e of Object.keys(this._values)){const i=this.getValue(e);void 0!==i&&(t[e]=i);const n=this.getTransition(e);void 0!==n&&(t[e+"-transition"]=n)}return t}transitioned(t,e){const i=new Oo(this._properties);for(const n of Object.keys(this._values))i._values[n]=this._values[n].transitioned(t,e._values[n]);return i}untransitioned(){const t=new Oo(this._properties);for(const e of Object.keys(this._values))t._values[e]=this._values[e].untransitioned();return t}}class ko{constructor(t,e,i,n,r){const o=n.delay||0,s=n.duration||0;r=r||0,this.property=t,this.value=e,this.begin=r+o,this.end=this.begin+s,t.specification.transition&&(n.delay||n.duration)&&(this.prior=i)}possiblyEvaluate(t,e,i){const n=t.now||0,r=this.value.possiblyEvaluate(t,e,i),o=this.prior;if(o){if(n>this.end)return this.prior=null,r;if(this.value.isDataDriven())return this.prior=null,r;if(n<this.begin)return o.possiblyEvaluate(t,e,i);{const s=(n-this.begin)/(this.end-this.begin);return this.property.interpolate(o.possiblyEvaluate(t,e,i),r,T(s))}}return r}}class Oo{constructor(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)}possiblyEvaluate(t,e,i){const n=new Io(this._properties);for(const r of Object.keys(this._values))n._values[r]=this._values[r].possiblyEvaluate(t,e,i);return n}hasTransition(){for(const t of Object.keys(this._values))if(this._values[t].prior)return!0;return!1}}class Ao{constructor(t){this._properties=t,this._values=Object.create(t.defaultPropertyValues)}getValue(t){return $(this._values[t].value)}setValue(t,e){this._values[t]=new Eo(this._values[t].property,null===e?void 0:$(e))}serialize(){const t={};for(const e of Object.keys(this._values)){const i=this.getValue(e);void 0!==i&&(t[e]=i)}return t}possiblyEvaluate(t,e,i){const n=new Io(this._properties);for(const r of Object.keys(this._values))n._values[r]=this._values[r].possiblyEvaluate(t,e,i);return n}}class Co{constructor(t,e,i){this.property=t,this.value=e,this.parameters=i}isConstant(){return"constant"===this.value.kind}constantOr(t){return"constant"===this.value.kind?this.value.value:t}evaluate(t,e,i,n){return this.property.evaluate(this.value,this.parameters,t,e,i,n)}}class Io{constructor(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues)}get(t){return this._values[t]}}class Mo{constructor(t){this.specification=t}possiblyEvaluate(t,e){return t.expression.evaluate(e)}interpolate(t,e,i){const n=Pi[this.specification.type];return n?n(t,e,i):t}}class Po{constructor(t,e){this.specification=t,this.overrides=e}possiblyEvaluate(t,e,i,n){return new Co(this,"constant"===t.expression.kind||"camera"===t.expression.kind?{kind:"constant",value:t.expression.evaluate(e,null,{},i,n)}:t.expression,e)}interpolate(t,e,i){if("constant"!==t.value.kind||"constant"!==e.value.kind)return t;if(void 0===t.value.value||void 0===e.value.value)return new Co(this,{kind:"constant",value:void 0},t.parameters);const n=Pi[this.specification.type];return n?new Co(this,{kind:"constant",value:n(t.value.value,e.value.value,i)},t.parameters):t}evaluate(t,e,i,n,r,o){return"constant"===t.kind?t.value:t.evaluate(e,i,n,r,o)}}class Do{constructor(t){this.specification=t}possiblyEvaluate(t,e,i,n){return!!t.expression.evaluate(e,null,{},i,n)}interpolate(){return!1}}class Lo{constructor(t){this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];const e=new wo(0,{});for(const i in t){const n=t[i];n.specification.overridable&&this.overridableProperties.push(i);const r=this.defaultPropertyValues[i]=new Eo(n,void 0),o=this.defaultTransitionablePropertyValues[i]=new To(n);this.defaultTransitioningPropertyValues[i]=o.untransitioned(),this.defaultPossiblyEvaluatedValues[i]=r.possiblyEvaluate(e)}}}function Ro(t,e){return 256*(t=O(Math.floor(t),0,255))+O(Math.floor(e),0,255)}Xr(Po,"DataDrivenProperty"),Xr(Mo,"DataConstantProperty"),Xr(Do,"ColorRampProperty");const zo={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class jo{constructor(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class Bo{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(t,e){return t._trim(),e&&(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}}static deserialize(t){const e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(t){this.reserve(t),this.length=t}reserve(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const e=this.uint8;this._refreshViews(),e&&this.uint8.set(e)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}destroy(){this.int8=this.uint8=this.int16=this.uint16=this.int32=this.uint32=this.float32=null,this.arrayBuffer=null}}function Fo(t,e=1){let i=0,n=0;return{members:t.map(t=>{const r=zo[t.type].BYTES_PER_ELEMENT,o=i=No(i,Math.max(e,r)),s=t.components||1;return n=Math.max(n,r),i+=r*s,{name:t.name,type:t.type,components:s,offset:o}}),size:No(i,Math.max(n,e)),alignment:e}}function No(t,e){return Math.ceil(t/e)*e}class Vo extends Bo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e){const i=this.length;return this.resize(i+1),this.emplace(i,t,e)}emplace(t,e,i){const n=2*t;return this.int16[n+0]=e,this.int16[n+1]=i,t}}Vo.prototype.bytesPerElement=4,Xr(Vo,"StructArrayLayout2i4");class $o extends Bo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,i){const n=this.length;return this.resize(n+1),this.emplace(n,t,e,i)}emplace(t,e,i,n){const r=3*t;return this.int16[r+0]=e,this.int16[r+1]=i,this.int16[r+2]=n,t}}$o.prototype.bytesPerElement=6,Xr($o,"StructArrayLayout3i6");class Uo extends Bo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,i,n){const r=this.length;return this.resize(r+1),this.emplace(r,t,e,i,n)}emplace(t,e,i,n,r){const o=4*t;return this.int16[o+0]=e,this.int16[o+1]=i,this.int16[o+2]=n,this.int16[o+3]=r,t}}Uo.prototype.bytesPerElement=8,Xr(Uo,"StructArrayLayout4i8");class qo extends Bo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,i,n,r,o,s){const a=this.length;return this.resize(a+1),this.emplace(a,t,e,i,n,r,o,s)}emplace(t,e,i,n,r,o,s,a){const l=6*t,c=12*t,u=3*t;return this.int16[l+0]=e,this.int16[l+1]=i,this.uint8[c+4]=n,this.uint8[c+5]=r,this.uint8[c+6]=o,this.uint8[c+7]=s,this.float32[u+2]=a,t}}qo.prototype.bytesPerElement=12,Xr(qo,"StructArrayLayout2i4ub1f12");class Go extends Bo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,i,n){const r=this.length;return this.resize(r+1),this.emplace(r,t,e,i,n)}emplace(t,e,i,n,r){const o=4*t;return this.float32[o+0]=e,this.float32[o+1]=i,this.float32[o+2]=n,this.float32[o+3]=r,t}}Go.prototype.bytesPerElement=16,Xr(Go,"StructArrayLayout4f16");class Wo extends Bo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,i,n,r){const o=this.length;return this.resize(o+1),this.emplace(o,t,e,i,n,r)}emplace(t,e,i,n,r,o){const s=6*t,a=3*t;return this.uint16[s+0]=e,this.uint16[s+1]=i,this.uint16[s+2]=n,this.uint16[s+3]=r,this.float32[a+2]=o,t}}Wo.prototype.bytesPerElement=12,Xr(Wo,"StructArrayLayout4ui1f12");class Zo extends Bo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,i,n){const r=this.length;return this.resize(r+1),this.emplace(r,t,e,i,n)}emplace(t,e,i,n,r){const o=4*t;return this.uint16[o+0]=e,this.uint16[o+1]=i,this.uint16[o+2]=n,this.uint16[o+3]=r,t}}Zo.prototype.bytesPerElement=8,Xr(Zo,"StructArrayLayout4ui8");class Ho extends Bo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,i,n,r,o){const s=this.length;return this.resize(s+1),this.emplace(s,t,e,i,n,r,o)}emplace(t,e,i,n,r,o,s){const a=6*t;return this.int16[a+0]=e,this.int16[a+1]=i,this.int16[a+2]=n,this.int16[a+3]=r,this.int16[a+4]=o,this.int16[a+5]=s,t}}Ho.prototype.bytesPerElement=12,Xr(Ho,"StructArrayLayout6i12");class Xo extends Bo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,i,n,r,o,s,a,l,c,u,h){const d=this.length;return this.resize(d+1),this.emplace(d,t,e,i,n,r,o,s,a,l,c,u,h)}emplace(t,e,i,n,r,o,s,a,l,c,u,h,d){const f=12*t;return this.int16[f+0]=e,this.int16[f+1]=i,this.int16[f+2]=n,this.int16[f+3]=r,this.uint16[f+4]=o,this.uint16[f+5]=s,this.uint16[f+6]=a,this.uint16[f+7]=l,this.int16[f+8]=c,this.int16[f+9]=u,this.int16[f+10]=h,this.int16[f+11]=d,t}}Xo.prototype.bytesPerElement=24,Xr(Xo,"StructArrayLayout4i4ui4i24");class Qo extends Bo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,i,n,r,o){const s=this.length;return this.resize(s+1),this.emplace(s,t,e,i,n,r,o)}emplace(t,e,i,n,r,o,s){const a=10*t,l=5*t;return this.int16[a+0]=e,this.int16[a+1]=i,this.int16[a+2]=n,this.float32[l+2]=r,this.float32[l+3]=o,this.float32[l+4]=s,t}}Qo.prototype.bytesPerElement=20,Xr(Qo,"StructArrayLayout3i3f20");class Yo extends Bo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(t){const e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){return this.uint32[1*t+0]=e,t}}Yo.prototype.bytesPerElement=4,Xr(Yo,"StructArrayLayout1ul4");class Ko extends Bo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,i,n,r,o,s,a,l,c,u,h,d){const f=this.length;return this.resize(f+1),this.emplace(f,t,e,i,n,r,o,s,a,l,c,u,h,d)}emplace(t,e,i,n,r,o,s,a,l,c,u,h,d,f){const p=20*t,m=10*t;return this.int16[p+0]=e,this.int16[p+1]=i,this.int16[p+2]=n,this.int16[p+3]=r,this.int16[p+4]=o,this.float32[m+3]=s,this.float32[m+4]=a,this.float32[m+5]=l,this.float32[m+6]=c,this.int16[p+14]=u,this.uint32[m+8]=h,this.uint16[p+18]=d,this.uint16[p+19]=f,t}}Ko.prototype.bytesPerElement=40,Xr(Ko,"StructArrayLayout5i4f1i1ul2ui40");class Jo extends Bo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,i,n,r,o,s){const a=this.length;return this.resize(a+1),this.emplace(a,t,e,i,n,r,o,s)}emplace(t,e,i,n,r,o,s,a){const l=8*t;return this.int16[l+0]=e,this.int16[l+1]=i,this.int16[l+2]=n,this.int16[l+4]=r,this.int16[l+5]=o,this.int16[l+6]=s,this.int16[l+7]=a,t}}Jo.prototype.bytesPerElement=16,Xr(Jo,"StructArrayLayout3i2i2i16");class ts extends Bo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,i,n,r){const o=this.length;return this.resize(o+1),this.emplace(o,t,e,i,n,r)}emplace(t,e,i,n,r,o){const s=4*t,a=8*t;return this.float32[s+0]=e,this.float32[s+1]=i,this.float32[s+2]=n,this.int16[a+6]=r,this.int16[a+7]=o,t}}ts.prototype.bytesPerElement=16,Xr(ts,"StructArrayLayout2f1f2i16");class es extends Bo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,i,n){const r=this.length;return this.resize(r+1),this.emplace(r,t,e,i,n)}emplace(t,e,i,n,r){const o=12*t,s=3*t;return this.uint8[o+0]=e,this.uint8[o+1]=i,this.float32[s+1]=n,this.float32[s+2]=r,t}}es.prototype.bytesPerElement=12,Xr(es,"StructArrayLayout2ub2f12");class is extends Bo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,i){const n=this.length;return this.resize(n+1),this.emplace(n,t,e,i)}emplace(t,e,i,n){const r=3*t;return this.float32[r+0]=e,this.float32[r+1]=i,this.float32[r+2]=n,t}}is.prototype.bytesPerElement=12,Xr(is,"StructArrayLayout3f12");class ns extends Bo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,i){const n=this.length;return this.resize(n+1),this.emplace(n,t,e,i)}emplace(t,e,i,n){const r=3*t;return this.uint16[r+0]=e,this.uint16[r+1]=i,this.uint16[r+2]=n,t}}ns.prototype.bytesPerElement=6,Xr(ns,"StructArrayLayout3ui6");class rs extends Bo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(t,e,i,n,r,o,s,a,l,c,u,h,d,f,p,m,g,y,_,v,b){const x=this.length;return this.resize(x+1),this.emplace(x,t,e,i,n,r,o,s,a,l,c,u,h,d,f,p,m,g,y,_,v,b)}emplace(t,e,i,n,r,o,s,a,l,c,u,h,d,f,p,m,g,y,_,v,b,x){const w=30*t,E=15*t,T=60*t;return this.int16[w+0]=e,this.int16[w+1]=i,this.int16[w+2]=n,this.float32[E+2]=r,this.float32[E+3]=o,this.uint16[w+8]=s,this.uint16[w+9]=a,this.uint32[E+5]=l,this.uint32[E+6]=c,this.uint32[E+7]=u,this.uint16[w+16]=h,this.uint16[w+17]=d,this.uint16[w+18]=f,this.float32[E+10]=p,this.float32[E+11]=m,this.uint8[T+48]=g,this.uint8[T+49]=y,this.uint8[T+50]=_,this.uint32[E+13]=v,this.int16[w+28]=b,this.uint8[T+58]=x,t}}rs.prototype.bytesPerElement=60,Xr(rs,"StructArrayLayout3i2f2ui3ul3ui2f3ub1ul1i1ub60");class os extends Bo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(t,e,i,n,r,o,s,a,l,c,u,h,d,f,p,m,g,y,_,v,b,x,w,E,T,S,k,O,A,C){const I=this.length;return this.resize(I+1),this.emplace(I,t,e,i,n,r,o,s,a,l,c,u,h,d,f,p,m,g,y,_,v,b,x,w,E,T,S,k,O,A,C)}emplace(t,e,i,n,r,o,s,a,l,c,u,h,d,f,p,m,g,y,_,v,b,x,w,E,T,S,k,O,A,C,I){const M=38*t,P=19*t;return this.int16[M+0]=e,this.int16[M+1]=i,this.int16[M+2]=n,this.float32[P+2]=r,this.float32[P+3]=o,this.int16[M+8]=s,this.int16[M+9]=a,this.int16[M+10]=l,this.int16[M+11]=c,this.int16[M+12]=u,this.int16[M+13]=h,this.uint16[M+14]=d,this.uint16[M+15]=f,this.uint16[M+16]=p,this.uint16[M+17]=m,this.uint16[M+18]=g,this.uint16[M+19]=y,this.uint16[M+20]=_,this.uint16[M+21]=v,this.uint16[M+22]=b,this.uint16[M+23]=x,this.uint16[M+24]=w,this.uint16[M+25]=E,this.uint16[M+26]=T,this.uint16[M+27]=S,this.uint16[M+28]=k,this.uint32[P+15]=O,this.float32[P+16]=A,this.float32[P+17]=C,this.float32[P+18]=I,t}}os.prototype.bytesPerElement=76,Xr(os,"StructArrayLayout3i2f6i15ui1ul3f76");class ss extends Bo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t){const e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){return this.float32[1*t+0]=e,t}}ss.prototype.bytesPerElement=4,Xr(ss,"StructArrayLayout1f4");class as extends Bo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,i,n,r){const o=this.length;return this.resize(o+1),this.emplace(o,t,e,i,n,r)}emplace(t,e,i,n,r,o){const s=5*t;return this.float32[s+0]=e,this.float32[s+1]=i,this.float32[s+2]=n,this.float32[s+3]=r,this.float32[s+4]=o,t}}as.prototype.bytesPerElement=20,Xr(as,"StructArrayLayout5f20");class ls extends Bo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,i,n){const r=this.length;return this.resize(r+1),this.emplace(r,t,e,i,n)}emplace(t,e,i,n,r){const o=6*t;return this.uint32[3*t+0]=e,this.uint16[o+2]=i,this.uint16[o+3]=n,this.uint16[o+4]=r,t}}ls.prototype.bytesPerElement=12,Xr(ls,"StructArrayLayout1ul3ui12");class cs extends Bo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e){const i=this.length;return this.resize(i+1),this.emplace(i,t,e)}emplace(t,e,i){const n=2*t;return this.uint16[n+0]=e,this.uint16[n+1]=i,t}}cs.prototype.bytesPerElement=4,Xr(cs,"StructArrayLayout2ui4");class us extends Bo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t){const e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){return this.uint16[1*t+0]=e,t}}us.prototype.bytesPerElement=2,Xr(us,"StructArrayLayout1ui2");class hs extends Bo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e){const i=this.length;return this.resize(i+1),this.emplace(i,t,e)}emplace(t,e,i){const n=2*t;return this.float32[n+0]=e,this.float32[n+1]=i,t}}hs.prototype.bytesPerElement=8,Xr(hs,"StructArrayLayout2f8");class ds extends jo{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.int16[this._pos2+3]}get tileAnchorY(){return this._structArray.int16[this._pos2+4]}get x1(){return this._structArray.float32[this._pos4+3]}get y1(){return this._structArray.float32[this._pos4+4]}get x2(){return this._structArray.float32[this._pos4+5]}get y2(){return this._structArray.float32[this._pos4+6]}get padding(){return this._structArray.int16[this._pos2+14]}get featureIndex(){return this._structArray.uint32[this._pos4+8]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+18]}get bucketIndex(){return this._structArray.uint16[this._pos2+19]}}ds.prototype.size=40;class fs extends Ko{get(t){return new ds(this,t)}}Xr(fs,"CollisionBoxArray");class ps extends jo{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+8]}get numGlyphs(){return this._structArray.uint16[this._pos2+9]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+5]}get lineStartIndex(){return this._structArray.uint32[this._pos4+6]}get lineLength(){return this._structArray.uint32[this._pos4+7]}get segment(){return this._structArray.uint16[this._pos2+16]}get lowerSize(){return this._structArray.uint16[this._pos2+17]}get upperSize(){return this._structArray.uint16[this._pos2+18]}get lineOffsetX(){return this._structArray.float32[this._pos4+10]}get lineOffsetY(){return this._structArray.float32[this._pos4+11]}get writingMode(){return this._structArray.uint8[this._pos1+48]}get placedOrientation(){return this._structArray.uint8[this._pos1+49]}set placedOrientation(t){this._structArray.uint8[this._pos1+49]=t}get hidden(){return this._structArray.uint8[this._pos1+50]}set hidden(t){this._structArray.uint8[this._pos1+50]=t}get crossTileID(){return this._structArray.uint32[this._pos4+13]}set crossTileID(t){this._structArray.uint32[this._pos4+13]=t}get associatedIconIndex(){return this._structArray.int16[this._pos2+28]}get flipState(){return this._structArray.uint8[this._pos1+58]}set flipState(t){this._structArray.uint8[this._pos1+58]=t}}ps.prototype.size=60;class ms extends rs{get(t){return new ps(this,t)}}Xr(ms,"PlacedSymbolArray");class gs extends jo{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+8]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+9]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+10]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+11]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+12]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+13]}get key(){return this._structArray.uint16[this._pos2+14]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+17]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+18]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+19]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+20]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+21]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+22]}get featureIndex(){return this._structArray.uint16[this._pos2+23]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+24]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+25]}get numIconVertices(){return this._structArray.uint16[this._pos2+26]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+27]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+28]}get crossTileID(){return this._structArray.uint32[this._pos4+15]}set crossTileID(t){this._structArray.uint32[this._pos4+15]=t}get textOffset0(){return this._structArray.float32[this._pos4+16]}get textOffset1(){return this._structArray.float32[this._pos4+17]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+18]}}gs.prototype.size=76;class ys extends os{get(t){return new gs(this,t)}}Xr(ys,"SymbolInstanceArray");class _s extends ss{getoffsetX(t){return this.float32[1*t+0]}}Xr(_s,"GlyphOffsetArray");class vs extends Vo{getx(t){return this.int16[2*t+0]}gety(t){return this.int16[2*t+1]}}Xr(vs,"SymbolLineVertexArray");class bs extends jo{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}get layoutVertexArrayOffset(){return this._structArray.uint16[this._pos2+4]}}bs.prototype.size=12;class xs extends ls{get(t){return new bs(this,t)}}Xr(xs,"FeatureIndexArray");class ws extends cs{geta_centroid_pos0(t){return this.uint16[2*t+0]}geta_centroid_pos1(t){return this.uint16[2*t+1]}}Xr(ws,"FillExtrusionCentroidArray");const Es=Fo([{name:"a_pattern",components:4,type:"Uint16"},{name:"a_pixel_ratio",components:1,type:"Float32"}]),Ts=Fo([{name:"a_dash",components:4,type:"Uint16"}]);var Ss={exports:{}},ks={exports:{}};ks.exports=function(t,e){var i,n,r,o,s,a,l,c;for(n=t.length-(i=3&t.length),r=e,s=3432918353,a=461845907,c=0;c<n;)l=255&t.charCodeAt(c)|(255&t.charCodeAt(++c))<<8|(255&t.charCodeAt(++c))<<16|(255&t.charCodeAt(++c))<<24,++c,r=27492+(65535&(o=5*(65535&(r=(r^=l=(65535&(l=(l=(65535&l)*s+(((l>>>16)*s&65535)<<16)&4294967295)<<15|l>>>17))*a+(((l>>>16)*a&65535)<<16)&4294967295)<<13|r>>>19))+((5*(r>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(l=0,i){case 3:l^=(255&t.charCodeAt(c+2))<<16;case 2:l^=(255&t.charCodeAt(c+1))<<8;
vendor: 1,846 bytes, line 38
38case 1:r^=l=(65535&(l=(l=(65535&(l^=255&t.charCodeAt(c)))*s+(((l>>>16)*s&65535)<<16)&4294967295)<<15|l>>>17))*a+(((l>>>16)*a&65535)<<16)&4294967295}return r^=t.length,r=2246822507*(65535&(r^=r>>>16))+((2246822507*(r>>>16)&65535)<<16)&4294967295,r=3266489909*(65535&(r^=r>>>13))+((3266489909*(r>>>16)&65535)<<16)&4294967295,(r^=r>>>16)>>>0};var Os=ks.exports,As={exports:{}};As.exports=function(t,e){for(var i,n=t.length,r=e^n,o=0;n>=4;)i=1540483477*(65535&(i=255&t.charCodeAt(o)|(255&t.charCodeAt(++o))<<8|(255&t.charCodeAt(++o))<<16|(255&t.charCodeAt(++o))<<24))+((1540483477*(i>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(i=1540483477*(65535&(i^=i>>>24))+((1540483477*(i>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:r^=(255&t.charCodeAt(o+2))<<16;case 2:r^=(255&t.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&t.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),(r^=r>>>15)>>>0};var Cs=Os,Is=As.exports;Ss.exports=Cs,Ss.exports.murmur3=Cs,Ss.exports.murmur2=Is;var Ms=d(Ss.exports);class Ps{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(t,e,i,n){this.ids.push(Ds(t)),this.positions.push(e,i,n)}getPositions(t){const e=Ds(t);let i=0,n=this.ids.length-1;for(;i<n;){const t=i+n>>1;this.ids[t]>=e?n=t:i=t+1}const r=[];for(;this.ids[i]===e;)r.push({index:this.positions[3*i],start:this.positions[3*i+1],end:this.positions[3*i+2]}),i++;return r}static serialize(t,e){const i=new Float64Array(t.ids),n=new Uint32Array(t.positions);return Ls(i,n,0,i.length-1),e&&e.push(i.buffer,n.buffer),{ids:i,positions:n}}static deserialize(t){const e=new Ps;return e.ids=t.ids,e.positions=t.positions,e.indexed=!0,e}}function Ds(t){const e=+t;return!isNaN(e)&&Number.MIN_SAFE_INTEGER<=e&&e<=Number.MAX_SAFE_INTEGER?e:Ms(String(t))}
vendor: 26,872 bytes, line 38
38function Ls(t,e,i,n){for(;i<n;){const r=t[i+n>>1];let o=i-1,s=n+1;for(;;){do{o++}while(t[o]<r);do{s--}while(t[s]>r);if(o>=s)break;Rs(t,o,s),Rs(e,3*o,3*s),Rs(e,3*o+1,3*s+1),Rs(e,3*o+2,3*s+2)}s-i<n-s?(Ls(t,e,i,s),i=s+1):(Ls(t,e,s+1,n),n=s)}}function Rs(t,e,i){const n=t[e];t[e]=t[i],t[i]=n}Xr(Ps,"FeaturePositionMap");class zs{constructor(t){this.gl=t.gl,this.initialized=!1}fetchUniformLocation(t,e){return this.location||this.initialized||(this.location=this.gl.getUniformLocation(t,e),this.initialized=!0),!!this.location}}class js extends zs{constructor(t){super(t),this.current=0}set(t,e,i){this.fetchUniformLocation(t,e)&&this.current!==i&&(this.current=i,this.gl.uniform1f(this.location,i))}}class Bs extends zs{constructor(t){super(t),this.current=[0,0,0,0]}set(t,e,i){this.fetchUniformLocation(t,e)&&(i[0]===this.current[0]&&i[1]===this.current[1]&&i[2]===this.current[2]&&i[3]===this.current[3]||(this.current=i,this.gl.uniform4f(this.location,i[0],i[1],i[2],i[3])))}}class Fs extends zs{constructor(t){super(t),this.current=Me.transparent}set(t,e,i){this.fetchUniformLocation(t,e)&&(i.r===this.current.r&&i.g===this.current.g&&i.b===this.current.b&&i.a===this.current.a||(this.current=i,this.gl.uniform4f(this.location,i.r,i.g,i.b,i.a)))}}const Ns=new Float32Array(16),Vs=new Float32Array(9),$s=new Float32Array(4);function Us(t){return[Ro(255*t.r,255*t.g),Ro(255*t.b,255*t.a)]}class qs{constructor(t,e,i){this.value=t,this.uniformNames=e.map(t=>"u_"+t),this.type=i}setUniform(t,e,i,n,r){e.set(t,r,n.constantOr(this.value))}getBinding(t,e){return"color"===this.type?new Fs(t):new js(t)}}class Gs{constructor(t,e){this.uniformNames=e.map(t=>"u_"+t),this.pattern=null,this.pixelRatio=1}setConstantPatternPositions(t){this.pixelRatio=t.pixelRatio||1,this.pattern=t.tl.concat(t.br)}setUniform(t,e,i,n,r){const o="u_pattern"===r||"u_dash"===r?this.pattern:"u_pixel_ratio"===r?this.pixelRatio:null;o&&e.set(t,r,o)}getBinding(t,e){return"u_pattern"===e||"u_dash"===e?new Bs(t):new js(t)}}class Ws{constructor(t,e,i,n){this.expression=t,this.type=i,this.maxValue=0,this.paintVertexAttributes=e.map(t=>({name:"a_"+t,type:"Float32",components:"color"===i?2:1,offset:0})),this.paintVertexArray=new n}populatePaintArray(t,e,i,n,r,o){const s=this.paintVertexArray.length,a=this.expression.evaluate(new wo(0),e,{},r,n,o);this.paintVertexArray.resize(t),this._setPaintValue(s,t,a)}updatePaintArray(t,e,i,n,r){const o=this.expression.evaluate({zoom:0},i,n,void 0,r);this._setPaintValue(t,e,o)}_setPaintValue(t,e,i){if("color"===this.type){const n=Us(i);for(let i=t;i<e;i++)this.paintVertexArray.emplace(i,n[0],n[1])}else{for(let n=t;n<e;n++)this.paintVertexArray.emplace(n,i);this.maxValue=Math.max(this.maxValue,Math.abs(i))}}upload(t){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}}class Zs{constructor(t,e,i,n,r,o){this.expression=t,this.uniformNames=e.map(t=>`u_${t}_t`),this.type=i,this.useIntegerZoom=n,this.zoom=r,this.maxValue=0,this.paintVertexAttributes=e.map(t=>({name:"a_"+t,type:"Float32",components:"color"===i?4:2,offset:0})),this.paintVertexArray=new o}populatePaintArray(t,e,i,n,r,o){const s=this.expression.evaluate(new wo(this.zoom),e,{},r,n,o),a=this.expression.evaluate(new wo(this.zoom+1),e,{},r,n,o),l=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValue(l,t,s,a)}updatePaintArray(t,e,i,n,r){const o=this.expression.evaluate({zoom:this.zoom},i,n,void 0,r),s=this.expression.evaluate({zoom:this.zoom+1},i,n,void 0,r);this._setPaintValue(t,e,o,s)}_setPaintValue(t,e,i,n){if("color"===this.type){const r=Us(i),o=Us(n);for(let i=t;i<e;i++)this.paintVertexArray.emplace(i,r[0],r[1],o[0],o[1])}else{for(let r=t;r<e;r++)this.paintVertexArray.emplace(r,i,n);this.maxValue=Math.max(this.maxValue,Math.abs(i),Math.abs(n))}}upload(t){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}setUniform(t,e,i,n,r){const o=this.useIntegerZoom?Math.floor(i.zoom):i.zoom,s=O(this.expression.interpolationFactor(o,this.zoom,this.zoom+1),0,1);e.set(t,r,s)}getBinding(t,e){return new js(t)}}class Hs{constructor(t,e,i,n,r){this.expression=t,this.layerId=r,this.paintVertexAttributes=("array"===i?Ts:Es).members;for(let o=0;o<e.length;++o);this.paintVertexArray=new n}populatePaintArray(t,e,i){const n=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValues(n,t,e.patterns&&e.patterns[this.layerId],i)}updatePaintArray(t,e,i,n,r,o){this._setPaintValues(t,e,i.patterns&&i.patterns[this.layerId],o)}_setPaintValues(t,e,i,n){if(!n||!i)return;const r=n[i];if(!r)return;const{tl:o,br:s,pixelRatio:a}=r;for(let l=t;l<e;l++)this.paintVertexArray.emplace(l,o[0],o[1],s[0],s[1],a)}upload(t){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}}class Xs{constructor(t,e,i=(()=>!0)){this.binders={},this._buffers=[];const n=[];for(const r in t.paint._values){if(!i(r))continue;const o=t.paint.get(r);if(!(o instanceof Co&&zn(o.property.specification)))continue;const s=Ks(r,t.type),a=o.value,l=o.property.specification.type,c=!!o.property.useIntegerZoom,u="line-dasharray"===r||r.endsWith("pattern"),h="line-dasharray"===r&&"constant"!==t.layout.get("line-cap").value.kind;if("constant"!==a.kind||h)if("source"===a.kind||h||u){const e=ea(r,l,"source");this.binders[r]=u?new Hs(a,s,l,e,t.id):new Ws(a,s,l,e),n.push("/a_"+r)}else{const t=ea(r,l,"composite");this.binders[r]=new Zs(a,s,l,c,e,t),n.push("/z_"+r)}else this.binders[r]=u?new Gs(a.value,s):new qs(a.value,s,l),n.push("/u_"+r)}this.cacheKey=n.sort().join("")}getMaxValue(t){const e=this.binders[t];return e instanceof Ws||e instanceof Zs?e.maxValue:0}populatePaintArrays(t,e,i,n,r,o){for(const s in this.binders){const a=this.binders[s];(a instanceof Ws||a instanceof Zs||a instanceof Hs)&&a.populatePaintArray(t,e,i,n,r,o)}}setConstantPatternPositions(t){for(const e in this.binders){const i=this.binders[e];i instanceof Gs&&i.setConstantPatternPositions(t)}}updatePaintArrays(t,e,i,n,r,o){let s=!1;for(const a in t){const l=e.getPositions(a);for(const e of l){const l=i.feature(e.index);for(const i in this.binders){const c=this.binders[i];if((c instanceof Ws||c instanceof Zs||c instanceof Hs)&&!0===c.expression.isStateDependent){const u=n.paint.get(i);c.expression=u.value,c.updatePaintArray(e.start,e.end,l,t[a],r,o),s=!0}}}}return s}defines(){const t=[];for(const e in this.binders){const i=this.binders[e];(i instanceof qs||i instanceof Gs)&&t.push(...i.uniformNames.map(t=>"#define HAS_UNIFORM_"+t))}return t}getBinderAttributes(){const t=[];for(const e in this.binders){const i=this.binders[e];if(i instanceof Ws||i instanceof Zs||i instanceof Hs)for(let e=0;e<i.paintVertexAttributes.length;e++)t.push(i.paintVertexAttributes[e].name)}return t}getBinderUniforms(){const t=[];for(const e in this.binders){const i=this.binders[e];if(i instanceof qs||i instanceof Gs||i instanceof Zs)for(const e of i.uniformNames)t.push(e)}return t}getPaintVertexBuffers(){return this._buffers}getUniforms(t){const e=[];for(const i in this.binders){const n=this.binders[i];if(n instanceof qs||n instanceof Gs||n instanceof Zs)for(const r of n.uniformNames)e.push({name:r,property:i,binding:n.getBinding(t,r)})}return e}setUniforms(t,e,i,n,r){for(const{name:o,property:s,binding:a}of i)this.binders[s].setUniform(t,a,r,n.get(s),o)}updatePaintBuffers(){this._buffers=[];for(const t in this.binders){const e=this.binders[t];(e instanceof Ws||e instanceof Zs||e instanceof Hs)&&e.paintVertexBuffer&&this._buffers.push(e.paintVertexBuffer)}}upload(t){for(const e in this.binders){const i=this.binders[e];(i instanceof Ws||i instanceof Zs||i instanceof Hs)&&i.upload(t)}this.updatePaintBuffers()}destroy(){for(const t in this.binders){const e=this.binders[t];(e instanceof Ws||e instanceof Zs||e instanceof Hs)&&e.destroy()}}}class Qs{constructor(t,e,i=(()=>!0)){this.programConfigurations={};for(const n of t)this.programConfigurations[n.id]=new Xs(n,e,i);this.needsUpload=!1,this._featureMap=new Ps,this._bufferOffset=0}populatePaintArrays(t,e,i,n,r,o,s){for(const a in this.programConfigurations)this.programConfigurations[a].populatePaintArrays(t,e,n,r,o,s);void 0!==e.id&&this._featureMap.add(e.id,i,this._bufferOffset,t),this._bufferOffset=t,this.needsUpload=!0}updatePaintArrays(t,e,i,n,r){for(const o of i)this.needsUpload=this.programConfigurations[o.id].updatePaintArrays(t,this._featureMap,e,o,n,r)||this.needsUpload}get(t){return this.programConfigurations[t]}upload(t){if(this.needsUpload){for(const e in this.programConfigurations)this.programConfigurations[e].upload(t);this.needsUpload=!1}}destroy(){for(const t in this.programConfigurations)this.programConfigurations[t].destroy()}}const Ys={"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern","pixel_ratio"],"fill-pattern":["pattern","pixel_ratio"],"fill-extrusion-pattern":["pattern","pixel_ratio"],"line-dasharray":["dash"]};function Ks(t,e){return Ys[t]||[t.replace(e+"-","").replace(/-/g,"_")]}const Js={"line-pattern":{source:Wo,composite:Wo},"fill-pattern":{source:Wo,composite:Wo},"fill-extrusion-pattern":{source:Wo,composite:Wo},"line-dasharray":{source:Zo,composite:Zo}},ta={color:{source:hs,composite:Go},number:{source:ss,composite:hs}};function ea(t,e,i){const n=Js[t];return n&&n[i]||ta[e][i]}Xr(qs,"ConstantBinder"),Xr(Gs,"PatternConstantBinder"),Xr(Ws,"SourceExpressionBinder"),Xr(Hs,"PatternCompositeBinder"),Xr(Zs,"CompositeExpressionBinder"),Xr(Xs,"ProgramConfiguration",{omit:["_buffers"]}),Xr(Qs,"ProgramConfigurationSet");const ia="-transition";class na extends Jt{constructor(t,e){if(super(),this.id=t.id,this.type=t.type,this._featureFilter={filter:()=>!0,needGeometry:!1,needFeature:!1},this._filterCompiled=!1,"custom"!==t.type&&(this.metadata=t.metadata,this.minzoom=t.minzoom,this.maxzoom=t.maxzoom,"background"!==t.type&&"sky"!==t.type&&(this.source=t.source,this.sourceLayer=t["source-layer"],this.filter=t.filter),e.layout&&(this._unevaluatedLayout=new Ao(e.layout)),e.paint)){this._transitionablePaint=new So(e.paint);for(const e in t.paint)this.setPaintProperty(e,t.paint[e],{validate:!1});for(const e in t.layout)this.setLayoutProperty(e,t.layout[e],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Io(e.paint)}}getLayoutProperty(t){return"visibility"===t?this.visibility:this._unevaluatedLayout.getValue(t)}setLayoutProperty(t,e,i={}){null!=e&&this._validate(Vr,`layers.${this.id}.layout.${t}`,t,e,i)||("visibility"!==t?this._unevaluatedLayout.setValue(t,e):this.visibility=e)}getPaintProperty(t){return F(t,ia)?this._transitionablePaint.getTransition(t.slice(0,-11)):this._transitionablePaint.getValue(t)}setPaintProperty(t,e,i={}){if(null!=e&&this._validate(Nr,`layers.${this.id}.paint.${t}`,t,e,i))return!1;if(F(t,ia))return this._transitionablePaint.setTransition(t.slice(0,-11),e||void 0),!1;{const i=this._transitionablePaint._values[t],n=i.value.isDataDriven(),r=i.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);const o=this._transitionablePaint._values[t].value,s=o.isDataDriven(),a=F(t,"pattern")||"line-dasharray"===t;return s||n||a||this._handleOverridablePaintPropertyUpdate(t,r,o)}}_handleSpecialPaintPropertyUpdate(t){}getProgramIds(){return null}getProgramConfiguration(t){return null}_handleOverridablePaintPropertyUpdate(t,e,i){return!1}isHidden(t){return!!(this.minzoom&&t<this.minzoom)||!!(this.maxzoom&&t>=this.maxzoom)||"none"===this.visibility}updateTransitions(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(t,e){this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,e)}serialize(){const t={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(t.layout=t.layout||{},t.layout.visibility=this.visibility),V(t,(t,e)=>!(void 0===t||"layout"===e&&!Object.keys(t).length||"paint"===e&&!Object.keys(t).length))}_validate(t,e,i,n,r={}){return(!r||!1!==r.validate)&&Ur(this,t.call(Fr,{key:e,layerType:this.type,objectKey:i,value:n,styleSpec:te,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isSky(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(const t in this.paint._values){const e=this.paint.get(t);if(e instanceof Co&&zn(e.property.specification)&&("source"===e.value.kind||"composite"===e.value.kind)&&e.value.isStateDependent)return!0}return!1}compileFilter(){this._filterCompiled||(this._featureFilter=hr(this.filter),this._filterCompiled=!0)}invalidateCompiledFilter(){this._filterCompiled=!1}dynamicFilter(){return this._featureFilter.dynamicFilter}dynamicFilterNeedsFeature(){return this._featureFilter.needFeature}}const ra=Fo([{name:"a_pos",components:2,type:"Int16"}],4),oa=Fo([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]);class sa{constructor(t=[]){this.segments=t}prepareSegment(t,e,i,n){let r=this.segments[this.segments.length-1];return t>sa.MAX_VERTEX_ARRAY_LENGTH&&q(`Max vertices per segment is ${sa.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${t}`),(!r||r.vertexLength+t>sa.MAX_VERTEX_ARRAY_LENGTH||r.sortKey!==n)&&(r={vertexOffset:e.length,primitiveOffset:i.length,vertexLength:0,primitiveLength:0},void 0!==n&&(r.sortKey=n),this.segments.push(r)),r}get(){return this.segments}destroy(){for(const t of this.segments)for(const e in t.vaos)t.vaos[e].destroy()}static simpleSegment(t,e,i,n){return new sa([{vertexOffset:t,primitiveOffset:e,vertexLength:i,primitiveLength:n,vaos:{},sortKey:0}])}}sa.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Xr(sa,"SegmentVector");var aa=8192;class la{constructor(t,e){t&&(e?this.setSouthWest(t).setNorthEast(e):4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1]))}setNorthEast(t){return this._ne=t instanceof $l?new $l(t.lng,t.lat):$l.convert(t),this}setSouthWest(t){return this._sw=t instanceof $l?new $l(t.lng,t.lat):$l.convert(t),this}extend(t){const e=this._sw,i=this._ne;let n,r;if(t instanceof $l)n=t,r=t;else{if(!(t instanceof la))return Array.isArray(t)?4===t.length||t.every(Array.isArray)?this.extend(la.convert(t)):this.extend($l.convert(t)):"object"==typeof t&&null!==t&&t.hasOwnProperty("lat")&&(t.hasOwnProperty("lon")||t.hasOwnProperty("lng"))?this.extend($l.convert(t)):this;if(n=t._sw,r=t._ne,!n||!r)return this}return e||i?(e.lng=Math.min(n.lng,e.lng),e.lat=Math.min(n.lat,e.lat),i.lng=Math.max(r.lng,i.lng),i.lat=Math.max(r.lat,i.lat)):(this._sw=new $l(n.lng,n.lat),this._ne=new $l(r.lng,r.lat)),this}getCenter(){return new $l((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new $l(this.getWest(),this.getNorth())}getSouthEast(){return new $l(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(t){const{lng:e,lat:i}=$l.convert(t);let n=this._sw.lng<=e&&e<=this._ne.lng;return this._sw.lng>this._ne.lng&&(n=this._sw.lng>=e&&e>=this._ne.lng),this._sw.lat<=i&&i<=this._ne.lat&&n}static convert(t){return!t||t instanceof la?t:new la(t)}}var ca=1e-6,ua="undefined"!=typeof Float32Array?Float32Array:Array;function ha(){var t=new ua(9);return ua!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function da(t,e,i){var n=e[0],r=e[1],o=e[2],s=e[3],a=e[4],l=e[5],c=e[6],u=e[7],h=e[8],d=i[0],f=i[1],p=i[2],m=i[3],g=i[4],y=i[5],_=i[6],v=i[7],b=i[8];return t[0]=d*n+f*s+p*c,t[1]=d*r+f*a+p*u,t[2]=d*o+f*l+p*h,t[3]=m*n+g*s+y*c,t[4]=m*r+g*a+y*u,t[5]=m*o+g*l+y*h,t[6]=_*n+v*s+b*c,t[7]=_*r+v*a+b*u,t[8]=_*o+v*l+b*h,t}function fa(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function pa(t,e){var i=e[0],n=e[1],r=e[2],o=e[3],s=e[4],a=e[5],l=e[6],c=e[7],u=e[8],h=e[9],d=e[10],f=e[11],p=e[12],m=e[13],g=e[14],y=e[15],_=i*a-n*s,v=i*l-r*s,b=i*c-o*s,x=n*l-r*a,w=n*c-o*a,E=r*c-o*l,T=u*m-h*p,S=u*g-d*p,k=u*y-f*p,O=h*g-d*m,A=h*y-f*m,C=d*y-f*g,I=_*C-v*A+b*O+x*k-w*S+E*T;return I?(t[0]=(a*C-l*A+c*O)*(I=1/I),t[1]=(r*A-n*C-o*O)*I,t[2]=(m*E-g*w+y*x)*I,t[3]=(d*w-h*E-f*x)*I,t[4]=(l*k-s*C-c*S)*I,t[5]=(i*C-r*k+o*S)*I,t[6]=(g*b-p*E-y*v)*I,t[7]=(u*E-d*b+f*v)*I,t[8]=(s*A-a*k+c*T)*I,t[9]=(n*k-i*A-o*T)*I,t[10]=(p*w-m*b+y*_)*I,t[11]=(h*b-u*w-f*_)*I,t[12]=(a*S-s*O-l*T)*I,t[13]=(i*O-n*S+r*T)*I,t[14]=(m*v-p*x-g*_)*I,t[15]=(u*x-h*v+d*_)*I,t):null}function ma(t,e,i){var n=e[0],r=e[1],o=e[2],s=e[3],a=e[4],l=e[5],c=e[6],u=e[7],h=e[8],d=e[9],f=e[10],p=e[11],m=e[12],g=e[13],y=e[14],_=e[15],v=i[0],b=i[1],x=i[2],w=i[3];return t[0]=v*n+b*a+x*h+w*m,t[1]=v*r+b*l+x*d+w*g,t[2]=v*o+b*c+x*f+w*y,t[3]=v*s+b*u+x*p+w*_,t[4]=(v=i[4])*n+(b=i[5])*a+(x=i[6])*h+(w=i[7])*m,t[5]=v*r+b*l+x*d+w*g,t[6]=v*o+b*c+x*f+w*y,t[7]=v*s+b*u+x*p+w*_,t[8]=(v=i[8])*n+(b=i[9])*a+(x=i[10])*h+(w=i[11])*m,t[9]=v*r+b*l+x*d+w*g,t[10]=v*o+b*c+x*f+w*y,t[11]=v*s+b*u+x*p+w*_,t[12]=(v=i[12])*n+(b=i[13])*a+(x=i[14])*h+(w=i[15])*m,t[13]=v*r+b*l+x*d+w*g,t[14]=v*o+b*c+x*f+w*y,t[15]=v*s+b*u+x*p+w*_,t}function ga(t,e,i){var n,r,o,s,a,l,c,u,h,d,f,p,m=i[0],g=i[1],y=i[2];return e===t?(t[12]=e[0]*m+e[4]*g+e[8]*y+e[12],t[13]=e[1]*m+e[5]*g+e[9]*y+e[13],t[14]=e[2]*m+e[6]*g+e[10]*y+e[14],t[15]=e[3]*m+e[7]*g+e[11]*y+e[15]):(r=e[1],o=e[2],s=e[3],a=e[4],l=e[5],c=e[6],u=e[7],h=e[8],d=e[9],f=e[10],p=e[11],t[0]=n=e[0],t[1]=r,t[2]=o,t[3]=s,t[4]=a,t[5]=l,t[6]=c,t[7]=u,t[8]=h,t[9]=d,t[10]=f,t[11]=p,t[12]=n*m+a*g+h*y+e[12],t[13]=r*m+l*g+d*y+e[13],t[14]=o*m+c*g+f*y+e[14],t[15]=s*m+u*g+p*y+e[15]),t}function ya(t,e,i){var n=i[0],r=i[1],o=i[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function _a(t,e,i){var n=Math.sin(i),r=Math.cos(i),o=e[4],s=e[5],a=e[6],l=e[7],c=e[8],u=e[9],h=e[10],d=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=o*r+c*n,t[5]=s*r+u*n,t[6]=a*r+h*n,t[7]=l*r+d*n,t[8]=c*r-o*n,t[9]=u*r-s*n,t[10]=h*r-a*n,t[11]=d*r-l*n,t}function va(t,e,i){var n=Math.sin(i),r=Math.cos(i),o=e[0],s=e[1],a=e[2],l=e[3],c=e[8],u=e[9],h=e[10],d=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*r-c*n,t[1]=s*r-u*n,t[2]=a*r-h*n,t[3]=l*r-d*n,t[8]=o*n+c*r,t[9]=s*n+u*r,t[10]=a*n+h*r,t[11]=l*n+d*r,t}function ba(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function xa(t,e,i){var n,r,o,s=i[0],a=i[1],l=i[2],c=Math.hypot(s,a,l);return c<ca?null:(s*=c=1/c,a*=c,l*=c,n=Math.sin(e),r=Math.cos(e),t[0]=s*s*(o=1-r)+r,t[1]=a*s*o+l*n,t[2]=l*s*o-a*n,t[3]=0,t[4]=s*a*o-l*n,t[5]=a*a*o+r,t[6]=l*a*o+s*n,t[7]=0,t[8]=s*l*o+a*n,t[9]=a*l*o-s*n,t[10]=l*l*o+r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});var wa=ma;function Ea(){var t=new ua(3);return ua!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function Ta(t){var e=new ua(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function Sa(t){return Math.hypot(t[0],t[1],t[2])}function ka(t,e,i){var n=new ua(3);return n[0]=t,n[1]=e,n[2]=i,n}function Oa(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t}function Aa(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t}function Ca(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t[2]=e[2]*i[2],t}function Ia(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t[2]=Math.min(e[2],i[2]),t}function Ma(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t[2]=Math.max(e[2],i[2]),t}function Pa(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t}function Da(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t[2]=e[2]+i[2]*n,t}function La(t,e){var i=e[0],n=e[1],r=e[2],o=i*i+n*n+r*r;return o>0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t}function Ra(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function za(t,e,i){var n=e[0],r=e[1],o=e[2],s=i[0],a=i[1],l=i[2];return t[0]=r*l-o*a,t[1]=o*s-n*l,t[2]=n*a-r*s,t}function ja(t,e,i){var n=e[0],r=e[1],o=e[2],s=i[3]*n+i[7]*r+i[11]*o+i[15];return t[0]=(i[0]*n+i[4]*r+i[8]*o+i[12])/(s=s||1),t[1]=(i[1]*n+i[5]*r+i[9]*o+i[13])/s,t[2]=(i[2]*n+i[6]*r+i[10]*o+i[14])/s,t}function Ba(t,e,i){var n=i[0],r=i[1],o=i[2],s=e[0],a=e[1],l=e[2],c=r*l-o*a,u=o*s-n*l,h=n*a-r*s,d=r*h-o*u,f=o*c-n*h,p=n*u-r*c,m=2*i[3];return u*=m,h*=m,f*=2,p*=2,t[0]=s+(c*=m)+(d*=2),t[1]=a+u+f,t[2]=l+h+p,t}var Fa,Na=Aa,Va=Ca,$a=Sa;function Ua(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t}function qa(t,e){var i=e[0],n=e[1],r=e[2],o=e[3],s=i*i+n*n+r*r+o*o;return s>0&&(s=1/Math.sqrt(s)),t[0]=i*s,t[1]=n*s,t[2]=r*s,t[3]=o*s,t}function Ga(t,e,i){var n=e[0],r=e[1],o=e[2],s=e[3];return t[0]=i[0]*n+i[4]*r+i[8]*o+i[12]*s,t[1]=i[1]*n+i[5]*r+i[9]*o+i[13]*s,t[2]=i[2]*n+i[6]*r+i[10]*o+i[14]*s,t[3]=i[3]*n+i[7]*r+i[11]*o+i[15]*s,t}function Wa(){var t=new ua(4);return ua!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function Za(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t}function Ha(t,e,i){i*=.5;var n=e[0],r=e[1],o=e[2],s=e[3],a=Math.sin(i),l=Math.cos(i);return t[0]=n*l+s*a,t[1]=r*l+o*a,t[2]=o*l-r*a,t[3]=s*l-n*a,t}function Xa(t,e,i){i*=.5;var n=e[0],r=e[1],o=e[2],s=e[3],a=Math.sin(i),l=Math.cos(i);return t[0]=n*l-o*a,t[1]=r*l+s*a,t[2]=o*l+n*a,t[3]=s*l-r*a,t}Ea(),Fa=new ua(4),ua!=Float32Array&&(Fa[0]=0,Fa[1]=0,Fa[2]=0,Fa[3]=0);var Qa=qa;Ea(),ka(1,0,0),ka(0,1,0),Wa(),Wa(),ha();const Ya=Fo([{type:"Float32",name:"a_globe_pos",components:3},{type:"Float32",name:"a_uv",components:2}]),{members:Ka}=Ya,Ja=Fo([{name:"a_pos_3",components:3,type:"Int16"}]);var tl=Fo([{name:"a_pos",type:"Int16",components:2}]);class el{constructor(t,e){this.pos=t,this.dir=e}intersectsPlane(t,e,i){const n=Ra(e,this.dir);if(Math.abs(n)<1e-6)return!1;const r=((t[0]-this.pos[0])*e[0]+(t[1]-this.pos[1])*e[1]+(t[2]-this.pos[2])*e[2])/n;return i[0]=this.pos[0]+this.dir[0]*r,i[1]=this.pos[1]+this.dir[1]*r,i[2]=this.pos[2]+this.dir[2]*r,!0}closestPointOnSphere(t,e,i){if(function(t,e){var i=t[0],n=t[1],r=t[2],o=e[0],s=e[1],a=e[2];return Math.abs(i-o)<=ca*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(n-s)<=ca*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-a)<=ca*Math.max(1,Math.abs(r),Math.abs(a))}(this.pos,t)||0===e)return i[0]=i[1]=i[2]=0,!1;const[n,r,o]=this.dir,s=this.pos[0]-t[0],a=this.pos[1]-t[1],l=this.pos[2]-t[2],c=n*n+r*r+o*o,u=2*(s*n+a*r+l*o),h=u*u-4*c*(s*s+a*a+l*l-e*e);if(h<0){const t=Math.max(-u/2,0),c=s+n*t,h=a+r*t,d=l+o*t,f=Math.hypot(c,h,d);return i[0]=c*e/f,i[1]=h*e/f,i[2]=d*e/f,!1}{const t=(-u-Math.sqrt(h))/(2*c);if(t<0){const t=Math.hypot(s,a,l);return i[0]=s*e/t,i[1]=a*e/t,i[2]=l*e/t,!1}return i[0]=s+n*t,i[1]=a+r*t,i[2]=l+o*t,!0}}}class il{constructor(t,e,i,n,r){this.TL=t,this.TR=e,this.BR=i,this.BL=n,this.horizon=r}static fromInvProjectionMatrix(t,e,i){const n=[-1,1,1],r=[1,1,1],o=[1,-1,1],s=[-1,-1,1],a=ja(n,n,t),l=ja(r,r,t),c=ja(o,o,t),u=ja(s,s,t);return new il(a,l,c,u,e/i)}}class nl{constructor(t,e){this.points=t,this.planes=e}static fromInvProjectionMatrix(t,e,i,n){const r=Math.pow(2,i),o=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(i=>{const o=Ga([],i,t),s=1/o[3]/e*r;return function(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t[2]=e[2]*i[2],t[3]=e[3]*i[3],t}(o,o,[s,s,n?1/o[3]:s,s])}),s=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(t=>{const e=La([],za([],Na([],o[t[0]],o[t[1]]),Na([],o[t[2]],o[t[1]]))),i=-Ra(e,o[t[1]]);return e.concat(i)});return new nl(o,s)}}class rl{static fromPoints(t){const e=[1/0,1/0,1/0],i=[-1/0,-1/0,-1/0];for(const n of t)Ia(e,e,n),Ma(i,i,n);return new rl(e,i)}static applyTransform(t,e){const i=t.getCorners();for(let n=0;n<i.length;++n)ja(i[n],i[n],e);return rl.fromPoints(i)}constructor(t,e){this.min=t,this.max=e,this.center=Pa([],Oa([],this.min,this.max),.5)}quadrant(t){const e=[t%2==0,t<2],i=Ta(this.min),n=Ta(this.max);for(let r=0;r<e.length;r++)i[r]=e[r]?this.min[r]:this.center[r],n[r]=e[r]?this.center[r]:this.max[r];return n[2]=this.max[2],new rl(i,n)}distanceX(t){return Math.max(Math.min(this.max[0],t[0]),this.min[0])-t[0]}distanceY(t){return Math.max(Math.min(this.max[1],t[1]),this.min[1])-t[1]}distanceZ(t){return Math.max(Math.min(this.max[2],t[2]),this.min[2])-t[2]}getCorners(){const t=this.min,e=this.max;return[[t[0],t[1],t[2]],[e[0],t[1],t[2]],[e[0],e[1],t[2]],[t[0],e[1],t[2]],[t[0],t[1],e[2]],[e[0],t[1],e[2]],[e[0],e[1],e[2]],[t[0],e[1],e[2]]]}intersects(t){const e=this.getCorners();let i=!0;for(let n=0;n<t.planes.length;n++){const r=t.planes[n];let o=0;for(let t=0;t<e.length;t++)o+=Ra(r,e[t])+r[3]>=0;if(0===o)return 0;o!==e.length&&(i=!1)}if(i)return 2;for(let n=0;n<3;n++){let e=Number.MAX_VALUE,i=-Number.MAX_VALUE;for(let r=0;r<t.points.length;r++){const o=t.points[r][n]-this.min[n];e=Math.min(e,o),i=Math.max(i,o)}if(i<0||e>this.max[n]-this.min[n])return 0}return 1}}const ol=5,sl=6,al=aa/Math.PI/2,ll=16383,cl=64,ul=[cl,32,16],hl=-al,dl=al,fl=[new rl([hl,hl,hl],[dl,dl,dl]),new rl([hl,hl,hl],[0,0,dl]),new rl([0,hl,hl],[dl,0,dl]),new rl([hl,0,hl],[0,dl,dl]),new rl([0,0,hl],[dl,dl,dl])];function pl(t){return t*al/Fl}
vendor: 6,335 bytes, line 38
38function ml(t,e,i,n=!0){const r=Pa([],t._camera.position,t.worldSize),o=[e,i,1,1];Ga(o,o,t.pixelMatrixInverse),Ua(o,o,1/o[3]);const s=La([],Na([],o,r)),a=t.globeMatrix,l=[a[12],a[13],a[14]],c=Na([],l,r),u=Sa(c),h=La([],c),d=t.worldSize/(2*Math.PI),f=Ra(h,s),p=Math.asin(d/u);if(p<Math.acos(f)){if(!n)return null;const t=[],e=[];Pa(t,s,u/f),La(e,Na(e,t,c)),La(s,Oa(s,c,Pa(s,e,Math.tan(p)*u)))}const m=[];new el(r,s).closestPointOnSphere(l,d,m);const g=La([],K(a,0)),y=La([],K(a,1)),_=La([],K(a,2)),v=Ra(g,m),b=Ra(y,m),x=Ra(_,m),E=w(Math.asin(-b/d));let T=w(Math.atan2(v,x));T=t.center.lng+function(t,e){const i=(e-t+180)%360-180;return i<-180?i+360:i}(t.center.lng,T);const S=ql(T),k=O(Gl(E),0,1);return new Kl(S,k)}class gl{constructor(t,e,i){this.a=Na([],t,i),this.b=Na([],e,i),this.center=i;const n=La([],this.a),r=La([],this.b);this.angle=Math.acos(Ra(n,r))}}function yl(t,e){if(0===t.angle)return null;let i;return i=0===t.a[e]?1/t.angle*.5*Math.PI:1/t.angle*Math.atan(t.b[e]/t.a[e]/Math.sin(t.angle)-1/Math.tan(t.angle)),i<0||i>1?null:function(t,e,i,n){const r=Math.sin(i);return t*(Math.sin((1-n)*i)/r)+e*(Math.sin(n*i)/r)}(t.a[e],t.b[e],t.angle,O(i,0,1))+t.center[e]}function _l(t){if(t.z<=1)return fl[t.z+2*t.y+t.x];const e=Tl(El(t));return rl.fromPoints(e)}function vl(t,e,i){return Pa(t,t,1-i),Da(t,t,e,i)}function bl(t,e){const i=Dl(e.zoom);if(0===i)return _l(t);const n=El(t),r=Tl(n),o=ql(n.getWest())*e.worldSize,s=ql(n.getEast())*e.worldSize,a=Gl(n.getNorth())*e.worldSize,l=Gl(n.getSouth())*e.worldSize,c=[o,a,0],u=[s,a,0],h=[o,l,0],d=[s,l,0],f=pa([],e.globeMatrix);return ja(c,c,f),ja(u,u,f),ja(h,h,f),ja(d,d,f),r[0]=vl(r[0],h,i),r[1]=vl(r[1],d,i),r[2]=vl(r[2],u,i),r[3]=vl(r[3],c,i),rl.fromPoints(r)}function xl(t,e,i){for(const n of t)ja(n,n,e),Pa(n,n,i)}function wl(t,e,i){const n=e/t.worldSize,r=t.globeMatrix;if(i.z<=1){const t=_l(i).getCorners();return xl(t,r,n),rl.fromPoints(t)}const o=El(i),s=Tl(o);xl(s,r,n);const a=Number.MAX_VALUE,l=[-a,-a,-a],c=[a,a,a];if(o.contains(t.center)){for(const t of s)Ia(c,c,t),Ma(l,l,t);l[2]=0;const e=t.point,i=[e.x*n,e.y*n,0];return Ia(c,c,i),Ma(l,l,i),new rl(c,l)}const u=[r[12]*n,r[13]*n,r[14]*n],h=o.getCenter(),d=O(t.center.lat,-Ql,Ql),f=O(h.lat,-Ql,Ql),p=ql(t.center.lng),m=Gl(d);let g=p-ql(h.lng);const y=m-Gl(f);g>.5?g-=1:g<-.5&&(g+=1);let _=0;Math.abs(g)>Math.abs(y)?_=g>=0?1:3:(_=y>=0?0:2,Da(u,u,[r[4]*n,r[5]*n,r[6]*n],-Math.sin(x(y>=0?o.getSouth():o.getNorth()))*al));const v=s[_],b=s[(_+1)%4],w=new gl(v,b,u),E=[yl(w,0)||v[0],yl(w,1)||v[1],yl(w,2)||v[2]],T=Dl(t.zoom);if(T>0){const n=function({x:t,y:e,z:i},n,r,o,s){const a=1/(1<<i);let l=t*a,c=l+a,u=e*a,h=u+a,d=0;const f=(l+c)/2-o;return f>.5?d=-1:f<-.5&&(d=1),l=((l+d)*n-(o*=n))*r+o,c=((c+d)*n-o)*r+o,u=(u*n-(s*=n))*r+s,h=(h*n-s)*r+s,[[l,h,0],[c,h,0],[c,u,0],[l,u,0]]}(i,e,t._pixelsPerMercatorPixel,p,m);for(let t=0;t<s.length;t++)vl(s[t],n[t],T);const r=Oa([],n[_],n[(_+1)%4]);Pa(r,r,.5),vl(E,r,T)}for(const x of s)Ia(c,c,x),Ma(l,l,x);return c[2]=Math.min(v[2],b[2]),Ia(c,c,E),Ma(l,l,E),new rl(c,l)}function El({x:t,y:e,z:i}){const n=1/(1<<i),r=new $l(Zl(t*n),Hl((e+1)*n)),o=new $l(Zl((t+1)*n),Hl(e*n));return new la(r,o)}function Tl(t){const e=x(t.getNorth()),i=x(t.getSouth()),n=Math.cos(e),r=Math.cos(i),o=Math.sin(e),s=Math.sin(i),a=t.getWest(),l=t.getEast();return[Sl(r,s,a),Sl(r,s,l),Sl(n,o,l),Sl(n,o,a)]}function Sl(t,e,i,n=al){return i=x(i),[t*Math.sin(i)*n,-e*n,t*Math.cos(i)*n]}function kl(t,e,i){return Sl(Math.cos(x(t)),Math.sin(x(t)),e,i)}function Ol(t,e,i,n){const r=1<<i.z,o=(t/aa+i.x)/r;return kl(Hl((e/aa+i.y)/r),Zl(o),n)}function Al({min:t,max:e}){return ll/Math.max(e[0]-t[0],e[1]-t[1],e[2]-t[2])}const Cl=new Float64Array(16);function Il(t){const e=Al(t),i=ba(Cl,[e,e,e]);return ga(i,i,((n=[])[0]=-(r=t.min)[0],n[1]=-r[1],n[2]=-r[2],n));var n,r}function Ml(t){const e=(n=t.min,(i=Cl)[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=1,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=1,i[11]=0,i[12]=n[0],i[13]=n[1],i[14]=n[2],i[15]=1,i);var i,n;const r=1/Al(t);return ya(e,e,[r,r,r])}function Pl(t,e,i,n,r){const o=function(t){const e=aa/(2*Math.PI);return t/(2*Math.PI)/e}(i),s=[t,e,-i/(2*Math.PI)],a=fa(new Float64Array(16));return ga(a,a,s),ya(a,a,[o,o,o]),_a(a,a,x(-r)),va(a,a,x(-n)),a}function Dl(t){return A(ol,sl,t)}function Ll(t,e){const i=kl(e.lat,e.lng),n=function(t){const e=kl(t._center.lat,t._center.lng);let i=za([],ka(0,1,0),e);const n=xa([],-t.angle,e);i=ja(i,i,n),xa(n,-t._pitch,i);const r=La([],e);return Pa(r,r,pl(t.cameraToCenterDistance/t.pixelsPerMeter)),ja(r,r,n),Oa([],e,r)}(t);return s=(r=Aa([],n,i))[0],a=r[1],l=r[2],c=(o=i)[0],u=o[1],h=o[2],f=(d=Math.sqrt(s*s+a*a+l*l)*Math.sqrt(c*c+u*u+h*h))&&Ra(r,o)/d,Math.acos(Math.min(Math.max(f,-1),1));var r,o,s,a,l,c,u,h,d,f}function Rl(t,e){return Ll(t,e)>Math.PI/2*1.01}const zl=x(85),jl=Math.cos(zl),Bl=Math.sin(zl),Fl=6371008.8,Nl=2*Math.PI*Fl;class Vl{constructor(t,e){if(isNaN(t)||isNaN(e))throw new Error(`Invalid LngLat object: (${t}, ${e})`);if(this.lng=+t,this.lat=+e,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Vl(C(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(t){const e=Math.PI/180,i=this.lat*e,n=t.lat*e,r=Math.sin(i)*Math.sin(n)+Math.cos(i)*Math.cos(n)*Math.cos((t.lng-this.lng)*e);return Fl*Math.acos(Math.min(r,1))}toBounds(t=0){const e=360*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return new la(new Vl(this.lng-i,this.lat-e),new Vl(this.lng+i,this.lat+e))}toEcef(t){const e=pl(t);return kl(this.lat,this.lng,al+e)}static convert(t){if(t instanceof Vl)return t;if(Array.isArray(t)&&(2===t.length||3===t.length))return new Vl(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&"object"==typeof t&&null!==t)return new Vl(Number("lng"in t?t.lng:t.lon),Number(t.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")}}var $l=Vl;function Ul(t){return Nl*Math.cos(t*Math.PI/180)}function ql(t){return(180+t)/360}function Gl(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function Wl(t,e){return t/Ul(e)}function Zl(t){return 360*t-180}function Hl(t){return 360/Math.PI*Math.atan(Math.exp((180-360*t)*Math.PI/180)
vendor: 14,935 bytes, line 38
38)-90}function Xl(t,e){return t*Ul(Hl(e))}const Ql=85.051129;function Yl(t){return 1/Math.cos(t*Math.PI/180)}class Kl{constructor(t,e,i=0){this.x=+t,this.y=+e,this.z=+i}static fromLngLat(t,e=0){const i=$l.convert(t);return new Kl(ql(i.lng),Gl(i.lat),Wl(e,i.lat))}toLngLat(){return new $l(Zl(this.x),Hl(this.y))}toAltitude(){return Xl(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/Nl*Yl(Hl(this.y))}}function Jl(t,e,i,n,r,o,s,a,l){const c=(e+n)/2,u=(i+r)/2,h=new _(c,u);a(h),function(t,e,i,n,r,o){const s=i-r,a=n-o;return Math.abs((n-e)*s-(i-t)*a)/Math.hypot(s,a)}(h.x,h.y,o.x,o.y,s.x,s.y)>=l?(Jl(t,e,i,c,u,o,h,a,l),Jl(t,c,u,n,r,h,s,a,l)):t.push(s)}function tc(t,e,i){let n=t[0],r=n.x,o=n.y;e(n);const s=[n];for(let a=1;a<t.length;a++){const l=t[a],{x:c,y:u}=l;e(l),Jl(s,r,o,c,u,n,l,e,i),r=c,o=u,n=l}return s}function ec(t,e,i,n){if(n(e,i)){const r=e.add(i)._mult(.5);ec(t,e,r,n),ec(t,r,i,n)}else t.push(i)}function ic(t,e){let i=t[0];const n=[i];for(let r=1;r<t.length;r++){const o=t[r];ec(n,i,o,e),i=o}return n}const nc=Math.pow(2,14)-1,rc=-nc-1;function oc(t,e){const i=Math.round(t.x*e),n=Math.round(t.y*e);return t.x=O(i,rc,nc),t.y=O(n,rc,nc),(i<t.x||i>t.x+1||n<t.y||n>t.y+1)&&q("Geometry exceeds allowed extent, reduce your vector tile buffer size"),t}function sc(t,e,i){const n=t.loadGeometry(),r=t.extent,o=aa/r;if(e&&i&&i.projection.isReprojectedInTileSpace){const o=1<<e.z,{scale:s,x:a,y:l,projection:c}=i,u=t=>{const i=Zl((e.x+t.x/r)/o),n=Hl((e.y+t.y/r)/o),u=c.project(i,n);t.x=(u.x*s-a)*r,t.y=(u.y*s-l)*r};for(let e=0;e<n.length;e++)if(1!==t.type)n[e]=tc(n[e],u,1);else{const t=[];for(const i of n[e])i.x<0||i.x>=r||i.y<0||i.y>=r||(u(i),t.push(i));n[e]=t}}for(const s of n)for(const t of s)oc(t,o);return n}function ac(t,e){return{type:t.type,id:t.id,properties:t.properties,geometry:e?sc(t):[]}}function lc(t,e,i,n,r){t.emplaceBack(2*e+(n+1)/2,2*i+(r+1)/2)}function cc(t,e,i){const n=16384;t.emplaceBack(e.x,e.y,e.z,i[0]*n,i[1]*n,i[2]*n)}class uc{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(t=>t.id),this.index=t.index,this.hasPattern=!1,this.projection=t.projection,this.layoutVertexArray=new Vo,this.indexArray=new ns,this.segments=new sa,this.programConfigurations=new Qs(t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(t,e,i,n){const r=this.layers[0],o=[];let s=null;"circle"===r.type&&(s=r.layout.get("circle-sort-key"));for(const{feature:l,id:c,index:u,sourceLayerIndex:h}of t){const t=this.layers[0]._featureFilter.needGeometry,e=ac(l,t);if(!this.layers[0]._featureFilter.filter(new wo(this.zoom),e,i))continue;const r=s?s.evaluate(e,{},i):void 0,a={id:c,properties:l.properties,type:l.type,sourceLayerIndex:h,index:u,geometry:t?e.geometry:sc(l,i,n),patterns:{},sortKey:r};o.push(a)}s&&o.sort((t,e)=>t.sortKey-e.sortKey);let a=null;"globe"===n.projection.name&&(this.globeExtVertexArray=new Ho,a=n.projection);for(const l of o){const{geometry:n,index:r,sourceLayerIndex:o}=l,s=t[r].feature;this.addFeature(l,n,r,e.availableImages,i,a),e.featureIndex.insert(s,n,r,o,this.index)}}update(t,e,i,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,i,n)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,ra.members),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.globeExtVertexArray&&(this.globeExtVertexBuffer=t.createVertexBuffer(this.globeExtVertexArray,oa.members))),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy())}addFeature(t,e,i,n,r,o){for(const s of e)for(const e of s){const i=e.x,n=e.y;if(i<0||i>=aa||n<0||n>=aa)continue;if(o){const t=o.projectTilePoint(i,n,r),e=o.upVector(r,i,n),s=this.globeExtVertexArray;cc(s,t,e),cc(s,t,e),cc(s,t,e),cc(s,t,e)}const s=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,t.sortKey),a=s.vertexLength;lc(this.layoutVertexArray,i,n,-1,-1),lc(this.layoutVertexArray,i,n,1,-1),lc(this.layoutVertexArray,i,n,1,1),lc(this.layoutVertexArray,i,n,-1,1),this.indexArray.emplaceBack(a,a+1,a+2),this.indexArray.emplaceBack(a,a+2,a+3),s.vertexLength+=4,s.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,i,{},n,r)}}function hc(t,e){for(let i=0;i<t.length;i++)if(bc(e,t[i]))return!0;for(let i=0;i<e.length;i++)if(bc(t,e[i]))return!0;return!!mc(t,e)}function dc(t,e,i){return!!bc(t,e)||!!yc(e,t,i)}function fc(t,e){if(1===t.length)return vc(e,t[0]);for(let i=0;i<e.length;i++){const n=e[i];for(let e=0;e<n.length;e++)if(bc(t,n[e]))return!0}for(let i=0;i<t.length;i++)if(vc(e,t[i]))return!0;for(let i=0;i<e.length;i++)if(mc(t,e[i]))return!0;return!1}function pc(t,e,i){if(t.length>1){if(mc(t,e))return!0;for(let n=0;n<e.length;n++)if(yc(e[n],t,i))return!0}for(let n=0;n<t.length;n++)if(yc(t[n],e,i))return!0;return!1}function mc(t,e){if(0===t.length||0===e.length)return!1;for(let i=0;i<t.length-1;i++){const n=t[i],r=t[i+1];for(let t=0;t<e.length-1;t++)if(gc(n,r,e[t],e[t+1]))return!0}return!1}function gc(t,e,i,n){return G(t,i,n)!==G(e,i,n)&&G(t,e,i)!==G(t,e,n)}function yc(t,e,i){const n=i*i;if(1===e.length)return t.distSqr(e[0])<n;for(let r=1;r<e.length;r++)if(_c(t,e[r-1],e[r])<n)return!0;return!1}function _c(t,e,i){const n=e.distSqr(i);if(0===n)return t.distSqr(e);const r=((t.x-e.x)*(i.x-e.x)+(t.y-e.y)*(i.y-e.y))/n;return t.distSqr(r<0?e:r>1?i:i.sub(e)._mult(r)._add(e))}function vc(t,e){let i,n,r,o=!1;for(let s=0;s<t.length;s++){i=t[s];for(let t=0,s=i.length-1;t<i.length;s=t++)n=i[t],r=i[s],n.y>e.y!=r.y>e.y&&e.x<(r.x-n.x)*(e.y-n.y)/(r.y-n.y)+n.x&&(o=!o)}return o}function bc(t,e){let i=!1;for(let n=0,r=t.length-1;n<t.length;r=n++){const o=t[n],s=t[r];o.y>e.y!=s.y>e.y&&e.x<(s.x-o.x)*(e.y-o.y)/(s.y-o.y)+o.x&&(i=!i)}return i}function xc(t,e,i,n,r){for(const s of t)if(e<=s.x&&i<=s.y&&n>=s.x&&r>=s.y)return!0;const o=[new _(e,i),new _(e,r),new _(n,r),new _(n,i)];if(t.length>2)for(const s of o)if(bc(t,s))return!0;for(let s=0;s<t.length-1;s++)if(wc(t[s],t[s+1],o))return!0;return!1}function wc(t,e,i){const n=i[0],r=i[2];if(t.x<n.x&&e.x<n.x||t.x>r.x&&e.x>r.x||t.y<n.y&&e.y<n.y||t.y>r.y&&e.y>r.y)return!1;const o=G(t,e,i[0]);return o!==G(t,e,i[1])||o!==G(t,e,i[2])||o!==G(t,e,i[3])}function Ec(t,e,i){const n=e.paint.get(t).value;return"constant"===n.kind?n.value:i.programConfigurations.get(e.id).getMaxValue(t)}function Tc(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Sc(t,e,i,n,r){if(!e[0]&&!e[1])return t;const o=_.convert(e)._mult(r);"viewport"===i&&o._rotate(-n);const s=[];for(let a=0;a<t.length;a++)s.push(t[a].sub(o));return s}function kc(t,e,i,n){const r=_.convert(t)._mult(n);return"viewport"===e&&r._rotate(-i),r}Xr(uc,"CircleBucket",{omit:["layers"]});const Oc=new Lo({"circle-sort-key":new Po(te.layout_circle["circle-sort-key"])});var Ac={paint:new Lo({"circle-radius":new Po(te.paint_circle["circle-radius"]),"circle-color":new Po(te.paint_circle["circle-color"]),"circle-blur":new Po(te.paint_circle["circle-blur"]),"circle-opacity":new Po(te.paint_circle["circle-opacity"]),"circle-translate":new Mo(te.paint_circle["circle-translate"]),"circle-translate-anchor":new Mo(te.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Mo(te.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Mo(te.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new Po(te.paint_circle["circle-stroke-width"]),"circle-stroke-color":new Po(te.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new Po(te.paint_circle["circle-stroke-opacity"])}),layout:Oc};function Cc(t,e,i,n,r,o,s,a,l){if(o&&t.queryGeometry.isAboveHorizon)return!1;o&&(l*=t.pixelToTileUnitsFactor);const c=t.tileID.canonical,u=i.projection.upVectorScale(c,i.center.lat,i.worldSize).metersToTile;for(const h of e)for(const e of h){const h=e.add(a),d=r&&i.elevation?i.elevation.exaggeration()*r.getElevationAt(h.x,h.y,!0):0,f=i.projection.projectTilePoint(h.x,h.y,c);if(d>0){const t=i.projection.upVector(c,h.x,h.y);f.x+=t[0]*u*d,f.y+=t[1]*u*d,f.z+=t[2]*u*d}const p=o?h:Ic(f.x,f.y,f.z,n),m=o?t.tilespaceRays.map(t=>Dc(t,d)):t.queryGeometry.screenGeometry,g=Ga([],[f.x,f.y,f.z,1],n);if(!s&&o?l*=g[3]/i.cameraToCenterDistance:s&&!o&&(l*=i.cameraToCenterDistance/g[3]),o){const t=Hl((e.y/aa+c.y)/(1<<c.z));l/=i.projection.pixelsPerMeter(t,1)/Wl(1,t)}if(dc(m,p,l))return!0}return!1}function Ic(t,e,i,n){const r=Ga([],[t,e,i,1],n);return new _(r[0]/r[3],r[1]/r[3])}const Mc=ka(0,0,0),Pc=ka(0,0,1);function Dc(t,e){const i=Ea();return Mc[2]=e,t.intersectsPlane(Mc,Pc,i),new _(i[0],i[1])}class Lc extends uc{}function Rc(t,{width:e,height:i},n,r){if(r){if(r instanceof Uint8ClampedArray)r=new Uint8Array(r.buffer);else if(r.length!==e*i*n)throw new RangeError("mismatched image size")}else r=new Uint8Array(e*i*n);return t.width=e,t.height=i,t.data=r,t}function zc(t,e,i){const{width:n,height:r}=e;n===t.width&&r===t.height||(jc(t,e,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,n),height:Math.min(t.height,r)},i),t.width=n,t.height=r,t.data=e.data)}function jc(t,e,i,n,r,o){if(0===r.width||0===r.height)return e;if(r.width>t.width||r.height>t.height||i.x>t.width-r.width||i.y>t.height-r.height)throw new RangeError("out of range source coordinates for image copy");if(r.width>e.width||r.height>e.height||n.x>e.width-r.width||n.y>e.height-r.height)throw new RangeError("out of range destination coordinates for image copy");const s=t.data,a=e.data;for(let l=0;l<r.height;l++){const c=((i.y+l)*t.width+i.x)*o,u=((n.y+l)*e.width+n.x)*o;for(let t=0;t<r.width*o;t++)a[u+t]=s[c+t]}return e}Xr(Lc,"HeatmapBucket",{omit:["layers"]});class Bc{constructor(t,e){Rc(this,t,1,e)}resize(t){zc(this,new Bc(t),1)}clone(){return new Bc({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(t,e,i,n,r){jc(t,e,i,n,r,1)}}class Fc{constructor(t,e){Rc(this,t,4,e)}resize(t){zc(this,new Fc(t),4)}replace(t,e){e?this.data.set(t):this.data=t instanceof Uint8ClampedArray?new Uint8Array(t.buffer):t}clone(){return new Fc({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(t,e,i,n,r){jc(t,e,i,n,r,4)}}Xr(Bc,"AlphaImage"),Xr(Fc,"RGBAImage");var Nc={paint:new Lo({"heatmap-radius":new Po(te.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Po(te.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Mo(te.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Do(te.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Mo(te.paint_heatmap["heatmap-opacity"])})};function Vc(t){const e={},i=t.resolution||256,n=t.clips?t.clips.length:1,r=t.image||new Fc({width:i,height:n}),o=(i,n,o)=>{e[t.evaluationKey]=o;const s=t.expression.evaluate(e);r.data[i+n+0]=Math.floor(255*s.r/s.a),r.data[i+n+1]=Math.floor(255*s.g/s.a),r.data[i+n+2]=Math.floor(255*s.b/s.a),r.data[i+n+3]=Math.floor(255*s.a)};if(t.clips)for(let s=0,a=0;s<n;++s,a+=4*i)for(let e=0,n=0;e<i;e++,n+=4){const r=e/(i-1),{start:l,end:c}=t.clips[s];o(a,n,l*(1-r)+c*r)}else for(let s=0,a=0;s<i;s++,a+=4)o(0,a,s/(i-1));return r}var $c={paint:new Lo({"hillshade-illumination-direction":new Mo(te.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new Mo(te.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new Mo(te.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new Mo(te.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new Mo(te.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new Mo(te.paint_hillshade["hillshade-accent-color"])})};const Uc=Fo([{name:"a_pos",components:2,type:"Int16"}],4),{members:qc}=Uc;var Gc={exports:{}};function Wc(t,e,i){i=i||2;var n,r,o,s,a,l,c,u=e&&e.length,h=u?e[0]*i:t.length,d=Zc(t,0,h,i,!0),f=[];if(!d||d.next===d.prev)return f;if(u&&(d=function(t,e,i,n){var r,o,s,a=[];for(r=0,o=e.length;r<o;r++)(s=Zc(t,e[r]*n,r<o-1?e[r+1]*n:t.length,n,!1))===s.next&&(s.steiner=!0),a.push(ru(s));for(a.sort(tu),r=0;r<a.length;r++)i=eu(a[r],i);return i}(t,e,d,i)),t.length>80*i){n=o=t[0],r=s=t[1];for(var p=i;p<h;p+=i)(a=t[p])<n&&(n=a),(l=t[p+1])<r&&(r=l),a>o&&(o=a),l>s&&(s=l);c=0!==(c=Math.max(o-n,s-r))?32767/c:0}return Xc(d,f,i,n,r,c,0),f}function Zc(t,e,i,n,r){var o,s;if(r===yu(t,e,i,n)>0)for(o=e;o<i;o+=n)s=pu(o,t[o],t[o+1],s);else for(o=i-n;o>=e;o-=n)s=pu(o,t[o],t[o+1],s);return s&&lu(s,s.next)&&(mu(s),s=s.next),s}function Hc(t,e){if(!t)return t;e||(e=t);var i,n=t;do{if(i=!1,n.steiner||!lu(n,n.next)&&0!==au(n.prev,n,n.next))n=n.next;else{if(mu(n),(n=e=n.prev)===n.next)break;i=!0}}while(i||n!==e);return e}function Xc(t,e,i,n,r,o,s){if(t){!s&&o&&function(t,e,i,n){var r=t;do{0===r.z&&(r.z=nu(r.x,r.y,e,i,n)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,function(t){var e,i,n,r,o,s,a,l,c=1;do{for(i=t,t=null,o=null,s=0;i;){for(s++,n=i,a=0,e=0;e<c&&(a++,n=n.nextZ);e++);for(l=c;a>0||l>0&&n;)0!==a&&(0===l||!n||i.z<=n.z)?(r=i,i=i.nextZ,a--):(r=n,n=n.nextZ,l--),o?o.nextZ=r:t=r,r.prevZ=o,o=r;i=n}o.nextZ=null,c*=2}while(s>1)}(r)}(t,n,r,o);for(var a,l,c=t;t.prev!==t.next;)if(a=t.prev,l=t.next,o?Yc(t,n,r,o):Qc(t))e.push(a.i/i|0),e.push(t.i/i|0),e.push(l.i/i|0),mu(t),t=l.next,c=l.next;else if((t=l)===c){s?1===s?Xc(t=Kc(Hc(t),e,i),e,i,n,r,o,2):2===s&&Jc(t,e,i,n,r,o):Xc(Hc(t),e,i,n,r,o,1);break}}}function Qc(t){var e=t.prev,i=t,n=t.next;if(au(e,i,n)>=0)return!1;for(var r=e.x,o=i.x,s=n.x,a=e.y,l=i.y,c=n.y,u=r<o?r<s?r:s:o<s?o:s,h=a<l?a<c?a:c:l<c?l:c,d=r>o?r>s?r:s:o>s?o:s,f=a>l?a>c?a:c:l>c?l:c,p=n.next;p!==e;){if(p.x>=u&&p.x<=d&&p.y>=h&&p.y<=f&&ou(r,a,o,l,s,c,p.x,p.y)&&au(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function Yc(t,e,i,n){var r=t.prev,o=t,s=t.next;if(au(r,o,s)>=0)return!1;for(var a=r.x,l=o.x,c=s.x,u=r.y,h=o.y,d=s.y,f=a<l?a<c?a:c:l<c?l:c,p=u<h?u<d?u:d:h<d?h:d,m=a>l?a>c?a:c:l>c?l:c,g=u>h?u>d?u:d:h>d?h:d,y=nu(f,p,e,i,n),_=nu(m,g,e,i,n),v=t.prevZ,b=t.nextZ;v&&v.z>=y&&b&&b.z<=_;){if(v.x>=f&&v.x<=m&&v.y>=p&&v.y<=g&&v!==r&&v!==s&&ou(a,u,l,h,c,d,v.x,v.y)&&au(v.prev,v,v.next)>=0)return!1;if(v=v.prevZ,b.x>=f&&b.x<=m&&b.y>=p&&b.y<=g&&b!==r&&b!==s&&ou(a,u,l,h,c,d,b.x,b.y)&&au(b.prev,b,b.next)>=0)return!1;b=b.nextZ}for(;v&&v.z>=y;){if(v.x>=f&&v.x<=m&&v.y>=p&&v.y<=g&&v!==r&&v!==s&&ou(a,u,l,h,c,d,v.x,v.y)&&au(v.prev,v,v.next)>=0)return!1;v=v.prevZ}for(;b&&b.z<=_;){if(b.x>=f&&b.x<=m&&b.y>=p&&b.y<=g&&b!==r&&b!==s&&ou(a,u,l,h,c,d,b.x,b.y)&&au(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function Kc(t,e,i){var n=t;do{var r=n.prev,o=n.next.next;!lu(r,o)&&cu(r,n,n.next,o)&&du(r,o)&&du(o,r)&&(e.push(r.i/i|0),e.push(n.i/i|0),e.push(o.i/i|0),mu(n),mu(n.next),n=t=o),n=n.next}while(n!==t);return Hc(n)}
vendor: 5,139 bytes, line 38
38function Jc(t,e,i,n,r,o){var s=t;do{for(var a=s.next.next;a!==s.prev;){if(s.i!==a.i&&su(s,a)){var l=fu(s,a);return s=Hc(s,s.next),l=Hc(l,l.next),Xc(s,e,i,n,r,o,0),void Xc(l,e,i,n,r,o,0)}a=a.next}s=s.next}while(s!==t)}function tu(t,e){return t.x-e.x}function eu(t,e){var i=function(t,e){var i,n=e,r=t.x,o=t.y,s=-1/0;do{if(o<=n.y&&o>=n.next.y&&n.next.y!==n.y){var a=n.x+(o-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(a<=r&&a>s&&(s=a,i=n.x<n.next.x?n:n.next,a===r))return i}n=n.next}while(n!==e);if(!i)return null;var l,c=i,u=i.x,h=i.y,d=1/0;n=i;do{r>=n.x&&n.x>=u&&r!==n.x&&ou(o<h?r:s,o,u,h,o<h?s:r,o,n.x,n.y)&&(l=Math.abs(o-n.y)/(r-n.x),du(n,t)&&(l<d||l===d&&(n.x>i.x||n.x===i.x&&iu(i,n)))&&(i=n,d=l)),n=n.next}while(n!==c);return i}(t,e);if(!i)return e;var n=fu(i,t);return Hc(n,n.next),Hc(i,i.next)}function iu(t,e){return au(t.prev,t,e.prev)<0&&au(e.next,t,t.next)<0}function nu(t,e,i,n,r){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-i)*r|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*r|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function ru(t){var e=t,i=t;do{(e.x<i.x||e.x===i.x&&e.y<i.y)&&(i=e),e=e.next}while(e!==t);return i}function ou(t,e,i,n,r,o,s,a){return(r-s)*(e-a)>=(t-s)*(o-a)&&(t-s)*(n-a)>=(i-s)*(e-a)&&(i-s)*(o-a)>=(r-s)*(n-a)}function su(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&cu(i,i.next,t,e))return!0;i=i.next}while(i!==t);return!1}(t,e)&&(du(t,e)&&du(e,t)&&function(t,e){var i=t,n=!1,r=(t.x+e.x)/2,o=(t.y+e.y)/2;do{i.y>o!=i.next.y>o&&i.next.y!==i.y&&r<(i.next.x-i.x)*(o-i.y)/(i.next.y-i.y)+i.x&&(n=!n),i=i.next}while(i!==t);return n}(t,e)&&(au(t.prev,t,e.prev)||au(t,e.prev,e))||lu(t,e)&&au(t.prev,t,t.next)>0&&au(e.prev,e,e.next)>0)}function au(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function lu(t,e){return t.x===e.x&&t.y===e.y}function cu(t,e,i,n){var r=hu(au(t,e,i)),o=hu(au(t,e,n)),s=hu(au(i,n,t)),a=hu(au(i,n,e));return r!==o&&s!==a||!(0!==r||!uu(t,i,e))||!(0!==o||!uu(t,n,e))||!(0!==s||!uu(i,t,n))||!(0!==a||!uu(i,e,n))}function uu(t,e,i){return e.x<=Math.max(t.x,i.x)&&e.x>=Math.min(t.x,i.x)&&e.y<=Math.max(t.y,i.y)&&e.y>=Math.min(t.y,i.y)}function hu(t){return t>0?1:t<0?-1:0}function du(t,e){return au(t.prev,t,t.next)<0?au(t,e,t.next)>=0&&au(t,t.prev,e)>=0:au(t,e,t.prev)<0||au(t,t.next,e)<0}function fu(t,e){var i=new gu(t.i,t.x,t.y),n=new gu(e.i,e.x,e.y),r=t.next,o=e.prev;return t.next=e,e.prev=t,i.next=r,r.prev=i,n.next=i,i.prev=n,o.next=n,n.prev=o,n}function pu(t,e,i,n){var r=new gu(t,e,i);return n?(r.next=n.next,r.prev=n,n.next.prev=r,n.next=r):(r.prev=r,r.next=r),r}function mu(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function gu(t,e,i){this.i=t,this.x=e,this.y=i,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function yu(t,e,i,n){for(var r=0,o=e,s=i-n;o<i;o+=n)r+=(t[s]-t[o])*(t[o+1]+t[s+1]),s=o;return r}Gc.exports=Wc,Gc.exports.default=Wc,Wc.deviation=function(t,e,i,n){var r=e&&e.length,o=Math.abs(yu(t,0,r?e[0]*i:t.length,i));if(r)for(var s=0,a=e.length;s<a;s++)o-=Math.abs(yu(t,e[s]*i,s<a-1?e[s+1]*i:t.length,i));var l=0;for(s=0;s<n.length;s+=3){var c=n[s]*i,u=n[s+1]*i,h=n[s+2]*i;l+=Math.abs((t[c]-t[h])*(t[u+1]-t[c+1])-(t[c]-t[u])*(t[h+1]-t[c+1]))}return 0===o&&0===l?0:Math.abs((l-o)/o)},Wc.flatten=function(t){for(var e=t[0][0].length,i={vertices:[],holes:[],dimensions:e},n=0,r=0;r<t.length;r++){for(var o=0;o<t[r].length;o++)for(var s=0;s<e;s++)i.vertices.push(t[r][o][s]);r>0&&i.holes.push(n+=t[r-1].length)}return i};var _u=d(Gc.exports);function vu(t,e,i,n,r){bu(t,e,i||0,n||t.length-1,r||wu)}function bu(t,e,i,n,r){for(;n>i;){if(n-i>600){var o=n-i+1,s=e-i+1,a=Math.log(o),l=.5*Math.exp(2*a/3),c=.5*Math.sqrt(a*l*(o-l)/o)*(s-o/2<0?-1:1);bu(t,e,Math.max(i,Math.floor(e-s*l/o+c)),Math.min(n,Math.floor(e+(o-s)*l/o+c)),r)}var u=t[e],h=i,d=n;for(xu(t,i,e),r(t[n],u)>0&&xu(t,i,n);h<d;){for(xu(t,h,d),h++,d--;r(t[h],u)<0;)h++;for(;r(t[d],u)>0;)d--}0===r(t[i],u)?xu(t,i,d):xu(t,++d,n),d<=e&&(i=d+1),e<=d&&(n=d-1)}}function xu(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function wu(t,e){return t<e?-1:t>e?1:0}function Eu(t,e){const i=t.length;if(i<=1)return[t];const n=[];let r,o;for(let s=0;s<i;s++){const e=W(t[s]);0!==e&&(t[s].area=Math.abs(e),void 0===o&&(o=e<0),o===e<0?(r&&n.push(r),r=[t[s]]):r.push(t[s]))}if(r&&n.push(r),e>1)for(let s=0;s<n.length;s++)n[s].length<=e||(vu(n[s],e,1,n[s].length-1,Tu),n[s]=n[s].slice(0,e));return n}function Tu(t,e){return e.area-t.area}function Su(t,e,i){const n=i.patternDependencies;let r=!1;for(const o of e){const e=o.paint.get(t+"-pattern");e.isConstant()||(r=!0);const i=e.constantOr(null);i&&(r=!0,n[i]=!0)}return r}function ku(t,e,i,n,r){const o=r.patternDependencies;for(const s of e){const e=s.paint.get(t+"-pattern").value;if("constant"!==e.kind){let t=e.evaluate({zoom:n},i,{},r.availableImages);t=t&&t.name?t.name:t,o[t]=!0,i.patterns[s.id]=t}}return i}class Ou{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(t=>
vendor: 12,665 bytes, line 38
38t.id),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Vo,this.indexArray=new ns,this.indexArray2=new cs,this.programConfigurations=new Qs(t.layers,t.zoom),this.segments=new sa,this.segments2=new sa,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id),this.projection=t.projection}populate(t,e,i,n){this.hasPattern=Su("fill",this.layers,e);const r=this.layers[0].layout.get("fill-sort-key"),o=[];for(const{feature:s,id:a,index:l,sourceLayerIndex:c}of t){const t=this.layers[0]._featureFilter.needGeometry,u=ac(s,t);if(!this.layers[0]._featureFilter.filter(new wo(this.zoom),u,i))continue;const h=r?r.evaluate(u,{},i,e.availableImages):void 0,d={id:a,properties:s.properties,type:s.type,sourceLayerIndex:c,index:l,geometry:t?u.geometry:sc(s,i,n),patterns:{},sortKey:h};o.push(d)}r&&o.sort((t,e)=>t.sortKey-e.sortKey);for(const s of o){const{geometry:n,index:r,sourceLayerIndex:o}=s;if(this.hasPattern){const t=ku("fill",this.layers,s,this.zoom,e);this.patternFeatures.push(t)}else this.addFeature(s,n,r,i,{},e.availableImages);e.featureIndex.insert(t[r].feature,n,r,o,this.index)}}update(t,e,i,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,i,n)}addFeatures(t,e,i,n,r){for(const o of this.patternFeatures)this.addFeature(o,o.geometry,o.index,e,i,n)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,qc),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(t,e,i,n,r,o=[]){for(const s of Eu(e,500)){let t=0;for(const a of s)t+=a.length;const e=this.segments.prepareSegment(t,this.layoutVertexArray,this.indexArray),i=e.vertexLength,n=[],r=[];for(const a of s){if(0===a.length)continue;a!==s[0]&&r.push(n.length/2);const t=this.segments2.prepareSegment(a.length,this.layoutVertexArray,this.indexArray2),e=t.vertexLength;this.layoutVertexArray.emplaceBack(a[0].x,a[0].y),this.indexArray2.emplaceBack(e+a.length-1,e),n.push(a[0].x),n.push(a[0].y);for(let i=1;i<a.length;i++)this.layoutVertexArray.emplaceBack(a[i].x,a[i].y),this.indexArray2.emplaceBack(e+i-1,e+i),n.push(a[i].x),n.push(a[i].y);t.vertexLength+=a.length,t.primitiveLength+=a.length}const o=_u(n,r);for(let s=0;s<o.length;s+=3)this.indexArray.emplaceBack(i+o[s],i+o[s+1],i+o[s+2]);e.vertexLength+=t,e.primitiveLength+=o.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,i,r,o,n)}}Xr(Ou,"FillBucket",{omit:["layers","patternFeatures"]});const Au=new Lo({"fill-sort-key":new Po(te.layout_fill["fill-sort-key"])});var Cu={paint:new Lo({"fill-antialias":new Mo(te.paint_fill["fill-antialias"]),"fill-opacity":new Po(te.paint_fill["fill-opacity"]),"fill-color":new Po(te.paint_fill["fill-color"]),"fill-outline-color":new Po(te.paint_fill["fill-outline-color"]),"fill-translate":new Mo(te.paint_fill["fill-translate"]),"fill-translate-anchor":new Mo(te.paint_fill["fill-translate-anchor"]),"fill-pattern":new Po(te.paint_fill["fill-pattern"])}),layout:Au};const Iu=Fo([{name:"a_pos_normal_ed",components:4,type:"Int16"}]),Mu=Fo([{name:"a_centroid_pos",components:2,type:"Uint16"}]),Pu=Fo([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]),{members:Du}=Iu;var Lu={},Ru=g,zu=ju;function ju(t,e,i,n,r){this.properties={},this.extent=i,this.type=0,this._pbf=t,this._geometry=-1,this._keys=n,this._values=r,t.readFields(Bu,this,e)}function Bu(t,e,i){1==t?e.id=i.readVarint():2==t?function(t,e){for(var i=t.readVarint()+t.pos;t.pos<i;){var n=e._keys[t.readVarint()],r=e._values[t.readVarint()];e.properties[n]=r}}(i,e):3==t?e.type=i.readVarint():4==t&&(e._geometry=i.pos)}function Fu(t){for(var e,i,n=0,r=0,o=t.length,s=o-1;r<o;s=r++)n+=((i=t[s]).x-(e=t[r]).x)*(e.y+i.y);return n}ju.types=["Unknown","Point","LineString","Polygon"],ju.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var e,i=t.readVarint()+t.pos,n=1,r=0,o=0,s=0,a=[];t.pos<i;){if(r<=0){var l=t.readVarint();n=7&l,r=l>>3}if(r--,1===n||2===n)o+=t.readSVarint(),s+=t.readSVarint(),1===n&&(e&&a.push(e),e=[]),e.push(new Ru(o,s));else{if(7!==n)throw new Error("unknown command "+n);e&&e.push(e[0].clone())}}return e&&a.push(e),a},ju.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,i=1,n=0,r=0,o=0,s=1/0,a=-1/0,l=1/0,c=-1/0;t.pos<e;){if(n<=0){var u=t.readVarint();i=7&u,n=u>>3}if(n--,1===i||2===i)(r+=t.readSVarint())<s&&(s=r),r>a&&(a=r),(o+=t.readSVarint())<l&&(l=o),o>c&&(c=o);else if(7!==i)throw new Error("unknown command "+i)}return[s,l,a,c]},ju.prototype.toGeoJSON=function(t,e,i){var n,r,o=this.extent*Math.pow(2,i),s=this.extent*t,a=this.extent*e,l=this.loadGeometry(),c=ju.types[this.type];function u(t){for(var e=0;e<t.length;e++){var i=t[e];t[e]=[360*(i.x+s)/o-180,360/Math.PI*Math.atan(Math.exp((180-360*(i.y+a)/o)*Math.PI/180))-90]}}switch(this.type){case 1:var h=[];for(n=0;n<l.length;n++)h[n]=l[n][0];u(l=h);break;case 2:for(n=0;n<l.length;n++)u(l[n]);break;case 3:for(l=function(t){var e=t.length;if(e<=1)return[t];for(var i,n,r=[],o=0;o<e;o++){var s=Fu(t[o]);0!==s&&(void 0===n&&(n=s<0),n===s<0?(i&&r.push(i),i=[t[o]]):i.push(t[o]))}return i&&r.push(i),r}(l),n=0;n<l.length;n++)for(r=0;r<l[n].length;r++)u(l[n][r])}1===l.length?l=l[0]:c="Multi"+c;var d={type:"Feature",geometry:{type:c,coordinates:l},properties:this.properties};return"id"in this&&(d.id=this.id),d};var Nu=zu,Vu=$u;function $u(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(Uu,this,e),this.length=this._features.length}function Uu(t,e,i){15===t?e.version=i.readVarint():1===t?e.name=i.readString():5===t?e.extent=i.readVarint():2===t?e._features.push(i.pos):3===t?e._keys.push(i.readString()):4===t&&e._values.push(function(t){for(var e=null,i=t.readVarint()+t.pos;t.pos<i;){var n=t.readVarint()>>3;e=1===n?t.readString():2===n?t.readFloat():3===n?t.readDouble():4===n?t.readVarint64():5===n?t.readVarint():6===n?t.readSVarint():7===n?t.readBoolean():null}return e}(i))}$u.prototype.feature=function(t){if(t<0||t>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new Nu(this._pbf,e,this.extent,this._keys,this._values)};var qu=Vu;function Gu(t,e,i){if(3===t){var n=new qu(i,i.readVarint()+i.pos);n.length&&(e[n.name]=n)}}var Wu=Lu.VectorTile=function(t,e){this.layers=t.readFields(Gu,{},e)},Zu=Lu.VectorTileFeature=zu;function Hu(t,e,i,n){const r=[],o=0===n?(t,e,i,n,r,o)=>{t.push(new _(o,i+(o-e)/(n-e)*(r-i)))}:(t,e,i,n,r,o)=>{t.push(new _(e+(o-i)/(r-i)*(n-e),o))};for(const s of t){const t=[];for(const r of s){if(r.length<=2)continue;const s=[];for(let t=0;t<r.length-1;t++){const a=r[t].x,l=r[t].y,c=r[t+1].x,u=r[t+1].y,h=0===n?a:l,d=0===n?c:u;h<e?d>e&&o(s,a,l,c,u,e):h>i?d<i&&o(s,a,l,c,u,i):s.push(r[t]),d<e&&h>=e&&o(s,a,l,c,u,e),d>i&&h<=i&&o(s,a,l,c,u,i)}let a=r[r.length-1];const l=0===n?a.x:a.y;l>=e&&l<=i&&s.push(a),s.length&&(a=s[s.length-1],s[0].x===a.x&&s[0].y===a.y||s.push(s[0]),t.push(s))}t.length&&r.push(t)}return r}Lu.VectorTileLayer=Vu;const Xu=Zu.types,Qu=Math.pow(2,13);function Yu(t,e,i,n,r,o,s,a){t.emplaceBack((e<<1)+s,(i<<1)+o,(Math.floor(n*Qu)<<1)+r,Math.round(a))}function Ku(t,e,i){const n=16384;t.emplaceBack(e.x,e.y,e.z,i[0]*n,i[1]*n,i[2]*n)}class Ju{constructor(){this.acc=new _(0,0),this.polyCount=[]}startRing(t){this.currentPolyCount={edges:0,top:0},this.polyCount.push(this.currentPolyCount),this.min||(this.min=new _(t.x,t.y),this.max=new _(t.x,t.y))}append(t,e){this.currentPolyCount.edges++,this.acc._add(t);const i=this.min,n=this.max;t.x<i.x?i.x=t.x:t.x>n.x&&(n.x=t.x),t.y<i.y?i.y=t.y:t.y>n.y&&(n.y=t.y),((0===t.x||t.x===aa)&&t.x===e.x)!=((0===t.y||t.y===aa)&&t.y===e.y)&&this.processBorderOverlap(t,e),e.x<0!=t.x<0&&this.addBorderIntersection(0,Mi(e.y,t.y,(0-e.x)/(t.x-e.x))),e.x>aa!=t.x>aa&&this.addBorderIntersection(1,Mi(e.y,t.y,(aa-e.x)/(t.x-e.x))),e.y<0!=t.y<0&&this.addBorderIntersection(2,Mi(e.x,t.x,(0-e.y)/(t.y-e.y))),e.y>aa!=t.y>aa&&this.addBorderIntersection(3,Mi(e.x,t.x,(aa-e.y)/(t.y-e.y)))}addBorderIntersection(t,e){this.borders||(this.borders=[[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE]]);const i=this.borders[t];e<i[0]&&(i[0]=e),e>i[1]&&(i[1]=e)}processBorderOverlap(t,e){if(t.x===e.x){if(t.y===e.y)return;const i=0===t.x?0:1;this.addBorderIntersection(i,e.y),this.addBorderIntersection(i,t.y)}else{const i=0===t.y?2:3;this.addBorderIntersection(i,e.x),this.addBorderIntersection(i,t.x)}}centroid(){const t=this.polyCount.reduce((t,e)=>t+e.edges,0);return 0!==t?this.acc.div(t)._round():new _(0,0)}span(){return new _(this.max.x-this.min.x,this.max.y-this.min.y)}intersectsCount(){return this.borders.reduce((t,e)=>t+ +(e[0]!==Number.MAX_VALUE),0)}}class th{constructor(t){this.zoom=t.zoom,this.canonical=t.canonical,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(t=>t.id),this.index=t.index,this.hasPattern=!1,this.edgeRadius=0,this.projection=t.projection,this.layoutVertexArray=new Uo,this.centroidVertexArray=new ws,this.indexArray=new ns,this.programConfigurations=new Qs(t.layers,t.zoom),this.segments=new sa,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id),this.enableTerrain=t.enableTerrain}populate(t,e,i,n){this.features=[],this.hasPattern=Su("fill-extrusion",this.layers,e),this.featuresOnBorder=[],this.borders=[[],[],[],[]],this.borderDoneWithNeighborZ=[-1,-1,-1,-1],this.tileToMeter=function(t){const e=Math.exp(Math.PI*(1-t.y/(1<<t.z)*2));return 80150034*e/(e*e+1)/aa/(1<<t.z)}(i),this.edgeRadius=this.layers[0].layout.get("fill-extrusion-edge-radius")/this.tileToMeter;for(const{feature:r,id:o,index:s,sourceLayerIndex:a}of t){const t=this.layers[0]._featureFilter.needGeometry,l=ac(r,t);if(!this.layers[0]._featureFilter.filter(new wo(this.zoom),l,i))continue;const c={id:o,sourceLayerIndex:a,index:s,geometry:t?l.geometry:sc(r,i,n),properties:r.properties,type:r.type,patterns:{}},u=this.layoutVertexArray.length;this.hasPattern?this.features.push(ku("fill-extrusion",this.layers,c,this.zoom,e)):this.addFeature(c,c.geometry,s,i,{},e.availableImages,n),e.featureIndex.insert(r,c.geometry,s,a,this.index,u)}this.sortBorders()}addFeatures(t,e,i,n,r){for(const o of this.features){const{geometry:t}=o;this.addFeature(o,t,o.index,e,i,n,r)}this.sortBorders()}update(t,e,i,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,i,n)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Du),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.layoutVertexExtArray&&(this.layoutVertexExtBuffer=t.createVertexBuffer(this.layoutVertexExtArray,Pu.members,!0))),this.programConfigurations.upload(t),this.uploaded=!0}uploadCentroid(t){0!==this.centroidVertexArray.length&&(this.centroidVertexBuffer?this.needsCentroidUpdate&&this.centroidVertexBuffer.updateData(this.centroidVertexArray):this.centroidVertexBuffer=t.createVertexBuffer(this.centroidVertexArray,Mu.members,!0),this.needsCentroidUpdate=!1)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.centroidVertexBuffer&&this.centroidVertexBuffer.destroy(),this.layoutVertexExtBuffer&&this.layoutVertexExtBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(t,e,i,n,r,o,s){const a=[new _(0,0),new _(aa,aa)],l=s.projection,c="globe"===l.name,u=this.enableTerrain&&!c?new Ju:null,h="Polygon"===Xu[t.type];c&&!this.layoutVertexExtArray&&(this.layoutVertexExtArray=new Ho);const d=Eu(e,500);for(let g=d.length-1;g>=0;g--){const t=d[g];(0===t.length||(f=t[0]).every(t=>t.x<=0)||f.every(t=>t.x>=aa)||f.every(t=>t.y<=0)||f.every(t=>t.y>=aa))&&d.splice(g,1)}var f;let p;if(c)p=lh(d,a,n);else{p=[];for(const t of d)p.push({polygon:t,bounds:a})}const m=h?this.edgeRadius:0;
38for(const{polygon:g,bounds:y}of p){let t=0,e=0;for(const n of g)h&&!n[0].equals(n[n.length-1])&&n.push(n[0]),e+=h?n.length-1:n.length;const i=this.segments.prepareSegment((h?5:4)*e,this.layoutVertexArray,this.indexArray);if(h){const e=[],r=[];t=i.vertexLength;for(const t of g){let o,s;t.length&&t!==g[0]&&r.push(e.length/2),o=t[1].sub(t[0])._perp()._unit();for(let r=1;r<t.length;r++){const a=t[r],u=t[r===t.length-1?1:r+1];let{x:h,y:d}=a;if(m){s=u.sub(a)._perp()._unit();const t=o.add(s)._unit(),e=m*Math.min(4,1/(o.x*t.x+o.y*t.y));h+=e*t.x,d+=e*t.y,o=s}Yu(this.layoutVertexArray,h,d,0,0,1,1,0),i.vertexLength++,e.push(a.x,a.y),c&&Ku(this.layoutVertexExtArray,l.projectTilePoint(h,d,n),l.upVector(n,h,d))}}const o=_u(e,r);for(let n=0;n<o.length;n+=3)this.indexArray.emplaceBack(t+o[n],t+o[n+2],t+o[n+1]),i.primitiveLength++}for(const r of g){u&&r.length&&u.startRing(r[0]);let e,o,s,a=r.length>4&&oh(r[r.length-2],r[0],r[1]),d=m?ih(r[r.length-2],r[0],r[1],m):0;o=r[1].sub(r[0])._perp()._unit();let f=!0;for(let p=1,g=0;p<r.length;p++){let _=r[p-1],v=r[p];const b=r[p===r.length-1?1:p+1];if(u&&h&&u.currentPolyCount.top++,rh(v,_,y)){m&&(o=b.sub(v)._perp()._unit(),f=!f);continue}u&&u.append(v,_);const x=v.sub(_)._perp(),w=x.x/(Math.abs(x.x)+Math.abs(x.y)),E=x.y>0?1:0,T=_.dist(v);if(g+T>32768&&(g=0),m){s=b.sub(v)._perp()._unit();let t=nh(_,v,b,eh(o,s),m);isNaN(t)&&(t=0);const e=v.sub(_)._unit();_=_.add(e.mult(d))._round(),v=v.add(e.mult(-t))._round(),d=t,o=s}const S=i.vertexLength,k=r.length>4&&oh(_,v,b);let O=sh(g,a,f);if(Yu(this.layoutVertexArray,_.x,_.y,w,E,0,0,O),Yu(this.layoutVertexArray,_.x,_.y,w,E,0,1,O),g+=T,O=sh(g,k,!f),a=k,Yu(this.layoutVertexArray,v.x,v.y,w,E,0,0,O),Yu(this.layoutVertexArray,v.x,v.y,w,E,0,1,O),i.vertexLength+=4,this.indexArray.emplaceBack(S+0,S+1,S+2),this.indexArray.emplaceBack(S+1,S+3,S+2),i.primitiveLength+=2,m){const n=t+(1===p?r.length-2:p-2),o=1===p?t:n+1;if(this.indexArray.emplaceBack(S+1,n,S+3),this.indexArray.emplaceBack(n,o,S+3),i.primitiveLength+=2,void 0===e&&(e=S),!rh(b,r[p],y)){const t=p===r.length-1?e:i.vertexLength;this.indexArray.emplaceBack(S+2,S+3,t),this.indexArray.emplaceBack(S+3,t+1,t),this.indexArray.emplaceBack(S+3,o,t+1),i.primitiveLength+=3}f=!f}if(c){const t=this.layoutVertexExtArray,e=l.projectTilePoint(_.x,_.y,n),i=l.projectTilePoint(v.x,v.y,n),r=l.upVector(n,_.x,_.y),o=l.upVector(n,v.x,v.y);Ku(t,e,r),Ku(t,e,r),Ku(t,i,o),Ku(t,i,o)}}h&&(t+=r.length-1)}}if(u&&u.polyCount.length>0){if(u.borders){u.vertexArrayOffset=this.centroidVertexArray.length;const t=u.borders,e=this.featuresOnBorder.push(u)-1;for(let i=0;i<4;i++)t[i][0]!==Number.MAX_VALUE&&this.borders[i].push(e)}this.encodeCentroid(u.borders?void 0:u.centroid(),u)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,i,r,o,n)}sortBorders(){for(let t=0;t<4;t++)this.borders[t].sort((e,i)=>this.featuresOnBorder[e].borders[t][0]-this.featuresOnBorder[i].borders[t][0])}encodeCentroid(t,e,i=!0){let n,r;if(t)if(0!==t.y){const i=e.span()._mult(this.tileToMeter);n=(Math.max(t.x,1)<<3)+Math.min(7,Math.round(i.x/10)),r=(Math.max(t.y,1)<<3)+Math.min(7,Math.round(i.y/10))}else n=Math.ceil(7*(t.x+450)),r=0;else n=0,r=+i;let o=i?this.centroidVertexArray.length:e.vertexArrayOffset;for(const s of e.polyCount){i&&this.centroidVertexArray.resize(this.centroidVertexArray.length+4*s.edges+s.top);for(let t=0;t<s.top;t++)this.centroidVertexArray.emplace(o++,n,r);for(let t=0;t<2*s.edges;t++)this.centroidVertexArray.emplace(o++,0,r),this.centroidVertexArray.emplace(o++,n,r)}}}function eh(t,e){const i=t.add(e)._unit();return t.x*i.x+t.y*i.y}function ih(t,e,i,n){const r=e.sub(t)._perp()._unit(),o=i.sub(e)._perp()._unit();return nh(t,e,i,eh(r,o),n)}function nh(t,e,i,n,r){const o=Math.sqrt(1-n*n);return Math.min(t.dist(e)/3,e.dist(i)/3,r*o/n)}function rh(t,e,i){return t.x<i[0].x&&e.x<i[0].x||t.x>i[1].x&&e.x>i[1].x||t.y<i[0].y&&e.y<i[0].y||t.y>i[1].y&&e.y>i[1].y}function oh(t,e,i){if(t.x<0||t.x>=aa||e.x<0||e.x>=aa||i.x<0||i.x>=aa)return!1;const n=i.sub(e),r=n.perp(),o=t.sub(e);return(n.x*o.x+n.y*o.y)/Math.sqrt((n.x*n.x+n.y*n.y)*(o.x*o.x+o.y*o.y))>-.866&&r.x*o.x+r.y*o.y<0}function sh(t,e,i){const n=e?2|t:-3&t;return i?1|n:-2&n}function ah(){const t=Math.PI/32,e=Math.tan(t),i=Fl;return i*Math.sqrt(1+2*e*e)-i}function lh(t,e,i){const n=1<<i.z,r=Zl(i.x/n),o=Zl((i.x+1)/n),s=Hl(i.y/n),a=Hl((i.y+1)/n);
vendor: 4,647 bytes, line 38
38return function(t,e,i,n,r=0,o){const s=[];if(!t.length||!i||!n)return s;const a=(t,e)=>{for(const i of t)s.push({polygon:i,bounds:e})},l=Math.ceil(Math.log2(i)),c=Math.ceil(Math.log2(n)),u=l-c,h=[];for(let p=0;p<Math.abs(u);p++)h.push(u>0?0:1);for(let p=0;p<Math.min(l,c);p++)h.push(0),h.push(1);let d=t;if(d=Hu(d,e[0].y-r,e[1].y+r,1),d=Hu(d,e[0].x-r,e[1].x+r,0),!d.length)return s;const f=[];for(h.length?f.push({polygons:d,bounds:e,depth:0}):a(d,e);f.length;){const t=f.pop(),e=t.depth,i=h[e],n=t.bounds[0],s=t.bounds[1],l=0===i?n.x:n.y,c=0===i?s.x:s.y,u=o?o(i,l,c):.5*(l+c),d=Hu(t.polygons,l-r,u+r,i),p=Hu(t.polygons,u-r,c+r,i);if(d.length){const t=[n,new _(0===i?u:s.x,1===i?u:s.y)];h.length>e+1?f.push({polygons:d,bounds:t,depth:e+1}):a(d,t)}if(p.length){const t=[new _(0===i?u:n.x,1===i?u:n.y),s];h.length>e+1?f.push({polygons:p,bounds:t,depth:e+1}):a(p,t)}}return s}(t,e,Math.ceil((o-r)/11.25),Math.ceil((s-a)/11.25),1,(t,e,r)=>{if(0===t)return.5*(e+r);{const t=Hl((i.y+e/aa)/n);return(Gl(.5*(Hl((i.y+r/aa)/n)+t))*n-i.y)*aa}})}Xr(th,"FillExtrusionBucket",{omit:["layers","features"]}),Xr(Ju,"PartMetadata");const ch=new Lo({"fill-extrusion-edge-radius":new Mo(te["layout_fill-extrusion"]["fill-extrusion-edge-radius"])});var uh={paint:new Lo({"fill-extrusion-opacity":new Mo(te["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Po(te["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Mo(te["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Mo(te["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Po(te["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Po(te["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Po(te["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Mo(te["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"]),"fill-extrusion-ambient-occlusion-intensity":new Mo(te["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-intensity"]),"fill-extrusion-ambient-occlusion-radius":new Mo(te["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-radius"]),"fill-extrusion-rounded-roof":new Mo(te["paint_fill-extrusion"]["fill-extrusion-rounded-roof"])}),layout:ch};function hh(t,e,i){var n=2*Math.PI*6378137/256/Math.pow(2,i);return[t*n-2*Math.PI*6378137/2,e*n-2*Math.PI*6378137/2]}class dh{constructor(t,e,i){this.z=t,this.x=e,this.y=i,this.key=mh(0,t,t,e,i)}equals(t){return this.z===t.z&&this.x===t.x&&this.y===t.y}url(t,e){const i=function(t,e,i){var n=hh(256*t,256*(e=Math.pow(2,i)-e-1),i),r=hh(256*(t+1),256*(e+1),i);return n[0]+","+n[1]+","+r[0]+","+r[1]}(this.x,this.y,this.z),n=function(t,e,i){let n,r="";for(let o=t;o>0;o--)n=1<<o-1,r+=(e&n?1:0)+(i&n?2:0);return r}(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String("tms"===e?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",n).replace("{bbox-epsg-3857}",i)}toString(){return`${this.z}/${this.x}/${this.y}`}}class fh{constructor(t,e){this.wrap=t,this.canonical=e,this.key=mh(t,e.z,e.z,e.x,e.y)}}class ph{constructor(t,e,i,n,r){this.overscaledZ=t,this.wrap=e,this.canonical=new dh(i,+n,+r),this.key=0===e&&t===i?this.canonical.key:mh(e,t,i,n,r)}equals(t){return this.overscaledZ===t.overscaledZ&&this.wrap===t.wrap&&this.canonical.equals(t.canonical)}scaledTo(t){const e=this.canonical.z-t;return t>this.canonical.z?new ph(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new ph(t,this.wrap,t,this.canonical.x>>e,this.canonical.y>>e)}calculateScaledKey(t,e=!0){if(this.overscaledZ===t&&e)return this.key;if(t>this.canonical.z)return mh(this.wrap*+e,t,this.canonical.z,this.canonical.x,this.canonical.y);{const i=this.canonical.z-t;return mh(this.wrap*+e,t,t,this.canonical.x>>i,this.canonical.y>>i)}}isChildOf(t){if(t.wrap!==this.wrap)return!1;const e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ<this.overscaledZ&&t.canonical.x===this.canonical.x>>e&&t.canonical.y===this.canonical.y>>e}children(t){if(this.overscaledZ>=t)return[new ph(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const e=this.canonical.z+1,i=2*this.canonical.x,n=2*this.canonical.y;return[new ph(e,this.wrap,e,i,n),new ph(e,this.wrap,e,i+1,n),new ph(e,this.wrap,e,i,n+1),new ph(e,this.wrap,e,i+1,n+1)]}isLessThan(t){return this.wrap<t.wrap||!(this.wrap>t.wrap)&&(this.overscaledZ<t.overscaledZ||!(this.overscaledZ>
vendor: 5,849 bytes, line 38
38t.overscaledZ)&&(this.canonical.x<t.canonical.x||!(this.canonical.x>t.canonical.x)&&this.canonical.y<t.canonical.y))}wrapped(){return new ph(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)}unwrapTo(t){return new ph(this.overscaledZ,t,this.canonical.z,this.canonical.x,this.canonical.y)}overscaleFactor(){return Math.pow(2,this.overscaledZ-this.canonical.z)}toUnwrapped(){return new fh(this.wrap,this.canonical)}toString(){return`${this.overscaledZ}/${this.canonical.x}/${this.canonical.y}`}}function mh(t,e,i,n,r){const o=1<<Math.min(i,22);let s=o*(r%o)+n%o;return t&&i<22&&(s+=o*o*((t<0?-2*t-1:2*t)%(1<<2*(22-i)))),16*(32*s+i)+(e-i)}Xr(dh,"CanonicalTileID"),Xr(ph,"OverscaledTileID",{omit:["projMatrix"]});class gh extends _{constructor(t,e,i){super(t,e),this.z=i}}function yh(t,e){return t.x*e.x+t.y*e.y}function _h(t,e){if(1===t.length){let i=0;const n=e[i++];let r;for(;!r||n.equals(r);)if(r=e[i++],!r)return 1/0;for(;i<e.length;i++){const o=e[i],s=t[0],a=r.sub(n),l=o.sub(n),c=s.sub(n),u=yh(a,a),h=yh(a,l),d=yh(l,l),f=yh(c,a),p=yh(c,l),m=u*d-h*h,g=(d*f-h*p)/m,y=(u*p-h*f)/m,_=n.z*(1-g-y)+r.z*g+o.z*y;if(isFinite(_))return _}return 1/0}{let t=1/0;for(const i of e)t=Math.min(t,i.z);return t}}function vh(t,e,i,n,r,o,s,a){const l=s*r.getElevationAt(t,e,!0,!0),c=0!==o[0],u=c?0===o[1]?s*(o[0]/7-450):s*function(t,e,i){const n=Math.floor(e[0]/8),r=Math.floor(e[1]/8),o=10*(e[0]-8*n),s=10*(e[1]-8*r),a=t.getElevationAt(n,r,!0,!0),l=t.getMeterToDEM(i),c=Math.floor(.5*(o*l-1)),u=Math.floor(.5*(s*l-1)),h=t.tileCoordToPixel(n,r),d=2*c+1,f=2*u+1,p=function(t,e,i,n,r){return[t.getElevationAtPixel(e,i,!0),t.getElevationAtPixel(e+r,i,!0),t.getElevationAtPixel(e,i+r,!0),t.getElevationAtPixel(e+n,i+r,!0)]}(t,h.x-c,h.y-u,d,f),m=Math.abs(p[0]-p[1]),g=Math.abs(p[2]-p[3]),y=Math.abs(p[0]-p[2])+Math.abs(p[1]-p[3]),_=Math.min(.25,.5*l*(m+g)/d),v=Math.min(.25,.5*l*y/f);return a+Math.max(_*o,v*s)}(r,o,a):l;return{base:l+(0===i)?-1:i,top:c?Math.max(u+n,l+i+2):l+n}}const bh=Fo([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"},{name:"a_linesofar",components:1,type:"Float32"}],4),{members:xh}=bh,wh=Fo([{name:"a_packed",components:4,type:"Float32"}]),{members:Eh}=wh,Th=Zu.types,Sh=Math.cos(Math.PI/180*37.5);class kh{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(t=>t.id),this.index=t.index,this.projection=t.projection,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(t=>{this.gradients[t.id]={}}),this.layoutVertexArray=new qo,this.layoutVertexArray2=new Go,this.indexArray=new ns,this.programConfigurations=new Qs(t.layers,t.zoom),this.segments=new sa,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(t,e,i,n){this.hasPattern=Su("line",this.layers,e);const r=this.layers[0].layout.get("line-sort-key"),o=[];for(const{feature:c,id:u,index:h,sourceLayerIndex:d}of t){const t=this.layers[0]._featureFilter.needGeometry,e=ac(c,t);if(!this.layers[0]._featureFilter.filter(new wo(this.zoom),e,i))continue;const s=r?r.evaluate(e,{},i):void 0,a={id:u,properties:c.properties,type:c.type,sourceLayerIndex:d,index:h,geometry:t?e.geometry:sc(c,i,n),patterns:{},sortKey:s};o.push(a)}r&&o.sort((t,e)=>t.sortKey-e.sortKey);const{lineAtlas:s,featureIndex:a}=e,l=this.addConstantDashes(s);for(const c of o){const{geometry:n,index:r,sourceLayerIndex:o}=c;if(l&&this.addFeatureDashes(c,s),this.hasPattern){const t=ku("line",this.layers,c,this.zoom,e);this.patternFeatures.push(t)}else this.addFeature(c,n,r,i,s.positions,e.availableImages);a.insert(t[r].feature,n,r,o,this.index)}}addConstantDashes(t){let e=!1;for(const i of this.layers){const n=i.paint.get("line-dasharray").value,r=i.layout.get("line-cap").value;if("constant"!==n.kind||"constant"!==r.kind)e=!0;else{const e=r.value,i=n.value;if(!i)continue;t.addDash(i,e)}}return e}addFeatureDashes(t,e){const i=this.zoom;for(const n of this.layers){const r=n.paint.get("line-dasharray").value,o=n.layout.get("line-cap").value;if("constant"===r.kind&&"constant"===o.kind)continue;let s,a;if("constant"===r.kind){if(s=r.value,!s)continue}else s=r.evaluate({zoom:i},t);a="constant"===o.kind?o.value:o.evaluate({zoom:i},t),e.addDash(s,a),t.patterns[n.id]=e.getKey(s,a)}}update(t,e,i,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,i,n)}addFeatures(t,e,i,n,r){for(const o of this.patternFeatures)this.addFeature(o,o.geometry,o.index,e,i,n)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=t.createVertexBuffer(this.layoutVertexArray2,Eh)),this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,xh),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(t){if(t.properties&&t.properties.hasOwnProperty("mapbox_clip_start")&&t.properties.hasOwnProperty("mapbox_clip_end"))return{start:+t.properties.mapbox_clip_start,end:+t.properties.mapbox_clip_end}}addFeature(t,e,i,n,r,o){const s=this.layers[0].layout,a=s.get("line-join").evaluate(t,{}),l=s.get("line-cap").evaluate(t,{}),c=s.get("line-miter-limit"),u=s.get("line-round-limit");this.lineClips=this.lineFeatureClips(t);for(const h of e)this.addLine(h,t,a,l,c,u);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,i,r,o,n)}addLine(t,e,i,n,r,o){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineS
vendor: 18,587 bytes, lines 38-39
38oFar=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let e=0;e<t.length-1;e++)this.totalDistance+=t[e].dist(t[e+1]);this.updateScaledDistance(),this.maxLineLength=Math.max(this.maxLineLength,this.totalDistance)}const s="Polygon"===Th[e.type];let a=t.length;for(;a>=2&&t[a-1].equals(t[a-2]);)a--;let l=0;for(;l<a-1&&t[l].equals(t[l+1]);)l++;if(a<(s?3:2))return;"bevel"===i&&(r=1.05);const c=this.overscaling<=16?15*aa/(512*this.overscaling):0,u=this.segments.prepareSegment(10*a,this.layoutVertexArray,this.indexArray);let h,d,f,p,m;this.e1=this.e2=-1,s&&(h=t[a-2],m=t[l].sub(h)._unit()._perp());for(let g=l;g<a;g++){if(f=g===a-1?s?t[l+1]:void 0:t[g+1],f&&t[g].equals(f))continue;m&&(p=m),h&&(d=h),h=t[g],m=f?f.sub(h)._unit()._perp():p,p=p||m;let e=p.add(m);0===e.x&&0===e.y||e._unit();const y=p.x*m.x+p.y*m.y,_=e.x*m.x+e.y*m.y,v=0!==_?1/_:1/0,b=2*Math.sqrt(2-2*_),x=_<Sh&&d&&f,w=p.x*m.y-p.y*m.x>0;if(x&&g>l){const t=h.dist(d);if(t>2*c){const e=h.sub(h.sub(d)._mult(c/t)._round());this.updateDistance(d,e),this.addCurrentVertex(e,p,0,0,u),d=e}}const E=d&&f;let T=E?i:s?"butt":n;if(E&&"round"===T&&(v<o?T="miter":v<=2&&(T="fakeround")),"miter"===T&&v>r&&(T="bevel"),"bevel"===T&&(v>2&&(T="flipbevel"),v<r&&(T="miter")),d&&this.updateDistance(d,h),"miter"===T)e._mult(v),this.addCurrentVertex(h,e,0,0,u);else if("flipbevel"===T){if(v>100)e=m.mult(-1);else{const t=v*p.add(m).mag()/p.sub(m).mag();e._perp()._mult(t*(w?-1:1))}this.addCurrentVertex(h,e,0,0,u),this.addCurrentVertex(h,e.mult(-1),0,0,u)}else if("bevel"===T||"fakeround"===T){const t=-Math.sqrt(v*v-1),e=w?t:0,i=w?0:t;if(d&&this.addCurrentVertex(h,p,e,i,u),"fakeround"===T){const t=Math.round(180*b/Math.PI/20);for(let e=1;e<t;e++){let i=e/t;if(.5!==i){const t=i-.5;i+=i*t*(i-1)*((1.0904+y*(y*(3.55645-1.43519*y)-3.2452))*t*t+(.848013+y*(.215638*y-1.06021)))}const n=m.sub(p)._mult(i)._add(p)._unit()._mult(w?-1:1);this.addHalfVertex(h,n.x,n.y,!1,w,0,u)}}f&&this.addCurrentVertex(h,m,-e,-i,u)}else if("butt"===T)this.addCurrentVertex(h,e,0,0,u);else if("square"===T){const t=d?1:-1;d||this.addCurrentVertex(h,e,t,t,u),this.addCurrentVertex(h,e,0,0,u),d&&this.addCurrentVertex(h,e,t,t,u)}else"round"===T&&(d&&(this.addCurrentVertex(h,p,0,0,u),this.addCurrentVertex(h,p,1,1,u,!0)),f&&(this.addCurrentVertex(h,m,-1,-1,u,!0),this.addCurrentVertex(h,m,0,0,u)));if(x&&g<a-1){const t=h.dist(f);if(t>2*c){const e=h.add(f.sub(h)._mult(c/t)._round());this.updateDistance(h,e),this.addCurrentVertex(e,m,0,0,u),h=e}}}}addCurrentVertex(t,e,i,n,r,o=!1){const s=e.y*n-e.x,a=-e.y-e.x*n;this.addHalfVertex(t,e.x+e.y*i,e.y-e.x*i,o,!1,i,r),this.addHalfVertex(t,s,a,o,!0,-n,r)}addHalfVertex({x:t,y:e},i,n,r,o,s,a){this.layoutVertexArray.emplaceBack((t<<1)+(r?1:0),(e<<1)+(o?1:0),Math.round(63*i)+128,Math.round(63*n)+128,1+(0===s?0:s<0?-1:1),0,this.lineSoFar),this.lineClips&&this.layoutVertexArray2.emplaceBack(this.scaledDistance,this.lineClipsArray.length,this.lineClips.start,this.lineClips.end);const l=a.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,l),a.primitiveLength++),o?this.e2=l:this.e1=l}updateScaledDistance(){if(this.lineClips){const t=this.totalDistance/(this.lineClips.end-this.lineClips.start);this.scaledDistance=this.distance/this.totalDistance,this.lineSoFar=t*this.lineClips.start+this.distance}else this.lineSoFar=this.distance}updateDistance(t,e){this.distance+=t.dist(e),this.updateScaledDistance()}}Xr(kh,"LineBucket",{omit:["layers","patternFeatures"]});const Oh=new Lo({"line-cap":new Po(te.layout_line["line-cap"]),"line-join":new Po(te.layout_line["line-join"]),"line-miter-limit":new Mo(te.layout_line["line-miter-limit"]),"line-round-limit":new Mo(te.layout_line["line-round-limit"]),"line-sort-key":new Po(te.layout_line["line-sort-key"])});var Ah={paint:new Lo({"line-opacity":new Po(te.paint_line["line-opacity"]),"line-color":new Po(te.paint_line["line-color"]),"line-translate":new Mo(te.paint_line["line-translate"]),"line-translate-anchor":new Mo(te.paint_line["line-translate-anchor"]),"line-width":new Po(te.paint_line["line-width"]),"line-gap-width":new Po(te.paint_line["line-gap-width"]),"line-offset":new Po(te.paint_line["line-offset"]),"line-blur":new Po(te.paint_line["line-blur"]),"line-dasharray":new Po(te.paint_line["line-dasharray"]),"line-pattern":new Po(te.paint_line["line-pattern"]),"line-gradient":new Do(te.paint_line["line-gradient"]),"line-trim-offset":new Mo(te.paint_line["line-trim-offset"])}),layout:Oh};const Ch=new class extends Po{possiblyEvaluate(t,e){return e=new wo(Math.floor(e.zoom),{now:e.now,fadeDuration:e.fadeDuration,transition:e.transition}),super.possiblyEvaluate(t,e)}evaluate(t,e,i,n){return e=P({},e,{zoom:Math.floor(e.zoom)}),super.evaluate(t,e,i,n)}}(Ah.paint.properties["line-width"].specification);function Ih(t,e){return e>0?e+2*t:t}Ch.useIntegerZoom=!0;const Mh=Fo([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_tex_size",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Ph=Fo([{name:"a_globe_anchor",components:3,type:"Int16"},{name:"a_globe_normal",components:3,type:"Float32"}],4),Dh=Fo([{name:"a_projected_pos",components:4,type:"Float32"}],4);Fo([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);const Lh=Fo([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}]),Rh=Fo([{name:"a_size_scale",components:1,type:"Float32"},{name:"a_padding",components:2,type:"Float32"}]);Fo([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Int16",name:"tileAnchorX"},{type:"Int16",name:"tileAnchorY"},{type:"Float32",name:"x1"},{type:"Float32",name:"y1"},{type:"Float32",name:"x2"},{type:"Float32",name:"y2"},{type:"Int16",name:"padding"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);const zh=Fo([{name:"a_pos",components:3,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),jh=Fo([{name:"a_pos_2f",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);Fo([{name:"triangle",components:3,type:"Uint16"}]),Fo([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Float32",name:"tileAnchorX"},{type:"Float32",name:"tileAnchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"},{type:"Uint8",name:"flipState"}]),Fo([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Float32",name:"tileAnchorX"},{type:"Float32",name:"tileAnchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),Fo([{type:"Float32",name:"offsetX"}]),Fo([{type:"Int16",name:"x"},{type:"Int16",name:"y"}]);var Bh=24;const Fh=128;function Nh(t,e){const{expression:i}=e;if("constant"===i.kind)return{kind:"constant",layoutSize:i.evaluate(new wo(t+1))};if("source"===i.kind)return{kind:"source"};{const{zoomStops:e,interpolationType:n}=i;let r=0;for(;r<e.length&&e[r]<=t;)r++;r=Math.max(0,r-1);let o=r;for(;o<e.length&&e[o]<t+1;)o++;o=Math.min(e.length-1,o);const s=e[r],a=e[o];return"composite"===i.kind?{kind:"composite",minZoom:s,maxZoom:a,interpolationType:n}:{kind:"camera",minZoom:s,maxZoom:a,minSize:i.evaluate(new wo(s)),maxSize:i.evaluate(new wo(a)),interpolationType:n}}}function Vh(t,{uSize:e,uSizeT:i},{lowerSize:n,upperSize:r}){return"source"===t.kind?n/Fh:"composite"===t.kind?Mi(n/Fh,r/Fh,i):e}function $h(t,e){let i=0,n=0;if("constant"===t.kind)n=t.layoutSize;else if("source"!==t.kind){const{interpolationType:r,minZoom:o,maxZoom:s}=t,a=r?O(Ji.interpolationFactor(r,e,o,s),0,1):0;"camera"===t.kind?n=Mi(t.minSize,t.maxSize,a):i=a}return{uSizeT:i,uSize:n}}var Uh=Object.freeze({__proto__:null,SIZE_PACK_FACTOR:Fh,evaluateSizeForFeature:Vh,evaluateSizeForZoom:$h,getSizeData:Nh});function qh(t,e,i){return t.sections.forEach(t=>{t.text=function(t,e,i){const n=e.layout.get("text-transform").evaluate(i,{});return"uppercase"===n?t=t.toLocaleUpperCase():"lowercase"===n&&(t=t.toLocaleLowerCase()),xo.applyArabicShaping&&(t=xo.applyArabicShaping(t)),t}(t.text,e,i)}),t}const Gh={"!":"ï¸","#":"ï¼",$:"ï¼","%":"ï¼ ","&":"ï¼","(":"︵",")":"︶","*":"ï¼","+":"ï¼",",":"ï¸","-":"︲",".":"ã»","/":"ï¼",":":"ï¸",";":"ï¸","<":"︿","=":"ï¼",">":"ï¹","?":"ï¸","@":"ï¼ ","[":"ï¹","\\":"ï¼¼","]":"ï¹","^":"ï¼¾",_:"︳","`":"ï½","{":"︷","|":"â","}":"︸","~":"ï½","¢":"ï¿ ","£":"ï¿¡","Â¥":"ï¿¥","¦":"¦","¬":"ï¿¢","¯":"ï¿£","â":"︲","â":"︱","â":"ï¹","â":"ï¹","â":"ï¹","â":"ï¹","â¦":"ï¸","â§":"ã»","â©":"₩","ã":"ï¸","ã":"ï¸","ã":"︿","ã":"ï¹","ã":"︽","ã":"︾","ã":"ï¹","ã":"ï¹","ã":"ï¹","ã":"ï¹","ã":"︻","ã":"︼","ã":"︹","ã":"︺","ã":"ï¸","ã":"ï¸","ï¼":"ï¸","ï¼":"︵","ï¼":"︶","ï¼":"ï¸","ï¼":"︲","ï¼":"ã»","ï¼":"ï¸","ï¼":"ï¸","ï¼":"︿","ï¼":"ï¹","ï¼":"ï¸","ï¼»":"ï¹","ï¼½":"ï¹","_":"︳","ï½":"︷","ï½":"â","ï½":"︸","ï½":"︵","ï½ ":"︶","。":"ï¸","ï½¢":"ï¹","ï½£":"ï¹","â":"â","â":"â"};function Wh(t){return"︶"===t||"ï¹"===t||"︸"===t||"ï¹"===t||"ï¹"===t||"︾"===t||"︼"===t||"︺"===t||"ï¸"===t||"ï¹"===t||"ï¸"===t||"ï¸"===t||"ï¸"===t||"ï½"===t||"ï¿£"===t||"ï¸"===t||"ï¸"===t}function Zh(t){return"︵"===t||"ï¹"===t||"︷"===t||"ï¹"===t||"ï¹"===t||"︽"===t||"︻"===t||"︹"===t||"ï¸"===t||"︿"===t}var Hh=Yh,Xh=function(t,e,i,n,r){var o,s,a=8*r-n-1,l=(1<<a)-1,c=l>>1,u=-7,h=i?r-1:0,d=i?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-u)-1,f>>=-u,u+=a;u>0;o=256*o+t[e+h],h+=d,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=n;u>0;s=256*s+t[e+h],h+=d,u-=8);if(0===o)o=1-c;else{if(o===l)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),o-=c}return(f?-1:1)*s*Math.pow(2,o-n)},Qh=function(t,e,i,n,r,o){var s,a,l,c=8*o-r-1,u=(1<<c)-1,h=u>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,p=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),(e+=s+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(s++,l/=2),s+h>=u?(a=0,s=u):s+h>=1?(a=(e*l-1)*Math.pow(2,r),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,r),s=0));r>=8;t[i+f]=255&a,f+=p,a/=256,r-=8);for(s=s<<r|a,c+=r;c>0;t[i+f]=255&s,f+=p,s/=256,c-=8);t[i+f-p]|=128*m}; 39/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */function Yh(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}Yh.Varint=0,Yh.Fixed64=1,Yh.Bytes=2,Yh.Fixed32=5;var Kh=4294967296,Jh=1/Kh,td="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function ed(t){return t.type===Yh.Bytes?t.readVarint()+t.pos:t.pos+1}function id(t,e,i){return i?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function nd(t,e,i){var n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));i.realloc(n);for(var r=i.pos-1;r>=t;r--)i.buf[r+n]=i.buf[r]}function rd(t,e){for(var i=0;i<t.length;i++)e.writeVarint(t[i])}function od(t,e){for(var i=0;i<t.length;i++)e.writeSVarint(t[i])}function sd(t,e){for(var i=0;i<t.length;i++)e.writeFloat(t[i])}function ad(t,e){for(var i=0;i<t.length;i++)e.writeDouble(t[i])}function ld(t,e){for(var i=0;i<t.length;i++)e.writeBoolean(t[i])}function cd(t,e){for(var i=0;i<t.length;i++)e.writeFixed32(t[i])}function ud(t,e){for(var i=0;i<t.length;i++)e.writeSFixed32(t[i])}function hd(t,e){for(var i=0;i<t.length;i++)e.writeFixed64(t[i])}function dd(t,e){for(var i=0;i<t.length;i++)e.writeSFixed64(t[i])}function fd(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+16777216*t[e+3]}function pd(t,e,i){t[i]=e,t[i+1]=e>>>8,t[i+2]=e>>>16,t[i+3]=e>>>24}function md(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}Yh.prototype={destroy:function(){this.buf=null},readFields:function(t,e,i){for(i=i||this.length;this.pos<i;){var n=this.readVarint(),r=n>>3,o=this.pos;this.type=7&n,t(r,e,this),this.pos===o&&this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=fd(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=md(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=fd(this.buf,this.pos)+fd(this.buf,this.pos+4)*Kh;return this.pos+=8,t},readSFixed64:function(){var t=fd(this.buf,this.pos)+md(this.buf,this.pos+4)*Kh;return this.pos+=8,t},readFloat:function(){var t=Xh(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=Xh(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,i,n=this.buf;return e=127&(i=n[this.pos++]),i<128?e:(e|=(127&(i=n[this.pos++]))<<7,i<128?e:(e|=(127&(i=n[this.pos++]))<<14,i<128?e:(e|=(127&(i=n[this.pos++]))<<21,i<128?e:function(t,e,i){var n,r,o=i.buf;if(n=(112&(r=o[i.pos++]))>>4,r<128)return id(t,n,e);if(n|=(127&(r=o[i.pos++]))<<3,r<128)return id(t,n,e);if(n|=(127&(r=o[i.pos++]))<<10,r<128)return id(t,n,e);if(n|=(127&(r=o[i.pos++]))<<17,r<128)return id(t,n,e);if(n|=(127&(r=o[i.pos++]))<<24,r<128)return id(t,n,e);if(n|=(1&(r=o[i.pos++]))<<31,r<128)return id(t,n,e);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(i=n[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=12&&td?function(t,e,i){return td.decode(t.subarray(e,i))}(this.buf,e,t):function(t,e,i){for(var n="",r=e;r<i;){var o,s,a,l=t[r],c=null,u=l>239?4:l>223?3:l>191?2:1;if(r+u>i)break;1===u?l<128&&(c=l):2===u?128==(192&(o=t[r+1]))&&(c=(31&l)<<6|63&o)<=127&&(c=null):3===u?(s=t[r+2],128==(192&(o=t[r+1]))&&128==(192&s)&&((c=(15&l)<<12|(63&o)<<6|63&s)<=2047||c>=55296&&c<=57343)&&(c=null)):4===u&&(s=t[r+2],a=t[r+3],128==(192&(o=t[r+1]))&&128==(192&s)&&128==(192&a)&&((c=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)<=65535||c>=1114112)&&(c=null)),null===c?(c=65533,u=1):c>65535&&(c-=65536,n+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),n+=String.fromCharCode(c),r+=u}return n}(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==Yh.Bytes)return t.push(this.readVarint(e));var i=ed(this);for(t=t||[];this.pos<i;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==Yh.Bytes)return t.push(this.readSVarint());var e=ed(this);for(t=t||[];this.pos<e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==Yh.Bytes)return t.push(this.readBoolean());var e=ed(this);for(t=t||[];this.pos<e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==Yh.Bytes)return t.push(this.readFloat());var e=ed(this);for(t=t||[];this.pos<e;)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==Yh.Bytes)return t.push(this.readDouble());var e=ed(this);for(t=t||[];this.pos<e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==Yh.Bytes)return t.push(this.readFixed32());var e=ed(this);for(t=t||[];this.pos<e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==Yh.Bytes)return t.push(this.readSFixed32());var e=ed(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==Yh.Bytes)return t.push(this.readFixed64());var e=ed(this);for(t=t||[];this.pos<e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==Yh.Bytes)return t.push(this.readSFixed64());var e=ed(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&t;if(e===Yh.Varint)for(;this.buf[this.pos++]>127;);else if(e===Yh.Bytes)this.pos=this.readVarint()+this.pos;else if(e===Yh.Fixed32)this.pos+=4;else{if(e!==Yh.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e<this.pos+t;)e*=2;if(e!==this.length){var i=new Uint8Array(e);i.set(this.buf),this.buf=i,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),pd(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),pd(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),pd(this.buf,-1&t,this.pos),pd(this.buf,Math.floor(t*Jh),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),pd(this.buf,-1&t,this.pos),pd(this.buf,Math.floor(t*Jh),this.pos+4),this.pos+=8},writeVarint:function(t){(t=+t||0)>268435455||t<0?function(t,e){var i,n;if(t>=0?(i=t%4294967296|0,n=t/4294967296|0):(n=~(-t/4294967296),4294967295^(i=~(-t%4294967296))?i=i+1|0:(i=0,n=n+1|0)),t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");
vendor: 8,821 bytes, line 39
39e.realloc(10),function(t,e,i){i.buf[i.pos++]=127&t|128,t>>>=7,i.buf[i.pos++]=127&t|128,t>>>=7,i.buf[i.pos++]=127&t|128,t>>>=7,i.buf[i.pos++]=127&t|128,i.buf[i.pos]=127&(t>>>=7)}(i,0,e),function(t,e){var i=(7&t)<<4;e.buf[e.pos++]|=i|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t)))))}(n,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,i){for(var n,r,o=0;o<e.length;o++){if((n=e.charCodeAt(o))>55295&&n<57344){if(!r){n>56319||o+1===e.length?(t[i++]=239,t[i++]=191,t[i++]=189):r=n;continue}if(n<56320){t[i++]=239,t[i++]=191,t[i++]=189,r=n;continue}n=r-55296<<10|n-56320|65536,r=null}else r&&(t[i++]=239,t[i++]=191,t[i++]=189,r=null);n<128?t[i++]=n:(n<2048?t[i++]=n>>6|192:(n<65536?t[i++]=n>>12|224:(t[i++]=n>>18|240,t[i++]=n>>12&63|128),t[i++]=n>>6&63|128),t[i++]=63&n|128)}return i}(this.buf,t,this.pos);var i=this.pos-e;i>=128&&nd(e,i,this),this.pos=e-1,this.writeVarint(i),this.pos+=i},writeFloat:function(t){this.realloc(4),Qh(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),Qh(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var i=0;i<e;i++)this.buf[this.pos++]=t[i]},writeRawMessage:function(t,e){this.pos++;var i=this.pos;t(e,this);var n=this.pos-i;n>=128&&nd(i,n,this),this.pos=i-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,i){this.writeTag(t,Yh.Bytes),this.writeRawMessage(e,i)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,rd,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,od,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,ld,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,sd,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,ad,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,cd,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,ud,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,hd,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,dd,e)},writeBytesField:function(t,e){this.writeTag(t,Yh.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,Yh.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,Yh.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,Yh.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,Yh.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,Yh.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,Yh.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,Yh.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,Yh.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,Yh.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}};var gd=d(Hh);const yd=3;function _d(t,e,i){e.glyphs=[],1===t&&i.readMessage(vd,e)}function vd(t,e,i){if(3===t){const{id:t,bitmap:n,width:r,height:o,left:s,top:a,advance:l}=i.readMessage(bd,{});e.glyphs.push({id:t,bitmap:new Bc({width:r+2*yd,height:o+2*yd},n),metrics:{width:r,height:o,left:s,top:a,advance:l}})}else 4===t?e.ascender=i.readSVarint():5===t&&(e.descender=i.readSVarint())}function bd(t,e,i){1===t?e.id=i.readVarint():2===t?e.bitmap=i.readBytes():3===t?e.width=i.readVarint():4===t?e.height=i.readVarint():5===t?e.left=i.readSVarint():6===t?e.top=i.readSVarint():7===t&&(e.advance=i.readVarint())}const xd=yd;function wd(t){let e=0,i=0;for(const s of t)e+=s.w*s.h,i=Math.max(i,s.w);t.sort((t,e)=>e.h-t.h);const n=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),i),h:1/0}];let r=0,o=0;for(const s of t)for(let t=n.length-1;t>=0;t--){const e=n[t];if(!(s.w>e.w||s.h>e.h)){if(s.x=e.x,s.y=e.y,o=Math.max(o,s.y+s.h),r=Math.max(r,s.x+s.w),s.w===e.w&&s.h===e.h){const e=n.pop();t<n.length&&(n[t]=e)}else s.h===e.h?(e.x+=s.w,e.w-=s.w):s.w===e.w?(e.y+=s.h,e.h-=s.h):(n.push({x:e.x+s.w,y:e.y,w:e.w-s.w,h:s.h}),e.y+=s.h,e.h-=s.h);break}}return{w:r,h:o,fill:e/(r*o)||0}}const Ed=1;class Td{constructor(t,{pixelRatio:e,version:i,stretchX:n,stretchY:r,content:o}){this.paddedRect=t,this.pixelRatio=e,this.stretchX=n,this.stretchY=r,this.content=o,this.version=i}get tl(){return[this.paddedRect.x+Ed,this.paddedRect.y+Ed]}get br(){return[this.paddedRect.x+this.paddedRect.w-Ed,this.paddedRect.y+this.paddedRect.h-Ed]}get displaySize(){return[(this.paddedRect.w-2*Ed)/this.pixelRatio,(this.paddedRect.h-2*Ed)/this.pixelRatio]}}class Sd{constructor(t,e){const i={},n={};this.haveRenderCallbacks=[];const r=[];this.addImages(t,i,r),this.addImages(e,n,r);const{w:o,h:s}=wd(r),a=new Fc({width:o||1,height:s||1});for(const l in t){const e=t[l],n=i[l].paddedRect;Fc.copy(e.data,a,{x:0,y:0},{x:n.x+Ed,y:n.y+Ed},e.data)}for(const l in e){const t=e[l],i=n[l].paddedRect,r=i.x+Ed,o=i.y+Ed,s=t.data.width,c=t.data.height;Fc.copy(t.data,a,{x:0,y:0},{x:r,y:o},t.data),Fc.copy(t.data,a,{x:0,y:c-1},{x:r,y:o-1},{width:s,height:1}),Fc.copy(t.data,a,{x:0,y:0},{x:r,y:o+c},{width:s,height:1}),Fc.copy(t.data,a,{x:s-1,y:0},{x:r-1,y:o},{width:1,height:c}),Fc.copy(t.data,a,{x:0,y:0},{x:r+s,y:o},{width:1,height:c})}this.image=a,this.iconPositions=i,this.patternPositions=n}addImages(t,e,i){for(const n in t){const r=t[n],o={x:0,y:0,w:r.data.width+2*Ed,h:r.data.height+2*Ed};i.push(o),e[n]=new Td(o,r),r.hasRenderCallback&&this.haveRenderCallbacks.push(n)}}patchUpdatedImages(t,e){this.haveRenderCallbacks=this.haveRenderCallbacks.filter(e=>t.hasImage(e)),t.dispatchRenderCallbacks(this.haveRenderCallbacks);for(const i in t.updatedImages)this.patchUpdatedImage(this.iconPositions[i],t.getImage(i),e),this.patchUpdatedImage(this.patternPositions[i],t.getImage(i),e)}patchUpdatedImage(t,e,i){if(!t||!e)return;if(t.version===e.version)return;t.version=e.version;const[n,r]=t.tl;i.update(e.data,void 0,{x:n,y:r})}}Xr(Td,"ImagePosition"),Xr(Sd,"ImageAtlas");const kd={horizontal:1,vertical:2,horizontalOnly:3},Od=-17;class Ad{constructor(){this.scale=1,this.fontStack="",this.imageName=null}static forText(t,e){const i=new Ad;return i.scale=t||1,i.fontStack=e,i}static forImage(t){const e=new Ad;return e.imageName=t,e}}class Cd{constructor(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null}static fromFeature(t,e){const i=new Cd;for(let n=0;n<t.sections.length;n++){const r=t.sections[n];r.image?i.addImageSection(r):i.addTextSection(r,e)}return i}length(){return this.text.length}getSection(t){return this.sections[this.sectionIndex[t]]}getSections(){return this.sections}getSectionIndex(t){return this.sectionIndex[t]}getCharCode(t){return this.text.charCodeAt(t)}verticalizePunctuation(t){this.text=function(t,e){let i="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n+1)||null,o=t.charCodeAt(n-1)||null;i+=!e&&(r&&oo(r)&&!Gh[t[n+1]]||o&&oo(o)&&!Gh[t[n-1]])||!Gh[t[n]]?t[n]:Gh[t[n]]}return i}(this.text,t)}trim(){let t=0;for(let i=0;i<this.text.length&&Md[this.text.charCodeAt(i)];i++)t++;let e=this.text.length;for(let i=this.text.length-1;i>=0&&i>=t&&Md[this.text.charCodeAt(i)];i--)e--;this.text=this.text.substring(t,e),this.sectionIndex=this.sectionIndex.slice(t,e)}substring(t,e){const i=new Cd;return i.text=this.text.substring(t,e),i.sectionIndex=this.sectionIndex.slice(t,e),i.sections=this.sections,i}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((t,e)=>Math.max(t,this.sections[e].scale),0)}addTextSection(t,e){this.text+=t.text,this.sections.push(Ad.forText(t.scale,t.fontStack||e));const i=this.sections.length-1;for(let n=0;n<t.text.length;++n)this.sectionIndex.push(i)}addImageSection(t){const e=t.image?t.image.name:"";if(0===e.length)return void q("Can't add FormattedSection with an empty image.");const i=this.getNextImageSectionCharCode();i?(this.text+=String.fromCharCode(i),this.sections.push(Ad.forImage(e)),this.sectionIndex.push(this.sections.length-1)):q("Reached maximum number of images 6401")}getNextImageSectionCharCode(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function Id(t,e,i,n,r,o,s,a,l,c,u,h,d,f,p){const m=Cd.fromFeature(t,r);h===kd.vertical&&m.verticalizePunctuation(d);let g=[];
vendor: 33,727 bytes, line 39
39const y=function(t,e,i,n,r,o){if(!t)return[];const s=[],a=function(t,e,i,n,r,o){let s=0;for(let a=0;a<t.length();a++){const i=t.getSection(a);s+=Dd(t.getCharCode(a),i,n,r,e,o)}return s/Math.max(1,Math.ceil(s/i))}(t,e,i,n,r,o),l=t.text.indexOf("â")>=0;let c=0;for(let h=0;h<t.length();h++){const i=t.getSection(h),d=t.getCharCode(h);if(Md[d]||(c+=Dd(d,i,n,r,e,o)),h<t.length()-1){const e=!((u=d)<11904||!(to["Bopomofo Extended"](u)||to.Bopomofo(u)||to["CJK Compatibility Forms"](u)||to["CJK Compatibility Ideographs"](u)||to["CJK Compatibility"](u)||to["CJK Radicals Supplement"](u)||to["CJK Strokes"](u)||to["CJK Symbols and Punctuation"](u)||to["CJK Unified Ideographs Extension A"](u)||to["CJK Unified Ideographs"](u)||to["Enclosed CJK Letters and Months"](u)||to["Halfwidth and Fullwidth Forms"](u)||to.Hiragana(u)||to["Ideographic Description Characters"](u)||to["Kangxi Radicals"](u)||to["Katakana Phonetic Extensions"](u)||to.Katakana(u)||to["Vertical Forms"](u)||to["Yi Radicals"](u)||to["Yi Syllables"](u)));(Pd[d]||e||i.imageName)&&s.push(zd(h+1,c,a,s,Rd(d,t.getCharCode(h+1),e&&l),!1))}}var u;return jd(zd(t.length(),c,a,s,0,!0))}(m,c,o,e,n,f),{processBidirectionalText:_,processStyledBidirectionalText:v}=xo;if(_&&1===m.sections.length){const t=_(m.toString(),y);for(const e of t){const t=new Cd;t.text=e,t.sections=m.sections;for(let i=0;i<e.length;i++)t.sectionIndex.push(0);g.push(t)}}else if(v){const t=v(m.text,m.sectionIndex,y);for(const e of t){const t=new Cd;t.text=e[0],t.sectionIndex=e[1],t.sections=m.sections,g.push(t)}}else g=function(t,e){const i=[],n=t.text;let r=0;for(const o of e)i.push(t.substring(r,o)),r=o;return r<n.length&&i.push(t.substring(r,n.length)),i}(m,y);const b=[],x={positionedLines:b,text:m.toString(),top:u[1],bottom:u[1],left:u[0],right:u[0],writingMode:h,iconsInText:!1,verticalizable:!1,hasBaseline:!1};return function(t,e,i,n,r,o,s,a,l,c,u,h){let d=0,f=0,p=0;const m="right"===a?1:"left"===a?0:.5;let g=!1;for(const w of r){const t=w.getSections();for(const i of t){if(i.imageName)continue;const t=e[i.fontStack];if(t&&(g=void 0!==t.ascender&&void 0!==t.descender,!g))break}if(!g)break}let y=0;for(const w of r){w.trim();const r=w.getMaxScale(),s=(r-1)*Bh,a={positionedGlyphs:[],lineOffset:0};t.positionedLines[y]=a;const v=a.positionedGlyphs;let b=0;if(!w.length()){f+=o,++y;continue}let x=0,E=0;for(let o=0;o<w.length();o++){const s=w.getSection(o),a=w.getSectionIndex(o),p=w.getCharCode(o);let m=s.scale,y=null,T=null,S=null,k=Bh,O=0;const A=!(l===kd.horizontal||!u&&!ro(p)||u&&(Md[p]||(_=p,to.Arabic(_)||to["Arabic Supplement"](_)||to["Arabic Extended-A"](_)||to["Arabic Presentation Forms-A"](_)||to["Arabic Presentation Forms-B"](_))));if(s.imageName){const e=n[s.imageName];if(!e)continue;S=s.imageName,t.iconsInText=t.iconsInText||!0,T=e.paddedRect;const i=e.displaySize;m=m*Bh/h,y={width:i[0],height:i[1],left:Ed,top:-xd,advance:A?i[1]:i[0],localGlyph:!1},O=g?-y.height*m:Od+r*Bh-i[1]*m,k=y.advance;const o=(A?i[0]:i[1])*m-Bh*r;o>0&&o>b&&(b=o)}else{const t=i[s.fontStack];if(!t)continue;t[p]&&(T=t[p]);const n=e[s.fontStack];if(!n)continue;const o=n.glyphs[p];if(!o)continue;if(y=o.metrics,k=8203!==p?Bh:0,g){const t=void 0!==n.ascender?Math.abs(n.ascender):0,e=void 0!==n.descender?Math.abs(n.descender):0,i=(t+e)*m;x<i&&(x=i,E=(t-e)/2*m),O=-t*m}else O=Od+(r-m)*Bh}A?(t.verticalizable=!0,v.push({glyph:p,imageName:S,x:d,y:f+O,vertical:A,scale:m,localGlyph:y.localGlyph,fontStack:s.fontStack,sectionIndex:a,metrics:y,rect:T}),d+=k*m+c):(v.push({glyph:p,imageName:S,x:d,y:f+O,vertical:A,scale:m,localGlyph:y.localGlyph,fontStack:s.fontStack,sectionIndex:a,metrics:y,rect:T}),d+=y.advance*m+c)}0!==v.length&&(p=Math.max(d-c,p),g?Fd(v,m,b,E,o*r/2):Fd(v,m,b,0,o/2)),d=0;const T=o*r+b;a.lineOffset=Math.max(b,s),f+=T,++y}var _;const v=f,{horizontalAlign:b,verticalAlign:x}=Bd(s);(function(t,e,i,n,r,o){const s=(e-i)*r,a=-o*n;for(const l of t)for(const t of l.positionedGlyphs)t.x+=s,t.y+=a})(t.positionedLines,m,b,x,p,v),t.top+=-x*v,t.bottom=t.top+v,t.left+=-b*p,t.right=t.left+p,t.hasBaseline=g}(x,e,i,n,g,s,a,l,h,c,d,p),!function(t){for(const e of t)if(0!==e.positionedGlyphs.length)return!1;return!0}(b)&&x}const Md={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Pd={10:!0,32:!0,38:!0,40:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0};function Dd(t,e,i,n,r,o){if(e.imageName){const t=n[e.imageName];return t?t.displaySize[0]*e.scale*Bh/o+r:0}{const n=i[e.fontStack],o=n&&n.glyphs[t];return o?o.metrics.advance*e.scale+r:0}}function Ld(t,e,i,n){const r=Math.pow(t-e,2);return n?t<e?r/2:2*r:r+Math.abs(i)*i}function Rd(t,e,i){let n=0;return 10===t&&(n-=1e4),i&&(n+=150),40!==t&&65288!==t||(n+=50),41!==e&&65289!==e||(n+=50),n}function zd(t,e,i,n,r,o){let s=null,a=Ld(e,i,r,o);for(const l of n){const t=Ld(e-l.x,i,r,o)+l.badness;t<=a&&(s=l,a=t)}return{index:t,x:e,priorBreak:s,badness:a}}function jd(t){return t?jd(t.priorBreak).concat(t.index):[]}function Bd(t){let e=.5,i=.5;switch(t){case"right":case"top-right":case"bottom-right":e=1;break;case"left":case"top-left":case"bottom-left":e=0}switch(t){case"bottom":case"bottom-right":case"bottom-left":i=1;break;case"top":case"top-right":case"top-left":i=0}return{horizontalAlign:e,verticalAlign:i}}function Fd(t,e,i,n,r){if(!(e||i||n||r))return;const o=t.length-1,s=t[o],a=(s.x+s.metrics.advance*s.scale)*e;for(let l=0;l<=o;l++)t[l].x-=a,t[l].y+=i+n+r}function Nd(t,e,i){const{horizontalAlign:n,verticalAlign:r}=Bd(i),o=e[0]-t.displaySize[0]*n,s=e[1]-t.displaySize[1]*r;return{image:t,top:s,bottom:s+t.displaySize[1],left:o,right:o+t.displaySize[0]}}function Vd(t,e,i,n,r,o){const s=t.image;let a;if(s.content){const t=s.content,e=s.pixelRatio||1;a=[t[0]/e,t[1]/e,s.displaySize[0]-t[2]/e,s.displaySize[1]-t[3]/e]}const l=e.left*o,c=e.right*o;let u,h,d,f;"width"===i||"both"===i?(f=r[0]+l-n[3],h=r[0]+c+n[1]):(f=r[0]+(l+c-s.displaySize[0])/2,h=f+s.displaySize[0]);const p=e.top*o,m=e.bottom*o;return"height"===i||"both"===i?(u=r[1]+p-n[0],d=r[1]+m+n[2]):(u=r[1]+(p+m-s.displaySize[1])/2,d=u+s.displaySize[1]),{image:s,top:u,right:h,bottom:d,left:f,collisionPadding:a}}class $d extends _{constructor(t,e,i,n,r){super(t,e),this.angle=n,this.z=i,void 0!==r&&(this.segment=r)}clone(){return new $d(this.x,this.y,this.z,this.angle,this.segment)}}function Ud(t,e,i,n,r){if(void 0===e.segment)return!0;let o=e,s=e.segment+1,a=0;for(;a>-i/2;){if(s--,s<0)return!1;a-=t[s].dist(o),o=t[s]}a+=t[s].dist(t[s+1]),s++;const l=[];let c=0;for(;a<i/2;){const e=t[s],i=t[s+1];if(!i)return!1;let o=t[s-1].angleTo(e)-e.angleTo(i);for(o=Math.abs((o+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:a,angleDelta:o}),c+=o;a-l[0].distance>n;)c-=l.shift().angleDelta;if(c>r)return!1;s++,a+=e.dist(i)}return!0}function qd(t){let e=0;for(let i=0;i<t.length-1;i++)e+=t[i].dist(t[i+1]);return e}function Gd(t,e,i){return t?.6*e*i:0}function Wd(t,e){return Math.max(t?t.right-t.left:0,e?e.right-e.left:0)}function Zd(t,e,i,n,r,o){const s=Gd(i,r,o),a=Wd(i,n)*o;let l=0;const c=qd(t)/2;for(let u=0;u<t.length-1;u++){const i=t[u],n=t[u+1],r=i.dist(n);if(l+r>c){const o=(c-l)/r,h=Mi(i.x,n.x,o),d=Mi(i.y,n.y,o),f=new $d(h,d,0,n.angleTo(i),u);return!s||Ud(t,f,a,s,e)?f:void 0}l+=r}}function Hd(t,e,i,n,r,o,s,a,l){const c=Gd(n,o,s),u=Wd(n,r),h=u*s,d=0===t[0].x||t[0].x===l||0===t[0].y||t[0].y===l;return e-h<e/4&&(e=h+e/4),Xd(t,d?e/2*a%e:(u/2+2*o)*s*a%e,e,c,i,h,d,!1,l)}function Xd(t,e,i,n,r,o,s,a,l){const c=o/2,u=qd(t);let h=0,d=e-i,f=[];for(let p=0;p<t.length-1;p++){const e=t[p],s=t[p+1],a=e.dist(s),m=s.angleTo(e);for(;d+i<h+a;){d+=i;const g=(d-h)/a,y=Mi(e.x,s.x,g),_=Mi(e.y,s.y,g);if(y>=0&&y<l&&_>=0&&_<l&&d-c>=0&&d+c<=u){const e=new $d(y,_,0,m,p);e._round(),n&&!Ud(t,e,o,n,r)||f.push(e)}}h+=a}return a||f.length||s||(f=Xd(t,h/2,i,n,r,o,s,!0,l)),f}function Qd(t,e,i,n,r){const o=[];for(let s=0;s<t.length;s++){const a=t[s];let l;for(let t=0;t<a.length-1;t++){let s=a[t],c=a[t+1];s.x<e&&c.x<e||(s.x<e?s=new _(e,s.y+(e-s.x)/(c.x-s.x)*(c.y-s.y))._round():c.x<e&&(c=new _(e,s.y+(e-s.x)/(c.x-s.x)*(c.y-s.y))._round()),s.y<i&&c.y<i||(s.y<i?s=new _(s.x+(i-s.y)/(c.y-s.y)*(c.x-s.x),i)._round():c.y<i&&(c=new _(s.x+(i-s.y)/(c.y-s.y)*(c.x-s.x),i)._round()),s.x>=n&&c.x>=n||(s.x>=n?s=new _(n,s.y+(n-s.x)/(c.x-s.x)*(c.y-s.y))._round():c.x>=n&&(c=new _(n,s.y+(n-s.x)/(c.x-s.x)*(c.y-s.y))._round()),s.y>=r&&c.y>=r||(s.y>=r?s=new _(s.x+(r-s.y)/(c.y-s.y)*(c.x-s.x),r)._round():c.y>=r&&(c=new _(s.x+(r-s.y)/(c.y-s.y)*(c.x-s.x),r)._round()),l&&s.equals(l[l.length-1])||(l=[s],o.push(l)),l.push(c)))))}}return o}Xr($d,"Anchor");const Yd=1e20;function Kd(t,e,i,n,r,o,s,a,l){for(let c=e;c<e+n;c++)Jd(t,i*o+c,o,r,s,a,l);for(let c=i;c<i+r;c++)Jd(t,c*o+e,1,n,s,a,l)}function Jd(t,e,i,n,r,o,s){o[0]=0,s[0]=-Yd,s[1]=Yd,r[0]=t[e];for(let a=1,l=0,c=0;a<n;a++){r[a]=t[e+a*i];const n=a*a;do{const t=o[l];c=(r[a]-r[t]+n-t*t)/(a-t)/2}while(c<=s[l]&&--l>-1);l++,o[l]=a,s[l]=c,s[l+1]=Yd}for(let a=0,l=0;a<n;a++){for(;s[l+1]<a;)l++;const n=o[l],c=a-n;t[e+a*i]=r[n]+c*c}}const tf=2,ef={none:0,ideographs:1,all:2};class nf{constructor(t,e,i){this.requestManager=t,this.localGlyphMode=e,this.localFontFamily=i,this.entries={},this.localGlyphs={200:{},400:{},500:{},900:{}}}setURL(t){this.url=t}getGlyphs(t,e){const i=[];for(const n in t)for(const e of t[n])i.push({stack:n,id:e});I(i,({stack:t,id:e},i)=>{let n=this.entries[t];n||(n=this.entries[t]={glyphs:{},requests:{},ranges:{},ascender:void 0,descender:void 0});let r=n.glyphs[e];if(void 0!==r)return void i(null,{stack:t,id:e,glyph:r});if(r=this._tinySDF(n,t,e),r)return n.glyphs[e]=r,void i(null,{stack:t,id:e,glyph:r});const o=Math.floor(e/256);if(256*o>65535)return void i(new Error("glyphs > 65535 not supported"));if(n.ranges[o])return void i(null,{stack:t,id:e,glyph:r});let s=n.requests[o];s||(s=n.requests[o]=[],nf.loadGlyphRange(t,o,this.url,this.requestManager,(t,e)=>{if(e){n.ascender=e.ascender,n.descender=e.descender;for(const t in e.glyphs)this._doesCharSupportLocalGlyph(+t)||(n.glyphs[+t]=e.glyphs[+t]);n.ranges[o]=!0}for(const i of s)i(t,e);delete n.requests[o]})),s.push((n,r)=>{n?i(n):r&&i(null,{stack:t,id:e,glyph:r.glyphs[e]||null})})},(t,i)=>{if(t)e(t);else if(i){const t={};for(const{stack:e,id:n,glyph:r}of i)void 0===t[e]&&(t[e]={}),void 0===t[e].glyphs&&(t[e].glyphs={}),t[e].glyphs[n]=r&&{id:r.id,bitmap:r.bitmap.clone(),metrics:r.metrics},t[e].ascender=this.entries[e].ascender,t[e].descender=this.entries[e].descender;e(null,t)}})}_doesCharSupportLocalGlyph(t){return this.localGlyphMode!==ef.none&&(this.localGlyphMode===ef.all?!!this.localFontFamily:!!this.localFontFamily&&(to["CJK Unified Ideographs"](t)||to["Hangul Syllables"](t)||to.Hiragana(t)||to.Katakana(t)||to["CJK Symbols and Punctuation"](t)))}_tinySDF(t,e,i){const n=this.localFontFamily;if(!n||!this._doesCharSupportLocalGlyph(i))return;let r=t.tinySDF;if(!r){let i="400";/bold/i.test(e)?i="900":/medium/i.test(e)?i="500":/light/i.test(e)&&(i="200"),r=t.tinySDF=new nf.TinySDF({fontFamily:n,fontWeight:i,fontSize:24*tf,buffer:3*tf,radius:8*tf}),r.fontWeight=i}if(this.localGlyphs[r.fontWeight][i])return this.localGlyphs[r.fontWeight][i];const o=String.fromCharCode(i),{data:s,width:a,height:l,glyphWidth:c,glyphHeight:u,glyphLeft:h,glyphTop:d,glyphAdvance:f}=r.draw(o);return this.localGlyphs[r.fontWeight][i]={id:i,bitmap:new Bc({width:a,height:l},s),metrics:{width:c/tf,height:u/tf,left:h/tf,top:d/tf-27,advance:f/tf,localGlyph:!0}}}}nf.loadGlyphRange=function(t,e,i,n,r){const o=256*e,s=o+255,a=n.transformRequest(n.normalizeGlyphsURL(i).replace("{fontstack}",t).replace("{range}",`${o}-${s}`),lt.Glyphs);dt(a,(t,e)=>{if(t)r(t);else if(e){const t={},i=function(t){return new gd(t).readFields(_d,{})}(e);for(const e of i.glyphs)t[e.id]=e;r(null,{glyphs:t,ascender:i.ascender,descender:i.descender})}})},nf.TinySDF=class{constructor({fontSize:t=24,buffer:e=3,radius:i=8,cutoff:n=.25,fontFamily:r="sans-serif",fontWeight:o="normal",fontStyle:s="normal"}={}){this.buffer=e,this.cutoff=n,this.radius=i;const a=this.size=t+4*e,l=this._createCanvas(a),c=this.ctx=l.getContext("2d",{willReadFrequently:!0});c.font=`${s} ${o} ${t}px ${r}`,c.textBaseline="alphabetic",c.textAlign="left",c.fillStyle="black",this.gridOuter=new Float64Array(a*a),this.gridInner=new Float64Array(a*a),this.f=new Float64Array(a),this.z=new Float64Array(a+1),this.v=new Uint16Array(a)}_createCanvas(t){const e=document.createElement("canvas");return e.width=e.height=t,e}draw(t){const{width:e,actualBoundingBoxAscent:i,actualBoundingBoxDescent:n,actualBoundingBoxLeft:r,actualBoundingBoxRight:o}=this.ctx.measureText(t),s=Math.ceil(i),a=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(o-r))),l=Math.min(this.size-this.buffer,s+Math.ceil(n)),c=a+2*this.buffer,u=l+2*this.buffer,h=Math.max(c*u,0),d=new Uint8ClampedArray(h),f={data:d,width:c,height:u,glyphWidth:a,glyphHeight:l,glyphTop:s,glyphLeft:0,glyphAdvance:e};if(0===a||0===l)return f;const{ctx:p,buffer:m,gridInner:g,gridOuter:y}=this;p.clearRect(m,m,a,l),p.fillText(t,m,m+s);const _=p.getImageData(m,m,a,l);y.fill(Yd,0,h),g.fill(0,0,h);for(let v=0;v<l;v++)for(let t=0;t<a;t++){const e=_.data[4*(v*a+t)+3]/255;if(0===e)continue;const i=(v+m)*c+t+m;if(1===e)y[i]=0,g[i]=Yd;else{const t=.5-e;y[i]=t>0?t*t:0,g[i]=t<0?t*t:0}}Kd(y,0,0,c,u,c,this.f,this.v,this.z),Kd(g,m,m,a,l,c,this.f,this.v,this.z);for(let v=0;v<h;v++){const t=Math.sqrt(y[v])-Math.sqrt(g[v]);d[v]=Math.round(255-255*(t/this.radius+this.cutoff))}return f}};const rf=Ed;function of(t,e,i,n){const r=[],o=t.image,s=o.pixelRatio,a=o.paddedRect.w-2*rf,l=o.paddedRect.h-2*rf,c=t.right-t.left,u=t.bottom-t.top,h=o.stretchX||[[0,a]],d=o.stretchY||[[0,l]],f=(t,e)=>t+e[1]-e[0],p=h.reduce(f,0),m=d.reduce(f,0),g=a-p,y=l-m;let v=0,b=p,x=0,w=m,E=0,T=g,S=0,k=y;if(o.content&&n){const t=o.content;v=sf(h,0,t[0]),x=sf(d,0,t[1]),b=sf(h,t[0],t[2]),w=sf(d,t[1],t[3]),E=t[0]-v,S=t[1]-x,T=t[2]-t[0]-b,k=t[3]-t[1]-w}const O=(n,r,a,l)=>{const h=lf(n.stretch-v,b,c,t.left),d=cf(n.fixed-E,T,n.stretch,p),f=lf(r.stretch-x,w,u,t.top),g=cf(r.fixed-S,k,r.stretch,m),y=lf(a.stretch-v,b,c,t.left),O=cf(a.fixed-E,T,a.stretch,p),A=lf(l.stretch-x,w,u,t.top),C=cf(l.fixed-S,k,l.stretch,m),I=new _(h,f),M=new _(y,f),P=new _(y,A),D=new _(h,A),L=new _(d/s,g/s),R=new _(O/s,C/s),z=e*Math.PI/180;if(z){const t=Math.sin(z),e=Math.cos(z),i=[e,-t,t,e];I._matMult(i),M._matMult(i),D._matMult(i),P._matMult(i)}const j=n.stretch+n.fixed,B=r.stretch+r.fixed;return{tl:I,tr:M,bl:D,br:P,tex:{x:o.paddedRect.x+rf+j,y:o.paddedRect.y+rf+B,w:a.stretch+a.fixed-j,h:l.stretch+l.fixed-B},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:L,pixelOffsetBR:R,minFontScaleX:T/s/c,minFontScaleY:k/s/u,isSDF:i}};if(n&&(o.stretchX||o.stretchY)){const t=af(h,g,p),e=af(d,y,m);for(let i=0;i<t.length-1;i++){const n=t[i],o=t[i+1];for(let t=0;t<e.length-1;t++)r.push(O(n,e[t],o,e[t+1]))}}else r.push(O({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:a+1},{fixed:0,stretch:l+1}));return r}function sf(t,e,i){let n=0;for(const r of t)n+=Math.max(e,Math.min(i,r[1]))-Math.max(e,Math.min(i,r[0]));return n}function af(t,e,i){const n=[{fixed:-rf,stretch:0}];for(const[r,o]of t){const t=n[n.length-1];n.push({fixed:r-t.stretch,stretch:t.stretch}),n.push({fixed:r-t.stretch,stretch:t.stretch+(o-r)})}return n.push({fixed:e+rf,stretch:i}),n}function lf(t,e,i,n){return t/e*i+n}function cf(t,e,i,n){return t-e*i/n}function uf(t,e,i,n){const r=e+t.positionedLines[n].lineOffset;return 0===n?i+r/2:i+(r+(e+t.positionedLines[n-1].lineOffset))/2}class hf{constructor(t=[],e=df){if(this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(let i=(this.length>>1)-1;i>=0;i--)this._down(i)}push(t){this.data.push(t),this.length++,this._up(this.length-1)}pop(){if(0===this.length)return;const t=this.data[0],e=this.data.pop();return this.length--,this.length>0&&(this.data[0]=e,this._down(0)),t}peek(){return this.data[0]}_up(t){const{data:e,compare:i}=this,n=e[t];for(;t>0;){const r=t-1>>1,o=e[r];if(i(n,o)>=0)break;e[t]=o,t=r}e[t]=n}_down(t){const{data:e,compare:i}=this,n=this.length>>1,r=e[t];for(;t<n;){let n=1+(t<<1),o=e[n];const s=n+1;if(s<this.length&&i(e[s],o)<0&&(n=s,o=e[s]),i(o,r)>=0)break;e[t]=o,t=n}e[t]=r}}function df(t,e){return t<e?-1:t>e?1:0}function ff(t,e=1,i=!1){let n=1/0,r=1/0,o=-1/0,s=-1/0;const a=t[0];for(let f=0;f<a.length;f++){const t=a[f];(!f||t.x<n)&&(n=t.x),(!f||t.y<r)&&(r=t.y),(!f||t.x>o)&&(o=t.x),(!f||t.y>s)&&(s=t.y)}const l=Math.min(o-n,s-r);let c=l/2;const u=new hf([],pf);if(0===l)return new _(n,r);for(let f=n;f<o;f+=l)for(let e=r;e<s;e+=l)u.push(new mf(f+c,e+c,c,t));let h=function(t){let e=0,i=0,n=0;const r=t[0];for(let o=0,s=r.length,a=s-1;o<s;a=o++){const t=r[o],s=r[a],l=t.x*s.y-s.x*t.y;i+=(t.x+s.x)*l,n+=(t.y+s.y)*l,e+=3*l}return new mf(i/e,n/e,0,t)}(t),d=u.length;for(;u.length;){const n=u.pop();(n.d>h.d||!h.d)&&(h=n,i&&console.log("found best %d after %d probes",Math.round(1e4*n.d)/1e4,d)),n.max-h.d<=e||(c=n.h/2,u.push(new mf(n.p.x-c,n.p.y-c,c,t)),u.push(new mf(n.p.x+c,n.p.y-c,c,t)),u.push(new mf(n.p.x-c,n.p.y+c,c,t)),u.push(new mf(n.p.x+c,n.p.y+c,c,t)),d+=4)}return i&&(console.log("num probes: "+d),console.log("best distance: "+h.d)),h.p}function pf(t,e){return e.max-t.max}class mf{constructor(t,e,i,n){this.p=new _(t,e),this.h=i,this.d=function(t,e){let i=!1,n=1/0;for(let r=0;r<e.length;r++){const o=e[r];for(let e=0,r=o.length,s=r-1;e<r;s=e++){const r=o[e],a=o[s];r.y>t.y!=a.y>t.y&&t.x<(a.x-r.x)*(t.y-r.y)/(a.y-r.y)+r.x&&(i=!i),n=Math.min(n,_c(t,r,a))}}return(i?1:-1)*Math.sqrt(n)}(this.p,n),this.max=this.d+this.h*Math.SQRT2}}const gf=7,yf=Number.POSITIVE_INFINITY,_f=Math.sqrt(2);function vf(t,[e,i]){let n=0,r=0;if(i===yf){e<0&&(e=0);const i=e/_f;switch(t){case"top-right":case"top-left":r=i-gf;break;case"bottom-right":case"bottom-left":r=-i+gf;break;case"bottom":r=-e+gf;break;case"top":r=e-gf}switch(t){case"top-right":case"bottom-right":n=-i;break;case"top-left":case"bottom-left":n=i;break;case"left":n=e;break;case"right":n=-e}}else{switch(e=Math.abs(e),i=Math.abs(i),t){case"top-right":case"top-left":case"top":r=i-gf;break;case"bottom-right":case"bottom-left":case"bottom":r=-i+gf}switch(t){case"top-right":case"bottom-right":case"right":n=-e;break;case"top-left":case"bottom-left":case"left":n=e}}return[n,r]}function bf(t,e,i,n,r,o,s,a,l,c){t.createArrays(),t.tilePixelRatio=aa/(512*t.overscaling),t.compareText={},t.iconsNeedLinear=!1;const u=t.layers[0].layout,h=t.layers[0]._unevaluatedLayout._values,d={};if("composite"===t.textSizeData.kind){const{minZoom:e,maxZoom:i}=t.textSizeData;d.compositeTextSizes=[h["text-size"].possiblyEvaluate(new wo(e),a),h["text-size"].possiblyEvaluate(new wo(i),a)]}if("composite"===t.iconSizeData.kind){const{minZoom:e,maxZoom:i}=t.iconSizeData;d.compositeIconSizes=[h["icon-size"].possiblyEvaluate(new wo(e),a),h["icon-size"].possiblyEvaluate(new wo(i),a)]}d.layoutTextSize=h["text-size"].possiblyEvaluate(new wo(l+1),a),d.layoutIconSize=h["icon-size"].possiblyEvaluate(new wo(l+1),a),d.textMaxSize=h["text-size"].possiblyEvaluate(new wo(18),a);const f="map"===u.get("text-rotation-alignment")&&"point"!==u.get("symbol-placement"),p=u.get("text-size");for(const m of t.features){const o=u.get("text-font").evaluate(m,{},a).join(","),l=p.evaluate(m,{},a),h=d.layoutTextSize.evaluate(m,{},a),g=(d.layoutIconSize.evaluate(m,{},a),{horizontal:{},vertical:void 0}),y=m.text;let _,v=[0,0];if(y){const n=y.toString(),s=u.get("text-letter-spacing").evaluate(m,{},a)*Bh,c=u.get("text-line-height").evaluate(m,{},a)*Bh,d=io(n)?s:0,p=u.get("text-anchor").evaluate(m,{},a),_=u.get("text-variable-anchor");if(!_){const t=u.get("text-radial-offset").evaluate(m,{},a);v=t?vf(p,[t*Bh,yf]):u.get("text-offset").evaluate(m,{},a).map(t=>t*Bh)}let b=f?"center":u.get("text-justify").evaluate(m,{},a);const x="point"===u.get("symbol-placement"),w=x?u.get("text-max-width").evaluate(m,{},a)*Bh:1/0,E=s=>{t.allowVerticalPlacement&&eo(n)&&(g.vertical=Id(y,e,i,r,o,w,c,p,s,d,v,kd.vertical,!0,h,l))};if(!f&&_){const t="auto"===b?_.map(t=>xf(t)):[b];let n=!1;for(let s=0;s<t.length;s++){const a=t[s];if(!g.horizontal[a])if(n)g.horizontal[a]=g.horizontal[0];else{const t=Id(y,e,i,r,o,w,c,"center",a,d,v,kd.horizontal,!1,h,l);t&&(g.horizontal[a]=t,n=1===t.positionedLines.length)}}E("left")}else{if("auto"===b&&(b=xf(p)),x||u.get("text-writing-mode").indexOf("horizontal")>=0||!eo(n)){const t=Id(y,e,i,r,o,w,c,p,b,d,v,kd.horizontal,!1,h,l);t&&(g.horizontal[b]=t)}E(x?"left":b)}}let b=!1;if(m.icon&&m.icon.name){const e=n[m.icon.name];e&&(_=Nd(r[m.icon.name],u.get("icon-offset").evaluate(m,{},a),u.get("icon-anchor").evaluate(m,{},a)),b=e.sdf,void 0===t.sdfIcons?t.sdfIcons=e.sdf:t.sdfIcons!==e.sdf&&q("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(e.pixelRatio!==t.pixelRatio||0!==u.get("icon-rotate").constantOr(1))&&(t.iconsNeedLinear=!0))}const x=kf(g.horizontal)||g.vertical;t.iconsInText||(t.iconsInText=!!x&&x.iconsInText),(x||_)&&wf(t,m,g,_,n,d,h,0,v,b,s,a,c)}o&&t.generateCollisionDebugBuffers(l,t.collisionBoxArray)}function xf(t){switch(t){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function wf(t,e,i,n,r,o,s,a,l,c,u,h,d){let f=o.textMaxSize.evaluate(e,{},h);void 0===f&&(f=s);const p=t.layers[0].layout,m=p.get("icon-offset").evaluate(e,{},h),g=kf(i.horizontal)||i.vertical,y="globe"===d.name,_=Bh,v=s/_,b=t.tilePixelRatio*f/_,w=(I=t.overscaling,t.zoom>18&&I>2&&(I>>=1),Math.max(aa/(512*I),1)*p.get("symbol-spacing")),E=p.get("text-padding")*t.tilePixelRatio,T=p.get("icon-padding")*t.tilePixelRatio,S=x(p.get("text-max-angle")),k="map"===p.get("text-rotation-alignment")&&"point"!==p.get("symbol-placement"),O="map"===p.get("icon-rotation-alignment")&&"point"!==p.get("symbol-placement"),A=p.get("symbol-placement"),C=w/2;var I;const M=p.get("icon-text-fit");let P;n&&"none"!==M&&(t.allowVerticalPlacement&&i.vertical&&(P=Vd(n,i.vertical,M,p.get("icon-text-fit-padding"),m,v)),g&&(n=Vd(n,g,M,p.get("icon-text-fit-padding"),m,v)));const D=(s,a,f)=>{if(a.x<0||a.x>=aa||a.y<0||a.y>=aa)return;let p=null;if(y){const{x:t,y:e,z:i}=d.projectTilePoint(a.x,a.y,f);p={anchor:new $d(t,e,i,0,void 0),up:d.upVector(f,a.x,a.y)}}!function(t,e,i,n,r,o,s,a,l,c,u,h,d,f,p,m,g,y,_,v,b,x,w,E,T){const S=t.addToLineVertexArray(e,n);let k,O,A,C,I,M,P,D=0,L=0,R=0,z=0,j=-1,B=-1;const F={};let N=Ms("");const V=i?i.anchor:e;let $=0,U=0;if(void 0===l._unevaluatedLayout.getValue("text-radial-offset")?[$,U]=l.layout.get("text-offset").evaluate(b,{},T).map(t=>t*Bh):($=l.layout.get("text-radial-offset").evaluate(b,{},T)*Bh,U=yf),t.allowVerticalPlacement&&r.vertical){const t=r.vertical;if(p)M=Af(t),a&&(P=Af(a));else{const i=l.layout.get("text-rotate").evaluate(b,{},T)+90;A=Of(c,V,e,u,h,d,t,f,i,m),a&&(C=Of(c,V,e,u,h,d,a,y,i))}}if(o){const n=l.layout.get("icon-rotate").evaluate(b,{},T),r="none"!==l.layout.get("icon-text-fit"),s=of(o,n,w,r),f=a?of(a,n,w,r):void 0;O=Of(c,V,e,u,h,d,o,y,n),D=4*s.length;const p=t.iconSizeData;let m=null;"source"===p.kind?(m=[Fh*l.layout.get("icon-size").evaluate(b,{},T)],m[0]>Tf&&q(`${t.layerIds[0]}: Value for "icon-size" is >= ${Ef}. Reduce your "icon-size".`)):"composite"===p.kind&&(m=[Fh*x.compositeIconSizes[0].evaluate(b,{},T),Fh*x.compositeIconSizes[1].evaluate(b,{},T)],(m[0]>Tf||m[1]>Tf)&&q(`${t.layerIds[0]}: Value for "icon-size" is >= ${Ef}. Reduce your "icon-size".`)),t.addSymbols(t.icon,s,m,v,_,b,!1,i,e,S.lineStartIndex,S.lineLength,-1,E,T),j=t.icon.placedSymbolArray.length-1,f&&(L=4*f.length,t.addSymbols(t.icon,f,m,v,_,b,kd.vertical,i,e,S.lineStartIndex,S.lineLength,-1,E,T),B=t.icon.placedSymbolArray.length-1)}for(const q in r.horizontal){const n=r.horizontal[q];k||(N=Ms(n.text),p?I=Af(n):k=Of(c,V,e,u,h,d,n,f,l.layout.get("text-rotate").evaluate(b,{},T),m));const o=1===n.positionedLines.length;if(R+=Sf(t,i,e,n,s,l,p,b,m,S,r.vertical?kd.horizontal:kd.horizontalOnly,o?Object.keys(r.horizontal):[q],F,j,x,E,T),o)break}r.vertical&&(z+=Sf(t,i,e,r.vertical,s,l,p,b,m,S,kd.vertical,["vertical"],F,B,x,E,T));let G=-1;const W=(t,e)=>t?Math.max(t,e):e;G=W(I,G),G=W(M,G),G=W(P,G);const Z=G>-1?1:0;t.glyphOffsetArray.length>=ap.MAX_GLYPHS&&q("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==b.sortKey&&t.addToSortKeyRanges(t.symbolInstances.length,b.sortKey),t.symbolInstances.emplaceBack(V.x,V.y,V.z,e.x,e.y,F.right>=0?F.right:-1,F.center>=0?F.center:-1,F.left>=0?F.left:-1,F.vertical>=0?F.vertical:-1,j,B,N,void 0!==k?k:t.collisionBoxArray.length,void 0!==k?k+1:t.collisionBoxArray.length,void 0!==A?A:t.collisionBoxArray.length,void 0!==A?A+1:t.collisionBoxArray.length,void 0!==O?O:t.collisionBoxArray.length,void 0!==O?O+1:t.collisionBoxArray.length,C||t.collisionBoxArray.length,C?C+1:t.collisionBoxArray.length,u,R,z,D,L,Z,0,$,U,G)}(t,a,p,s,i,n,r,P,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,E,k,l,0,T,O,m,e,o,c,u,h)};if("line"===A)for(const x of Qd(e.geometry,0,0,aa,aa)){const e=Hd(x,w,S,i.vertical||g,n,_,b,t.overscaling,aa);for(const i of e)g&&Cf(t,g.text,C,i)||D(x,i,h)}else if("line-center"===A){for(const x of e.geometry)if(x.length>1){const t=Zd(x,S,i.vertical||g,n,_,b);t&&D(x,t,h)}}else if("Polygon"===e.type)for(const x of Eu(e.geometry,0)){const t=ff(x,16);D(x[0],new $d(t.x,t.y,0,0,void 0),h)}else if("LineString"===e.type)for(const x of e.geometry)D(x,new $d(x[0].x,x[0].y,0,0,void 0),h);else if("Point"===e.type)for(const x of e.geometry)for(const t of x)D([t],new $d(t.x,t.y,0,0,void 0),h)}const Ef=255,Tf=Ef*Fh;function Sf(t,e,i,n,r,o,s,a,l,c,u,h,d,f,p,m,g){const y=function(t,e,i,n,r,o,s,a){const l=[];if(0===e.positionedLines.length)return l;const c=n.layout.get("text-rotate").evaluate(o,{})*Math.PI/180,u=function(t){const e=t[0],i=t[1],n=e*i;return n>0?[e,-i]:n<0?[-e,i]:0===e?[i,e]:[i,-e]}(i);let h=Math.abs(e.top-e.bottom);for(const m of e.positionedLines)h-=m.lineOffset;const d=e.positionedLines.length,f=h/d;let p=e.top-i[1];for(let m=0;m<d;++m){const t=e.positionedLines[m];p=uf(e,f,p,m);for(const n of t.positionedGlyphs){if(!n.rect)continue;const t=n.rect||{};let o=xd+1,h=!0,d=1,f=0;if(n.imageName){const t=s[n.imageName];if(!t)continue;if(t.sdf){q("SDF images are not supported in formatted text and will be ignored.");continue}h=!1,d=t.pixelRatio,o=Ed/d}const m=(r||a)&&n.vertical,g=n.metrics.advance*n.scale/2,y=n.metrics,v=n.rect;if(null===v)continue;a&&e.verticalizable&&(f=n.imageName?g-n.metrics.width*n.scale/2:0);const b=r?[n.x+g,n.y]:[0,0];let x=[0,0],w=[0,0],E=!1;r||(m?(w=[n.x+g+u[0],n.y+u[1]-f],E=!0):x=[n.x+g+i[0],n.y+i[1]-f]);const T=v.w*n.scale/(d*(n.localGlyph?tf:1)),S=v.h*n.scale/(d*(n.localGlyph?tf:1));let k,O,A,C;if(m){const t=n.y-p,e=new _(-g,g-t),i=-Math.PI/2,r=new _(...w);k=new _(-g+x[0],x[1]),k._rotateAround(i,e)._add(r),k.x+=-t+g,k.y-=(y.left-o)*n.scale;const s=n.imageName?y.advance*n.scale:Bh*n.scale,a=String.fromCharCode(n.glyph);Wh(a)?k.x+=(1-o)*n.scale:Zh(a)?k.x+=s-y.height*n.scale+(-o-1)*n.scale:k.x+=n.imageName||y.width+2*o===v.w&&y.height+2*o===v.h?(s-S)/2:(s-(y.height+2*o)*n.scale)/2,O=new _(k.x,k.y-T),A=new _(k.x+S,k.y),C=new _(k.x+S,k.y-T)}else{const t=(y.left-o)*n.scale-g+x[0],e=(-y.top-o)*n.scale+x[1],i=t+T,r=e+S;k=new _(t,e),O=new _(i,e),A=new _(t,r),C=new _(i,r)}if(c){let t;t=r?new _(0,0):E?new _(u[0],u[1]):new _(i[0],i[1]),k._rotateAround(c,t),O._rotateAround(c,t),A._rotateAround(c,t),C._rotateAround(c,t)}const I=new _(0,0),M=new _(0,0);l.push({tl:k,tr:O,bl:A,br:C,tex:t,writingMode:e.writingMode,glyphOffset:b,sectionIndex:n.sectionIndex,isSDF:h,pixelOffsetTL:I,pixelOffsetBR:M,minFontScaleX:0,minFontScaleY:0})}}return l}(0,n,l,o,s,a,r,t.allowVerticalPlacement),v=t.textSizeData;let b=null;"source"===v.kind?(b=[Fh*o.layout.get("text-size").evaluate(a,{},g)],b[0]>Tf&&q(`${t.layerIds[0]}: Value for "text-size" is >= ${Ef}. Reduce your "text-size".`)):"composite"===v.kind&&(b=[Fh*p.compositeTextSizes[0].evaluate(a,{},g),Fh*p.compositeTextSizes[1].evaluate(a,{},g)],(b[0]>Tf||b[1]>Tf)&&q(`${t.layerIds[0]}: Value for "text-size" is >= ${Ef}. Reduce your "text-size".`)),t.addSymbols(t.text,y,b,l,s,a,u,e,i,c.lineStartIndex,c.lineLength,f,m,g);for(const _ of h)d[_]=t.text.placedSymbolArray.length-1;return 4*y.length}function kf(t){for(const e in t)return t[e];return null}function Of(t,e,i,n,r,o,s,a,l,c){let u=s.top,h=s.bottom,d=s.left,f=s.right;const p=s.collisionPadding;if(p&&(d-=p[0],u-=p[1],f+=p[2],h+=p[3]),l){const t=new _(d,u),e=new _(f,u),i=new _(d,h),n=new _(f,h),r=x(l);let o=new _(0,0);c&&(o=new _(c[0],c[1])),t._rotateAround(r,o),e._rotateAround(r,o),i._rotateAround(r,o),n._rotateAround(r,o),d=Math.min(t.x,e.x,i.x,n.x),f=Math.max(t.x,e.x,i.x,n.x),u=Math.min(t.y,e.y,i.y,n.y),h=Math.max(t.y,e.y,i.y,n.y)}return t.emplaceBack(e.x,e.y,e.z,i.x,i.y,d,u,f,h,a,n,r,o),t.length-1}function Af(t){t.collisionPadding&&(t.top-=t.collisionPadding[1],t.bottom+=t.collisionPadding[3]);const e=t.bottom-t.top;return e>0?Math.max(10,e):null}function Cf(t,e,i,n){const r=t.compareText;if(e in r){const t=r[e];for(let e=t.length-1;e>=0;e--)if(n.dist(t[e])<i)return!0}else r[e]=[];return r[e].push(n),!1}function If(t,e){const i=t.fovAboveCenter,n=t.elevation?t.elevation.getMinElevationBelowMSL()*e:0,r=(t._camera.position[2]*t.worldSize-n)/Math.cos(t._pitch),o=Math.sin(i)*r/Math.sin(Math.max(Math.PI/2-t._pitch-i,.01)),s=Math.sin(t._pitch)*o+r;return Math.min(1.01*s,r*(1/t._horizonShift))}function Mf(t,e){if(!e.isReprojectedInTileSpace)return{scale:1<<t.z,x:t.x,y:t.y,x2:t.x+1,y2:t.y+1,projection:e};const i=Math.pow(2,-t.z),n=t.x*i,r=(t.x+1)*i,o=t.y*i,s=(t.y+1)*i,a=Zl(n),l=Zl(r),c=Hl(o),u=Hl(s),h=e.project(a,c),d=e.project(l,c),f=e.project(l,u),p=e.project(a,u);let m=Math.min(h.x,d.x,f.x,p.x),g=Math.min(h.y,d.y,f.y,p.y),y=Math.max(h.x,d.x,f.x,p.x),_=Math.max(h.y,d.y,f.y,p.y);const v=i/16;function b(t,i,n,r,o,s){const a=(n+o)/2,l=(r+s)/2,c=e.project(Zl(a),Hl(l)),u=Math.max(0,m-c.x,g-c.y,c.x-y,c.y-_);m=Math.min(m,c.x),y=Math.max(y,c.x),g=Math.min(g,c.y),_=Math.max(_,c.y),u>v&&(b(t,c,n,r,a,l),b(c,i,a,l,o,s))}b(h,d,n,o,r,o),b(d,f,r,o,r,s),b(f,p,r,s,n,s),b(p,h,n,s,n,o),m-=v,g-=v,y+=v,_+=v;const x=1/Math.max(y-m,_-g);return{scale:x,x:m*x,y:g*x,x2:y*x,y2:_*x,projection:e}}const Pf=fa(new Float32Array(16));class Df{constructor(t){this.spec=t,this.name=t.name,this.wrap=!1,this.requiresDraping=!1,this.supportsWorldCopies=!1,this.supportsTerrain=!1,this.supportsFog=!1,this.supportsFreeCamera=!1,this.zAxisUnit="meters",this.isReprojectedInTileSpace=!0,this.unsupportedLayers=["custom"],this.center=[0,0],this.range=[3.5,7]}project(t,e){return{x:0,y:0,z:0}}unproject(t,e){return new $l(0,0)}projectTilePoint(t,e,i){return{x:t,y:e,z:0}}locationPoint(t,e,i=!0){return t._coordinatePoint(t.locationCoordinate(e),i)}pixelsPerMeter(t,e){return Wl(1,t)*e}pixelSpaceConversion(t,e,i){return 1}farthestPixelDistance(t){return If(t,t.pixelsPerMeter)}pointCoordinate(t,e,i,n){const r=t.horizonLineFromTop(!1),o=new _(e,Math.max(r,i));return t.rayIntersectionCoordinate(t.pointRayIntersection(o,n))}pointCoordinate3D(t,e,i){const n=new _(e,i);if(t.elevation)return t.elevation.pointCoordinate(n);{const e=this.pointCoordinate(t,n.x,n.y,0);return[e.x,e.y,e.z]}}isPointAboveHorizon(t,e){if(t.elevation)return!this.pointCoordinate3D(t,e.x,e.y);const i=t.horizonLineFromTop();return e.y<i}createInversionMatrix(t,e){return Pf}createTileMatrix(t,e,i){let n,r,o;const s=i.canonical,a=fa(new Float64Array(16));if(this.isReprojectedInTileSpace){const l=Mf(s,this);n=1,r=l.x+i.wrap*l.scale,o=l.y,ya(a,a,[n/l.scale,n/l.scale,t.pixelsPerMeter/e])}else n=e/t.zoomScale(s.z),r=(s.x+Math.pow(2,s.z)*i.wrap)*n,o=s.y*n;return ga(a,a,[r,o,0]),ya(a,a,[n/aa,n/aa,1]),a}upVector(t,e,i){return[0,0,1]}upVectorScale(t,e,i){return{metersToTile:1}}}class Lf extends Df{constructor(t){super(t),this.range=[4,7],this.center=t.center||[-96,37.5];const[e,i]=this.parallels=t.parallels||[29.5,45.5],n=Math.sin(x(e));this.n=(n+Math.sin(x(i)))/2,this.c=1+n*(2*this.n-n),this.r0=Math.sqrt(this.c)/this.n}project(t,e){const{n:i,c:n,r0:r}=this,o=x(t-this.center[0]),s=x(e),a=Math.sqrt(n-2*i*Math.sin(s))/i;return{x:a*Math.sin(o*i),y:a*Math.cos(o*i)-r,z:0}}unproject(t,e){const{n:i,c:n,r0:r}=this,o=r+e;let s=Math.atan2(t,Math.abs(o))*Math.sign(o);o*i<0&&(s-=Math.PI*Math.sign(t)*Math.sign(o));const a=x(this.center[0])*i;s=C(s,-Math.PI-a,Math.PI-a);const l=O(w(s/i)+this.center[0],-180,180),c=Math.asin(O((n-(t*t+o*o)*i*i)/(2*i),-1,1)),u=O(w(c),-Ql,Ql);return new $l(l,u)}}const Rf=1.340264,zf=-.081106,jf=893e-6,Bf=.003796,Ff=Math.sqrt(3)/2;class Nf extends Df{project(t,e){e=e/180*Math.PI,t=t/180*Math.PI;const i=Math.asin(Ff*Math.sin(e)),n=i*i,r=n*n*n;return{x:.5*(t*Math.cos(i)/(Ff*(Rf+3*zf*n+r*(7*jf+9*Bf*n)))/Math.PI+.5),y:1-.5*(i*(Rf+zf*n+r*(jf+Bf*n))/Math.PI+1),z:0}}unproject(t,e){t=(2*t-.5)*Math.PI;let i=e=(2*(1-e)-1)*Math.PI,n=i*i,r=n*n*n;for(let c,u,h,d=0;d<12&&(u=i*(Rf+zf*n+r*(jf+Bf*n))-e,h=Rf+3*zf*n+r*(7*jf+9*Bf*n),c=u/h,i=O(i-c,-Math.PI/3,Math.PI/3),n=i*i,r=n*n*n,!(Math.abs(c)<1e-12));++d);const o=Ff*t*(Rf+3*zf*n+r*(7*jf+9*Bf*n))/Math.cos(i),s=Math.asin(Math.sin(i)/Ff),a=O(180*o/Math.PI,-180,180),l=O(180*s/Math.PI,-Ql,Ql);return new $l(a,l)}}class Vf extends Df{constructor(t){super(t),this.wrap=!0,this.supportsWorldCopies=!0}project(t,e){return{x:.5+t/360,y:.5-e/360,z:0}}unproject(t,e){const i=360*(t-.5),n=O(360*(.5-e),-Ql,Ql);return new $l(i,n)}}const $f=Math.PI/2;function Uf(t){return Math.tan(($f+t)/2)}class qf extends Df{constructor(t){super(t),this.center=t.center||[0,30];const[e,i]=this.parallels=t.parallels||[30,30];let n=x(e),r=x(i);this.southernCenter=n+r<0,this.southernCenter&&(n=-n,r=-r);const o=Math.cos(n),s=Uf(n);this.n=n===r?Math.sin(n):Math.log(o/Math.cos(r))/Math.log(Uf(r)/s),this.f=o*Math.pow(Uf(n),this.n)/this.n}project(t,e){e=x(e),this.southernCenter&&(e=-e),t=x(t-this.center[0]);const i=1e-6,{n:n,f:r}=this;r>0?e<-$f+i&&(e=-$f+i):e>
vendor: 4,961 bytes, line 39
39$f-i&&(e=$f-i);const o=r/Math.pow(Uf(e),n);let s=o*Math.sin(n*t),a=r-o*Math.cos(n*t);return s=.5*(s/Math.PI+.5),a=.5*(a/Math.PI+.5),{x:s,y:this.southernCenter?a:1-a,z:0}}unproject(t,e){t=(2*t-.5)*Math.PI,this.southernCenter&&(e=1-e),e=(2*(1-e)-.5)*Math.PI;const{n:i,f:n}=this,r=n-e,o=Math.sign(r),s=Math.sign(i)*Math.sqrt(t*t+r*r);let a=Math.atan2(t,Math.abs(r))*o;r*i<0&&(a-=Math.PI*Math.sign(t)*o);const l=O(w(a/i)+this.center[0],-180,180),c=O(w(2*Math.atan(Math.pow(n/s,1/i))-$f),-Ql,Ql);return new $l(l,this.southernCenter?-c:c)}}class Gf extends Df{constructor(t){super(t),this.wrap=!0,this.supportsWorldCopies=!0,this.supportsTerrain=!0,this.supportsFog=!0,this.supportsFreeCamera=!0,this.isReprojectedInTileSpace=!1,this.unsupportedLayers=[],this.range=null}project(t,e){return{x:ql(t),y:Gl(e),z:0}}unproject(t,e){const i=Zl(t),n=Hl(e);return new $l(i,n)}}const Wf=x(Ql);class Zf extends Df{project(t,e){const i=(e=x(e))*e,n=i*i;return{x:.5*((t=x(t))*(.8707-.131979*i+n*(n*(.003971*i-.001529*n)-.013791))/Math.PI+.5),y:1-.5*(e*(1.007226+i*(.015085+n*(.028874*i-.044475-.005916*n)))/Math.PI+1),z:0}}unproject(t,e){t=(2*t-.5)*Math.PI;let i=e=(2*(1-e)-1)*Math.PI,n=25,r=0,o=i*i;do{o=i*i;const t=o*o;r=(i*(1.007226+o*(.015085+t*(.028874*o-.044475-.005916*t)))-e)/(1.007226+o*(.045255+t*(.259866*o-.311325-.005916*11*t))),i=O(i-r,-Wf,Wf)}while(Math.abs(r)>1e-6&&--n>0);o=i*i;const s=O(w(t/(.8707+o*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979))),-180,180),a=w(i);return new $l(s,a)}}const Hf=x(Ql);class Xf extends Df{project(t,e){e=x(e),t=x(t);const i=Math.cos(e),n=2/Math.PI,r=Math.acos(i*Math.cos(t/2)),o=Math.sin(r)/r,s=.5*(t*n+2*i*Math.sin(t/2)/o)||0,a=.5*(e+Math.sin(e)/o)||0;return{x:.5*(s/Math.PI+.5),y:1-.5*(a/Math.PI+1),z:0}}unproject(t,e){let i=t=(2*t-.5)*Math.PI,n=e=(2*(1-e)-1)*Math.PI,r=25;const o=1e-6;let s=0,a=0;do{const r=Math.cos(n),o=Math.sin(n),l=2*o*r,c=o*o,u=r*r,h=Math.cos(i/2),d=Math.sin(i/2),f=2*h*d,p=d*d,m=1-u*h*h,g=m?1/m:0,y=m?Math.acos(r*h)*Math.sqrt(1/m):0,_=.5*(2*y*r*d+2*i/Math.PI)-t,v=.5*(y*o+n)-e,b=.5*g*(u*p+y*r*h*c)+1/Math.PI,x=g*(f*l/4-y*o*d),w=.125*g*(l*d-y*o*u*f),E=.5*g*(c*h+y*p*r)+.5,T=x*w-E*b;s=(v*x-_*E)/T,a=(_*w-v*b)/T,i=O(i-s,-Math.PI,Math.PI),n=O(n-a,-Hf,Hf)}while((Math.abs(s)>o||Math.abs(a)>o)&&--r>0);return new $l(w(i),w(n))}}class Qf extends Df{constructor(t){super(t),this.center=t.center||[0,0],this.parallels=t.parallels||[0,0],this.cosPhi=Math.max(.01,Math.cos(x(this.parallels[0]))),this.scale=1/(2*Math.max(Math.PI*this.cosPhi,1/this.cosPhi)),this.wrap=!0,this.supportsWorldCopies=!0}project(t,e){const{scale:i,cosPhi:n}=this;return{x:x(t)*n*i+.5,y:-Math.sin(x(e))/n*i+.5,z:0}}unproject(t,e){const{scale:i,cosPhi:n}=this,r=-(e-.5)/i,o=O(w((t-.5)/i)/n,-180,180),s=Math.asin(O(r*n,-1,1)),a=O(w(s),-Ql,Ql);return new $l(o,a)}}class Yf extends Gf{constructor(t){super(t),this.requiresDraping=!0,this.supportsWorldCopies=!1,this.supportsFog=!0,this.zAxisUnit="pixels",this.unsupportedLayers=["debug"],this.range=[3,5]}projectTilePoint(t,e,i){const n=Ol(t,e,i);return ja(n,n,Il(_l(i))),{x:n[0],y:n[1],z:n[2]}}locationPoint(t,e){const i=kl(e.lat,e.lng),n=La([],i),r=t.elevation?t.elevation.getAtPointOrZero(t.locationCoordinate(e),t._centerAltitude):t._centerAltitude;Da(i,i,n,Wl(1,0)*aa*r);const o=fa(new Float64Array(16));return ma(o,t.pixelMatrix,t.globeMatrix),ja(i,i,o),new _(i[0],i[1])}pixelsPerMeter(t,e){return Wl(1,0)*e}pixelSpaceConversion(t,e,i){const n=Wl(1,t)*e,r=Mi(Wl(1,45)*e,n,i);return this.pixelsPerMeter(t,e)/r}createTileMatrix(t,e,i){const n=Ml(_l(i.canonical));return ma(new Float64Array(16),t.globeMatrix,n)}createInversionMatrix(t,e){const{center:i}=t,n=Il(_l(e));return va(n,n,x(i.lng)),_a(n,n,x(i.lat)),ya(n,n,[t._pixelsPerMercatorPixel,t._pixelsPerMercatorPixel,1]),Float32Array.from(n)}pointCoordinate(t,e,i,n){return ml(t,e,i,!0)||new Kl(0,0)}pointCoordinate3D(t,e,i){const n=this.pointCoordinate(t,e,i,0);return[n.x,n.y,n.z]}isPointAboveHorizon(t,e){return!ml(t,e.x,e.y,!1)}farthestPixelDistance(t){const e=function(t,e){const i=t.cameraToCenterDistance,n=t._centerAltitude*e,r=t._camera,o=t._camera.forward(),s=Oa([],Pa([],o,-i),[0,0,n]),a=t.worldSize/(2*Math.PI),l=[0,0,-a],c=t.width/t.height,u=Math.tan(t.fovAboveCenter),h=Pa([],r.up(),u),d=Pa([],r.right(),u*c),f=La([],Oa([],Oa([],o,h),d)),p=[];let m;if(new el(s,f).closestPointOnSphere(l,a,p)){const e=Oa([],p,l),i=Na([],e,s);m=Math.cos(t.fovAboveCenter)*Sa(i)}else{const t=Na([],s,l),e=Na([],l,s);La(e,e);const i=Sa(t)-a;m=Math.sqrt(i*(i+2*a));const n=Math.acos(m/(a+i))-Math.acos(Ra(o,e));m*=Math.cos(n)}return 1.01*m}(t,this.pixelsPerMeter(t.center.lat,t.worldSize)),i=Dl(t.zoom);if(i>0){const n=If(t,Wl(1,t.center.lat)*t.worldSize),r=t.worldSize/(2*Math.PI),o=Math.max(t.width,t.height)/t.worldSize*Math.PI;return Mi(e,n+r*(1-Math.cos(o)),Math.pow(i,10))}return e}upVector(t,e,i){return Ol(e,i,t,1)}upVectorScale(t){return{metersToTile:pl(Al(_l(t)))}}}function Kf(t){const e=t.parallels,i=!!e&&Math.abs(e[0]+e[1])<.01;
vendor: 14,937 bytes, line 39
39switch(t.name){case"mercator":return new Gf(t);case"equirectangular":return new Vf(t);case"naturalEarth":return new Zf(t);case"equalEarth":return new Nf(t);case"winkelTripel":return new Xf(t);case"albers":return i?new Qf(t):new Lf(t);case"lambertConformalConic":return i?new Qf(t):new qf(t);case"globe":return new Yf(t)}throw new Error("Invalid projection name: "+t.name)}const Jf=Zu.types,tp=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function ep(t,e,i,n,r,o,s,a,l,c,u,h,d){const f=a?Math.min(Tf,Math.round(a[0])):0,p=a?Math.min(Tf,Math.round(a[1])):0;t.emplaceBack(e,i,Math.round(32*n),Math.round(32*r),o,s,(f<<1)+(l?1:0),p,16*c,16*u,256*h,256*d)}function ip(t,e,i,n,r,o,s){t.emplaceBack(e,i,n,r,o,s)}function np(t,e,i,n,r){t.emplaceBack(e,i,n,r),t.emplaceBack(e,i,n,r),t.emplaceBack(e,i,n,r),t.emplaceBack(e,i,n,r)}function rp(t){for(const e of t.sections)if(lo(e.text))return!0;return!1}class op{constructor(t){this.layoutVertexArray=new Xo,this.indexArray=new ns,this.programConfigurations=t,this.segments=new sa,this.dynamicLayoutVertexArray=new Go,this.opacityVertexArray=new Yo,this.placedSymbolArray=new ms,this.globeExtVertexArray=new Qo}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length}upload(t,e,i,n){this.isEmpty()||(i&&(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Mh.members),this.indexBuffer=t.createIndexBuffer(this.indexArray,e),this.dynamicLayoutVertexBuffer=t.createVertexBuffer(this.dynamicLayoutVertexArray,Dh.members,!0),this.opacityVertexBuffer=t.createVertexBuffer(this.opacityVertexArray,tp,!0),this.globeExtVertexArray.length>0&&(this.globeExtVertexBuffer=t.createVertexBuffer(this.globeExtVertexArray,Ph.members,!0)),this.opacityVertexBuffer.itemSize=1),(i||n)&&this.programConfigurations.upload(t))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy())}}Xr(op,"SymbolBuffers");class sp{constructor(t,e,i){this.layoutVertexArray=new t,this.layoutAttributes=e,this.indexArray=new i,this.segments=new sa,this.collisionVertexArray=new es,this.collisionVertexArrayExt=new is}upload(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=t.createVertexBuffer(this.collisionVertexArray,Lh.members,!0),this.collisionVertexBufferExt=t.createVertexBuffer(this.collisionVertexArrayExt,Rh.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy(),this.collisionVertexBufferExt.destroy())}}Xr(sp,"CollisionBuffers");class ap{constructor(t){this.collisionBoxArray=t.collisionBoxArray,this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(t=>t.id),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.fullyClipped=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=fa([]),this.placementViewportMatrix=fa([]);const e=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Nh(this.zoom,e["text-size"]),this.iconSizeData=Nh(this.zoom,e["icon-size"]);const i=this.layers[0].layout,n=i.get("symbol-sort-key"),r=i.get("symbol-z-order");this.canOverlap=i.get("text-allow-overlap")||i.get("icon-allow-overlap")||i.get("text-ignore-placement")||i.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==r&&void 0!==n.constantOr(1),this.sortFeaturesByY=("viewport-y"===r||"auto"===r&&!this.sortFeaturesByKey)&&this.canOverlap,this.writingModes=i.get("text-writing-mode").map(t=>kd[t]),this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id),this.sourceID=t.sourceID,this.projection=t.projection}createArrays(){this.text=new op(new Qs(this.layers,this.zoom,t=>/^text/.test(t))),this.icon=new op(new Qs(this.layers,this.zoom,t=>/^icon/.test(t))),this.glyphOffsetArray=new _s,this.lineVertexArray=new vs,this.symbolInstances=new ys}calculateGlyphDependencies(t,e,i,n,r){for(let o=0;o<t.length;o++)if(e[t.charCodeAt(o)]=!0,n&&r){const i=Gh[t.charAt(o)];i&&(e[i.charCodeAt(0)]=!0)}}populate(t,e,i,n){const r=this.layers[0],o=r.layout,s="globe"===this.projection.name,a=o.get("text-font"),l=o.get("text-field"),c=o.get("icon-image"),u=("constant"!==l.value.kind||l.value.value instanceof Le&&!l.value.value.isEmpty()||l.value.value.toString().length>0)&&("constant"!==a.value.kind||a.value.value.length>0),h="constant"!==c.value.kind||!!c.value.value||Object.keys(c.parameters).length>0,d=o.get("symbol-sort-key");if(this.features=[],!u&&!h)return;const f=e.iconDependencies,p=e.glyphDependencies,m=e.availableImages,g=new wo(this.zoom);for(const{feature:y,id:_,index:v,sourceLayerIndex:b}of t){const t=r._featureFilter.needGeometry,e=ac(y,t);if(!r._featureFilter.filter(g,e,i))continue;if(t||(e.geometry=sc(y,i,n)),s&&1!==y.type&&i.z<=5){const t=e.geometry,n=.98078528056,r=(t,e)=>Ra(Ol(t.x,t.y,i,1),Ol(e.x,e.y,i,1))<n;for(let e=0;e<t.length;e++)t[e]=ic(t[e],r)}let l,c;if(u){const t=r.getValueAndResolveTokens("text-field",e,i,m),n=Le.factory(t);rp(n)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===vo()||this.hasRTLText&&xo.isParsed())&&(l=qh(n,r,e))}if(h){const t=r.getValueAndResolveTokens("icon-image",e,i,m);c=t instanceof Re?t:Re.fromString(t)}if(!l&&!c)continue;const x=this.sortFeaturesByKey?d.evaluate(e,{},i):void 0;if(this.features.push({id:_,text:l,icon:c,index:v,sourceLayerIndex:b,geometry:e.geometry,properties:y.properties,type:Jf[y.type],sortKey:x}),c&&(f[c.name]=!0),l){const t=a.evaluate(e,{},i).join(","),n="map"===o.get("text-rotation-alignment")&&"point"!==o.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(kd.vertical)>=0;for(const e of l.sections)if(e.image)f[e.image.name]=!0;else{const i=eo(l.toString()),r=e.fontStack||t,o=p[r]=p[r]||{};this.calculateGlyphDependencies(e.text,o,n,this.allowVerticalPlacement,i)}}}"line"===o.get("symbol-placement")&&(this.features=function(t){const e={},i={},n=[];let r=0;function o(e){n.push(t[e]),r++}function s(t,e,r){const o=i[t];return delete i[t],i[e]=o,n[o].geometry[0].pop(),n[o].geometry[0]=n[o].geometry[0].concat(r[0]),o}function a(t,i,r){const o=e[i];return delete e[i],e[t]=o,n[o].geometry[0].shift(),n[o].geometry[0]=r[0].concat(n[o].geometry[0]),o}function l(t,e,i){const n=i?e[0][e[0].length-1]:e[0][0];return`${t}:${n.x}:${n.y}`}for(let c=0;c<t.length;c++){const u=t[c],h=u.geometry,d=u.text?u.text.toString():null;if(!d){o(c);continue}const f=l(d,h),p=l(d,h,!0);if(f in i&&p in e&&i[f]!==e[p]){const t=a(f,p,h),r=s(f,p,n[t].geometry);delete e[f],delete i[p],i[l(d,n[r].geometry,!0)]=r,n[t].geometry=null}else f in i?s(f,p,h):p in e?a(f,p,h):(o(c),e[f]=r-1,i[p]=r-1)}return n.filter(t=>t.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((t,e)=>t.sortKey-e.sortKey)}update(t,e,i,n){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(t,e,this.layers,i,n),this.icon.programConfigurations.updatePaintArrays(t,e,this.layers,i,n))}isEmpty(){return 0===this.symbolInstances.length&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(t){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(t),this.iconCollisionBox.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}getProjection(){return this.projectionInstance||(this.projectionInstance=Kf(this.projection)),this.projectionInstance}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(t,e){const i=this.lineVertexArray.length;if(void 0!==t.segment)for(const{x:n,y:r}of e)this.lineVertexArray.emplaceBack(n,r);return{lineStartIndex:i,lineLength:this.lineVertexArray.length-i}}addSymbols(t,e,i,n,r,o,s,a,l,c,u,h,d,f){const p=t.indexArray,m=t.layoutVertexArray,g=t.globeExtVertexArray,y=t.segments.prepareSegment(4*e.length,m,p,this.canOverlap?o.sortKey:void 0),_=this.glyphOffsetArray.length,v=y.vertexLength,b=this.allowVerticalPlacement&&s===kd.vertical?Math.PI/2:0,x=o.text&&o.text.sections;for(let E=0;E<e.length;E++){const{tl:n,tr:r,bl:s,br:c,tex:u,pixelOffsetTL:h,pixelOffsetBR:_,minFontScaleX:v,minFontScaleY:w,glyphOffset:T,isSDF:S,sectionIndex:k}=e[E],O=y.vertexLength,A=T[1];if(ep(m,l.x,l.y,n.x,A+n.y,u.x,u.y,i,S,h.x,h.y,v,w),ep(m,l.x,l.y,r.x,A+r.y,u.x+u.w,u.y,i,S,_.x,h.y,v,w),ep(m,l.x,l.y,s.x,A+s.y,u.x,u.y+u.h,i,S,h.x,_.y,v,w),ep(m,l.x,l.y,c.x,A+c.y,u.x+u.w,u.y+u.h,i,S,_.x,_.y,v,w),a){const{x:e,y:i,z:n}=a.anchor,[r,o,s]=a.up;ip(g,e,i,n,r,o,s),ip(g,e,i,n,r,o,s),ip(g,e,i,n,r,o,s),ip(g,e,i,n,r,o,s),np(t.dynamicLayoutVertexArray,e,i,n,b)}else np(t.dynamicLayoutVertexArray,l.x,l.y,l.z,b);p.emplaceBack(O,O+1,O+2),p.emplaceBack(O+1,O+2,O+3),y.vertexLength+=4,y.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(T[0]),E!==e.length-1&&k===e[E+1].sectionIndex||t.programConfigurations.populatePaintArrays(m.length,o,o.index,{},d,f,x&&x[k])}const w=a?a.anchor:l;t.placedSymbolArray.emplaceBack(w.x,w.y,w.z,l.x,l.y,_,this.glyphOffsetArray.length-_,v,c,u,l.segment,i?i[0]:0,i?i[1]:0,n[0],n[1],s,0,!1,0,h,0)}_commitLayoutVertex(t,e,i,n,r,o,s){t.emplaceBack(e,i,n,r,o,Math.round(s.x),Math.round(s.y))}_addCollisionDebugVertices(t,e,i,n,r,o,s){const a=i.segments.prepareSegment(4,i.layoutVertexArray,i.indexArray),l=a.vertexLength,c=s.tileAnchorX,u=s.tileAnchorY;for(let d=0;d<4;d++)i.collisionVertexArray.emplaceBack(0,0,0,0);i.collisionVertexArrayExt.emplaceBack(e,-t.padding,-t.padding),i.collisionVertexArrayExt.emplaceBack(e,t.padding,-t.padding),i.collisionVertexArrayExt.emplaceBack(e,t.padding,t.padding),i.collisionVertexArrayExt.emplaceBack(e,-t.padding,t.padding),this._commitLayoutVertex(i.layoutVertexArray,n,r,o,c,u,new _(t.x1,t.y1)),this._commitLayoutVertex(i.layoutVertexArray,n,r,o,c,u,new _(t.x2,t.y1)),this._commitLayoutVertex(i.layoutVertexArray,n,r,o,c,u,new _(t.x2,t.y2)),this._commitLayoutVertex(i.layoutVertexArray,n,r,o,c,u,new _(t.x1,t.y2)),a.vertexLength+=4;const h=i.indexArray;h.emplaceBack(l,l+1),h.emplaceBack(l+1,l+2),h.emplaceBack(l+2,l+3),h.emplaceBack(l+3,l),a.primitiveLength+=4}_addTextDebugCollisionBoxes(t,e,i,n,r,o){for(let s=n;s<r;s++){const n=i.get(s),r=this.getSymbolInstanceTextSize(t,o,e,s);this._addCollisionDebugVertices(n,r,this.textCollisionBox,n.projectedAnchorX,n.projectedAnchorY,n.projectedAnchorZ,o)}}_addIconDebugCollisionBoxes(t,e,i,n,r,o){for(let s=n;s<r;s++){const n=i.get(s),r=this.getSymbolInstanceIconSize(t,e,o.placedIconSymbolIndex);this._addCollisionDebugVertices(n,r,this.iconCollisionBox,n.projectedAnchorX,n.projectedAnchorY,n.projectedAnchorZ,o)}}generateCollisionDebugBuffers(t,e){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new sp(Jo,zh.members,cs),this.iconCollisionBox=new sp(Jo,zh.members,cs);const i=$h(this.iconSizeData,t),n=$h(this.textSizeData,t);for(let r=0;r<this.symbolInstances.length;r++){const o=this.symbolInstances.get(r);this._addTextDebugCollisionBoxes(n,t,e,o.textBoxStartIndex,o.textBoxEndIndex,o),this._addTextDebugCollisionBoxes(n,t,e,o.verticalTextBoxStartIndex,o.verticalTextBoxEndIndex,o),this._addIconDebugCollisionBoxes(i,t,e,o.iconBoxStartIndex,o.iconBoxEndIndex,o),this._addIconDebugCollisionBoxes(i,t,e,o.verticalIconBoxStartIndex,o.verticalIconBoxEndIndex,o)}}getSymbolInstanceTextSize(t,e,i,n){const r=this.text.placedSymbolArray.get(e.rightJustifiedTextSymbolIndex>=0?e.rightJustifiedTextSymbolIndex:e.centerJustifiedTextSymbolIndex>=0?e.centerJustifiedTextSymbolIndex:e.leftJustifiedTextSymbolIndex>=0?e.leftJustifiedTextSymbolIndex:e.verticalPlacedTextSymbolIndex>=0?e.verticalPlacedTextSymbolIndex:n),o=Vh(this.textSizeData,t,r)/Bh;return this.tilePixelRatio*o}getSymbolInstanceIconSize(t,e,i){const n=this.icon.placedSymbolArray.get(i),r=Vh(this.iconSizeData,t,n);return this.tilePixelRatio*r}_commitDebugCollisionVertexUpdate(t,e,i){t.emplaceBack(e,-i,-i),t.emplaceBack(e,i,-i),t.emplaceBack(e,i,i),t.emplaceBack(e,-i,i)}_updateTextDebugCollisionBoxes(t,e,i,n,r,o){for(let s=n;s<r;s++){const n=i.get(s),r=this.getSymbolInstanceTextSize(t,o,e,s);this._commitDebugCollisionVertexUpdate(this.textCollisionBox.collisionVertexArrayExt,r,n.padding)}}_updateIconDebugCollisionBoxes(t,e,i,n,r,o){for(let s=n;s<r;s++){const n=i.get(s),r=this.getSymbolInstanceIconSize(t,e,o);this._commitDebugCollisionVertexUpdate(this.iconCollisionBox.collisionVertexArrayExt,r,n.padding)}}updateCollisionDebugBuffers(t,e){if(!this.hasDebugData())return;this.hasTextCollisionBoxData()&&this.textCollisionBox.collisionVertexArrayExt.clear(),this.hasIconCollisionBoxData()&&this.iconCollisionBox.collisionVertexArrayExt.clear();const i=$h(this.iconSizeData,t),n=$h(this.textSizeData,t);for(let r=0;r<this.symbolInstances.length;r++){const o=this.symbolInstances.get(r);this._updateTextDebugCollisionBoxes(n,t,e,o.textBoxStartIndex,o.textBoxEndIndex,o),this._updateTextDebugCollisionBoxes(n,t,e,o.verticalTextBoxStartIndex,o.verticalTextBoxEndIndex,o),this._updateIconDebugCollisionBoxes(i,t,e,o.iconBoxStartIndex,o.iconBoxEndIndex,o.placedIconSymbolIndex),this._updateIconDebugCollisionBoxes(i,t,e,o.verticalIconBoxStartIndex,o.verticalIconBoxEndIndex,o.placedIconSymbolIndex)}this.hasTextCollisionBoxData()&&this.textCollisionBox.collisionVertexBufferExt&&this.textCollisionBox.collisionVertexBufferExt.updateData(this.textCollisionBox.collisionVertexArrayExt),this.hasIconCollisionBoxData()&&this.iconCollisionBox.collisionVertexBufferExt&&this.iconCollisionBox.collisionVertexBufferExt.updateData(this.iconCollisionBox.collisionVertexArrayExt)}_deserializeCollisionBoxesForSymbol(t,e,i,n,r,o,s,a,l){const c={};if(e<i){const{x1:i,y1:n,x2:r,y2:o,padding:s,projectedAnchorX:a,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:d,featureIndex:f}=t.get(e);c.textBox={x1:i,y1:n,x2:r,y2:o,padding:s,projectedAnchorX:a,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:d},c.textFeatureIndex=f}if(n<r){const{x1:e,y1:i,x2:r,y2:o,padding:s,projectedAnchorX:a,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:d,featureIndex:f}=t.get(n);c.verticalTextBox={x1:e,y1:i,x2:r,y2:o,padding:s,projectedAnchorX:a,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:d},c.verticalTextFeatureIndex=f}
vendor: 5,983 bytes, line 39
39if(o<s){const{x1:e,y1:i,x2:n,y2:r,padding:s,projectedAnchorX:a,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:d,featureIndex:f}=t.get(o);c.iconBox={x1:e,y1:i,x2:n,y2:r,padding:s,projectedAnchorX:a,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:d},c.iconFeatureIndex=f}if(a<l){const{x1:e,y1:i,x2:n,y2:r,padding:o,projectedAnchorX:s,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:d,featureIndex:f}=t.get(a);c.verticalIconBox={x1:e,y1:i,x2:n,y2:r,padding:o,projectedAnchorX:s,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:d},c.verticalIconFeatureIndex=f}return c}deserializeCollisionBoxes(t){this.collisionArrays=[];for(let e=0;e<this.symbolInstances.length;e++){const i=this.symbolInstances.get(e);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(t,i.textBoxStartIndex,i.textBoxEndIndex,i.verticalTextBoxStartIndex,i.verticalTextBoxEndIndex,i.iconBoxStartIndex,i.iconBoxEndIndex,i.verticalIconBoxStartIndex,i.verticalIconBoxEndIndex))}}hasTextData(){return this.text.segments.get().length>0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(t,e){const i=t.placedSymbolArray.get(e),n=i.vertexStartIndex+4*i.numGlyphs;for(let r=i.vertexStartIndex;r<n;r+=4)t.indexArray.emplaceBack(r,r+1,r+2),t.indexArray.emplaceBack(r+1,r+2,r+3)}getSortedSymbolIndexes(t){if(this.sortedAngle===t&&void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;const e=Math.sin(t),i=Math.cos(t),n=[],r=[],o=[];for(let s=0;s<this.symbolInstances.length;++s){o.push(s);const t=this.symbolInstances.get(s);n.push(0|Math.round(e*t.tileAnchorX+i*t.tileAnchorY)),r.push(t.featureIndex)}return o.sort((t,e)=>n[t]-n[e]||r[e]-r[t]),o}addToSortKeyRanges(t,e){const i=this.sortKeyRanges[this.sortKeyRanges.length-1];i&&i.sortKey===e?i.symbolInstanceEnd=t+1:this.sortKeyRanges.push({sortKey:e,symbolInstanceStart:t,symbolInstanceEnd:t+1})}sortFeatures(t){if(this.sortFeaturesByY&&this.sortedAngle!==t&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(const t of this.symbolInstanceIndexes){const e=this.symbolInstances.get(t);this.featureSortOrder.push(e.featureIndex);const{rightJustifiedTextSymbolIndex:i,centerJustifiedTextSymbolIndex:n,leftJustifiedTextSymbolIndex:r,verticalPlacedTextSymbolIndex:o,placedIconSymbolIndex:s,verticalPlacedIconSymbolIndex:a}=e;i>=0&&this.addIndicesForPlacedSymbol(this.text,i),n>=0&&n!==i&&this.addIndicesForPlacedSymbol(this.text,n),r>=0&&r!==n&&r!==i&&this.addIndicesForPlacedSymbol(this.text,r),o>=0&&this.addIndicesForPlacedSymbol(this.text,o),s>=0&&this.addIndicesForPlacedSymbol(this.icon,s),a>=0&&this.addIndicesForPlacedSymbol(this.icon,a)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}Xr(ap,"SymbolBucket",{omit:["layers","collisionBoxArray","features","compareText"]}),ap.MAX_GLYPHS=65535,ap.addDynamicAttributes=np;const lp=new Lo({"symbol-placement":new Mo(te.layout_symbol["symbol-placement"]),"symbol-spacing":new Mo(te.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Mo(te.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Po(te.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Mo(te.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Mo(te.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Mo(te.layout_symbol["icon-ignore-placement"]),"icon-optional":new Mo(te.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Mo(te.layout_symbol["icon-rotation-alignment"]),"icon-size":new Po(te.layout_symbol["icon-size"]),"icon-text-fit":new Mo(te.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Mo(te.layout_symbol["icon-text-fit-padding"]),"icon-image":new Po(te.layout_symbol["icon-image"]),"icon-rotate":new Po(te.layout_symbol["icon-rotate"]),"icon-padding":new Mo(te.layout_symbol["icon-padding"]),"icon-keep-upright":new Mo(te.layout_symbol["icon-keep-upright"]),"icon-offset":new Po(te.layout_symbol["icon-offset"]),"icon-anchor":new Po(te.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Mo(te.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Mo(te.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Mo(te.layout_symbol["text-rotation-alignment"]),"text-field":new Po(te.layout_symbol["text-field"]),"text-font":new Po(te.layout_symbol["text-font"]),"text-size":new Po(te.layout_symbol["text-size"]),"text-max-width":new Po(te.layout_symbol["text-max-width"]),"text-line-height":new Po(te.layout_symbol["text-line-height"]),"text-letter-spacing":new Po(te.layout_symbol["text-letter-spacing"]),"text-justify":new Po(te.layout_symbol["text-justify"]),"text-radial-offset":new Po(te.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Mo(te.layout_symbol["text-variable-anchor"]),"text-anchor":new Po(te.layout_symbol["text-anchor"]),"text-max-angle":new Mo(te.layout_symbol["text-max-angle"]),"text-writing-mode":new Mo(te.layout_symbol["text-writing-mode"]),"text-rotate":new Po(te.layout_symbol["text-rotate"]),"text-padding":new Mo(te.layout_symbol["text-padding"]),"text-keep-upright":new Mo(te.layout_symbol["text-keep-upright"]),"text-transform":new Po(te.layout_symbol["text-transform"]),"text-offset":new Po(te.layout_symbol["text-offset"]),"text-allow-overlap":new Mo(te.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Mo(te.layout_symbol["text-ignore-placement"]),"text-optional":new Mo(te.layout_symbol["text-optional"])});
vendor: 26,966 bytes, line 39
39var cp={paint:new Lo({"icon-opacity":new Po(te.paint_symbol["icon-opacity"]),"icon-color":new Po(te.paint_symbol["icon-color"]),"icon-halo-color":new Po(te.paint_symbol["icon-halo-color"]),"icon-halo-width":new Po(te.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Po(te.paint_symbol["icon-halo-blur"]),"icon-translate":new Mo(te.paint_symbol["icon-translate"]),"icon-translate-anchor":new Mo(te.paint_symbol["icon-translate-anchor"]),"text-opacity":new Po(te.paint_symbol["text-opacity"]),"text-color":new Po(te.paint_symbol["text-color"],{runtimeType:de,getOverride:t=>t.textColor,hasOverride:t=>!!t.textColor}),"text-halo-color":new Po(te.paint_symbol["text-halo-color"]),"text-halo-width":new Po(te.paint_symbol["text-halo-width"]),"text-halo-blur":new Po(te.paint_symbol["text-halo-blur"]),"text-translate":new Mo(te.paint_symbol["text-translate"]),"text-translate-anchor":new Mo(te.paint_symbol["text-translate-anchor"])}),layout:lp};class up{constructor(t){this.type=t.property.overrides?t.property.overrides.runtimeType:le,this.defaultValue=t}evaluate(t){if(t.formattedSection){const e=this.defaultValue.property.overrides;if(e&&e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&&t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default}eachChild(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}Xr(up,"FormatSectionOverride",{omit:["defaultValue"]});class hp extends na{constructor(t){super(t,cp)}recalculate(t,e){super.recalculate(t,e),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment"));const i=this.layout.get("text-writing-mode");if(i){const t=[];for(const e of i)t.indexOf(e)<0&&t.push(e);this.layout._values["text-writing-mode"]=t}else this.layout._values["text-writing-mode"]="point"===this.layout.get("symbol-placement")?["horizontal"]:["horizontal","vertical"];this._setPaintOverrides()}getValueAndResolveTokens(t,e,i,n){const r=this.layout.get(t).evaluate(e,{},i,n),o=this._unevaluatedLayout._values[t];return o.isDataDriven()||Xn(o.value)||!r?r:function(t,e){return e.replace(/{([^{}]+)}/g,(e,i)=>i in t?String(t[i]):"")}(e.properties,r)}createBucket(t){return new ap(t)}queryRadius(){return 0}queryIntersectsFeature(){return!1}_setPaintOverrides(){for(const t of cp.paint.overridableProperties){if(!hp.hasPaintOverride(this.layout,t))continue;const e=this.paint.get(t),i=new up(e),n=new Hn(i,e.property.specification);let r=null;r="constant"===e.value.kind||"source"===e.value.kind?new Yn("source",n):new Kn("composite",n,e.value.zoomStops,e.value._interpolationType),this.paint._values[t]=new Co(e.property,r,e.parameters)}}_handleOverridablePaintPropertyUpdate(t,e,i){return!(!this.layout||e.isDataDriven()||i.isDataDriven())&&hp.hasPaintOverride(this.layout,t)}static hasPaintOverride(t,e){const i=t.get("text-field"),n=cp.paint.properties[e];let r=!1;const o=t=>{for(const e of t)if(n.overrides&&n.overrides.hasOverride(e))return void(r=!0)};if("constant"===i.value.kind&&i.value.value instanceof Le)o(i.value.value.sections);else if("source"===i.value.kind){const t=e=>{r||(e instanceof Ve&&Be(e.value)===ge?o(e.value.sections):e instanceof We?o(e.sections):e.eachChild(t))},e=i.value;e._styleExpression&&t(e._styleExpression.expression)}return r}getProgramConfiguration(t){return new Xs(this,t)}}var dp={paint:new Lo({"background-color":new Mo(te.paint_background["background-color"]),"background-pattern":new Mo(te.paint_background["background-pattern"]),"background-opacity":new Mo(te.paint_background["background-opacity"])})},fp={paint:new Lo({"raster-opacity":new Mo(te.paint_raster["raster-opacity"]),"raster-hue-rotate":new Mo(te.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new Mo(te.paint_raster["raster-brightness-min"]),"raster-brightness-max":new Mo(te.paint_raster["raster-brightness-max"]),"raster-saturation":new Mo(te.paint_raster["raster-saturation"]),"raster-contrast":new Mo(te.paint_raster["raster-contrast"]),"raster-resampling":new Mo(te.paint_raster["raster-resampling"]),"raster-fade-duration":new Mo(te.paint_raster["raster-fade-duration"])})};class pp extends na{constructor(t){super(t,{}),this.implementation=t}is3D(){return"3d"===this.implementation.renderingMode}hasOffscreenPass(){return void 0!==this.implementation.prerender}isLayerDraped(){return void 0!==this.implementation.renderToTile}shouldRedrape(){return!!this.implementation.shouldRerenderTiles&&this.implementation.shouldRerenderTiles()}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){}onAdd(t){this.implementation.onAdd&&this.implementation.onAdd(t,t.painter.context.gl)}onRemove(t){this.implementation.onRemove&&this.implementation.onRemove(t,t.painter.context.gl)}}var mp={paint:new Lo({"sky-type":new Mo(te.paint_sky["sky-type"]),"sky-atmosphere-sun":new Mo(te.paint_sky["sky-atmosphere-sun"]),"sky-atmosphere-sun-intensity":new Mo(te.paint_sky["sky-atmosphere-sun-intensity"]),"sky-gradient-center":new Mo(te.paint_sky["sky-gradient-center"]),"sky-gradient-radius":new Mo(te.paint_sky["sky-gradient-radius"]),"sky-gradient":new Do(te.paint_sky["sky-gradient"]),"sky-atmosphere-halo-color":new Mo(te.paint_sky["sky-atmosphere-halo-color"]),"sky-atmosphere-color":new Mo(te.paint_sky["sky-atmosphere-color"]),"sky-opacity":new Mo(te.paint_sky["sky-opacity"])})};function gp(t,e,i){const n=[0,0,1],r=Za([]);return Xa(r,r,i?-x(t)+Math.PI:x(t)),Ha(r,r,-x(e)),Ba(n,n,r),La(n,n)}const yp={circle:class extends na{constructor(t){super(t,Ac)}createBucket(t){return new uc(t)}queryRadius(t){const e=t;return Ec("circle-radius",this,e)+Ec("circle-stroke-width",this,e)+Tc(this.paint.get("circle-translate"))}queryIntersectsFeature(t,e,i,n,r,o,s,a){const l=kc(this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),o.angle,t.pixelToTileUnitsFactor),c=this.paint.get("circle-radius").evaluate(e,i)+this.paint.get("circle-stroke-width").evaluate(e,i);return Cc(t,n,o,s,a,"map"===this.paint.get("circle-pitch-alignment"),"map"===this.paint.get("circle-pitch-scale"),l,c)}getProgramIds(){return["circle"]}getProgramConfiguration(t){return new Xs(this,t)}},heatmap:class extends na{createBucket(t){return new Lc(t)}constructor(t){super(t,Nc),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(t){"heatmap-color"===t&&this._updateColorRamp()}_updateColorRamp(){this.colorRamp=Vc({expression:this._transitionablePaint._values["heatmap-color"].value.expression,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)}queryRadius(t){return Ec("heatmap-radius",this,t)}queryIntersectsFeature(t,e,i,n,r,o,s,a){const l=this.paint.get("heatmap-radius").evaluate(e,i);return Cc(t,n,o,s,a,!0,!0,new _(0,0),l)}hasOffscreenPass(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility}getProgramIds(){return["heatmap","heatmapTexture"]}getProgramConfiguration(t){return new Xs(this,t)}},hillshade:class extends na{constructor(t){super(t,$c)}hasOffscreenPass(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility}getProgramIds(){return["hillshade","hillshadePrepare"]}},fill:class extends na{constructor(t){super(t,Cu)}getProgramIds(){const t=this.paint.get("fill-pattern"),e=t&&t.constantOr(1),i=[e?"fillPattern":"fill"];return this.paint.get("fill-antialias")&&i.push(e&&!this.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline"),i}getProgramConfiguration(t){return new Xs(this,t)}recalculate(t,e){super.recalculate(t,e);const i=this.paint._values["fill-outline-color"];"constant"===i.value.kind&&void 0===i.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(t){return new Ou(t)}queryRadius(){return Tc(this.paint.get("fill-translate"))}queryIntersectsFeature(t,e,i,n,r,o){return!t.queryGeometry.isAboveHorizon&&fc(Sc(t.tilespaceGeometry,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),o.angle,t.pixelToTileUnitsFactor),n)}isTileClipped(){return!0}},"fill-extrusion":class extends na{constructor(t){super(t,uh)}createBucket(t){return new th(t)}queryRadius(){return Tc(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}getProgramIds(){return[this.paint.get("fill-extrusion-pattern").constantOr(1)?"fillExtrusionPattern":"fillExtrusion"]}getProgramConfiguration(t){return new Xs(this,t)}queryIntersectsFeature(t,e,i,n,r,o,s,a,l){const c=kc(this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),o.angle,t.pixelToTileUnitsFactor),u=this.paint.get("fill-extrusion-height").evaluate(e,i),h=this.paint.get("fill-extrusion-base").evaluate(e,i),d=[0,0],f=a&&o.elevation,p=o.elevation?o.elevation.exaggeration():1,m=t.tile.getBucket(this);if(f&&m instanceof th){const t=m.centroidVertexArray,e=l+1;e<t.length&&(d[0]=t.geta_centroid_pos0(e),d[1]=t.geta_centroid_pos1(e))}if(0===d[0]&&1===d[1])return!1;"globe"===o.projection.name&&(n=lh([n],[new _(0,0),new _(aa,aa)],t.tileID.canonical).map(t=>t.polygon).flat());const g=f?a:null,[y,v]=function(t,e,i,n,r,o,s,a,l,c,u){return"globe"===t.projection.name?function(t,e,i,n,r,o,s,a,l,c,u){const h=[],d=[],f=t.projection.upVectorScale(u,t.center.lat,t.worldSize).metersToTile,p=[0,0,0,1],m=[0,0,0,1],g=(t,e,i,n)=>{t[0]=e,t[1]=i,t[2]=n,t[3]=1},y=ah();i>0&&(i+=y),n+=y;for(const _ of e){const e=[],y=[];for(const h of _){const d=h.x+r.x,_=h.y+r.y,v=t.projection.projectTilePoint(d,_,u),b=t.projection.upVector(u,h.x,h.y);let x=i,w=n;if(s){const t=vh(d,_,i,n,s,a,l,c);x+=t.base,w+=t.top}0!==i?g(p,v.x+b[0]*f*x,v.y+b[1]*f*x,v.z+b[2]*f*x):g(p,v.x,v.y,v.z),g(m,v.x+b[0]*f*w,v.y+b[1]*f*w,v.z+b[2]*f*w),ja(p,p,o),ja(m,m,o),e.push(new gh(p[0],p[1],p[2])),y.push(new gh(m[0],m[1],m[2]))}h.push(e),d.push(y)}return[h,d]}(t,e,i,n,r,o,s,a,l,c,u):s?function(t,e,i,n,r,o,s,a,l){const c=[],u=[],h=[0,0,0,1];for(const d of t){const t=[],f=[];for(const c of d){const u=c.x+n.x,d=c.y+n.y,p=vh(u,d,e,i,o,s,a,l);h[0]=u,h[1]=d,h[2]=p.base,h[3]=1,Ga(h,h,r),h[3]=Math.max(h[3],1e-5);const m=new gh(h[0]/h[3],h[1]/h[3],h[2]/h[3]);h[0]=u,h[1]=d,h[2]=p.top,h[3]=1,Ga(h,h,r),h[3]=Math.max(h[3],1e-5);const g=new gh(h[0]/h[3],h[1]/h[3],h[2]/h[3]);t.push(m),f.push(g)}c.push(t),u.push(f)}return[c,u]}(e,i,n,r,o,s,a,l,c):function(t,e,i,n,r){const o=[],s=[],a=r[8]*e,l=r[9]*e,c=r[10]*e,u=r[11]*e,h=r[8]*i,d=r[9]*i,f=r[10]*i,p=r[11]*i;for(const m of t){const t=[],e=[];for(const i of m){const o=i.x+n.x,s=i.y+n.y,m=r[0]*o+r[4]*s+r[12],g=r[1]*o+r[5]*s+r[13],y=r[2]*o+r[6]*s+r[14],_=r[3]*o+r[7]*s+r[15],v=m+a,b=g+l,x=y+c,w=Math.max(_+u,1e-5),E=m+h,T=g+d,S=y+f,k=Math.max(_+p,1e-5);t.push(new gh(v/w,b/w,x/w)),e.push(new gh(E/k,T/k,S/k))}o.push(t),s.push(e)}return[o,s]}(e,i,n,r,o)}(o,n,h,u,c,s,g,d,p,o.center.lat,t.tileID.canonical),b=t.queryGeometry;return function(t,e,i){let n=1/0;fc(i,e)&&(n=_h(i,e[0]));for(let r=0;r<e.length;r++){const o=e[r],s=t[r];for(let t=0;t<o.length-1;t++){const e=o[t],r=[e,o[t+1],s[t+1],s[t],e];hc(i,r)&&(n=Math.min(n,_h(i,r)))}}return n!==1/0&&n}(y,v,b.isPointQuery()?b.screenBounds:b.screenGeometry)}},line:class extends na{constructor(t){super(t,Ah),this.gradientVersion=0}_handleSpecialPaintPropertyUpdate(t){if("line-gradient"===t){const t=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=t._styleExpression&&t._styleExpression.expression instanceof Ii,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}widthExpression(){return this._transitionablePaint._values["line-width"].value.expression}recalculate(t,e){super.recalculate(t,e),this.paint._values["line-floorwidth"]=Ch.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,t)}createBucket(t){return new kh(t)}getProgramIds(){return[this.paint.get("line-pattern").constantOr(1)?"linePattern":"line"]}getProgramConfiguration(t){return new Xs(this,t)}queryRadius(t){const e=t,i=Ih(Ec("line-width",this,e),Ec("line-gap-width",this,e)),n=Ec("line-offset",this,e);return i/2+Math.abs(n)+Tc(this.paint.get("line-translate"))}queryIntersectsFeature(t,e,i,n,r,o){if(t.queryGeometry.isAboveHorizon)return!1;const s=Sc(t.tilespaceGeometry,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),o.angle,t.pixelToTileUnitsFactor),a=t.pixelToTileUnitsFactor/2*Ih(this.paint.get("line-width").evaluate(e,i),this.paint.get("line-gap-width").evaluate(e,i)),l=this.paint.get("line-offset").evaluate(e,i);return l&&(n=function(t,e){const i=[],n=new _(0,0);for(let r=0;r<t.length;r++){const o=t[r],s=[];for(let t=0;t<o.length;t++){const i=o[t],r=o[t+1],a=0===t?n:i.sub(o[t-1])._unit()._perp(),l=t===o.length-1?n:r.sub(i)._unit()._perp(),c=a._add(l)._unit();c._mult(1/(c.x*l.x+c.y*l.y)),s.push(c._mult(e)._add(i))}i.push(s)}return i}(n,l*t.pixelToTileUnitsFactor)),function(t,e,i){for(let n=0;n<e.length;n++){const r=e[n];if(t.length>=3)for(let e=0;e<r.length;e++)if(bc(t,r[e]))return!0;if(pc(t,r,i))return!0}return!1}(s,n,a)}isTileClipped(){return!0}},symbol:hp,background:class extends na{constructor(t){super(t,dp)}getProgramIds(){return[this.paint.get("background-pattern")?"backgroundPattern":"background"]}},raster:class extends na{constructor(t){super(t,fp)}getProgramIds(){return["raster"]}},sky:class extends na{constructor(t){super(t,mp),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(t){"sky-gradient"===t?this._updateColorRamp():"sky-atmosphere-sun"!==t&&"sky-atmosphere-halo-color"!==t&&"sky-atmosphere-color"!==t&&"sky-atmosphere-sun-intensity"!==t||(this._skyboxInvalidated=!0)}_updateColorRamp(){this.colorRamp=Vc({expression:this._transitionablePaint._values["sky-gradient"].value.expression,evaluationKey:"skyRadialProgress"}),this.colorRampTexture&&(this.colorRampTexture.destroy(),this.colorRampTexture=null)}needsSkyboxCapture(t){if(this._skyboxInvalidated||!this.skyboxTexture||!this.skyboxGeometry)return!0;if(!this.paint.get("sky-atmosphere-sun")){const e=t.style.light.properties.get("position");return this._lightPosition.azimuthal!==e.azimuthal||this._lightPosition.polar!==e.polar}return!1}getCenter(t,e){if("atmosphere"===this.paint.get("sky-type")){const i=this.paint.get("sky-atmosphere-sun"),n=!i,r=t.style.light,o=r.properties.get("position");return n&&"viewport"===r.properties.get("anchor")&&q("The sun direction is attached to a light with viewport anchor, lighting may behave unexpectedly."),n?gp(o.azimuthal,90-o.polar,e):gp(i[0],90-i[1],e)}const i=this.paint.get("sky-gradient-center");return gp(i[0],90-i[1],e)}is3D(){return!1}isSky(){return!0}markSkyboxValid(t){this._skyboxInvalidated=!1,this._lightPosition=t.style.light.properties.get("position")}hasOffscreenPass(){return!0}getProgramIds(){const t=this.paint.get("sky-type");return"atmosphere"===t?["skyboxCapture","skybox"]:"gradient"===t?["skyboxGradient"]:null}}};class _p{constructor(t,e,i,n){this.context=t,this.format=i,this.texture=t.gl.createTexture(),this.update(e,n)}update(t,i,n){const{width:r,height:o}=t,{context:s}=this,{gl:a}=s,{HTMLImageElement:l,HTMLCanvasElement:c,HTMLVideoElement:u,ImageData:h,ImageBitmap:d}=e;if(a.bindTexture(a.TEXTURE_2D,this.texture),s.pixelStoreUnpackFlipY.set(!1),s.pixelStoreUnpack.set(1),s.pixelStoreUnpackPremultiplyAlpha.set(this.format===a.RGBA&&(!i||!1!==i.premultiply)),n||this.size&&this.size[0]===r&&this.size[1]===o){const{x:e,y:i}=n||{x:0,y:0};t instanceof l||t instanceof c||t instanceof u||t instanceof h||d&&t instanceof d?a.texSubImage2D(a.TEXTURE_2D,0,e,i,a.RGBA,a.UNSIGNED_BYTE,t):a.texSubImage2D(a.TEXTURE_2D,0,e,i,r,o,a.RGBA,a.UNSIGNED_BYTE,t.data)}else this.size=[r,o],t instanceof l||t instanceof c||t instanceof u||t instanceof h||d&&t instanceof d?a.texImage2D(a.TEXTURE_2D,0,this.format,this.format,a.UNSIGNED_BYTE,t):a.texImage2D(a.TEXTURE_2D,0,this.format,r,o,0,this.format,a.UNSIGNED_BYTE,t.data);this.useMipmap=Boolean(i&&i.useMipmap&&this.isSizePowerOfTwo()),this.useMipmap&&a.generateMipmap(a.TEXTURE_2D)}bind(t,e){const{context:i}=this,{gl:n}=i;n.bindTexture(n.TEXTURE_2D,this.texture),t!==this.filter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,t),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,this.useMipmap?t===n.NEAREST?n.NEAREST_MIPMAP_NEAREST:n.LINEAR_MIPMAP_NEAREST:t),this.filter=t),e!==this.wrap&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,e),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,e),this.wrap=e)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){const{gl:t}=this.context;t.deleteTexture(this.texture),this.texture=null}}class vp{constructor(t){this._callback=t,this._triggered=!1,"undefined"!=typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._callback()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._callback()},0))}remove(){this._channel=void 0,this._callback=()=>{}}}class bp{constructor(){this.tasks={},this.taskQueue=[],B(["process"],this),this.invoker=new vp(this.process),this.nextId=0}add(t,e){const i=this.nextId++,n=function({type:t,isSymbolTile:e,zoom:i}){return i=i||0,"message"===t?0:"maybePrepare"!==t||e?"parseTile"!==t||e?"parseTile"===t&&e?300-i:"maybePrepare"===t&&e?400-i:500:200-i:100-i}(e);if(0===n){Z();try{t()}finally{}return{cancel:()=>{}}}return this.tasks[i]={fn:t,metadata:e,priority:n,id:i},this.taskQueue.push(i),this.invoker.trigger(),{cancel:()=>{delete this.tasks[i]}}}process(){Z();try{if(this.taskQueue=this.taskQueue.filter(t=>!!this.tasks[t]),!this.taskQueue.length)return;const t=this.pick();if(null===t)return;const e=this.tasks[t];if(delete this.tasks[t],this.taskQueue.length&&this.invoker.trigger(),!e)return;e.fn()}finally{}}pick(){let t=null,e=1/0;for(let n=0;n<this.taskQueue.length;n++){const i=this.tasks[this.taskQueue[n]];i.priority<e&&(e=i.priority,t=n)}if(null===t)return null;const i=this.taskQueue[t];return this.taskQueue.splice(t,1),i}remove(){this.invoker.remove()}}class xp{constructor(t){this._stringToNumber={},this._numberToString=[];for(let e=0;e<t.length;e++){const i=t[e];this._stringToNumber[i]=e,this._numberToString[e]=i}}encode(t){return this._stringToNumber[t]}decode(t){return this._numberToString[t]}}const wp=["tile","layer","source","sourceLayer","state"];class Ep{constructor(t,e,i,n,r){this.type="Feature",this._vectorTileFeature=t,this._z=e,this._x=i,this._y=n,this.properties=t.properties,this.id=r}get geometry(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._x,this._y,this._z).geometry),this._geometry}set geometry(t){this._geometry=t}toJSON(){const t={type:"Feature",state:void 0,geometry:this.geometry,properties:this.properties};void 0!==this.id&&(t.id=this.id);for(const e of wp)void 0!==this[e]&&(t[e]=this[e]);return t}}const Tp=32,Sp=33,kp=new Uint16Array(8184);for(let Em=0;Em<2046;Em++){let t=Em+2,e=0,i=0,n=0,r=0,o=0,s=0;for(1&t?n=r=o=Tp:e=i=s=Tp;(t>>=1)>1;){const a=e+n>>1,l=i+r>>1;1&t?(n=e,r=i,e=o,i=s):(e=n,i=r,n=o,r=s),o=a,s=l}const a=4*Em;kp[a+0]=e,kp[a+1]=i,kp[a+2]=n,kp[a+3]=r}const Op=new Uint16Array(2178),Ap=new Uint8Array(1089),Cp=new Uint16Array(1089);function Ip(t){return 0===t?-.03125:32===t?.03125:0}var Mp=Fo([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);const Pp={type:2,extent:aa,loadGeometry:()=>[[new _(0,0),new _(aa+1,0),new _(aa+1,aa+1),new _(0,aa+1),new _(0,0)]]};class Dp{constructor(t,e,i,n,r){this.tileID=t,this.uid=L(),this.uses=0,this.tileSize=e,this.tileZoom=i,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.isRaster=r,this.expiredRequestCount=0,this.state="loading",n&&n.transform&&(this.projection=n.transform.projection)}registerFadeDuration(t){const e=t+this.timeAdded;e<Ht.now()||this.fadeEndTime&&e<this.fadeEndTime||(this.fadeEndTime=e)}wasRequested(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state}get tileTransform(){return this._tileTransform||(this._tileTransform=Mf(this.tileID.canonical,this.projection)),this._tileTransform}loadVectorData(t,e,i){if(this.unloadVectorData(),this.state="loaded",t){t.featureIndex&&(this.latestFeatureIndex=t.featureIndex,t.rawTileData?(this.latestRawTileData=t.rawTileData,this.latestFeatureIndex.rawTileData=t.rawTileData):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=t.collisionBoxArray,this.buckets=function(t,e){const i={};if(!e)return i;for(const n of t){const t=n.layerIds.map(t=>e.getLayer(t)).filter(Boolean);if(0!==t.length){n.layers=t,n.stateDependentLayerIds&&(n.stateDependentLayers=n.stateDependentLayerIds.map(e=>t.filter(t=>t.id===e)[0]));for(const e of t)i[e.id]=n}}return i}(t.buckets,e.style),this.hasSymbolBuckets=!1;for(const t in this.buckets){const e=this.buckets[t];if(e instanceof ap){if(this.hasSymbolBuckets=!0,!i)break;e.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(const t in this.buckets){const e=this.buckets[t];if(e instanceof ap&&e.hasRTLText){this.hasRTLText=!0,xo.isLoading()||xo.isLoaded()||"deferred"!==vo()||bo();break}}this.queryPadding=0;for(const t in this.buckets){const i=this.buckets[t];this.queryPadding=Math.max(this.queryPadding,e.style.getLayer(t).queryRadius(i))}t.imageAtlas&&(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&&(this.glyphAtlasImage=t.glyphAtlasImage),t.lineAtlas&&(this.lineAtlas=t.lineAtlas)}else this.collisionBoxArray=new fs}unloadVectorData(){if(this.hasData()){for(const t in this.buckets)this.buckets[t].destroy();this.buckets={},this.imageAtlas&&(this.imageAtlas=null),this.lineAtlas&&(this.lineAtlas=null),this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.lineAtlasTexture&&this.lineAtlasTexture.destroy(),this._tileBoundsBuffer&&(this._tileBoundsBuffer.destroy(),this._tileBoundsIndexBuffer.destroy(),this._tileBoundsSegments.destroy(),this._tileBoundsBuffer=null),this._tileDebugBuffer&&(this._tileDebugBuffer.destroy(),this._tileDebugSegments.destroy(),this._tileDebugBuffer=null),this._tileDebugIndexBuffer&&(this._tileDebugIndexBuffer.destroy(),this._tileDebugIndexBuffer=null),this._globeTileDebugBorderBuffer&&(this._globeTileDebugBorderBuffer.destroy(),this._globeTileDebugBorderBuffer=null),this._tileDebugTextBuffer&&(this._tileDebugTextBuffer.destroy(),this._tileDebugTextSegments.destroy(),this._tileDebugTextIndexBuffer.destroy(),this._tileDebugTextBuffer=null),this._globeTileDebugTextBuffer&&(this._globeTileDebugTextBuffer.destroy(),this._globeTileDebugTextBuffer=null),this.latestFeatureIndex=null,this.state="unloaded"}}getBucket(t){return this.buckets[t.id]}upload(t){for(const i in this.buckets){const e=this.buckets[i];e.uploadPending()&&e.upload(t)}const e=t.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new _p(t,this.imageAtlas.image,e.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new _p(t,this.glyphAtlasImage,e.ALPHA),this.glyphAtlasImage=null),this.lineAtlas&&!this.lineAtlas.uploaded&&(this.lineAtlasTexture=new _p(t,this.lineAtlas.image,e.ALPHA),this.lineAtlas.uploaded=!0)}prepare(t){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(t,this.imageAtlasTexture)}queryRenderedFeatures(t,e,i,n,r,o,s,a){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({tileResult:n,pixelPosMatrix:s,transform:o,params:r,tileTransform:this.tileTransform},t,e,i):{}}querySourceFeatures(t,e){const i=this.latestFeatureIndex;if(!i||!i.rawTileData)return;const n=i.loadVTLayers(),r=e?e.sourceLayer:"",o=n._geojsonTileLayer||n[r];if(!o)return;const s=hr(e&&e.filter),{z:a,x:l,y:c}=this.tileID.canonical,u={z:a,x:l,y:c};for(let h=0;h<o.length;h++){const e=o.feature(h);if(s.needGeometry){const t=ac(e,!0);if(!s.filter(new wo(this.tileID.overscaledZ),t,this.tileID.canonical))continue}else if(!s.filter(new wo(this.tileID.overscaledZ),e))continue;const n=i.getId(e,r),d=new Ep(e,a,l,c,n);d.tile=u,t.push(d)}}hasData(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state}patternsLoaded(){return!!this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length}setExpiryData(t){const e=this.expirationTime;if(t.cacheControl){const e=H(t.cacheControl);e["max-age"]&&(this.expirationTime=Date.now()+1e3*e["max-age"])}else t.expires&&(this.expirationTime=new Date(t.expires).getTime());if(this.expirationTime){const t=Date.now();let i=!1;if(this.expirationTime>t)i=!1;else if(e)if(this.expirationTime<e)i=!0;else{const n=this.expirationTime-e;n?this.expirationTime=t+Math.max(n,3e4):i=!0}else i=!0;i?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}}getExpiryTimeout(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)}setFeatureState(t,e){if(!this.latestFeatureIndex||!this.latestFeatureIndex.rawTileData||0===Object.keys(t).length||!e)return;const i=this.latestFeatureIndex.loadVTLayers(),n=e.style.listImages();for(const r in this.buckets){if(!e.style.hasLayer(r))continue;const o=this.buckets[r],s=o.layers[0].sourceLayer||"_geojsonTileLayer",a=i[s],l=t[s];if(!a||!l||0===Object.keys(l).length)continue;if(o.update(l,a,n,this.imageAtlas&&this.imageAtlas.patternPositions||{}),o instanceof kh||o instanceof Ou){const t=e.style._getSourceCache(o.layers[0].source);e._terrain&&e._terrain.enabled&&t&&o.programConfigurations.needsUpload&&e._terrain._clearRenderCacheForTile(t.id,this.tileID)}const c=e&&e.style&&e.style.getLayer(r);c&&(this.queryPadding=Math.max(this.queryPadding,c.queryRadius(o)))}}holdingForFade(){return void 0!==this.symbolFadeHoldUntil}symbolFadeFinished(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<Ht.now()}clearFadeHold(){this.symbolFadeHoldUntil=void 0}setHoldDuration(t){this.symbolFadeHoldUntil=Ht.now()+t}setTexture(t,e){const i=e.context,n=i.gl;this.texture=this.texture||e.getTileTexture(t.width),this.texture?this.texture.update(t,{useMipmap:!0}):(this.texture=new _p(i,t,n.RGBA,{useMipmap:!0}),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE))}
vendor: 6,674 bytes, line 39
39setDependencies(t,e){const i={};for(const n of e)i[n]=!0;this.dependencies[t]=i}hasDependency(t,e){for(const i of t){const t=this.dependencies[i];if(t)for(const i of e)if(t[i])return!0}return!1}clearQueryDebugViz(){}_makeDebugTileBoundsBuffers(t,e){if(!e||"mercator"===e.name||this._tileDebugBuffer)return;const i=sc(Pp,this.tileID.canonical,this.tileTransform)[0],n=new Vo,r=new us;for(let o=0;o<i.length;o++){const{x:t,y:e}=i[o];n.emplaceBack(t,e),r.emplaceBack(o)}r.emplaceBack(0),this._tileDebugIndexBuffer=t.createIndexBuffer(r),this._tileDebugBuffer=t.createVertexBuffer(n,tl.members),this._tileDebugSegments=sa.simpleSegment(0,0,n.length,r.length)}_makeTileBoundsBuffers(t,e){if(this._tileBoundsBuffer||!e||"mercator"===e.name)return;const i=sc(Pp,this.tileID.canonical,this.tileTransform)[0];let n,r;if(this.isRaster){const t=function(t,e){const i=Mf(t,e),n=Math.pow(2,t.z);for(let c=0;c<Sp;c++)for(let r=0;r<Sp;r++){const o=Zl((t.x+(r+Ip(r))/Tp)/n),s=Hl((t.y+(c+Ip(c))/Tp)/n),a=e.project(o,s),l=c*Sp+r;Op[2*l+0]=Math.round((a.x*i.scale-i.x)*aa),Op[2*l+1]=Math.round((a.y*i.scale-i.y)*aa)}Ap.fill(0),Cp.fill(0);for(let c=2045;c>=0;c--){const t=4*c,e=kp[t+0],i=kp[t+1],n=kp[t+2],r=kp[t+3],o=e+n>>1,s=i+r>>1,a=o+s-i,l=s+e-o,u=i*Sp+e,h=r*Sp+n,d=s*Sp+o,f=Math.hypot((Op[2*u+0]+Op[2*h+0])/2-Op[2*d+0],(Op[2*u+1]+Op[2*h+1])/2-Op[2*d+1])>=16;Ap[d]=Ap[d]||(f?1:0),c<1022&&(Ap[d]=Ap[d]||Ap[(i+l>>1)*Sp+(e+a>>1)]||Ap[(r+l>>1)*Sp+(n+a>>1)])}const r=new Uo,o=new ns;let s=0;function a(t,e){const i=e*Sp+t;return 0===Cp[i]&&(r.emplaceBack(Op[2*i+0],Op[2*i+1],t*aa/Tp,e*aa/Tp),Cp[i]=++s),Cp[i]-1}function l(t,e,i,n,r,s){const c=t+i>>1,u=e+n>>1;if(Math.abs(t-r)+Math.abs(e-s)>1&&Ap[u*Sp+c])l(r,s,t,e,c,u),l(i,n,r,s,c,u);else{const l=a(t,e),c=a(i,n),u=a(r,s);o.emplaceBack(l,c,u)}}return l(0,0,Tp,Tp,Tp,0),l(Tp,Tp,0,0,0,Tp),{vertices:r,indices:o}}(this.tileID.canonical,e);n=t.vertices,r=t.indices}else{n=new Uo,r=new ns;for(const{x:e,y:r}of i)n.emplaceBack(e,r,0,0);const t=_u(n.int16,void 0,4);for(let e=0;e<t.length;e+=3)r.emplaceBack(t[e],t[e+1],t[e+2])}this._tileBoundsBuffer=t.createVertexBuffer(n,Mp.members),this._tileBoundsIndexBuffer=t.createIndexBuffer(r),this._tileBoundsSegments=sa.simpleSegment(0,0,n.length,r.length)}_makeGlobeTileDebugBuffers(t,e){const i=e.projection;if(!i||"globe"!==i.name||e.freezeTileCoverage)return;const n=this.tileID.canonical,r=Il(bl(n,e)),o=Dl(e.zoom);let s;o>0&&(s=pa(new Float64Array(16),e.globeMatrix)),this._makeGlobeTileDebugBorderBuffer(t,n,e,r,s,o),this._makeGlobeTileDebugTextBuffer(t,n,e,r,s,o)}_globePoint(t,e,i,n,r,o,s){let a=Ol(t,e,i);if(o){const r=1<<i.z,l=ql(n.center.lng),c=Gl(n.center.lat),u=(i.x+.5)/r-l;let h=0;u>.5?h=-1:u<-.5&&(h=1);let d=(t/aa+i.x)/r+h,f=(e/aa+i.y)/r;d=(d-l)*n._pixelsPerMercatorPixel+l,f=(f-c)*n._pixelsPerMercatorPixel+c;const p=[d*n.worldSize,f*n.worldSize,0];ja(p,p,o),a=vl(a,p,s)}return ja(a,a,r)}_makeGlobeTileDebugBorderBuffer(t,e,i,n,r,o){const s=new Vo,a=new us,l=new $o,c=(t,c,u,h,d)=>{const f=(u-t)/(d-1),p=(h-c)/(d-1),m=s.length;for(let g=0;g<d;g++){const u=t+g*f,h=c+g*p;s.emplaceBack(u,h);const d=this._globePoint(u,h,e,i,n,r,o);l.emplaceBack(d[0],d[1],d[2]),a.emplaceBack(m+g)}},u=aa;c(0,0,u,0,16),c(u,0,u,u,16),c(u,u,0,u,16),c(0,u,0,0,16),this._tileDebugIndexBuffer=t.createIndexBuffer(a),this._tileDebugBuffer=t.createVertexBuffer(s,tl.members),this._globeTileDebugBorderBuffer=t.createVertexBuffer(l,Ja.members),this._tileDebugSegments=sa.simpleSegment(0,0,s.length,a.length)}_makeGlobeTileDebugTextBuffer(t,e,i,n,r,o){const s=aa/4,a=new Vo,l=new ns,c=new $o,u=25;l.reserve(32),a.reserve(u),c.reserve(u);const h=(t,e)=>u*t+e;for(let d=0;d<u;d++){const t=d*s;for(let l=0;l<u;l++){const u=l*s;a.emplaceBack(u,t);const h=this._globePoint(u,t,e,i,n,r,o);c.emplaceBack(h[0],h[1],h[2])}}for(let d=0;d<4;d++)for(let t=0;t<4;t++){const e=h(d,t),i=h(d,t+1),n=h(d+1,t),r=h(d+1,t+1);l.emplaceBack(e,i,n),l.emplaceBack(n,i,r)}this._tileDebugTextIndexBuffer=t.createIndexBuffer(l),this._tileDebugTextBuffer=t.createVertexBuffer(a,tl.members),this._globeTileDebugTextBuffer=t.createVertexBuffer(c,Ja.members),this._tileDebugTextSegments=sa.simpleSegment(0,0,u,32)}}class Lp{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(t,e,i){const n=String(e);if(this.stateChanges[t]=this.stateChanges[t]||{},this.stateChanges[t][n]=this.stateChanges[t][n]||{},P(this.stateChanges[t][n],i),null===this.deletedStates[t]){this.deletedStates[t]={};for(const e in this.state[t])e!==n&&(this.deletedStates[t][e]=null)}else if(this.deletedStates[t]&&null===this.deletedStates[t][n]){this.deletedStates[t][n]={};for(const e in this.state[t][n])i[e]||(this.deletedStates[t][n][e]=null)}else for(const r in i)this.deletedStates[t]&&this.deletedStates[t][n]&&null===this.deletedStates[t][n][r]&&delete this.deletedStates[t][n][r]}removeFeatureState(t,e,i){if(null===this.deletedStates[t])return;const n=String(e);if(this.deletedStates[t]=this.deletedStates[t]||{},i&&void 0!==e)null!==this.deletedStates[t][n]&&(this.deletedStates[t][n]=this.deletedStates[t][n]||{},this.deletedStates[t][n][i]=null);else if(void 0!==e)if(this.stateChanges[t]&&this.stateChanges[t][n])for(i in this.deletedStates[t][n]={},this.stateChanges[t][n])this.deletedStates[t][n][i]=null;else this.deletedStates[t][n]=null;else this.deletedStates[t]=null}getState(t,e){const i=String(e),n=P({},(this.state[t]||{})[i],(this.stateChanges[t]||{})[i]);if(null===this.deletedStates[t])return{};if(this.deletedStates[t]){const i=this.deletedStates[t][e];if(null===i)return{};for(const t in i)delete n[t]}return n}initializeTileState(t,e){t.setFeatureState(this.state,e)}coalesceChanges(t,e){const i={};for(const n in this.stateChanges){this.state[n]=this.state[n]||{};const t={};for(const e in this.stateChanges[n])this.state[n][e]||(this.state[n][e]={}),P(this.state[n][e],this.stateChanges[n][e]),t[e]=this.state[n][e];i[n]=t}for(const n in this.deletedStates){this.state[n]=this.state[n]||{};const t={};if(null===this.deletedStates[n])for(const e in this.state[n])t[e]={},this.state[n][e]={};else for(const e in this.deletedStates[n]){if(null===this.deletedStates[n][e])this.state[n][e]={};else if(this.state[n][e])for(const t of Object.keys(this.deletedStates[n][e]))delete this.state[n][e][t];t[e]=this.state[n][e]}i[n]=i[n]||{},P(i[n],t)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(i).length)for(const n in t)t[n].setFeatureState(i,e)}}class Rp{constructor(t){this.size=t,this.minimums=[],this.maximums=[],this.leaves=[]}getElevation(t,e){const i=this.toIdx(t,e);return{min:this.minimums[i],max:this.maximums[i]}}isLeaf(t,e){return this.leaves[this.toIdx(t,e)]}toIdx(t,e){return e*this.size+t}}
vendor: 32,955 bytes, line 39
39function zp(t,e,i,n){let r=0,o=Number.MAX_VALUE;for(let s=0;s<3;s++)if(Math.abs(n[s])<1e-15){if(i[s]<t[s]||i[s]>e[s])return null}else{const a=1/n[s];let l=(t[s]-i[s])*a,c=(e[s]-i[s])*a;if(l>c){const t=l;l=c,c=t}if(l>r&&(r=l),c<o&&(o=c),r>o)return null}return r}function jp(t,e,i,n,r,o,s,a,l,c,u){const h=n-t,d=r-e,f=o-i,p=s-t,m=a-e,g=l-i,y=u[1]*g-u[2]*m,_=u[2]*p-u[0]*g,v=u[0]*m-u[1]*p,b=h*y+d*_+f*v;if(Math.abs(b)<1e-15)return null;const x=1/b,w=c[0]-t,E=c[1]-e,T=c[2]-i,S=(w*y+E*_+T*v)*x;if(S<0||S>1)return null;const k=E*f-T*d,O=T*h-w*f,A=w*d-E*h,C=(u[0]*k+u[1]*O+u[2]*A)*x;return C<0||S+C>1?null:(p*k+m*O+g*A)*x}function Bp(t,e,i){return(t-e)/(i-e)}function Fp(t,e,i,n,r,o,s,a,l){const c=1<<i,u=o-n,h=s-r,d=(t+1)/c*u+n,f=(e+0)/c*h+r,p=(e+1)/c*h+r;a[0]=(t+0)/c*u+n,a[1]=f,l[0]=d,l[1]=p}class Np{constructor(t){if(this.maximums=[],this.minimums=[],this.leaves=[],this.childOffsets=[],this.nodeCount=0,this.dem=t,this._siblingOffset=[[0,0],[1,0],[0,1],[1,1]],!this.dem)return;const e=function(t){const e=Math.ceil(Math.log2(t.dim/8)),i=[];let n=Math.ceil(Math.pow(2,e));const r=1/n,o=(t,e,i,n,r)=>{const o=n?1:0,s=(t+1)*i-o,a=e*i,l=(e+1)*i-o;r[0]=t*i,r[1]=a,r[2]=s,r[3]=l};let s=new Rp(n);const a=[];for(let l=0;l<n*n;l++){o(l%n,Math.floor(l/n),r,!1,a);const e=$p(a[0],a[1],t),i=$p(a[2],a[1],t),c=$p(a[2],a[3],t),u=$p(a[0],a[3],t);s.minimums.push(Math.min(e,i,c,u)),s.maximums.push(Math.max(e,i,c,u)),s.leaves.push(1)}for(i.push(s),n/=2;n>=1;n/=2){const t=i[i.length-1];s=new Rp(n);for(let e=0;e<n*n;e++){o(e%n,Math.floor(e/n),2,!0,a);const i=t.getElevation(a[0],a[1]),r=t.getElevation(a[2],a[1]),l=t.getElevation(a[2],a[3]),c=t.getElevation(a[0],a[3]),u=t.isLeaf(a[0],a[1]),h=t.isLeaf(a[2],a[1]),d=t.isLeaf(a[2],a[3]),f=t.isLeaf(a[0],a[3]),p=Math.min(i.min,r.min,l.min,c.min),m=Math.max(i.max,r.max,l.max,c.max),g=u&&h&&d&&f;s.maximums.push(m),s.minimums.push(p),s.leaves.push(m-p<=5&&g?1:0)}i.push(s)}return i}(this.dem),i=e.length-1,n=e[i];this._addNode(n.minimums[0],n.maximums[0],n.leaves[0]),this._construct(e,0,0,i,0)}raycastRoot(t,e,i,n,r,o,s=1){return zp([t,e,-100],[i,n,this.maximums[0]*s],r,o)}raycast(t,e,i,n,r,o,s=1){if(!this.nodeCount)return null;const a=this.raycastRoot(t,e,i,n,r,o,s);if(null==a)return null;const l=[],c=[],u=[],h=[],d=[{idx:0,t:a,nodex:0,nodey:0,depth:0}];for(;d.length>0;){const{idx:a,t:f,nodex:p,nodey:m,depth:g}=d.pop();if(this.leaves[a]){Fp(p,m,g,t,e,i,n,u,h);const a=1<<g,l=(p+0)/a,c=(p+1)/a,d=(m+0)/a,y=(m+1)/a,_=$p(l,d,this.dem)*s,v=$p(c,d,this.dem)*s,b=$p(c,y,this.dem)*s,x=$p(l,y,this.dem)*s,w=jp(u[0],u[1],_,h[0],u[1],v,h[0],h[1],b,r,o),E=jp(h[0],h[1],b,u[0],h[1],x,u[0],u[1],_,r,o),T=Math.min(null!==w?w:Number.MAX_VALUE,null!==E?E:Number.MAX_VALUE);if(T!==Number.MAX_VALUE)return T;{const t=Da([],r,o,f);if(Vp(_,v,x,b,Bp(t[0],u[0],h[0]),Bp(t[1],u[1],h[1]))>=t[2])return f}continue}let y=0;for(let d=0;d<this._siblingOffset.length;d++){Fp((p<<1)+this._siblingOffset[d][0],(m<<1)+this._siblingOffset[d][1],g+1,t,e,i,n,u,h),u[2]=-100,h[2]=this.maximums[this.childOffsets[a]+d]*s;const f=zp(u,h,r,o);if(null!=f){const t=f;l[d]=t;let e=!1;for(let i=0;i<y&&!e;i++)t>=l[c[i]]&&(c.splice(i,0,d),e=!0);e||(c[y]=d),y++}}for(let t=0;t<y;t++){const e=c[t];d.push({idx:this.childOffsets[a]+e,t:l[e],nodex:(p<<1)+this._siblingOffset[e][0],nodey:(m<<1)+this._siblingOffset[e][1],depth:g+1})}}return null}_addNode(t,e,i){return this.minimums.push(t),this.maximums.push(e),this.leaves.push(i),this.childOffsets.push(0),this.nodeCount++}_construct(t,e,i,n,r){if(1===t[n].isLeaf(e,i))return;this.childOffsets[r]||(this.childOffsets[r]=this.nodeCount);const o=n-1,s=t[o];let a=0,l=0;for(let c=0;c<this._siblingOffset.length;c++){const t=2*e+this._siblingOffset[c][0],n=2*i+this._siblingOffset[c][1],r=s.getElevation(t,n),o=s.isLeaf(t,n),u=this._addNode(r.min,r.max,o);o&&(a|=1<<c),l||(l=u)}for(let c=0;c<this._siblingOffset.length;c++)a&1<<c||this._construct(t,2*e+this._siblingOffset[c][0],2*i+this._siblingOffset[c][1],o,l+c)}}function Vp(t,e,i,n,r,o){return Mi(Mi(t,i,o),Mi(e,n,o),r)}function $p(t,e,i){const n=i.dim,r=O(t*n-.5,0,n-1),o=O(e*n-.5,0,n-1),s=Math.floor(r),a=Math.floor(o),l=Math.min(s+1,n-1),c=Math.min(a+1,n-1);return Vp(i.get(s,a),i.get(l,a),i.get(s,c),i.get(l,c),r-s,o-a)}const Up={mapbox:[6553.6,25.6,.1,1e4],terrarium:[256,1,1/256,32768]};function qp(t,e,i){return(256*t*256+256*e+i)/10-1e4}function Gp(t,e,i){return 256*t+e+i/256-32768}class Wp{get tree(){return this._tree||this._buildQuadTree(),this._tree}constructor(t,e,i,n=!1,r=!1){if(this.uid=t,e.height!==e.width)throw new RangeError("DEM tiles must be square");if(i&&"mapbox"!==i&&"terrarium"!==i)return q(`"${i}" is not a valid encoding type. Valid types include "mapbox" and "terrarium".`);this.stride=e.height;const o=this.dim=e.height-2,s=new Uint32Array(e.data.buffer);if(this.pixels=new Uint8Array(e.data.buffer),this.encoding=i||"mapbox",this.borderReady=n,!n){for(let t=0;t<o;t++)s[this._idx(-1,t)]=s[this._idx(0,t)],s[this._idx(o,t)]=s[this._idx(o-1,t)],s[this._idx(t,-1)]=s[this._idx(t,0)],s[this._idx(t,o)]=s[this._idx(t,o-1)];s[this._idx(-1,-1)]=s[this._idx(0,0)],s[this._idx(o,-1)]=s[this._idx(o-1,0)],s[this._idx(-1,o)]=s[this._idx(0,o-1)],s[this._idx(o,o)]=s[this._idx(o-1,o-1)],r&&this._buildQuadTree()}}_buildQuadTree(){this._tree=new Np(this)}get(t,e,i=!1){i&&(t=O(t,-1,this.dim),e=O(e,-1,this.dim));const n=4*this._idx(t,e);return("terrarium"===this.encoding?Gp:qp)(this.pixels[n],this.pixels[n+1],this.pixels[n+2])}static getUnpackVector(t){return Up[t]}get unpackVector(){return Up[this.encoding]}_idx(t,e){if(t<-1||t>=this.dim+1||e<-1||e>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(e+1)*this.stride+(t+1)}static pack(t,e){const i=[0,0,0,0],n=Wp.getUnpackVector(e);let r=Math.floor((t+n[3])/n[2]);return i[2]=r%256,r=Math.floor(r/256),i[1]=r%256,r=Math.floor(r/256),i[0]=r,i}getPixels(){return new Fc({width:this.stride,height:this.stride},this.pixels)}backfillBorder(t,e,i){if(this.dim!==t.dim)throw new Error("dem dimension mismatch");let n=e*this.dim,r=e*this.dim+this.dim,o=i*this.dim,s=i*this.dim+this.dim;switch(e){case-1:n=r-1;break;case 1:r=n+1}switch(i){case-1:o=s-1;break;case 1:s=o+1}const a=-e*this.dim,l=-i*this.dim;for(let c=o;c<s;c++)for(let e=n;e<r;e++){const i=4*this._idx(e,c),n=4*this._idx(e+a,c+l);this.pixels[i+0]=t.pixels[n+0],this.pixels[i+1]=t.pixels[n+1],this.pixels[i+2]=t.pixels[n+2],this.pixels[i+3]=t.pixels[n+3]}}onDeserialize(){this._tree&&(this._tree.dem=this)}}Xr(Wp,"DEMData"),Xr(Np,"DemMinMaxQuadTree",{omit:["dem"]});class Zp{constructor(t,e){this.max=t,this.onRemove=e,this.reset()}reset(){for(const t in this.data)for(const e of this.data[t])e.timeout&&clearTimeout(e.timeout),this.onRemove(e.value);return this.data={},this.order=[],this}add(t,e,i){const n=t.wrapped().key;void 0===this.data[n]&&(this.data[n]=[]);const r={value:e,timeout:void 0};if(void 0!==i&&(r.timeout=setTimeout(()=>{this.remove(t,r)},i)),this.data[n].push(r),this.order.push(n),this.order.length>this.max){const t=this._getAndRemoveByKey(this.order[0]);t&&this.onRemove(t)}return this}has(t){return t.wrapped().key in this.data}getAndRemove(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null}_getAndRemoveByKey(t){const e=this.data[t].shift();return e.timeout&&clearTimeout(e.timeout),0===this.data[t].length&&delete this.data[t],this.order.splice(this.order.indexOf(t),1),e.value}getByKey(t){const e=this.data[t];return e?e[0].value:null}get(t){return this.has(t)?this.data[t.wrapped().key][0].value:null}remove(t,e){if(!this.has(t))return this;const i=t.wrapped().key,n=void 0===e?0:this.data[i].indexOf(e),r=this.data[i][n];return this.data[i].splice(n,1),r.timeout&&clearTimeout(r.timeout),0===this.data[i].length&&delete this.data[i],this.onRemove(r.value),this.order.splice(this.order.indexOf(i),1),this}setMaxSize(t){for(this.max=t;this.order.length>this.max;){const t=this._getAndRemoveByKey(this.order[0]);t&&this.onRemove(t)}return this}filter(t){const e=[];for(const i in this.data)for(const n of this.data[i])t(n.value)||e.push(n);for(const i of e)this.remove(i.value.tileID,i)}}class Hp{constructor(t,e,i){this.func=t,this.mask=e,this.range=i}}Hp.ReadOnly=!1,Hp.ReadWrite=!0,Hp.disabled=new Hp(519,Hp.ReadOnly,[0,1]);const Xp=7680;class Qp{constructor(t,e,i,n,r,o){this.test=t,this.ref=e,this.mask=i,this.fail=n,this.depthFail=r,this.pass=o}}Qp.disabled=new Qp({func:519,mask:0},0,0,Xp,Xp,Xp);class Yp{constructor(t,e,i){this.blendFunction=t,this.blendColor=e,this.mask=i}}Yp.Replace=[1,0],Yp.disabled=new Yp(Yp.Replace,Me.transparent,[!1,!1,!1,!1]),Yp.unblended=new Yp(Yp.Replace,Me.transparent,[!0,!0,!0,!0]),Yp.alphaBlended=new Yp([1,771],Me.transparent,[!0,!0,!0,!0]);const Kp=1029,Jp=2305;class tm{constructor(t,e,i){this.enable=t,this.mode=e,this.frontFace=i}}tm.disabled=new tm(!1,Kp,Jp),tm.backCCW=new tm(!0,Kp,Jp),tm.backCW=new tm(!0,Kp,2304),tm.frontCW=new tm(!0,1028,2304),tm.frontCCW=new tm(!0,1028,Jp);class em extends Jt{constructor(t,e,i){super(),this.id=t,this._onlySymbols=i,e.on("data",t=>{"source"===t.dataType&&"metadata"===t.sourceDataType&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&"source"===t.dataType&&"content"===t.sourceDataType&&(this.reload(),this.transform&&this.update(this.transform))}),e.on("error",()=>{this._sourceErrored=!0}),this._source=e,this._tiles={},this._cache=new Zp(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._minTileCacheSize=e.minTileCacheSize,this._maxTileCacheSize=e.maxTileCacheSize,this._loadedParentTiles={},this._coveredTiles={},this._state=new Lp,this._isRaster="raster"===this._source.type||"raster-dem"===this._source.type||"custom"===this._source.type&&"raster"===this._source._dataType}onAdd(t){this.map=t,this._minTileCacheSize=void 0===this._minTileCacheSize&&t?t._minTileCacheSize:this._minTileCacheSize,this._maxTileCacheSize=void 0===this._maxTileCacheSize&&t?t._maxTileCacheSize:this._maxTileCacheSize}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(const t in this._tiles){const e=this._tiles[t];if("loaded"!==e.state&&"errored"!==e.state)return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;const t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&&this.reload(),this.transform&&this.update(this.transform)}_loadTile(t,e){return t.isSymbolTile=this._onlySymbols,this._source.loadTile(t,e)}_unloadTile(t){if(this._source.unloadTile)return this._source.unloadTile(t,()=>{})}_abortTile(t){if(this._source.abortTile)return this._source.abortTile(t,()=>{})}serialize(){return this._source.serialize()}prepare(t){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(const e in this._tiles){const i=this._tiles[e];i.upload(t),i.prepare(this.map.style.imageManager)}}getIds(){return M(this._tiles).map(t=>t.tileID).sort(im).map(t=>t.key)}getRenderableIds(t){const e=[];for(const i in this._tiles)this._isIdRenderable(+i,t)&&e.push(this._tiles[i]);return t?e.sort((t,e)=>{const i=t.tileID,n=e.tileID,r=new _(i.canonical.x,i.canonical.y)._rotate(this.transform.angle),o=new _(n.canonical.x,n.canonical.y)._rotate(this.transform.angle);return i.overscaledZ-n.overscaledZ||o.y-r.y||o.x-r.x}).map(t=>t.tileID.key):e.map(t=>t.tileID).sort(im).map(t=>t.key)}hasRenderableParent(t){const e=this.findLoadedParent(t,0);return!!e&&this._isIdRenderable(e.tileID.key)}_isIdRenderable(t,e){return this._tiles[t]&&this._tiles[t].hasData()&&!this._coveredTiles[t]&&(e||!this._tiles[t].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(const t in this._tiles)"errored"!==this._tiles[t].state&&this._reloadTile(+t,"reloading")}}_reloadTile(t,e){const i=this._tiles[t];i&&("loading"!==i.state&&(i.state=e),this._loadTile(i,this._tileLoaded.bind(this,i,t,e)))}_tileLoaded(t,e,i,n){if(n)if(t.state="errored",404!==n.status)this._source.fire(new Kt(n,{tile:t}));else if("raster-dem"===this._source.type&&this.usedForTerrain&&this.map.painter.terrain){const t=this.map.painter.terrain;this.update(this.transform,t.getScaledDemTileSize(),!0),t.resetTileLookupCache(this.id)}else this.update(this.transform);else t.timeAdded=Ht.now(),"expired"===i&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(e,t),"raster-dem"===this._source.type&&t.dem&&this._backfillDEM(t),this._state.initializeTileState(t,this.map?this.map.painter:null),this._source.fire(new Yt("data",{dataType:"source",tile:t,coord:t.tileID,sourceCacheId:this.id}))}_backfillDEM(t){const e=this.getRenderableIds();for(let n=0;n<e.length;n++){const r=e[n];if(t.neighboringTiles&&t.neighboringTiles[r]){const e=this.getTileByID(r);i(t,e),i(e,t)}}function i(t,e){if(!t.dem||t.dem.borderReady)return;t.needsHillshadePrepare=!0,t.needsDEMTextureUpload=!0;let i=e.tileID.canonical.x-t.tileID.canonical.x;const n=e.tileID.canonical.y-t.tileID.canonical.y,r=Math.pow(2,t.tileID.canonical.z),o=e.tileID.key;0===i&&0===n||Math.abs(n)>1||(Math.abs(i)>1&&(1===Math.abs(i+r)?i+=r:1===Math.abs(i-r)&&(i-=r)),e.dem&&t.dem&&(t.dem.backfillBorder(e.dem,i,n),t.neighboringTiles&&t.neighboringTiles[o]&&(t.neighboringTiles[o].backfilled=!0)))}}getTile(t){return this.getTileByID(t.key)}getTileByID(t){return this._tiles[t]}_retainLoadedChildren(t,e,i,n){for(const r in this._tiles){let o=this._tiles[r];if(n[r]||!o.hasData()||o.tileID.overscaledZ<=e||o.tileID.overscaledZ>i)continue;let s=o.tileID;for(;o&&o.tileID.overscaledZ>e+1;){const t=o.tileID.scaledTo(o.tileID.overscaledZ-1);o=this._tiles[t.key],o&&o.hasData()&&(s=t)}let a=s;for(;a.overscaledZ>e;)if(a=a.scaledTo(a.overscaledZ-1),t[a.key]){n[s.key]=s;break}}}findLoadedParent(t,e){if(t.key in this._loadedParentTiles){const i=this._loadedParentTiles[t.key];return i&&i.tileID.overscaledZ>=e?i:null}for(let i=t.overscaledZ-1;i>=e;i--){const e=t.scaledTo(i),n=this._getLoadedTile(e);if(n)return n}}_getLoadedTile(t){const e=this._tiles[t.key];return e&&e.hasData()?e:this._cache.getByKey(this._source.reparseOverscaled?t.wrapped().key:t.canonical.key)}updateCacheSize(t,e){e=e||this._source.tileSize;const i=Math.ceil(t.width/e)+1,n=Math.ceil(t.height/e)+1,r=Math.floor(i*n*5),o="number"==typeof this._minTileCacheSize?Math.max(this._minTileCacheSize,r):r,s="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,o):o;this._cache.setMaxSize(s)}handleWrapJump(t){const e=Math.round((t-(void 0===this._prevLng?t:this._prevLng))/360);if(this._prevLng=t,e){const t={};for(const i in this._tiles){const n=this._tiles[i];n.tileID=n.tileID.unwrapTo(n.tileID.wrap+e),t[n.tileID.key]=n}this._tiles=t;for(const e in this._timers)clearTimeout(this._timers[e]),delete this._timers[e];for(const e in this._tiles)this._setTileReloadTimer(+e,this._tiles[e])}}update(t,e,i){if(this.transform=t,!this._sourceLoaded||this._paused||this.transform.freezeTileCoverage)return;if(this.usedForTerrain&&!i)return;let n;this.updateCacheSize(t,e),"globe"!==this.transform.projection.name&&this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?n=t.getVisibleUnwrappedCoordinates(this._source.tileID).map(t=>new ph(t.canonical.z,t.wrap,t.canonical.z,t.canonical.x,t.canonical.y)):(n=t.coveringTiles({tileSize:e||this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!i,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain}),this._source.hasTile&&(n=n.filter(t=>this._source.hasTile(t)))):n=[];const r=this._updateRetainedTiles(n);if(nm(this._source.type)&&0!==n.length){const t={},e={},i=Object.keys(r);for(const n of i){const i=r[n],o=this._tiles[n];if(!o||o.fadeEndTime&&o.fadeEndTime<=Ht.now())continue;const s=this.findLoadedParent(i,Math.max(i.overscaledZ-em.maxOverzooming,this._source.minzoom));s&&(this._addTile(s.tileID),t[s.tileID.key]=s.tileID),e[n]=i}const o=n[n.length-1].overscaledZ;for(const n in this._tiles){const t=this._tiles[n];if(r[n]||!t.hasData())continue;let i=t.tileID;for(;i.overscaledZ>o;){i=i.scaledTo(i.overscaledZ-1);const o=this._tiles[i.key];if(o&&o.hasData()&&e[i.key]){r[n]=t.tileID;break}}}for(const n in t)r[n]||(this._coveredTiles[n]=!0,r[n]=t[n])}for(const s in r)this._tiles[s].clearFadeHold();const o=function(t,e){const i=[];for(const n in t)n in e||i.push(n);return i}(this._tiles,r);for(const s of o){const t=this._tiles[s];t.hasSymbolBuckets&&!t.holdingForFade()?t.setHoldDuration(this.map._fadeDuration):t.hasSymbolBuckets&&!t.symbolFadeFinished()||this._removeTile(+s)}this._updateLoadedParentTileCache(),this._onlySymbols&&this._source.afterUpdate&&this._source.afterUpdate()}releaseSymbolFadeTiles(){for(const t in this._tiles)this._tiles[t].holdingForFade()&&this._removeTile(+t)}_updateRetainedTiles(t){const e={};if(0===t.length)return e;const i={},n=t.reduce((t,e)=>Math.min(t,e.overscaledZ),1/0),r=t[0].overscaledZ,o=Math.max(r-em.maxOverzooming,this._source.minzoom),s=Math.max(r+em.maxUnderzooming,this._source.minzoom),a={};for(const l of t){const t=this._addTile(l);e[l.key]=l,t.hasData()||n<this._source.maxzoom&&(a[l.key]=l)}this._retainLoadedChildren(a,n,s,e);for(const l of t){let t=this._tiles[l.key];if(t.hasData())continue;if(l.canonical.z>=this._source.maxzoom){const t=l.children(this._source.maxzoom)[0],i=this.getTile(t);if(i&&i.hasData()){e[t.key]=t;continue}}else{const t=l.children(this._source.maxzoom);if(e[t[0].key]&&e[t[1].key]&&e[t[2].key]&&e[t[3].key])continue}let n=t.wasRequested();for(let r=l.overscaledZ-1;r>=o;--r){const o=l.scaledTo(r);if(i[o.key])break;if(i[o.key]=!0,t=this.getTile(o),!t&&n&&(t=this._addTile(o)),t&&(e[o.key]=o,n=t.wasRequested(),t.hasData()))break}}return e}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(const t in this._tiles){const e=[];let i,n=this._tiles[t].tileID;for(;n.overscaledZ>0;){if(n.key in this._loadedParentTiles){i=this._loadedParentTiles[n.key];break}e.push(n.key);const t=n.scaledTo(n.overscaledZ-1);if(i=this._getLoadedTile(t),i)break;n=t}for(const t of e)this._loadedParentTiles[t]=i}}_addTile(t){let e=this._tiles[t.key];if(e)return e;e=this._cache.getAndRemove(t),e&&(this._setTileReloadTimer(t.key,e),e.tileID=t,this._state.initializeTileState(e,this.map?this.map.painter:null),this._cacheTimers[t.key]&&(clearTimeout(this._cacheTimers[t.key]),delete this._cacheTimers[t.key],this._setTileReloadTimer(t.key,e)));const i=Boolean(e);if(!i){const i=this.map?this.map.painter:null;e=new Dp(t,this._source.tileSize*t.overscaleFactor(),this.transform.tileZoom,i,this._isRaster),this._loadTile(e,this._tileLoaded.bind(this,e,t.key,e.state))}return e?(e.uses++,this._tiles[t.key]=e,i||this._source.fire(new Yt("dataloading",{tile:e,coord:e.tileID,dataType:"source"})),e):null}_setTileReloadTimer(t,e){t in this._timers&&(clearTimeout(this._timers[t]),delete this._timers[t]);const i=e.getExpiryTimeout();i&&(this._timers[t]=setTimeout(()=>{this._reloadTile(t,"expired"),delete this._timers[t]},i))}_removeTile(t){const e=this._tiles[t];e&&(e.uses--,delete this._tiles[t],this._timers[t]&&(clearTimeout(this._timers[t]),delete this._timers[t]),e.uses>0||(e.hasData()&&"reloading"!==e.state?this._cache.add(e.tileID,e,e.getExpiryTimeout()):(e.aborted=!0,this._abortTile(e),this._unloadTile(e))))}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(const t in this._tiles)this._removeTile(+t);this._source._clear&&this._source._clear(),this._cache.reset(),this.map&&this.usedForTerrain&&this.map.painter.terrain&&this.map.painter.terrain.resetTileLookupCache(this.id)}tilesIn(t,e,i){const n=[],r=this.transform;if(!r)return n;const o="globe"===r.projection.name,s=ql(r.center.lng);for(const a in this._tiles){const l=this._tiles[a];if(i&&l.clearQueryDebugViz(),l.holdingForFade())continue;let c;if(o){const t=l.tileID.canonical;if(0===t.z){const e=[Math.abs(O(s,...rm(t,-1))-s),Math.abs(O(s,...rm(t,1))-s)];c=[0,2*e.indexOf(Math.min(...e))-1]}else{const e=[Math.abs(O(s,...rm(t,-1))-s),Math.abs(O(s,...rm(t,0))-s),Math.abs(O(s,...rm(t,1))-s)];c=[e.indexOf(Math.min(...e))-1]}}else c=[0];for(const i of c){const o=t.containsTile(l,r,e,i);o&&n.push(o)}}return n}getVisibleCoordinates(t){const e=this.getRenderableIds(t).map(t=>this._tiles[t].tileID);for(const i of e)i.projMatrix=this.transform.calculateProjMatrix(i.toUnwrapped());return e}hasTransition(){if(this._source.hasTransition())return!0;if(nm(this._source.type))for(const t in this._tiles){const e=this._tiles[t];if(void 0!==e.fadeEndTime&&e.fadeEndTime>=Ht.now())return!0}return!1}setFeatureState(t,e,i){this._state.updateState(t=t||"_geojsonTileLayer",e,i)}removeFeatureState(t,e,i){this._state.removeFeatureState(t=t||"_geojsonTileLayer",e,i)}getFeatureState(t,e){return this._state.getState(t=t||"_geojsonTileLayer",e)}setDependencies(t,e,i){const n=this._tiles[t];n&&n.setDependencies(e,i)}reloadTilesForDependencies(t,e){for(const i in this._tiles)this._tiles[i].hasDependency(t,e)&&this._reloadTile(+i,"reloading");this._cache.filter(i=>!i.hasDependency(t,e))}_preloadTiles(t,e){if(!this._sourceLoaded){const i=()=>{this._sourceLoaded&&(this._source.off("data",i),this._preloadTiles(t,e))};return void this._source.on("data",i)}const i=new Map,n=Array.isArray(t)?t:[t],r=this.map.painter.terrain,o=this.usedForTerrain&&r?r.getScaledDemTileSize():this._source.tileSize;for(const s of n){const t=s.coveringTiles({tileSize:o,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!this.usedForTerrain,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain});for(const e of t)i.set(e.key,e);this.usedForTerrain&&s.updateElevation(!1)}I(Array.from(i.values()),(t,e)=>{const i=new Dp(t,this._source.tileSize*t.overscaleFactor(),this.transform.tileZoom,this.map.painter,this._isRaster);this._loadTile(i,t=>{"raster-dem"===this._source.type&&i.dem&&this._backfillDEM(i),e(t,i)})},e)}}function im(t,e){const i=Math.abs(2*t.wrap)-+(t.wrap<0),n=Math.abs(2*e.wrap)-+(e.wrap<0);return t.overscaledZ-e.overscaledZ||n-i||e.canonical.y-t.canonical.y||e.canonical.x-t.canonical.x}function nm(t){return"raster"===t||"image"===t||"video"===t||"custom"===t}function rm(t,e){const i=1<<t.z;return[t.x/i+e,(t.x+1)/i+e]}em.maxOverzooming=10,em.maxUnderzooming=3;class om{constructor(t,e,i){this._demTile=t,this._dem=this._demTile.dem,this._scale=e,this._offset=i}static create(t,e,i){const n=i||t.findDEMTileFor(e);if(!n||!n.dem)return;const r=n.dem,o=n.tileID,s=1<<e.canonical.z-o.canonical.z;return new om(n,n.tileSize/aa/s,[(e.canonical.x/s-o.canonical.x)*r.dim,(e.canonical.y/s-o.canonical.y)*r.dim])}tileCoordToPixel(t,e){const i=e*this._scale+this._offset[1],n=Math.floor(t*this._scale+this._offset[0]),r=Math.floor(i);return new _(n,r)}getElevationAt(t,e,i,n){const r=t*this._scale+this._offset[0],o=e*this._scale+this._offset[1],s=Math.floor(r),a=Math.floor(o),l=this._dem;return n=!!n,i?Mi(Mi(l.get(s,a,n),l.get(s,a+1,n),o-a),Mi(l.get(s+1,a,n),l.get(s+1,a+1,n),o-a),r-s):l.get(s,a,n)}getElevationAtPixel(t,e,i){return this._dem.get(t,e,!!i)}getMeterToDEM(t){return(1<<this._demTile.tileID.canonical.z)*Wl(1,t)*this._dem.stride}}class sm{constructor(t,e){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=new Zr(aa,16,0),this.featureIndexArray=new xs,this.promoteId=e}insert(t,e,i,n,r,o=0){const s=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(i,n,r,o);const a=this.grid;for(let l=0;l<e.length;l++){const t=e[l],i=[1/0,1/0,-1/0,-1/0];for(let e=0;e<t.length;e++){const n=t[e];i[0]=Math.min(i[0],n.x),i[1]=Math.min(i[1],n.y),i[2]=Math.max(i[2],n.x),i[3]=Math.max(i[3],n.y)}i[0]<aa&&i[1]<aa&&i[2]>=0&&i[3]>=0&&a.insert(s,i[0],i[1],i[2],i[3])}}loadVTLayers(){if(!this.vtLayers){this.vtLayers=new Wu(new gd(this.rawTileData)).layers,this.sourceLayerCoder=new xp(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"]),this.vtFeatures={};for(const t in this.vtLayers)this.vtFeatures[t]=[]}return this.vtLayers}query(t,e,i,n){this.loadVTLayers();const r=t.params||{},o=hr(r.filter),s=t.tileResult,a=t.transform,l=s.bufferedTilespaceBounds,c=this.grid.query(l.min.x,l.min.y,l.max.x,l.max.y,(t,e,i,n)=>xc(s.bufferedTilespaceGeometry,t,e,i,n));c.sort(lm);let u=null;a.elevation&&c.length>0&&(u=om.create(a.elevation,this.tileID));const h={};let d;for(let f=0;f<c.length;f++){const a=c[f];if(a===d)continue;d=a;const l=this.featureIndexArray.get(a);let p=null;this.loadMatchingFeature(h,l,o,r.layers,r.availableImages,e,i,n,(e,i,n,r=0)=>(p||(p=sc(e,this.tileID.canonical,t.tileTransform)),i.queryIntersectsFeature(s,e,n,p,this.z,t.transform,t.pixelPosMatrix,u,r)))}return h}loadMatchingFeature(t,e,i,n,r,o,s,a,l){const{featureIndex:c,bucketIndex:u,sourceLayerIndex:h,layoutVertexArrayOffset:d}=e,f=this.bucketLayerIDs[u];if(n&&!function(t,e){for(let i=0;i<t.length;i++)if(e.indexOf(t[i])>=0)return!0;return!1}(n,f))return;const p=this.sourceLayerCoder.decode(h),m=this.vtLayers[p].feature(c);if(i.needGeometry){const t=ac(m,!0);if(!i.filter(new wo(this.tileID.overscaledZ),t,this.tileID.canonical))return}else if(!i.filter(new wo(this.tileID.overscaledZ),m))return;const g=this.getId(m,p);for(let y=0;y<f.length;y++){const e=f[y];if(n&&n.indexOf(e)<0)continue;const i=o[e];if(!i)continue;let u={};void 0!==g&&a&&(u=a.getState(i.sourceLayer||"_geojsonTileLayer",g));const h=P({},s[e]);h.paint=am(h.paint,i.paint,m,u,r),h.layout=am(h.layout,i.layout,m,u,r);const p=!l||l(m,i,u,d);if(!p)continue;const _=new Ep(m,this.z,this.x,this.y,g);_.layer=h;let v=t[e];void 0===v&&(v=t[e]=[]),v.push({featureIndex:c,feature:_,intersectionZ:p})}}lookupSymbolFeatures(t,e,i,n,r,o,s,a){const l={};this.loadVTLayers();const c=hr(r);for(const u of t)this.loadMatchingFeature(l,{bucketIndex:i,sourceLayerIndex:n,featureIndex:u,layoutVertexArrayOffset:0},c,o,s,a,e);return l}loadFeature(t){const{featureIndex:e,sourceLayerIndex:i}=t;this.loadVTLayers();const n=this.sourceLayerCoder.decode(i),r=this.vtFeatures[n];if(r[e])return r[e];const o=this.vtLayers[n].feature(e);return r[e]=o,o}hasLayer(t){for(const e of this.bucketLayerIDs)for(const i of e)if(t===i)return!0;return!1}getId(t,e){let i=t.id;if(this.promoteId){const n="string"==typeof this.promoteId?this.promoteId:this.promoteId[e];null!=n&&(i=t.properties[n]),"boolean"==typeof i&&(i=Number(i))}return i}}function am(t,e,i,n,r){return N(t,(t,o)=>{const s=e instanceof Io?e.get(o):null;return s&&s.evaluate?s.evaluate(i,n,r):s})}function lm(t,e){return e-t}Xr(sm,"FeatureIndex",{omit:["rawTileData","sourceLayerCoder"]});class cm{constructor(t,e){this.width=t,this.height=e,this.nextRow=0,this.image=new Bc({width:t,height:e}),this.positions={},this.uploaded=!1}getDash(t,e){const i=this.getKey(t,e);return this.positions[i]}trim(){const t=this.width,e=this.height=z(this.nextRow);this.image.resize({width:t,height:e})}getKey(t,e){return t.join(",")+e}getDashRanges(t,e,i){const n=[];let r=t.length%2==1?-t[t.length-1]*i:0,o=t[0]*i,s=!0;n.push({left:r,right:o,isDash:s,zeroLength:0===t[0]});let a=t[0];for(let l=1;l<t.length;l++){s=!s;const e=t[l];r=a*i,a+=e,o=a*i,n.push({left:r,right:o,isDash:s,zeroLength:0===e})}return n}addRoundDash(t,e,i){const n=e/2;for(let r=-i;r<=i;r++){const e=this.width*(this.nextRow+i+r);let o=0,s=t[o];for(let a=0;a<this.width;a++){a/s.right>1&&(s=t[++o]);const l=Math.abs(a-s.left),c=Math.abs(a-s.right),u=Math.min(l,c);let h;const d=r/i*(n+1);if(s.isDash){const t=n-Math.abs(d);h=Math.sqrt(u*u+t*t)}else h=n-Math.sqrt(u*u+d*d);this.image.data[e+a]=Math.max(0,Math.min(255,h+128))}}}addRegularDash(t,e){for(let a=t.length-1;a>=0;--a){const e=t[a],i=t[a+1];e.zeroLength?t.splice(a,1):i&&i.isDash===e.isDash&&(i.left=e.left,t.splice(a,1))}const i=t[0],n=t[t.length-1];i.isDash===n.isDash&&(i.left=n.left-this.width,n.right=i.right+this.width);const r=this.width*this.nextRow;let o=0,s=t[o];for(let a=0;a<this.width;a++){a/s.right>1&&(s=t[++o]);const i=Math.abs(a-s.left),n=Math.abs(a-s.right),l=Math.min(i,n);this.image.data[r+a]=Math.max(0,Math.min(255,(s.isDash?l:-l)+e+128))}}addDash(t,e){const i=this.getKey(t,e);if(this.positions[i])return this.positions[i];const n="round"===e,r=n?7:0,o=2*r+1;if(this.nextRow+o>this.height)return q("LineAtlas out of space"),null;0===t.length&&t.push(1);let s=0;for(let c=0;c<t.length;c++)t[c]<0&&(q("Negative value is found in line dasharray, replacing values with 0"),t[c]=0),s+=t[c];if(0!==s){const i=this.width/s,o=this.getDashRanges(t,this.width,i);n?this.addRoundDash(o,i,r):this.addRegularDash(o,"square"===e?.5*i:0)}const a=this.nextRow+r;this.nextRow+=o;const l={tl:[a,r],br:[s,0]};return this.positions[i]=l,l}}Xr(cm,"LineAtlas");const um=1*tf;class hm{constructor(t){const e={},i=[];for(const s in t){const n=t[s],r=e[s]={};for(const t in n.glyphs){const e=n.glyphs[+t];if(!e||0===e.bitmap.width||0===e.bitmap.height)continue;const o=e.metrics.localGlyph?um:1,s={x:0,y:0,w:e.bitmap.width+2*o,h:e.bitmap.height+2*o};i.push(s),r[t]=s}}const{w:n,h:r}=wd(i),o=new Bc({width:n||1,height:r||1});for(const s in t){const i=t[s];for(const t in i.glyphs){const n=i.glyphs[+t];if(!n||0===n.bitmap.width||0===n.bitmap.height)continue;const r=e[s][t],a=n.metrics.localGlyph?um:1;Bc.copy(n.bitmap,o,{x:0,y:0},{x:r.x+a,y:r.y+a},n.bitmap)}}this.image=o,this.positions=e}}Xr(hm,"GlyphAtlas");class dm{constructor(t){this.tileID=new ph(t.tileID.overscaledZ,t.tileID.wrap,t.tileID.canonical.z,t.tileID.canonical.x,t.tileID.canonical.y),this.tileZoom=t.tileZoom,this.uid=t.uid,this.zoom=t.zoom,this.canonical=t.tileID.canonical,this.pixelRatio=t.pixelRatio,this.tileSize=t.tileSize,this.source=t.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=t.showCollisionBoxes,this.collectResourceTiming=!!t.collectResourceTiming,this.returnDependencies=!!t.returnDependencies,this.promoteId=t.promoteId,this.enableTerrain=!!t.enableTerrain,this.isSymbolTile=t.isSymbolTile,this.tileTransform=Mf(t.tileID.canonical,t.projection),this.projection=t.projection}parse(t,e,i,n,r){this.status="parsing",this.data=t,this.collisionBoxArray=new fs;const o=new xp(Object.keys(t.layers).sort()),s=new sm(this.tileID,this.promoteId);s.bucketLayerIDs=[];const a={},l=new cm(256,256),c={featureIndex:s,iconDependencies:{},patternDependencies:{},glyphDependencies:{},lineAtlas:l,availableImages:i},u=e.familiesBySource[this.source];for(const b in u){const e=t.layers[b];if(!e)continue;let n=!1,r=!1;for(const t of u[b])"symbol"===t[0].type?n=!0:r=!0;if(!0===this.isSymbolTile&&!n)continue;if(!1===this.isSymbolTile&&!r)continue;1===e.version&&q(`Vector tile source "${this.source}" layer "${b}" does not use vector tile spec v2 and therefore may have some rendering errors.`);const l=o.encode(b),h=[];for(let t=0;t<e.length;t++){const i=e.feature(t),n=s.getId(i,b);h.push({feature:i,id:n,index:t,sourceLayerIndex:l})}for(const t of u[b]){const e=t[0];void 0!==this.isSymbolTile&&"symbol"===e.type!==this.isSymbolTile||e.minzoom&&this.zoom<Math.floor(e.minzoom)||e.maxzoom&&this.zoom>=e.maxzoom||"none"!==e.visibility&&(fm(t,this.zoom,i),(a[e.id]=e.createBucket({index:s.bucketLayerIDs.length,layers:t,zoom:this.zoom,canonical:this.canonical,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:l,sourceID:this.source,enableTerrain:this.enableTerrain,projection:this.projection.spec,availableImages:i})).populate(h,c,this.tileID.canonical,this.tileTransform),s.bucketLayerIDs.push(t.map(t=>t.id)))}}let h,d,f,p;l.trim();const m={type:"maybePrepare",isSymbolTile:this.isSymbolTile,zoom:this.zoom},g=()=>{if(h)return r(h);if(d&&f&&p){const t=new hm(d),e=new Sd(f,p);for(const n in a){const r=a[n];r instanceof ap?(fm(r.layers,this.zoom,i),bf(r,d,t.positions,f,e.iconPositions,this.showCollisionBoxes,i,this.tileID.canonical,this.tileZoom,this.projection)):r.hasPattern&&(r instanceof kh||r instanceof Ou||r instanceof th)&&(fm(r.layers,this.zoom,i),r.addFeatures(c,this.tileID.canonical,e.patternPositions,i,this.tileTransform))}this.status="done",r(null,{buckets:M(a).filter(t=>!t.isEmpty()),featureIndex:s,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:t.image,lineAtlas:l,imageAtlas:e,glyphMap:this.returnDependencies?d:null,iconMap:this.returnDependencies?f:null,glyphPositions:this.returnDependencies?t.positions:null})}},y=N(c.glyphDependencies,t=>Object.keys(t).map(Number));Object.keys(y).length?n.send("getGlyphs",{uid:this.uid,stacks:y},(t,e)=>{h||(h=t,d=e,g())},void 0,!1,m):d={};const _=Object.keys(c.iconDependencies);_.length?n.send("getImages",{icons:_,source:this.source,tileID:this.tileID,type:"icons"},(t,e)=>{h||(h=t,f=e,g())},void 0,!1,m):f={};const v=Object.keys(c.patternDependencies);v.length?n.send("getImages",{icons:v,source:this.source,tileID:this.tileID,type:"patterns"},(t,e)=>{h||(h=t,p=e,g())},void 0,!1,m):p={},g()}}function fm(t,e,i){const n=new wo(e);for(const r of t)r.recalculate(n,i)}class pm{constructor(t){this.entries={}
vendor: 4,660 bytes, line 39
39,this.scheduler=t}request(t,e,i,n){const r=this.entries[t]=this.entries[t]||{callbacks:[]};if(r.result){const[t,i]=r.result;return this.scheduler?this.scheduler.add(()=>{n(t,i)},e):n(t,i),()=>{}}return r.callbacks.push(n),r.cancel||(r.cancel=i((i,n)=>{r.result=[i,n];for(const t of r.callbacks)this.scheduler?this.scheduler.add(()=>{t(i,n)},e):t(i,n);setTimeout(()=>delete this.entries[t],3e3)})),()=>{r.result||(r.callbacks=r.callbacks.filter(t=>t!==n),r.callbacks.length||(r.cancel(),delete this.entries[t]))}}}function mm(t,e,i){const n=JSON.stringify(t.request);return t.data&&(this.deduped.entries[n]={result:[null,t.data]}),this.deduped.request(n,{type:"parseTile",isSymbolTile:t.isSymbolTile,zoom:t.tileZoom},e=>{const n=dt(t.request,(t,n,r,o)=>{t?e(t):n&&e(null,{vectorTile:i?void 0:new Wu(new gd(n)),rawData:n,cacheControl:r,expires:o})});return()=>{n.cancel(),e()}},e)}const gm=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class ym{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[e,i]=new Uint8Array(t,0,2);if(219!==e)throw new Error("Data does not appear to be in a KDBush format.");const n=i>>4;if(1!==n)throw new Error(`Got v${n} data when expected v1.`);const r=gm[15&i];if(!r)throw new Error("Unrecognized array type.");const[o]=new Uint16Array(t,2,1),[s]=new Uint32Array(t,4,1);return new ym(s,o,r,t)}constructor(t,e=64,i=Float64Array,n){if(isNaN(t)||t<0)throw new Error(`Unpexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+e,2),65535),this.ArrayType=i,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const r=gm.indexOf(this.ArrayType),o=2*t*this.ArrayType.BYTES_PER_ELEMENT,s=t*this.IndexArrayType.BYTES_PER_ELEMENT,a=(8-s%8)%8;if(r<0)throw new Error(`Unexpected typed array class: ${i}.`);n&&n instanceof ArrayBuffer?(this.data=n,this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+s+a,2*t),this._pos=2*t,this._finished=!0):(this.data=new ArrayBuffer(8+o+s+a),this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+s+a,2*t),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+r]),new Uint16Array(this.data,2,1)[0]=e,new Uint32Array(this.data,4,1)[0]=t)}add(t,e){const i=this._pos>>1;return this.ids[i]=i,this.coords[this._pos++]=t,this.coords[this._pos++]=e,i}finish(){const t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return _m(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,e,i,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:r,coords:o,nodeSize:s}=this,a=[0,r.length-1,0],l=[];for(;a.length;){const c=a.pop()||0,u=a.pop()||0,h=a.pop()||0;if(u-h<=s){for(let s=h;s<=u;s++){const a=o[2*s],c=o[2*s+1];a>=t&&a<=i&&c>=e&&c<=n&&l.push(r[s])}continue}const d=h+u>>1,f=o[2*d],p=o[2*d+1];f>=t&&f<=i&&p>=e&&p<=n&&l.push(r[d]),(0===c?t<=f:e<=p)&&(a.push(h),a.push(d-1),a.push(1-c)),(0===c?i>=f:n>=p)&&(a.push(d+1),a.push(u),a.push(1-c))}return l}within(t,e,i){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:n,coords:r,nodeSize:o}=this,s=[0,n.length-1,0],a=[],l=i*i;for(;s.length;){const c=s.pop()||0,u=s.pop()||0,h=s.pop()||0;if(u-h<=o){for(let i=h;i<=u;i++)wm(r[2*i],r[2*i+1],t,e)<=l&&a.push(n[i]);continue}const d=h+u>>1,f=r[2*d],p=r[2*d+1];wm(f,p,t,e)<=l&&a.push(n[d]),(0===c?t-i<=f:e-i<=p)&&(s.push(h),s.push(d-1),s.push(1-c)),(0===c?t+i>=f:e+i>=p)&&(s.push(d+1),s.push(u),s.push(1-c))}return a}}function _m(t,e,i,n,r,o){if(r-n<=i)return;const s=n+r>>1;vm(t,e,s,n,r,o),_m(t,e,i,n,s-1,1-o),_m(t,e,i,s+1,r,1-o)}function vm(t,e,i,n,r,o){for(;r>n;){if(r-n>600){const s=r-n+1,a=i-n+1,l=Math.log(s),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(s-c)/s)*(a-s/2<0?-1:1);vm(t,e,i,Math.max(n,Math.floor(i-a*c/s+u)),Math.min(r,Math.floor(i+(s-a)*c/s+u)),o)}const s=e[2*i+o];let a=n,l=r;for(bm(t,e,n,i),e[2*r+o]>s&&bm(t,e,n,r);a<l;){for(bm(t,e,a,l),a++,l--;e[2*a+o]<s;)a++;for(;e[2*l+o]>s;)l--}e[2*n+o]===s?bm(t,e,n,l):(l++,bm(t,e,l,r)),l<=i&&(n=l+1),i<=l&&(r=l-1)}}function bm(t,e,i,n){xm(t,i,n),xm(e,2*i,2*n),xm(e,2*i+1,2*n+1)}function xm(t,e,i){const n=t[e];t[e]=t[i],t[i]=n}function wm(t,e,i,n){const r=t-i,o=e-n;return r*r+o*o}t.ARRAY_TYPE=ua,t.AUTH_ERR_MSG=_t,t.Aabb=rl,t.Actor=class{constructor(t,i,n){this.target=t,this.parent=i,this.mapId=n,this.callbacks={},this.cancelCallbacks={},B(["receive"],this),this.target.addEventListener("message",this.receive,!1),this.globalScope=Z()?t:e,this.scheduler
vendor: 4,179 bytes, line 39
39=new bp}send(t,e,i,n,r=!1,o){const s=Math.round(1e18*Math.random()).toString(36).substring(0,10);i&&(i.metadata=o,this.callbacks[s]=i);const a=Q(this.globalScope)?void 0:[];return this.target.postMessage({id:s,type:t,hasCallback:!!i,targetMapId:n,mustQueue:r,sourceMapId:this.mapId,data:Kr(e,a)},a),{cancel:()=>{i&&delete this.callbacks[s],this.target.postMessage({id:s,type:"<cancel>",targetMapId:n,sourceMapId:this.mapId})}}}receive(t){const e=t.data,i=e.id;if(i&&(!e.targetMapId||this.mapId===e.targetMapId))if("<cancel>"===e.type){const t=this.cancelCallbacks[i];delete this.cancelCallbacks[i],t&&t.cancel()}else if(e.mustQueue||Z()){const t=this.callbacks[i];this.cancelCallbacks[i]=this.scheduler.add(()=>this.processTask(i,e),t&&t.metadata||{type:"message"})}else this.processTask(i,e)}processTask(t,e){if("<response>"===e.type){const i=this.callbacks[t];delete this.callbacks[t],i&&(e.error?i(Jr(e.error)):i(null,Jr(e.data)))}else{const i=Q(this.globalScope)?void 0:[],n=e.hasCallback?(e,n)=>{delete this.cancelCallbacks[t],this.target.postMessage({id:t,type:"<response>",sourceMapId:this.mapId,error:e?Kr(e):null,data:Kr(n,i)},i)}:t=>{},r=Jr(e.data);if(this.parent[e.type])this.parent[e.type](e.sourceMapId,r,n);else if(this.parent.getWorkerSource){const t=e.type.split(".");this.parent.getWorkerSource(e.sourceMapId,t[0],r.source)[t[1]](r,n)}else n(new Error("Could not find function "+e.type))}}remove(){this.scheduler.remove(),this.target.removeEventListener("message",this.receive,!1)}},t.CanonicalTileID=dh,t.Color=Me,t.ColorMode=Yp,t.CullFaceMode=tm,t.DEMData=Wp,t.DataConstantProperty=Mo,t.DedupedRequest=pm,t.DepthMode=Hp,t.EXTENT=aa,t.Elevation=class{isDataAvailableAtPoint(t){const e=this._source();if(this.isUsingMockSource()||!e||t.y<0||t.y>1)return!1;const i=e.getSource().maxzoom,n=1<<i,r=Math.floor(t.x),o=Math.floor((t.x-r)*n),s=Math.floor(t.y*n),a=this.findDEMTileFor(new ph(i,r,i,o,s));return!(!a||!a.dem)}getAtPointOrZero(t,e=0){return this.getAtPoint(t,e)||0}getAtPoint(t,e,i=!0){if(this.isUsingMockSource())return null;null==e&&(e=null);const n=this._source();if(!n)return e;if(t.y<0||t.y>1)return e;const r=n.getSource().maxzoom,o=1<<r,s=Math.floor(t.x),a=t.x-s,l=new ph(r,s,r,Math.floor(a*o),Math.floor(t.y*o)),c=this.findDEMTileFor(l);if(!c||!c.dem)return e;const u=c.dem,h=1<<c.tileID.canonical.z,d=(a*h-c.tileID.canonical.x)*u.dim,f=(t.y*h-c.tileID.canonical.y)*u.dim,p=Math.floor(d),m=Math.floor(f);return(i?this.exaggeration():1)*Mi(Mi(u.get(p,m),u.get(p,m+1),f-m),Mi(u.get(p+1,m),u.get(p+1,m+1),f-m),d-p)}getAtTileOffset(t,e,i){const n=1<<t.canonical.z;return this.getAtPointOrZero(new Kl(t.wrap+(t.canonical.x+e/aa)/n,(t.canonical.y+i/aa)/n))}getAtTileOffsetFunc(t,e,i,n){return r=>{const o=this.getAtTileOffset(t,r.x,r.y),s=n.upVector(t.canonical,r.x,r.y);return Pa(s,s,o*n.upVectorScale(t.canonical,e,i).metersToTile),s}}getForTilePoints(t,e,i,n){if(this.isUsingMockSource())return!1;const r=om.create(this,t,n);return!!r&&(e.forEach(t=>{t[2]=this.exaggeration()*r.getElevationAt(t[0],t[1],i)}),!0)}getMinMaxForTile(t){if(this.isUsingMockSource())return null;const e=this.findDEMTileFor(t);if(!e||!e.dem)return null;const i=e.dem.tree,n=e.tileID,r=1<<t.canonical.z-n.canonical.z;let o=t.canonical.x/r-n.canonical.x,s=t.canonical.y/r-n.canonical.y,a=0;for(let l=0;l<t.canonical.z-n.canonical.z&&!i.leaves[a];l++){o*=2,s*=2;const t=2*Math.floor(s)+Math.floor(o);a=i.childOffsets[a]+t,o%=1,s%=1}return{min:this.exaggeration()*i.minimums[a],max:this.exaggeration()*i.maximums[a]}}getMinElevationBelowMSL(){throw new Error("Pure virtual method called.")}raycast(t,e,i){throw new Error("Pure virtual method called.")}pointCoordinate(t){throw new Error("Pure virtual method called.")}_source(){throw new Error("Pure virtual method called.")}isUsingMockSource(){throw new Error("Pure virtual method called.")}exaggeration(){throw new Error("Pure virtual method called.")}findDEMTileFor(t){throw new Error("Pure virtual method called.")}get visibleDemTiles(){throw new Error("Getter must be implemented in subclass.")}},t.ErrorEvent=Kt,t.EvaluationParameters=wo,t.Event=Yt,t.Evented=Jt,t.FillExtrusionBucket=th,t.Frustum=nl,t.FrustumCorners=il,t.G
vendor: 4,266 bytes, line 39
39LOBE_RADIUS=al,t.GLOBE_SCALE_MATCH_LATITUDE=45,t.GLOBE_ZOOM_THRESHOLD_MAX=sl,t.GLOBE_ZOOM_THRESHOLD_MIN=ol,t.GlobeSharedBuffers=class{constructor(t){this._createGrid(t),this._createPoles(t)}destroy(){this._poleIndexBuffer.destroy(),this._gridBuffer.destroy(),this._gridIndexBuffer.destroy(),this._poleNorthVertexBuffer.destroy(),this._poleSouthVertexBuffer.destroy();for(const t of this._poleSegments)t.destroy();for(const t of this._gridSegments)t.withSkirts.destroy(),t.withoutSkirts.destroy();if(this._wireframeIndexBuffer){this._wireframeIndexBuffer.destroy();for(const t of this._wireframeSegments)t.destroy()}}_fillGridMeshWithLods(t,e){const i=new Vo,n=new ns,r=[],o=t+1+2,s=e[0]+1,a=e[0]+1+(1+e.length),l=(t,e,i)=>{let n=t===o-1?t-2:0===t?t:t-1;return n+=i?24575:0,[n,e]};for(let c=0;c<o;++c)i.emplaceBack(...l(c,0,!0));for(let c=0;c<s;++c)for(let t=0;t<o;++t)i.emplaceBack(...l(t,c,(0===t||t===o-1)&&!0));for(let c=0;c<e.length;++c){const t=e[c];for(let e=0;e<o;++e)i.emplaceBack(...l(e,t,!0))}for(let c=0;c<e.length;++c){const t=n.length,s=e[c]+1+2,l=new ns;for(let i=0;i<s-1;i++){const t=i===s-2,r=t?o*(a-e.length+c-i):o;for(let e=0;e<o-1;e++){const s=i*o+e;0===i||t||0===e||e===o-2?(l.emplaceBack(s+1,s,s+r),l.emplaceBack(s+r,s+r+1,s+1)):(n.emplaceBack(s+1,s,s+r),n.emplaceBack(s+r,s+r+1,s+1))}}const u=sa.simpleSegment(0,t,i.length,n.length-t);for(let e=0;e<l.uint16.length;e+=3)n.emplaceBack(l.uint16[e],l.uint16[e+1],l.uint16[e+2]);const h=sa.simpleSegment(0,t,i.length,n.length-t);r.push({withoutSkirts:u,withSkirts:h})}return{vertices:i,indices:n,segments:r}}_createGrid(t){const e=this._fillGridMeshWithLods(cl,ul);this._gridSegments=e.segments,this._gridBuffer=t.createVertexBuffer(e.vertices,tl.members),this._gridIndexBuffer=t.createIndexBuffer(e.indices,!0)}_createPoles(t){const e=new ns;for(let r=0;r<=cl;r++)e.emplaceBack(0,r+1,r+2);this._poleIndexBuffer=t.createIndexBuffer(e,!0);const i=new as,n=new as;this._poleSegments=[];for(let r=0,o=0;r<ol;r++){const t=360/(1<<r);i.emplaceBack(0,-al,0,.5,0),n.emplaceBack(0,-al,0,.5,1);for(let e=0;e<=cl;e++){const r=e/cl,o=Mi(0,t,r),[s,a,l]=Sl(jl,Bl,o,al);i.emplaceBack(s,a,l,r,0),n.emplaceBack(s,a,l,r,1)}this._poleSegments.push(sa.simpleSegment(o,0,66,64)),o+=66}this._poleNorthVertexBuffer=t.createVertexBuffer(i,Ka,!1),this._poleSouthVertexBuffer=t.createVertexBuffer(n,Ka,!1)}getGridBuffers(t,e){return[this._gridBuffer,this._gridIndexBuffer,e?this._gridSegments[t].withSkirts:this._gridSegments[t].withoutSkirts]}getPoleBuffers(t){return[this._poleNorthVertexBuffer,this._poleSouthVertexBuffer,this._poleIndexBuffer,this._poleSegments[t]]}getWirefameBuffers(t,e){if(!this._wireframeSegments){const e=new cs,i=cl,n=i+1+2,r=1;this._wireframeSegments=[];for(let t=0,o=0;t<ul.length;t++){const s=ul[t];for(let t=r;t<s+r;t++)for(let o=r;o<i+r;o++){const i=t*n+o;e.emplaceBack(i,i+1),e.emplaceBack(i,i+n),e.emplaceBack(i,i+n+1)}const a=s*i*3;this._wireframeSegments.push(sa.simpleSegment(0,o,(s+1)*n,a)),o+=a}this._wireframeIndexBuffer=t.createIndexBuffer(e)}return[this._gridBuffer,this._wireframeIndexBuffer,this._wireframeSegments[e]]}},t.GlyphManager=nf,t.ImagePosition=Td,t.KDBush=ym,t.LivePerformanceUtils=Nt,t.LngLat=$l,t.LngLatBounds=la,t.LocalGlyphMode=ef,t.MAX_MERCATOR_LATITUDE=Ql,t.MercatorCoordinate=Kl,t.ONE_EM=Bh,t.OverscaledTileID=ph,t.PerformanceMarkers=Ft,t.Point=_,t.Properties=Lo,t.RGBAImage=Fc,t.Ray=el,t.RequestManager=class{constructor(t,e,i){this._transformRequestFn=t,this._customAccessToken=e,this._silenceAuthErrors=!!i,this._createSkuToken()}_createSkuToken(){const t=function(){let t="";for(let e=0;e<10;e++)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",h,t].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=t.token,this._skuTokenExpiresAt=t.tokenExpiresAt}_isSkuTokenExpired(){return Date.now()>this._skuTokenExpiresAt}transformRequest(t,e){return this._transformRequestFn&&this._transformRequestFn(t,e)||{url:t}}normalizeStyleURL(t,e){if(!vt(t))return t;const i=St(t);return i.path="/styles/v1"+i.path,this._makeAPIURL(i,this._customAccessToken||e)}normalizeGlyphsURL(t,e){if(!vt(t))return t;const i=St(t);return i.path="/fonts/v1"+i.path,this._makeAPIURL(i,this._customAccessToken||e)}
vendor: 9,583 bytes, line 39
39normalizeSourceURL(t,e,i,n){if(!vt(t))return t;const r=St(t);return r.path=`/v4/${r.authority}.json`,r.params.push("secure"),i&&r.params.push("language="+i),n&&r.params.push("worldview="+n),this._makeAPIURL(r,this._customAccessToken||e)}normalizeSpriteURL(t,e,i,n){const r=St(t);return vt(t)?(r.path=`/styles/v1${r.path}/sprite${e}${i}`,this._makeAPIURL(r,this._customAccessToken||n)):(r.path+=`${e}${i}`,kt(r))}normalizeTileURL(t,e,i){if(this._isSkuTokenExpired()&&this._createSkuToken(),t&&!vt(t))return t;const n=St(t);n.path=n.path.replace(/(\.(png|jpg)\d*)(?=$)/,`${e||i&&"raster"!==n.authority&&512===i?"@2x":""}${o.supported?".webp":"$1"}`),"raster"===n.authority?n.path=`/${r.RASTER_URL_PREFIX}${n.path}`:(n.path=n.path.replace(/^.+\/v4\//,"/"),n.path=`/${r.TILE_URL_VERSION}${n.path}`);const s=this._customAccessToken||function(t){for(const e of t){const t=e.match(/^access_token=(.*)$/);if(t)return t[1]}return null}(n.params)||r.ACCESS_TOKEN;return r.REQUIRE_ACCESS_TOKEN&&s&&this._skuToken&&n.params.push("sku="+this._skuToken),this._makeAPIURL(n,s)}canonicalizeTileURL(t,e){const i=St(t);if(!i.path.match(/^(\/v4\/|\/raster\/v1\/)/)||!i.path.match(/\.[\w]+$/))return t;let n="mapbox://";i.path.match(/^\/raster\/v1\//)?n+="raster/"+i.path.replace(`/${r.RASTER_URL_PREFIX}/`,""):n+="tiles/"+i.path.replace(`/${r.TILE_URL_VERSION}/`,"");let o=i.params;return e&&(o=o.filter(t=>!t.match(/^access_token=/))),o.length&&(n+="?"+o.join("&")),n}canonicalizeTileset(t,e){const i=!!e&&vt(e),n=[];for(const r of t.tiles||[])bt(r)?n.push(this.canonicalizeTileURL(r,i)):n.push(r);return n}_makeAPIURL(t,e){const i="See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes",n=St(r.API_URL);if(t.protocol=n.protocol,t.authority=n.authority,"http"===t.protocol){const e=t.params.indexOf("secure");e>=0&&t.params.splice(e,1)}if("/"!==n.path&&(t.path=`${n.path}${t.path}`),!r.REQUIRE_ACCESS_TOKEN)return kt(t);if(e=e||r.ACCESS_TOKEN,!this._silenceAuthErrors){if(!e)throw new Error("An API access token is required to use Mapbox GL. "+i);if("s"===e[0])throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+i)}return t.params=t.params.filter(t=>-1===t.indexOf("access_token")),t.params.push("access_token="+(e||"")),kt(t)}},t.ResourceType=lt,t.SegmentVector=sa,t.SourceCache=em,t.StencilMode=Qp,t.StructArrayLayout1ui2=us,t.StructArrayLayout2f1f2i16=ts,t.StructArrayLayout2i4=Vo,t.StructArrayLayout2ui4=cs,t.StructArrayLayout3f12=is,t.StructArrayLayout3ui6=ns,t.StructArrayLayout4i8=Uo,t.StructArrayLayout5f20=as,t.Texture=_p,t.Tile=Dp,t.Transitionable=So,t.Uniform1f=js,t.Uniform1i=class extends zs{constructor(t){super(t),this.current=0}set(t,e,i){this.fetchUniformLocation(t,e)&&this.current!==i&&(this.current=i,this.gl.uniform1i(this.location,i))}},t.Uniform2f=class extends zs{constructor(t){super(t),this.current=[0,0]}set(t,e,i){this.fetchUniformLocation(t,e)&&(i[0]===this.current[0]&&i[1]===this.current[1]||(this.current=i,this.gl.uniform2f(this.location,i[0],i[1])))}},t.Uniform3f=class extends zs{constructor(t){super(t),this.current=[0,0,0]}set(t,e,i){this.fetchUniformLocation(t,e)&&(i[0]===this.current[0]&&i[1]===this.current[1]&&i[2]===this.current[2]||(this.current=i,this.gl.uniform3f(this.location,i[0],i[1],i[2])))}},t.Uniform4f=Bs,t.UniformColor=Fs,t.UniformMatrix2f=class extends zs{constructor(t){super(t),this.current=$s}set(t,e,i){if(this.fetchUniformLocation(t,e))for(let n=0;n<4;n++)if(i[n]!==this.current[n]){this.current=i,this.gl.uniformMatrix2fv(this.location,!1,i);break}}},t.UniformMatrix3f=class extends zs{constructor(t){super(t),this.current=Vs}set(t,e,i){if(this.fetchUniformLocation(t,e))for(let n=0;n<9;n++)if(i[n]!==this.current[n]){this.current=i,this.gl.uniformMatrix3fv(this.location,!1,i);break}}},t.UniformMatrix4f=class extends zs{constructor(t){super(t),this.current=Ns}set(t,e,i){if(this.fetchUniformLocation(t,e)){if(i[12]!==this.current[12]||i[0]!==this.current[0])return this.current=i,void this.gl.uniformMatrix4fv(this.location,!1,i);for(let t=1;t<16;t++)if(i[t]!==this.current[t]){this.current=i,this.gl.uniformMatrix4fv(this.location,!1,i);break}}}},t.UnwrappedTileID=fh,t.ValidationError=ir,t.VectorTileFeature=Zu,t.VectorTileWorkerSource=class extends Jt{constructor(t,e,i,n,r){super(),this.actor=t,this.layerIndex=e,this.availableImages=i,this.loadVectorData=r||mm,this.loading={},this.loaded={},this.deduped=new pm(t.scheduler),this.isSpriteLoaded=n,this.scheduler=t.scheduler}loadTile(t,e){const i=t.uid,n=t&&t.request,r=n&&n.collectResourceTiming,o=this.loading[i]=new dm(t);o.abort=this.loadVectorData(t,(s,a)=>{const l=!this.loading[i];if(delete this.loading[i],l||s||!a)return o.status="done",l||(this.loaded[i]=o),e(s);const c=a.rawData,u={};a.expires&&(u.expires=a.expires),a.cacheControl&&(u.cacheControl=a.cacheControl),o.vectorTile=a.vectorTile||new Wu(new gd(c));const h=()=>{o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,(t,i)=>{if(t||!i)return e(t);const o={};if(r){const t=Ut(n);t.length>0&&(o.resourceTiming=JSON.parse(JSON.stringify(t)))}e(null,P({rawTileData:c.slice(0)},i,u,o))})};this.isSpriteLoaded?h():this.once("isSpriteLoaded",()=>{this.scheduler?this.scheduler.add(h,{type:"parseTile",isSymbolTile:t.isSymbolTile,zoom:t.tileZoom}):h()}),this.loaded=this.loaded||{},this.loaded[i]=o})}reloadTile(t,e){const i=this.loaded,n=t.uid,r=this;if(i&&i[n]){const o=i[n];o.showCollisionBoxes=t.showCollisionBoxes,o.enableTerrain=!!t.enableTerrain,o.projection=t.projection,o.tileTransform=Mf(t.tileID.canonical,t.projection);const s=(t,i)=>{const n=o.reloadCallback;n&&(delete o.reloadCallback,o.parse(o.vectorTile,r.layerIndex,this.availableImages,r.actor,n)),e(t,i)};"parsing"===o.status?o.reloadCallback=s:"done"===o.status&&(o.vectorTile?o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,s):s())}}abortTile(t,e){const i=t.uid,n=this.loading[i];n&&(n.abort&&n.abort(),delete this.loading[i]),e()}removeTile(t,e){const i=this.loaded,n=t.uid;i&&i[n]&&delete i[n],e()}},t.WritingMode=kd,t.ZoomDependentExpression=Kn,t.add=Oa,t.addDynamicAttributes=np,t.adjoint=function(t,e){var i=e[0],n=e[1],r=e[2],o=e[3],s=e[4],a=e[5],l=e[6],c=e[7],u=e[8];return t[0]=s*u-a*c,t[1]=r*c-n*u,t[2]=n*a-r*s,t[3]=a*l-o*u,t[4]=i*u-r*l,t[5]=r*o-i*a,t[6]=o*c-s*l,t[7]=n*l-i*c,t[8]=i*s-n*o,t},t.asyncAll=I,t.bezier=S,t.bindAll=B,t.boundsAttributes=Mp,t.bufferConvexPolygon=function(t,e){const i=[];for(let n=0;n<t.length;n++){const r=C(n-1,-1,t.length-1),o=C(n+1,-1,t.length-1),s=t[n],a=t[o],l=t[r].sub(s).unit(),c=a.sub(s).unit(),u=c.angleWithSep(l.x,l.y),h=l.add(c).unit().mult(-1*e/Math.sin(u/2));i.push(s.add(h))}return i},t.cacheEntryPossiblyAdded=function(t){at++,at>nt&&(t.getActor().send("enforceCacheSizeLimit",it),at=0)},t.calculateGlobeLabelMatrix=function(t,e){const{x:i,y:n}=t.point,r=Pl(i,n,t.worldSize/t._pixelsPerMercatorPixel,0,0);return ma(r,r,Ml(_l(e)))},t.calculateGlobeMatrix=function(t){const{x:e,y:i}=t.point,{lng:n,lat:r}=t._center;return Pl(e,i,t.worldSize,n,r)},t.calculateGlobeMercatorMatrix=function(t){const e=t.pixelsPerMeter,i=e/Wl(1,t.center.lat),n=fa(new Float64Array(16));return ga(n,n,[t.point.x,t.point.y,0]),ya(n,n,[i,i,e]),Float32Array.from(n)},t.circumferenceAtLatitude=Ul,t.clamp=O,t.clearTileCache=function(t){if(!rt())return;const i=e.caches.delete(J);t&&i.catch(t).then(()=>t())},t.clipLine=Qd,t.clone=function(t){var e=new ua(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},t.clone$1=$,t.collisionCircleLayout=jh,t.config=r,t.conjugate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t},t.create=function(){var t=new ua(16);return ua!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},t.create$1=ha,t.createExpression=Qn,t.createLayout=Fo,t.createStyleLayer=function(t){return"custom"===t.type?new pp(t):new yp[t.type](t)},t.cross=za,t.degToRad=x,t.distance=function(t,e){return Math.hypot(e[0]-t[0],e[1]-t[1],e[2]-t[2])},t.div=function(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t[2]=e[2]/i[2],t},t.dot=Ra,t.earthRadius=Fl,t.ease=k,t.easeCubicInOut=T,t.ecefToLatLng=function([t,e,i]){const n=Math.hypot(t,e,i),r=Math.atan2(t,i),o=.5*Math.PI-Math.acos(-e/n);return new $l(w(r),w(o))},t.emitValidationErrors=Ur,t.endsWith=F,t.enforceCacheSizeLimit=function(t){ot(),tt&&tt.then(e=>{e.keys().then(i=>{for(let n=0;n<i.length-t;n++)e.delete(i[n])})})},t.evaluateSizeForFeature=Vh,t.evaluateSizeForZoom=$h,t.evaluateVariableOffset=vf,t.evented=_o,t.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]},t.exactEquals$1=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},t.exported=Ht,t.exported$1=o,t.extend=P,t.extend$1=ee,t.fillExtrusionHeightLift=ah,t.filterObject=V,t.fromMat4=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t},t.fromQuat=function(t,e){var i=e[0],n=e[1],r=e[2],o=e[3],s=i+i,a=n+n,l=r+r,c=i*s,u=n*s,h=n*a,d=r*s,f=r*a,p=r*l,m=o*s,g=o*a,y=o*l;return t[0]=1-h-p,t[1]=u+y,t[2]=d-g,t[3]=0,t[4]=u-y,t[5]=1-c-p,t[6]=f+m,t[7]=0,t[8]=d+g,t[9]=f-m,t[10]=1-c-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},t.fromRotation=function(t,e){var i=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=i,t[2]=0,t[3]=-i,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},t.fromScaling=ba,t.furthestTileCorner=function(t){const e=Math.round((t+45+360)%360/90)%4;return E[e]}
vendor: 4,326 bytes, line 39
39,t.getAABBPointSquareDist=function(t,e,i){let n=0;for(let r=0;r<2;++r){const o=i?i[r]:0;t[r]>o&&(n+=(t[r]-o)*(t[r]-o)),e[r]<o&&(n+=(o-e[r])*(o-e[r]))}return n},t.getAnchorAlignment=Bd,t.getAnchorJustification=xf,t.getBounds=function(t){let e=1/0,i=1/0,n=-1/0,r=-1/0;for(const o of t)e=Math.min(e,o.x),i=Math.min(i,o.y),n=Math.max(n,o.x),r=Math.max(r,o.y);return{min:new _(e,i),max:new _(n,r)}},t.getColumn=K,t.getDefaultExportFromCjs=d,t.getGridMatrix=function(t,e,i,n){const r=e.getNorth(),o=e.getSouth(),s=e.getWest(),a=e.getEast(),l=1<<t.z,c=a-s,u=r-o,h=c/cl,d=-u/ul[i],f=[0,h,0,d,0,0,r,s,0];if(t.z>0){const t=180/n;da(f,f,[t/c+1,0,0,0,t/u+1,0,-.5*t/h,.5*t/d,1])}return f[2]=l,f[5]=t.x,f[8]=t.y,f},t.getImage=yt,t.getJSON=function(t,e){return ht(P(t,{type:"json"}),e)},t.getLatitudinalLod=function(t){const e=Ql-5;t=O(t,-e,e)/e*90;const i=Math.pow(Math.abs(Math.sin(x(t))),3);return Math.round(i*(ul.length-1))},t.getMapSessionAPI=jt,t.getPerformanceMeasurement=Ut,t.getProjection=Kf,t.getRTLTextPluginStatus=vo,t.getReferrer=ut,t.getTilePoint=function(t,{x:e,y:i},n=0){return new _(((e-n)*t.scale-t.x)*aa,(i*t.scale-t.y)*aa)},t.getTileVec3=function(t,e,i=0){return ka(((e.x-i)*t.scale-t.x)*aa,(e.y*t.scale-t.y)*aa,Xl(e.z,e.y))},t.getVideo=function(t,i){const n=e.document.createElement("video");n.muted=!0,n.onloadstart=function(){i(null,n)};for(let r=0;r<t.length;r++){const i=e.document.createElement("source");ft(t[r])||(n.crossOrigin="Anonymous"),i.src=t[r],n.appendChild(i)}return{cancel:()=>{}}},t.globeCenterToScreenPoint=function(t){const e=[0,0,0],i=fa(new Float64Array(16));return ma(i,t.pixelMatrix,t.globeMatrix),ja(e,e,i),new _(e[0],e[1])},t.globeDenormalizeECEF=Ml,t.globeECEFOrigin=function(t,e){const i=[0,0,0];return ja(i,i,Il(_l(e.canonical))),ja(i,i,t),i},t.globeMetersToEcef=pl,t.globeNormalizeECEF=Il,t.globePixelsToTileUnits=function(t,e){return aa/(512*Math.pow(2,t))*Al(_l(e))},t.globePoleMatrixForTile=function(t,e,i){const n=fa(new Float64Array(16)),r=(e/(1<<t)-.5)*Math.PI*2;return va(n,i.globeMatrix,r),Float32Array.from(n)},t.globeTileBounds=_l,t.globeTiltAtLngLat=Ll,t.globeToMercatorTransition=Dl,t.globeUseCustomAntiAliasing=function(t,e,i){const n=Dl(i.zoom),r=t.style.map._antialias,o=!!e.extStandardDerivatives,s=e.extStandardDerivativesForceOff||t.terrain&&t.terrain.exaggeration()>0;return 0===n&&!r&&!s&&o},t.identity=fa,t.identity$1=Za,t.invert=pa,t.isFullscreen=function(){return!!e.document.fullscreenElement||!!e.document.webkitFullscreenElement},t.isLngLatBehindGlobe=Rl,t.isMapAuthenticated=function(t){return Bt.has(t)},t.isMapboxURL=vt,t.isSafariWithAntialiasingBug=function(t){const e=t.navigator?t.navigator.userAgent:null;return!!Q(t)&&e&&(e.match("Version/15.4")||e.match("Version/15.5")||e.match(/CPU (OS|iPhone OS) (15_4|15_5) like Mac OS X/))},t.latFromMercatorY=Hl,t.latLngToECEF=kl,t.len=$a,t.length=Sa,t.length$1=function(t){return Math.hypot(t[0],t[1],t[2],t[3])},t.lngFromMercatorX=Zl,t.loadVectorTile=mm,t.makeRequest=ht,t.mapValue=function(t,e,i,n,r){return O((t-e)/(i-e)*(r-n)+n,n,r)},t.mercatorScale=Yl,t.mercatorXfromLng=ql,t.mercatorYfromLat=Gl,t.mercatorZfromAltitude=Wl,t.mul=wa,t.mul$1=Va,t.multiply=ma,t.multiply$1=da,t.multiply$2=Ca,t.nextPowerOfTwo=z,t.normalize=La,t.normalize$1=Qa,t.normalize$2=qa,t.number=Mi,t.ortho=function(t,e,i,n,r,o,s){var a=1/(e-i),l=1/(n-r),c=1/(o-s);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+i)*a,t[13]=(r+n)*l,t[14]=(s+o)*c,t[15]=1,t},t.pbf=Hh,t.perspective=function(t,e,i,n,r){var o,s=1/Math.tan(e/2);return t[0]=s/i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=r&&r!==1/0?(t[10]=(r+n)*(o=1/(n-r)),t[14]=2*r*n*o):(t[10]=-1,t[14]=-2*n),t},t.pick=function(t,e){const i={};for(let n=0;n<e.length;n++){const r=e[n];r in t&&(i[r]=t[r])}return i},t.plugin=xo,t.pointGeometry=g,t.polesInViewport=function(t){const e=fa(new Float64Array(16));ma(e,t.pixelMatrix,t.globeMatrix);const i=[0,hl,0],n=[0,dl,0];return ja(i,i,e),ja(n,n,e),[i[0]>0&&i[0]<=t.width&&i[1]>0&&i[1]<=t.height&&!Rl(t,new $l(t.center.lat,90)),n[0]>0&&n[0]<=t.width&&n[1]>0&&n[1]<=t.height&&!Rl(t,new $l(t.center.lat,-90))]},t.polygonContainsPoint=bc,t.polygonIntersectsBox=xc,t.polygonIntersectsPolygon=hc,t.polygonizeBounds=function(t,e,
vendor: 7,015 bytes, line 39
39i=0,n=!0){const r=new _(i,i),o=t.sub(r),s=e.add(r),a=[o,new _(s.x,o.y),s,new _(o.x,s.y)];return n&&a.push(o.clone()),a},t.posAttributes=tl,t.postMapLoadEvent=Dt,t.postPerformanceEvent=Rt,t.postTurnstileEvent=Mt,t.potpack=wd,t.prevPowerOfTwo=function(t){return t<=1?1:Math.pow(2,Math.floor(Math.log(t)/Math.LN2))},t.radToDeg=w,t.refProperties=["type","source","source-layer","minzoom","maxzoom","filter","layout"],t.registerForPluginStateChange=function(t){return t({pluginStatus:po,pluginURL:mo}),_o.on("pluginStateChange",t),t},t.removeAuthState=function(t){Bt.delete(t)},t.renderColorRamp=Vc,t.resample=tc,t.rotateX=_a,t.rotateX$1=Ha,t.rotateY=va,t.rotateY$1=Xa,t.rotateZ=function(t,e,i){var n=Math.sin(i),r=Math.cos(i),o=e[0],s=e[1],a=e[2],l=e[3],c=e[4],u=e[5],h=e[6],d=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*r+c*n,t[1]=s*r+u*n,t[2]=a*r+h*n,t[3]=l*r+d*n,t[4]=c*r-o*n,t[5]=u*r-s*n,t[6]=h*r-a*n,t[7]=d*r-l*n,t},t.rotateZ$1=function(t,e,i){i*=.5;var n=e[0],r=e[1],o=e[2],s=e[3],a=Math.sin(i),l=Math.cos(i);return t[0]=n*l+r*a,t[1]=r*l-n*a,t[2]=o*l+s*a,t[3]=s*l-o*a,t},t.scale=ya,t.scale$1=Ua,t.scale$2=Pa,t.scaleAndAdd=Da,t.set=function(t,e,i,n){return t[0]=e,t[1]=i,t[2]=n,t},t.setCacheLimits=function(t,e){it=t,nt=e},t.setColumn=function(t,e,i){t[4*e+0]=i[0],t[4*e+1]=i[1],t[4*e+2]=i[2],t[4*e+3]=i[3]},t.setRTLTextPlugin=function(t,e,i=!1){if(po===co||po===uo||po===ho)throw new Error("setRTLTextPlugin cannot be called multiple times.");mo=Ht.resolveURL(t),po=co,fo=e,yo(),i||bo()},t.smoothstep=A,t.spec=te,t.squaredLength=function(t){var e=t[0],i=t[1],n=t[2];return e*e+i*i+n*n},t.storeAuthState=function(t,e){e?Bt.add(t):Bt.delete(t)},t.sub=Na,t.subtract=Aa,t.symbolSize=Uh,t.tileAABB=function(t,e,i,n,r,o,s,a,l){if("globe"===l.name)return wl(t,e,new dh(i,n,r));const c=Mf({z:i,x:n,y:r},l);return new rl([(o+c.x/c.scale)*e,e*(c.y/c.scale),s],[(o+c.x2/c.scale)*e,e*(c.y2/c.scale),a])},t.tileCornersToBounds=El,t.tileTransform=Mf,t.transformMat3=function(t,e,i){var n=e[0],r=e[1],o=e[2];return t[0]=n*i[0]+r*i[3]+o*i[6],t[1]=n*i[1]+r*i[4]+o*i[7],t[2]=n*i[2]+r*i[5]+o*i[8],t},t.transformMat4=ja,t.transformMat4$1=Ga,t.transformQuat=Ba,t.transitionTileAABBinECEF=bl,t.translate=ga,t.transpose=function(t,e){if(t===e){var i=e[1],n=e[2],r=e[5];t[1]=e[3],t[2]=e[6],t[3]=i,t[5]=e[7],t[6]=n,t[7]=r}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t},t.triggerPluginCompletionEvent=go,t.uniqueId=L,t.updateGlobeVertexNormal=function(t,e,i,n,r){const o=5*e+2;t.float32[o+0]=i,t.float32[o+1]=n,t.float32[o+2]=r},t.validateCustomStyleLayer=function(t){const e=[],i=t.id;return void 0===i&&e.push({message:`layers.${i}: missing required property "id"`}),void 0===t.render&&e.push({message:`layers.${i}: missing required method "render"`}),t.renderingMode&&"2d"!==t.renderingMode&&"3d"!==t.renderingMode&&e.push({message:`layers.${i}: property "renderingMode" must be either "2d" or "3d"`}),e},t.validateFilter=t=>$r(Er(t)),t.validateFog=t=>$r(Rr(t)),t.validateLayer=t=>$r(Ar(t)),t.validateLight=t=>$r(Dr(t)),t.validateSource=t=>$r(Mr(t)),t.validateStyle=Fr,t.validateTerrain=t=>$r(Lr(t)),t.values=M,t.vectorTile=Lu,t.version=i,t.warnOnce=q,t.window=e,t.wrap=C})),n(["./shared"],(function(t){function e(t){if("number"==typeof t||"boolean"==typeof t||"string"==typeof t||null==t)return JSON.stringify(t);if(Array.isArray(t)){let i="[";for(const n of t)i+=e(n)+",";return i+"]"}let i="{";for(const n of Object.keys(t).sort())i+=`${n}:${e(t[n])},`;return i+"}"}function i(i){let n="";for(const r of t.refProperties)n+="/"+e(i[r]);return n}class n{constructor(t){this.keyCache={},t&&this.replace(t)}replace(t){this._layerConfigs={},this._layers={},this.update(t,[])}update(e,n){for(const i of e)this._layerConfigs[i.id]=i,(this._layers[i.id]=t.createStyleLayer(i)).compileFilter(),this.keyCache[i.id]&&delete this.keyCache[i.id];for(const t of n)delete this.keyCache[t],delete this._layerConfigs[t],delete this._layers[t];this.familiesBySource={};const r=function(t,e){const n={};for(let o=0;o<t.length;o++){const r=e&&e[t[o].id]||i(t[o]);e&&(e[t[o].id]=r);let s=n[r];s||(s=n[r]=[]),s.push(t[o])}const r=[];for(const i in n)r.push(n[i]);return r}(t.values(this._layerConfigs),this.keyCache);for(const t of r){const e=t.map(t=>this._layers[t.id]),i=e[0];if("none"===i.visibility)continue;const n=i.source||"";let r=this.familiesBySource[n];r||(r=this.familiesBySource[n]={});const o=i.sourceLayer||"_geojsonTileLayer";let s=r[o];s||(s=r[o]=[]),s.push(e)}}}class r{loadTile(e,i){const{uid:n,encoding:r,rawImageData:o,padding:s,buildQuadTree:a}=e,l=t.window.ImageBitmap&&o instanceof t.window.ImageBitmap?this.getImageData(o,s):o;i(null,new t.DEMData(n,l,r,s<1,a))}getImageData(t,e){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(t.width,t.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d",{willReadFrequently:!0})),this.offscreenCanvas.width=t.width,this.offscreenCanvas.height=t.height,this.offscreenCanvasContext.drawImage(t,0,0,t.width,t.height);const i=this.offscreenCanvasContext.getImageData(-e,-e,t.width+2*e,t.height+2*e);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),i}}function o(t,e){if(0!==t.length){s(t[0],e);for(var i=1;i<t.length;i++)s(t[i],!e)}}function s(t,e){for(var i=0,n=0,r=0,o=t.length,s=o-1;r<o;s=r++){var a=(t[r][0]-t[s][0])*(t[s][1]+t[r][1]),l=i+a;n+=Math.abs(i)>=Math.abs(a)?i-l+a:a-l+i,i=l}i+n>=0!=!!e&&t.reverse()}var a=t.getDefaultExportFromCjs((function t(e,i){var n,r=e&&e.type;if("FeatureCollection"===r)for(n=0;n<e.features.length;n++)t(e.features[n],i);else if("GeometryCollection"===r)for(n=0;n<e.geometries.length;n++)t(e.geometries[n],i);else if("Feature"===r)t(e.geometry,i);else if("Polygon"===r)o(e.coordinates,i);else if("MultiPolygon"===r)for(n=0;n<e.coordinates.length;n++)o(e.coordinates[n],i);return e}));const l=t.VectorTileFeature.prototype.toGeoJSON;var c={exports:{}},u=t.pointGeometry,h=t.vectorTile.VectorTileFeature,d=f;function f(t,e){this.options=e||{},this.features=t,this.length=t.length}function p(t,e){this.id="number"==typeof t.id?t.id:void 0,this.type=t.type,this.rawGeometry=1===t.type?[t.geometry]:t.geometry,this.properties=t.tags,this.extent=e||4096}f.prototype.feature=function(t){return new p(this.features[t],this.options.extent)},p.prototype.loadGeometry=function(){var t=this.rawGeometry;this.geometry=[];for(var e=0;e<t.length;e++){for(var i=t[e],n=[],r=0;r<i.length;r++)n.push(new u(i[r][0],i[r][1]));this.geometry.push(n)}return this.geometry},p.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var t=this.geometry,e=1/0,i=-1/0,n=1/0,r=-1/0,o=0;o<t.length;o++)for(var s=t[o],a=0;a<s.length;a++){var l=s[a];e=Math.min(e,l.x),i=Math.max(i,l.x),n=Math.min(n,l.y),r=Math.max(r,l.y)}return[e,n,i,r]},p.prototype.toGeoJSON=h.prototype.toGeoJSON;var m=t.pbf,g=d;function y(t){var e=new m;
vendor: 5,889 bytes, line 39
39return function(t,e){for(var i in t.layers)e.writeMessage(3,_,t.layers[i])}(t,e),e.finish()}function _(t,e){var i;e.writeVarintField(15,t.version||1),e.writeStringField(1,t.name||""),e.writeVarintField(5,t.extent||4096);var n={keys:[],values:[],keycache:{},valuecache:{}};for(i=0;i<t.length;i++)n.feature=t.feature(i),e.writeMessage(2,v,n);var r=n.keys;for(i=0;i<r.length;i++)e.writeStringField(3,r[i]);var o=n.values;for(i=0;i<o.length;i++)e.writeMessage(4,T,o[i])}function v(t,e){var i=t.feature;void 0!==i.id&&e.writeVarintField(1,i.id),e.writeMessage(2,b,t),e.writeVarintField(3,i.type),e.writeMessage(4,E,i)}function b(t,e){var i=t.feature,n=t.keys,r=t.values,o=t.keycache,s=t.valuecache;for(var a in i.properties){var l=i.properties[a],c=o[a];if(null!==l){void 0===c&&(n.push(a),o[a]=c=n.length-1),e.writeVarint(c);var u=typeof l;"string"!==u&&"boolean"!==u&&"number"!==u&&(l=JSON.stringify(l));var h=u+":"+l,d=s[h];void 0===d&&(r.push(l),s[h]=d=r.length-1),e.writeVarint(d)}}}function x(t,e){return(e<<3)+(7&t)}function w(t){return t<<1^t>>31}function E(t,e){for(var i=t.loadGeometry(),n=t.type,r=0,o=0,s=i.length,a=0;a<s;a++){var l=i[a],c=1;1===n&&(c=l.length),e.writeVarint(x(1,c));for(var u=3===n?l.length-1:l.length,h=0;h<u;h++){1===h&&1!==n&&e.writeVarint(x(2,u-1));var d=l[h].x-r,f=l[h].y-o;e.writeVarint(w(d)),e.writeVarint(w(f)),r+=d,o+=f}3===n&&e.writeVarint(x(7,1))}}function T(t,e){var i=typeof t;"string"===i?e.writeStringField(1,t):"boolean"===i?e.writeBooleanField(7,t):"number"===i&&(t%1!=0?e.writeDoubleField(3,t):t<0?e.writeSVarintField(6,t):e.writeVarintField(5,t))}c.exports=y,c.exports.fromVectorTileJs=y,c.exports.fromGeojsonVt=function(t,e){e=e||{};var i={};for(var n in t)i[n]=new g(t[n].features,e),i[n].name=n,i[n].version=e.version,i[n].extent=e.extent;return y({layers:i})},c.exports.GeoJSONWrapper=g;var S=t.getDefaultExportFromCjs(c.exports);const k={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},O=Math.fround||(A=new Float32Array(1),t=>(A[0]=+t,A[0]));var A;const C=3,I=5,M=6;class P{constructor(t){this.options=Object.assign(Object.create(k),t),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(t){const{log:e,minZoom:i,maxZoom:n}=this.options;e&&console.time("total time");const r=`prepare ${t.length} points`;e&&console.time(r),this.points=t;const o=[];for(let a=0;a<t.length;a++){const e=t[a];if(!e.geometry)continue;const[i,n]=e.geometry.coordinates,r=O(R(i)),s=O(z(n));o.push(r,s,1/0,a,-1,1),this.options.reduce&&o.push(0)}let s=this.trees[n+1]=this._createTree(o);e&&console.timeEnd(r);for(let a=n;a>=i;a--){const t=+Date.now();s=this.trees[a]=this._createTree(this._cluster(s,a)),e&&console.log("z%d: %d clusters in %dms",a,s.numItems,+Date.now()-t)}return e&&console.timeEnd("total time"),this}getClusters(t,e){let i=((t[0]+180)%360+360)%360-180;const n=Math.max(-90,Math.min(90,t[1]));let r=180===t[2]?180:((t[2]+180)%360+360)%360-180;const o=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)i=-180,r=180;else if(i>r){const t=this.getClusters([i,n,180,o],e),s=this.getClusters([-180,n,r,o],e);return t.concat(s)}const s=this.trees[this._limitZoom(e)],a=s.range(R(i),z(o),R(r),z(n)),l=s.data,c=[];for(const u of a){const t=this.stride*u;c.push(l[t+I]>1?D(l,t,this.clusterProps):this.points[l[t+C]])}return c}getChildren(t){const e=this._getOriginId(t),i=this._getOriginZoom(t),n="No cluster with the specified id.",r=this.trees[i];if(!r)throw new Error(n);const o=r.data;if(e*this.stride>=o.length)throw new Error(n);const s=this.options.radius/(this.options.extent*Math.pow(2,i-1)),a=r.within(o[e*this.stride],o[e*this.stride+1],s),l=[];for(const c of a){const e=c*this.stride;o[e+4]===t&&l.push(o[e+I]>1?D(o,e,this.clusterProps):this.points[o[e+C]])}if(0===l.length)throw new Error(n);return l}getLeaves(t,e,i){const n=[];return this._appendLeaves(n,t,e=e||10,i=i||0,0),n}getTile(t,e,i){const n=this.trees[this._limitZoom(t)],r=Math.pow(2,t),{extent:o,radius:s}=this.options,a=s/o,l=(i-a)/r,c=(i+1+a)/r,u={features:[]};return this._addTileFeatures(n.range((e-a)/r,l,(e+1+a)/r,c),n.data,e,i,r,u),0===e&&this._addTileFeatures(n.range(1-a/r,l,1,c),n.data,r,i,r,u),e===r-1&&this._addTileFeatures(n.range(0,l,a/r,c),n.data,-1,i,r,u),u.features.length?u:null}getClusterExpansionZoom(t){let e=this._getOriginZoom(t)-1;for(;e<=this.options.maxZoom;){const i=this.getChildren(t);if(e++,1!==i.length)break;t=i[0].properties.cluster_id}return e}_appendLeaves(t,e,i,n,r){const o=this.getChildren(e);for(const s of o){const e=s.properties;if(e&&e.cluster?r+e.point_count<=n?r+=e.point_count:r=this._appendLeaves(t,e.cluster_id,i,n,r):r<n?r++:t.push(s),t.length===i)break}return r}_createTree(e){const i=new t.KDBush(e.length/this.stride|0,this.options.nodeSize,Float32Array);for(let t=0;t<e.length;t+=this.stride)i.add(e[t],e[t+1]);return i.finish(),i.data=e,i}_addTileFeatures(t,e,i,n,r,o){for(const s of t){const t=s*this.stride,a=e[t+I]>1;let l,c,u;if(a)l=L(e,t,this.clusterProps),c=e[t],u=e[t+1];else{const i=this.points[e[t+C]];l=i.properties;const[n,r]=i.geometry.coordinates;c=R(n),u=z(r)}const h={type:1,geometry:[[Math.round(this.options.extent*(c*r-i)),Math.round(this.options.extent*(u*r-n))]],tags:l};let d;d=a||this.options.generateId?e[t+C]:this.points[e[t+C]].id,void 0!==d&&(h.id=d),o.features.push(h)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,e){const{radius:i,extent:n,reduce:r,minPoints:o}=this.options,s=i/(n*Math.pow(2,e)),a=t.data,l=[],c=this.stride;for(let u=0;u<a.length;u+=c){if(a[u+2]<=e)continue;a[u+2]=e;const i=a[u],n=a[u+1],h=t.within(a[u],a[u+1],s),d=a[u+I];let f=d;for(const t of h){const i=t*c;a[i+2]>e&&(f+=a[i+I])}if(f>d&&f>=o){let t,o=i*d,s=n*d,p=-1;const m=((u/c|0)<<5)+(e+1)+this.points.length;for(const i of h){const n=i*c;
vendor: 20,489 bytes, line 39
39if(a[n+2]<=e)continue;a[n+2]=e;const l=a[n+I];o+=a[n]*l,s+=a[n+1]*l,a[n+4]=m,r&&(t||(t=this._map(a,u,!0),p=this.clusterProps.length,this.clusterProps.push(t)),r(t,this._map(a,n)))}a[u+4]=m,l.push(o/f,s/f,1/0,m,-1,f),r&&l.push(p)}else{for(let t=0;t<c;t++)l.push(a[u+t]);if(f>1)for(const t of h){const i=t*c;if(!(a[i+2]<=e)){a[i+2]=e;for(let t=0;t<c;t++)l.push(a[i+t])}}}}return l}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e,i){if(t[e+I]>1){const n=this.clusterProps[t[e+M]];return i?Object.assign({},n):n}const n=this.points[t[e+C]].properties,r=this.options.map(n);return i&&r===n?Object.assign({},r):r}}function D(t,e,i){return{type:"Feature",id:t[e+C],properties:L(t,e,i),geometry:{type:"Point",coordinates:[(n=t[e],360*(n-.5)),j(t[e+1])]}};var n}function L(t,e,i){const n=t[e+I],r=n>=1e4?Math.round(n/1e3)+"k":n>=1e3?Math.round(n/100)/10+"k":n,o=t[e+M],s=-1===o?{}:Object.assign({},i[o]);return Object.assign(s,{cluster:!0,cluster_id:t[e+C],point_count:n,point_count_abbreviated:r})}function R(t){return t/360+.5}function z(t){const e=Math.sin(t*Math.PI/180),i=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return i<0?0:i>1?1:i}function j(t){const e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}function B(t,e,i,n){for(var r,o=n,s=i-e>>1,a=i-e,l=t[e],c=t[e+1],u=t[i],h=t[i+1],d=e+3;d<i;d+=3){var f=F(t[d],t[d+1],l,c,u,h);if(f>o)r=d,o=f;else if(f===o){var p=Math.abs(d-s);p<a&&(r=d,a=p)}}o>n&&(r-e>3&&B(t,e,r,n),t[r+2]=o,i-r>3&&B(t,r,i,n))}function F(t,e,i,n,r,o){var s=r-i,a=o-n;if(0!==s||0!==a){var l=((t-i)*s+(e-n)*a)/(s*s+a*a);l>1?(i=r,n=o):l>0&&(i+=s*l,n+=a*l)}return(s=t-i)*s+(a=e-n)*a}function N(t,e,i,n){var r={id:void 0===t?null:t,type:e,geometry:i,tags:n,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(t){var e=t.geometry,i=t.type;if("Point"===i||"MultiPoint"===i||"LineString"===i)V(t,e);else if("Polygon"===i||"MultiLineString"===i)for(var n=0;n<e.length;n++)V(t,e[n]);else if("MultiPolygon"===i)for(n=0;n<e.length;n++)for(var r=0;r<e[n].length;r++)V(t,e[n][r])}(r),r}function V(t,e){for(var i=0;i<e.length;i+=3)t.minX=Math.min(t.minX,e[i]),t.minY=Math.min(t.minY,e[i+1]),t.maxX=Math.max(t.maxX,e[i]),t.maxY=Math.max(t.maxY,e[i+1])}function $(t,e,i,n){if(e.geometry){var r=e.geometry.coordinates,o=e.geometry.type,s=Math.pow(i.tolerance/((1<<i.maxZoom)*i.extent),2),a=[],l=e.id;if(i.promoteId?l=e.properties[i.promoteId]:i.generateId&&(l=n||0),"Point"===o)U(r,a);else if("MultiPoint"===o)for(var c=0;c<r.length;c++)U(r[c],a);else if("LineString"===o)q(r,a,s,!1);else if("MultiLineString"===o){if(i.lineMetrics){for(c=0;c<r.length;c++)q(r[c],a=[],s,!1),t.push(N(l,"LineString",a,e.properties));return}G(r,a,s,!1)}else if("Polygon"===o)G(r,a,s,!0);else{if("MultiPolygon"!==o){if("GeometryCollection"===o){for(c=0;c<e.geometry.geometries.length;c++)$(t,{id:l,geometry:e.geometry.geometries[c],properties:e.properties},i,n);return}throw new Error("Input data is not a valid GeoJSON object.")}for(c=0;c<r.length;c++){var u=[];G(r[c],u,s,!0),a.push(u)}}t.push(N(l,o,a,e.properties))}}function U(t,e){e.push(W(t[0])),e.push(Z(t[1])),e.push(0)}function q(t,e,i,n){for(var r,o,s=0,a=0;a<t.length;a++){var l=W(t[a][0]),c=Z(t[a][1]);e.push(l),e.push(c),e.push(0),a>0&&(s+=n?(r*c-l*o)/2:Math.sqrt(Math.pow(l-r,2)+Math.pow(c-o,2))),r=l,o=c}var u=e.length-3;e[2]=1,B(e,0,u,i),e[u+2]=1,e.size=Math.abs(s),e.start=0,e.end=e.size}function G(t,e,i,n){for(var r=0;r<t.length;r++){var o=[];q(t[r],o,i,n),e.push(o)}}function W(t){return t/360+.5}function Z(t){var e=Math.sin(t*Math.PI/180),i=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return i<0?0:i>1?1:i}function H(t,e,i,n,r,o,s,a){if(n/=e,o>=(i/=e)&&s<n)return t;if(s<i||o>=n)return null;for(var l=[],c=0;c<t.length;c++){var u=t[c],h=u.geometry,d=u.type,f=0===r?u.minX:u.minY,p=0===r?u.maxX:u.maxY;if(f>=i&&p<n)l.push(u);else if(!(p<i||f>=n)){var m=[];if("Point"===d||"MultiPoint"===d)X(h,m,i,n,r);else if("LineString"===d)Q(h,m,i,n,r,!1,a.lineMetrics);else if("MultiLineString"===d)K(h,m,i,n,r,!1);else if("Polygon"===d)K(h,m,i,n,r,!0);else if("MultiPolygon"===d)for(var g=0;g<h.length;g++){var y=[];K(h[g],y,i,n,r,!0),y.length&&m.push(y)}if(m.length){if(a.lineMetrics&&"LineString"===d){for(g=0;g<m.length;g++)l.push(N(u.id,d,m[g],u.tags));continue}"LineString"!==d&&"MultiLineString"!==d||(1===m.length?(d="LineString",m=m[0]):d="MultiLineString"),"Point"!==d&&"MultiPoint"!==d||(d=3===m.length?"Point":"MultiPoint"),l.push(N(u.id,d,m,u.tags))}}}return l.length?l:null}function X(t,e,i,n,r){for(var o=0;o<t.length;o+=3){var s=t[o+r];s>=i&&s<=n&&(e.push(t[o]),e.push(t[o+1]),e.push(t[o+2]))}}function Q(t,e,i,n,r,o,s){for(var a,l,c=Y(t),u=0===r?tt:et,h=t.start,d=0;d<t.length-3;d+=3){var f=t[d],p=t[d+1],m=t[d+2],g=t[d+3],y=t[d+4],_=0===r?f:p,v=0===r?g:y,b=!1;s&&(a=Math.sqrt(Math.pow(f-g,2)+Math.pow(p-y,2))),_<i?v>i&&(l=u(c,f,p,g,y,i),s&&(c.start=h+a*l)):_>n?v<n&&(l=u(c,f,p,g,y,n),s&&(c.start=h+a*l)):J(c,f,p,m),v<i&&_>=i&&(l=u(c,f,p,g,y,i),b=!0),v>n&&_<=n&&(l=u(c,f,p,g,y,n),b=!0),!o&&b&&(s&&(c.end=h+a*l),e.push(c),c=Y(t)),s&&(h+=a)}var x=t.length-3;f=t[x],p=t[x+1],m=t[x+2],(_=0===r?f:p)>=i&&_<=n&&J(c,f,p,m),x=c.length-3,o&&x>=3&&(c[x]!==c[0]||c[x+1]!==c[1])&&J(c,c[0],c[1],c[2]),c.length&&e.push(c)}function Y(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function K(t,e,i,n,r,o){for(var s=0;s<t.length;s++)Q(t[s],e,i,n,r,o,!1)}function J(t,e,i,n){t.push(e),t.push(i),t.push(n)}function tt(t,e,i,n,r,o){var s=(o-e)/(n-e);return t.push(o),t.push(i+(r-i)*s),t.push(1),s}function et(t,e,i,n,r,o){var s=(o-i)/(r-i);return t.push(e+(n-e)*s),t.push(o),t.push(1),s}function it(t,e){for(var i=[],n=0;n<t.length;n++){var r,o=t[n],s=o.type;if("Point"===s||"MultiPoint"===s||"LineString"===s)r=nt(o.geometry,e);else if("MultiLineString"===s||"Polygon"===s){r=[];for(var a=0;a<o.geometry.length;a++)r.push(nt(o.geometry[a],e))}else if("MultiPolygon"===s)for(r=[],a=0;a<o.geometry.length;a++){for(var l=[],c=0;c<o.geometry[a].length;c++)l.push(nt(o.geometry[a][c],e));r.push(l)}i.push(N(o.id,s,r,o.tags))}return i}function nt(t,e){var i=[];i.size=t.size,void 0!==t.start&&(i.start=t.start,i.end=t.end);for(var n=0;n<t.length;n+=3)i.push(t[n]+e,t[n+1],t[n+2]);return i}function rt(t,e){if(t.transformed)return t;var i,n,r,o=1<<t.z,s=t.x,a=t.y;for(i=0;i<t.features.length;i++){var l=t.features[i],c=l.geometry,u=l.type;if(l.geometry=[],1===u)for(n=0;n<c.length;n+=2)l.geometry.push(ot(c[n],c[n+1],e,o,s,a));else for(n=0;n<c.length;n++){var h=[];for(r=0;r<c[n].length;r+=2)h.push(ot(c[n][r],c[n][r+1],e,o,s,a));l.geometry.push(h)}}return t.transformed=!0,t}function ot(t,e,i,n,r,o){return[Math.round(i*(t*n-r)),Math.round(i*(e*n-o))]}function st(t,e,i,n,r){for(var o=e===r.maxZoom?0:r.tolerance/((1<<e)*r.extent),s={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:i,y:n,z:e,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},a=0;a<t.length;a++){s.numFeatures++,at(s,t[a],o,r);var l=t[a].minX,c=t[a].minY,u=t[a].maxX,h=t[a].maxY;l<s.minX&&(s.minX=l),c<s.minY&&(s.minY=c),u>s.maxX&&(s.maxX=u),h>s.maxY&&(s.maxY=h)}return s}function at(t,e,i,n){var r=e.geometry,o=e.type,s=[];if("Point"===o||"MultiPoint"===o)for(var a=0;a<r.length;a+=3)s.push(r[a]),s.push(r[a+1]),t.numPoints++,t.numSimplified++;else if("LineString"===o)lt(s,r,t,i,!1,!1);else if("MultiLineString"===o||"Polygon"===o)for(a=0;a<r.length;a++)lt(s,r[a],t,i,"Polygon"===o,0===a);else if("MultiPolygon"===o)for(var l=0;l<r.length;l++){var c=r[l];for(a=0;a<c.length;a++)lt(s,c[a],t,i,!0,0===a)}if(s.length){var u=e.tags||null;if("LineString"===o&&n.lineMetrics){for(var h in u={},e.tags)u[h]=e.tags[h];u.mapbox_clip_start=r.start/r.size,u.mapbox_clip_end=r.end/r.size}var d={geometry:s,type:"Polygon"===o||"MultiPolygon"===o?3:"LineString"===o||"MultiLineString"===o?2:1,tags:u};null!==e.id&&(d.id=e.id),t.features.push(d)}}function lt(t,e,i,n,r,o){var s=n*n;if(n>0&&e.size<(r?s:n))i.numPoints+=e.length/3;else{for(var a=[],l=0;l<e.length;l+=3)(0===n||e[l+2]>s)&&(i.numSimplified++,a.push(e[l]),a.push(e[l+1])),i.numPoints++;r&&function(t,e){for(var i=0,n=0,r=t.length,o=r-2;n<r;o=n,n+=2)i+=(t[n]-t[o])*(t[n+1]+t[o+1]);if(i>0===e)for(n=0,r=t.length;n<r/2;n+=2){var s=t[n],a=t[n+1];t[n]=t[r-2-n],t[n+1]=t[r-1-n],t[r-2-n]=s,t[r-1-n]=a}}(a,o),t.push(a)}}function ct(t,e){var i=(e=this.options=function(t,e){for(var i in e)t[i]=e[i];return t}(Object.create(this.options),e)).debug;if(i&&console.time("preprocess data"),e.maxZoom<0||e.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(e.promoteId&&e.generateId)throw new Error("promoteId and generateId cannot be used together.");var n=function(t,e){var i=[];if("FeatureCollection"===t.type)for(var n=0;n<t.features.length;n++)$(i,t.features[n],e,n);else $(i,"Feature"===t.type?t:{geometry:t},e);return i}(t,e);this.tiles={},this.tileCoords=[],i&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",e.indexMaxZoom,e.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),n=function(t,e){var i=e.buffer/e.extent,n=t,r=H(t,1,-1-i,i,0,-1,2,e),o=H(t,1,1-i,2+i,0,-1,2,e);return(r||o)&&(n=H(t,1,-i,1+i,0,-1,2,e)||[],r&&(n=it(r,1).concat(n)),o&&(n=n.concat(it(o,-1)))),n}(n,e),n.length&&this.splitTile(n,0,0,0),i&&(n.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}function ut(t,e,i){return 32*((1<<t)*i+e)+t}function ht(e,i){const n=e.tileID.canonical;if(!this._geoJSONIndex)return i(null,null);const r=this._geoJSONIndex.getTile(n.z,n.x,n.y);if(!r)return i(null,null);const o=new class{constructor(e){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=t.EXTENT,this.length=e.length,this._features=e}feature(e){return new class{constructor(e){this._feature=e,this.extent=t.EXTENT,this.type=e.type,this.properties=e.tags,"id"in e&&!isNaN(e.id)&&(this.id=parseInt(e.id,10))}loadGeometry(){if(1===this._feature.type){const e=[];for(const i of this._feature.geometry)e.push([new t.Point(i[0],i[1])]);return e}{const e=[];for(const i of this._feature.geometry){const n=[];for(const e of i)n.push(new t.Point(e[0],e[1]));e.push(n)}return e}}toGeoJSON(t,e,i){return l.call(this,t,e,i)}}(this._features[e])}}(r.features);let s=S(o);0===s.byteOffset&&s.byteLength===s.buffer.byteLength||(s=new Uint8Array(s)),i(null,{vectorTile:o,rawData:s.buffer})}ct.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},ct.prototype.splitTile=function(t,e,i,n,r,o,s){for(var a=[t,e,i,n],l=this.options,c=l.debug;a.length;){n=a.pop(),i=a.pop(),e=a.pop(),t=a.pop();var u=1<<e,h=ut(e,i,n),d=this.tiles[h];if(!d&&(c>1&&console.time("creation"),d=this.tiles[h]=st(t,e,i,n,l),this.tileCoords.push({z:e,x:i,y:n}),c)){c>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",e,i,n,d.numFeatures,d.numPoints,d.numSimplified),console.timeEnd("creation"));var f="z"+e;this.stats[f]=(this.stats[f]||0)+1,this.total++}if(d.source=t,r){if(e===l.maxZoom||e===r)continue;var p=1<<r-e;if(i!==Math.floor(o/p)||n!==Math.floor(s/p))continue}else if(e===l.indexMaxZoom||d.numPoints<=l.indexMaxPoints)continue;if(d.source=null,0!==t.length){c>1&&console.time("clipping");var m,g,y,_,v,b,x=.5*l.buffer/l.extent,w=.5-x,E=.5+x,T=1+x;m=g=y=_=null,v=H(t,u,i-x,i+E,0,d.minX,d.maxX,l),b=H(t,u,i+w,i+T,0,d.minX,d.maxX,l),t=null,v&&(m=H(v,u,n-x,n+E,1,d.minY,d.maxY,l),g=H(v,u,n+w,n+T,1,d.minY,d.maxY,l),v=null),b&&(y=H(b,u,n-x,n+E,1,d.minY,d.maxY,l),_=H(b,u,n+w,n+T,1,d.minY,d.maxY,l),b=null),c>1&&console.timeEnd("clipping"),a.push(m||[],e+1,2*i,2*n),a.push(g||[],e+1,2*i,2*n+1),a.push(y||[],e+1,2*i+1,2*n),a.push(_||[],e+1,2*i+1,2*n+1)}}},ct.prototype.getTile=function(t,e,i){var n=this.options,r=n.extent,o=n.debug;if(t<0||t>24)return null;var s=1<<t,a=ut(t,e=(e%s+s)%s,i);if(this.tiles[a])return rt(this.tiles[a],r);o>1&&console.log("drilling down to z%d-%d-%d",t,e,i);for(var l,c=t,u=e,h=i;!l&&c>0;)c--,u=Math.floor(u/2),h=Math.floor(h/2),l=this.tiles[ut(c,u,h)];return l&&l.source?(o>1&&console.log("found parent tile z%d-%d-%d",c,u,h),o>1&&console.time("drilling down"),this.splitTile(l.source,c,u,h,t,e,i),o>1&&console.timeEnd("drilling down"),this.tiles[a]?rt(this.tiles[a],r):null):null};class dt extends t.VectorTileWorkerSource{constructor(t,e,i,n,r){super(t,e,i,n,ht),r&&(this.loadGeoJSON=r)}loadData(e,i){const n=e&&e.request,r=n&&n.collectResourceTiming;this.loadGeoJSON(e,(o,s)=>{if(o||!s)return i(o);if("object"!=typeof s)return i(new Error(`Input data given to '${e.source}' is not a valid GeoJSON object.`));{a(s,!0);try{if(e.filter){const i=t.createExpression(e.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===i.result)throw new Error(i.value.map(t=>`${t.key}: ${t.message}`).join(", "));const n=s.features.filter(t=>i.value.evaluate({zoom:0},t));s={type:"FeatureCollection",features:n}}this._geoJSONIndex=e.cluster?new P(function({superclusterOptions:e,clusterProperties:i}){if(!i||!e)return e;const n={},r={},o={accumulated:null,zoom:0},s={properties:null},a=Object.keys(i);for(const l of a){const[e,o]=i[l],s=t.createExpression(o),a=t.createExpression("string"==typeof e?[e,["accumulated"],["get",l]]:e);n[l]=s.value,r[l]=a.value}return e.map=t=>{s.properties=t;const e={};for(const i of a)e[i]=n[i].evaluate(o,s);return e},e.reduce=(t,e)=>{s.properties=e;for(const i of a)o.accumulated=t[i],t[i]=r[i].evaluate(o,s)},e}(e)).load(s.features):function(t,e){return new ct(t,e)}(s,e.geojsonVtOptions)}catch(o){return i(o)}this.loaded={};const l={};if(r){const i=t.getPerformanceMeasurement(n);i&&(l.resourceTiming={},l.resourceTiming[e.source]=JSON.parse(JSON.stringify(i)))}i(null,l)}})}reloadTile(t,e){const i=this.loaded;return i&&i[t.uid]?super.reloadTile(t,e):this.loadTile(t,e)}loadGeoJSON(e,i){if(e.request)t.getJSON(e.request,i);else{if("string"!=typeof e.data)return i(new Error(`Input data given to '${e.source}' is not a valid GeoJSON object.`));try{return i(null,JSON.parse(e.data))}catch(t){return i(new Error(`Input data given to '${e.source}' is not a valid GeoJSON object.`))}}}getClusterExpansionZoom(t,e){try{e(null,this._geoJSONIndex.getClusterExpansionZoom(t.clusterId))}catch(t){e(t)}}getClusterChildren(t,e){try{e(null,this._geoJSONIndex.getChildren(t.clusterId))}catch(t){e(t)}}getClusterLeaves(t,e){try{e(null,this._geoJSONIndex.getLeaves(t.clusterId,t.limit,t.offset))}catch(t){e(t)}}}class ft{constructor(e){this.self=e,this.actor=new t.Actor(e,this),this.layerIndexes={},this.availableImages={},this.isSpriteLoaded={},this.projections={},this.defaultProjection=t.getProjection({name:"mercator"}),this.workerSourceTypes={vector:t.VectorTileWorkerSource,geojson:dt},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=(t,e)=>{if(this.workerSourceTypes[t])throw new Error(`Worker source with name "${t}" already registered.`);this.workerSourceTypes[t]=e},this.self.registerRTLTextPlugin=e=>{if(t.plugin.isParsed())throw new Error("RTL text plugin already registered.");t.plugin.applyArabicShaping=e.applyArabicShaping,t.plugin.processBidirectionalText=e.processBidirectionalText,t.plugin.processStyledBidirectionalText=e.processStyledBidirectionalText}}clearCaches(t,e,i){delete this.layerIndexes[t],delete this.availableImages[t],delete this.workerSources[t],delete this.demWorkerSources[t],i()}checkIfReady(t,e,i){i()}setReferrer(t,e){this.referrer=e}spriteLoaded(e,i){this.isSpriteLoaded[e]=i;for(const n in this.workerSources[e]){const r=this.workerSources[e][n];for(const e in r)r[e]instanceof t.VectorTileWorkerSource&&(r[e].isSpriteLoaded=i,r[e].fire(new t.Event("isSpriteLoaded")))}}setImages(t,e,i){this.availableImages[t]=e;for(const n in this.workerSources[t]){const i=this.workerSources[t][n];for(const t in i)i[t].availableImages=e}i()}enableTerrain(t,e,i){this.terrain=e,i()}setProjection(e,i){this.projections[e]=t.getProjection(i)}setLayers(t,e,i){this.getLayerIndex(t).replace(e),i()}updateLayers(t,e,i){this.getLayerIndex(t).update(e.layers,e.removedIds),i()}loadTile(e,i,n){const r=this.enableTerrain?t.extend({enableTerrain:this.terrain},i):i;r.projection=this.projections[e]||this.defaultProjection,this.getWorkerSource(e,i.type,i.source).loadTile(r,n)}loadDEMTile(e,i,n){const r=this.enableTerrain?t.extend({buildQuadTree:this.terrain},i):i;this.getDEMWorkerSource(e,i.source).loadTile(r,n)}reloadTile(e,i,n){const r=this.enableTerrain?t.extend({enableTerrain:this.terrain},i):i;r.projection=this.projections[e]||this.defaultProjection,this.getWorkerSource(e,i.type,i.source).reloadTile(r,n)}abortTile(t,e,i){this.getWorkerSource(t,e.type,e.source).abortTile(e,i)}removeTile(t,e,i){this.getWorkerSource(t,e.type,e.source).removeTile(e,i)}removeSource(t,e,i){if(!this.workerSources[t]||!this.workerSources[t][e.type]||!this.workerSources[t][e.type][e.source])return;const n=this.workerSources[t][e.type][e.source];delete this.workerSources[t][e.type][e.source],void 0!==n.removeSource?n.removeSource(e,i):i()}loadWorkerSource(t,e,i){try{this.self.importScripts(e.url),i()}catch(t){i(t.toString())}}syncRTLPluginState(e,i,n){try{t.plugin.setState(i);const e=t.plugin.getPluginURL();if(t.plugin.isLoaded()&&!t.plugin.isParsed()&&null!=e){this.self.importScripts(e);const i=t.plugin.isParsed();n(i?void 0:new Error("RTL Text Plugin failed to import scripts from "+e),i)}}catch(t){n(t.toString())}}getAvailableImages(t){let e=this.availableImages[t];return e||(e=[]),e}getLayerIndex(t){let e=this.layerIndexes[t];return e||(e=this.layerIndexes[t]=new n),e}getWorkerSource(t,e,i){if(this.workerSources[t]||(this.workerSources[t]={}),this.workerSources[t][e]||(this.workerSources[t][e]={}),!this.workerSources[t][e][i]){const n={send:(e,i,n,r,o,s)=>{this.actor.send(e,i,n,t,o,s)},scheduler:this.actor.scheduler};this.workerSources[t][e][i]=new this.workerSourceTypes[e](n,this.getLayerIndex(t),this.getAvailableImages(t),this.isSpriteLoaded[t])}return this.workerSources[t][e][i]}getDEMWorkerSource(t,e){return this.demWorkerSources[t]||(this.demWorkerSources[t]={}),this.demWorkerSources[t][e]||(this.demWorkerSources[t][e]=new r),this.demWorkerSources[t][e]}enforceCacheSizeLimit(e,i){t.enforceCacheSizeLimit(i)}getWorkerPerformanceMetrics(t,e,i){i(void 0,void 0)}}return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope&&(self.worker=new ft(self)),ft})),n(["./shared"],(function(t){function e(t,i){if(Array.isArray(t)){if(!Array.isArray(i)||t.length!==i.length)return!1;for(let n=0;n<t.length;n++)if(!e(t[n],i[n]))return!1;return!0}if("object"==typeof t&&null!==t&&null!==i){if("object"!=typeof i)return!1;if(Object.keys(t).length!==Object.keys(i).length)return!1;for(const n in t)if(!e(t[n],i[n]))return!1;return!0}return t===i}var i=n;function n(t){return!function(t){return"undefined"==typeof window||"undefined"==typeof document?"not a browser":Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray?Function.prototype&&Function.prototype.bind?Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions?"JSON"in window&&"parse"in JSON&&"stringify"in JSON?function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var t,e,i=new Blob([""],{type:"text/javascript"}),n=URL.createObjectURL(i);try{e=new Worker(n),t=!0}catch(e){t=!1}return e&&e.terminate(),URL.revokeObjectURL(n),t}()?"Uint8ClampedArray"in window?ArrayBuffer.isView?function(){var t=document.createElement("canvas");t.width=t.height=1;var e=t.getContext("2d");if(!e)return!1;var i=e.getImageData(0,0,1,1);return i&&i.width===t.width}()?(void 0===r[e=t&&t.failIfMajorPerformanceCaveat]&&(r[e]=function(t){var e,i=function(t){var e=document.createElement("canvas"),i=Object.create(n.webGLContextAttributes);return i.failIfMajorPerformanceCaveat=t,e.getContext("webgl",i)||e.getContext("experimental-webgl",i)}(t);if(!i)return!1;try{e=i.createShader(i.VERTEX_SHADER)}catch(t){return!1}return!(!e||i.isContextLost())&&(i.shaderSource(e,"void main() {}
39"),i.compileShader(e),!0===i.getShaderParameter(e,i.COMPILE_STATUS))}(e)),r[e]?document.documentMode?"insufficient ECMAScript 6 support":void 0:"insufficient WebGL support"):"insufficient Canvas/getImageData support":"insufficient ArrayBuffer support":"insufficient Uint8ClampedArray support":"insufficient worker support":"insufficient JSON support":"insufficient Object support":"insufficient Function support":"insufficent Array support";var e}(t)}var r={};function o(e,i,n){const r=t.window.document.createElement(e);return void 0!==i&&(r.className=i),n&&n.appendChild(r),r}function s(e,i,n){const r=t.window.document.createElementNS("http://www.w3.org/2000/svg",e);for(const t of Object.keys(i))r.setAttributeNS(null,t,i[t]);return n&&n.appendChild(r),r}n.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0};const a=t.window.document&&t.window.document.documentElement.style,l=a&&void 0!==a.userSelect?"userSelect":"WebkitUserSelect";let c;function u(){a&&l&&(c=a[l],a[l]="none")}function h(){a&&l&&(a[l]=c)}function d(e){e.preventDefault(),e.stopPropagation(),t.window.removeEventListener("click",d,!0)}function f(){t.window.addEventListener("click",d,!0),t.window.setTimeout(()=>{t.window.removeEventListener("click",d,!0)},0)}function p(t,e){const i=t.getBoundingClientRect();return y(t,i,e)}function m(t,e){const i=t.getBoundingClientRect(),n=[];for(let r=0;r<e.length;r++)n.push(y(t,i,e[r]));return n}function g(e){return void 0!==t.window.InstallTrigger&&2===e.button&&e.ctrlKey&&t.window.navigator.platform.toUpperCase().indexOf("MAC")>=0?0:e.button}function y(e,i,n){const r=e.offsetWidth===i.width?1:e.offsetWidth/i.width;return new t.Point((n.clientX-i.left)*r,(n.clientY-i.top)*r)}function _(t,e){var i=e[0],n=e[1],r=e[2],o=e[3],s=i*o-r*n;return s?(t[0]=o*(s=1/s),t[1]=-n*s,t[2]=-r*s,t[3]=i*s,t):null}function v(t){const{userImage:e}=t;return!!(e&&e.render&&e.render())&&(t.data.replace(new Uint8Array(e.data.buffer)),!0)}class b extends t.Evented{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new t.RGBAImage({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(t){if(this.loaded!==t&&(this.loaded=t,t)){for(const{ids:t,callback:e}of this.requestors)this._notify(t,e);this.requestors=[]}}hasImage(t){return!!this.getImage(t)}getImage(t){return this.images[t]}addImage(t,e){this._validate(t,e)&&(this.images[t]=e)}_validate(e,i){let n=!0;return this._validateStretch(i.stretchX,i.data&&i.data.width)||(this.fire(new t.ErrorEvent(new Error(`Image "${e}" has invalid "stretchX" value`))),n=!1),this._validateStretch(i.stretchY,i.data&&i.data.height)||(this.fire(new t.ErrorEvent(new Error(`Image "${e}" has invalid "stretchY" value`))),n=!1),this._validateContent(i.content,i)||(this.fire(new t.ErrorEvent(new Error(`Image "${e}" has invalid "content" value`))),n=!1),n}_validateStretch(t,e){if(!t)return!0;let i=0;for(const n of t){if(n[0]<i||n[1]<n[0]||e<n[1])return!1;i=n[1]}return!0}_validateContent(t,e){return!(t&&(4!==t.length||t[0]<0||e.data.width<t[0]||t[1]<0||e.data.height<t[1]||t[2]<0||e.data.width<t[2]||t[3]<0||e.data.height<t[3]||t[2]<t[0]||t[3]<t[1]))}updateImage(t,e){e.version=this.images[t].version+1,this.images[t]=e,this.updatedImages[t]=!0}removeImage(t){const e=this.images[t];delete this.images[t],delete this.patterns[t],e.userImage&&e.userImage.onRemove&&e.userImage.onRemove()}listImages(){return Object.keys(this.images)}getImages(t,e){let i=!0;if(!this.isLoaded())for(const n of t)this.images[n]||(i=!1);this.isLoaded()||i?this._notify(t,e):this.requestors.push({ids:t,callback:e})}_notify(e,i){const n={};for(const r of e){this.images[r]||this.fire(new t.Event("styleimagemissing",{id:r}));const e=this.images[r];e?n[r]={data:e.data.clone(),pixelRatio:e.pixelRatio,sdf:e.sdf,version:e.version,stretchX:e.stretchX,stretchY:e.stretchY,content:e.content,hasRenderCallback:Boolean(e.userImage&&e.userImage.render)}:t.warnOnce(`Image "${r}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}i(null,n)}getPixelSize(){const{width:t,height:e}=this.atlasImage;return{width:t,height:e}}getPattern(e){const i=this.patterns[e],n=this.getImage(e);if(!n)return null;if(i&&i.position.version===n.version)return i.position;if(i)i.position.version=n.version;else{const i={w:n.data.width+2,h:n.data.height+2,x:0,y:0},r=new t.ImagePosition(i,n);this.patterns[e]={bin:i,position:r}}return this._updatePatternAtlas(),this.patterns[e].position}bind(e){const i=e.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new t.Texture(e,this.atlasImage,i.RGBA),this.atlasTexture&&this.atlasTexture.bind(i.LINEAR,i.CLAMP_TO_EDGE)}_updatePatternAtlas(){const e=[];for(const t in this.patterns)e.push(this.patterns[t].bin);const{w:i,h:n}=t.potpack(e),r=this.atlasImage;r.resize({width:i||1,height:n||1});for(const o in this.patterns){const{bin:e}=this.patterns[o],i=e.x+1,n=e.y+1,s=this.images[o].data,a=s.width,l=s.height;t.RGBAImage.copy(s,r,{x:0,y:0},{x:i,y:n},{width:a,height:l}),t.RGBAImage.copy(s,r,{x:0,y:l-1},{x:i,y:n-1},{width:a,height:1}),t.RGBAImage.copy(s,r,{x:0,y:0},{x:i,y:n+l},{width:a,height:1}),t.RGBAImage.copy(s,r,{x:a-1,y:0},{x:i-1,y:n},{width:1,height:l}),t.RGBAImage.copy(s,r,{x:0,y:0},{x:i+a,y:n},{width:1,height:l})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}
vendor: 9,366 bytes, line 39
39dispatchRenderCallbacks(t){for(const e of t){if(this.callbackDispatchedThisFrame[e])continue;this.callbackDispatchedThisFrame[e]=!0;const t=this.images[e];v(t)&&this.updateImage(e,t)}}}const x=new t.Properties({anchor:new t.DataConstantProperty(t.spec.light.anchor),position:new class{constructor(){this.specification=t.spec.light.position}possiblyEvaluate(e,i){return function([e,i,n]){const r=t.degToRad(i+90),o=t.degToRad(n);return{x:e*Math.cos(r)*Math.sin(o),y:e*Math.sin(r)*Math.sin(o),z:e*Math.cos(o),azimuthal:i,polar:n}}(e.expression.evaluate(i))}interpolate(e,i,n){return{x:t.number(e.x,i.x,n),y:t.number(e.y,i.y,n),z:t.number(e.z,i.z,n),azimuthal:t.number(e.azimuthal,i.azimuthal,n),polar:t.number(e.polar,i.polar,n)}}},color:new t.DataConstantProperty(t.spec.light.color),intensity:new t.DataConstantProperty(t.spec.light.intensity)});class w extends t.Evented{constructor(e){super(),this._transitionable=new t.Transitionable(x),this.setLight(e),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}setLight(e,i={}){if(!this._validate(t.validateLight,e,i))for(const n in e){const i=e[n];t.endsWith(n,"-transition")?this._transitionable.setTransition(n.slice(0,-11),i):this._transitionable.setValue(n,i)}}updateTransitions(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(t){this.properties=this._transitioning.possiblyEvaluate(t)}_validate(e,i,n){return(!n||!1!==n.validate)&&t.emitValidationErrors(this,e.call(t.validateStyle,t.extend({value:i,style:{glyphs:!0,sprite:!0},styleSpec:t.spec})))}}const E=new t.Properties({source:new t.DataConstantProperty(t.spec.terrain.source),exaggeration:new t.DataConstantProperty(t.spec.terrain.exaggeration)});let T=class extends t.Evented{constructor(e,i){super(),this._transitionable=new t.Transitionable(E),this.set(e),this._transitioning=this._transitionable.untransitioned(),this.drapeRenderMode=i}get(){return this._transitionable.serialize()}set(e){for(const i in e){const n=e[i];t.endsWith(i,"-transition")?this._transitionable.setTransition(i.slice(0,-11),n):this._transitionable.setValue(i,n)}}updateTransitions(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(t){this.properties=this._transitioning.possiblyEvaluate(t)}};function S(e,i,n,r){const o=t.smoothstep(45,65,n),[s,a]=k(e,r),l=t.length(i);let c=1-Math.min(1,Math.exp((l-s)/(a-s)*-6));return c*=c*c,c=Math.min(1,1.00747*c),c*o*e.alpha}function k(t,e){const i=.5/Math.tan(.5*e);return[t.range[0]+i,t.range[1]+i]}const O=new t.Properties({range:new t.DataConstantProperty(t.spec.fog.range),color:new t.DataConstantProperty(t.spec.fog.color),"high-color":new t.DataConstantProperty(t.spec.fog["high-color"]),"space-color":new t.DataConstantProperty(t.spec.fog["space-color"]),"horizon-blend":new t.DataConstantProperty(t.spec.fog["horizon-blend"]),"star-intensity":new t.DataConstantProperty(t.spec.fog["star-intensity"])});class A extends t.Evented{constructor(e,i){super(),this._transitionable=new t.Transitionable(O),this.set(e),this._transitioning=this._transitionable.untransitioned(),this._transform=i}get state(){const e=this._transform,i="globe"===e.projection.name,n=t.globeToMercatorTransition(e.zoom),r=this.properties.get("range"),o=[.5,3];return{range:i?[t.number(o[0],r[0],n),t.number(o[1],r[1],n)]:r,horizonBlend:this.properties.get("horizon-blend"),alpha:this.properties.get("color").a}}get(){return this._transitionable.serialize()}set(e,i={}){if(!this._validate(t.validateFog,e,i)){for(const i of Object.keys(t.spec.fog))e&&void 0===e[i]&&(e[i]=t.spec.fog[i].default);for(const i in e){const n=e[i];t.endsWith(i,"-transition")?this._transitionable.setTransition(i.slice(0,-11),n):this._transitionable.setValue(i,n)}}}getOpacity(e){if(!this._transform.projection.supportsFog)return 0;const i=this.properties&&this.properties.get("color")||1;return("globe"===this._transform.projection.name?1:t.smoothstep(45,65,e))*i.a}getOpacityAtLatLng(e,i){return this._transform.projection.supportsFog?function(e,i,n){const r=t.MercatorCoordinate.fromLngLat(i),o=n.elevation?n.elevation.getAtPointOrZero(r):0,s=[r.x,r.y,o];return t.transformMat4(s,s,n.mercatorFogMatrix),S(e,s,n.pitch,n._fov)}(this.state,e,i):0}getFovAdjustedRange(t){return this._transform.projection.supportsFog?k(this.state,t):[0,1]}updateTransitions(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(t){this.properties=this._transitioning.possiblyEvaluate(t)}_validate(e,i,n){return(!n||!1!==n.validate)&&t.emitValidationErrors(this,e.call(t.validateStyle,t.extend({value:i,style:{glyphs:!0,sprite:!0},styleSpec:t.spec})))}}class C{constructor(e,i){this.workerPool=e,this.actors=[],this.currentActor=0,this.id=t.uniqueId();const n=this.workerPool.acquire(this.id);for(let t=0;t<n.length;t++){const e=new C.Actor(n[t],i,this.id);e.name="Worker "+t,this.actors.push(e)}this.ready=!1,this.broadcast("checkIfReady",null,()=>{this.ready=!0})}broadcast(e,i,n){t.asyncAll(this.actors,(t,n)=>{t.send(e,i,n)},n=n||function(){})}getActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(){this.actors.forEach(t=>{t.remove()}),this.actors=[],this.workerPool.release(this.id)}}function I(e,i,n){return i*(t.EXTENT/(e.tileSize*Math.pow(2,n-e.tileID.overscaledZ)))}C.Actor=t.Actor;class M{constructor(t,e,i,n){this.screenBounds=t,this.cameraPoint=e,this._screenRaycastCache={},this._cameraRaycastCache={},this.isAboveHorizon=i,this.screenGeometry=this.bufferedScreenGeometry(0),this.screenGeometryMercator=this._bufferedScreenMercator(0,n)}static createFromScreenPoints(e,i){let n,r;if(e instanceof t.Point||"number"==typeof e[0]){const o=t.Point.convert(e);n=[o],r=i.isPointAboveHorizon(o)}else{const o=t.Point.convert(e[0]),s=t.Point.convert(e[1]);n=[o,s],r=t.polygonizeBounds(o,s).every(t=>i.isPointAboveHorizon(t))}return new M(n,i.getCameraPoint(),r,i)}isPointQuery(){return 1===this.screenBounds.length}bufferedScreenGeometry(e){return t.polygonizeBounds(this.screenBounds[0],1===this.screenBounds.length?this.screenBounds[0]:this.screenBounds[1],e)}bufferedCameraGeometry(e){const i=this.screenBounds[0],n=1===this.screenBounds.length?this.screenBounds[0].add(new t.Point(1,1)):this.screenBounds[1],r=t.polygonizeBounds(i,n,0,!1);return this.cameraPoint.y>n.y&&(this.cameraPoint.x>i.x&&this.cameraPoint.x<n.x?r.splice(3,0,this.cameraPoint):this.cameraPoint.x>=n.x?r[2]=this.cameraPoint:this.cameraPoint.x<=i.x&&(r[3]=this.cameraPoint)),t.bufferConvexPolygon(r,e)}bufferedCameraGeometryGlobe(e){const i=this.screenBounds[0],n=1===this.screenBounds.length?this.screenBounds[0].add(new t.Point(1,1)):this.screenBounds[1],r=t.polygonizeBounds(i,n,e),o=this.cameraPoint.clone();switch(3*((o.y>i.y)+(o.y>n.y))+((o.x>i.x)+(o.x>n.x))){case 0:r[0]=o,r[4]=o.clone();break;case 1:r.splice(1,0,o);break;case 2:r[1]=o;break;case 3:r.splice(4,0,o);break;case 5:r.splice(2,0,o);break;case 6:r[3]=o;break;case 7:r.splice(3,0,o);break;case 8:r[2]=o}return r}containsTile(e,i,n,r=0){const o=e.queryPadding/i._pixelsPerMercatorPixel+1,s=n?this._bufferedCameraMercator(o,i):this._bufferedScreenMercator(o,i);let a=e.tileID.wrap+(s.unwrapped?r:0);const l=s.polygon.map(i=>t.getTilePoint(e.tileTransform,i,a));if(!t.polygonIntersectsBox(l,0,0,t.EXTENT,t.EXTENT))return;a=e.tileID.wrap+(this.screenGeometryMercator.unwrapped?r:0);const c=this.screenGeometryMercator.polygon.map(i=>t.getTileVec3(e.tileTransform,i,a)),u=c.map(e=>new t.Point(e[0],e[1])),h=i.getFreeCameraOptions().position||new t.MercatorCoordinate(0,0,0),d=t.getTileVec3(e.tileTransform,h,a),f=c.map(e=>{const i=t.sub(e,e,d);return t.normalize(i,i),new t.Ray(d,i)}),p=I(e,1,i.zoom)*i._pixelsPerMercatorPixel;return{queryGeometry:this,tilespaceGeometry:u,tilespaceRays:f,bufferedTilespaceGeometry:l,bufferedTilespaceBounds:(m=t.getBounds(l),m.min.x=t.clamp(m.min.x,0,t.EXTENT),m.min.y=t.clamp(m.min.y,0,t.EXTENT),m.max.x=t.clamp(m.max.x,0,t.EXTENT),m.max.y=t.clamp(m.max.y,0,t.EXTENT),m),tile:e,tileID:e.tileID,pixelToTileUnitsFactor:p};var m}_bufferedScreenMercator(t,e){const i=L(t);if(this._screenRaycastCache[i])return this._screenRaycastCache[i];{let n;return n="globe"===e.projection.name?this._projectAndResample(this.bufferedScreenGeometry(t),e):{polygon:this.bufferedScreenGeometry(t).map(t=>e.pointCoordinate3D(t)),unwrapped:!0},this._screenRaycastCache[i]=n,n}}_bufferedCameraMercator(t,e){const i=L(t);if(this._cameraRaycastCache[i])return this._cameraRaycastCache[i];{let n;return n="globe"===e.projection.name?this._projectAndResample(this.bufferedCameraGeometryGlobe(t),e):{polygon:this.bufferedCameraGeometry(t).map(t=>e.pointCoordinate3D(t)),unwrapped:!0},this._cameraRaycastCache[i]=n,n}}_projectAndResample(e,i){const n=function(e,i){const n=t.multiply([],i.pixelMatrix,i.globeMatrix),r=[0,-t.GLOBE_RADIUS,0,1],o=[0,t.GLOBE_RADIUS,0,1],s=[0,0,0,1];t.transformMat4$1(r,r,n),t.transformMat4$1(o,o,n),t.transformMat4$1(s,s,n);const a=new t.Point(r[0]/r[3],r[1]/r[3]),l=new t.Point(o[0]/o[3],o[1]/o[3]),c=t.polygonContainsPoint(e,a)&&r[3]<s[3],u=t.polygonContainsPoint(e,l)&&o[3]<s[3];if(!c&&!u)return null;
vendor: 1,348 bytes, line 39
39const h=function(t,e,i){for(let n=1;n<t.length;n++){const r=D(e.pointCoordinate3D(t[n-1]).x),o=D(e.pointCoordinate3D(t[n]).x);if(i<0){if(r<o)return{idx:n,t:-r/(o-1-r)}}else if(o<r)return{idx:n,t:(1-r)/(o+1-r)}}return null}(e,i,c?-1:1);if(!h)return null;const{idx:d,t:f}=h;let p=d>1?P(e.slice(0,d),i):[],m=d<e.length?P(e.slice(d),i):[];p=p.map(e=>new t.Point(D(e.x),e.y)),m=m.map(e=>new t.Point(D(e.x),e.y));const g=[...p];0===g.length&&g.push(m[m.length-1]);const y=t.number(g[g.length-1].y,(0===m.length?p[0]:m[0]).y,f);let _;return _=c?[new t.Point(0,y),new t.Point(0,0),new t.Point(1,0),new t.Point(1,y)]:[new t.Point(1,y),new t.Point(1,1),new t.Point(0,1),new t.Point(0,y)],g.push(..._),0===m.length?g.push(p[0]):g.push(...m),{polygon:g.map(e=>new t.MercatorCoordinate(e.x,e.y)),unwrapped:!1}}(e,i);if(n)return n;const r=function(e,i){let n=!1,r=-1/0,o=0;for(let t=0;t<e.length-1;t++)e[t].x>r&&(r=e[t].x,o=t);for(let t=0;t<e.length-1;t++){const i=(o+t)%(e.length-1),r=e[i],s=e[i+1];Math.abs(r.x-s.x)>.5&&(r.x<s.x?(r.x+=1,0===i&&(e[e.length-1].x+=1)):(s.x+=1,i+1===e.length-1&&(e[0].x+=1)),n=!0)}const s=t.mercatorXfromLng(i.center.lng);return n&&s<Math.abs(s-1)&&e.forEach(t=>{t.x-=1}),{polygon:e,unwrapped:n}}(P(e,i).map(e=>new t.Point(D(e.x),e.y)),i);return{polygon:r.polygon.map(e=>new t.MercatorCoordinate(e.x,e.y)),unwrapped:r.unwrapped}}}
vendor: 35,491 bytes, line 39
39function P(e,i){return t.resample(e,t=>{const e=i.pointCoordinate3D(t);t.x=e.x,t.y=e.y},1/256)}function D(t){return t<0?1+t%1:t%1}function L(t){return 100*t|0}function R(e,i,n,r,o){const s=function(n,r){if(n)return o(n);if(r){e.url&&r.tiles&&e.tiles&&delete e.tiles;const n=t.pick(t.extend(r,e),["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding"]);r.vector_layers&&(n.vectorLayers=r.vector_layers,n.vectorLayerIds=n.vectorLayers.map(t=>t.id)),n.tiles=i.canonicalizeTileset(n,e.url),o(null,n)}};return e.url?t.getJSON(i.transformRequest(i.normalizeSourceURL(e.url,null,n,r),t.ResourceType.Source),s):t.exported.frame(()=>s(null,e))}class z{constructor(e,i,n){this.bounds=t.LngLatBounds.convert(this.validateBounds(e)),this.minzoom=i||0,this.maxzoom=n||24}validateBounds(t){return Array.isArray(t)&&4===t.length?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]}contains(e){const i=Math.pow(2,e.z),n=Math.floor(t.mercatorXfromLng(this.bounds.getWest())*i),r=Math.floor(t.mercatorYfromLat(this.bounds.getNorth())*i),o=Math.ceil(t.mercatorXfromLng(this.bounds.getEast())*i),s=Math.ceil(t.mercatorYfromLat(this.bounds.getSouth())*i);return e.x>=n&&e.x<o&&e.y>=r&&e.y<s}}class j{constructor(t,e,i){this.context=t;const n=t.gl;this.buffer=n.createBuffer(),this.dynamicDraw=Boolean(i),this.context.unbindVAO(),t.bindElementBuffer.set(this.buffer),n.bufferData(n.ELEMENT_ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?n.DYNAMIC_DRAW:n.STATIC_DRAW),this.dynamicDraw||e.destroy()}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(t){const e=this.context.gl;this.context.unbindVAO(),this.bind(),e.bufferSubData(e.ELEMENT_ARRAY_BUFFER,0,t.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}const B={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class F{constructor(t,e,i,n){this.length=e.length,this.attributes=i,this.itemSize=e.bytesPerElement,this.dynamicDraw=n,this.context=t;const r=t.gl;this.buffer=r.createBuffer(),t.bindVertexBuffer.set(this.buffer),r.bufferData(r.ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?r.DYNAMIC_DRAW:r.STATIC_DRAW),this.dynamicDraw||e.destroy()}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(t){const e=this.context.gl;this.bind(),e.bufferSubData(e.ARRAY_BUFFER,0,t.arrayBuffer)}enableAttributes(t,e){for(let i=0;i<this.attributes.length;i++){const n=e.attributes[this.attributes[i].name];void 0!==n&&t.enableVertexAttribArray(n)}}setVertexAttribPointers(t,e,i){for(let n=0;n<this.attributes.length;n++){const r=this.attributes[n],o=e.attributes[r.name];void 0!==o&&t.vertexAttribPointer(o,r.components,t[B[r.type]],!1,this.itemSize,r.offset+this.itemSize*(i||0))}}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}class N{constructor(t){this.gl=t.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1}get(){return this.current}set(t){}getDefault(){return this.default}setDefault(){this.set(this.default)}}class V extends N{getDefault(){return t.Color.transparent}set(t){const e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&&(this.gl.clearColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)}}class $ extends N{getDefault(){return 1}set(t){(t!==this.current||this.dirty)&&(this.gl.clearDepth(t),this.current=t,this.dirty=!1)}}class U extends N{getDefault(){return 0}set(t){(t!==this.current||this.dirty)&&(this.gl.clearStencil(t),this.current=t,this.dirty=!1)}}class q extends N{getDefault(){return[!0,!0,!0,!0]}set(t){const e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&&(this.gl.colorMask(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)}}class G extends N{getDefault(){return!0}set(t){(t!==this.current||this.dirty)&&(this.gl.depthMask(t),this.current=t,this.dirty=!1)}}class W extends N{getDefault(){return 255}set(t){(t!==this.current||this.dirty)&&(this.gl.stencilMask(t),this.current=t,this.dirty=!1)}}class Z extends N{getDefault(){return{func:this.gl.ALWAYS,ref:0,mask:255}}set(t){const e=this.current;(t.func!==e.func||t.ref!==e.ref||t.mask!==e.mask||this.dirty)&&(this.gl.stencilFunc(t.func,t.ref,t.mask),this.current=t,this.dirty=!1)}}class H extends N{getDefault(){const t=this.gl;return[t.KEEP,t.KEEP,t.KEEP]}set(t){const e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||this.dirty)&&(this.gl.stencilOp(t[0],t[1],t[2]),this.current=t,this.dirty=!1)}}class X extends N{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;t?e.enable(e.STENCIL_TEST):e.disable(e.STENCIL_TEST),this.current=t,this.dirty=!1}}class Q extends N{getDefault(){return[0,1]}set(t){const e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&&(this.gl.depthRange(t[0],t[1]),this.current=t,this.dirty=!1)}}class Y extends N{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;t?e.enable(e.DEPTH_TEST):e.disable(e.DEPTH_TEST),this.current=t,this.dirty=!1}}class K extends N{getDefault(){return this.gl.LESS}set(t){(t!==this.current||this.dirty)&&(this.gl.depthFunc(t),this.current=t,this.dirty=!1)}}class J extends N{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;t?e.enable(e.BLEND):e.disable(e.BLEND),this.current=t,this.dirty=!1}}class tt extends N{getDefault(){const t=this.gl;return[t.ONE,t.ZERO]}set(t){const e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&&(this.gl.blendFunc(t[0],t[1]),this.current=t,this.dirty=!1)}}class et extends N{getDefault(){return t.Color.transparent}set(t){const e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&&(this.gl.blendColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)}}class it extends N{getDefault(){return this.gl.FUNC_ADD}set(t){(t!==this.current||this.dirty)&&(this.gl.blendEquation(t),this.current=t,this.dirty=!1)}}class nt extends N{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;t?e.enable(e.CULL_FACE):e.disable(e.CULL_FACE),this.current=t,this.dirty=!1}}class rt extends N{getDefault(){return this.gl.BACK}set(t){(t!==this.current||this.dirty)&&(this.gl.cullFace(t),this.current=t,this.dirty=!1)}}class ot extends N{getDefault(){return this.gl.CCW}set(t){(t!==this.current||this.dirty)&&(this.gl.frontFace(t),this.current=t,this.dirty=!1)}}let st,at=class extends N{getDefault(){return null}set(t){(t!==this.current||this.dirty)&&(this.gl.useProgram(t),this.current=t,this.dirty=!1)}};class lt extends N{getDefault(){return this.gl.TEXTURE0}set(t){(t!==this.current||this.dirty)&&(this.gl.activeTexture(t),this.current=t,this.dirty=!1)}}class ct extends N{getDefault(){const t=this.gl;return[0,0,t.drawingBufferWidth,t.drawingBufferHeight]}set(t){const e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&&(this.gl.viewport(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)}}class ut extends N{getDefault(){return null}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,t),this.current=t,this.dirty=!1}}class ht extends N{getDefault(){return null}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;e.bindRenderbuffer(e.RENDERBUFFER,t),this.current=t,this.dirty=!1}}class dt extends N{getDefault(){return null}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;e.bindTexture(e.TEXTURE_2D,t),this.current=t,this.dirty=!1}}class ft extends N{getDefault(){return null}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;e.bindBuffer(e.ARRAY_BUFFER,t),this.current=t,this.dirty=!1}}class pt extends N{getDefault(){return null}set(t){const e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.current=t,this.dirty=!1}}class mt extends N{constructor(t){super(t),this.vao=t.extVertexArrayObject}getDefault(){return null}set(t){this.vao&&(t!==this.current||this.dirty)&&(this.vao.bindVertexArrayOES(t),this.current=t,this.dirty=!1)}}class gt extends N{getDefault(){return 4}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;e.pixelStorei(e.UNPACK_ALIGNMENT,t),this.current=t,this.dirty=!1}}class yt extends N{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t),this.current=t,this.dirty=!1}}class _t extends N{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,t),this.current=t,this.dirty=!1}}class vt extends N{constructor(t,e){super(t),this.context=t,this.parent=e}getDefault(){return null}}class bt extends vt{setDirty(){this.dirty=!0}set(t){if(t===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const e=this.gl;e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0),this.current=t,this.dirty=!1}}class xt extends vt{attachment(){return this.gl.DEPTH_ATTACHMENT}set(t){if(t===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const e=this.gl;e.framebufferRenderbuffer(e.FRAMEBUFFER,this.attachment(),e.RENDERBUFFER,t),this.current=t,this.dirty=!1}}class wt extends xt{attachment(){return this.gl.DEPTH_STENCIL_ATTACHMENT}}class Et{constructor(t,e,i,n){this.context=t,this.width=e,this.height=i;const r=this.framebuffer=t.gl.createFramebuffer();this.colorAttachment=new bt(t,r),n&&(this.depthAttachment=new xt(t,r))}destroy(){const t=this.context.gl,e=this.colorAttachment.get();if(e&&t.deleteTexture(e),this.depthAttachment){const e=this.depthAttachment.get();e&&t.deleteRenderbuffer(e)}t.deleteFramebuffer(this.framebuffer)}}class Tt{constructor(t,e=!1){if(this.gl=t,this.isWebGL2=e,this.extVertexArrayObject=this.gl.getExtension("OES_vertex_array_object"),e){const e=t;this.extVertexArrayObject={createVertexArrayOES:e.createVertexArray.bind(t),deleteVertexArrayOES:e.deleteVertexArray.bind(t),bindVertexArrayOES:e.bindVertexArray.bind(t)}}this.clearColor=new V(this),this.clearDepth=new $(this),this.clearStencil=new U(this),this.colorMask=new q(this),this.depthMask=new G(this),this.stencilMask=new W(this),this.stencilFunc=new Z(this),this.stencilOp=new H(this),this.stencilTest=new X(this),this.depthRange=new Q(this),this.depthTest=new Y(this),this.depthFunc=new K(this),this.blend=new J(this),this.blendFunc=new tt(this),this.blendColor=new et(this),this.blendEquation=new it(this),this.cullFace=new nt(this),this.cullFaceSide=new rt(this),this.frontFace=new ot(this),this.program=new at(this),this.activeTexture=new lt(this),this.viewport=new ct(this),this.bindFramebuffer=new ut(this),this.bindRenderbuffer=new ht(this),this.bindTexture=new dt(this),this.bindVertexBuffer=new ft(this),this.bindElementBuffer=new pt(this),this.bindVertexArrayOES=this.extVertexArrayObject&&new mt(this),this.pixelStoreUnpack=new gt(this),this.pixelStoreUnpackPremultiplyAlpha=new yt(this),this.pixelStoreUnpackFlipY=new _t(this),this.extTextureFilterAnisotropic=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureFilterAnisotropicForceOff=!1,this.extStandardDerivativesForceOff=!1,this.extDebugRendererInfo=t.getExtension("WEBGL_debug_renderer_info"),this.extDebugRendererInfo&&(this.renderer=t.getParameter(this.extDebugRendererInfo.UNMASKED_RENDERER_WEBGL),this.vendor=t.getParameter(this.extDebugRendererInfo.UNMASKED_VENDOR_WEBGL)),e||(this.extTextureHalfFloat=t.getExtension("OES_texture_half_float")),(e||this.extTextureHalfFloat&&t.getExtension("OES_texture_half_float_linear"))&&(this.extRenderToTextureHalfFloat=t.getExtension("EXT_color_buffer_half_float")),this.extStandardDerivatives=e||t.getExtension("OES_standard_derivatives"),this.extTimerQuery=t.getExtension("EXT_disjoint_timer_query"),this.maxTextureSize=t.getParameter(t.MAX_TEXTURE_SIZE)}setDefault(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}setDirty(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&&(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0}createIndexBuffer(t,e){return new j(this,t,e)}createVertexBuffer(t,e,i){return new F(this,t,e,i)}createRenderbuffer(t,e,i){const n=this.gl,r=n.createRenderbuffer();return this.bindRenderbuffer.set(r),n.renderbufferStorage(n.RENDERBUFFER,t,e,i),this.bindRenderbuffer.set(null),r}createFramebuffer(t,e,i){return new Et(this,t,e,i)}clear({color:t,depth:e,stencil:i}){const n=this.gl;let r=0;t&&(r|=n.COLOR_BUFFER_BIT,this.clearColor.set(t),this.colorMask.set([!0,!0,!0,!0])),void 0!==e&&(r|=n.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(e),this.depthMask.set(!0)),void 0!==i&&(r|=n.STENCIL_BUFFER_BIT,this.clearStencil.set(i),this.stencilMask.set(255)),n.clear(r)}setCullFace(t){!1===t.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(t.mode),this.frontFace.set(t.frontFace))}setDepthMode(t){t.func!==this.gl.ALWAYS||t.mask?(this.depthTest.set(!0),this.depthFunc.set(t.func),this.depthMask.set(t.mask),this.depthRange.set(t.range)):this.depthTest.set(!1)}setStencilMode(t){t.test.func!==this.gl.ALWAYS||t.mask?(this.stencilTest.set(!0),this.stencilMask.set(t.mask),this.stencilOp.set([t.fail,t.depthFail,t.pass]),this.stencilFunc.set({func:t.test.func,ref:t.ref,mask:t.test.mask})):this.stencilTest.set(!1)}setColorMode(i){e(i.blendFunction,t.ColorMode.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(i.blendFunction),this.blendColor.set(i.blendColor)),this.colorMask.set(i.mask)}unbindVAO(){this.extVertexArrayObject&&this.bindVertexArrayOES.set(null)}}class St extends t.Evented{constructor(e,i,n,r){if(super(),this.id=e,this.dispatcher=n,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,t.extend(this,t.pick(i,["url","scheme","tileSize","promoteId"])),this._options=t.extend({type:"vector"},i),this._collectResourceTiming=i.collectResourceTiming,512!==this.tileSize)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(r),this._tileWorkers={},this._deduped=new t.DedupedRequest}load(e){this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"}));const i=Array.isArray(this.map._language)?this.map._language.join():this.map._language,n=this.map._worldview;this._tileJSONRequest=R(this._options,this.map._requestManager,i,n,(r,o)=>{this._tileJSONRequest=null,this._loaded=!0,r?(i&&console.warn("Ensure that your requested language string is a valid BCP-47 code or list of codes. Found: "+i),n&&2!==n.length&&console.warn("Requested worldview strings must be a valid ISO alpha-2 code. Found: "+n),this.fire(new t.ErrorEvent(r))):o&&(t.extend(this,o),o.bounds&&(this.tileBounds=new z(o.bounds,this.minzoom,this.maxzoom)),t.postTurnstileEvent(o.tiles,this.map._requestManager._customAccessToken),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"}))),e&&e(r)})}loaded(){return this._loaded}hasTile(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)}onAdd(t){this.map=t,this.load()}reload(){this.cancelTileJSONRequest(),this.load(()=>this.map.style._clearSource(this.id))}setTiles(t){return this._options.tiles=t,this.reload(),this}setUrl(t){return this.url=t,this._options.url=t,this.reload(),this}onRemove(){this.cancelTileJSONRequest()}serialize(){return t.extend({},this._options)}loadTile(e,i){const n=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme)),r={request:this.map._requestManager.transformRequest(n,t.ResourceType.Tile),data:void 0,uid:e.uid,tileID:e.tileID,tileZoom:e.tileZoom,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:t.exported.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,isSymbolTile:e.isSymbolTile};if(r.request.collectResourceTiming=this._collectResourceTiming,e.actor&&"expired"!==e.state)"loading"===e.state?e.reloadCallback=i:e.request=e.actor.send("reloadTile",r,o.bind(this));else if(e.actor=this._tileWorkers[n]=this._tileWorkers[n]||this.dispatcher.getActor(),this.dispatcher.ready)e.request=e.actor.send("loadTile",r,o.bind(this),void 0,!0);else{const i=t.loadVectorTile.call({deduped:this._deduped},r,(t,i)=>{t||!i?o.call(this,t):(r.data={cacheControl:i.cacheControl,expires:i.expires,rawData:i.rawData.slice(0)},e.actor&&e.actor.send("loadTile",r,o.bind(this),void 0,!0))},!0);e.request={cancel:i}}function o(n,r){return delete e.request,e.aborted?i(null):n&&404!==n.status?i(n):(r&&r.resourceTiming&&(e.resourceTiming=r.resourceTiming),this.map._refreshExpiredTiles&&r&&e.setExpiryData(r),e.loadVectorData(r,this.map.painter),t.cacheEntryPossiblyAdded(this.dispatcher),i(null),void(e.reloadCallback&&(this.loadTile(e,e.reloadCallback),e.reloadCallback=null)))}}abortTile(t){t.request&&(t.request.cancel(),delete t.request),t.actor&&t.actor.send("abortTile",{uid:t.uid,type:this.type,source:this.id})}unloadTile(t){t.unloadVectorData(),t.actor&&t.actor.send("removeTile",{uid:t.uid,type:this.type,source:this.id})}hasTransition(){return!1}afterUpdate(){this._tileWorkers={}}cancelTileJSONRequest(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}}class kt extends t.Evented{constructor(e,i,n,r){super(),this.id=e,this.dispatcher=n,this.setEventedParent(r),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=t.extend({type:"raster"},i),t.extend(this,t.pick(i,["url","scheme","tileSize"]))}load(e){this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=R(this._options,this.map._requestManager,null,null,(i,n)=>{this._tileJSONRequest=null,this._loaded=!0,i?this.fire(new t.ErrorEvent(i)):n&&(t.extend(this,n),n.bounds&&(this.tileBounds=new z(n.bounds,this.minzoom,this.maxzoom)),t.postTurnstileEvent(n.tiles),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"}))),e&&e(i)})}loaded(){return this._loaded}onAdd(t){this.map=t,this.load()}reload(){this.cancelTileJSONRequest(),this.load(()=>this.map.style._clearSource(this.id))}setTiles(t){return this._options.tiles=t,this.reload(),this}setUrl(t){return this.url=t,this._options.url=t,this.reload(),this}onRemove(){this.cancelTileJSONRequest()}serialize(){return t.extend({},this._options)}hasTile(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)}loadTile(e,i){const n=t.exported.devicePixelRatio>=2,r=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),n,this.tileSize);e.request=t.getImage(this.map._requestManager.transformRequest(r,t.ResourceType.Tile),(n,r,o,s)=>(delete e.request,e.aborted?(e.state="unloaded",i(null)):n?(e.state="errored",i(n)):r?(this.map._refreshExpiredTiles&&e.setExpiryData({cacheControl:o,expires:s}),e.setTexture(r,this.map.painter),e.state="loaded",t.cacheEntryPossiblyAdded(this.dispatcher),void i(null)):i(null)))}static loadTileData(t,e,i){t.setTexture(e,i)}static unloadTileData(t,e){t.texture&&e.saveTileTexture(t.texture)}abortTile(t,e){t.request&&(t.request.cancel(),delete t.request),e()}unloadTile(t,e){t.texture&&this.map.painter.saveTileTexture(t.texture),e()}hasTransition(){return!1}cancelTileJSONRequest(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}}function Ot(e,i,n,r,o,s,a,l){const c=[e,n,o,i,r,s,1,1,1],u=[a,l,1],h=t.adjoint([],c),[d,f,p]=t.transformMat3(u,u,t.transpose(h,h));return t.multiply$1(c,[d,0,0,0,f,0,0,0,p],c)}class At extends t.Evented{constructor(t,e,i,n){super(),this.id=t,this.dispatcher=i,this.coordinates=e.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(n),this.options=e,this._dirty=!1}load(e,i){this._loaded=i||!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this.url=this.options.url,this._imageRequest=t.getImage(this.map._requestManager.transformRequest(this.url,t.ResourceType.Image),(i,n)=>{if(this._imageRequest=null,this._loaded=!0,i)this.fire(new t.ErrorEvent(i));else if(n){const{HTMLImageElement:i}=t.window;this.image=n instanceof i?t.exported.getImageData(n):n,this._dirty=!0,this.width=this.image.width,this.height=this.image.height,e&&(this.coordinates=e),this._finishLoading()}})}loaded(){return this._loaded}updateImage(t){return this.image&&t.url?(this._imageRequest&&t.url!==this.options.url&&(this._imageRequest.cancel(),this._imageRequest=null),this.options.url=t.url,this.load(t.coordinates,this._loaded),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(t){this.map=t,this.load()}onRemove(){this._imageRequest&&(this._imageRequest.cancel(),this._imageRequest=null),this.texture&&this.texture.destroy()}setCoordinates(e){this.coordinates=e,this._boundsArray=void 0;const i=e.map(t.MercatorCoordinate.fromLngLat);return this.tileID=function(e){let i=1/0,n=1/0,r=-1/0,o=-1/0;for(const t of e)i=Math.min(i,t.x),n=Math.min(n,t.y),r=Math.max(r,t.x),o=Math.max(o,t.y);const s=Math.max(r-i,o-n),a=Math.max(0,Math.floor(-Math.log(s)/Math.LN2)),l=Math.pow(2,a);return new t.CanonicalTileID(a,Math.floor((i+r)/2*l),Math.floor((n+o)/2*l))}(i),this.minzoom=this.maxzoom=this.tileID.z,this.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"})),this}_clear(){this._boundsArray=void 0}_prepareData(e){for(const t in this.tiles){const e=this.tiles[t];"loaded"!==e.state&&(e.state="loaded",e.texture=this.texture)}if(this._boundsArray)return;const i=t.tileTransform(this.tileID,this.map.transform.projection),[n,r,o,s]=this.coordinates.map(e=>{const n=i.projection.project(e[0],e[1]);return t.getTilePoint(i,n)._round()});this.perspectiveTransform=function(e,i,n,r,o,s,a,l,c,u){const h=Ot(0,0,e,0,0,i,e,i),d=Ot(n,r,o,s,a,l,c,u);return t.multiply$1(d,t.adjoint(h,h),d),[d[6]/d[8]*e/t.EXTENT,d[7]/d[8]*i/t.EXTENT]}(this.width,this.height,n.x,n.y,r.x,r.y,s.x,s.y,o.x,o.y);const a=this._boundsArray=new t.StructArrayLayout4i8;a.emplaceBack(n.x,n.y,0,0),a.emplaceBack(r.x,r.y,t.EXTENT,0),a.emplaceBack(s.x,s.y,0,t.EXTENT),a.emplaceBack(o.x,o.y,t.EXTENT,t.EXTENT),this.boundsBuffer&&this.boundsBuffer.destroy(),this.boundsBuffer=e.createVertexBuffer(a,t.boundsAttributes.members),this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)}prepare(){if(0===Object.keys(this.tiles).length||!this.image)return;const e=this.map.painter.context,i=e.gl;this._dirty&&(this.texture?this.texture.update(this.image):(this.texture=new t.Texture(e,this.image,i.RGBA),this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE)),this._dirty=!1),this._prepareData(e)}loadTile(t,e){this.tileID&&this.tileID.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t,t.buckets={},e(null)):(t.state="errored",e(null))}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}const Ct={vector:St,raster:kt,"raster-dem":class extends kt{constructor(e,i,n,r){super(e,i,n,r),this.type="raster-dem",this.maxzoom=22,this._options=t.extend({type:"raster-dem"},i),this.encoding=i.encoding||"mapbox"}loadTile(e,i){const n=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),!1,this.tileSize);function r(t,n){t&&(e.state="errored",i(t)),n&&(e.dem=n,e.dem.onDeserialize(),e.needsHillshadePrepare=!0,e.needsDEMTextureUpload=!0,e.state="loaded",i(null))}e.request=t.getImage(this.map._requestManager.transformRequest(n,t.ResourceType.Tile),function(n,o,s,a){if(delete e.request,e.aborted)e.state="unloaded",i(null);else if(n)e.state="errored",i(n);else if(o){this.map._refreshExpiredTiles&&e.setExpiryData({cacheControl:s,expires:a});const i=t.window.ImageBitmap&&o instanceof t.window.ImageBitmap&&(null==st&&(st=t.window.OffscreenCanvas&&new t.window.OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof t.window.createImageBitmap),st),n=1-(o.width-t.prevPowerOfTwo(o.width))/2;n<1||e.neighboringTiles||(e.neighboringTiles=this._getNeighboringTiles(e.tileID));const l=i?o:t.exported.getImageData(o,n),c={uid:e.uid,coord:e.tileID,source:this.id,rawImageData:l,encoding:this.encoding,padding:n};e.actor&&"expired"!==e.state||(e.actor=this.dispatcher.getActor(),e.actor.send("loadDEMTile",c,r.bind(this),void 0,!0))}}.bind(this))}_getNeighboringTiles(e){const i=e.canonical,n=Math.pow(2,i.z),r=(i.x-1+n)%n,o=0===i.x?e.wrap-1:e.wrap,s=(i.x+1+n)%n,a=i.x+1===n?e.wrap+1:e.wrap,l={};return l[new t.OverscaledTileID(e.overscaledZ,o,i.z,r,i.y).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,a,i.z,s,i.y).key]={backfilled:!1},i.y>0&&(l[new t.OverscaledTileID(e.overscaledZ,o,i.z,r,i.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,i.z,i.x,i.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,a,i.z,s,i.y-1).key]={backfilled:!1}),i.y+1<n&&(l[new t.OverscaledTileID(e.overscaledZ,o,i.z,r,i.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,i.z,i.x,i.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,a,i.z,s,i.y+1).key]={backfilled:!1}),l}unloadTile(t){t.demTexture&&this.map.painter.saveTileTexture(t.demTexture),t.fbo&&(t.fbo.destroy(),delete t.fbo),t.dem&&delete t.dem,delete t.neighboringTiles,t.state="unloaded"}},geojson:class extends t.Evented{constructor(e,i,n,r){super(),this.id=e,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._loaded=!1,this.actor=n.getActor(),this.setEventedParent(r),this._data=i.data,this._options=t.extend({},i),this._collectResourceTiming=i.collectResourceTiming,void 0!==i.maxzoom&&(this.maxzoom=i.maxzoom),i.type&&(this.type=i.type),i.attribution&&(this.attribution=i.attribution),this.promoteId=i.promoteId;const o=t.EXTENT/this.tileSize;this.workerOptions=t.extend({source:this.id,cluster:i.cluster||!1,geojsonVtOptions:{buffer:(void 0!==i.buffer?i.buffer:128)*o,tolerance:(void 0!==i.tolerance?i.tolerance:.375)*o,extent:t.EXTENT,maxZoom:this.maxzoom,lineMetrics:i.lineMetrics||!1,generateId:i.generateId||!1},superclusterOptions:{maxZoom:void 0!==i.clusterMaxZoom?i.clusterMaxZoom:this.maxzoom-1,minPoints:Math.max(2,i.clusterMinPoints||2),extent:t.EXTENT,radius:(void 0!==i.clusterRadius?i.clusterRadius:50)*o,log:!1,generateId:i.generateId||!1},clusterProperties:i.clusterProperties,filter:i.filter},i.workerOptions)}onAdd(t){this.map=t,this.setData(this._data)}setData(t){return this._data=t,this._updateWorkerData(),this}getClusterExpansionZoom(t,e){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:t,source:this.id},e),this}getClusterChildren(t,e){return this.actor.send("geojson.getClusterChildren",{clusterId:t,source:this.id},e),this}getClusterLeaves(t,e,i,n){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:t,limit:e,offset:i},n),this}_updateWorkerData(){if(this._pendingLoad)return void(this._coalesce=!0);this.fire(new t.Event("dataloading",{dataType:"source"})),this._loaded=!1;const e=t.extend({},this.workerOptions),i=this._data;"string"==typeof i?(e.request=this.map._requestManager.transformRequest(t.exported.resolveURL(i),t.ResourceType.Source),e.request.collectResourceTiming=this._collectResourceTiming):e.data=JSON.stringify(i),this._pendingLoad=this.actor.send(this.type+".loadData",e,(e,i)=>{if(this._loaded=!0,this._pendingLoad=null,e)this.fire(new t.ErrorEvent(e));else{const e={dataType:"source",sourceDataType:this._metadataFired?"content":"metadata"};this._collectResourceTiming&&i&&i.resourceTiming&&i.resourceTiming[this.id]&&(e.resourceTiming=i.resourceTiming[this.id]),this.fire(new t.Event("data",e)),this._metadataFired=!0}this._coalesce&&(this._updateWorkerData(),this._coalesce=!1)})}loaded(){return this._loaded}loadTile(e,i){const n=e.actor?"reloadTile":"loadTile";e.actor=this.actor,e.request=this.actor.send(n,{type:this.type,uid:e.uid,tileID:e.tileID,tileZoom:e.tileZoom,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:t.exported.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},(t,r)=>(delete e.request,e.unloadVectorData(),e.aborted?i(null):t?i(t):(e.loadVectorData(r,this.map.painter,"reloadTile"===n),i(null))),void 0,"loadTile"===n)}abortTile(t){t.request&&(t.request.cancel(),delete t.request),t.aborted=!0}unloadTile(t){t.unloadVectorData(),this.actor.send("removeTile",{uid:t.uid,type:this.type,source:this.id})}onRemove(){this._pendingLoad&&this._pendingLoad.cancel()}serialize(){return t.extend({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}},video:class extends At{constructor(t,e,i,n){super(t,e,i,n),this.roundZoom=!0,this.type="video",this.options=e}load(){this._loaded=!1;const e=this.options;this.urls=[];for(const i of e.urls)this.urls.push(this.map._requestManager.transformRequest(i,t.ResourceType.Source).url);t.getVideo(this.urls,(e,i)=>{this._loaded=!0,e?this.fire(new t.ErrorEvent(e)):i&&(this.video=i,this.video.loop=!0,this.video.setAttribute("playsinline",""),this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading())})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(e){if(this.video){const i=this.video.seekable;e<i.start(0)||e>i.end(0)?this.fire(new t.ErrorEvent(new t.ValidationError("sources."+this.id,null,`Playback for this video can be set only between the ${i.start(0)} and ${i.end(0)}-second mark.`))):this.video.currentTime=e}}getVideo(){return this.video}onAdd(t){this.map||(this.map=t,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(0===Object.keys(this.tiles).length||this.video.readyState<2)return;const e=this.map.painter.context,i=e.gl;this.texture?this.video.paused||(this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE),i.texSubImage2D(i.TEXTURE_2D,0,0,0,i.RGBA,i.UNSIGNED_BYTE,this.video)):(this.texture=new t.Texture(e,this.video,i.RGBA),this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE),this.width=this.video.videoWidth,this.height=this.video.videoHeight),this._prepareData(e)}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}},image:At,canvas:class extends At{constructor(e,i,n,r){super(e,i,n,r),i.coordinates?Array.isArray(i.coordinates)&&4===i.coordinates.length&&!i.coordinates.some(t=>!Array.isArray(t)||2!==t.length||t.some(t=>"number"!=typeof t))||this.fire(new t.ErrorEvent(new t.ValidationError("sources."+e,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.ErrorEvent(new t.ValidationError("sources."+e,null,'missing required property "coordinates"'))),i.animate&&"boolean"!=typeof i.animate&&this.fire(new t.ErrorEvent(new t.ValidationError("sources."+e,null,'optional "animate" property must be a boolean value'))),i.canvas?"string"==typeof i.canvas||i.canvas instanceof t.window.HTMLCanvasElement||this.fire(new t.ErrorEvent(new t.ValidationError("sources."+e,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new t.ErrorEvent(new t.ValidationError("sources."+e,null,'missing required property "canvas"'))),this.options=i,this.animate=void 0===i.animate||i.animate}load(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof t.window.HTMLCanvasElement?this.options.canvas:t.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new t.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())}getCanvas(){return this.canvas}onAdd(t){this.map=t,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let e=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,e=!0),this._hasInvalidDimensions())return;if(0===Object.keys(this.tiles).length)return;const i=this.map.painter.context;this.texture?(e||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new t.Texture(i,this.canvas,i.gl.RGBA,{premultiply:!0}),this._prepareData(i)}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(const t of[this.canvas.width,this.canvas.height])if(isNaN(t)||t<=0)return!0;return!1}},custom:class extends t.Evented{constructor(e,i,n,r){super(),this.id=e,this.type="custom",this._dataType="raster",this._dispatcher=n,this._implementation=i,this.setEventedParent(r),this.scheme="xyz",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this._loaded=!1,this.roundZoom=!0,this._implementation||this.fire(new t.ErrorEvent(new Error(`Missing implementation for ${this.id} custom source`))),this._implementation.loadTile||this.fire(new t.ErrorEvent(new Error(`Missing loadTile implementation for ${this.id} custom source`))),this._implementation.bounds&&(this.tileBounds=new z(this._implementation.bounds,this.minzoom,this.maxzoom)),i.update=this._update.bind(this),i.clearTiles=this._clearTiles.bind(this),i.coveringTiles=this._coveringTiles.bind(this),t.extend(this,t.pick(i,["dataType","scheme","minzoom","maxzoom","tileSize","attribution","minTileCacheSize","maxTileC
39acheSize"]))}serialize(){return t.pick(this,["type","scheme","minzoom","maxzoom","tileSize","attribution"])}load(){this._loaded=!0,this.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"}))}loaded(){return this._loaded}onAdd(e){this._map=e,this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this._implementation.onAdd&&this._implementation.onAdd(e),this.load()}onRemove(t){this._implementation.onRemove&&this._implementation.onRemove(t)}hasTile(t){if(this._implementation.hasTile){const{x:e,y:i,z:n}=t.canonical;return this._implementation.hasTile({x:e,y:i,z:n})}return!this.tileBounds||this.tileBounds.contains(t.canonical)}loadTile(e,i){const{x:n,y:r,z:o}=e.tileID.canonical,s=new t.window.AbortController;e.request=Promise.resolve(this._implementation.loadTile({x:n,y:r,z:o},{signal:s.signal})).then(function(n){return delete e.request,e.aborted?(e.state="unloaded",i(null)):void 0===n?(e.state="errored",i(null)):null===n?(this.loadTileData(e,{width:this.tileSize,height:this.tileSize,data:null}),e.state="loaded",i(null)):function(e){return e instanceof t.window.ImageData||e instanceof t.window.HTMLCanvasElement||e instanceof t.window.ImageBitmap||e instanceof t.window.HTMLImageElement}(n)?(this.loadTileData(e,n),e.state="loaded",void i(null)):(e.state="errored",i(new Error(`Can't infer data type for ${this.id}, only raster data supported at the moment`)))}.bind(this)).catch(t=>{20!==t.code&&(e.state="errored",i(t))}),e.request.cancel=()=>s.abort()}loadTileData(t,e){kt.loadTileData(t,e,this._map.painter)}unloadTileData(t){kt.unloadTileData(t,this._map.painter)}unloadTile(t,e){if(this.unloadTileData(t),this._implementation.unloadTile){const{x:e,y:i,z:n}=t.tileID.canonical;this._implementation.unloadTile({x:e,y:i,z:n})}e()}abortTile(t,e){t.request&&t.request.cancel&&(t.request.cancel(),delete t.request),e()}hasTransition(){return!1}_coveringTiles(){return this._map.transform.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,roundZoom:this.roundZoom}).map(t=>({x:t.canonical.x,y:t.canonical.y,z:t.canonical.z}))}_clearTiles(){this._map.style._clearSource(this.id)}_update(){this.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"}))}}},It=function(e,i,n,r){const o=new Ct[i.type](e,i,n,r);if(o.id!==e)throw new Error(`Expected Source id to be ${e} instead of ${o.id}`);return t.bindAll(["load","abort","unload","serialize","prepare"],o),o};function Mt(e,i){const n=t.identity([]);return t.scale(n,n,[.5*e.width,.5*-e.height,1]),t.translate(n,n,[1,-1,0]),t.multiply(n,n,e.calculateProjMatrix(i.toUnwrapped())),Float32Array.from(n)}function Pt(t,e,i,n,r,o,s,a=!1){const l=t.tilesIn(n,s,a);l.sort(Lt);const c=[];for(const h of l)c.push({wrappedTileID:h.tile.tileID.wrapped().key,queryResults:h.tile.queryRenderedFeatures(e,i,t._state,h,r,o,Mt(t.transform,h.tile.tileID),a)});const u=function(t){const e={},i={};for(const n of t){const t=n.queryResults,r=n.wrappedTileID,o=i[r]=i[r]||{};for(const i in t){const n=t[i],r=o[i]=o[i]||{},s=e[i]=e[i]||[];for(const t of n)r[t.featureIndex]||(r[t.featureIndex]=!0,s.push(t))}}return e}(c);for(const h in u)u[h].forEach(e=>{const i=e.feature,n=i.layer;n&&"background"!==n.type&&"sky"!==n.type&&(i.source=n.source,n["source-layer"]&&(i.sourceLayer=n["source-layer"]),i.state=void 0!==i.id?t.getFeatureState(n["source-layer"],i.id):{})});return u}function Dt(t,e){const i=t.getRenderableIds().map(e=>t.getTileByID(e)),n=[],r={};for(let o=0;o<i.length;o++){const t=i[o],s=t.tileID.canonical.key;r[s]||(r[s]=!0,t.querySourceFeatures(n,e))}return n}function Lt(t,e){const i=t.tileID,n=e.tileID;return i.overscaledZ-n.overscaledZ||i.canonical.y-n.canonical.y||i.wrap-n.wrap||i.canonical.x-n.canonical.x}function Rt(){return null!=fo.workerClass?new fo.workerClass:new t.window.Worker(fo.workerUrl)}const zt="mapboxgl_preloaded_worker_pool";class jt{constructor(){this.active={}}acquire(t){if(!this.workers)for(this.workers=[];this.workers.length<jt.workerCount;)this.workers.push(new Rt);return this.active[t]=!0,this.workers.slice()}release(t){delete this.active[t],0===this.numActive()&&(this.workers.forEac
vendor: 8,319 bytes, line 39
39h(t=>{t.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[zt]}numActive(){return Object.keys(this.active).length}}let Bt;function Ft(){return Bt||(Bt=new jt),Bt}function Nt(e,i){const n={};for(const t in e)"ref"!==t&&(n[t]=e[t]);return t.refProperties.forEach(t=>{t in i&&(n[t]=i[t])}),n}function Vt(t){t=t.slice();const e=Object.create(null);for(let i=0;i<t.length;i++)e[t[i].id]=t[i];for(let i=0;i<t.length;i++)"ref"in t[i]&&(t[i]=Nt(t[i],e[t[i].ref]));return t}jt.workerCount=2;const $t={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",setTerrain:"setTerrain",setFog:"setFog",setProjection:"setProjection"};function Ut(t,e,i){i.push({command:$t.addSource,args:[t,e[t]]})}function qt(t,e,i){e.push({command:$t.removeSource,args:[t]}),i[t]=!0}function Gt(t,e,i,n){qt(t,i,n),Ut(t,e,i)}function Wt(t,i,n){let r;for(r in t[n])if(t[n].hasOwnProperty(r)&&"data"!==r&&!e(t[n][r],i[n][r]))return!1;for(r in i[n])if(i[n].hasOwnProperty(r)&&"data"!==r&&!e(t[n][r],i[n][r]))return!1;return!0}function Zt(t,i,n,r,o,s){let a;for(a in i=i||{},t=t||{})t.hasOwnProperty(a)&&(e(t[a],i[a])||n.push({command:s,args:[r,a,i[a],o]}));for(a in i)i.hasOwnProperty(a)&&!t.hasOwnProperty(a)&&(e(t[a],i[a])||n.push({command:s,args:[r,a,i[a],o]}))}function Ht(t){return t.id}function Xt(t,e){return t[e.id]=e,t}class Qt{constructor(t,e){this.reset(t,e)}reset(t,e){this.points=t||[],this._distances=[0];for(let i=1;i<this.points.length;i++)this._distances[i]=this._distances[i-1]+this.points[i].dist(this.points[i-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(e||0,.5*this.length),this.paddedLength=this.length-2*this.padding}lerp(e){if(1===this.points.length)return this.points[0];e=t.clamp(e,0,1);let i=1,n=this._distances[i];const r=e*this.paddedLength+this.padding;for(;n<r&&i<this._distances.length;)n=this._distances[++i];const o=i-1,s=this._distances[o],a=n-s,l=a>0?(r-s)/a:0;return this.points[o].mult(1-l).add(this.points[i].mult(l))}}class Yt{constructor(t,e,i){const n=this.boxCells=[],r=this.circleCells=[];this.xCellCount=Math.ceil(t/i),this.yCellCount=Math.ceil(e/i);for(let o=0;o<this.xCellCount*this.yCellCount;o++)n.push([]),r.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=t,this.height=e,this.xScale=this.xCellCount/t,this.yScale=this.yCellCount/e,this.boxUid=0,this.circleUid=0}keysLength(){return this.boxKeys.length+this.circleKeys.length}insert(t,e,i,n,r){this._forEachCell(e,i,n,r,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(e),this.bboxes.push(i),this.bboxes.push(n),this.bboxes.push(r)}insertCircle(t,e,i,n){this._forEachCell(e-n,i-n,e+n,i+n,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(e),this.circles.push(i),this.circles.push(n)}_insertBoxCell(t,e,i,n,r,o){this.boxCells[r].push(o)}_insertCircleCell(t,e,i,n,r,o){this.circleCells[r].push(o)}_query(t,e,i,n,r,o){if(i<0||t>this.width||n<0||e>this.height)return!r&&[];const s=[];if(t<=0&&e<=0&&this.width<=i&&this.height<=n){if(r)return!0;for(let t=0;t<this.boxKeys.length;t++)s.push({key:this.boxKeys[t],x1:this.bboxes[4*t],y1:this.bboxes[4*t+1],x2:this.bboxes[4*t+2],y2:this.bboxes[4*t+3]});for(let t=0;t<this.circleKeys.length;t++){const e=this.circles[3*t],i=this.circles[3*t+1],n=this.circles[3*t+2];s.push({key:this.circleKeys[t],x1:e-n,y1:i-n,x2:e+n,y2:i+n})}return o?s.filter(o):s}return this._forEachCell(t,e,i,n,this._queryCell,s,{hitTest:r,seenUids:{box:{},circle:{}}},o),r?s.length>0:s}_queryCircle(t,e,i,n,r){const o=t-i,s=t+i,a=e-i,l=e+i;if(s<0||o>this.width||l<0||a>this.height)return!n&&[];const c=[];return this._forEachCell(o,a,s,l,this._queryCellCircle,c,{hitTest:n,circle:{x:t,y:e,radius:i},seenUids:{box:{},circle:{}}},r),n?c.length>0:c}query(t,e,i,n,r){return this._query(t,e,i,n,!1,r)}hitTest(t,e,i,n,r){return this._query(t,e,i,n,!0,r)}hitTestCircle(t,e,i,n){return this._queryCircle(t,e,i,!0,n)}_queryCell(t,e,i,n,r,o,s,a){const l=s.seenUids,c=this.boxCells[r];if(null!==c){const r=this.bboxes;for(const u of c)if(!l.box[u]){l.box[u]=!0;const c=4*u;if(t<=r[c+2]&&e<=r[c+3]&&i>=r[c+0]&&n>=r[c+1]&&(!a||a(this.boxKeys[u]))){if(s.hitTest)return o.push(!0),!0;o.push({key:this.boxKeys[u],x1:r[c],y1:r[c+1],x2:r[c+2],y2:r[c+3]})}}}const u=this.circleCells[r];if(null!==u){const r=this.circles;for(const c of u)if(!l.circle[c]){l.circle[c]=!0;const u=3*c;if(this._circleAndRectCollide(r[u],r[u+1],r[u+2],t,e,i,n)&&(!a||a(this.circleKeys[c]))){if(s.hitTest)return o.push(!0),!0;{const t=r[u],e=r[u+1],i=r[u+2];o.push({key:this.circleKeys[c],x1:t-i,y1:e-i,x2:t+i,y2:e+i})}}}}}_queryCellCircle(t,e,i,n,r,o,s,a){const l=s.circle,c=s.seenUids,u=this.boxCells[r];if(null!==u){const t=this.bboxes;for(const e of u)if(!c.box[e]){c.box[e]=!0;const i=4*e;if(this._circleAndRectCollide(l.x,l.y,l.radius,t[i+0],t[i+1],t[i+2],t[i+3])&&(!a||a(this.boxKeys[e])))return o.push(!0),!0}}const h=this.circleCells[r];if(null!==h){const t=this.circles;for(const e of h)if(!c.circle[e]){c.circle[e]=!0;const i=3*e;if(this._circlesCollide(t[i],t[i+1],t[i+2],l.x,l.y,l.radius)&&(!a||a(this.circleKeys[e])))return o.push(!0),!0}}}_forEachCell(t,e,i,n,r,o,s,a){const l=this._convertToXCellCoord(t),c=this._convertToYCellCoord(e),u=this._convertToXCellCoord(i),h=this._convertToYCellCoord(n);for(let d=l;d<=u;d++)for(let l=c;l<=h;l++)if(r.call(this,t,e,i,n,this.xCellCount*l+d,o,s,a))return}_convertToXCellCoord(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))}_convertToYCellCoord(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))}_circlesCollide(t,e,i,n,r,o){const s=n-t,a=r-e,l=i+o;return l*l>s*s+a*a}_circleAndRectCollide(t,e,i,n,r,o,s){const a=(o-n)/2,l=Math.abs(t-(n+a));if(l>a+i)return!1;const c=(s-r)/2,u=Math.abs(e-(r+c));if(u>c+i)return!1;if(l<=a||u<=c)return!0;const h=l-a,d=u-c;return h*h+d*d<=i*i}}const Kt={unknown:0,flipRequired:1,flipNotRequired:2},Jt=Math.tan(85*Math.PI/180);function te(e,i,n,r,o,s,a){const l=t.create();if(n)if("globe"===s.name){const e=t.calculateGlobeLabelMatrix(o,i);t.multiply(l,l,e)}else{const e=_([],a);l[0]=e[0],l[1]=e[1],l[4]=e[2],l[5]=e[3],r||t.rotateZ(l,l,o.angle)}else t.multiply(l,o.labelPlaneMatrix,e);return l}function ee(t,e,i,n,r,o,s){const a=te(t,e,i,n,r,o,s);return"globe"===o.name&&i||(a[2]=a[6]=a[10]=a[14]=0),a}function ie(e,i,n,r,o,s,a){if(n){if("globe"===s.name){const l=te(e,i,n,r,o,s,a);return t.invert(l,l),t.multiply(l,e,l),l}{const i=t.clone(e),n=t.identity([]);return n[0]=a[0],n[1]=a[1],n[4]=a[2],n[5]=a[3],t.multiply(i,i,n),r||t.rotateZ(i,i,-o.angle),i}}return o.glCoordMatrix}function ne(e,i,n,r){const o=[e,i,n,1];n?t.transformMat4$1(o,o,r):pe(o,o,r);const s=o[3];return o[0]/=s,o[1]/=s,o[2]/=s,o}function re(t,e){return Math.min(.5+t/e*.5,1.5)}function oe(t,e){const i=t[0]/t[3],n=t[1]/t[3];return i>=-e[0]&&i<=e[0]&&n>=-e[1]&&n<=e[1]}function se(e,i,n,r,o,s,a,l,c,u){const h=n.transform,d=r?e.textSizeData:e.iconSizeData,f=t.evaluateSizeForZoom(d,n.transform.zoom),p="globe"===h.projection.name,m=[256/n.width*2+1,256/n.height*2+1],g=r?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;g.clear();let y=null;p&&(y=r?e.text.globeExtVertexArray:e.icon.globeExtVertexArray);const _=e.lineVertexArray,v=r?e.text.placedSymbolArray:e.icon.placedSymbolArray,b=n.transform.width/n.transform.height;let x,w=!1;for(let E=0;E<v.length;E++){const r=v.get(E),{numGlyphs:p,writingMode:T}=r;if(T!==t.WritingMode.vertical||w||x===t.WritingMode.horizontal||(w=!0),x=T,(r.hidden||T===t.WritingMode.vertical)&&!w){fe(p,g);continue}w=!1;const S=new t.Point(r.tileAnchorX,r.tileAnchorY);let{x:k,y:O,z:A}=h.projection.projectTilePoint(S.x,S.y,u.canonical);if(c){const[t,e,i]=c(S);k+=t,O+=e,A+=i}const C=[k,O,A,1];if(t.transformMat4$1(C,C,i),!oe(C,m)){fe(p,g);continue}const I=re(n.transform.cameraToCenterDistance,C[3]),M=t.evaluateSizeForFeature
vendor: 6,589 bytes, line 39
39(d,f,r),P=a?M/I:M*I,D=ne(k,O,A,o);if(D[3]<=0){fe(p,g);continue}let L={};const R=a?null:c,z=ce(r,P,!1,l,i,o,s,e.glyphOffsetArray,_,g,y,D,S,L,b,R,h.projection,u,a);w=z.useVertical,R&&z.needsFlipping&&(L={}),(z.notEnoughRoom||w||z.needsFlipping&&ce(r,P,!0,l,i,o,s,e.glyphOffsetArray,_,g,y,D,S,L,b,R,h.projection,u,a).notEnoughRoom)&&fe(p,g)}r?(e.text.dynamicLayoutVertexBuffer.updateData(g),y&&e.text.globeExtVertexBuffer.updateData(y)):(e.icon.dynamicLayoutVertexBuffer.updateData(g),y&&e.icon.globeExtVertexBuffer.updateData(y))}function ae(t,e,i,n,r,o,s,a,l,c,u,h,d,f,p,m){const{lineStartIndex:g,glyphStartIndex:y,segment:_}=a,v=y+a.numGlyphs,b=g+a.lineLength,x=e.getoffsetX(y),w=e.getoffsetX(v-1),E=de(t*x,i,n,r,o,s,_,g,b,l,c,u,h,d,!0,f,p,m);if(!E)return null;const T=de(t*w,i,n,r,o,s,_,g,b,l,c,u,h,d,!0,f,p,m);return T?{first:E,last:T}:null}function le(e,i,n,r){return e===t.WritingMode.horizontal&&Math.abs(r)>Math.abs(n)?{useVertical:!0}:e===t.WritingMode.vertical?r>0?{needsFlipping:!0}:null:i!==Kt.unknown&&function(t,e){return 0===t||Math.abs(e/t)>Jt}(n,r)?i===Kt.flipRequired?{needsFlipping:!0}:null:n<0?{needsFlipping:!0}:null}function ce(e,i,n,r,o,s,a,l,c,u,h,d,f,p,m,g,y,_,v){const b=i/24,x=e.lineOffsetX*b,w=e.lineOffsetY*b,{lineStartIndex:E,glyphStartIndex:T,numGlyphs:S,segment:k,writingMode:O,flipState:A}=e,C=E+e.lineLength,I=e=>{if(h){const[i,n,r]=e.up,o=u.length;t.updateGlobeVertexNormal(h,o+0,i,n,r),t.updateGlobeVertexNormal(h,o+1,i,n,r),t.updateGlobeVertexNormal(h,o+2,i,n,r),t.updateGlobeVertexNormal(h,o+3,i,n,r)}const[i,n,r]=e.point;t.addDynamicAttributes(u,i,n,r,e.angle)};if(S>1){const t=ae(b,l,x,w,n,d,f,e,c,s,p,g,!1,y,_,v);if(!t)return{notEnoughRoom:!0};if(r&&!n){let[i,n,r]=t.first.point,[o,s,l]=t.last.point;[i,n]=ne(i,n,r,a),[o,s]=ne(o,s,l,a);const c=le(O,A,(o-i)*m,s-n);if(e.flipState=c&&c.needsFlipping?Kt.flipRequired:Kt.flipNotRequired,c)return c}I(t.first);for(let e=T+1;e<T+S-1;e++){const t=de(b*l.getoffsetX(e),x,w,n,d,f,k,E,C,c,s,p,g,!1,!1,y,_,v);if(!t)return u.length-=4*(e-T),{notEnoughRoom:!0};I(t)}I(t.last)}else{if(r&&!n){const i=ne(f.x,f.y,0,o),n=E+k+1,r=new t.Point(c.getx(n),c.gety(n)),s=ne(r.x,r.y,0,o),a=s[3]>0?s:he(f,r,i,1,o,void 0,y,_.canonical),l=le(O,A,(a[0]-i[0])*m,a[1]-i[1]);if(e.flipState=l&&l.needsFlipping?Kt.flipRequired:Kt.flipNotRequired,l)return l}const i=de(b*l.getoffsetX(T),x,w,n,d,f,k,E,C,c,s,p,g,!1,!1,y,_,v);if(!i)return{notEnoughRoom:!0};I(i)}return{}}function ue(t,e,i,n,r){const{x:o,y:s,z:a}=n.projectTilePoint(t.x,t.y,e);if(!r)return ne(o,s,a,i);const[l,c,u]=r(t);return ne(o+l,s+c,a+u,i)}function he(e,i,n,r,o,s,a,l){const c=ue(e.sub(i)._unit()._add(e),l,o,a,s);return t.sub(c,n,c),t.normalize(c,c),t.scaleAndAdd(c,n,c,r)}function de(e,i,n,r,o,s,a,l,c,u,h,d,f,p,m,g,y,_){const v=r?e-i:e+i;let b=v>0?1:-1,x=0;r&&(b*=-1,x=Math.PI),b<0&&(x+=Math.PI);let w=l+a+(b>0?0:1)|0,E=o,T=o,S=0,k=0;const O=Math.abs(v),A=[],C=[];let I=s,M=I;const P=()=>he(M,I,T,O-S+1,h,f,g,y.canonical);for(;S+k<=O;){if(w+=b,w<l||w>=c)return null;if(T=E,M=I,A.push(T),p&&C.push(M),I=new t.Point(u.getx(w),u.gety(w)),E=d[w],!E){const t=ue(I,y.canonical,h,g,f);E=t[3]>0?d[w]=t:P()}S+=k,k=t.distance(T,E)}m&&f&&(d[w]&&(E=P(),k=t.distance(T,E)),d[w]=E);const D=(O-S)/k,L=I.sub(M)._mult(D)._add(M),R=t.sub([],E,T),z=t.scaleAndAdd([],T,R,D);let j=[0,0,1],B=R[0],F=R[1];if(_&&(j=g.upVector(y.canonical,L.x,L.y),0!==j[0]||0!==j[1]||1!==j[2])){const e=[j[2],0,-j[0]],i=t.cross([],j,e);t.normalize(e,e),t.normalize(i,i),B=t.dot(R,e),F=t.dot(R,i)}if(n){const e=t.cross([],j,R);t.normalize(e,e),t.scaleAndAdd(z,z,e,n*b)}const N=x+Math.atan2(F,B);return A.push(z),p&&C.push(L),{point:z,angle:N,path:A,tilePath:C,up:j}}function fe(t,e){const i=e.length,n=i+4*t;e.resize(n),e.float32.fill(-1/0,4*i,4*n)}function pe(t,e,i){const n=e[0],r=e[1];return t[0]=i[0]*n+i[4]*r+i[12],t[1]=i[1]*n+i[5]*r+i[13],t[3]=i[3]*n+i[7]*r+i[15],t}const me=100;class ge{constructor(t,e,i=new Yt(t.width+200,t.height+200,25),n=new Yt(t.width+200,t.height+200,25)){this.transform=t,this.grid=i,this.ignoredGrid=n,this.pitchfactor=Math.cos(t._pitch)*t.cameraToCenterDistance,this.screenRightBoundary=t.width+me,this.screenBottomBoundary=t.height+me,this.gridRightBoundary=t.width+200,this.gridBottomBoundary=t.height+200,this.fogState=e}placeCollisionBox(t,e,i,n,r,o,s,a){let l=i.projectedAnchorX,c=i.projectedAnchorY,u=i.projectedAnchorZ;const h=i.elevation,d=i.tileID,f=t.getProjection();if(h&&d){const[t,e,n]=f.upVector(d.canonical,i.tileAnchorX,i.tileAnchorY),r=f.upVectorScale(d.canonical,this.transform.center.lat,this.transform.worldSize).metersToTile;l+=t*h*r,c+=e*h*r,u+=n*h*r}const p=this.projectAndGetPerspectiveRatio(s,l,c,u,i.tileID,"globe"===f.name||!!h||this.transform.pitch>0,f),m=o*p.perspectiveRatio,g=(i.x1*e+n.x-i.padding)*m+p.point.x,y=(i.y1*e+n.y-i.padding)*m+p.point.y,_=(i.x2*e+n.x+i.padding)*m+p.point.x,v=(i.y2*e+n.y+i.padding)*m+p.point.y,b=p.perspectiveRatio<=.55||p.occluded;return!this.isInsideGrid(g,y,_,v)||!r&&this.grid.hitTest(g,y,_,v,a)||b?{box:[],offscreen:!1,occluded:p.occluded}:{box:[g,y,_,v],offscreen:this.isOffscreen(g,y,_,v),occluded:!1}}placeCollisionCircles(e,i,n,r,o,s,a,l,c,u,h,d,f,p,m){const g=[],y=this.transform.elevation,_=e.getProjection(),v=y?y.getAtTileOffsetFunc(m,this.transform.center.lat,this.transform.worldSize,_):null,b=new t.Point(n.tileAnchorX,n.tileAnchorY);let{x:x,y:w,z:E}=_.projectTilePoint(b.x,b.y,m.canonical);if(v){const[t,e,i]=v(b);x+=t,w+=e,E+=i}const T="globe"===_.name,S=this.projectAndGetPerspectiveRatio(a,x,w,E,m,T||!!y||this.transform.pitch>0,_),{perspectiveRatio:k}=S,O=(h?s/k:s*k)/t.ONE_EM,A=ne(x,w,E,l),C=S.signedDistanceFromCamera>0?ae(O,o,n.lineOffsetX*O,n.lineOffsetY*O,!1,A,b,n,r,l,{},y&&!h?v:null,h&&!!y,_,m,h):null;let I=!1,M=!1,P=!0;if(C&&!S.occluded){const e=.5*f*k+p,n=new t.Point(-100,-100),r=new t.Point(this.screenRightBoundary,this.screenBottomBoundary),o=new Qt,{first:s,last:a}=C,l=s.path.length;let h=[];for(let t=l-1;t>=1;t--)h.push(s.path[t]);for(let t=1;t<a.path.length;t++)h.push(a.path[t]);const m=2.5*e;c&&(h=h.map(([t,e,i],n)=>(v&&!T&&(i=v(n<l-1?s.tilePath[l-1-n]:a.tilePath[n-l+2])[2]),ne(t,e,i,c))),h.some(t=>t[3]<=0)&&(h=[]));let y=[];if(h.length>0){let e=1/0,i=-1/0,o=1/0,s=-1/0;for(const t of h)e=Math.min(e,t[0]),o=Math.min(o,t[1]),i=Math.max(i,t[0]),s=Math.max(s,t[1]);i>=n.x&&e<=r.x&&s>=n.y&&o<=r.y&&(y=[h.map(e=>new t.Point(e[0],e[1]))],(e<n.x||i>r.x||o<n.y||s>r.y)&&(y=t.clipLine(y,n.x,n.y,r.x,r.y)))}for(const t of y){o.reset(t,.25*e);let n=0;n=o.length<=.5*e?1:Math.ceil(o.paddedLength/m)+1;for(let t=0;t<n;t++){const r=t/Math.max(n-1,1),s=o.lerp(r),a=s.x+me,l=s.y+me;
vendor: 11,328 bytes, line 39
39g.push(a,l,e,0);const c=a-e,h=l-e,f=a+e,p=l+e;if(P=P&&this.isOffscreen(c,h,f,p),M=M||this.isInsideGrid(c,h,f,p),!i&&this.grid.hitTestCircle(a,l,e,d)&&(I=!0,!u))return{circles:[],offscreen:!1,collisionDetected:I,occluded:!1}}}}return{circles:!u&&I||!M?[]:g,offscreen:P,collisionDetected:I,occluded:S.occluded}}queryRenderedSymbols(e){if(0===e.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};const i=[];let n=1/0,r=1/0,o=-1/0,s=-1/0;for(const u of e){const e=new t.Point(u.x+me,u.y+me);n=Math.min(n,e.x),r=Math.min(r,e.y),o=Math.max(o,e.x),s=Math.max(s,e.y),i.push(e)}const a=this.grid.query(n,r,o,s).concat(this.ignoredGrid.query(n,r,o,s)),l={},c={};for(const u of a){const e=u.key;if(void 0===l[e.bucketInstanceId]&&(l[e.bucketInstanceId]={}),l[e.bucketInstanceId][e.featureIndex])continue;const n=[new t.Point(u.x1,u.y1),new t.Point(u.x2,u.y1),new t.Point(u.x2,u.y2),new t.Point(u.x1,u.y2)];t.polygonIntersectsPolygon(i,n)&&(l[e.bucketInstanceId][e.featureIndex]=!0,void 0===c[e.bucketInstanceId]&&(c[e.bucketInstanceId]=[]),c[e.bucketInstanceId].push(e.featureIndex))}return c}insertCollisionBox(t,e,i,n,r){(e?this.ignoredGrid:this.grid).insert({bucketInstanceId:i,featureIndex:n,collisionGroupID:r},t[0],t[1],t[2],t[3])}insertCollisionCircles(t,e,i,n,r){const o=e?this.ignoredGrid:this.grid,s={bucketInstanceId:i,featureIndex:n,collisionGroupID:r};for(let a=0;a<t.length;a+=4)o.insertCircle(s,t[a],t[a+1],t[a+2])}projectAndGetPerspectiveRatio(e,i,n,r,o,s,a){const l=[i,n,r,1];let c=!1;if(r||this.transform.pitch>0){if(t.transformMat4$1(l,l,e),this.fogState&&o&&"globe"!==a.name){const e=function(e,i,n,r,o,s){const a=s.calculateFogTileMatrix(o),l=[i,n,r];return t.transformMat4(l,l,a),S(e,l,s.pitch,s._fov)}(this.fogState,i,n,r,o.toUnwrapped(),this.transform);c=e>.9}}else pe(l,l,e);const u=l[3];return{point:new t.Point((l[0]/u+1)/2*this.transform.width+me,(-l[1]/u+1)/2*this.transform.height+me),perspectiveRatio:Math.min(.5+this.transform.getCameraToCenterDistance(a)/u*.5,1.5),signedDistanceFromCamera:u,occluded:s&&l[2]>u||c}}isOffscreen(t,e,i,n){return i<me||t>=this.screenRightBoundary||n<me||e>this.screenBottomBoundary}isInsideGrid(t,e,i,n){return i>=0&&t<this.gridRightBoundary&&n>=0&&e<this.gridBottomBoundary}getViewportMatrix(){const e=t.identity([]);return t.translate(e,e,[-100,-100,0]),e}}function ye(e,i,n){const r=i.createTileMatrix(e,e.worldSize,n.toUnwrapped());return t.multiply(new Float32Array(16),e.projMatrix,r)}function _e(t,e,i){if(e.projection.name===i.projection.name)return t.projMatrix;const n=i.clone();return n.setProjection(e.projection),ye(n,e.getProjection(),t)}function ve(t,e,i){return e.name===i.projection.name?t.projMatrix:ye(i,e,t)}class be{constructor(t,e,i,n){this.opacity=t?Math.max(0,Math.min(1,t.opacity+(t.placed?e:-e))):n&&i?1:0,this.placed=i}isHidden(){return 0===this.opacity&&!this.placed}}class xe{constructor(t,e,i,n,r,o=!1){this.text=new be(t?t.text:null,e,i,r),this.icon=new be(t?t.icon:null,e,n,r),this.clipped=o}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class we{constructor(t,e,i,n=!1){this.text=t,this.icon=e,this.skipFade=i,this.clipped=n}}class Ee{constructor(){this.invProjMatrix=t.create(),this.viewportMatrix=t.create(),this.circles=[]}}class Te{constructor(t,e,i,n,r){this.bucketInstanceId=t,this.featureIndex=e,this.sourceLayerIndex=i,this.bucketIndex=n,this.tileID=r}}class Se{constructor(t){this.crossSourceCollisions=t,this.maxGroupID=0,this.collisionGroups={}}get(t){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[t]){const e=++this.maxGroupID;this.collisionGroups[t]={ID:e,predicate:t=>t.collisionGroupID===e}}return this.collisionGroups[t]}}function ke(e,i,n,r,o){const{horizontalAlign:s,verticalAlign:a}=t.getAnchorAlignment(e),l=-(s-.5)*i,c=-(a-.5)*n,u=t.evaluateVariableOffset(e,r);return new t.Point(l+u[0]*o,c+u[1]*o)}function Oe(e,i,n,r,o){const s=new t.Point(e,i);return n&&s._rotate(r?o:-o),s}class Ae{constructor(t,e,i,n,r){this.transform=t.clone(),this.projection=t.projection.name,this.collisionIndex=new ge(this.transform,r),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=e,this.retainedQueryData={},this.collisionGroups=new Se(i),this.collisionCircleArrays={},this.prevPlacement=n,n&&(n.prevPlacement=void 0),this.placedOrientations={}}getBucketParts(e,i,n,r){const o=n.getBucket(i),s=n.latestFeatureIndex;if(!o||!s||i.id!==o.layerIds[0])return;const a=o.layers[0].layout,l=n.collisionBoxArray,c=Math.pow(2,this.transform.zoom-n.tileID.overscaledZ),u=n.tileSize/t.EXTENT,h=n.tileID.toUnwrapped();this.transform.setProjection(o.projection);const d=(f=n.tileID,p=o.getProjection(),m=this.transform,p.name===this.projection?m.calculateProjMatrix(f.toUnwrapped()):ye(m,p,f));var f,p,m;const g="map"===a.get("text-pitch-alignment"),y="map"===a.get("text-rotation-alignment");i.compileFilter();const _=i.dynamicFilter(),v=i.dynamicFilterNeedsFeature(),b=this.transform.calculatePixelsToTileUnitsMatrix(n),x=ee(d,n.tileID.canonical,g,y,this.transform,o.getProjection(),b);let w=null;if(g){const e=ie(d,n.tileID.canonical,g,y,this.transform,o.getProjection(),b);w=t.multiply([],this.transform.labelPlaneMatrix,e)}let E=null;_&&n.latestFeatureIndex&&(E={unwrappedTileID:h,dynamicFilter:_,dynamicFilterNeedsFeature:v,featureIndex:n.latestFeatureIndex}),this.retainedQueryData[o.bucketInstanceId]=new Te(o.bucketInstanceId,s,o.sourceLayerIndex,o.index,n.tileID);const T={bucket:o,layout:a,posMatrix:d,textLabelPlaneMatrix:x,labelToScreenMatrix:w,clippingData:E,scale:c,textPixelRatio:u,holdingForFade:n.holdingForFade(),collisionBoxArray:l,partiallyEvaluatedTextSize:t.evaluateSizeForZoom(o.textSizeData,this.transform.zoom),partiallyEvaluatedIconSize:t.evaluateSizeForZoom(o.iconSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(o.sourceID)};if(r)for(const t of o.sortKeyRanges){const{sortKey:i,symbolInstanceStart:n,symbolInstanceEnd:r}=t;e.push({sortKey:i,symbolInstanceStart:n,symbolInstanceEnd:r,parameters:T})}else e.push({symbolInstanceStart:0,symbolInstanceEnd:o.symbolInstances.length,parameters:T})}attemptAnchorPlacement(t,e,i,n,r,o,s,a,l,c,u,h,d,f,p,m,g,y){const{textOffset0:_,textOffset1:v,crossTileID:b}=h,x=[_,v],w=ke(t,i,n,x,r),E=this.collisionIndex.placeCollisionBox(f,r,e,Oe(w.x,w.y,o,s,this.transform.angle),u,a,l,c.predicate);if(m){const t=f.getSymbolInstanceIconSize(y,this.transform.zoom,h.placedIconSymbolIndex);if(0===this.collisionIndex.placeCollisionBox(f,t,m,Oe(w.x,w.y,o,s,this.transform.angle),u,a,l,c.predicate).box.length)return}if(E.box.length>0){let e;return this.prevPlacement&&this.prevPlacement.variableOffsets[b]&&this.prevPlacement.placements[b]&&this.prevPlacement.placements[b].text&&(e=this.prevPlacement.variableOffsets[b].anchor),this.variableOffsets[b]={textOffset:x,width:i,height:n,anchor:t,textScale:r,prevAnchor:e},this.markUsedJustification(f,t,h,p),f.allowVerticalPlacement&&(this.markUsedOrientation(f,p,h),this.placedOrientations[b]=p),{shift:w,placedGlyphBoxes:E}}}placeLayerBucketPart(e,i,n,r){const{bucket:o,layout:s,posMatrix:a,textLabelPlaneMatrix:l,labelToScreenMatrix:c,clippingData:u,textPixelRatio:h,holdingForFade:d,collisionBoxArray:f,partiallyEvaluatedTextSize:p,partiallyEvaluatedIconSize:m,collisionGroup:g}=e.parameters,y=s.get("text-optional"),_=s.get("icon-optional"),v=s.get("text-allow-overlap"),b=s.get("icon-allow-overlap"),x="map"===s.get("text-rotation-alignment"),w="map"===s.get("text-pitch-alignment"),E="none"!==s.get("icon-text-fit"),T="viewport-y"===s.get("symbol-z-order");this.transform.setProjection(o.projection);let S=v&&(b||!o.hasIconData()||_),k=b&&(v||!o.hasTextData()||y);!o.collisionArrays&&f&&o.deserializeCollisionBoxes(f),n&&r&&o.updateCollisionDebugBuffers(this.transform.zoom,f);const O=(e,r,f)=>{const{crossTileID:T,numVerticalGlyphVertices:O}=e;if(u){const n={zoom:this.transform.zoom,pitch:this.transform.pitch};let r=null;if(u.dynamicFilterNeedsFeature){const t=this.retainedQueryData[o.bucketInstanceId];r=u.featureIndex.loadFeature({featureIndex:e.featureIndex,bucketIndex:t.bucketIndex,sourceLayerIndex:t.sourceLayerIndex,layoutVertexArrayOffset:0})}if(!(0,u.dynamicFilter)(n,r,this.retainedQueryData[o.bucketInstanceId].tileID.canonical,new t.Point(e.tileAnchorX,e.tileAnchorY),this.transform.calculateDistanceTileData(u.unwrappedTileID)))return this.placements[T]=new we(!1,!1,!1,!0),void i.add(T)}if(i.has(T))return;if(d)return void(this.placements[T]=new we(!1,!1,!1));let A=!1,C=!1,I=!0,M=!1,P=!1,D=null,L={box:null,offscreen:null,occluded:null},R={box:null,offscreen:null,occluded:null},z=null,j=null,B=null,F=0,N=0,V=0;f.textFeatureIndex?F=f.textFeatureIndex:e.useRuntimeCollisionCircles&&(F=e.featureIndex),f.verticalTextFeatureIndex&&(N=f.verticalTextFeatureIndex);const $=t=>{t.tileID=this.retainedQueryData[o.bucketInstanceId].tileID;const e=this.transform.elevation;(e||t.elevation)&&(t.elevation=e?e.getAtTileOffset(t.tileID,t.tileAnchorX,t.tileAnchorY):0)},U=f.textBox;if(U){$(U);const i=i=>{let n=t.WritingMode.horizontal;if(o.allowVerticalPlacement&&!i&&this.prevPlacement){const t=this.prevPlacement.placedOrientations[T];t&&(this.placedOrientations[T]=t,n=t,this.markUsedOrientation(o,n,e))}return n},n=(e,i)=>{if(o.allowVerticalPlacement&&O>0&&f.verticalTextBox){for(const n of o.writingModes)if(n===t.WritingMode.vertical?(L=i(),R=L):L=e(),L&&L.box&&L.box.length)break}else L=e()};if(s.get("text-variable-anchor")){let l=s.get("text-variable-anchor");if(this.prevPlacement&&this.prevPlacement.variableOffsets[T]){const t=this.prevPlacement.variableOffsets[T];l.indexOf(t.anchor)>0&&(l=l.filter(e=>e!==t.anchor),l.unshift(t.anchor))}const c=(t,i,n)=>{const s=o.getSymbolInstanceTextSize(p,e,this.transform.zoom,r),c=(t.x2-t.x1)*s+2*t.padding,u=(t.y2-t.y1)*s+2*t.padding,d=E&&!b?i:null;d&&$(d);let f={box:[],offscreen:!1,occluded:!1};const y=v?2*l.length:l.length;for(let _=0;_<y;++_){const i=this.attemptAnchorPlacement(l[_%l.length],t,c,u,s,x,w,h,a,g,_>=l.length,e,r,o,n,d,p,m);if(i&&(f=i.placedGlyphBoxes,f&&f.box&&f.box.length)){A=!0,D=i.shift;break}}return f};n(()=>c(U,f.iconBox,t.WritingMode.horizontal),()=>{const e=f.verticalTextBox;return e&&$(e),o.allowVerticalPlacement&&!(L&&L.box&&L.box.length)&&O>0&&e?c(e,f.verticalIconBox,t.WritingMode.vertical):{box:null,offscreen:null,occluded:null}}),L&&(A=L.box,I=L.offscreen,M=L.occluded);const u=i(!(!L||!L.box));if(!A&&this.prevPlacement){const t=this.prevPlacement.variableOffsets[T];t&&(this.variableOffsets[T]=t,this.markUsedJustification(o,t.anchor,e,u))}}else{const s=(i,n)=>{const s=o.getSymbolInstanceTextSize(p,e,this.transform.zoom,r),l=this.collisionIndex.placeCollisionBox(o,s,i,new t.Point(0,0),v,h,a,g.predicate);return l&&l.box&&l.box.length&&(this.markUsedOrientation(o,n,e),this.placedOrientations[T]=n),l};n(()=>s(U,t.WritingMode.horizontal),()=>{const e=f.verticalTextBox;return o.allowVerticalPlacement&&O>0&&e?($(e),s(e,t.WritingMode.vertical)):{box:null,offscreen:null,occluded:null}}),i(!!(L&&L.box&&L.box.length))}}if(z=L,A=z&&z.box&&z.box.length>0,I=z&&z.offscreen,M=z&&z.occluded,e.useRuntimeCollisionCircles){const i=o.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex>=0?e.centerJustifiedTextSymbolIndex:e.verticalPlacedTextSymbolIndex),r=t.evaluateSizeForFeature
vendor: 4,785 bytes, line 39
39(o.textSizeData,p,i),u=s.get("text-padding");j=this.collisionIndex.placeCollisionCircles(o,v,i,o.lineVertexArray,o.glyphOffsetArray,r,a,l,c,n,w,g.predicate,e.collisionCircleDiameter*r/t.ONE_EM,u,this.retainedQueryData[o.bucketInstanceId].tileID),A=v||j.circles.length>0&&!j.collisionDetected,I=I&&j.offscreen,M=j.occluded}if(f.iconFeatureIndex&&(V=f.iconFeatureIndex),f.iconBox){const i=i=>{$(i);const n=E&&D?Oe(D.x,D.y,x,w,this.transform.angle):new t.Point(0,0),r=o.getSymbolInstanceIconSize(m,this.transform.zoom,e.placedIconSymbolIndex);return this.collisionIndex.placeCollisionBox(o,r,i,n,b,h,a,g.predicate)};R&&R.box&&R.box.length&&f.verticalIconBox?(B=i(f.verticalIconBox),C=B.box.length>0):(B=i(f.iconBox),C=B.box.length>0),I=I&&B.offscreen,P=B.occluded}const q=y||0===e.numHorizontalGlyphVertices&&0===O,G=_||0===e.numIconVertices;if(q||G?G?q||(C=C&&A):A=C&&A:C=A=C&&A,A&&z&&z.box&&this.collisionIndex.insertCollisionBox(z.box,s.get("text-ignore-placement"),o.bucketInstanceId,R&&R.box&&N?N:F,g.ID),C&&B&&this.collisionIndex.insertCollisionBox(B.box,s.get("icon-ignore-placement"),o.bucketInstanceId,V,g.ID),j&&(A&&this.collisionIndex.insertCollisionCircles(j.circles,s.get("text-ignore-placement"),o.bucketInstanceId,F,g.ID),n)){const t=o.bucketInstanceId;let e=this.collisionCircleArrays[t];void 0===e&&(e=this.collisionCircleArrays[t]=new Ee);for(let i=0;i<j.circles.length;i+=4)e.circles.push(j.circles[i+0]),e.circles.push(j.circles[i+1]),e.circles.push(j.circles[i+2]),e.circles.push(j.collisionDetected?1:0)}const W="globe"!==o.projection.name;S=S&&(W||!M),k=k&&(W||!P),this.placements[T]=new we(A||S,C||k,I||o.justReloaded),i.add(T)};if(T){const t=o.getSortedSymbolIndexes(this.transform.angle);for(let e=t.length-1;e>=0;--e){const i=t[e];O(o.symbolInstances.get(i),i,o.collisionArrays[i])}}else for(let t=e.symbolInstanceStart;t<e.symbolInstanceEnd;t++)O(o.symbolInstances.get(t),t,o.collisionArrays[t]);if(n&&o.bucketInstanceId in this.collisionCircleArrays){const e=this.collisionCircleArrays[o.bucketInstanceId];t.invert(e.invProjMatrix,a),e.viewportMatrix=this.collisionIndex.getViewportMatrix()}o.justReloaded=!1}markUsedJustification(e,i,n,r){const{leftJustifiedTextSymbolIndex:o,centerJustifiedTextSymbolIndex:s,rightJustifiedTextSymbolIndex:a,verticalPlacedTextSymbolIndex:l,crossTileID:c}=n,u=t.getAnchorJustification(i),h=r===t.WritingMode.vertical?l:"left"===u?o:"center"===u?s:"right"===u?a:-1;o>=0&&(e.text.placedSymbolArray.get(o).crossTileID=h>=0&&o!==h?0:c),s>=0&&(e.text.placedSymbolArray.get(s).crossTileID=h>=0&&s!==h?0:c),a>=0&&(e.text.placedSymbolArray.get(a).crossTileID=h>=0&&a!==h?0:c),l>=0&&(e.text.placedSymbolArray.get(l).crossTileID=h>=0&&l!==h?0:c)}markUsedOrientation(e,i,n){const r=i===t.WritingMode.horizontal||i===t.WritingMode.horizontalOnly?i:0,o=i===t.WritingMode.vertical?i:0,{leftJustifiedTextSymbolIndex:s,centerJustifiedTextSymbolIndex:a,rightJustifiedTextSymbolIndex:l,verticalPlacedTextSymbolIndex:c}=n,u=e.text.placedSymbolArray;s>=0&&(u.get(s).placedOrientation=r),a>=0&&(u.get(a).placedOrientation=r),l>=0&&(u.get(l).placedOrientation=r),c>=0&&(u.get(c).placedOrientation=o)}commit(t){this.commitTime=t,this.zoomAtLastRecencyCheck=this.transform.zoom;const e=this.prevPlacement;let i=!1;this.prevZoomAdjustment=e?e.zoomAdjustment(this.transform.zoom):0;const n=e?e.symbolFadeChange(t):1,r=e?e.opacities:{},o=e?e.variableOffsets:{},s=e?e.placedOrientations:{};for(const a in this.placements){const t=this.placements[a],e=r[a];e?(this.opacities[a]=new xe(e,n,t.text,t.icon,null,t.clipped),i=i||t.text!==e.text.placed||t.icon!==e.icon.placed):(this.opacities[a]=new xe(null,n,t.text,t.icon,t.skipFade,t.clipped),i=i||t.text||t.icon)}for(const a in r){const t=r[a];if(!this.opacities[a]){const e=new xe(t,n,!1,!1);e.isHidden()||(this.opacities[a]=e,i=i||t.text.placed||t.icon.placed)}}for(const a in o)this.variableOffsets[a]||!this.opacities[a]||this.opacities[a].isHidden()||(this.variableOffsets[a]=o[a]);for(const a in s)this.placedOrientations[a]||!this.opacities[a]||this.opacities[a].isHidden()||(this.placedOrientations[a]=s[a]);i?this.lastPlacementChangeTime=t:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=e?e.lastPlacementChangeTime:t)}updateLayerOpacities(t,e){const i=new Set;for(const n of e){const e=n.getBucket(t);e&&n.latestFeatureIndex&&t.id===e.layerIds[0]&&this.updateBucketOpacities(e,i,n.collisionBoxArray)}}updateBucketOpacities(e,i,n){e.hasTextData()&&e.text.opacityVertexArray.clear(),e.hasIconData()&&e.icon.opacityVertexArray.clear(),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexArray.clear(),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexArray.clear();const r=e.layers[0].layout,o=!!e.layers[0].dynamicFilter(),s=new xe(null,0,!1,!1,
vendor: 6,476 bytes, line 39
39!0),a=r.get("text-allow-overlap"),l=r.get("icon-allow-overlap"),c=r.get("text-variable-anchor"),u="map"===r.get("text-rotation-alignment"),h="map"===r.get("text-pitch-alignment"),d="none"!==r.get("icon-text-fit"),f=new xe(null,0,a&&(l||!e.hasIconData()||r.get("icon-optional")),l&&(a||!e.hasTextData()||r.get("text-optional")),!0);!e.collisionArrays&&n&&(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData())&&e.deserializeCollisionBoxes(n);const p=(t,e,i)=>{for(let n=0;n<e/4;n++)t.opacityVertexArray.emplaceBack(i)};let m=0;for(let g=0;g<e.symbolInstances.length;g++){const n=e.symbolInstances.get(g),{numHorizontalGlyphVertices:r,numVerticalGlyphVertices:a,crossTileID:l,numIconVertices:y}=n,_=i.has(l);let v=this.opacities[l];_?v=s:v||(v=f,this.opacities[l]=v),i.add(l);const b=r>0||a>0,x=y>0,w=this.placedOrientations[l],E=w===t.WritingMode.vertical,T=w===t.WritingMode.horizontal||w===t.WritingMode.horizontalOnly;if(!b&&!x||v.isHidden()||m++,b){const t=je(v.text);p(e.text,r,E?Be:t),p(e.text,a,T?Be:t);const i=v.text.isHidden(),{leftJustifiedTextSymbolIndex:o,centerJustifiedTextSymbolIndex:s,rightJustifiedTextSymbolIndex:c,verticalPlacedTextSymbolIndex:u}=n,h=e.text.placedSymbolArray,d=i||E?1:0;o>=0&&(h.get(o).hidden=d),s>=0&&(h.get(s).hidden=d),c>=0&&(h.get(c).hidden=d),u>=0&&(h.get(u).hidden=i||T?1:0);const f=this.variableOffsets[l];f&&this.markUsedJustification(e,f.anchor,n,w);const m=this.placedOrientations[l];m&&(this.markUsedJustification(e,"left",n,m),this.markUsedOrientation(e,m,n))}if(x){const t=je(v.icon),{placedIconSymbolIndex:i,verticalPlacedIconSymbolIndex:r}=n,o=e.icon.placedSymbolArray,s=v.icon.isHidden()?1:0;i>=0&&(p(e.icon,y,E?Be:t),o.get(i).hidden=s),r>=0&&(p(e.icon,n.numVerticalIconVertices,T?Be:t),o.get(r).hidden=s)}if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){const i=e.collisionArrays[g];if(i){let n=new t.Point(0,0),r=!0;if(i.textBox||i.verticalTextBox){if(c){const t=this.variableOffsets[l];t?(n=ke(t.anchor,t.width,t.height,t.textOffset,t.textScale),u&&n._rotate(h?this.transform.angle:-this.transform.angle)):r=!1}o&&(r=!v.clipped),i.textBox&&Ce(e.textCollisionBox.collisionVertexArray,v.text.placed,!r||E,n.x,n.y),i.verticalTextBox&&Ce(e.textCollisionBox.collisionVertexArray,v.text.placed,!r||T,n.x,n.y)}const s=r&&Boolean(!T&&i.verticalIconBox);i.iconBox&&Ce(e.iconCollisionBox.collisionVertexArray,v.icon.placed,s,d?n.x:0,d?n.y:0),i.verticalIconBox&&Ce(e.iconCollisionBox.collisionVertexArray,v.icon.placed,!s,d?n.x:0,d?n.y:0)}}}if(e.fullyClipped=0===m,e.sortFeatures(this.transform.angle),this.retainedQueryData[e.bucketInstanceId]&&(this.retainedQueryData[e.bucketInstanceId].featureSortOrder=e.featureSortOrder),e.hasTextData()&&e.text.opacityVertexBuffer&&e.text.opacityVertexBuffer.updateData(e.text.opacityVertexArray),e.hasIconData()&&e.icon.opacityVertexBuffer&&e.icon.opacityVertexBuffer.updateData(e.icon.opacityVertexArray),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexBuffer&&e.iconCollisionBox.collisionVertexBuffer.updateData(e.iconCollisionBox.collisionVertexArray),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexBuffer&&e.textCollisionBox.collisionVertexBuffer.updateData(e.textCollisionBox.collisionVertexArray),e.bucketInstanceId in this.collisionCircleArrays){const t=this.collisionCircleArrays[e.bucketInstanceId];e.placementInvProjMatrix=t.invProjMatrix,e.placementViewportMatrix=t.viewportMatrix,e.collisionCircleArray=t.circles,delete this.collisionCircleArrays[e.bucketInstanceId]}}symbolFadeChange(t){return 0===this.fadeDuration?1:(t-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(t){return Math.max(0,(this.transform.zoom-t)/1.5)}hasTransitions(t){return this.stale||t-this.lastPlacementChangeTime<this.fadeDuration}stillRecent(t,e){const i=this.zoomAtLastRecencyCheck===e?1-this.zoomAdjustment(e):1;return this.zoomAtLastRecencyCheck=e,this.commitTime+this.fadeDuration*i>t}setStale(){this.stale=!0}}function Ce(t,e,i,n,r){t.emplaceBack(e?1:0,i?1:0,n||0,r||0),t.emplaceBack(e?1:0,i?1:0,n||0,r||0),t.emplaceBack(e?1:0,i?1:0,n||0,r||0),t.emplaceBack(e?1:0,i?1:0,n||0,r||0)}const Ie=Math.pow(2,25),Me=Math.pow(2,24),Pe=Math.pow(2,17),De=Math.pow(2,16),Le=Math.pow(2,9),Re=Math.pow(2,8),ze=Math.pow(2,1);function je(t){if(0===t.opacity&&!t.placed)return 0;if(1===t.opacity&&t.placed)return 4294967295;const e=t.placed?1:0,i=Math.floor(127*t.opacity);return i*Ie+e*Me+i*Pe+e*De+i*Le+e*Re+i*ze+e}const Be=0;class Fe{constructor(t){this._sortAcrossTiles="viewport-y"!==t.layout.get("symbol-z-order")&&void 0!==t.layout.get("symbol-sort-key").constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs=new Set,this._bucketParts=[]}continuePlacement(t,e,i,n,r){const o=this._bucketParts;for(;this._currentTileIndex<t.length;)if(e.getBucketParts(o,n,t[this._currentTileIndex],this._sortAcrossTiles),this._currentTileIndex++,r())return!0;for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,o.sort((t,e)=>t.sortKey-e.sortKey));this._currentPartIndex<o.length;){const t=o[this._currentPartIndex];if(e.placeLayerBucketPart(t,this._seenCrossTileIDs,i,0===t.symbolInstanceStart),this._currentPartIndex++,r())return!0}return!1}}class Ne{constructor(t,e,i,n,r,o,s,a){this.placement=new Ae(t,r,o,s,a),this._currentPlacementIndex=e.length-1,this._forceFullPlacement=i,this._showCollisionBoxes=n,this._done=!1}isDone(){return this._done}continuePlacement(e,i,n){const r=t.exported.now(),o=()=>{const e=t.exported.now()-r;return!this._forceFullPlacement&&e>2};for(;this._currentPlacementIndex>=0;){const t=i[e[this._currentPlacementIndex]],r=this.placement.collisionIndex.transform.zoom;if("symbol"===t.type&&(!t.minzoom||t.minzoom<=r)&&(!t.maxzoom||t.maxzoom>r)){if(this._inProgressLayer||(this._inProgressLayer=new Fe(t)),this._inProgressLayer.continuePlacement(n[t.source],this.placement,this._showCollisionBoxes,t,o))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(t){return this.placement.commit(t),this.placement}}const Ve=512/t.EXTENT/2;class $e{constructor(e,i,n){this.tileID=e,this.bucketInstanceId=n,this.index=new t.KDBush(i.length,16,Int32Array),this.keys=[],this.crossTileIDs=[];const r=e.canonical.x*t.EXTENT,o=e.canonical.y*t.EXTENT;for(let t=0;t<i.length;t++){const{key:e,crossTileID:n,tileAnchorX:s,tileAnchorY:a}=i.get(t),l=Math.floor((r+s)*Ve),c=Math.floor((o+a)*Ve);this.index.add(l,c),this.keys.push(e),this.crossTileIDs.push(n)}this.index.finish()}
vendor: 4,717 bytes, line 39
39findMatches(e,i,n){const r=this.tileID.canonical.z<i.canonical.z?1:Math.pow(2,this.tileID.canonical.z-i.canonical.z),o=Ve/Math.pow(2,i.canonical.z-this.tileID.canonical.z),s=i.canonical.x*t.EXTENT,a=i.canonical.y*t.EXTENT;for(let t=0;t<e.length;t++){const i=e.get(t);if(i.crossTileID)continue;const{key:l,tileAnchorX:c,tileAnchorY:u}=i,h=Math.floor((s+c)*o),d=Math.floor((a+u)*o),f=this.index.range(h-r,d-r,h+r,d+r);for(const t of f){const e=this.crossTileIDs[t];if(this.keys[t]===l&&!n.has(e)){n.add(e),i.crossTileID=e;break}}}}}class Ue{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class qe{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(t){const e=Math.round((t-this.lng)/360);if(0!==e)for(const i in this.indexes){const t=this.indexes[i],n={};for(const i in t){const r=t[i];r.tileID=r.tileID.unwrapTo(r.tileID.wrap+e),n[r.tileID.key]=r}this.indexes[i]=n}this.lng=t}addBucket(t,e,i){if(this.indexes[t.overscaledZ]&&this.indexes[t.overscaledZ][t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===e.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(let r=0;r<e.symbolInstances.length;r++)e.symbolInstances.get(r).crossTileID=0;this.usedCrossTileIDs[t.overscaledZ]||(this.usedCrossTileIDs[t.overscaledZ]=new Set);const n=this.usedCrossTileIDs[t.overscaledZ];for(const r in this.indexes){const i=this.indexes[r];if(Number(r)>t.overscaledZ)for(const r in i){const o=i[r];o.tileID.isChildOf(t)&&o.findMatches(e.symbolInstances,t,n)}else{const o=i[t.scaledTo(Number(r)).key];o&&o.findMatches(e.symbolInstances,t,n)}}for(let r=0;r<e.symbolInstances.length;r++){const t=e.symbolInstances.get(r);t.crossTileID||(t.crossTileID=i.generate(),n.add(t.crossTileID))}return void 0===this.indexes[t.overscaledZ]&&(this.indexes[t.overscaledZ]={}),this.indexes[t.overscaledZ][t.key]=new $e(t,e.symbolInstances,e.bucketInstanceId),!0}removeBucketCrossTileIDs(t,e){for(const i of e.crossTileIDs)this.usedCrossTileIDs[t].delete(i)}removeStaleBuckets(t){let e=!1;for(const i in this.indexes){const n=this.indexes[i];for(const r in n)t[n[r].bucketInstanceId]||(this.removeBucketCrossTileIDs(i,n[r]),delete n[r],e=!0)}return e}}class Ge{constructor(){this.layerIndexes={},this.crossTileIDs=new Ue,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}}addLayer(t,e,i,n){let r=this.layerIndexes[t.id];void 0===r&&(r=this.layerIndexes[t.id]=new qe);let o=!1;const s={};"globe"!==n.name&&r.handleWrapJump(i);for(const a of e){const e=a.getBucket(t);e&&t.id===e.layerIds[0]&&(e.bucketInstanceId||(e.bucketInstanceId=++this.maxBucketInstanceId),r.addBucket(a.tileID,e,this.crossTileIDs)&&(o=!0),s[e.bucketInstanceId]=!0)}return r.removeStaleBuckets(s)&&(o=!0),o}pruneUnusedLayers(t){const e={};t.forEach(t=>{e[t]=!0});for(const i in this.layerIndexes)e[i]||delete this.layerIndexes[i]}}const We=(e,i)=>t.emitValidationErrors(e,i&&i.filter(t=>"source.canvas"!==t.identifier)),Ze=t.pick($t,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData","setTerrain","setFog","setProjection"]),He=t.pick($t,["setCenter","setZoom","setBearing","setPitch"]),Xe={version:8,layers:[],sources:{}},Qe={fill:!0,line:!0,background:!0,hillshade:!0,raster:!0};class Ye extends t.Evented{constructor(e,i={}){super(),this.map=e,this.dispatcher=new C(Ft(),this),this.imageManager=new b,this.imageManager.setEventedParent(this),this.glyphManager=new t.GlyphManager(e._requestManager,i.localFontFamily?t.LocalGlyphMode.all:i.localIdeographFontFamily?t.LocalGlyphMode.ideographs:t.LocalGlyphMode.none,i.localFontFamily||i.localIdeographFontFamily),this.crossTileSymbolIndex=new Ge,this._layers={},this._num3DLayers=0,this._numSymbolLayers=0,this._numCircleLayers=0,this._serializedLayers={},this._sourceCaches={},this._otherSourceCaches={},this._symbolSourceCaches={},this._loaded=!1,this._availableImages=[],this._order=[],this._drapedFirstOrder=[],this._markersNeedUpdate=!1,this._resetUpdates(),this.dispatcher.broadcast("setReferrer",t.getReferrer());const n=this;this._rtlTextPluginCallback=Ye.registerForPluginStateChange(e=>{n.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:e.pluginStatus,pluginURL:e.pluginURL},(e,i)=>{if(t.triggerPluginCompletionEvent(e),i&&i.every(t=>t))for(const t in n._sourceCaches){const e=n._sourceCaches[t],i=e.getSource().type;"vector"!==i&&"geojson"!==i||e.reload()}})}),this.on("data",t=>{if("source"!==t.dataType||"metadata"!==t.sourceDataType)return;const e=this.getSource(t.sourceId);if(e&&e.vectorLayerIds)for(const i in this._layers){const t=this._layers[i];
vendor: 30,188 bytes, line 39
39t.source===e.id&&this._validateLayer(t)}})}loadURL(e,i={}){this.fire(new t.Event("dataloading",{dataType:"style"}));const n="boolean"==typeof i.validate?i.validate:!t.isMapboxURL(e);e=this.map._requestManager.normalizeStyleURL(e,i.accessToken);const r=this.map._requestManager.transformRequest(e,t.ResourceType.Style);this._request=t.getJSON(r,(e,i)=>{this._request=null,e?this.fire(new t.ErrorEvent(e)):i&&this._load(i,n)})}loadJSON(e,i={}){this.fire(new t.Event("dataloading",{dataType:"style"})),this._request=t.exported.frame(()=>{this._request=null,this._load(e,!1!==i.validate)})}loadEmpty(){this.fire(new t.Event("dataloading",{dataType:"style"})),this._load(Xe,!1)}_updateLayerCount(t,e){const i=e?1:-1;t.is3D()&&(this._num3DLayers+=i),"circle"===t.type&&(this._numCircleLayers+=i),"symbol"===t.type&&(this._numSymbolLayers+=i)}_load(e,i){if(i&&We(this,t.validateStyle(e)))return;this._loaded=!0,this.stylesheet=t.clone$1(e),this._updateMapProjection();for(const t in e.sources)this.addSource(t,e.sources[t],{validate:!1});this._changed=!1,e.sprite?this._loadSprite(e.sprite):(this.imageManager.setLoaded(!0),this.dispatcher.broadcast("spriteLoaded",!0)),this.glyphManager.setURL(e.glyphs);const n=Vt(this.stylesheet.layers);this._order=n.map(t=>t.id),this._layers={},this._serializedLayers={};for(const r of n){const e=t.createStyleLayer(r);e.setEventedParent(this,{layer:{id:e.id}}),this._layers[e.id]=e,this._serializedLayers[e.id]=e.serialize(),this._updateLayerCount(e,!0)}this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new w(this.stylesheet.light),this.stylesheet.terrain&&!this.terrainSetForDrapingOnly()&&this._createTerrain(this.stylesheet.terrain,1),this.stylesheet.fog&&this._createFog(this.stylesheet.fog),this._updateDrapeFirstLayers(),this.fire(new t.Event("data",{dataType:"style"})),this.fire(new t.Event("style.load"))}terrainSetForDrapingOnly(){return!!this.terrain&&0===this.terrain.drapeRenderMode}setProjection(t){t?this.stylesheet.projection=t:delete this.stylesheet.projection,this._updateMapProjection()}applyProjectionUpdate(){this._loaded&&(this.dispatcher.broadcast("setProjection",this.map.transform.projectionOptions),this.map.transform.projection.requiresDraping?this.getTerrain()||this.stylesheet.terrain||this.setTerrainForDraping():this.terrainSetForDrapingOnly()&&this.setTerrain(null))}_updateMapProjection(){this.map._useExplicitProjection?this.applyProjectionUpdate():this.map._prioritizeAndUpdateProjection(null,this.stylesheet.projection)}_loadSprite(e){this._spriteRequest=function(e,i,n){let r,o,s;const a=t.exported.devicePixelRatio>1?"@2x":"";let l=t.getJSON(i.transformRequest(i.normalizeSpriteURL(e,a,".json"),t.ResourceType.SpriteJSON),(t,e)=>{l=null,s||(s=t,r=e,u())}),c=t.getImage(i.transformRequest(i.normalizeSpriteURL(e,a,".png"),t.ResourceType.SpriteImage),(t,e)=>{c=null,s||(s=t,o=e,u())});function u(){if(s)n(s);else if(r&&o){const e=t.exported.getImageData(o),i={};for(const n in r){const{width:o,height:s,x:a,y:l,sdf:c,pixelRatio:u,stretchX:h,stretchY:d,content:f}=r[n],p=new t.RGBAImage({width:o,height:s});t.RGBAImage.copy(e,p,{x:a,y:l},{x:0,y:0},{width:o,height:s}),i[n]={data:p,pixelRatio:u,sdf:c,stretchX:h,stretchY:d,content:f}}n(null,i)}}return{cancel(){l&&(l.cancel(),l=null),c&&(c.cancel(),c=null)}}}(e,this.map._requestManager,(e,i)=>{if(this._spriteRequest=null,e)this.fire(new t.ErrorEvent(e));else if(i)for(const t in i)this.imageManager.addImage(t,i[t]);this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),this.dispatcher.broadcast("setImages",this._availableImages),this.dispatcher.broadcast("spriteLoaded",!0),this.fire(new t.Event("data",{dataType:"style"}))})}_validateLayer(e){const i=this.getSource(e.source);if(!i)return;const n=e.sourceLayer;n&&("geojson"===i.type||i.vectorLayerIds&&-1===i.vectorLayerIds.indexOf(n))&&this.fire(new t.ErrorEvent(new Error(`Source layer "${n}" does not exist on source "${i.id}" as specified by style layer "${e.id}"`)))}loaded(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(const t in this._sourceCaches)if(!this._sourceCaches[t].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeLayers(t){const e=[];for(const i of t){const t=this._layers[i];"custom"!==t.type&&e.push(t.serialize())}return e}hasTransitions(){if(this.light&&this.light.hasTransition())return!0;if(this.fog&&this.fog.hasTransition())return!0;for(const t in this._sourceCaches)if(this._sourceCaches[t].hasTransition())return!0;for(const t in this._layers)if(this._layers[t].hasTransition())return!0;return!1}get order(){return this.map._optimizeForTerrain&&this.terrain?this._drapedFirstOrder:this._order}isLayerDraped(t){return!!this.terrain&&("function"==typeof t.isLayerDraped?t.isLayerDraped():Qe[t.type])}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading")}update(e){if(!this._loaded)return;const i=this._changed;if(this._changed){const t=Object.keys(this._updatedLayers),i=Object.keys(this._removedLayers);(t.length||i.length)&&this._updateWorkerLayers(t,i);for(const e in this._updatedSources){const t=this._updatedSources[e];"reload"===t?this._reloadSource(e):"clear"===t&&this._clearSource(e)}this._updateTilesForChangedImages();for(const n in this._updatedPaintProps)this._layers[n].updateTransitions(e);this.light.updateTransitions(e),this.fog&&this.fog.updateTransitions(e),this._resetUpdates()}const n={};for(const t in this._sourceCaches){const e=this._sourceCaches[t];n[t]=e.used,e.used=!1}for(const t of this._order){const i=this._layers[t];if(i.recalculate(e,this._availableImages),!i.isHidden(e.zoom)){const t=this._getLayerSourceCache(i);t&&(t.used=!0)}const n=this.map.painter;if(n){const t=i.getProgramIds();if(!t)continue;const r=i.getProgramConfiguration(e.zoom);for(const e of t)n.useProgram(e,r)}}for(const r in n){const e=this._sourceCaches[r];n[r]!==e.used&&e.getSource().fire(new t.Event("data",{sourceDataType:"visibility",dataType:"source",sourceId:e.getSource().id}))}this.light.recalculate(e),this.terrain&&this.terrain.recalculate(e),this.fog&&this.fog.recalculate(e),this.z=e.zoom,this._markersNeedUpdate&&(this._updateMarkersOpacity(),this._markersNeedUpdate=!1),i&&this.fire(new t.Event("data",{dataType:"style"}))}_updateTilesForChangedImages(){const t=Object.keys(this._changedImages);if(t.length){for(const e in this._sourceCaches)this._sourceCaches[e].reloadTilesForDependencies(["icons","patterns"],t);this._changedImages={}}}_updateWorkerLayers(t,e){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(t),removedIds:e})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}}setState(i){if(this._checkLoaded(),We(this,t.validateStyle(i)))return!1;(i=t.clone$1(i)).layers=Vt(i.layers);const n=function(t,i){if(!t)return[{command:$t.setStyle,args:[i]}];let n=[];try{if(!e(t.version,i.version))return[{command:$t.setStyle,args:[i]}];e(t.center,i.center)||n.push({command:$t.setCenter,args:[i.center]}),e(t.zoom,i.zoom)||n.push({command:$t.setZoom,args:[i.zoom]}),e(t.bearing,i.bearing)||n.push({command:$t.setBearing,args:[i.bearing]}),e(t.pitch,i.pitch)||n.push({command:$t.setPitch,args:[i.pitch]}),e(t.sprite,i.sprite)||n.push({command:$t.setSprite,args:[i.sprite]}),e(t.glyphs,i.glyphs)||n.push({command:$t.setGlyphs,args:[i.glyphs]}),e(t.transition,i.transition)||n.push({command:$t.setTransition,args:[i.transition]}),e(t.light,i.light)||n.push({command:$t.setLight,args:[i.light]}),e(t.fog,i.fog)||n.push({command:$t.setFog,args:[i.fog]}),e(t.projection,i.projection)||n.push({command:$t.setProjection,args:[i.projection]});const r={},o=[];!function(t,i,n,r){let o;for(o in i=i||{},t=t||{})t.hasOwnProperty(o)&&(i.hasOwnProperty(o)||qt(o,n,r));for(o in i){if(!i.hasOwnProperty(o))continue;const s=i[o];t.hasOwnProperty(o)?e(t[o],s)||("geojson"===t[o].type&&"geojson"===s.type&&Wt(t,i,o)?n.push({command:$t.setGeoJSONSourceData,args:[o,s.data]}):Gt(o,i,n,r)):Ut(o,i,n)}}(t.sources,i.sources,o,r);const s=[];t.layers&&t.layers.forEach(t=>{t.source&&r[t.source]?n.push({command:$t.removeLayer,args:[t.id]}):s.push(t)});let a=t.terrain;a&&r[a.source]&&(n.push({command:$t.setTerrain,args:[void 0]}),a=void 0),n=n.concat(o),e(a,i.terrain)||n.push({command:$t.setTerrain,args:[i.terrain]}),function(t,i,n){i=i||[];const r=(t=t||[]).map(Ht),o=i.map(Ht),s=t.reduce(Xt,{}),a=i.reduce(Xt,{}),l=r.slice(),c=Object.create(null);let u,h,d,f,p,m,g;for(u=0,h=0;u<r.length;u++)d=r[u],a.hasOwnProperty(d)?h++:(n.push({command:$t.removeLayer,args:[d]}),l.splice(l.indexOf(d,h),1));for(u=0,h=0;u<o.length;u++)d=o[o.length-1-u],l[l.length-1-u]!==d&&(s.hasOwnProperty(d)?(n.push({command:$t.removeLayer,args:[d]}),l.splice(l.lastIndexOf(d,l.length-h),1)):h++,m=l[l.length-u],n.push({command:$t.addLayer,args:[a[d],m]}),l.splice(l.length-u,0,d),c[d]=!0);for(u=0;u<o.length;u++)if(d=o[u],f=s[d],p=a[d],!c[d]&&!e(f,p))if(e(f.source,p.source)&&e(f["source-layer"],p["source-layer"])&&e(f.type,p.type)){for(g in Zt(f.layout,p.layout,n,d,null,$t.setLayoutProperty),Zt(f.paint,p.paint,n,d,null,$t.setPaintProperty),e(f.filter,p.filter)||n.push({command:$t.setFilter,args:[d,p.filter]}),e(f.minzoom,p.minzoom)&&e(f.maxzoom,p.maxzoom)||n.push({command:$t.setLayerZoomRange,args:[d,p.minzoom,p.maxzoom]}),f)f.hasOwnProperty(g)&&"layout"!==g&&"paint"!==g&&"filter"!==g&&"metadata"!==g&&"minzoom"!==g&&"maxzoom"!==g&&(0===g.indexOf("paint.")?Zt(f[g],p[g],n,d,g.slice(6),$t.setPaintProperty):e(f[g],p[g])||n.push({command:$t.setLayerProperty,args:[d,g,p[g]]}));for(g in p)p.hasOwnProperty(g)&&!f.hasOwnProperty(g)&&"layout"!==g&&"paint"!==g&&"filter"!==g&&"metadata"!==g&&"minzoom"!==g&&"maxzoom"!==g&&(0===g.indexOf("paint.")?Zt(f[g],p[g],n,d,g.slice(6),$t.setPaintProperty):e(f[g],p[g])||n.push({command:$t.setLayerProperty,args:[d,g,p[g]]}))}else n.push({command:$t.removeLayer,args:[d]}),m=l[l.lastIndexOf(d)+1],n.push({command:$t.addLayer,args:[p,m]})}(s,i.layers,n)}catch(t){console.warn("Unable to compute style diff:",t),n=[{command:$t.setStyle,args:[i]}]}return n}(this.serialize(),i).filter(t=>!(t.command in He));if(0===n.length)return!1;const r=n.filter(t=>!(t.command in Ze));if(r.length>0)throw new Error(`Unimplemented: ${r.map(t=>t.command).join(", ")}.`);return n.forEach(t=>{"setTransition"!==t.command&&"setProjection"!==t.command&&this[t.command].apply(this,t.args)}),this.stylesheet=i,this._updateMapProjection(),!0}addImage(e,i){return this.getImage(e)?this.fire(new t.ErrorEvent(new Error("An image with this name already exists."))):(this.imageManager.addImage(e,i),this._afterImageUpdated(e),this)}updateImage(t,e){this.imageManager.updateImage(t,e)}getImage(t){return this.imageManager.getImage(t)}removeImage(e){return this.getImage(e)?(this.imageManager.removeImage(e),this._afterImageUpdated(e),this):this.fire(new t.ErrorEvent(new Error("No image with this name exists.")))}_afterImageUpdated(e){this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new t.Event("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this._availableImages.slice()}addSource(e,i,n={}){if(this._checkLoaded(),void 0!==this.getSource(e))throw new Error("There is already a source with this ID");if(!i.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(i).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(i.type)>=0&&this._validate(t.validateSource,"sources."+e,i,null,n))return;this.map&&this.map._collectResourceTiming&&(i.collectResourceTiming=!0);const r=It(e,i,this.dispatcher,this);r.setEventedParent(this,()=>({isSourceLoaded:this._isSourceCacheLoaded(e),source:r.serialize(),sourceId:e}));const o=i=>{const n=(i?"symbol:":"other:")+e,o=this._sourceCaches[n]=new t.SourceCache(n,r,i);(i?this._symbolSourceCaches:this._otherSourceCaches)[e]=o,o.style=this,o.onAdd(this.map)};o(!1),"vector"!==i.type&&"geojson"!==i.type||o(!0),r.onAdd&&r.onAdd(this.map),this._changed=!0}removeSource(e){this._checkLoaded();const i=this.getSource(e);if(!i)throw new Error("There is no source with this ID");for(const r in this._layers)if(this._layers[r].source===e)return this.fire(new t.ErrorEvent(new Error(`Source "${e}" cannot be removed while layer "${r}" is using it.`)));if(this.terrain&&this.terrain.get().source===e)return this.fire(new t.ErrorEvent(new Error(`Source "${e}" cannot be removed while terrain is using it.`)));const n=this._getSourceCaches(e);for(const r of n)delete this._sourceCaches[r.id],delete this._updatedSources[r.id],r.fire(new t.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:r.getSource().id})),r.setEventedParent(null),r.clearTiles();return delete this._otherSourceCaches[e],delete this._symbolSourceCaches[e],i.setEventedParent(null),i.onRemove&&i.onRemove(this.map),this._changed=!0,this}setGeoJSONSourceData(t,e){this._checkLoaded(),this.getSource(t).setData(e),this._changed=!0}getSource(t){const e=this._getSourceCache(t);return e&&e.getSource()}_getSources(){const t=[];for(const e in this._otherSourceCaches){const i=this._getSourceCache(e);i&&t.push(i.getSource())}return t}addLayer(e,i,n={}){this._checkLoaded();const r=e.id;if(this.getLayer(r))return void this.fire(new t.ErrorEvent(new Error(`Layer with id "${r}" already exists on this map`)));let o;if("custom"===e.type){if(We(this,t.validateCustomStyleLayer(e)))return;o=t.createStyleLayer(e)}else{if("object"==typeof e.source&&(this.addSource(r,e.source),e=t.clone$1(e),e=t.extend(e,{source:r})),this._validate(t.validateLayer,"layers."+r,e,{arrayIndex:-1},n))return;o=t.createStyleLayer(e),this._validateLayer(o),o.setEventedParent(this,{layer:{id:r}}),this._serializedLayers[o.id]=o.serialize(),this._updateLayerCount(o,!0)}const s=i?this._order.indexOf(i):this._order.length;if(i&&-1===s)return void this.fire(new t.ErrorEvent(new Error(`Layer with id "${i}" does not exist on this map.`)));this._order.splice(s,0,r),this._layerOrderChanged=!0,this._layers[r]=o;const a=this._getLayerSourceCache(o);if(this._removedLayers[r]&&o.source&&a&&"custom"!==o.type){const t=this._removedLayers[r];delete this._removedLayers[r],t.type!==o.type?this._updatedSources[o.source]="clear":(this._updatedSources[o.source]="reload",a.pause())}this._updateLayer(o),o.onAdd&&o.onAdd(this.map),this._updateDrapeFirstLayers()}moveLayer(e,i){if(this._checkLoaded(),this._changed=!0,!this._layers[e])return void this.fire(new t.ErrorEvent(new Error(`The layer '${e}' does not exist in the map's style and cannot be moved.`)));if(e===i)return;const n=this._order.indexOf(e);this._order.splice(n,1);const r=i?this._order.indexOf(i):this._order.length;i&&-1===r?this.fire(new t.ErrorEvent(new Error(`Layer with id "${i}" does not exist on this map.`))):(this._order.splice(r,0,e),this._layerOrderChanged=!0,this._updateDrapeFirstLayers())}removeLayer(e){this._checkLoaded();const i=this._layers[e];if(!i)return void this.fire(new t.ErrorEvent(new Error(`The layer '${e}' does not exist in the map's style and cannot be removed.`)));i.setEventedParent(null),this._updateLayerCount(i,!1);const n=this._order.indexOf(e);this._order.splice(n,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=i,delete this._layers[e],delete this._serializedLayers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],i.onRemove&&i.onRemove(this.map),this._updateDrapeFirstLayers()}getLayer(t){return this._layers[t]}hasLayer(t){return t in this._layers}hasLayerType(t){for(const e in this._layers)if(this._layers[e].type===t)return!0;return!1}setLayerZoomRange(e,i,n){this._checkLoaded();const r=this.getLayer(e);r?r.minzoom===i&&r.maxzoom===n||(null!=i&&(r.minzoom=i),null!=n&&(r.maxzoom=n),this._updateLayer(r)):this.fire(new t.ErrorEvent(new Error(`The layer '${e}' does not exist in the map's style and cannot have zoom extent.`)))}setFilter(i,n,r={}){this._checkLoaded();const o=this.getLayer(i);if(o){if(!e(o.filter,n))return null==n?(o.filter=void 0,void this._updateLayer(o)):void(this._validate(t.validateFilter,`layers.${o.id}.filter`,n,{layerType:o.type},r)||(o.filter=t.clone$1(n),this._updateLayer(o)))}else this.fire(new t.ErrorEvent(new Error(`The layer '${i}' does not exist in the map's style and cannot be filtered.`)))}getFilter(e){const i=this.getLayer(e);return i&&t.clone$1(i.filter)}setLayoutProperty(i,n,r,o={}){this._checkLoaded();const s=this.getLayer(i);s?e(s.getLayoutProperty(n),r)||(s.setLayoutProperty(n,r,o),this._updateLayer(s)):this.fire(new t.ErrorEvent(new Error(`The layer '${i}' does not exist in the map's style and cannot be styled.`)))}getLayoutProperty(e,i){const n=this.getLayer(e);if(n)return n.getLayoutProperty(i);this.fire(new t.ErrorEvent(new Error(`The layer '${e}' does not exist in the map's style.`)))}setPaintProperty(i,n,r,o={}){this._checkLoaded();const s=this.getLayer(i);s?e(s.getPaintProperty(n),r)||(s.setPaintProperty(n,r,o)&&this._updateLayer(s),this._changed=!0,this._updatedPaintProps[i]=!0):this.fire(new t.ErrorEvent(new Error(`The layer '${i}' does not exist in the map's style and cannot be styled.`)))}getPaintProperty(t,e){const i=this.getLayer(t);return i&&i.getPaintProperty(e)}setFeatureState(e,i){this._checkLoaded();const n=e.source,r=e.sourceLayer,o=this.getSource(n);if(!o)return void this.fire(new t.ErrorEvent(new Error(`The source '${n}' does not exist in the map's style.`)));const s=o.type;if("geojson"===s&&r)return void this.fire(new t.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));if("vector"===s&&!r)return void this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));void 0===e.id&&this.fire(new t.ErrorEvent(new Error("The feature id parameter must be provided.")));const a=this._getSourceCaches(n);for(const t of a)t.setFeatureState(r,e.id,i)}removeFeatureState(e,i){this._checkLoaded();const n=e.source,r=this.getSource(n);if(!r)return void this.fire(new t.ErrorEvent(new Error(`The source '${n}' does not exist in the map's style.`)));const o=r.type,s="vector"===o?e.sourceLayer:void 0;if("vector"===o&&!s)return void this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));if(i&&"string"!=typeof e.id&&"number"!=typeof e.id)return void this.fire(new t.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));const a=this._getSourceCaches(n);for(const t of a)t.removeFeatureState(s,e.id,i)}getFeatureState(e){this._checkLoaded();const i=e.source,n=e.sourceLayer,r=this.getSource(i);if(r){if("vector"!==r.type||n)return void 0===e.id&&this.fire(new t.ErrorEvent(new Error("The feature id parameter must be provided."))),this._getSourceCaches(i)[0].getFeatureState(n,e.id);this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error(`The source '${i}' does not exist in the map's style.`)))}getTransition(){return t.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){const e={};for(const t in this._sourceCaches){const i=this._sourceCaches[t].getSource();e[i.id]||(e[i.id]=i.serialize())}return t.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,terrain:this.getTerrain()||void 0,fog:this.stylesheet.fog,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,projection:this.stylesheet.projection,sources:e,layers:this._serializeLayers(this._order)},t=>void 0!==t)}_updateLayer(t){this._updatedLayers[t.id]=!0;const e=this._getLayerSourceCache(t);t.source&&!this._updatedSources[t.source]&&e&&"raster"!==e.getSource().type&&(this._updatedSources[t.source]="reload",e.pause()),this._changed=!0,t.invalidateCompiledFilter()}_flattenAndSortRenderedFeatures(t){const e=t=>"fill-extrusion"===this._layers[t].type,i={},n=[];for(let o=this._order.length-1;o>=0;o--){const r=this._order[o];if(e(r)){i[r]=o;for(const e of t){const t=e[r];if(t)for(const e of t)n.push(e)}}}n.sort((t,e)=>e.intersectionZ-t.intersectionZ);const r=[];for(let o=this._order.length-1;o>=0;o--){const s=this._order[o];if(e(s))for(let t=n.length-1;t>=0;t--){const e=n[t].feature;if(i[e.layer.id]<o)break;r.push(e),n.pop()}else for(const e of t){const t=e[s];if(t)for(const e of t)r.push(e.feature)}}return r}queryRenderedFeatures(e,i,n){i&&i.filter&&this._validate(t.validateFilter,"queryRenderedFeatures.filter",i.filter,null,i);const r={};if(i&&i.layers){if(!Array.isArray(i.layers))return this.fire(new t.ErrorEvent(new Error("parameters.layers must be an Array."))),[];for(const e of i.layers){const i=this._layers[e];if(!i)return this.fire(new t.ErrorEvent(new Error(`The layer '${e}' does not exist in the map's style and cannot be queried for features.`))),[];r[i.source]=!0}}const o=[];i.availableImages=this._availableImages;const s=i&&i.layers?i.layers.some(t=>{const e=this.getLayer(t);return e&&e.is3D()}):this.has3DLayers(),a=M.createFromScreenPoints(e,n);for(const t in this._sourceCaches){const e=this._sourceCaches[t].getSource().id;i.layers&&!r[e]||o.push(Pt(this._sourceCaches[t],this._layers,this._serializedLayers,a,i,n,s,!!this.map._showQueryGeometry))}return this.placement&&o.push(function(t,e,i,n,r,o,s){const a={},l=o.queryRenderedSymbols(n),c=[];for(const u of Object.keys(l).map(Number))c.push(s[u]);c.sort(Lt);for(const u of c){const i=u.featureIndex.lookupSymbolFeatures(l[u.bucketInstanceId],e,u.bucketIndex,u.sourceLayerIndex,r.filter,r.layers,r.availableImages,t);for(const t in i){const e=a[t]=a[t]||[],n=i[t];n.sort((t,e)=>{const i=u.featureSortOrder;if(i){const n=i.indexOf(t.featureIndex);return i.indexOf(e.featureIndex)-n}return e.featureIndex-t.featureIndex});for(const t of n)e.push(t)}}for(const u in a)a[u].forEach(e=>{const n=e.feature,r=i(t[u]);if(!r)return;const o=r.getFeatureState(n.layer["source-layer"],n.id);n.source=n.layer.source,n.layer["source-layer"]&&(n.sourceLayer=n.layer["source-layer"]),n.state=o});return a}(this._layers,this._serializedLayers,this._getLayerSourceCache.bind(this),a.screenGeometry,i,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(o)}querySourceFeatures(e,i){i&&i.filter&&this._validate(t.validateFilter,"querySourceFeatures.filter",i.filter,null,i);const n=this._getSourceCaches(e);let r=[];for(const t of n)r=r.concat(Dt(t,i));return r}addSourceType(t,e,i){return Ye.getSourceType(t)?i(new Error(`A source type called "${t}" already exists.`)):(Ye.setSourceType(t,e),e.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:t,url:e.workerSourceURL},i):i(null,null))}getLight(){return this.light.getLight()}setLight(t,i={}){this._checkLoaded();const n=this.light.getLight();let r=!1;for(const s in t)if(!e(t[s],n[s])){r=!0;break}if(!r)return;const o=this._setTransitionParameters({duration:300,delay:0});this.light.setLight(t,i),this.light.updateTransitions(o)}getTerrain(){return this.terrain&&1===this.terrain.drapeRenderMode?this.terrain.get():null}setTerrainForDraping(){this.setTerrain({source:"",exaggeration:0},0)}setTerrain(i,n=1){if(this._checkLoaded(),!i)return delete this.terrain,delete this.stylesheet.terrain,this.dispatcher.broadcast("enableTerrain",!1),this._force3DLayerUpdate(),void(this._markersNeedUpdate=!0);let r=i;if(1===n){if("object"==typeof r.source){const e="terrain-dem-src";this.addSource(e,r.source),r=t.clone$1(r),r=t.extend(r,{source:e})}if(this._validate(t.validateTerrain,"terrain",r))return}if(!this.terrain||this.terrain&&n!==this.terrain.drapeRenderMode){if(!r)return;this._createTerrain(r,n)}else{const i=this.terrain,n=i.get();for(const e of Object.keys(t.spec.terrain))!r.hasOwnProperty(e)&&t.spec.terrain[e].default&&(r[e]=t.spec.terrain[e].default);for(const t in r)if(!e(r[t],n[t])){i.set(r),this.stylesheet.terrain=r;const t=this._setTransitionParameters({duration:0});i.updateTransitions(t);break}}this._updateDrapeFirstLayers(),this._markersNeedUpdate=!0}_createFog(t){const e=this.fog=new A(t,this.map.transform);this.stylesheet.fog=t;const i=this._setTransitionParameters({duration:0});e.updateTransitions(i)}_updateMarkersOpacity(){0!==this.map._markers.length&&this.map._requestDomTask(()=>{for(const t of this.map._markers)t._evaluateOpacity()})}getFog(){return this.fog?this.fog.get():null}setFog(t){if(this._checkLoaded(),!t)return delete this.fog,delete this.stylesheet.fog,void(this._markersNeedUpdate=!0);if(this.fog){const i=this.fog,n=i.get();0===Object.keys(t).length&&i.set(t);for(const r in t)if(!e(t[r],n[r])){i.set(t),this.stylesheet.fog=t;const e=this._setTransitionParameters({duration:0});i.updateTransitions(e);break}}else this._createFog(t);this._markersNeedUpdate=!0}_setTransitionParameters(e){return{now:t.exported.now(),transition:t.extend(e,this.stylesheet.transition)}}_updateDrapeFirstLayers(){if(!this.map._optimizeForTerrain||!this.terrain)return;const t=this._order.filter(t=>this.isLayerDraped(this._layers[t])),e=this._order.filter(t=>!this.isLayerDraped(this._layers[t]));this._drapedFirstOrder=[],this._drapedFirstOrder.push(...t),this._drapedFirstOrder.push(...e)}_createTerrain(t,e){const i=this.terrain=new T(t,e);this.stylesheet.terrain=t,this.dispatcher.broadcast("enableTerrain",!this.terrainSetForDrapingOnly()),this._force3DLayerUpdate();const n=this._setTransitionParameters({duration:0});i.updateTransitions(n)}_force3DLayerUpdate(){for(const t in this._layers){const e=this._layers[t];"fill-extrusion"===e.type&&this._updateLayer(e)}}_forceSymbolLayerUpdate(){for(const t in this._layers){const e=this._layers[t];"symbol"===e.type&&this._updateLayer(e)}}_validate(e,i,n,r,o={}){return(!o||!1!==o.validate)&&We(this,e.call(t.validateStyle,t.extend({key:i,style:this.serialize(),value:n,styleSpec:t.spec},r)))}_remove(){this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),t.evented.off("pluginStateChange",this._rtlTextPluginCallback);for(const t in this._layers)this._layers[t].setEventedParent(null);for(const t in this._sourceCaches)this._sourceCaches[t].clearTiles(),this._sourceCaches[t].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()}_clearSource(t){const e=this._getSourceCaches(t);for(const i of e)i.clearTiles()}_reloadSource(t){const e=this._getSourceCaches(t);for(const i of e)i.resume(),i.reload()}_reloadSources(){for(const t of this._getSources())t.reload&&t.reload()}_updateSources(t){for(const e in this._sourceCaches)this._sourceCaches[e].update(t)}_generateCollisionBoxes(){for(const t in this._sourceCaches){const e=this._sourceCaches[t];e.resume(),e.reload()}}_updatePlacement(e,i,n,r,o=!1){let s=!1,a=!1;const l={};for(const t of this._order){const i=this._layers[t];if("symbol"!==i.type)continue;if(!l[i.source]){const t=this._getLayerSourceCache(i);if(!t)continue;l[i.source]=t.getRenderableIds(!0).map(e=>t.getTileByID(e)).sort((t,e)=>e.tileID.overscaledZ-t.tileID.overscaledZ||(t.tileID.isLessThan(e.tileID)?-1:1))}const n=this.crossTileSymbolIndex.addLayer(i,l[i.source],e.center.lng,e.projection);s=s||n}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),o=o||this._layerOrderChanged||0===n,this._layerOrderChanged&&this.fire(new t.Event("neworder")),(o||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(t.exported.now(),e.zoom))&&(this.pauseablePlacement=new Ne(e,this._order,o,i,n,r,this.placement,this.fog&&e.projection.supportsFog?this.fog.state:null),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,l),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(t.exported.now()),a=!0),s&&this.pauseablePlacement.placement.setStale()),a||s)for(const t of this._order){const e=this._layers[t];"symbol"===e.type&&this.placement.updateLayerOpacities(e,l[e.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(t.exported.now())}_releaseSymbolFadeTiles(){for(const t in this._sourceCaches)this._sourceCaches[t].releaseSymbolFadeTiles()}getImages(t,e,i){this.imageManager.getImages(e.icons,i),this._updateTilesForChangedImages();const n=t=>{t&&t.setDependencies(e.tileID.key,e.type,e.icons)};n(this._otherSourceCaches[e.source]),n(this._symbolSourceCaches[e.source])}getGlyphs(t,e,i){this.glyphManager.getGlyphs(e.stacks,i)}getResource(e,i,n){return t.makeRequest(i,n)}_getSourceCache(t){return this._otherSourceCaches[t]}_getLayerSourceCache(t){return"symbol"===t.type?this._symbolSourceCaches[t.source]:this._otherSourceCaches[t.source]}_getSourceCaches(t){const e=[];return this._otherSourceCaches[t]&&e.push(this._otherSourceCaches[t]),this._symbolSourceCaches[t]&&e.push(this._symbolSourceCaches[t]),e}_isSourceCacheLoaded(e){const i=this._getSourceCaches(e);return 0===i.length?(this.fire(new t.ErrorEvent(new Error(`There is no source with ID '${e}'`))),!1):i.every(t=>t.loaded())}has3DLayers(){return this._num3DLayers>0}hasSymbolLayers(){return this._numSymbolLayers>0}hasCircleLayers(){return this._numCircleLayers>0}_clearWorkerCaches(){this.dispatcher.broadcast("clearCaches")}destroy(){this._clearWorkerCaches(),this.terrainSetForDrapingOnly()&&(delete this.terrain,delete this.stylesheet.terrain)}}Ye.getSourceType=function(t){return Ct[t]},Ye.setSourceType=function(t,e){Ct[t]=e},Ye.registerForPluginStateChange=t.registerForPluginStateChange;var Ke="\n#define EPSILON 0.0000001\n#define PI 3.141592653589793\n#define EXTENT 8192.0\n#define HALF_PI PI/2.0\n#define QUARTER_PI PI/4.0\n#define RAD_TO_DEG 180.0/PI\n#define DEG_TO_RAD PI/180.0\n#define GLOBE_RADIUS EXTENT/PI/2.0",Je="attribute highp vec3 a_pos_3f;uniform lowp mat4 u_matrix;varying highp vec3 v_uv;
39void main() {const mat3 half_neg_pi_around_x=mat3(1.0,0.0, 0.0,0.0,0.0,-1.0,0.0,1.0, 0.0);v_uv=half_neg_pi_around_x*a_pos_3f;vec4 pos=u_matrix*vec4(a_pos_3f,1.0);gl_Position=pos.xyww;}",ti="\n#define ELEVATION_SCALE 7.0\n#define ELEVATION_OFFSET 450.0\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_tl_up;uniform vec3 u_tile_tr_up;uniform vec3 u_tile_br_up;uniform vec3 u_tile_bl_up;uniform float u_tile_up_scale;vec3 elevationVector(vec2 pos) {vec2 uv=pos/EXTENT;vec3 up=normalize(mix(\nmix(u_tile_tl_up,u_tile_tr_up,uv.xxx),mix(u_tile_bl_up,u_tile_br_up,uv.xxx),uv.yyy));return up*u_tile_up_scale;}\n#else\nvec3 elevationVector(vec2 pos) { return vec3(0,0,1); }\n#endif\nconst float skirtOffset=24575.0;vec3 decomposeToPosAndSkirt(vec2 posWithComposedSkirt)\n{float skirt=float(posWithComposedSkirt.x >=skirtOffset);vec2 pos=posWithComposedSkirt-vec2(skirt*skirtOffset,0.0);return vec3(pos,skirt);}\n#ifdef TERRAIN\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nuniform highp sampler2D u_dem;uniform highp sampler2D u_dem_prev;\n#else\nuniform sampler2D u_dem;uniform sampler2D u_dem_prev;\n#endif\nuniform vec4 u_dem_unpack;uniform vec2 u_dem_tl;uniform vec2 u_dem_tl_prev;uniform float u_dem_scale;uniform float u_dem_scale_prev;uniform float u_dem_size;uniform float u_dem_lerp;uniform float u_exaggeration;uniform float u_meter_to_dem;uniform mat4 u_label_plane_matrix_inv;uniform sampler2D u_depth;uniform vec2 u_depth_size_inv;vec4 tileUvToDemSample(vec2 uv,float dem_size,float dem_scale,vec2 dem_tl) {vec2 pos=dem_size*(uv*dem_scale+dem_tl)+1.0;vec2 f=fract(pos);return vec4((pos-f+0.5)/(dem_size+2.0),f);}float decodeElevation(vec4 v) {return dot(vec4(v.xyz*255.0,-1.0),u_dem_unpack);}float currentElevation(vec2 apos) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale+u_dem_tl)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture2D(u_dem,pos).a;\n#else\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale,u_dem_tl);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem,pos));\n#ifdef TERRAIN_DEM_NEAREST_FILTER\nreturn u_exaggeration*tl;\n#endif\nfloat tr=decodeElevation(texture2D(u_dem,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}float prevElevation(vec2 apos) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale_prev+u_dem_tl_prev)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture2D(u_dem_prev,pos).a;\n#else\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale_prev,u_dem_tl_prev);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem_prev,pos));float tr=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem_prev,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}\n#ifdef TERRAIN_VERTEX_MORPHING\nfloat elevation(vec2 apos) {\n#ifdef ZERO_EXAGGERATION\nreturn 0.0;\n#endif\nfloat nextElevation=currentElevation(apos);float prevElevation=prevElevation(apos);return mix(prevElevation,nextElevation,u_dem_lerp);}\n#else\nfloat elevation(vec2 apos) {\n#ifdef ZERO_EXAGGERATION\nreturn 0.0;\n#endif\nreturn currentElevation(apos);}\n#endif\nhighp float unpack_depth(highp vec4 rgba_depth)\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}bool isOccluded(vec4 frag) {vec3 coord=frag.xyz/frag.w;float depth=unpack_depth(texture2D(u_depth,(coord.xy+1.0)*0.5));return coord.z > depth+0.0005;}float occlusionFade(vec4 frag) {vec3 coord=frag.xyz/frag.w;vec3 df=vec3(5.0*u_depth_size_inv,0.0);vec2 uv=0.5*coord.xy+0.5;vec4 depth=vec4(\nunpack_depth(texture2D(u_depth,uv-df.xz)),unpack_depth(texture2D(u_depth,uv+df.xz)),unpack_depth(texture2D(u_depth,uv-df.zy)),unpack_depth(texture2D(u_depth,uv+df.zy))\n);return dot(vec4(0.25),vec4(1.0)-clamp(300.0*(vec4(coord.z-0.001)-depth),0.0,1.0));}vec4 fourSample(vec2 pos,vec2 off) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nfloat tl=texture2D(u_dem,pos).a;float tr=texture2D(u_dem,pos+vec2(off.x,0.0)).a;float bl=texture2D(u_dem,pos+vec2(0.0,off.y)).a;float br=texture2D(u_dem,pos+off).a;\n#else\nvec4 demtl=vec4(texture2D(u_dem,pos).xyz*255.0,-1.0);float tl=dot(demtl,u_dem_unpack);
39vec4 demtr=vec4(texture2D(u_dem,pos+vec2(off.x,0.0)).xyz*255.0,-1.0);float tr=dot(demtr,u_dem_unpack);vec4 dembl=vec4(texture2D(u_dem,pos+vec2(0.0,off.y)).xyz*255.0,-1.0);float bl=dot(dembl,u_dem_unpack);vec4 dembr=vec4(texture2D(u_dem,pos+off).xyz*255.0,-1.0);float br=dot(dembr,u_dem_unpack);\n#endif\nreturn vec4(tl,tr,bl,br);}float flatElevation(vec2 pack) {vec2 apos=floor(pack/8.0);vec2 span=10.0*(pack-apos*8.0);vec2 uvTex=(apos-vec2(1.0,1.0))/8190.0;float size=u_dem_size+2.0;float dd=1.0/size;vec2 pos=u_dem_size*(uvTex*u_dem_scale+u_dem_tl)+1.0;vec2 f=fract(pos);pos=(pos-f+0.5)*dd;vec4 h=fourSample(pos,vec2(dd));float z=mix(mix(h.x,h.y,f.x),mix(h.z,h.w,f.x),f.y);vec2 w=floor(0.5*(span*u_meter_to_dem-1.0));vec2 d=dd*w;h=fourSample(pos-d,2.0*d+vec2(dd));vec4 diff=abs(h.xzxy-h.ywzw);vec2 slope=min(vec2(0.25),u_meter_to_dem*0.5*(diff.xz+diff.yw)/(2.0*w+vec2(1.0)));vec2 fix=slope*span;float base=z+max(fix.x,fix.y);return u_exaggeration*base;}float elevationFromUint16(float word) {return u_exaggeration*(word/ELEVATION_SCALE-ELEVATION_OFFSET);}\n#else\nfloat elevation(vec2 pos) { return 0.0; }bool isOccluded(vec4 frag) { return false; }float occlusionFade(vec4 frag) { return 1.0; }\n#endif",ei="#ifdef FOG\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump mat4 u_fog_matrix;varying vec3 v_fog_pos;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}vec3 fog_position(vec3 pos) {return (u_fog_matrix*vec4(pos,1.0)).xyz;}vec3 fog_position(vec2 pos) {return fog_position(vec3(pos,0.0));}float fog(vec3 pos) {float depth=length(pos);float opacity=fog_opacity(fog_range(depth));return opacity*fog_horizon_blending(pos/depth);}\n#endif",ii="#ifdef FOG\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump float u_fog_temporal_offset;varying vec3 v_fog_pos;uniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform highp vec2 u_viewport;uniform float u_globe_transition;uniform int u_is_globe;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}float globe_glow_progress() {highp vec2 uv=gl_FragCoord.xy/u_viewport;highp vec3 ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);highp vec3 dir=normalize(ray_dir);highp vec3 closest_point=dot(u_globe_pos,dir)*dir;highp float sdf=length(closest_point-u_globe_pos)/u_globe_radius;return sdf+PI*0.5;}float fog_opacity(vec3 pos) {float depth=length(pos);return fog_opacity(fog_range(depth));}vec3 fog_apply(vec3 color,vec3 pos) {float depth=length(pos);float opacity;if (u_is_globe==1) {float glow_progress=globe_glow_progress();float t=mix(glow_progress,depth,u_globe_transition);opacity=fog_opacity(fog_range(t));} else {opacity=fog_opacity(fog_range(depth));opacity*=fog_horizon_blending(pos/depth);}return mix(color,u_fog_color.rgb,opacity);}vec4 fog_apply_from_vert(vec4 color,float fog_opac) {float alpha=EPSILON+color.a;color.rgb=mix(color.rgb/alpha,u_fog_color.rgb,fog_opac)*alpha;return color;}vec3 fog_apply_sky_gradient(vec3 camera_ray,vec3 sky_color) {float horizon_blend=fog_horizon_blending(normalize(camera_ray));return mix(sky_color,u_fog_color.rgb,horizon_blend);}vec4 fog_apply_premultiplied(vec4 color,vec3 pos) {float alpha=EPSILON+color.a;color.rgb=fog_apply(color.rgb/alpha,pos)*alpha;return color;}vec3 fog_dither(vec3 color) {vec2 dither_seed=gl_FragCoord.xy+u_fog_temporal_offset;return dither(color,dither_seed);}vec4 fog_dither(vec4 color) {return vec4(fog_dither(color.rgb),color.a);}\n#endif";let ni={},ri={};const oi=[];ui(Ke,oi),ui(ti,oi),ui(ei,oi),ui(ii,oi),ni=hi("",ti),ri=hi(ii,ei);const si=hi("\n#if __VERSION__ >=300\n#define varying in\n#define gl_FragColor glFragColor\n#define texture2D texture\n#define textureCube texture\nout vec4 glFragColor;\n#endif\nhighp vec3 hash(highp vec2 p) {highp vec3 p3=fract(p.xyx*vec3(443.8975,397.2973,491.1871));p3+=dot(p3,p3.yxz+19.19);return fract((p3.xxy+p3.yzz)*p3.zyx);}
39vec3 dither(vec3 color,highp vec2 seed) {vec3 rnd=hash(seed)+hash(seed+0.59374)-0.5;return color+rnd/255.0;}highp float unpack_depth(highp vec4 rgba_depth)\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}highp vec4 pack_depth(highp float ndc_z) {highp float depth=ndc_z*0.5+0.5;const highp vec4 bit_shift=vec4(255.0*255.0*255.0,255.0*255.0,255.0,1.0);const highp vec4 bit_mask =vec4(0.0,1.0/255.0,1.0/255.0,1.0/255.0);highp vec4 res=fract(depth*bit_shift);res-=res.xxyz*bit_mask;return res;}","\n#if __VERSION__ >=300\n#define attribute in\n#define varying out\n#define texture2D texture\n#endif\nfloat wrap(float n,float min,float max) {float d=max-min;float w=mod(mod(n-min,d)+d,d)+min;return (w==min) ? max : w;}\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 mercator_tile_position(mat4 matrix,vec2 tile_anchor,vec3 tile_id,vec2 mercator_center) {\n#ifndef PROJECTED_POS_ON_VIEWPORT\nfloat tiles=tile_id.z;vec2 mercator=(tile_anchor/EXTENT+tile_id.xy)/tiles;mercator-=mercator_center;mercator.x=wrap(mercator.x,-0.5,0.5);vec4 mercator_tile=vec4(mercator.xy*EXTENT,EXTENT/(2.0*PI),1.0);mercator_tile=matrix*mercator_tile;return mercator_tile.xyz;\n#else\nreturn vec3(0.0);\n#endif\n}vec3 mix_globe_mercator(vec3 globe,vec3 mercator,float t) {return mix(globe,mercator,t);}mat3 globe_mercator_surface_vectors(vec3 pos_normal,vec3 up_dir,float zoom_transition) {vec3 normal=zoom_transition==0.0 ? pos_normal : normalize(mix(pos_normal,up_dir,zoom_transition));vec3 xAxis=normalize(vec3(normal.z,0.0,-normal.x));vec3 yAxis=normalize(cross(normal,xAxis));return mat3(xAxis,yAxis,normal);}\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(\nunpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}const vec4 AWAY=vec4(-1000.0,-1000.0,-1000.0,1);//Normalized device coordinate that is not rendered."),ai=Ke,li="\n#ifdef GL_ES\nprecision mediump float;\n#else\n\n#if !defined(lowp)\n#define lowp\n#endif\n\n#if !defined(mediump)\n#define mediump\n#endif\n\n#if !defined(highp)\n#define highp\n#endif\n\n#endif";var ci={background:hi("uniform vec4 u_color;uniform float u_opacity;\n#ifdef LIGHTING_3D_MODE\nvarying vec4 v_color;\n#endif\nvoid main() {vec4 out_color;\n#ifdef LIGHTING_3D_MODE\nout_color=v_color;\n#else\nout_color=u_color;\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#ifdef LIGHTING_3D_MODE\nuniform vec4 u_color;varying vec4 v_color;\n#endif\nvoid main() {gl_Position=u_matrix*vec4(a_pos,0,1);\n#ifdef LIGHTING_3D_MODE\nv_color=apply_lighting(u_color);\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),backgroundPattern:hi("uniform vec2 u_pattern_tl;uniform vec2 u_pattern_br;uniform vec2 u_texsize;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos;void main() {vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(u_pattern_tl/u_texsize,u_pattern_br/u_texsize,imagecoord);vec4 out_color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_pattern_size,u_tile_units_to_pixels,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),circle:hi("varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(\nantialiased_blur,0.0,extrude_length-radius
39/(radius+stroke_width)\n);vec4 out_color=mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_apply_premultiplied(out_color,v_fog_pos);\n#endif\ngl_FragColor=out_color*(v_visibility*opacity_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","#define NUM_VISIBILITY_RINGS 2\n#define INV_SQRT2 0.70710678\n#define ELEVATION_BIAS 0.0001\n#define NUM_SAMPLES_PER_RING 16\nuniform mat4 u_matrix;uniform mat2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\n#endif\nvarying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvec2 calc_offset(vec2 extrusion,float radius,float stroke_width, float view_scale) {return extrusion*(radius+stroke_width)*u_extrude_scale*view_scale;}float cantilevered_elevation(vec2 pos,float radius,float stroke_width,float view_scale) {vec2 c1=pos+calc_offset(vec2(-1,-1),radius,stroke_width,view_scale);vec2 c2=pos+calc_offset(vec2(1,-1),radius,stroke_width,view_scale);vec2 c3=pos+calc_offset(vec2(1,1),radius,stroke_width,view_scale);vec2 c4=pos+calc_offset(vec2(-1,1),radius,stroke_width,view_scale);float h1=elevation(c1)+ELEVATION_BIAS;float h2=elevation(c2)+ELEVATION_BIAS;float h3=elevation(c3)+ELEVATION_BIAS;float h4=elevation(c4)+ELEVATION_BIAS;return max(h4,max(h3,max(h1,h2)));}float circle_elevation(vec2 pos) {\n#if defined(TERRAIN)\nreturn elevation(pos)+ELEVATION_BIAS;\n#else\nreturn 0.0;\n#endif\n}vec4 project_vertex(vec2 extrusion,vec4 world_center,vec4 projected_center,float radius,float stroke_width, float view_scale,mat3 surface_vectors) {vec2 sample_offset=calc_offset(extrusion,radius,stroke_width,view_scale);\n#ifdef PITCH_WITH_MAP\n#ifdef PROJECTION_GLOBE_VIEW\nreturn u_matrix*( world_center+vec4(sample_offset.x*surface_vectors[0]+sample_offset.y*surface_vectors[1],0) );\n#else\nreturn u_matrix*( world_center+vec4(sample_offset,0,0) );\n#endif\n#else\nreturn projected_center+vec4(sample_offset,0,0);\n#endif\n}float get_sample_step() {\n#ifdef PITCH_WITH_MAP\nreturn 2.0*PI/float(NUM_SAMPLES_PER_RING);\n#else\nreturn PI/float(NUM_SAMPLES_PER_RING);\n#endif\n}void main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);vec4 world_center;mat3 surface_vectors;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 pos_normal_3=a_pos_normal_3/16384.0;surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(circle_center)*circle_elevation(circle_center);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*circle_elevation(circle_center);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,circle_center,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;vec3 pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);world_center=vec4(pos,1);\n#else \nsurface_vectors=mat3(1.0);float height=circle_elevation(circle_center);world_center=vec4(circle_center,height,1);\n#endif\nvec4 projected_center=u_matrix*world_center;float view_scale=0.0;\n#ifdef PITCH_WITH_MAP\n#ifdef SCALE_WITH_MAP\nview_scale=1.0;\n#else\nview_scale=projected_center.w/u_camera_to_center_distance;\n#endif\n#else\n#ifdef SCALE_WITH_MAP\nview_scale=u_camera_to_center_distance;\n#else\nview_scale=projected_center.w;\n#endif\n#endif\ngl_Position=project_vertex(extrude,world_center,projected_center,radiu
39s,stroke_width,view_scale,surface_vectors);float visibility=0.0;\n#ifdef TERRAIN\nfloat step=get_sample_step();vec4 occlusion_world_center;vec4 occlusion_projected_center;\n#ifdef PITCH_WITH_MAP\nfloat cantilevered_height=cantilevered_elevation(circle_center,radius,stroke_width,view_scale);occlusion_world_center=vec4(circle_center,cantilevered_height,1);occlusion_projected_center=u_matrix*occlusion_world_center;\n#else\nocclusion_world_center=world_center;occlusion_projected_center=projected_center;\n#endif\nfor(int ring=0; ring < NUM_VISIBILITY_RINGS; ring++) {float scale=(float(ring)+1.0)/float(NUM_VISIBILITY_RINGS);for(int i=0; i < NUM_SAMPLES_PER_RING; i++) {vec2 extrusion=vec2(cos(step*float(i)),-sin(step*float(i)))*scale;vec4 frag_pos=project_vertex(extrusion,occlusion_world_center,occlusion_projected_center,radius,stroke_width,view_scale,surface_vectors);visibility+=float(!isOccluded(frag_pos));}}visibility/=float(NUM_VISIBILITY_RINGS)*float(NUM_SAMPLES_PER_RING);\n#else\nvisibility=1.0;\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nvisibility=1.0;\n#endif\nv_visibility=visibility;lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);\n#ifdef FOG\nv_fog_pos=fog_position(world_center.xyz);\n#endif\n}"),clippingMask:hi("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:hi("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef FOG\nif (u_is_globe==0) {gl_FragColor.r*=pow(1.0-fog_opacity(v_fog_pos),2.0);}\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\n#endif\nvarying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec2 tilePos=floor(a_pos*0.5);vec3 pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 pos_normal_3=a_pos_normal_3/16384.0;mat3 surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(tilePos)*elevation(tilePos);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*elevation(tilePos);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,tilePos,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#else\npos=vec3(tilePos+extrude,elevation(tilePos));\n#endif\ngl_Position=u_matrix*vec4(pos,1);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),heatmapTexture:hi("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}","attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=vec4(a_pos,0,1);v_pos=a_pos*0.5+0.5;}"),collisionBox:hi("varying float v_placed;varying float v_notUsed;void main() {vec4 red =vec4(1.0,0.0,0.0,1.0);vec4 blue=vec4(0.0,0.0,1.0,0.5);gl_FragColor =mix(red,blue,step(0.5,v_placed))*0.5;gl_FragColor*=mix(1.0,0.1,step(0.5,v_notUsed));}","attribute vec3 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;attribute float a_size_scale;attribute vec2 a_padding;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_pos+elevationVector(a_anchor_pos)*elevation(a_anchor_pos),1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,1.5);gl_Position=projectedPoint;gl_Position.xy+=(a_extrude*a_size_scale+a_shift+a_padding)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:hi("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos_2f;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos_2f;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(\nmix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:hi("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;\n#endif\nvarying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {float h=elevation(a_pos);v_uv=a_pos/8192.0;\n#ifdef PROJECTION_GLOBE_VIEW\ngl_Position=u_matrix*vec4(a_pos_3+elevationVector(a_pos)*h,1
39);\n#else\ngl_Position=u_matrix*vec4(a_pos*u_overlay_scale,h,1);\n#endif\n}"),fill:hi("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\nvec4 out_color=color;\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillOutline:hi("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=outline_color;\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillOutlinePattern:hi("uniform vec2 u_texsize;uniform sampler2D u_image;varying vec2 v_pos;varying vec2 v_pos_world;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);float dist=length(v_pos_world-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos;varying vec2 v_pos_world;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,a_pos);v_pos_world=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillPattern:hi("uniform vec2 u_texsize;uniform sampler2D u_image;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);vec4 out_color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillExtrusion:hi("varying vec4 v_color;\n#ifdef RENDER_SHADOWS\nvarying highp vec4 v_pos_light_view_0;varying highp vec4 v_pos_light_view_1;varying float v_depth;\n#endif\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#ifdef ZERO_ROOF_RADIUS\nvarying vec4 v_roof_color;\n#endif\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)\nvarying highp vec3 v_normal;\n#endif\nvoid main() {\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)\nvec3 normal=v_normal;\n#endif\nfloat z;vec4 color;\n#ifdef ZERO_ROOF_RADIUS\nz=float(normal.z > 0.00001);color=mix(v_color,v_roof_color,z);\n#else\ncolor=v_color;\n#endif\n#ifdef FAUX_AO\nfloat intensity=u_ao[0];float h=max(0.0,v_ao.z);float h_floors=h/u_ao[1];float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);float shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0
39),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;\n#ifdef ZERO_ROOF_RADIUS\nconcave*=(1.0-z);\n#endif\nfloat x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);shade*=mix(1.0,x_shade*x_shade*x_shade,concave);color.rgb=color.rgb*shade;\n#endif\n#ifdef RENDER_SHADOWS\n#ifdef ZERO_ROOF_RADIUS\nnormal=mix(normal,vec3(0.0,0.0,1.0),z);\n#endif\ncolor.xyz=shadowed_color_normal(color.xyz,normalize(normal),v_pos_light_view_0,v_pos_light_view_1,v_depth);\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform float u_edge_radius;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\n#endif\nvarying vec4 v_color;\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;varying highp vec4 v_pos_light_view_0;varying highp vec4 v_pos_light_view_1;varying float v_depth;\n#endif\n#ifdef ZERO_ROOF_RADIUS\nvarying vec4 v_roof_color;\n#endif\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)\nvarying highp vec3 v_normal;\n#endif\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec4 pos_nx=floor(a_pos_normal_ed*0.5);vec4 top_up_ny_start=a_pos_normal_ed-2.0*pos_nx;vec3 top_up_ny=top_up_ny_start.xyz;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)\nv_normal=normal;\n#endif\nbase=max(0.0,base);height=max(0.0,top_up_ny.y==0.0 && top_up_ny.x==1.0 ? height-u_edge_radius : height);float t=top_up_ny.x;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\nfloat ele=0.0;float h=0.0;float c_ele;vec3 pos;\n#ifdef TERRAIN\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;ele=elevation(pos_nx.xy);c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);pos=vec3(pos_nx.xy,h);\n#else\nh=t > 0.0 ? height : base;pos=vec3(pos_nx.xy,h);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*h);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,pos.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*pos.z;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#endif\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(pos,1),AWAY,hidden);\n#ifdef RENDER_SHADOWS\nv_pos_light_view_0=u_light_matrix_0*vec4(pos,1);v_pos_light_view_1=u_light_matrix_1*vec4(pos,1);v_depth=gl_Position.w;\n#endif\nfloat NdotL=0.0;float colorvalue=0.0;\n#ifdef LIGHTING_3D_MODE\nNdotL=calculate_NdotL(normal);\n#else\ncolorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;NdotL=clamp(dot(normal,u_lightpos),0.0,1.0);NdotL=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),NdotL);\n#endif\nif (normal.y !=0.0) {float r=0.84;\n#ifndef LIGHTING_3D_MODE\nr=mix(0.7,0.98,1.0-u_lightintensity);
39\n#endif\nNdotL*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),r,1.0)));}v_color=vec4(0.0,0.0,0.0,1.0);\n#ifdef FAUX_AO\nfloat concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height;\n#ifdef TERRAIN\ntop_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(centroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height);\n#endif\nv_ao=vec3(mix(concave,-concave,start),y_ground,h-ele);NdotL*=(1.0+0.05*(1.0-top_up_ny.y)*u_ao[0]);\n#ifdef PROJECTION_GLOBE_VIEW\ntop_height+=u_height_lift;\n#endif\ngl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w;\n#endif\n#ifdef LIGHTING_3D_MODE\nv_color=apply_lighting(color,NdotL);\n#else\nv_color.rgb+=clamp(color.rgb*NdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));\n#endif\nv_color*=u_opacity;\n#ifdef ZERO_ROOF_RADIUS\nv_roof_color=vec4(0.0,0.0,0.0,1.0);\n#ifdef LIGHTING_3D_MODE\nv_roof_color=apply_lighting(color,calculate_NdotL(vec3(0.0,0.0,1.0)));\n#else\nfloat roofNdotL=clamp(u_lightpos.z,0.0,1.0);roofNdotL=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),roofNdotL);v_roof_color.rgb+=clamp(color.rgb*roofNdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));\n#endif\nv_roof_color*=u_opacity;\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),fillExtrusionPattern:hi("uniform vec2 u_texsize;uniform sampler2D u_image;\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#ifdef LIGHTING_3D_MODE\nvarying float v_NdotL;\n#endif\nvarying vec2 v_pos;varying vec4 v_lighting;uniform lowp float u_opacity;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);vec4 out_color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color,v_NdotL)*u_opacity;\n#else\nout_color=out_color*v_lighting;\n#endif\n#ifdef FAUX_AO\nfloat intensity=u_ao[0];float h=max(0.0,v_ao.z);float h_floors=h/u_ao[1];float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);float shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;float x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);shade*=mix(1.0,x_shade*x_shade*x_shade,concave);out_color.rgb=out_color.rgb*shade;\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform float u_tile_units_to_pixels;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\n#endif\nvarying vec2 v_pos;varying vec4 v_lighting;\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#ifdef LIGHTING_3D_MODE\nvarying float v_NdotL;\n#endif\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec4 pos_nx=floor(a_pos_normal_ed*0.5);mediump vec4 top_up_ny_start=a_pos_normal_ed-2.0*pos_nx;mediump vec3 top_up_ny=top_up_ny_start.xyz;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));float edgedistance=a_pos_normal_ed.w;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;
39base=max(0.0,base);height=max(0.0,height);float t=top_up_ny.x;float z=t > 0.0 ? height : base;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\nfloat ele=0.0;float h=z;vec3 p;float c_ele;\n#ifdef TERRAIN\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;ele=elevation(pos_nx.xy);c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);p=vec3(pos_nx.xy,h);\n#else\np=vec3(pos_nx.xy,z);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*(p.z+lift));vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,p.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*p.z;p=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#endif\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(p,1),AWAY,hidden);vec2 pos=normal.z==1.0\n? pos_nx.xy\n: vec2(edgedistance,z*u_height_factor);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float NdotL=0.0;\n#ifdef LIGHTING_3D_MODE\nNdotL=calculate_NdotL(normal);\n#else\nNdotL=clamp(dot(normal,u_lightpos),0.0,1.0);NdotL=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),NdotL);\n#endif\nif (normal.y !=0.0) {float r=0.84;\n#ifndef LIGHTING_3D_MODE\nr=mix(0.7,0.98,1.0-u_lightintensity);\n#endif\nNdotL*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),r,1.0)));}\n#ifdef FAUX_AO\nfloat concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height;\n#ifdef TERRAIN\ntop_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(ce
39ntroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height);\n#endif\nv_ao=vec3(mix(concave,-concave,start),y_ground,h-ele);NdotL*=(1.0+0.05*(1.0-top_up_ny.y)*u_ao[0]);\n#ifdef PROJECTION_GLOBE_VIEW\ntop_height+=u_height_lift;\n#endif\ngl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w;\n#endif\n#ifdef LIGHTING_3D_MODE\nv_NdotL=NdotL;\n#else\nv_lighting.rgb+=clamp(NdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;\n#endif \n#ifdef FOG\nv_fog_pos=fog_position(p);\n#endif\n}"),hillshadePrepare:hi("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nreturn texture2D(u_image,coord).a/4.0;\n#else\nvec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;\n#endif\n}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y));float b=getElevation(v_pos+vec2(0,-epsilon.y));float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y));float d=getElevation(v_pos+vec2(-epsilon.x,0));float e=getElevation(v_pos+vec2(epsilon.x,0));float f=getElevation(v_pos+vec2(-epsilon.x,epsilon.y));float g=getElevation(v_pos+vec2(0,epsilon.y));float h=getElevation(v_pos+vec2(epsilon.x,epsilon.y));float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2(\n(c+e+e+h)-(a+d+d+f),(f+g+g+h)-(a+b+b+c)\n)/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(\nderiv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:hi("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef LIGHTING_3D_MODE\ngl_FragColor=apply_lighting(gl_FragColor);\n#endif\n#ifdef FOG\ngl_FragColor=fog_dither(fog_apply_premultiplied(gl_FragColor,v_fog_pos));\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),line:hi("uniform lowp float u_device_pixel_ratio;uniform float u_alpha_discard_threshold;uniform highp vec2 u_trim_offset;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec4 v_uv;\n#ifdef RENDER_LINE_DASH\nuniform sampler2D u_dash_image;varying vec2 v_tex;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform sampler2D u_gradient_image;\n#endif\nuniform float u_border_width;uniform vec4 u_border_color;float luminance(vec3 c) {return (c.r+c.r+c.b+c.g+c.g+c.g)*0.1667;}\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nfloat linearstep(float edge0,float edge1,float x) {return
39clamp((x-edge0)/(edge1-edge0),0.0,1.0);}void main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize lowp vec4 dash\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);\n#ifdef RENDER_LINE_DASH\nfloat sdfdist=texture2D(u_dash_image,v_tex).a;float sdfgamma=1.0/(2.0*u_device_pixel_ratio)/dash.z;alpha*=linearstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);\n#endif\nhighp vec4 out_color;\n#ifdef RENDER_LINE_GRADIENT\nout_color=texture2D(u_gradient_image,v_uv.xy);\n#else\nout_color=color;\n#endif\nfloat trimmed=1.0;\n#ifdef RENDER_LINE_TRIM_OFFSET\nhighp float start=v_uv[2];highp float end=v_uv[3];highp float trim_start=u_trim_offset[0];highp float trim_end=u_trim_offset[1];highp float line_progress=(start+(v_uv.x)*(end-start));if (trim_end > trim_start) {if (line_progress <=trim_end && line_progress >=trim_start) {out_color=vec4(0,0,0,0);trimmed=0.0;}}\n#endif\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\n#ifdef RENDER_LINE_ALPHA_DISCARD\nif (alpha < u_alpha_discard_threshold) {discard;}\n#endif\n#ifdef RENDER_LINE_BORDER\nfloat edgeBlur=(u_border_width+1.0/u_device_pixel_ratio);float alpha2=clamp(min(dist-(v_width2.t-edgeBlur),v_width2.s-dist)/edgeBlur,0.0,1.0);if (alpha2 < 1.) {float smoothAlpha=smoothstep(0.6,1.0,alpha2);\n#ifdef RENDER_LINE_BORDER_AUTO\nfloat Y=(out_color.a > 0.01) ? luminance(out_color.rgb/out_color.a) : 1.;float adjustment=(Y > 0.) ? 0.5/Y : 0.45;if (out_color.a > 0.25 && Y < 0.25) {vec3 borderColor=(Y > 0.) ? out_color.rgb : vec3(1,1,1)*out_color.a;out_color.rgb=out_color.rgb+borderColor*(adjustment*(1.0-smoothAlpha));} else {out_color.rgb*=(0.6 +0.4*smoothAlpha);}\n#else\nout_color.rgb=mix(u_border_color.rgb*u_border_color.a*trimmed,out_color.rgb,smoothAlpha);\n#endif\n}\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define EXTRUDE_SCALE 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;\n#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET)\nattribute highp vec4 a_packed;\n#endif\n#ifdef RENDER_LINE_DASH\nattribute float a_linesofar;\n#endif\nuniform mat4 u_matrix;uniform mat2 u_pixels_to_tile_units;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec4 v_uv;\n#ifdef RENDER_LINE_DASH\nuniform vec2 u_texsize;uniform float u_tile_units_to_pixels;varying vec2 v_tex;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform float u_image_height;\n#endif\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize lowp vec4 dash\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*EXTRUDE_SCALE;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*EXTRUDE_SCALE*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\n#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET)\nfloat a_uv_x=a_packed[0];float a_split_index=a_packed[1];highp float a_clip_start=a_packed[2];highp float a_clip_end=a_packed[3];\n#ifdef RENDER_LINE_GRADIENT\nhighp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec4(a_uv_x,a_split_index*texel_height-half_texel_height,a_clip_start,a_clip_end);\n#else\nv_uv=vec4(a_uv_x,0.0,a_clip_start,a_clip_end);\n#endif\n#endif\n#ifdef RENDER_LINE_DASH\nfloat scale=dash.z==0.0 ? 0.0 : u_tile_units_to_pixels/dash.z;float height=dash.y;v_tex=vec2(a_linesofar*scale/floorwidth,(-normal.y*height+dash.x+0.5)/u_texsize.y);\n#endif\nv_width2=vec2(outset,inset);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),linePattern:hi("uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_tile_units_to_pixels;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;vec2 pattern_size=vec2(display_size.x/u_tile_units_to_pixels,display_size.y);float aspect=display_size.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x=mod(v_linesofar/pattern_size.x*aspect,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos=mix(pattern_tl*texel_size-texel_size,pattern_br*texel_size+texel_size,vec2(x,y));vec4 color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\ncolor=apply_lighting(color);\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_linesofar;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mat2 u_pixels_to_tile_units;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\nv_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),raster:hi("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(\ndot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);vec3 out_color=mix(u_high_vec,u_low_vec,rgb);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply(out_color,v_fog_pos));\n#endif\ngl_FragColor=vec4(out_color*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform vec2 u_perspective_transform;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {float w=1.0+dot(a_texture_pos,u_perspective_transform);gl_Position=u_matrix*vec4(a_pos*w,0,w);v_pos0=a_texture_pos/8192.0;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),symbolIcon:hi("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform vec3 u_up_vector;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_min_font_scale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nmercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nworld_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjected_point;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 displacement=vec3(a_globe_normal.z,0,-a_globe_normal.x);offsetProjected_point=u_matrix*vec4(a_globe_anchor+displacement,1);\n#else\noffsetProjected_point=u_matrix*vec4(tile_anchor+vec2(1,0),0,1);\n#endif\nvec2 a=projected_point.xy/projected_point.w;vec2 b=offsetProjected_point.xy/offsetProjected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nprojected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*max(a_min_font_scale,font_scale)+a_pxoffset/16.0);\n#ifdef TERRAIN\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#endif\nfloat projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nv_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change))*projection_transition_fade;}"),symbolSDF:hi("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;u
39niform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_up_vector;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nmercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nworld_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetprojected_point;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 displacement=vec3(a_globe_normal.z,0,-a_globe_normal.x);offsetprojected_point=u_matrix*vec4(a_globe_anchor+displacement,1);\n#else\noffsetprojected_point=u_matrix*vec4(tile_anchor+vec2(1,0),0,1);\n#endif\nvec2 a=projected_point.xy/projected_point.w;vec2 b=offsetprojected_point.xy/offsetprojected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nprojected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset);\n#ifdef TERRAIN\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#endif\nfloat gamma_scale=gl_Position.w;float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nvec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity*projection_transition_fade);}"),symbolTextAndIcon:hi("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;
39gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_up_vector;uniform vec2 u_texsize_icon;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nmercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nworld_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offset_projected_point=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projected_point.xy/projected_point.w;vec2 b=offset_projected_point.xy/offset_projected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nprojected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*font_scale);\n#ifdef TERRAIN\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#endif\nfloat gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nv_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity*projection_transition_fade,is_s
39df);}"),terrainRaster:hi("uniform sampler2D u_image0;varying vec2 v_pos0;\n#ifdef FOG\nvarying float v_fog_opacity;\n#endif\n#ifdef RENDER_SHADOWS\nvarying vec4 v_pos_light_view_0;varying vec4 v_pos_light_view_1;varying float v_depth;\n#endif\nvoid main() {vec4 color=texture2D(u_image0,v_pos0);\n#ifdef RENDER_SHADOWS\ncolor.xyz=shadowed_color(color.xyz,v_pos_light_view_0,v_pos_light_view_1,v_depth);\n#endif\n#ifdef FOG\n#ifdef ZERO_EXAGGERATION\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#else\ncolor=fog_dither(fog_apply_from_vert(color,v_fog_opacity));\n#endif\n#endif\ngl_FragColor=color;\n#ifdef TERRAIN_WIREFRAME\ngl_FragColor=vec4(1.0,0.0,0.0,0.8);\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_skirt_height;attribute vec2 a_pos;varying vec2 v_pos0;\n#ifdef FOG\nvarying float v_fog_opacity;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;varying vec4 v_pos_light_view_0;varying vec4 v_pos_light_view_1;varying float v_depth;\n#endif\nconst float wireframeOffset=0.00015;void main() {vec3 decomposedPosAndSkirt=decomposeToPosAndSkirt(a_pos);float skirt=decomposedPosAndSkirt.z;vec2 decodedPos=decomposedPosAndSkirt.xy;float elevation=elevation(decodedPos)-skirt*u_skirt_height;\n#ifdef TERRAIN_WIREFRAME\nelevation+=wireframeOffset;\n#endif\nv_pos0=decodedPos/8192.0;gl_Position=u_matrix*vec4(decodedPos,elevation,1.0);\n#ifdef FOG\n#ifdef ZERO_EXAGGERATION\nv_fog_pos=fog_position(decodedPos);\n#else\nv_fog_opacity=fog(fog_position(vec3(decodedPos,elevation)));\n#endif\n#endif\n#ifdef RENDER_SHADOWS\nvec3 pos=vec3(decodedPos,elevation);v_pos_light_view_0=u_light_matrix_0*vec4(pos,1.);v_pos_light_view_1=u_light_matrix_1*vec4(pos,1.);v_depth=gl_Position.w;\n#endif\n}"),terrainDepth:hi("#ifdef GL_ES\nprecision highp float;\n#endif\nvarying float v_depth;void main() {gl_FragColor=pack_depth(v_depth);}","uniform mat4 u_matrix;attribute vec2 a_pos;varying float v_depth;void main() {float elevation=elevation(a_pos);gl_Position=u_matrix*vec4(a_pos,elevation,1.0);v_depth=gl_Position.z/gl_Position.w;}"),skybox:hi("\nvarying lowp vec3 v_uv;uniform lowp samplerCube u_cubemap;uniform lowp float u_opacity;uniform highp float u_temporal_offset;uniform highp vec3 u_sun_direction;float sun_disk(highp vec3 ray_direction,highp vec3 sun_direction) {highp float cos_angle=dot(normalize(ray_direction),sun_direction);const highp float cos_sun_angular_diameter=0.99996192306;const highp float smoothstep_delta=1e-5;return smoothstep(\ncos_sun_angular_diameter-smoothstep_delta,cos_sun_angular_diameter+smoothstep_delta,cos_angle);}float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(e
39nd-start)+new_start;}void main() {vec3 uv=v_uv;const float y_bias=0.015;uv.y+=y_bias;uv.y=pow(abs(uv.y),1.0/5.0);uv.y=map(uv.y,0.0,1.0,-1.0,1.0);vec3 sky_color=textureCube(u_cubemap,uv).rgb;\n#ifdef FOG\nsky_color=fog_apply_sky_gradient(v_uv.xzy,sky_color);\n#endif\nsky_color.rgb=dither(sky_color.rgb,gl_FragCoord.xy+u_temporal_offset);sky_color+=0.1*sun_disk(v_uv,u_sun_direction);gl_FragColor=vec4(sky_color*u_opacity,u_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",Je),skyboxGradient:hi("varying highp vec3 v_uv;uniform lowp sampler2D u_color_ramp;uniform highp vec3 u_center_direction;uniform lowp float u_radius;uniform lowp float u_opacity;uniform highp float u_temporal_offset;void main() {float progress=acos(dot(normalize(v_uv),u_center_direction))/u_radius;vec4 color=texture2D(u_color_ramp,vec2(progress,0.5));\n#ifdef FOG\ncolor.rgb=fog_apply_sky_gradient(v_uv.xzy,color.rgb/color.a)*color.a;\n#endif\ncolor*=u_opacity;color.rgb=dither(color.rgb,gl_FragCoord.xy+u_temporal_offset);gl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",Je),skyboxCapture:h
vendor: 3,852 bytes, line 39
39i("\nvarying highp vec3 v_position;uniform highp float u_sun_intensity;uniform highp float u_luminance;uniform lowp vec3 u_sun_direction;uniform highp vec4 u_color_tint_r;uniform highp vec4 u_color_tint_m;\n#ifdef GL_ES\nprecision highp float;\n#endif\n#define BETA_R vec3(5.5e-6,13.0e-6,22.4e-6)\n#define BETA_M vec3(21e-6,21e-6,21e-6)\n#define MIE_G 0.76\n#define DENSITY_HEIGHT_SCALE_R 8000.0\n#define DENSITY_HEIGHT_SCALE_M 1200.0\n#define PLANET_RADIUS 6360e3\n#define ATMOSPHERE_RADIUS 6420e3\n#define SAMPLE_STEPS 10\n#define DENSITY_STEPS 4\nfloat ray_sphere_exit(vec3 orig,vec3 dir,float radius) {float a=dot(dir,dir);float b=2.0*dot(dir,orig);float c=dot(orig,orig)-radius*radius;float d=sqrt(b*b-4.0*a*c);return (-b+d)/(2.0*a);}vec3 extinction(vec2 density) {return exp(-vec3(BETA_R*u_color_tint_r.a*density.x+BETA_M*u_color_tint_m.a*density.y));}vec2 local_density(vec3 point) {float height=max(length(point)-PLANET_RADIUS,0.0);float exp_r=exp(-height/DENSITY_HEIGHT_SCALE_R);float exp_m=exp(-height/DENSITY_HEIGHT_SCALE_M);return vec2(exp_r,exp_m);}float phase_ray(float cos_angle) {return (3.0/(16.0*PI))*(1.0+cos_angle*cos_angle);}float phase_mie(float cos_angle) {return (3.0/(8.0*PI))*((1.0-MIE_G*MIE_G)*(1.0+cos_angle*cos_angle))/((2.0+MIE_G*MIE_G)*pow(1.0+MIE_G*MIE_G-2.0*MIE_G*cos_angle,1.5));}vec2 density_to_atmosphere(vec3 point,vec3 light_dir) {float ray_len=ray_sphere_exit(point,light_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(DENSITY_STEPS);vec2 density_point_to_atmosphere=vec2(0.0);for (int i=0; i < DENSITY_STEPS;++i) {vec3 point_on_ray=point+light_dir*((float(i)+0.5)*step_len);density_point_to_atmosphere+=local_density(point_on_ray)*step_len;;}return density_point_to_atmosphere;}vec3 atmosphere(vec3 ray_dir,vec3 sun_direction,float sun_intensity) {vec2 density_orig_to_point=vec2(0.0);vec3 scatter_r=vec3(0.0);vec3 scatter_m=vec3(0.0);vec3 origin=vec3(0.0,PLANET_RADIUS,0.0);float ray_len=ray_sphere_exit(origin,ray_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(SAMPLE_STEPS);for (int i=0; i < SAMPLE_STEPS;++i) {vec3 point_on_ray=origin+ray_dir*((float(i)+0.5)*step_len);vec2 density=local_density(point_on_ray)*step_len;density_orig_to_point+=density;vec2 density_point_to_atmosphere=density_to_atmosphere(point_on_ray,sun_direction);vec2 density_orig_to_atmosphere=density_orig_to_point+density_point_to_atmosphere;vec3 extinction=extinction(density_orig_to_atmosphere);scatter_r+=density.x*extinction;scatter_m+=density.y*extinction;}float cos_angle=dot(ray_dir,sun_direction);float phase_r=phase_ray(cos_angle);float phase_m=phase_mie(cos_angle);vec3 beta_r=BETA_R*u_color_tint_r.rgb*u_color_tint_r.a;vec3 beta_m=BETA_M*u_color_tint_m.rgb*u_color_tint_m.a;return (scatter_r*phase_r*beta_r+scatter_m*phase_m*beta_m)*sun_intensity;}const float A=0.15;const float B=0.50;const float C=0.10;const float D=0.20;const float E=0.02;const float F=0.30;vec3 uncharted2_tonemap(vec3 x) {return ((x*(A*x+C*B)+D*E)/(x*(A*x+B)+D*F))-E/F;}void main() {vec3 ray_direction=v_position;ray_direction.y=pow(ray_direction.y,5.0);const float y_bias=0.015;ray_direction.y+=y_bias;vec3 color=atmosphere(normalize(ray_direction),u_sun_direction,u_sun_intensity);float white_scale=1.0748724675633854;color=uncharted2_tonemap((log2(2.0/pow(u_luminance,4.0)))*color)*white_scale;gl_FragColor=vec4(color,1.0);}","attribute highp vec3 a_pos_3f;uniform mat3 u_matrix_3f;varying highp vec3 v_position;float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec4 pos=vec4(u_matrix_3f*a_pos_3f,1.0);v_position=pos.xyz;v_position.y*=-1.0;v_position.y=map(v_position.y,-1.0,1.0,0.0,1.0);gl_Position=vec4(a_pos_3f.xy,0.0,1.0);}"),globeRaster:
39hi("uniform sampler2D u_image0;varying vec2 v_pos0;\n#ifndef FOG\nuniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform vec2 u_viewport;\n#endif\nvoid main() {vec4 color;\n#ifdef CUSTOM_ANTIALIASING\nvec2 uv=gl_FragCoord.xy/u_viewport;highp vec3 ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);vec3 dir=normalize(ray_dir);vec3 closest_point=dot(u_globe_pos,dir)*dir;float norm_dist_from_center=1.0-length(closest_point-u_globe_pos)/u_globe_radius;const float antialias_pixel=2.0;float antialias_factor=antialias_pixel*fwidth(norm_dist_from_center);float antialias=smoothstep(0.0,antialias_factor,norm_dist_from_center);vec4 raster=texture2D(u_image0,v_pos0);color=vec4(raster.rgb*antialias,raster.a*antialias);\n#else\ncolor=texture2D(u_image0,v_pos0);\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color;\n#ifdef TERRAIN_WIREFRAME\ngl_FragColor=vec4(1.0,0.0,0.0,0.8);\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_proj_matrix;uniform mat4 u_normalize_matrix;uniform mat4 u_globe_matrix;uniform mat4 u_merc_matrix;uniform float u_zoom_transition;uniform vec2 u_merc_center;uniform mat3 u_grid_matrix;uniform float u_skirt_height;\n#ifdef GLOBE_POLES\nattribute vec3 a_globe_pos;attribute vec2 a_uv;\n#else\nattribute vec2 a_pos;\n#endif\nvarying vec2 v_pos0;const float wireframeOffset=1e3;float mercatorXfromLng(float lng) {return (180.0+lng)/360.0;}float mercatorYfromLat(float lat) {return (180.0-(RAD_TO_DEG*log(tan(QUARTER_PI+lat/2.0*DEG_TO_RAD))))/360.0;}vec3 latLngToECEF(vec2 latLng) {latLng=DEG_TO_RAD*latLng;float cosLat=cos(latLng[0]);float sinLat=sin(latLng[0]);float cosLng=cos(latLng[1]);float sinLng=sin(latLng[1]);float sx=cosLat*sinLng*GLOBE_RADIUS;float sy=-sinLat*GLOBE_RADIUS;float sz=cosLat*cosLng*GLOBE_RADIUS;return vec3(sx,sy,sz);}void main() {\n#ifdef GLOBE_POLES\nvec3 globe_pos=a_globe_pos;vec2 uv=a_uv;\n#else\nfloat tiles=u_grid_matrix[0][2];float idx=u_grid_matrix[1][2];float idy=u_grid_matrix[2][2];vec3 decomposed_pos_and_skirt=decomposeToPosAndSkirt(a_pos);vec3 latLng=u_grid_matrix*vec3(decomposed_pos_and_skirt.xy,1.0);float mercatorY=mercatorYfromLat(latLng[0]);float uvY=mercatorY*tiles-idy;float mercatorX=mercatorXfromLng(latLng[1]);float uvX=mercatorX*tiles-idx;vec3 globe_pos=latLngToECEF(latLng.xy);vec2 merc_pos=vec2(mercatorX,mercatorY);vec2 uv=vec2(uvX,uvY);\n#endif\nv_pos0=uv;vec2 tile_pos=uv*EXTENT;vec3 globe_derived_up_vector=normalize(globe_pos)*u_tile_up_scale;\n#ifdef GLOBE_POLES\nvec3 up_vector=globe_derived_up_vector;\n#else\nvec3 up_vector=elevationVector(tile_pos);\n#endif\nfloat height=elevation(tile_pos);\n#ifdef TERRAIN_WIREFRAME\nheight+=wireframeOffset;\n#endif\nglobe_pos+=up_vector*height;\n#ifndef GLOBE_POLES\nglobe_pos-=globe_derived_up_vector*u_skirt_height*decomposed_pos_and_skirt.z;\n#endif\n#ifdef GLOBE_POLES\nvec4 interpolated_pos=u_globe_matrix*vec4(globe_pos,1.0);\n#else\nvec4 globe_world_pos=u_globe_matrix*vec4(globe_pos,1.0);vec4 merc_world_pos=vec4(0.0);if (u_zoom_transition > 0.0) {merc_world_pos=vec4(merc_pos,height-u_skirt_height*decomposed_pos_and_skirt.z,1.0);merc_world_pos.xy-=u_merc_center;merc_world_pos.x=wrap(merc_world_pos.x,-0.5,0.5);merc_world_pos=u_merc_matrix*merc_world_pos;}vec4 interpolated_pos=vec4(mix(globe_world_pos.xyz,merc_world_pos.xyz,u_zoom_transition),1.0);\n#endif\ngl_Position=u_proj_matrix*interpolated_pos;\n#ifdef FOG\nv_fog_pos=fog_position((u_normalize_matrix*vec4(globe_pos,1.0)).xyz);\n#endif\n}"),globeAtmosphere:hi("uniform float u_transition;uniform highp float u_fadeout_range;uniform highp float u_temporal_offset;uniform vec3 u_start_color;uniform vec4 u_color;uniform vec4 u_space_color;uniform vec4 u_high_color;uniform float u_star_intensity;uniform float u_star_size;uniform float u_star_density;uniform float u_horizon_angle;uniform mat4 u_rotation_matrix;varying highp vec3 v_ray_dir;varying highp vec3 v_horizon_dir;
39highp float random(highp vec3 p) {p=fract(p*vec3(23.2342,97.1231,91.2342));p+=dot(p.zxy,p.yxz+123.1234);return fract(p.x*p.y);}float stars(vec3 p,float scale,vec2 offset) {vec2 uv_scale=(u_viewport/u_star_size)*scale;vec3 position=vec3(p.xy*uv_scale+offset*u_viewport,p.z);vec3 q=fract(position)-0.5;vec3 id=floor(position);float random_visibility=step(random(id),u_star_density);float circle=smoothstep(0.5+u_star_intensity,0.5,length(q));return circle*random_visibility;}void main() {highp vec3 dir=normalize(v_ray_dir);float globe_pos_dot_dir;\n#ifdef PROJECTION_GLOBE_VIEW\nglobe_pos_dot_dir=dot(u_globe_pos,dir);highp vec3 closest_point_forward=abs(globe_pos_dot_dir)*dir;float norm_dist_from_center=length(closest_point_forward-u_globe_pos)/u_globe_radius;if (norm_dist_from_center < 0.98) {discard;return;}\n#endif\nhighp vec3 horizon_dir=normalize(v_horizon_dir);float horizon_angle_mercator=dir.y < horizon_dir.y ?\n0.0 : max(acos(dot(dir,horizon_dir)),0.0);float horizon_angle;\n#ifdef PROJECTION_GLOBE_VIEW\nhighp vec3 closest_point=globe_pos_dot_dir*dir;float closest_point_to_center=length(closest_point-u_globe_pos);float theta=asin(clamp(closest_point_to_center/length(u_globe_pos),-1.0,1.0));horizon_angle=globe_pos_dot_dir < 0.0 ?\nPI-theta-u_horizon_angle : theta-u_horizon_angle;float angle_t=pow(u_transition,10.0);horizon_angle=mix(horizon_angle,horizon_angle_mercator,angle_t);\n#else\nhorizon_angle=horizon_angle_mercator;\n#endif\nhorizon_angle/=PI;float t=exp(-horizon_angle/u_fadeout_range);float alpha_0=u_color.a;float alpha_1=u_high_color.a;float alpha_2=u_space_color.a;vec3 color_stop_0=u_color.rgb;vec3 color_stop_1=u_high_color.rgb;vec3 color_stop_2=u_space_color.rgb;vec3 c0=mix(color_stop_2,color_stop_1,alpha_1);vec3 c1=mix(c0,color_stop_0,alpha_0);vec3 c2=mix(c0,c1,t);vec3 c =mix(color_stop_2,c2,t);float a0=mix(alpha_2,1.0,alpha_1);float a1=mix(a0,1.0,alpha_0);float a2=mix(a0,a1,t);float a =mix(alpha_2,a2,t);vec2 uv=gl_FragCoord.xy/u_viewport-0.5;float aspect_ratio=u_viewport.x/u_viewport.y;vec4 uv_dir=vec4(normalize(vec3(uv.x*aspect_ratio,uv.y,1.0)),1.0);uv_dir=u_rotation_matrix*uv_dir;vec3 n=abs(uv_dir.xyz);vec2 uv_remap=(n.x > n.y && n.x > n.z) ? uv_dir.yz/uv_dir.x:\n(n.y > n.x && n.y > n.z) ? uv_dir.zx/uv_dir.y:\nuv_dir.xy/uv_dir.z;uv_remap.x/=aspect_ratio;vec3 D=vec3(uv_remap,1.0);highp float star_field=0.0;if (u_star_intensity > 0.0) {star_field+=stars(D,1.2,vec2(0.0,0.0));star_field+=stars(D,1.0,vec2(1.0,0.0));star_field+=stars(D,0.8,vec2(0.0,1.0));star_field+=stars(D,0.6,vec2(1.0,1.0));star_field*=(1.0-pow(t,0.25+(1.0-u_high_color.a)*0.75));c+=star_field*alpha_2;}c=dither(c,gl_FragCoord.xy+u_temporal_offset);gl_FragColor=vec4(c,a);}","attribute vec3 a_pos;attribute vec2 a_uv;uniform vec3 u_frustum_tl;uniform vec3 u_frustum_tr;uniform vec3 u_frustum_br;uniform vec3 u_frustum_bl;uniform float u_horizon;varying highp vec3 v_ray_dir;varying highp vec3 v_horizon_dir;void main() {v_ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,a_uv.x),mix(u_frustum_bl,u_frustum_br,a_uv.x),a_uv.y);v_horizon_dir=mix(\nmix(u_frustum_tl,u_frustum_bl,u_horizon),mix(u_frustum_tr,u_frustum_br,u_horizon),a_uv.x);gl_Position=vec4(a_pos,1.0);}")};function ui(t,e){const i=t.replace(/\s*\/\/[^\n]*\n/g,"\n").split("\n");for(let n of i)if(n=n.trim(),"#"===n[0]&&n.includes("if")&&!n.includes("endif")){n=n.replace("#","").replace(/ifdef|ifndef|elif|if/g,"").replace(/!|defined|\(|\)|\|\||&&/g,"").replace(/\s+/g," ").trim();const t=n.split(" ");for(const i of t)e.includes(i)||e.push(i)}}function hi(t,e){const i=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,n=e.match(/attribute (highp |mediump |lowp )?([\w]+) ([\w]+)/g),r={},o=[...oi];return ui(t,o),ui(e,o),{fragmentSource:t=t.replace(i,(t,e,i,n,o)=>(r[o]=!0,"define"===e?`\n#ifndef HAS_UNIFORM_u_${o}\nvarying ${i} ${n} ${o};\n#else\nuniform ${i} ${n} u_${o};\n#endif\n`:`\n#ifdef HAS_UNIFORM_u_${o}\n ${i} ${n} ${o} = u_${o};\n#endif\n`)),vertexSource:e=e.replace(i,(t,e,i,n,o)=>{const s="float"===n?"vec2":"vec4",a=o.match(/color/)?"color":s;return r[o]?"define"===e?`\n#ifndef HAS_UNIFORM_u_${o}\nuniform lowp float u_${o}_t;\nattribute ${i} ${s} a_${o};\nvarying ${i} ${n} ${o};\n#else\nuniform ${i} ${n} u_${o};\n#endif\n`:"vec4"===a?`\n#ifndef HAS_UNIFORM_u_${o}\n ${o} = a_${o};\n#else\n ${i} ${n} ${o} = u_${o};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${o}\n ${o} = unpack_mix_${a}(a_${o}, u_${o}_t);\n#else\n ${i} ${n} ${o} = u_${o};\n#endif\n`:"define"===e?`\n#ifndef HAS_UNIFORM_u_${o}\nuniform lowp float u_${o}_t;\nattribute ${i} ${s} a_${o};\n#else\nuniform ${i} ${n} u_${o};\n#endif\n`:"vec4"===a?`\n#ifndef HAS_UNIFORM_u_${o}\n ${i} ${n} ${o} = a_${o};\n#else\n ${i} ${n} ${o} = u_${o};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${o}\n ${i} ${n} ${o} = unpack_mix_${a}(a_${o}, u_${o}_t);\n#else\n ${i} ${n} ${o} = u_${o};\n#endif\n`}),staticAttributes:n,usedDefines:o}}class di{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffers=[],this.vao=null}bind(t,e,i,n,r,o,s){this.context=t;let a=this.boundPaintVertexBuffers.length!==n.length;for(let c=0;!a&&c<n.length;c++)this.boundPaintVertexBuffers[c]!==n[c]&&(a=!0);let l=this.boundDynamicVertexBuffers.length!==s.length;for(let c=0;!l&&c<s.length;c++)this.boundDynamicVertexBuffers[c]!==s[c]&&(l=!0);if(!t.extVertexArrayObject||!this.vao||this.boundProgram!==e||this.boundLayoutVertexBuffer!==i||a||l||this.boundIndexBuffer!==r||this.boundVertexOffset!==o)this.freshBind(e,i,n,r,o,s);else{t.bindVertexArrayOES.set(this.vao);for(const t of s)t&&t.bind();r&&r.dynamicDraw&&r.bind()}}freshBind(t,e,i,n,r,o){let s;const a=t.numAttributes,l=this.context,c=l.gl;if(l.extVertexArrayObject)this.vao&&this.destroy(),this.vao=l.extVertexArrayObject.createVertexArrayOES(),l.bindVertexArrayOES.set(this.vao),s=0,this.boundProgram=t,this.boundLayoutVertexBuffer=e,this.boundPaintVertexBuffers=i,this.boundIndexBuffer=n,this.boundVertexOffset=r,this.boundDynamicVertexBuffers=o;else{s=l.currentNumAttributes||0;for(let t=a;t<s;t++)c.disableVertexAttribArray(t)}e.enableAttributes(c,t),e.bind(),e.setVertexAttribPointers(c,t,r);for(const u of i)u.enableAttributes(c,t),u.bind(),u.setVertexAttribPointers(c,t,r);for(const u of o)u&&(u.enableAttributes(c,t),u.bind(),u.setVertexAttribPointers(c,t,r));n&&n.bind(),l.currentNumAttributes=a}destroy(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)}}function fi(e,i){const n=Math.pow(2,i.canonical.z),r=i.canonical.y;return[new t.MercatorCoordinate(0,r/n).toLngLat().lat,new t.MercatorCoordinate(0,(r+1)/n).toLngLat().lat]}function pi(e,i,n,r,o,s,a){const l=e.context,c=l.gl,u=n.fbo;if(!u)return;e.prepareDrawTile();const h=e.useProgram("hillshade");l.activeTexture.set(c.TEXTURE0),c.bindTexture(c.TEXTURE_2D,u.colorAttachment.get());const d=((t,e,i,n)=>{const r=i.paint.get("hillshade-shadow-color"),o=i.paint.get("hillshade-highlight-color"),s=i.paint.get("hillshade-accent-color");let a=i.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===i.paint.get("hillshade-illumination-anchor")&&(a-=t.transform.angle);const l=!t.options.moving;return{u_matrix:n||t.transform.calculateProjMatrix(e.tileID.toUnwrapped(),l),u_image:0,u_latrange:fi(0,e.tileID),u_light:[i.paint.get("hillshade-exaggeration"),a],u_shadow:r,u_highlight:o,u_accent:s}})(e,n,r,e.terrain?i.projMatrix:null);e.prepareDrawProgram(l,h,i.toUnwrapped());const{tileBoundsBuffer:f,tileBoundsIndexBuffer:p,tileBoundsSegments:m}=e.getTileBoundsBuffers(n);h.draw(l,c.TRIANGLES,o,s,a,t.CullFaceMode.disabled,d,r.id,f,p,m)}function mi(e,i,n){if(!i.needsDEMTextureUpload)return;const r=e.context,o=r.gl;r.pixelStoreUnpackPremultiplyAlpha.set(!1),i.demTexture=i.demTexture||e.getTileTexture(n.stride);const s=n.getPixels();i.demTexture?i.demTexture.update(s,{premultiply:!1}):i.demTexture=new t.Texture(r,s,o.RGBA,{premultiply:!1}),i.needsDEMTextureUpload=!1}function gi(e,i,n,r,o,s){const a=e.context,l=a.gl;if(!i.dem)return;const c=i.dem;if(a.activeTexture.set(l.TEXTURE1),mi(e,i,c),!i.demTexture)return;i.demTexture.bind(l.NEAREST,l.CLAMP_TO_EDGE);const u=c.dim;a.activeTexture.set(l.TEXTURE0);let h=i.fbo;if(!h){const e=new t.Texture(a,{width:u,height:u,data:null},l.RGBA);e.bind(l.LINEAR,l.CLAMP_TO_EDGE),h=i.fbo=a.createFramebuffer(u,u,!0),h.colorAttachment.set(e.texture)}a.bindFramebuffer.set(h.framebuffer),a.viewport.set([0,0,u,u]);const{tileBoundsBuffer:d,tileBoundsIndexBuffer:f,tileBoundsSegments:p}=e.getMercatorTileBoundsBuffers();e.useProgram("hillshadePrepare").draw(a,l.TRIANGLES,r,o,s,t.CullFaceMode.disabled,((e,i)=>{const n=i.stride,r=t.create();return t.ortho(r,0,t.EXTENT,-t.EXTENT,0,0,1),t.translate(r,r,[0,-t.EXTENT,0]),{u_matrix:r,u_image:1,u_dimension:[n,n],u_zoom:e.overscaledZ,u_unpack:i.unpackVector}})(i.tileID,c),n.id,d,f,p),i.needsHillshadePrepare=!1}const yi=e=>({u_matrix:new t.UniformMatrix4f(e),u_image0:new t.Uniform1i(e),u_skirt_height:new t.Uniform1f(e)}),_i=(t,e)=>({u_matrix:t,u_image0:0,u_skirt_height:e}),vi=(t,e,i,n,r,o,s,a,l,c,u,h,d,f,p)=>({u_proj_matrix:Float32Array.from(t),u_globe_matrix:e,u_normalize_matrix:Float32Array.from(n),u_merc_matrix:i,u_zoom_transition:r,u_merc_center:o,u_image0:0,u_frustum_tl:s,u_frustum_tr:a,u_frustum_br:l,u_frustum_bl:c,u_globe_pos:u,u_globe_radius:h,u_viewport:d,u_grid_matrix:p?Float32Array.from(p):new Float32Array(9),u_skirt_height:f});function bi(t,e){return null!=t&&null!=e&&!(!t.hasData()||!e.hasData())&&null!=t.demTexture&&null!=e.demTexture&&t.tileID.key!==e.tileID.key}const xi=new class{constructor(){this.operations={}}newMorphing(t,e,i,n,r){if(t in this.operations){const e=this.operations[t];e.to.tileID.key!==i.tileID.key&&(e.queued=i)}else this.operations[t]={startTime:n,phase:0,duration:r,from:e,to:i,queued:null}}getMorphValuesForProxy(t){if(!(t in this.operations))return null;const e=this.operations[t];return{from:e.from,to:e.to,phase:e.phase}}update(t){for(const e in this.operations){const i=this.operations[e];for(i.phase=(t-i.startTime)/i.duration;i.phase>
vendor: 71,649 bytes, line 39
39=1||!this._validOp(i);)if(!this._nextOp(i,t)){delete this.operations[e];break}}}_nextOp(t,e){return!!t.queued&&(t.from=t.to,t.to=t.queued,t.queued=null,t.phase=0,t.startTime=e,!0)}_validOp(t){return t.from.hasData()&&t.to.hasData()}},wi={0:null,1:"TERRAIN_VERTEX_MORPHING",2:"TERRAIN_WIREFRAME"};function Ei(t){return 6*Math.pow(1.5,22-t)}function Ti(t,e){const i=1<<t.z;return!e&&(0===t.x||t.x===i-1)||0===t.y||t.y===i-1}const Si=t=>({u_matrix:t});function ki(e,i,n,r,o){if(o>0){const s=t.exported.now(),a=(s-e.timeAdded)/o,l=i?(s-i.timeAdded)/o:-1,c=n.getSource(),u=r.coveringZoomLevel({tileSize:c.tileSize,roundZoom:c.roundZoom}),h=!i||Math.abs(i.tileID.overscaledZ-u)>Math.abs(e.tileID.overscaledZ-u),d=h&&e.refreshedUponExpiration?1:t.clamp(h?a:1-l,0,1);return e.refreshedUponExpiration&&a>=1&&(e.refreshedUponExpiration=!1),i?{opacity:1,mix:1-d}:{opacity:d,mix:0}}return{opacity:1,mix:0}}class Oi extends t.SourceCache{constructor(t){const e={type:"raster-dem",maxzoom:t.transform.maxZoom},i=new C(Ft(),null),n=It("mock-dem",e,i,t.style);super("mock-dem",n,!1),n.setEventedParent(this),this._sourceLoaded=!0}_loadTile(t,e){t.state="loaded",e(null)}}class Ai extends t.SourceCache{constructor(t){const e=It("proxy",{type:"geojson",maxzoom:t.transform.maxZoom},new C(Ft(),null),t.style);super("proxy",e,!1),e.setEventedParent(this),this.map=this.getSource().map=t,this.used=this._sourceLoaded=!0,this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}update(e,i,n){if(e.freezeTileCoverage)return;this.transform=e;const r=e.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}).reduce((i,n)=>{if(i[n.key]="",!this._tiles[n.key]){const i=new t.Tile(n,this._source.tileSize*n.overscaleFactor(),e.tileZoom);i.state="loaded",this._tiles[n.key]=i}return i},{});for(const t in this._tiles)t in r||(this.freeFBO(t),this._tiles[t].unloadVectorData(),delete this._tiles[t])}freeFBO(t){const e=this.proxyCachedFBO[t];if(void 0!==e){const i=Object.values(e);this.renderCachePool.push(...i),delete this.proxyCachedFBO[t]}}deallocRenderCache(){this.renderCache.forEach(t=>t.fb.destroy()),this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}}class Ci extends t.OverscaledTileID{constructor(t,e,i){super(t.overscaledZ,t.wrap,t.canonical.z,t.canonical.x,t.canonical.y),this.proxyTileKey=e,this.projMatrix=i}}class Ii extends t.Elevation{constructor(e,i){super(),this.painter=e,this.terrainTileForTile={},this.prevTerrainTileForTile={};const[n,r,o]=function(e){const i=new t.StructArrayLayout2i4,n=new t.StructArrayLayout3ui6,r=131;i.reserve(17161),n.reserve(33800);const o=t.EXTENT/128,s=t.EXTENT+o/2,a=s+o;for(let c=-o;c<a;c+=o)for(let e=-o;e<a;e+=o){const n=e<0||e>s||c<0||c>s?24575:0,r=t.clamp(Math.round(e),0,t.EXTENT),o=t.clamp(Math.round(c),0,t.EXTENT);i.emplaceBack(r+n,o)}const l=(t,e)=>{const i=e*r+t;n.emplaceBack(i+1,i,i+r),n.emplaceBack(i+r,i+r+1,i+1)};for(let t=1;t<129;t++)for(let e=1;e<129;e++)l(e,t);return[0,129].forEach(t=>{for(let e=0;e<130;e++)l(e,t),l(t,e)}),[i,n,32768]}(),s=e.context;this.gridBuffer=s.createVertexBuffer(n,t.posAttributes.members),this.gridIndexBuffer=s.createIndexBuffer(r),this.gridSegments=t.SegmentVector.simpleSegment(0,0,n.length,r.length),this.gridNoSkirtSegments=t.SegmentVector.simpleSegment(0,0,n.length,o),this.proxyCoords=[],this.proxiedCoords={},this._visibleDemTiles=[],this._drapedRenderBatches=[],this._sourceTilesOverlap={},this.proxySourceCache=new Ai(i.map),this.orthoMatrix=t.create(),t.ortho(this.orthoMatrix,"globe"===this.painter.transform.projection.name?.015:0,t.EXTENT,0,t.EXTENT,0,1);const a=s.gl;this._overlapStencilMode=new t.StencilMode({func:a.GEQUAL,mask:255},0,255,a.KEEP,a.KEEP,a.REPLACE),this._previousZoom=e.transform.zoom,this.pool=[],this._findCoveringTileCache={},this._tilesDirty={},this.style=i,this._useVertexMorphing=!0,this._exaggeration=1,this._mockSourceCache=new Oi(i.map)}set style(t){t.on("data",this._onStyleDataEvent.bind(this)),t.on("neworder",this._checkRenderCacheEfficiency.bind(this)),this._style=t,this._checkRenderCacheEfficiency(),this._style.map.on("moveend",()=>{this._clearLineLayersFromRenderCache()})}update(e,i,n){if(e&&e.terrain){this._style!==e&&(this.style=e),this.enabled=!0;const r=e.terrain.properties;this.sourceCache=0===e.terrain.drapeRenderMode?this._mockSourceCache:e._getSourceCache(r.get("source")),this._exaggeration=r.get("exaggeration");const o=()=>{this.sourceCache.used&&t.warnOnce(`Raster DEM source '${this.sourceCache.id}' is used both for terrain and as layer source.\nThis leads to lower resolution of hillshade. For full hillshade resolution but higher memory consumption, define another raster DEM source.`);const e=this.getScaledDemTileSize();this.sourceCache.update(i,e,!0),this.resetTileLookupCache(this.sourceCache.id)};this.sourceCache.usedForTerrain||(this.resetTileLookupCache(this.sourceCache.id),this.sourceCache.usedForTerrain=!0,o(),this._initializing=!0),o(),i.updateElevation(!0,n),this.resetTileLookupCache(this.proxySourceCache.id),this.proxySourceCache.update(i),this._emptyDEMTextureDirty=!0}else this._disable()}resetTileLookupCache(t){this._findCoveringTileCache[t]={}}getScaledDemTileSize(){return this.sourceCache.getSource().tileSize/128*this.proxySourceCache.getSource().tileSize}_checkRenderCacheEfficiency(){const e=this.renderCacheEfficiency(this._style);this._style.map._optimizeForTerrain||100!==e.efficiency&&t.warnOnce(`Terrain render cache efficiency is not optimal (${e.efficiency}%) and performance\n may be affected negatively, consider placing all background, fill and line layers before layer\n with id '${e.firstUndrapedLayer}' or create a map using optimizeForTerrain: true option.`)}_onStyleDataEvent(t){t.coord&&"source"===t.dataType?this._clearRenderCacheForTile(t.sourceCacheId,t.coord):"style"===t.dataType&&(this._invalidateRenderCache=!0)}_disable(){if(this.enabled&&(this.enabled=!1,this._sharedDepthStencil=void 0,this.proxySourceCache.deallocRenderCache(),this._style))for(const t in this._style._sourceCaches)this._style._sourceCaches[t].usedForTerrain=!1}destroy(){this._disable(),this._emptyDEMTexture&&this._emptyDEMTexture.destroy(),this._emptyDepthBufferTexture&&this._emptyDepthBufferTexture.destroy(),this.pool.forEach(t=>t.fb.destroy()),this.pool=[],this._depthFBO&&(this._depthFBO.destroy(),this._depthFBO=void 0,this._depthTexture=void 0)}_source(){return this.enabled?this.sourceCache:null}isUsingMockSource(){return this.sourceCache===this._mockSourceCache}exaggeration(){return this._exaggeration}get visibleDemTiles(){return this._visibleDemTiles}get drapeBufferSize(){const t=2*this.proxySourceCache.getSource().tileSize;return[t,t]}set useVertexMorphing(t){this._useVertexMorphing=t}updateTileBinding(e){if(!this.enabled)return;this.prevTerrainTileForTile=this.terrainTileForTile;const i=this.proxySourceCache,n=this.painter.transform;this._initializing&&(this._initializing=0===n._centerAltitude&&-1===this.getAtPointOrZero(t.MercatorCoordinate.fromLngLat(n.center),-1),this._emptyDEMTextureDirty=!this._initializing);const r=this.proxyCoords=i.getIds().map(t=>{const e=i.getTileByID(t).tileID;return e.projMatrix=n.calculateProjMatrix(e.toUnwrapped()),e});!function(e,i){const n=i.transform.pointCoordinate(i.transform.getCameraPoint()),r=new t.Point(n.x,n.y);e.sort((e,i)=>{if(i.overscaledZ-e.overscaledZ)return i.overscaledZ-e.overscaledZ;const n=new t.Point(e.canonical.x+(1<<e.canonical.z)*e.wrap,e.canonical.y),o=new t.Point(i.canonical.x+(1<<i.canonical.z)*i.wrap,i.canonical.y),s=r.mult(1<<e.canonical.z);return s.x-=.5,s.y-=.5,s.distSqr(n)-s.distSqr(o)})}(r,this.painter),this._previousZoom=n.zoom;const o=this.proxyToSource||{};this.proxyToSource={},r.forEach(t=>{this.proxyToSource[t.key]={}}),this.terrainTileForTile={};const s=this._style._sourceCaches;for(const t in s){const i=s[t];if(!i.used)continue;if(i!==this.sourceCache&&this.resetTileLookupCache(i.id),this._setupProxiedCoordsForOrtho(i,e[t],o),i.usedForTerrain)continue;const n=e[t];i.getSource().reparseOverscaled&&this._assignTerrainTiles(n)}this.proxiedCoords[i.id]=r.map(t=>new Ci(t,t.key,this.orthoMatrix)),this._assignTerrainTiles(r),this._prepareDEMTextures(),this._setupDrapedRenderBatches(),this._initFBOPool(),this._setupRenderCache(o),this.renderingToTexture=!1,this._updateTimestamp=t.exported.now();const a={};this._visibleDemTiles=[];for(const t of this.proxyCoords){const e=this.terrainTileForTile[t.key];if(!e)continue;const i=e.tileID.key;i in a||(this._visibleDemTiles.push(e),a[i]=i)}}_assignTerrainTiles(t){this._initializing||t.forEach(t=>{if(this.terrainTileForTile[t.key])return;const e=this._findTileCoveringTileID(t,this.sourceCache);e&&(this.terrainTileForTile[t.key]=e)})}_prepareDEMTextures(){const t=this.painter.context,e=t.gl;for(const i in this.terrainTileForTile){const n=this.terrainTileForTile[i],r=n.dem;!r||n.demTexture&&!n.needsDEMTextureUpload||(t.activeTexture.set(e.TEXTURE1),mi(this.painter,n,r))}}_prepareDemTileUniforms(t,e,i,n){if(!e||null==e.demTexture)return!1;const r=t.tileID.canonical,o=Math.pow(2,e.tileID.canonical.z-r.z),s=n||"";return i["u_dem_tl"+s]=[r.x*o%1,r.y*o%1],i["u_dem_scale"+s]=o,!0}get emptyDEMTexture(){return!this._emptyDEMTextureDirty&&this._emptyDEMTexture?this._emptyDEMTexture:this._updateEmptyDEMTexture()}get emptyDepthBufferTexture(){const e=this.painter.context,i=e.gl;if(!this._emptyDepthBufferTexture){const n=new t.RGBAImage({width:1,height:1},Uint8Array.of(255,255,255,255));this._emptyDepthBufferTexture=new t.Texture(e,n,i.RGBA,{premultiply:!1})}return this._emptyDepthBufferTexture}_getLoadedAreaMinimum(){let t=0;const e=this._visibleDemTiles.reduce((e,i)=>{if(!i.dem)return e;const n=i.dem.tree.minimums[0];return n>0&&t++,e+n},0);return t?e/t:0}_updateEmptyDEMTexture(){const e=this.painter.context,i=e.gl;e.activeTexture.set(i.TEXTURE2);const n=this._getLoadedAreaMinimum(),r=new t.RGBAImage({width:1,height:1},new Uint8Array(t.DEMData.pack(n,this.sourceCache.getSource().encoding)));this._emptyDEMTextureDirty=!1;let o=this._emptyDEMTexture;return o?o.update(r,{premultiply:!1}):o=this._emptyDEMTexture=new t.Texture(e,r,i.RGBA,{premultiply:!1}),o}setupElevationDraw(e,i,n){const r=this.painter.context,o=r.gl,s=(a=this.sourceCache.getSource().encoding,{u_dem:2,u_dem_prev:4,u_dem_unpack:t.DEMData.getUnpackVector(a),u_dem_tl:[0,0],u_dem_tl_prev:[0,0],u_dem_scale:0,u_dem_scale_prev:0,u_dem_size:0,u_dem_lerp:1,u_depth:3,u_depth_size_inv:[0,0],u_exaggeration:0});var a;s.u_dem_size=this.sourceCache.getSource().tileSize,s.u_exaggeration=this.exaggeration();let l=null,c=null,u=1;if(n&&n.morphing&&this._useVertexMorphing){const t=n.morphing.srcDemTile,i=n.morphing.dstDemTile;u=n.morphing.phase,t&&i&&(this._prepareDemTileUniforms(e,t,s,"_prev")&&(c=t),this._prepareDemTileUniforms(e,i,s)&&(l=i))}if(c&&l?(r.activeTexture.set(o.TEXTURE2),l.demTexture.bind(o.NEAREST,o.CLAMP_TO_EDGE,o.NEAREST),r.activeTexture.set(o.TEXTURE4),c.demTexture.bind(o.NEAREST,o.CLAMP_TO_EDGE,o.NEAREST),s.u_dem_lerp=u):(l=this.terrainTileForTile[e.tileID.key],r.activeTexture.set(o.TEXTURE2),(this._prepareDemTileUniforms(e,l,s)?l.demTexture:this.emptyDEMTexture).bind(o.NEAREST,o.CLAMP_TO_EDGE)),r.activeTexture.set(o.TEXTURE3),n&&n.useDepthForOcclusion?(this._depthTexture&&this._depthTexture.bind(o.NEAREST,o.CLAMP_TO_EDGE),this._depthFBO&&(s.u_depth_size_inv=[1/this._depthFBO.width,1/this._depthFBO.height])):(this.emptyDepthBufferTexture.bind(o.NEAREST,o.CLAMP_TO_EDGE),s.u_depth_size_inv=[1,1]),n&&n.useMeterToDem&&l){const e=(1<<l.tileID.canonical.z)*t.mercatorZfromAltitude(1,this.painter.transform.center.lat)*this.sourceCache.getSource().tileSize;s.u_meter_to_dem=e}if(n&&n.labelPlaneMatrixInv&&(s.u_label_plane_matrix_inv=n.labelPlaneMatrixInv),i.setTerrainUniformValues(r,s),"globe"===this.painter.transform.projection.name){const t=this.globeUniformValues(this.painter.transform,e.tileID.canonical,n&&n.useDenormalizedUpVectorScale);i.setGlobeUniformValues(r,t)}}globeUniformValues(e,i,n){const r=e.projection;return{u_tile_tl_up:r.upVector(i,0,0),u_tile_tr_up:r.upVector(i,t.EXTENT,0),u_tile_br_up:r.upVector(i,t.EXTENT,t.EXTENT),u_tile_bl_up:r.upVector(i,0,t.EXTENT),u_tile_up_scale:n?t.globeMetersToEcef(1):r.upVectorScale(i,e.center.lat,e.worldSize).metersToTile}}renderToBackBuffer(e){const i=this.painter,n=this.painter.context;0!==e.length&&(n.bindFramebuffer.set(null),n.viewport.set([0,0,i.width,i.height]),i.gpuTimingDeferredRenderStart(),this.renderingToTexture=!1,function(e,i,n,r,o){if("globe"===e.transform.projection.name)!function(e,i,n,r,o){const s=e.context,a=s.gl;let l,c;const u=e.options.showTerrainWireframe?2:0,h=e.transform,d=t.globeUseCustomAntiAliasing(e,s,h),f=(t,i)=>{if(c===t)return;const n=[wi[t],"PROJECTION_GLOBE_VIEW"];d&&n.push("CUSTOM_ANTIALIASING"),i&&n.push(wi[u]),l=e.useProgram("globeRaster",null,n),c=t},p=e.colorModeForRenderPass(),m=new t.DepthMode(a.LEQUAL,t.DepthMode.ReadWrite,e.depthRangeFor3D);xi.update(o);const g=t.calculateGlobeMercatorMatrix(h),y=[t.mercatorXfromLng(h.center.lng),t.mercatorYfromLat(h.center.lat)],_=u?[!1,!0]:[!1],v=e.globeSharedBuffers,b=[h.width*t.exported.devicePixelRatio,h.height*t.exported.devicePixelRatio],x=Float32Array.from(h.globeMatrix),w={useDenormalizedUpVectorScale:!0};if(_.forEach(u=>{const h=e.transform,d=Ei(h.zoom)*i.exaggeration();c=-1;const _=u?a.LINES:a.TRIANGLES;for(const c of r){const r=n.getTile(c),E=t.StencilMode.disabled,T=i.prevTerrainTileForTile[c.key],S=i.terrainTileForTile[c.key];bi(T,S)&&xi.newMorphing(c.key,T,S,o,250),s.activeTexture.set(a.TEXTURE0),r.texture.bind(a.LINEAR,a.CLAMP_TO_EDGE);const k=xi.getMorphValuesForProxy(c.key),O=k?1:0;k&&t.extend$1(w,{morphing:{srcDemTile:k.from,dstDemTile:k.to,phase:t.easeCubicInOut(k.phase)}});const A=t.tileCornersToBounds(c.canonical),C=t.getLatitudinalLod(A.getCenter().lat),I=t.getGridMatrix(c.canonical,A,C,h.worldSize/h._pixelsPerMercatorPixel),M=t.globeNormalizeECEF(t.globeTileBounds(c.canonical)),P=vi(h.projMatrix,x,g,M,t.globeToMercatorTransition(h.zoom),y,h.frustumCorners.TL,h.frustumCorners.TR,h.frustumCorners.BR,h.frustumCorners.BL,h.globeCenterInViewSpace,h.globeRadius,b,d,I);if(f(O,u),i.setupElevationDraw(r,l,w),e.prepareDrawProgram(s,l,c.toUnwrapped()),v){const[i,n,r]=u?v.getWirefameBuffers(e.context,C):v.getGridBuffers(C,0!==d);l.draw(s,_,m,E,p,t.CullFaceMode.backCCW,P,"globe_raster",i,n,r)}}}),v){const o=["GLOBE_POLES","PROJECTION_GLOBE_VIEW"];d&&o.push("CUSTOM_ANTIALIASING"),l=e.useProgram("globeRaster",null,o);for(const c of r){const{x:r,y:o,z:u}=c.canonical,d=0===o,f=o===(1<<u)-1,[g,_,x,E]=v.getPoleBuffers(u);if(E&&(d||f)){const o=n.getTile(c);s.activeTexture.set(a.TEXTURE0),o.texture.bind(a.LINEAR,a.CLAMP_TO_EDGE);let v=t.globePoleMatrixForTile(u,r,h);const T=t.globeNormalizeECEF(t.globeTileBounds(c.canonical)),S=(e,i)=>e.draw(s,a.TRIANGLES,m,t.StencilMode.disabled,p,t.CullFaceMode.disabled,vi(h.projMatrix,v,v,T,0,y,h.frustumCorners.TL,h.frustumCorners.TR,h.frustumCorners.BR,h.frustumCorners.BL,h.globeCenterInViewSpace,h.globeRadius,b,0),"globe_pole_raster",i,x,E);i.setupElevationDraw(o,l,w),e.prepareDrawProgram(s,l,c.toUnwrapped()),d&&S(l,g),f&&(v=t.scale(t.create(),v,[1,-1,1]),S(l,_))}}}}(e,i,n,r,o);else{const s=e.context,a=s.gl;let l,c;const u=e.options.showTerrainWireframe?2:0,h=(t,i)=>{if(c===t)return;const n=[wi[t]];i&&n.push(wi[u]),l=e.useProgram("terrainRaster",null,n),c=t},d=e.colorModeForRenderPass(),f=new t.DepthMode(a.LEQUAL,t.DepthMode.ReadWrite,e.depthRangeFor3D);xi.update(o);const p=e.transform,m=Ei(p.zoom)*i.exaggeration();(u?[!1,!0]:[!1]).forEach(u=>{c=-1;const g=u?a.LINES:a.TRIANGLES,[y,_]=u?i.getWirefameBuffer():[i.gridIndexBuffer,i.gridSegments];for(const c of r){const r=n.getTile(c),v=t.StencilMode.disabled,b=i.prevTerrainTileForTile[c.key],x=i.terrainTileForTile[c.key];bi(b,x)&&xi.newMorphing(c.key,b,x,o,250),s.activeTexture.set(a.TEXTURE0),r.texture.bind(a.LINEAR,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST);const w=xi.getMorphValuesForProxy(c.key),E=w?1:0;let T;w&&(T={morphing:{srcDemTile:w.from,dstDemTile:w.to,phase:t.easeCubicInOut(w.phase)}});const S=_i(c.projMatrix,Ti(c.canonical,p.renderWorldCopies)?m/10:m);h(E,u),i.setupElevationDraw(r,l,T),e.prepareDrawProgram(s,l,c.toUnwrapped()),l.draw(s,g,f,v,d,t.CullFaceMode.backCCW,S,"terrain_raster",i.gridBuffer,y,_)}})}}(i,this,this.proxySourceCache,e,this._updateTimestamp),this.renderingToTexture=!0,i.gpuTimingDeferredRenderEnd(),e.splice(0,e.length))}renderBatch(e){if(0===this._drapedRenderBatches.length)return e+1;this.renderingToTexture=!0;const i=this.painter,n=this.painter.context,r=this.proxySourceCache,o=this.proxiedCoords[r.id],s=this._drapedRenderBatches.shift(),a=[],l=i.style.order;let c=0;for(const u of o){const o=r.getTileByID(u.proxyTileKey),h=r.proxyCachedFBO[u.key]?r.proxyCachedFBO[u.key][e]:void 0,d=void 0!==h?r.renderCache[h]:this.pool[c++],f=void 0!==h;if(o.texture=d.tex,f&&!d.dirty){a.push(o.tileID);continue}let p;n.bindFramebuffer.set(d.fb.framebuffer),this.renderedToTile=!1,d.dirty&&(n.clear({color:t.Color.transparent,stencil:0}),d.dirty=!1);for(let t=s.start;t<=s.end;++t){const e=i.style._layers[l[t]];if(e.isHidden(i.transform.zoom))continue;const r=i.style._getLayerSourceCache(e),o=r?this.proxyToSource[u.key][r.id]:[u];if(!o)continue;const s=o;n.viewport.set([0,0,d.fb.width,d.fb.height]),p!==(r?r.id:null)&&(this._setupStencil(d,o,e,r),p=r?r.id:null),i.renderLayer(i,r,e,s)}this.renderedToTile?(d.dirty=!0,a.push(o.tileID)):f||--c,5===c&&(c=0,this.renderToBackBuffer(a))}return this.renderToBackBuffer(a),this.renderingToTexture=!1,n.bindFramebuffer.set(null),n.viewport.set([0,0,i.width,i.height]),s.end+1}postRender(){}renderCacheEfficiency(t){const e=t.order.length;if(0===e)return{efficiency:100};let i,n=0,r=0,o=!1;for(let s=0;s<e;++s){const e=t._layers[t.order[s]];this._style.isLayerDraped(e)?(o&&++n,++r):o||(o=!0,i=e.id)}return 0===r?{efficiency:100}:{efficiency:100*(1-n/r),firstUndrapedLayer:i}}getMinElevationBelowMSL(){let t=0;return this._visibleDemTiles.filter(t=>t.dem).forEach(e=>{t=Math.min(t,e.dem.tree.minimums[0])}),0===t?t:(t-30)*this._exaggeration}raycast(t,e,i){if(!this._visibleDemTiles)return null;const n=this._visibleDemTiles.filter(t=>t.dem).map(n=>{const r=n.tileID,o=1<<r.overscaledZ,{x:s,y:a}=r.canonical,l=s/o,c=(s+1)/o,u=a/o,h=(a+1)/o;return{minx:l,miny:u,maxx:c,maxy:h,t:n.dem.tree.raycastRoot(l,u,c,h,t,e,i),tile:n}});n.sort((t,e)=>(null!==t.t?t.t:Number.MAX_VALUE)-(null!==e.t?e.t:Number.MAX_VALUE));for(const r of n){if(null==r.t)return null;const n=r.tile.dem.tree.raycast(r.minx,r.miny,r.maxx,r.maxy,t,e,i);if(null!=n)return n}return null}_createFBO(){const e=this.painter.context,i=e.gl,n=this.drapeBufferSize;e.activeTexture.set(i.TEXTURE0);const r=new t.Texture(e,{width:n[0],height:n[1],data:null},i.RGBA);r.bind(i.LINEAR,i.CLAMP_TO_EDGE);const o=e.createFramebuffer(n[0],n[1],!1);return o.colorAttachment.set(r.texture),o.depthAttachment=new wt(e,o.framebuffer),void 0===this._sharedDepthStencil?(this._sharedDepthStencil=e.createRenderbuffer(e.gl.DEPTH_STENCIL,n[0],n[1]),this._stencilRef=0,o.depthAttachment.set(this._sharedDepthStencil),e.clear({stencil:0})):o.depthAttachment.set(this._sharedDepthStencil),e.extTextureFilterAnisotropic&&!e.extTextureFilterAnisotropicForceOff&&i.texParameterf(i.TEXTURE_2D,e.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,e.extTextureFilterAnisotropicMax),{fb:o,tex:r,dirty:!1}}_initFBOPool(){for(;this.pool.length<Math.min(5,this.proxyCoords.length);)this.pool.push(this._createFBO())}_shouldDisableRenderCache(){if(this._style.light&&this._style.light.hasTransition())return!0;for(const t in this._style._sourceCaches)if(this._style._sourceCaches[t].hasTransition())return!0;return this._style.order.some(t=>{const e=this._style._layers[t],i=e.isHidden(this.painter.transform.zoom);return"custom"===e.type?!i&&e.shouldRedrape():!i&&e.hasTransition()})}_clearLineLayersFromRenderCache(){let e=!1;for(const t of this._style._getSources())if(t instanceof St){e=!0;break}if(!e)return;const i={};for(let n=0;n<this._style.order.length;++n){const e=this._style._layers[this._style.order[n]],r=this._style._getLayerSourceCache(e);if(r&&!i[r.id]&&!e.isHidden(this.painter.transform.zoom)&&"line"===e.type&&e.widthExpression()instanceof t.ZoomDependentExpression){i[r.id]=!0;for(const t of this.proxyCoords){const e=this.proxyToSource[t.key][r.id];if(e)for(const t of e)this._clearRenderCacheForTile(r.id,t)}}}}_clearRasterLayersFromRenderCache(){let t=!1;for(const i in this._style._sourceCaches)if(this._style._sourceCaches[i]._source instanceof kt){t=!0;break}if(!t)return;const e={};for(let i=0;i<this._style.order.length;++i){const t=this._style._layers[this._style.order[i]],n=this._style._getLayerSourceCache(t);if(!n||e[n.id])continue;if(t.isHidden(this.painter.transform.zoom)||"raster"!==t.type)continue;const r=t.paint.get("raster-fade-duration");for(const e of this.proxyCoords){const t=this.proxyToSource[e.key][n.id];if(t)for(const e of t){const t=ki(n.getTile(e),n.findLoadedParent(e,0),n,this.painter.transform,r);(1!==t.opacity||0!==t.mix)&&this._clearRenderCacheForTile(n.id,e)}}}}_setupDrapedRenderBatches(){const t=this._style.order,e=t.length;if(0===e)return;const i=[];let n,r=0,o=this._style._layers[t[r]];for(;!this._style.isLayerDraped(o)&&o.isHidden(this.painter.transform.zoom)&&++r<e;)o=this._style._layers[t[r]];for(;r<e;++r){const e=this._style._layers[t[r]];e.isHidden(this.painter.transform.zoom)||(this._style.isLayerDraped(e)?void 0===n&&(n=r):void 0!==n&&(i.push({start:n,end:r-1}),n=void 0))}void 0!==n&&i.push({start:n,end:r-1}),this._drapedRenderBatches=i}_setupRenderCache(t){const e=this.proxySourceCache;if(this._shouldDisableRenderCache()||this._invalidateRenderCache){if(this._invalidateRenderCache=!1,e.renderCache.length>e.renderCachePool.length){const t=Object.values(e.proxyCachedFBO);e.proxyCachedFBO={};for(let i=0;i<t.length;++i){const n=Object.values(t[i]);e.renderCachePool.push(...n)}}return}this._clearRasterLayersFromRenderCache();const i=this.proxyCoords,n=this._tilesDirty;for(let o=i.length-1;o>=0;o--){const r=i[o];if(e.getTileByID(r.key),void 0!==e.proxyCachedFBO[r.key]){const i=t[r.key],o=this.proxyToSource[r.key];let s=0;for(const t in o){const e=o[t],r=i[t];if(!r||r.length!==e.length||e.some((e,i)=>e!==r[i]||n[t]&&n[t].hasOwnProperty(e.key))){s=-1;break}++s}for(const t in e.proxyCachedFBO[r.key])e.renderCache[e.proxyCachedFBO[r.key][t]].dirty=s<0||s!==Object.values(i).length}}const r=[...this._drapedRenderBatches];r.sort((t,e)=>e.end-e.start-(t.end-t.start));for(const o of r)for(const t of i){if(e.proxyCachedFBO[t.key])continue;let i=e.renderCachePool.pop();void 0===i&&e.renderCache.length<50&&(i=e.renderCache.length,e.renderCache.push(this._createFBO())),void 0!==i&&(e.proxyCachedFBO[t.key]={},e.proxyCachedFBO[t.key][o.start]=i,e.renderCache[i].dirty=!0)}this._tilesDirty={}}_setupStencil(t,e,i,n){if(!n||!this._sourceTilesOverlap[n.id])return void(this._overlapStencilType&&(this._overlapStencilType=!1));const r=this.painter.context,o=r.gl;if(e.length<=1)return void(this._overlapStencilType=!1);let s;if(i.isTileClipped())s=e.length,this._overlapStencilMode.test={func:o.EQUAL,mask:255},this._overlapStencilType="Clip";else{if(!(e[0].overscaledZ>e[e.length-1].overscaledZ))return void(this._overlapStencilType=!1);s=1,this._overlapStencilMode.test={func:o.GREATER,mask:255},this._overlapStencilType="Mask"}this._stencilRef+s>255&&(r.clear({stencil:0}),this._stencilRef=0),this._stencilRef+=s,this._overlapStencilMode.ref=this._stencilRef,i.isTileClipped()&&this._renderTileClippingMasks(e,this._overlapStencilMode.ref)}clipOrMaskOverlapStencilType(){return"Clip"===this._overlapStencilType||"Mask"===this._overlapStencilType}stencilModeForRTTOverlap(e){return this.renderingToTexture&&this._overlapStencilType?("Clip"===this._overlapStencilType&&(this._overlapStencilMode.ref=this.painter._tileClippingMaskIDs[e.key]),this._overlapStencilMode):t.StencilMode.disabled}_renderTileClippingMasks(e,i){const n=this.painter,r=this.painter.context,o=r.gl;n._tileClippingMaskIDs={},r.setColorMode(t.ColorMode.disabled),r.setDepthMode(t.DepthMode.disabled);const s=n.useProgram("clippingMask");for(const a of e){const e=n._tileClippingMaskIDs[a.key]=--i;s.draw(r,o.TRIANGLES,t.DepthMode.disabled,new t.StencilMode({func:o.ALWAYS,mask:0},e,255,o.KEEP,o.KEEP,o.REPLACE),t.ColorMode.disabled,t.CullFaceMode.disabled,Si(a.projMatrix),"$clipping",n.tileExtentBuffer,n.quadTriangleIndexBuffer,n.tileExtentSegments)}}pointCoordinate(e){const i=this.painter.transform;if(e.x<0||e.x>i.width||e.y<0||e.y>i.height)return null;const n=[e.x,e.y,1,1];t.transformMat4$1(n,n,i.pixelMatrixInverse),t.scale$1(n,n,1/n[3]),n[0]/=i.worldSize,n[1]/=i.worldSize;const r=i._camera.position,o=t.mercatorZfromAltitude(1,i.center.lat),s=[r[0],r[1],r[2]/o,0],a=t.subtract([],n.slice(0,3),s);t.normalize(a,a);const l=this.raycast(s,a,this._exaggeration);return null!==l&&l?(t.scaleAndAdd(s,s,a,l),s[3]=s[2],s[2]*=o,s):null}drawDepth(){const e=this.painter,i=e.context,n=this.proxySourceCache,r=Math.ceil(e.width),o=Math.ceil(e.height);if(!this._depthFBO||this._depthFBO.width===r&&this._depthFBO.height===o||(this._depthFBO.destroy(),this._depthFBO=void 0,this._depthTexture=void 0),!this._depthFBO){const e=i.gl,n=i.createFramebuffer(r,o,!0);i.activeTexture.set(e.TEXTURE0);const s=new t.Texture(i,{width:r,height:o,data:null},e.RGBA);s.bind(e.NEAREST,e.CLAMP_TO_EDGE),n.colorAttachment.set(s.texture);const a=i.createRenderbuffer(i.gl.DEPTH_COMPONENT16,r,o);n.depthAttachment.set(a),this._depthFBO=n,this._depthTexture=s}i.bindFramebuffer.set(this._depthFBO.framebuffer),i.viewport.set([0,0,r,o]),function(e,i,n,r){if("globe"===e.transform.projection.name)return;const o=e.context,s=o.gl;o.clear({depth:1});const a=e.useProgram("terrainDepth"),l=new t.DepthMode(s.LESS,t.DepthMode.ReadWrite,e.depthRangeFor3D);for(const c of r){const e=n.getTile(c),r=_i(c.projMatrix,0);i.setupElevationDraw(e,a),a.draw(o,s.TRIANGLES,l,t.StencilMode.disabled,t.ColorMode.unblended,t.CullFaceMode.backCCW,r,"terrain_depth",i.gridBuffer,i.gridIndexBuffer,i.gridNoSkirtSegments)}}(e,this,n,this.proxyCoords)}_setupProxiedCoordsForOrtho(t,e,i){if(t.getSource()instanceof At)return this._setupProxiedCoordsForImageSource(t,e,i);this._findCoveringTileCache[t.id]=this._findCoveringTileCache[t.id]||{};const n=this.proxiedCoords[t.id]=[],r=this.proxyCoords;for(let s=0;s<r.length;s++){const e=r[s],o=this._findTileCoveringTileID(e,t);if(o){const r=this._createProxiedId(e,o,i[e.key]&&i[e.key][t.id]);n.push(r),this.proxyToSource[e.key][t.id]=[r]}}let o=!1;for(let s=0;s<e.length;s++){const r=t.getTile(e[s]);if(!r||!r.hasData())continue;const a=this._findTileCoveringTileID(r.tileID,this.proxySourceCache);if(a&&a.tileID.canonical.z!==r.tileID.canonical.z){const e=this.proxyToSource[a.tileID.key][t.id],s=this._createProxiedId(a.tileID,r,i[a.tileID.key]&&i[a.tileID.key][t.id]);e?e.splice(e.length-1,0,s):this.proxyToSource[a.tileID.key][t.id]=[s],n.push(s),o=!0}}this._sourceTilesOverlap[t.id]=o}_setupProxiedCoordsForImageSource(e,i,n){if(!e.getSource().loaded())return;const r=this.proxiedCoords[e.id]=[],o=this.proxyCoords,s=e.getSource(),a=new t.Point(s.tileID.x,s.tileID.y)._div(1<<s.tileID.z),l=s.coordinates.map(t.MercatorCoordinate.fromLngLat).reduce((t,e)=>(t.min.x=Math.min(t.min.x,e.x-a.x),t.min.y=Math.min(t.min.y,e.y-a.y),t.max.x=Math.max(t.max.x,e.x-a.x),t.max.y=Math.max(t.max.y,e.y-a.y),t),{min:new t.Point(Number.MAX_VALUE,Number.MAX_VALUE),max:new t.Point(-Number.MAX_VALUE,-Number.MAX_VALUE)}),c=(e,i)=>{const n=e.wrap+e.canonical.x/(1<<e.canonical.z),r=e.canonical.y/(1<<e.canonical.z),o=t.EXTENT/(1<<e.canonical.z),s=i.wrap+i.canonical.x/(1<<i.canonical.z),a=i.canonical.y/(1<<i.canonical.z);return n+o<s+l.min.x||n>s+l.max.x||r+o<a+l.min.y||r>a+l.max.y};for(let t=0;t<o.length;t++){const s=o[t];for(let t=0;t<i.length;t++){const o=e.getTile(i[t]);if(!o||!o.hasData())continue;if(c(s,o.tileID))continue;const a=this._createProxiedId(s,o,n[s.key]&&n[s.key][e.id]),l=this.proxyToSource[s.key][e.id];l?l.push(a):this.proxyToSource[s.key][e.id]=[a],r.push(a)}}}_createProxiedId(e,i,n){let r=this.orthoMatrix;if(n){const t=n.find(t=>t.key===i.tileID.key);if(t)return t}if(i.tileID.key!==e.key){const n=e.canonical.z-i.tileID.canonical.z;let o,s,a;r=t.create();const l=i.tileID.wrap-e.wrap<<e.overscaledZ;n>0?(o=t.EXTENT>>n,s=o*((i.tileID.canonical.x<<n)-e.canonical.x+l),a=o*((i.tileID.canonical.y<<n)-e.canonical.y)):(o=t.EXTENT<<-n,s=t.EXTENT*(i.tileID.canonical.x-(e.canonical.x+l<<-n)),a=t.EXTENT*(i.tileID.canonical.y-(e.canonical.y<<-n))),t.ortho(r,0,o,0,o,0,1),t.translate(r,r,[s,a,0])}return new Ci(i.tileID,e.key,r)}_findTileCoveringTileID(e,i){let n=i.getTile(e);if(n&&n.hasData())return n;const r=this._findCoveringTileCache[i.id],o=r[e.key];if(n=o?i.getTileByID(o):null,n&&n.hasData()||null===o)return n;let s=n?n.tileID:e,a=s.overscaledZ;const l=i.getSource().minzoom,c=[];if(!o){const r=i.getSource().maxzoom;if(e.canonical.z>=r){const n=e.canonical.z-r;i.getSource().reparseOverscaled?(a=Math.max(e.canonical.z+2,i.transform.tileZoom),s=new t.OverscaledTileID(a,e.wrap,r,e.canonical.x>>n,e.canonical.y>>n)):0!==n&&(a=r,s=new t.OverscaledTileID(a,e.wrap,r,e.canonical.x>>n,e.canonical.y>>n))}s.key!==e.key&&(c.push(s.key),n=i.getTile(s))}const u=t=>{c.forEach(e=>{r[e]=t}),c.length=0};for(a-=1;a>=l&&(!n||!n.hasData());a--){n&&u(n.tileID.key);const t=s.calculateScaledKey(a);if(n=i.getTileByID(t),n&&n.hasData())break;const e=r[t];if(null===e)break;void 0===e?c.push(t):n=i.getTileByID(e)}return u(n?n.tileID.key:null),n&&n.hasData()?n:null}findDEMTileFor(t){return this.enabled?this._findTileCoveringTileID(t,this.sourceCache):null}prepareDrawTile(){this.renderedToTile=!0}_clearRenderCacheForTile(t,e){let i=this._tilesDirty[t];i||(i=this._tilesDirty[t]={}),i[e.key]=!0}getWirefameBuffer(){if(!this.wireframeSegments){const e=function(e){let i=0;const n=new t.StructArrayLayout2ui4,r=131;for(let t=1;t<129;t++){for(let e=1;e<129;e++)i=t*r+e,n.emplaceBack(i,i+1),n.emplaceBack(i,i+r),n.emplaceBack(i+1,i+r),128===t&&n.emplaceBack(i+r,i+r+1);n.emplaceBack(i+1,i+1+r)}return n}();this.wireframeIndexBuffer=this.painter.context.createIndexBuffer(e),this.wireframeSegments=t.SegmentVector.simpleSegment(0,0,this.gridBuffer.length,e.length)}return[this.wireframeIndexBuffer,this.wireframeSegments]}}class Mi{static cacheKey(t,e,i,n){let r=`${e}${n?n.cacheKey:""}`;for(const o of i)t.usedDefines.includes(o)&&(r+="/"+o);return r}constructor(e,i,n,r,o,s){const a=e.gl;this.program=a.createProgram();const l=function(t){const e=[];for(let i=0;i<t.length;i++){if(null===t[i])continue;const n=t[i].split(" ");e.push(n.pop())}return e}(n.staticAttributes),c=r?r.getBinderAttributes():[],u=l.concat(c);let h=r?r.defines():[];h=h.concat(s.map(t=>"#define "+t));const d=e.isWebGL2?"#version 300 es\n":"",f=d+h.concat(e.extStandardDerivatives&&0===d.length?"#extension GL_OES_standard_derivatives : enable\n".concat(li):li,li,ai,si.fragmentSource,ri.fragmentSource,n.fragmentSource).join("\n"),p=d+h.concat("\n#ifdef GL_ES\nprecision highp float;\n#else\n\n#if !defined(lowp)\n#define lowp\n#endif\n\n#if !defined(mediump)\n#define mediump\n#endif\n\n#if !defined(highp)\n#define highp\n#endif\n\n#endif",ai,si.vertexSource,ri.vertexSource,ni.vertexSource,n.vertexSource).join("\n"),m=a.createShader(a.FRAGMENT_SHADER);if(a.isContextLost())return void(this.failedToCreate=!0);a.shaderSource(m,f),a.compileShader(m),a.attachShader(this.program,m);const g=a.createShader(a.VERTEX_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(g,p),a.compileShader(g),a.attachShader(this.program,g),this.attributes={},this.numAttributes=u.length;for(let t=0;t<this.numAttributes;t++)u[t]&&(a.bindAttribLocation(this.program,t,u[t]),this.attributes[u[t]]=t);a.linkProgram(this.program),a.deleteShader(g),a.deleteShader(m),this.fixedUniforms=o(e),this.binderUniforms=r?r.getUniforms(e):[],s.includes("TERRAIN")&&(this.terrainUniforms=(e=>({u_dem:new t.Uniform1i(e),u_dem_prev:new t.Uniform1i(e),u_dem_unpack:new t.Uniform4f(e),u_dem_tl:new t.Uniform2f(e),u_dem_scale:new t.Uniform1f(e),u_dem_tl_prev:new t.Uniform2f(e),u_dem_scale_prev:new t.Uniform1f(e),u_dem_size:new t.Uniform1f(e),u_dem_lerp:new t.Uniform1f(e),u_exaggeration:new t.Uniform1f(e),u_depth:new t.Uniform1i(e),u_depth_size_inv:new t.Uniform2f(e),u_meter_to_dem:new t.Uniform1f(e),u_label_plane_matrix_inv:new t.UniformMatrix4f(e)}))(e)),s.includes("GLOBE")&&(this.globeUniforms=(e=>({u_tile_tl_up:new t.Uniform3f(e),u_tile_tr_up:new t.Uniform3f(e),u_tile_br_up:new t.Uniform3f(e),u_tile_bl_up:new t.Uniform3f(e),u_tile_up_scale:new t.Uniform1f(e)}))(e)),s.includes("FOG")&&(this.fogUniforms=(e=>({u_fog_matrix:new t.UniformMatrix4f(e),u_fog_range:new t.Uniform2f(e),u_fog_color:new t.Uniform4f(e),u_fog_horizon_blend:new t.Uniform1f(e),u_fog_temporal_offset:new t.Uniform1f(e),u_frustum_tl:new t.Uniform3f(e),u_frustum_tr:new t.Uniform3f(e),u_frustum_br:new t.Uniform3f(e),u_frustum_bl:new t.Uniform3f(e),u_globe_pos:new t.Uniform3f(e),u_globe_radius:new t.Uniform1f(e),u_globe_transition:new t.Uniform1f(e),u_is_globe:new t.Uniform1i(e),u_viewport:new t.Uniform2f(e)}))(e))}}setTerrainUniformValues(t,e){if(!this.terrainUniforms)return;const i=this.terrainUniforms;if(!this.failedToCreate){t.program.set(this.program);for(const t in e)i[t]&&i[t].set(this.program,t,e[t])}}setGlobeUniformValues(t,e){if(!this.globeUniforms)return;const i=this.globeUniforms;if(!this.failedToCreate){t.program.set(this.program);for(const t in e)i[t]&&i[t].set(this.program,t,e[t])}}setFogUniformValues(t,e){if(!this.fogUniforms)return;const i=this.fogUniforms;if(!this.failedToCreate){t.program.set(this.program);for(const t in e)i[t].set(this.program,t,e[t])}}draw(t,e,i,n,r,o,s,a,l,c,u,h,d,f,p){const m=t.gl;if(this.failedToCreate)return;t.program.set(this.program),t.setDepthMode(i),t.setStencilMode(n),t.setColorMode(r),t.setCullFace(o);for(const y of Object.keys(this.fixedUniforms))this.fixedUniforms[y].set(this.program,y,s[y]);f&&f.setUniforms(this.program,t,this.binderUniforms,h,{zoom:d});const g={[m.LINES]:2,[m.TRIANGLES]:3,[m.LINE_STRIP]:1}[e];for(const y of u.get()){const i=y.vaos||(y.vaos={});(i[a]||(i[a]=new di)).bind(t,this,l,f?f.getPaintVertexBuffers():[],c,y.vertexOffset,p||[]),m.drawElements(e,y.primitiveLength*g,m.UNSIGNED_SHORT,y.primitiveOffset*g*2)}}}function Pi(t,e){const i=Math.pow(2,e.tileID.overscaledZ),n=e.tileSize*Math.pow(2,t.transform.tileZoom)/i,r=n*(e.tileID.canonical.x+e.tileID.wrap*i),o=n*e.tileID.canonical.y;return{u_image:0,u_texsize:e.imageAtlasTexture.size,u_tile_units_to_pixels:1/I(e,1,t.transform.tileZoom),u_pixel_coord_upper:[r>>16,o>>16],u_pixel_coord_lower:[65535&r,65535&o]}}const Di=t.create(),Li=(e,i,n,r,o,s,a,l,c,u,h)=>{const d=i.style.light,f=d.properties.get("position"),p=[f.x,f.y,f.z],m=t.create$1();"viewport"===d.properties.get("anchor")&&(t.fromRotation(m,-i.transform.angle),t.transformMat3(p,p,m));const g=d.properties.get("color"),y=i.transform,_={u_matrix:e,u_lightpos:p,u_lightintensity:d.properties.get("intensity"),u_lightcolor:[g.r,g.g,g.b],u_vertical_gradient:+n,u_opacity:r,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:Di,u_merc_center:[0,0],u_up_dir:[0,0,0],u_height_lift:0,u_ao:o,u_edge_radius:s};return"globe"===y.projection.name&&(_.u_tile_id=[a.canonical.x,a.canonical.y,1<<a.canonical.z],_.u_zoom_transition=c,_.u_inv_rot_matrix=h,_.u_merc_center=u,_.u_up_dir=y.projection.upVector(new t.CanonicalTileID(0,0,0),u[0]*t.EXTENT,u[1]*t.EXTENT),_.u_height_lift=l),_},Ri=(e,i,n,r,o,s,a,l,c,u,h,d)=>{const f=Li(e,i,n,r,o,s,a,c,u,h,d),p={u_height_factor:-Math.pow(2,a.overscaledZ)/l.tileSize/8};return t.extend(f,Pi(i,l),p)},zi=t=>({u_matrix:t}),ji=(e,i,n)=>t.extend(zi(e),Pi(i,n)),Bi=(t,e)=>({u_matrix:t,u_world:e}),Fi=(e,i,n,r)=>t.extend(ji(e,i,n),{u_world:r}),Ni=t.create(),Vi=(e,i,n,r,o,s)=>{const a=e.transform,l="globe"===a.projection.name;let c;if("map"===s.paint.get("circle-pitch-alignment"))if(l){const e=t.globePixelsToTileUnits(a.zoom,i.canonical)*a._pixelsPerMercatorPixel;c=Float32Array.from([e,0,0,e])}else c=a.calculatePixelsToTileUnitsMatrix(n);else c=new Float32Array([a.pixelsToGLUnits[0],0,0,a.pixelsToGLUnits[1]]);const u={u_camera_to_center_distance:a.cameraToCenterDistance,u_matrix:e.translatePosMatrix(i.projMatrix,n,s.paint.get("circle-translate"),s.paint.get("circle-translate-anchor")),u_device_pixel_ratio:t.exported.devicePixelRatio,u_extrude_scale:c,u_inv_rot_matrix:Ni,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0]};if(l){u.u_inv_rot_matrix=r,u.u_merc_center=o,u.u_tile_id=[i.canonical.x,i.canonical.y,1<<i.canonical.z],u.u_zoom_transition=t.globeToMercatorTransition(a.zoom);const e=o[0]*t.EXTENT,n=o[1]*t.EXTENT;u.u_up_dir=a.projection.upVector(new t.CanonicalTileID(0,0,0),e,n)}return u},$i=t=>{const e=[];return"map"===t.paint.get("circle-pitch-alignment")&&e.push("PITCH_WITH_MAP"),"map"===t.paint.get("circle-pitch-scale")&&e.push("SCALE_WITH_MAP"),e},Ui=(e,i,n,r)=>{const o=t.EXTENT/n.tileSize;return{u_matrix:e,u_camera_to_center_distance:i.getCameraToCenterDistance(r),u_extrude_scale:[i.pixelsToGLUnits[0]/o,i.pixelsToGLUnits[1]/o]}},qi=(t,e,i=1)=>({u_matrix:t,u_color:e,u_overlay:0,u_overlay_scale:i}),Gi=t.create(),Wi=(e,i,n,r,o,s,a)=>{const l=e.transform,c="globe"===l.projection.name,u=c?t.globePixelsToTileUnits(l.zoom,i.canonical)*l._pixelsPerMercatorPixel:I(n,1,s),h={u_matrix:i.projMatrix,u_extrude_scale:u,u_intensity:a,u_inv_rot_matrix:Gi,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0]};if(c){h.u_inv_rot_matrix=r,h.u_merc_center=o,h.u_tile_id=[i.canonical.x,i.canonical.y,1<<i.canonical.z],h.u_zoom_transition=t.globeToMercatorTransition(l.zoom);const e=o[0]*t.EXTENT,n=o[1]*t.EXTENT;h.u_up_dir=l.projection.upVector(new t.CanonicalTileID(0,0,0),e,n)}return h},Zi=(t,e,i,n,r,o,s)=>{const a=t.transform,l=a.calculatePixelsToTileUnitsMatrix(e);return{u_matrix:Qi(t,e,i,n),u_pixels_to_tile_units:l,u_device_pixel_ratio:o,u_units_to_pixels:[1/a.pixelsToGLUnits[0],1/a.pixelsToGLUnits[1]],u_dash_image:0,u_gradient_image:1,u_image_height:r,u_texsize:Yi(i)?e.lineAtlasTexture.size:[0,0],u_tile_units_to_pixels:Xi(e,t.transform),u_alpha_discard_threshold:0,u_trim_offset:s}},Hi=(t,e,i,n,r)=>{const o=t.transform;return{u_matrix:Qi(t,e,i,n),u_texsize:e.imageAtlasTexture.size,u_pixels_to_tile_units:o.calculatePixelsToTileUnitsMatrix(e),u_device_pixel_ratio:r,u_image:0,u_tile_units_to_pixels:Xi(e,o),u_units_to_pixels:[1/o.pixelsToGLUnits[0],1/o.pixelsToGLUnits[1]],u_alpha_discard_threshold:0}};function Xi(t,e){return 1/I(t,1,e.tileZoom)}function Qi(t,e,i,n){return t.translatePosMatrix(n||e.tileID.projMatrix,e,i.paint.get("line-translate"),i.paint.get("line-translate-anchor"))}function Yi(t){const e=t.paint.get("line-dasharray").value;return e.value||"constant"!==e.kind}const Ki=(t,e,i,n,r,o)=>{return{u_matrix:t,u_tl_parent:e,u_scale_parent:i,u_fade_t:n.mix,u_opacity:n.opacity*r.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:r.paint.get("raster-brightness-min"),u_brightness_high:r.paint.get("raster-brightness-max"),u_saturation_factor:(a=r.paint.get("raster-saturation"),a>0?1-1/(1.001-a):-a),u_contrast_factor:(s=r.paint.get("raster-contrast"),s>0?1/(1-s):1+s),u_spin_weights:Ji(r.paint.get("raster-hue-rotate")),u_perspective_transform:o};var s,a};function Ji(t){t*=Math.PI/180;const e=Math.sin(t),i=Math.cos(t);return[(2*i+1)/3,(-Math.sqrt(3)*e-i+1)/3,(Math.sqrt(3)*e-i+1)/3]}const tn=t.create(),en=(e,i,n,r,o,s,a,l,c,u,h,d,f,p,m,g)=>{const y=o.transform,_={u_is_size_zoom_constant:+("constant"===e||"source"===e),u_is_size_feature_constant:+("constant"===e||"camera"===e),u_size_t:i?i.uSizeT:0,u_size:i?i.uSize:0,u_camera_to_center_distance:y.cameraToCenterDistance,u_rotate_symbol:+n,u_aspect_ratio:y.width/y.height,u_fade_change:o.options.fadeDuration?o.symbolFadeChange:1,u_matrix:s,u_label_plane_matrix:a,u_coord_matrix:l,u_is_text:+c,u_pitch_with_map:+r,u_texsize:u,u_texture:0,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:tn,u_merc_center:[0,0],u_camera_forward:[0,0,0],u_ecef_origin:[0,0,0],u_tile_matrix:tn,u_up_vector:[0,-1,0]};return"globe"===g.name&&(_.u_tile_id=[h.canonical.x,h.canonical.y,1<<h.canonical.z],_.u_zoom_transition=d,_.u_inv_rot_matrix=p,_.u_merc_center=f,_.u_camera_forward=y._camera.forward(),_.u_ecef_origin=t.globeECEFOrigin(y.globeMatrix,h.toUnwrapped()),_.u_tile_matrix=Float32Array.from(y.globeMatrix),_.u_up_vector=m),_},nn=(e,i,n,r,o,s,a,l,c,u,h,d,f,p,m,g,y)=>t.extend(en(e,i,n,r,o,s,a,l,c,u,d,f,p,m,g,y),{u_gamma_scale:r?o.transform.cameraToCenterDistance*Math.cos(o.terrain?0:o.transform._pitch):1,u_device_pixel_ratio:t.exported.devicePixelRatio,u_is_halo:+h}),rn=(e,i,n,r,o,s,a,l,c,u,h,d,f,p,m,g)=>t.extend(nn(e,i,n,r,o,s,a,l,!0,c,!0,h,d,f,p,m,g),{u_texsize_icon:u,u_texture_icon:1}),on=(t,e,i)=>({u_matrix:t,u_opacity:e,u_color:i}),sn=(e,i,n,r,o)=>t.extend(function(t,e,i){const n=e.imageManager.getPattern(t.toString()),{width:r,height:o}=e.imageManager.getPixelSize(),s=Math.pow(2,i.tileID.overscaledZ),a=i.tileSize*Math.pow(2,e.transform.tileZoom)/s,l=a*(i.tileID.canonical.x+i.tileID.wrap*s),c=a*i.tileID.canonical.y;return{u_image:0,u_pattern_tl:n.tl,u_pattern_br:n.br,u_texsize:[r,o],u_pattern_size:n.displaySize,u_tile_units_to_pixels:1/I(i,1,e.transform.tileZoom),u_pixel_coord_upper:[l>>16,c>>16],u_pixel_coord_lower:[65535&l,65535&c]}}(r,n,o),{u_matrix:e,u_opacity:i}),an={fillExtrusion:e=>({u_matrix:new t.UniformMatrix4f(e),u_lightpos:new t.Uniform3f(e),u_lightintensity:new t.Uniform1f(e),u_lightcolor:new t.Uniform3f(e),u_vertical_gradient:new t.Uniform1f(e),u_opacity:new t.Uniform1f(e),u_edge_radius:new t.Uniform1f(e),u_ao:new t.Uniform2f(e),u_tile_id:new t.Uniform3f(e),u_zoom_transition:new t.Uniform1f(e),u_inv_rot_matrix:new t.UniformMatrix4f(e),u_merc_center:new t.Uniform2f(e),u_up_dir:new t.Uniform3f(e),u_height_lift:new t.Uniform1f(e)}),fillExtrusionPattern:e=>({u_matrix:new t.UniformMatrix4f(e),u_lightpos:new t.Uniform3f(e),u_lightintensity:new t.Uniform1f(e),u_lightcolor:new t.Uniform3f(e),u_vertical_gradient:new t.Uniform1f(e),u_height_factor:new t.Uniform1f(e),u_edge_radius:new t.Uniform1f(e),u_ao:new t.Uniform2f(e),u_tile_id:new t.Uniform3f(e),u_zoom_transition:new t.Uniform1f(e),u_inv_rot_matrix:new t.UniformMatrix4f(e),u_merc_center:new t.Uniform2f(e),u_up_dir:new t.Uniform3f(e),u_height_lift:new t.Uniform1f(e),u_image:new t.Uniform1i(e),u_texsize:new t.Uniform2f(e),u_pixel_coord_upper:new t.Uniform2f(e),u_pixel_coord_lower:new t.Uniform2f(e),u_tile_units_to_pixels:new t.Uniform1f(e),u_opacity:new t.Uniform1f(e)}),fill:e=>({u_matrix:new t.UniformMatrix4f(e)}),fillPattern:e=>({u_matrix:new t.UniformMatrix4f(e),u_image:new t.Uniform1i(e),u_texsize:new t.Uniform2f(e),u_pixel_coord_upper:new t.Uniform2f(e),u_pixel_coord_lower:new t.Uniform2f(e),u_tile_units_to_pixels:new t.Uniform1f(e)}),fillOutline:e=>({u_matrix:new t.UniformMatrix4f(e),u_world:new t.Uniform2f(e)}),fillOutlinePattern:e=>({u_matrix:new t.UniformMatrix4f(e),u_world:new t.Uniform2f(e),u_image:new t.Uniform1i(e),u_texsize:new t.Uniform2f(e),u_pixel_coord_upper:new t.Uniform2f(e),u_pixel_coord_lower:new t.Uniform2f(e),u_tile_units_to_pixels:new t.Uniform1f(e)}),circle:e=>({u_camera_to_center_distance:new t.Uniform1f(e),u_extrude_scale:new t.UniformMatrix2f(e),u_device_pixel_ratio:new t.Uniform1f(e),u_matrix:new t.UniformMatrix4f(e),u_inv_rot_matrix:new t.UniformMatrix4f(e),u_merc_center:new t.Uniform2f(e),u_tile_id:new t.Uniform3f(e),u_zoom_transition:new t.Uniform1f(e),u_up_dir:new t.Uniform3f(e)}),collisionBox:e=>({u_matrix:new t.UniformMatrix4f(e),u_camera_to_center_distance:new t.Uniform1f(e),u_extrude_scale:new t.Uniform2f(e)}),collisionCircle:e=>({u_matrix:new t.UniformMatrix4f(e),u_inv_matrix:new t.UniformMatrix4f(e),u_camera_to_center_distance:new t.Uniform1f(e),u_viewport_size:new t.Uniform2f(e)}),debug:e=>({u_color:new t.UniformColor(e),u_matrix:new t.UniformMatrix4f(e),u_overlay:new t.Uniform1i(e),u_overlay_scale:new t.Uniform1f(e)}),clippingMask:e=>({u_matrix:new t.UniformMatrix4f(e)}),heatmap:e=>({u_extrude_scale:new t.Uniform1f(e),u_intensity:new t.Uniform1f(e),u_matrix:new t.UniformMatrix4f(e),u_inv_rot_matrix:new t.UniformMatrix4f(e),u_merc_center:new t.Uniform2f(e),u_tile_id:new t.Uniform3f(e),u_zoom_transition:new t.Uniform1f(e),u_up_dir:new t.Uniform3f(e)}),heatmapTexture:e=>({u_image:new t.Uniform1i(e),u_color_ramp:new t.Uniform1i(e),u_opacity:new t.Uniform1f(e)}),hillshade:e=>({u_matrix:new t.UniformMatrix4f(e),u_image:new t.Uniform1i(e),u_latrange:new t.Uniform2f(e),u_light:new t.Uniform2f(e),u_shadow:new t.UniformColor(e),u_highlight:new t.UniformColor(e),u_accent:new t.UniformColor(e)}),hillshadePrepare:e=>({u_matrix:new t.UniformMatrix4f(e),u_image:new t.Uniform1i(e),u_dimension:new t.Uniform2f(e),u_zoom:new t.Uniform1f(e),u_unpack:new t.Uniform4f(e)}),line:e=>({u_matrix:new t.UniformMatrix4f(e),u_pixels_to_tile_units:new t.UniformMatrix2f(e),u_device_pixel_ratio:new t.Uniform1f(e),u_units_to_pixels:new t.Uniform2f(e),u_dash_image:new t.Uniform1i(e),u_gradient_image:new t.Uniform1i(e),u_image_height:new t.Uniform1f(e),u_texsize:new t.Uniform2f(e),u_tile_units_to_pixels:new t.Uniform1f(e),u_alpha_discard_threshold:new t.Uniform1f(e),u_trim_offset:new t.Uniform2f(e)}),linePattern:e=>({u_matrix:new t.UniformMatrix4f(e),u_texsize:new t.Uniform2f(e),u_pixels_to_tile_units:new t.UniformMatrix2f(e),u_device_pixel_ratio:new t.Uniform1f(e),u_image:new t.Uniform1i(e),u_units_to_pixels:new t.Uniform2f(e),u_tile_units_to_pixels:new t.Uniform1f(e),u_alpha_discard_threshold:new t.Uniform1f(e)}),raster:e=>({u_matrix:new t.UniformMatrix4f(e),u_tl_parent:new t.Uniform2f(e),u_scale_parent:new t.Uniform1f(e),u_fade_t:new t.Uniform1f(e),u_opacity:new t.Uniform1f(e),u_image0:new t.Uniform1i(e),u_image1:new t.Uniform1i(e),u_brightness_low:new t.Uniform1f(e),u_brightness_high:new t.Uniform1f(e),u_saturation_factor:new t.Uniform1f(e),u_contrast_factor:new t.Uniform1f(e),u_spin_weights:new t.Uniform3f(e),u_perspective_transform:new t.Uniform2f(e)}),symbolIcon:e=>({u_is_size_zoom_constant:new t.Uniform1i(e),u_is_size_feature_constant:new t.Uniform1i(e),u_size_t:new t.Uniform1f(e),u_size:new t.Uniform1f(e),u_camera_to_center_distance:new t.Uniform1f(e),u_rotate_symbol:new t.Uniform1i(e),u_aspect_ratio:new t.Uniform1f(e),u_fade_change:new t.Uniform1f(e),u_matrix:new t.UniformMatrix4f(e),u_label_plane_matrix:new t.UniformMatrix4f(e),u_coord_matrix:new t.UniformMatrix4f(e),u_is_text:new t.Uniform1i(e),u_pitch_with_map:new t.Uniform1i(e),u_texsize:new t.Uniform2f(e),u_tile_id:new t.Uniform3f(e),u_zoom_transition:new t.Uniform1f(e),u_inv_rot_matrix:new t.UniformMatrix4f(e),u_merc_center:new t.Uniform2f(e),u_camera_forward:new t.Uniform3f(e),u_tile_matrix:new t.UniformMatrix4f(e),u_up_vector:new t.Uniform3f(e),u_ecef_origin:new t.Uniform3f(e),u_texture:new t.Uniform1i(e)}),symbolSDF:e=>({u_is_size_zoom_constant:new t.Uniform1i(e),u_is_size_feature_constant:new t.Uniform1i(e),u_size_t:new t.Uniform1f(e),u_size:new t.Uniform1f(e),u_camera_to_center_distance:new t.Uniform1f(e),u_rotate_symbol:new t.Uniform1i(e),u_aspect_ratio:new t.Uniform1f(e),u_fade_change:new t.Uniform1f(e),u_matrix:new t.UniformMatrix4f(e),u_label_plane_matrix:new t.UniformMatrix4f(e),u_coord_matrix:new t.UniformMatrix4f(e),u_is_text:new t.Uniform1i(e),u_pitch_with_map:new t.Uniform1i(e),u_texsize:new t.Uniform2f(e),u_texture:new t.Uniform1i(e),u_gamma_scale:new t.Uniform1f(e),u_device_pixel_ratio:new t.Uniform1f(e),u_tile_id:new t.Uniform3f(e),u_zoom_transition:new t.Uniform1f(e),u_inv_rot_matrix:new t.UniformMatrix4f(e),u_merc_center:new t.Uniform2f(e),u_camera_forward:new t.Uniform3f(e),u_tile_matrix:new t.UniformMatrix4f(e),u_up_vector:new t.Uniform3f(e),u_ecef_origin:new t.Uniform3f(e),u_is_halo:new t.Uniform1i(e)}),symbolTextAndIcon:e=>({u_is_size_zoom_constant:new t.Uniform1i(e),u_is_size_feature_constant:new t.Uniform1i(e),u_size_t:new t.Uniform1f(e),u_size:new t.Uniform1f(e),u_camera_to_center_distance:new t.Uniform1f(e),u_rotate_symbol:new t.Uniform1i(e),u_aspect_ratio:new t.Uniform1f(e),u_fade_change:new t.Uniform1f(e),u_matrix:new t.UniformMatrix4f(e),u_label_plane_matrix:new t.UniformMatrix4f(e),u_coord_matrix:new t.UniformMatrix4f(e),u_is_text:new t.Uniform1i(e),u_pitch_with_map:new t.Uniform1i(e),u_texsize:new t.Uniform2f(e),u_texsize_icon:new t.Uniform2f(e),u_texture:new t.Uniform1i(e),u_texture_icon:new t.Uniform1i(e),u_gamma_scale:new t.Uniform1f(e),u_device_pixel_ratio:new t.Uniform1f(e),u_is_halo:new t.Uniform1i(e)}),background:e=>({u_matrix:new t.UniformMatrix4f(e),u_opacity:new t.Uniform1f(e),u_color:new t.UniformColor(e)}),backgroundPattern:e=>({u_matrix:new t.UniformMatrix4f(e),u_opacity:new t.Uniform1f(e),u_image:new t.Uniform1i(e),u_pattern_tl:new t.Uniform2f(e),u_pattern_br:new t.Uniform2f(e),u_texsize:new t.Uniform2f(e),u_pattern_size:new t.Uniform2f(e),u_pixel_coord_upper:new t.Uniform2f(e),u_pixel_coord_lower:new t.Uniform2f(e),u_tile_units_to_pixels:new t.Uniform1f(e)}),terrainRaster:yi,terrainDepth:yi,skybox:e=>({u_matrix:new t.UniformMatrix4f(e),u_sun_direction:new t.Uniform3f(e),u_cubemap:new t.Uniform1i(e),u_opacity:new t.Uniform1f(e),u_temporal_offset:new t.Uniform1f(e)}),skyboxGradient:e=>({u_matrix:new t.UniformMatrix4f(e),u_color_ramp:new t.Uniform1i(e),u_center_direction:new t.Uniform3f(e),u_radius:new t.Uniform1f(e),u_opacity:new t.Uniform1f(e),u_temporal_offset:new t.Uniform1f(e)}),skyboxCapture:e=>({u_matrix_3f:new t.UniformMatrix3f(e),u_sun_direction:new t.Uniform3f(e),u_sun_intensity:new t.Uniform1f(e),u_color_tint_r:new t.Uniform4f(e),u_color_tint_m:new t.Uniform4f(e),u_luminance:new t.Uniform1f(e)}),globeRaster:e=>({u_proj_matrix:new t.UniformMatrix4f(e),u_globe_matrix:new t.UniformMatrix4f(e),u_normalize_matrix:new t.UniformMatrix4f(e),u_merc_matrix:new t.UniformMatrix4f(e),u_zoom_transition:new t.Uniform1f(e),u_merc_center:new t.Uniform2f(e),u_image0:new t.Uniform1i(e),u_grid_matrix:new t.UniformMatrix3f(e),u_skirt_height:new t.Uniform1f(e),u_frustum_tl:new t.Uniform3f(e),u_frustum_tr:new t.Uniform3f(e),u_frustum_br:new t.Uniform3f(e),u_frustum_bl:new t.Uniform3f(e),u_globe_pos:new t.Uniform3f(e),u_globe_radius:new t.Uniform1f(e),u_viewport:new t.Uniform2f(e)}),globeAtmosphere:e=>({u_frustum_tl:new t.Uniform3f(e),u_frustum_tr:new t.Uniform3f(e),u_frustum_br:new t.Uniform3f(e),u_frustum_bl:new t.Uniform3f(e),u_horizon:new t.Uniform1f(e),u_transition:new t.Uniform1f(e),u_fadeout_range:new t.Uniform1f(e),u_color:new t.Uniform4f(e),u_high_color:new t.Uniform4f(e),u_space_color:new t.Uniform4f(e),u_star_intensity:new t.Uniform1f(e),u_star_density:new t.Uniform1f(e),u_star_size:new t.Uniform1f(e),u_temporal_offset:new t.Uniform1f(e),u_horizon_angle:new t.Uniform1f(e),u_rotation_matrix:new t.UniformMatrix4f(e)})};let ln;function cn(e,i,n,r,o,s,a){const l=e.context,c=l.gl,u=e.transform,h=e.useProgram("collisionBox"),d=[];let f=0,p=0;for(let x=0;x<r.length;x++){const m=r[x],g=i.getTile(m),y=g.getBucket(n);if(!y)continue;const _=_e(m,y,u);let v=_;0===o[0]&&0===o[1]||(v=e.translatePosMatrix(_,g,o,s));const b=a?y.textCollisionBox:y.iconCollisionBox,w=y.collisionCircleArray;if(w.length>0){const e=t.create(),i=v;t.mul(e,y.placementInvProjMatrix,u.glCoordMatrix),t.mul(e,e,y.placementViewportMatrix),d.push({circleArray:w,circleOffset:p,transform:i,invTransform:e,projection:y.getProjection()}),f+=w.length/4,p=f}b&&(e.terrain&&e.terrain.setupElevationDraw(g,h),h.draw(l,c.LINES,t.DepthMode.disabled,t.StencilMode.disabled,e.colorModeForRenderPass(),t.CullFaceMode.disabled,Ui(v,u,g,y.getProjection()),n.id,b.layoutVertexBuffer,b.indexBuffer,b.segments,null,u.zoom,null,[b.collisionVertexBuffer,b.collisionVertexBufferExt]))}if(!a||!d.length)return;const m=e.useProgram("collisionCircle"),g=new t.StructArrayLayout2f1f2i16;g.resize(4*f),g._trim();let y=0;for(const t of d)for(let e=0;e<t.circleArray.length/4;e++){const i=4*e,n=t.circleArray[i+0],r=t.circleArray[i+1],o=t.circleArray[i+2],s=t.circleArray[i+3];g.emplace(y++,n,r,o,s,0),g.emplace(y++,n,r,o,s,1),g.emplace(y++,n,r,o,s,2),g.emplace(y++,n,r,o,s,3)}(!ln||ln.length<2*f)&&(ln=function(e){const i=2*e,n=new t.StructArrayLayout3ui6;n.resize(i),n._trim();for(let t=0;t<i;t++){const e=6*t;n.uint16[e+0]=4*t+0,n.uint16[e+1]=4*t+1,n.uint16[e+2]=4*t+2,n.uint16[e+3]=4*t+2,n.uint16[e+4]=4*t+3,n.uint16[e+5]=4*t+0}return n}(f));const _=l.createIndexBuffer(ln,!0),v=l.createVertexBuffer(g,t.collisionCircleLayout.members,!0);for(const x of d){const i={u_matrix:x.transform,u_inv_matrix:x.invTransform,u_camera_to_center_distance:(b=u).getCameraToCenterDistance(x.projection),u_viewport_size:[b.width,b.height]};m.draw(l,c.TRIANGLES,t.DepthMode.disabled,t.StencilMode.disabled,e.colorModeForRenderPass(),t.CullFaceMode.disabled,i,n.id,v,_,t.SegmentVector.simpleSegment(0,2*x.circleOffset,x.circleArray.length,x.circleArray.length/2),null,u.zoom)}var b;v.destroy(),_.destroy()}const un=t.create();function hn({width:e,height:i,anchor:n,textOffset:r,textScale:o},s){const{horizontalAlign:a,verticalAlign:l}=t.getAnchorAlignment(n),c=-(a-.5)*e,u=-(l-.5)*i,h=t.evaluateVariableOffset(n,r);return new t.Point((c/o+h[0])*s,(u/o+h[1])*s)}function dn(e,i,n,r,o,s,a,l,c,u,h){const d=e.text.placedSymbolArray,f=e.text.dynamicLayoutVertexArray,p=e.icon.dynamicLayoutVertexArray,m={},g=e.getProjection(),y=ve(l,g,s),_=s.elevation,v=g.upVectorScale(l.canonical,s.center.lat,s.worldSize).metersToTile;f.clear();for(let b=0;b<d.length;b++){const p=d.get(b),{tileAnchorX:x,tileAnchorY:w,numGlyphs:E}=p,T=p.hidden||!p.crossTileID||e.allowVerticalPlacement&&!p.placedOrientation?null:r[p.crossTileID];if(T){let r=0,d=0,b=0;if(_){const t=_?_.getAtTileOffset(l,x,w):0,[e,i,n]=g.upVector(l.canonical,x,w);r=t*e*v,d=t*i*v,b=t*n*v}let[S,k,O,A]=ne(p.projectedAnchorX+r,p.projectedAnchorY+d,p.projectedAnchorZ+b,n?y:a);const C=re(s.getCameraToCenterDistance(g),A);let I=o.evaluateSizeForFeature(e.textSizeData,u,p)*C/t.ONE_EM;n&&(I*=e.tilePixelRatio/c);const M=hn(T,I);n?(({x:S,y:k,z:O}=g.projectTilePoint(x+M.x,w+M.y,l.canonical)),[S,k,O]=ne(S+r,k+d,O+b,a)):(i&&M._rotate(-s.angle),S+=M.x,k+=M.y,O=0);const P=e.allowVerticalPlacement&&p.placedOrientation===t.WritingMode.vertical?Math.PI/2:0;for(let e=0;e<E;e++)t.addDynamicAttributes(f,S,k,O,P);h&&p.associatedIconIndex>=0&&(m[p.associatedIconIndex]={x:S,y:k,z:O,angle:P})}else fe(E,f)}if(h){p.clear();const i=e.icon.placedSymbolArray;for(let e=0;e<i.length;e++){const n=i.get(e),{numGlyphs:r}=n,o=m[e];if(n.hidden||!o)fe(r,p);else{const{x:e,y:i,z:n,angle:s}=o;for(let o=0;o<r;o++)t.addDynamicAttributes(p,e,i,n,s)}}e.icon.dynamicLayoutVertexBuffer.updateData(p)}e.text.dynamicLayoutVertexBuffer.updateData(f)}function fn(t,e,i){return i.iconsInText&&e?"symbolTextAndIcon":t?"symbolSDF":"symbolIcon"}function pn(e,i,n,r,o,s,a,l,c,u,h,d){const f=e.context,p=f.gl,m=e.transform,g="map"===l,y="map"===c,_=g&&"point"!==n.layout.get("symbol-placement"),v=g&&!y&&!_,b=void 0!==n.layout.get("symbol-sort-key").constantOr(1);let x=!1;const w=e.depthModeForSublayer(0,t.DepthMode.ReadOnly),E=[t.mercatorXfromLng(m.center.lng),t.mercatorYfromLat(m.center.lat)],T=n.layout.get("text-variable-anchor"),S="globe"===m.projection.name,k=[],O=[0,-1,0];let A=O;!S&&!m.mercatorFromTransition||g||(A=function(e){const i=e._camera.getWorldToCamera(e.worldSize,1),n=t.multiply([],i,e.globeMatrix);t.invert(n,n);const r=[0,0,0],o=[0,1,0,0];return t.transformMat4$1(o,o,n),r[0]=o[0],r[1]=o[1],r[2]=o[2],t.normalize(r,r),r}(m));for(const C of r){const r=i.getTile(C),l=r.getBucket(n);if(!l)continue;if("mercator"===l.projection.name&&S)continue;const c=o?l.text:l.icon;if(!c||l.fullyClipped||!c.segments.get().length)continue;const h=c.programConfigurations.get(n.id),d=o||l.sdfIcons,f=o?l.textSizeData:l.iconSizeData,w=y||0!==m.pitch,I=t.evaluateSizeForZoom(f,m.zoom);let M,P,D,L,R=[0,0],z=null;if(o)P=r.glyphAtlasTexture,D=p.LINEAR,M=r.glyphAtlasTexture.size,l.iconsInText&&(R=r.imageAtlasTexture.size,z=r.imageAtlasTexture,L=w||e.options.rotating||e.options.zooming||"composite"===f.kind||"camera"===f.kind?p.LINEAR:p.NEAREST);else{const t=1!==n.layout.get("icon-size").constantOr(0)||l.iconsNeedLinear;P=r.imageAtlasTexture,D=d||e.options.rotating||e.options.zooming||t||w?p.LINEAR:p.NEAREST,M=r.imageAtlasTexture.size}const j="globe"===l.projection.name,B=j?A:O,F=j?t.globeToMercatorTransition(m.zoom):0,N=ve(C,l.getProjection(),m),V=m.calculatePixelsToTileUnitsMatrix(r),$=te(N,r.tileID.canonical,y,g,m,l.getProjection(),V),U=e.terrain&&y&&_?t.invert(t.create(),$):un,q=ie(N,r.tileID.canonical,y,g,m,l.getProjection(),V),G=T&&l.hasTextData(),W="none"!==n.layout.get("icon-text-fit")&&G&&l.hasIconData();if(_){const t=m.elevation,i=t?t.getAtTileOffsetFunc(C,m.center.lat,m.worldSize,l.getProjection()):null,n=ee(N,r.tileID.canonical,y,g,m,l.getProjection(),V);se(l,N,e,o,n,q,y,u,i,C)}const Z=_||o&&T||W,H=e.translatePosMatrix(N,r,s,a),X=Z?un:$,Q=e.translatePosMatrix(q,r,s,a,!0),Y=l.getProjection().createInversionMatrix(m,C.canonical),K=[];e.terrainRenderModeElevated()&&y&&K.push("PITCH_WITH_MAP_TERRAIN"),j&&K.push("PROJECTION_GLOBE_VIEW"),Z&&K.push("PROJECTED_POS_ON_VIEWPORT");const J=d&&0!==n.paint.get(o?"text-halo-width":"icon-halo-width").constantOr(1);let tt;tt=d?l.iconsInText?rn(f.kind,I,v,y,e,H,X,Q,M,R,C,F,E,Y,B,l.getProjection()):nn(f.kind,I,v,y,e,H,X,Q,o,M,!0,C,F,E,Y,B,l.getProjection()):en(f.kind,I,v,y,e,H,X,Q,o,M,C,F,E,Y,B,l.getProjection());const et={program:e.useProgram(fn(d,o,l),h,K),buffers:c,uniformValues:tt,atlasTexture:P,atlasTextureIcon:z,atlasInterpolation:D,atlasInterpolationIcon:L,isSDF:d,hasHalo:J,tile:r,labelPlaneMatrixInv:U};if(b&&l.canOverlap){x=!0;const e=c.segments.get();for(const i of e)k.push({segments:new t.SegmentVector([i]),sortKey:i.sortKey,state:et})}else k.push({segments:c.segments,sortKey:0,state:et})}x&&k.sort((t,e)=>t.sortKey-e.sortKey);for(const t of k){const i=t.state;if(e.terrain&&e.terrain.setupElevationDraw(i.tile,i.program,{useDepthForOcclusion:!S,labelPlaneMatrixInv:i.labelPlaneMatrixInv}),f.activeTexture.set(p.TEXTURE0),i.atlasTexture.bind(i.atlasInterpolation,p.CLAMP_TO_EDGE),i.atlasTextureIcon&&(f.activeTexture.set(p.TEXTURE1),i.atlasTextureIcon&&i.atlasTextureIcon.bind(i.atlasInterpolationIcon,p.CLAMP_TO_EDGE)),i.isSDF){const r=i.uniformValues;i.hasHalo&&(r.u_is_halo=1,mn(i.buffers,t.segments,n,e,i.program,w,h,d,r)),r.u_is_halo=0}mn(i.buffers,t.segments,n,e,i.program,w,h,d,i.uniformValues)}}function mn(e,i,n,r,o,s,a,l,c){const u=r.context,h=[e.dynamicLayoutVertexBuffer,e.opacityVertexBuffer,e.globeExtVertexBuffer];o.draw(u,u.gl.TRIANGLES,s,a,l,t.CullFaceMode.disabled,c,n.id,e.layoutVertexBuffer,e.indexBuffer,i,n.paint,r.transform.zoom,e.programConfigurations.get(n.id),h)}function gn(e,i,n,r,o,s,a){const l=e.context.gl,c=n.paint.get("fill-pattern"),u=c&&c.constantOr(1);let h,d,f,p,m;a?(d=u&&!n.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",h=l.LINES):(d=u?"fillPattern":"fill",h=l.TRIANGLES);for(const g of r){const r=i.getTile(g);if(u&&!r.patternsLoaded())continue;const y=r.getBucket(n);if(!y)continue;e.prepareDrawTile();const _=y.programConfigurations.get(n.id),v=e.useProgram(d,_);u&&(e.context.activeTexture.set(l.TEXTURE0),r.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),_.updatePaintBuffers());const b=c.constantOr(null);if(b&&r.imageAtlas){const t=r.imageAtlas.patternPositions[b.toString()];t&&_.setConstantPatternPositions(t)}const x=e.translatePosMatrix(g.projMatrix,r,n.paint.get("fill-translate"),n.paint.get("fill-translate-anchor"));if(a){p=y.indexBuffer2,m=y.segments2;const t=e.terrain&&e.terrain.renderingToTexture?e.terrain.drapeBufferSize:[l.drawingBufferWidth,l.drawingBufferHeight];f="fillOutlinePattern"===d&&u?Fi(x,e,r,t):Bi(x,t)}else p=y.indexBuffer,m=y.segments,f=u?ji(x,e,r):zi(x);e.prepareDrawProgram(e.context,v,g.toUnwrapped()),v.draw(e.context,h,o,e.stencilModeForClipping(g),s,t.CullFaceMode.disabled,f,n.id,y.layoutVertexBuffer,p,m,n.paint,e.transform.zoom,_)}}function yn(e,i,n,r,o,s,a){const l=e.context,c=l.gl,u=e.transform,h=n.paint.get("fill-extrusion-pattern"),d=h.constantOr(1),f=n.paint.get("fill-extrusion-opacity"),p=[n.paint.get("fill-extrusion-ambient-occlusion-intensity"),n.paint.get("fill-extrusion-ambient-occlusion-radius")],m=n.layout.get("fill-extrusion-edge-radius"),g=m>0&&!n.paint.get("fill-extrusion-rounded-roof"),y=g?0:m,_="globe"===u.projection.name?t.fillExtrusionHeightLift():0,v="globe"===u.projection.name,b=v?t.globeToMercatorTransition(u.zoom):0,x=[t.mercatorXfromLng(u.center.lng),t.mercatorYfromLat(u.center.lat)],w=[];v&&w.push("PROJECTION_GLOBE_VIEW"),p[0]>0&&w.push("FAUX_AO"),g&&w.push("ZERO_ROOF_RADIUS");for(const E of r){const r=i.getTile(E),m=r.getBucket(n);if(!m||m.projection.name!==u.projection.name)continue;const g=m.programConfigurations.get(n.id),T=e.useProgram(d?"fillExtrusionPattern":"fillExtrusion",g,w);if(e.terrain){const t=e.terrain;if(e.style.terrainSetForDrapingOnly())t.setupElevationDraw(r,T,{useMeterToDem:!0});else{if(!m.enableTerrain)continue;if(t.setupElevationDraw(r,T,{useMeterToDem:!0}),_n(l,i,E,m,n,t),!m.centroidVertexBuffer){const t=T.attributes.a_centroid_pos;void 0!==t&&c.vertexAttrib2f(t,0,0)}}}d&&(e.context.activeTexture.set(c.TEXTURE0),r.imageAtlasTexture.bind(c.LINEAR,c.CLAMP_TO_EDGE),g.updatePaintBuffers());const S=h.constantOr(null);if(S&&r.imageAtlas){const t=r.imageAtlas.patternPositions[S.toString()];t&&g.setConstantPatternPositions(t)}const k=e.translatePosMatrix(E.projMatrix,r,n.paint.get("fill-extrusion-translate"),n.paint.get("fill-extrusion-translate-anchor")),O=u.projection.createInversionMatrix(u,E.canonical),A=n.paint.get("fill-extrusion-vertical-gradient"),C=d?Ri(k,e,A,f,p,y,E,r,_,b,x,O):Li(k,e,A,f,p,y,E,_,b,x,O);e.prepareDrawProgram(l,T,E.toUnwrapped());const I=[];e.terrain&&I.push(m.centroidVertexBuffer),v&&I.push(m.layoutVertexExtBuffer),T.draw(l,l.gl.TRIANGLES,o,s,a,t.CullFaceMode.backCCW,C,n.id,m.layoutVertexBuffer,m.indexBuffer,m.segments,n.paint,e.transform.zoom,g,I)}}function _n(e,i,n,r,o,s){const a=[e=>{let i=e.canonical.x-1,n=e.wrap;return i<0&&(i=(1<<e.canonical.z)-1,n--),new t.OverscaledTileID(e.overscaledZ,n,e.canonical.z,i,e.canonical.y)},e=>{let i=e.canonical.x+1,n=e.wrap;return i===1<<e.canonical.z&&(i=0,n++),new t.OverscaledTileID(e.overscaledZ,n,e.canonical.z,i,e.canonical.y)},e=>new t.OverscaledTileID(e.overscaledZ,e.wrap,e.canonical.z,e.canonical.x,(0===e.canonical.y?1<<e.canonical.z:e.canonical.y)-1),e=>new t.OverscaledTileID(e.overscaledZ,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y===(1<<e.canonical.z)-1?0:e.canonical.y+1)],l=t=>{const e=i.getSource().minzoom,n=t=>{const e=i.getTileByID(t);if(e&&e.hasData())return e.getBucket(o)},r=[0,-1,1];for(const i of r){if(t.overscaledZ+i<e)continue;const r=n(t.calculateScaledKey(t.overscaledZ+i));if(r)return r}},c=[0,0,0],u=(e,i)=>(c[0]=Math.min(e.min.y,i.min.y),c[1]=Math.max(e.max.y,i.max.y),c[2]=t.EXTENT-i.min.x>e.max.x?i.min.x-t.EXTENT:e.max.x,c),h=(e,i)=>(c[0]=Math.min(e.min.x,i.min.x),c[1]=Math.max(e.max.x,i.max.x),c[2]=t.EXTENT-i.min.y>e.max.y?i.min.y-t.EXTENT:e.max.y,c),d=[(t,e)=>u(t,e),(t,e)=>u(e,t),(t,e)=>h(t,e),(t,e)=>h(e,t)],f=new t.Point(0,0);let p,m,g;const y=(e,i,r,o,a)=>{const l=[[o?r:e,o?e:r,0],[o?r:i,o?i:r,0]],c=a<0?t.EXTENT+a:a,u=[o?c:(e+i)/2,o?(e+i)/2:c,0];return 0===r&&a<0||0!==r&&a>0?s.getForTilePoints(g,[u],!0,m):l.push(u),s.getForTilePoints(n,l,!0,p),Math.max(l[0][2],l[1][2],u[2])/s.exaggeration()};for(let _=0;_<4;_++){const e=(_<2?1:5)-_,i=r.borders[_];if(0===i.length)continue;const o=g=a[_](n),c=l(o);if(!(c&&c instanceof t.FillExtrusionBucket&&c.enableTerrain))continue;if(r.borderDoneWithNeighborZ[_]===c.canonical.z&&c.borderDoneWithNeighborZ[e]===r.canonical.z)continue;if(m=s.findDEMTileFor(o),!m||!m.dem)continue;if(!p){const t=s.findDEMTileFor(n);if(!t||!t.dem)return;p=t}const u=c.borders[e];let h=0;const v=c.borderDoneWithNeighborZ[e]!==r.canonical.z;if(r.canonical.z===c.canonical.z){for(let n=0;n<i.length;n++){const o=r.featuresOnBorder[i[n]],s=o.borders[_];let a;for(;h<u.length&&(a=c.featuresOnBorder[u[h]],!(a.borders[e][1]>s[0]+3));)v&&c.encodeCentroid(void 0,a,!1),h++;if(a&&h<u.length){const i=h;let n=0;for(;!(a.borders[e][0]>s[1]-3)&&(n++,++h!==u.length);)a=c.featuresOnBorder[u[h]];if(a=c.featuresOnBorder[u[i]],o.intersectsCount()>1||a.intersectsCount()>1||1!==n){1!==n&&(h=i),r.encodeCentroid(void 0,o,!1),v&&c.encodeCentroid(void 0,a,!1);continue}const l=d[_](o,a),p=_%2?t.EXTENT-1:0;f.x=y(l[0],Math.min(t.EXTENT-1,l[1]),p,_<2,l[2]),f.y=0,r.encodeCentroid(f,o,!1),v&&c.encodeCentroid(f,a,!1)}else r.encodeCentroid(void 0,o,!1)}r.borderDoneWithNeighborZ[_]=c.canonical.z,r.needsCentroidUpdate=!0,v&&(c.borderDoneWithNeighborZ[e]=r.canonical.z,c.needsCentroidUpdate=!0)}else{for(const t of i)r.encodeCentroid(void 0,r.featuresOnBorder[t],!1);if(v){for(const t of u)c.encodeCentroid(void 0,c.featuresOnBorder[t],!1);c.borderDoneWithNeighborZ[e]=r.canonical.z,c.needsCentroidUpdate=!0}r.borderDoneWithNeighborZ[_]=c.canonical.z,r.needsCentroidUpdate=!0}}(r.needsCentroidUpdate||!r.centroidVertexBuffer&&0!==r.centroidVertexArray.length)&&r.uploadCentroid(e)}const vn=new t.Color(1,0,0,1),bn=new t.Color(0,1,0,1),xn=new t.Color(0,0,1,1),wn=new t.Color(1,0,1,1),En=new t.Color(0,1,1,1);function Tn(e,i,n){const r=e.context,o=e.transform,s=r.gl,a="globe"===o.projection.name,l=a?["PROJECTION_GLOBE_VIEW"]:null;let c=n.projMatrix;if(a&&t.globeToMercatorTransition(o.zoom)>0){const e=t.transitionTileAABBinECEF(n.canonical,o),i=t.globeDenormalizeECEF(e);c=t.multiply(new Float32Array(16),o.globeMatrix,i),t.multiply(c,o.projMatrix,c)}const u=e.useProgram("debug",null,l),h=i.getTileByID(n.key);e.terrain&&e.terrain.setupElevationDraw(h,u);const d=t.DepthMode.disabled,f=t.StencilMode.disabled,p=e.colorModeForRenderPass(),m="$debug";r.activeTexture.set(s.TEXTURE0),e.emptyTexture.bind(s.LINEAR,s.CLAMP_TO_EDGE),a?h._makeGlobeTileDebugBuffers(e.context,o):h._makeDebugTileBoundsBuffers(e.context,o.projection);const g=h._tileDebugBuffer||e.debugBuffer,y=h._tileDebugIndexBuffer||e.debugIndexBuffer,_=h._tileDebugSegments||e.debugSegments;u.draw(r,s.LINE_STRIP,d,f,p,t.CullFaceMode.disabled,qi(c,t.Color.red),m,g,y,_,null,null,null,[h._globeTileDebugBorderBuffer]);const v=h.latestRawTileData,b=Math.floor((v&&v.byteLength||0)/1024),x=i.getTile(n).tileSize,w=512/Math.min(x,512)*(n.overscaledZ/o.zoom)*.5;let E=n.canonical.toString();n.overscaledZ!==n.canonical.z&&(E+=" => "+n.overscaledZ),E+=` ${b}kb`,function(t,e){t.initDebugOverlayCanvas();const i=t.debugOverlayCanvas,n=t.context.gl,r=t.debugOverlayCanvas.getContext("2d");r.clearRect(0,0,i.width,i.height),r.shadowColor="white",r.shadowBlur=2,r.lineWidth=1.5,r.strokeStyle="white",r.textBaseline="top",r.font="bold 36px Open Sans, sans-serif",r.fillText(e,5,5),r.strokeText(e,5,5),t.debugOverlayTexture.update(i),t.debugOverlayTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)}(e,E);const T=h._tileDebugTextBuffer||e.debugBuffer,S=h._tileDebugTextIndexBuffer||e.quadTriangleIndexBuffer,k=h._tileDebugTextSegments||e.debugSegments;u.draw(r,s.TRIANGLES,d,f,t.ColorMode.alphaBlended,t.CullFaceMode.disabled,qi(c,t.Color.transparent,w),m,T,S,k,null,null,null,[h._globeTileDebugTextBuffer])}function Sn(t,e,i,n){On(t,0,e+i/2,t.transform.width,i,n)}function kn(t,e,i,n){On(t,e-i/2,0,i,t.transform.height,n)}function On(e,i,n,r,o,s){const a=e.context,l=a.gl;l.enable(l.SCISSOR_TEST),l.scissor(i*t.exported.devicePixelRatio,n*t.exported.devicePixelRatio,r*t.exported.devicePixelRatio,o*t.exported.devicePixelRatio),a.clear({color:s}),l.disable(l.SCISSOR_TEST)}const An=t.createLayout([{name:"a_pos_3f",components:3,type:"Float32"}]),{members:Cn}=An;function In(t,e,i,n){t.emplaceBack(e,i,n)}class Mn{constructor(e){this.vertexArray=new t.StructArrayLayout3f12,this.indices=new t.StructArrayLayout3ui6,In(this.vertexArray,-1,-1,1),In(this.vertexArray,1,-1,1),In(this.vertexArray,-1,1,1),In(this.vertexArray,1,1,1),In(this.vertexArray,-1,-1,-1),In(this.vertexArray,1,-1,-1),In(this.vertexArray,-1,1,-1),In(this.vertexArray,1,1,-1),this.indices.emplaceBack(5,1,3),this.indices.emplaceBack(3,7,5),this.indices.emplaceBack(6,2,0),this.indices.emplaceBack(0,4,6),this.indices.emplaceBack(2,6,7),this.indices.emplaceBack(7,3,2),this.indices.emplaceBack(5,4,0),this.indices.emplaceBack(0,1,5),this.indices.emplaceBack(0,2,3),this.indices.emplaceBack(3,1,0),this.indices.emplaceBack(7,6,4),this.indices.emplaceBack(4,5,7),this.vertexBuffer=e.createVertexBuffer(this.vertexArray,Cn),this.indexBuffer=e.createIndexBuffer(this.indices),this.segment=t.SegmentVector.simpleSegment(0,0,36,12)}}function Pn(e,i,n,r,o,s){const a=e.gl,l=i.paint.get("sky-atmosphere-color"),c=i.paint.get("sky-atmosphere-halo-color"),u=i.paint.get("sky-atmosphere-sun-intensity"),h=((t,e,i,n,r)=>({u_matrix_3f:t,u_sun_direction:e,u_sun_intensity:i,u_color_tint_r:[n.r,n.g,n.b,n.a],u_color_tint_m:[r.r,r.g,r.b,r.a],u_luminance:5e-5}))(t.fromMat4(t.create$1(),r),o,u,l,c);a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_CUBE_MAP_POSITIVE_X+s,i.skyboxTexture,0),n.draw(e,a.TRIANGLES,t.DepthMode.disabled,t.StencilMode.disabled,t.ColorMode.unblended,t.CullFaceMode.frontCW,h,"skyboxCapture",i.skyboxGeometry.vertexBuffer,i.skyboxGeometry.indexBuffer,i.skyboxGeometry.segment)}const Dn=t.createLayout([{type:"Float32",name:"a_pos",components:3},{type:"Float32",name:"a_uv",components:2}]);class Ln{constructor(e){const i=new t.StructArrayLayout5f20;i.emplaceBack(-1,1,1,0,0),i.emplaceBack(1,1,1,1,0),i.emplaceBack(1,-1,1,1,1),i.emplaceBack(-1,-1,1,0,1);const n=new t.StructArrayLayout3ui6;n.emplaceBack(0,1,2),n.emplaceBack(2,3,0),this.vertexBuffer=e.createVertexBuffer(i,Dn.members),this.indexBuffer=e.createIndexBuffer(n),this.segments=t.SegmentVector.simpleSegment(0,0,4,2)}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy()}}const Rn={symbol:function(e,i,n,r,o){if("translucent"!==e.renderPass)return;const s=t.StencilMode.disabled,a=e.colorModeForRenderPass();n.layout.get("text-variable-anchor")&&function(e,i,n,r,o,s,a){const l=i.transform,c="map"===o,u="map"===s;for(const h of e){const e=r.getTile(h),i=e.getBucket(n);if(!i||!i.text||!i.text.segments.get().length)continue;const o=t.evaluateSizeForZoom(i.textSizeData,l.zoom),s=ve(h,i.getProjection(),l),d=l.calculatePixelsToTileUnitsMatrix(e),f=te(s,e.tileID.canonical,u,c,l,i.getProjection(),d),p="none"!==n.layout.get("icon-text-fit")&&i.hasIconData();if(o){const n=Math.pow(2,l.zoom-e.tileID.overscaledZ);dn(i,c,u,a,t.symbolSize,l,f,h,n,o,p)}}}(r,e,n,i,n.layout.get("text-rotation-alignment"),n.layout.get("text-pitch-alignment"),o),0!==n.paint.get("icon-opacity").constantOr(1)&&pn(e,i,n,r,!1,n.paint.get("icon-translate"),n.paint.get("icon-translate-anchor"),n.layout.get("icon-rotation-alignment"),n.layout.get("icon-pitch-alignment"),n.layout.get("icon-keep-upright"),s,a),0!==n.paint.get("text-opacity").constantOr(1)&&pn(e,i,n,r,!0,n.paint.get("text-translate"),n.paint.get("text-translate-anchor"),n.layout.get("text-rotation-alignment"),n.layout.get("text-pitch-alignment"),n.layout.get("text-keep-upright"),s,a),i.map.showCollisionBoxes&&(cn(e,i,n,r,n.paint.get("text-translate"),n.paint.get("text-translate-anchor"),!0),cn(e,i,n,r,n.paint.get("icon-translate"),n.paint.get("icon-translate-anchor"),!1))},circle:function(e,i,n,r){if("translucent"!==e.renderPass)return;const o=n.paint.get("circle-opacity"),s=n.paint.get("circle-stroke-width"),a=n.paint.get("circle-stroke-opacity"),l=void 0!==n.layout.get("
39circle-sort-key").constantOr(1);if(0===o.constantOr(1)&&(0===s.constantOr(1)||0===a.constantOr(1)))return;const c=e.context,u=c.gl,h=e.transform,d=e.depthModeForSublayer(0,t.DepthMode.ReadOnly),f=t.StencilMode.disabled,p=e.colorModeForRenderPass(),m="globe"===h.projection.name,g=[t.mercatorXfromLng(h.center.lng),t.mercatorYfromLat(h.center.lat)],y=[];for(let v=0;v<r.length;v++){const o=r[v],s=i.getTile(o),a=s.getBucket(n);if(!a||a.projection.name!==h.projection.name)continue;const c=a.programConfigurations.get(n.id),u=$i(n);m&&u.push("PROJECTION_GLOBE_VIEW");const d=e.useProgram("circle",c,u),f=a.layoutVertexBuffer,p=a.globeExtVertexBuffer,_=a.indexBuffer,b=h.projection.createInversionMatrix(h,o.canonical),x={programConfiguration:c,program:d,layoutVertexBuffer:f,globeExtVertexBuffer:p,indexBuffer:_,uniformValues:Vi(e,o,s,b,g,n),tile:s};if(l){const e=a.segments.get();for(const i of e)y.push({segments:new t.SegmentVector([i]),sortKey:i.sortKey,state:x})}else y.push({segments:a.segments,sortKey:0,state:x})}l&&y.sort((t,e)=>t.sortKey-e.sortKey);const _={useDepthForOcclusion:!m};for(const v of y){const{programConfiguration:i,program:r,layoutVertexBuffer:o,globeExtVertexBuffer:s,indexBuffer:a,uniformValues:l,tile:m}=v.state,g=v.segments;e.terrain&&e.terrain.setupElevationDraw(m,r,_),e.prepareDrawProgram(c,r,m.tileID.toUnwrapped()),r.draw(c,u.TRIANGLES,d,f,p,t.CullFaceMode.disabled,l,n.id,o,a,g,n.paint,h.zoom,i,[s])}},heatmap:function(e,i,n,r){if(0!==n.paint.get("heatmap-opacity"))if("offscreen"===e.renderPass){const o=e.context,s=o.gl,a=t.StencilMode.disabled,l=new t.ColorMode([s.ONE,s.ONE],t.Color.transparent,[!0,!0,!0,!0]);!function(t,e,i,n){const r=t.gl,o=e.width*n,s=e.height*n;t.activeTexture.set(r.TEXTURE1),t.viewport.set([0,0,o,s]);let a=i.heatmapFbo;if(!a||a&&(a.width!==o||a.height!==s)){a&&a.destroy();const e=r.createTexture();r.bindTexture(r.TEXTURE_2D,e),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.LINEAR),a=i.heatmapFbo=t.createFramebuffer(o,s,!1),function(t,e,i,n,r,o){const s=t.gl;s.texImage2D(s.TEXTURE_2D,0,t.isWebGL2&&t.extRenderToTextureHalfFloat?s.RGBA16F:s.RGBA,r,o,0,s.RGBA,t.extRenderToTextureHalfFloat?t.isWebGL2?s.HALF_FLOAT:t.extTextureHalfFloat.HALF_FLOAT_OES:s.UNSIGNED_BYTE,null),n.colorAttachment.set(i)}(t,0,e,a,o,s)}else r.bindTexture(r.TEXTURE_2D,a.colorAttachment.get()),t.bindFramebuffer.set(a.framebuffer)}(o,e,n,"globe"===e.transform.projection.name?.5:.25),o.clear({color:t.Color.transparent});const c=e.transform,u="globe"===c.projection.name,h=u?["PROJECTION_GLOBE_VIEW"]:null,d=u?t.CullFaceMode.frontCCW:t.CullFaceMode.disabled,f=[t.mercatorXfromLng(c.center.lng),t.mercatorYfromLat(c.center.lat)];for(let p=0;p<r.length;p++){const m=r[p];if(i.hasRenderableParent(m))continue;const g=i.getTile(m),y=g.getBucket(n);if(!y||y.projection.name!==c.projection.name)continue;const _=y.programConfigurations.get(n.id),v=e.useProgram("heatmap",_,h),{zoom:b}=e.transform;e.terrain&&e.terrain.setupElevationDraw(g,v),e.prepareDrawProgram(o,v,m.toUnwrapped());const x=c.projection.createInversionMatrix(c,m.canonical);v.draw(o,s.TRIANGLES,t.DepthMode.disabled,a,l,d,Wi(e,m,g,x,f,b,n.paint.get("heatmap-intensity")),n.id,y.layoutVertexBuffer,y.indexBuffer,y.segments,n.paint,e.transform.zoom,_,u?[y.globeExtVertexBuffer]:null)}o.viewport.set([0,0,e.width,e.height])}else"translucent"===e.renderPass&&(e.context.setColorMode(e.colorModeForRenderPass()),function(e,i){const n=e.context,r=n.gl,o=i.heatmapFbo;if(!o)return;n.activeTexture.set(r.TEXTURE0),r.bindTexture(r.TEXTURE_2D,o.colorAttachment.get()),n.activeTexture.set(r.TEXTURE1);let s=i.colorRampTexture;s||(s=i.colorRampTexture=new t.Texture(n,i.colorRamp,r.RGBA)),s.bind(r.LINEAR,r.CLAMP_TO_EDGE),e.useProgram("heatmapTexture").draw(n,r.TRIANGLES,t.DepthMode.disabled,t.StencilMode.disabled,e.colorModeForRenderPass(),t.CullFaceMode.disabled,((t,e,i,n)=>({u_image:0,u_color_ramp:1,u_opacity:e.paint.get("heatmap-opacity")}))(0,i),i.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,i.paint,e.transform.zoom)}(e,n))},line:function(e,i,n,r){if("translucent"!==e.renderPass)return;const o=n.paint.get("line-opacity"),s=n.paint.get("line-width");if(0===o.constantOr(1)||0===s.constantOr(1))return;const a=e.depthModeForSublayer(0,t.DepthMode.ReadOnly),l=e.colorModeForRenderPass(),c=e.terrain&&e.terrain.renderingToTexture?1:t.exported.devicePixelRatio,u=n.paint.get("line-dasharray"),h=u.constantOr(1),d=n.layout.get("line-cap"),f=n.paint.get("line-pattern"),p=f.constantOr(1),m=n.paint.get("line-gradient"),g=p?"linePattern":"line",y=e.context,_=y.gl,v=(t=>{const e=[];Yi(t)&&e.push("RENDER_LINE_DASH"),t.paint.get("line-gradient")&&e.push("RENDER_LINE_GRADIENT");const i=t.paint.get("line-trim-offset");0===i[0]&&0===i[1]||e.push("RENDER_LINE_TRIM_OFFSET");const n=t.paint.get("line-pattern").constantOr(1),r=1!==t.paint.get("line-opacity").constantOr(1);return!n&&r&&e.push("RENDER_LINE_ALPHA_DISCARD"),e})(n);let b=v.includes("RENDER_LINE_ALPHA_DISCARD");e.terrain&&e.terrain.clipOrMaskOverlapStencilType()&&(b=!1);for(const x of r){const r=i.getTile(x);if(p&&!r.patternsLoaded())continue;const o=r.getBucket(n);if(!o)continue;e.prepareDrawTile();const s=o.programConfigurations.get(n.id),w=e.useProgram(g,s,v),E=f.constantOr(null);if(E&&r.imageAtlas){const t=r.imageAtlas.patternPositions[E.toString()];t&&s.setConstantPatternPositions(t)}
vendor: 51,633 bytes, line 39
39const T=u.constantOr(null),S=d.constantOr(null);if(!p&&T&&S&&r.lineAtlas){const t=r.lineAtlas.getDash(T,S);t&&s.setConstantPatternPositions(t)}let[k,O]=n.paint.get("line-trim-offset");if("round"===S||"square"===S){const t=1;k!==O&&(0===k&&(k-=t),1===O&&(O+=t))}const A=e.terrain?x.projMatrix:null,C=p?Hi(e,r,n,A,c):Zi(e,r,n,A,o.lineClipsArray.length,c,[k,O]);if(m){const r=o.gradients[n.id];let s=r.texture;if(n.gradientVersion!==r.version){let a=256;if(n.stepInterpolant){const n=i.getSource().maxzoom,r=x.canonical.z===n?Math.ceil(1<<e.transform.maxZoom-x.canonical.z):1;a=t.clamp(t.nextPowerOfTwo(o.maxLineLength/t.EXTENT*1024*r),256,y.maxTextureSize)}r.gradient=t.renderColorRamp({expression:n.gradientExpression(),evaluationKey:"lineProgress",resolution:a,image:r.gradient||void 0,clips:o.lineClipsArray}),r.texture?r.texture.update(r.gradient):r.texture=new t.Texture(y,r.gradient,_.RGBA),r.version=n.gradientVersion,s=r.texture}y.activeTexture.set(_.TEXTURE1),s.bind(n.stepInterpolant?_.NEAREST:_.LINEAR,_.CLAMP_TO_EDGE)}h&&(y.activeTexture.set(_.TEXTURE0),r.lineAtlasTexture.bind(_.LINEAR,_.REPEAT),s.updatePaintBuffers()),p&&(y.activeTexture.set(_.TEXTURE0),r.imageAtlasTexture.bind(_.LINEAR,_.CLAMP_TO_EDGE),s.updatePaintBuffers()),e.prepareDrawProgram(y,w,x.toUnwrapped());const I=i=>{w.draw(y,_.TRIANGLES,a,i,l,t.CullFaceMode.disabled,C,n.id,o.layoutVertexBuffer,o.indexBuffer,o.segments,n.paint,e.transform.zoom,s,[o.layoutVertexBuffer2])};if(b){const i=e.stencilModeForClipping(x).ref;0===i&&e.terrain&&y.clear({stencil:0});const n={func:_.EQUAL,mask:255};C.u_alpha_discard_threshold=.8,I(new t.StencilMode(n,i,255,_.KEEP,_.KEEP,_.INVERT)),C.u_alpha_discard_threshold=0,I(new t.StencilMode(n,i,255,_.KEEP,_.KEEP,_.KEEP))}else I(e.stencilModeForClipping(x))}b&&(e.resetStencilClippingMasks(),e.terrain&&y.clear({stencil:0}))},fill:function(e,i,n,r){const o=n.paint.get("fill-color"),s=n.paint.get("fill-opacity");if(0===s.constantOr(1))return;const a=e.colorModeForRenderPass(),l=n.paint.get("fill-pattern"),c=e.opaquePassEnabledForLayer()&&!l.constantOr(1)&&1===o.constantOr(t.Color.transparent).a&&1===s.constantOr(0)?"opaque":"translucent";if(e.renderPass===c){const o=e.depthModeForSublayer(1,"opaque"===e.renderPass?t.DepthMode.ReadWrite:t.DepthMode.ReadOnly);gn(e,i,n,r,o,a,!1)}if("translucent"===e.renderPass&&n.paint.get("fill-antialias")){const o=e.depthModeForSublayer(n.getPaintProperty("fill-outline-color")?2:0,t.DepthMode.ReadOnly);gn(e,i,n,r,o,a,!0)}},"fill-extrusion":function(e,i,n,r){const o=n.paint.get("fill-extrusion-opacity");if(0!==o&&"translucent"===e.renderPass){const s=new t.DepthMode(e.context.gl.LEQUAL,t.DepthMode.ReadWrite,e.depthRangeFor3D);if(1!==o||n.paint.get("fill-extrusion-pattern").constantOr(1))yn(e,i,n,r,s,t.StencilMode.disabled,t.ColorMode.disabled),yn(e,i,n,r,s,e.stencilModeFor3D(),e.colorModeForRenderPass()),e.resetStencilClippingMasks();else{const o=e.colorModeForRenderPass();yn(e,i,n,r,s,t.StencilMode.disabled,o)}}},hillshade:function(e,i,n,r){if("offscreen"!==e.renderPass&&"translucent"!==e.renderPass)return;const o=e.context,s=e.depthModeForSublayer(0,t.DepthMode.ReadOnly),a=e.colorModeForRenderPass(),l=e.terrain&&e.terrain.renderingToTexture,[c,u]="translucent"!==e.renderPass||l?[{},r]:e.stencilConfigForOverlap(r);for(const h of u){const r=i.getTile(h);if(r.needsHillshadePrepare&&"offscreen"===e.renderPass)gi(e,r,n,s,t.StencilMode.disabled,a);else if("translucent"===e.renderPass){const t=l&&e.terrain?e.terrain.stencilModeForRTTOverlap(h):c[h.overscaledZ];pi(e,h,r,n,s,t,a)}}o.viewport.set([0,0,e.width,e.height]),e.resetStencilClippingMasks()},raster:function(e,i,n,r,o,s){if("translucent"!==e.renderPass)return;if(0===n.paint.get("raster-opacity"))return;if(!r.length)return;const a=e.context,l=a.gl,c=i.getSource(),u=e.useProgram("raster"),h=e.colorModeForRenderPass(),d=e.terrain&&e.terrain.renderingToTexture,[f,p]=c instanceof At||d?[{},r]:e.stencilConfigForOverlap(r),m=p[p.length-1].overscaledZ,g=!e.options.moving;for(const y of p){const r=d?t.DepthMode.disabled:e.depthModeForSublayer(y.overscaledZ-m,1===n.paint.get("raster-opacity")?t.DepthMode.ReadWrite:t.DepthMode.ReadOnly,l.LESS),o=y.toUnwrapped(),p=i.getTile(y);if(d&&(!p||!p.hasData()))continue;const _=d?y.projMatrix:e.transform.calculateProjMatrix(o,g),v=e.terrain&&d?e.terrain.stencilModeForRTTOverlap(y):f[y.overscaledZ],b=s?0:n.paint.get("raster-fade-duration");p.registerFadeDuration(b);const x=i.findLoadedParent(y,0),w=ki(p,x,i,e.transform,b);let E,T;e.terrain&&e.terrain.prepareDrawTile();const S="nearest"===n.paint.get("raster-resampling")?l.NEAREST:l.LINEAR;a.activeTexture.set(l.TEXTURE0),p.texture.bind(S,l.CLAMP_TO_EDGE),a.activeTexture.set(l.TEXTURE1),x?(x.texture.bind(S,l.CLAMP_TO_EDGE),E=Math.pow(2,x.tileID.overscaledZ-p.tileID.overscaledZ),T=[p.tileID.canonical.x*E%1,p.tileID.canonical.y*E%1]):p.texture.bind(S,l.CLAMP_TO_EDGE),p.texture.useMipmap&&a.extTextureFilterAnisotropic&&e.transform.pitch>20&&l.texParameterf(l.TEXTURE_2D,a.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,a.extTextureFilterAnisotropicMax);const k=Ki(_,T||[0,0],E||1,w,n,c instanceof At?c.perspectiveTransform:[0,0]);if(e.prepareDrawProgram(a,u,o),c instanceof At)c.boundsBuffer&&c.boundsSegments&&u.draw(a,l.TRIANGLES,r,t.StencilMode.disabled,h,t.CullFaceMode.disabled,k,n.id,c.boundsBuffer,e.quadTriangleIndexBuffer,c.boundsSegments);else{const{tileBoundsBuffer:i,tileBoundsIndexBuffer:o,tileBoundsSegments:s}=e.getTileBoundsBuffers(p);u.draw(a,l.TRIANGLES,r,v,h,t.CullFaceMode.disabled,k,n.id,i,o,s)}}e.resetStencilClippingMasks()},background:function(e,i,n,r){const o=n.paint.get("background-color"),s=n.paint.get("background-opacity");if(0===s)return;const a=e.context,l=a.gl,c=e.transform,u=c.tileSize,h=n.paint.get("background-pattern");if(e.isPatternMissing(h))return;const d=!h&&1===o.a&&1===s&&e.opaquePassEnabledForLayer()?"opaque":"translucent";if(e.renderPass!==d)return;const f=t.StencilMode.disabled,p=e.depthModeForSublayer(0,"opaque"===d?t.DepthMode.ReadWrite:t.DepthMode.ReadOnly),m=e.colorModeForRenderPass(),g=e.useProgram(h?"backgroundPattern":"background");let y,_=r;_||(y=e.getBackgroundTiles(),_=Object.values(y).map(t=>t.tileID)),h&&(a.activeTexture.set(l.TEXTURE0),e.imageManager.bind(e.context));for(const v of _){const d=v.toUnwrapped(),_=r?v.projMatrix:e.transform.calculateProjMatrix(d);e.prepareDrawTile();const b=i?i.getTile(v):y?y[v.key]:new t.Tile(v,u,c.zoom,e),x=h?sn(_,s,e,h,{tileID:v,tileSize:u}):on(_,s,o);e.prepareDrawProgram(a,g,d);const{tileBoundsBuffer:w,tileBoundsIndexBuffer:E,tileBoundsSegments:T}=e.getTileBoundsBuffers(b);g.draw(a,l.TRIANGLES,p,f,m,t.CullFaceMode.disabled,x,n.id,w,E,T)}},sky:function(e,i,n){const r=e.transform,o="mercator"===r.projection.name||"globe"===r.projection.name?1:t.smoothstep(7,8,r.zoom),s=n.paint.get("sky-opacity")*o;if(0===s)return;const a=e.context,l=n.paint.get("sky-type"),c=new t.DepthMode(a.gl.LEQUAL,t.DepthMode.ReadOnly,[0,1]),u=e.frameCounter/1e3%1;"atmosphere"===l?"offscreen"===e.renderPass?n.needsSkyboxCapture(e)&&(function(e,i,n,r){const o=e.context,s=o.gl;let a=i.skyboxFbo;if(!a){a=i.skyboxFbo=o.createFramebuffer(32,32,!1),i.skyboxGeometry=new Mn(o),i.skyboxTexture=o.gl.createTexture(),s.bindTexture(s.TEXTURE_CUBE_MAP,i.skyboxTexture),s.texParameteri(s.TEXTURE_CUBE_MAP,s.TEXTURE_WRAP_S,s.CLAMP_TO_EDGE),s.texParameteri(s.TEXTURE_CUBE_MAP,s.TEXTURE_WRAP_T,s.CLAMP_TO_EDGE),s.texParameteri(s.TEXTURE_CUBE_MAP,s.TEXTURE_MIN_FILTER,s.LINEAR),s.texParameteri(s.TEXTURE_CUBE_MAP,s.TEXTURE_MAG_FILTER,s.LINEAR);for(let t=0;t<6;++t)s.texImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,s.RGBA,32,32,0,s.RGBA,s.UNSIGNED_BYTE,null)}o.bindFramebuffer.set(a.framebuffer),o.viewport.set([0,0,32,32]);const l=i.getCenter(e,!0),c=e.useProgram("skyboxCapture"),u=new Float64Array(16);t.identity(u),t.rotateY(u,u,.5*-Math.PI),Pn(o,i,c,u,l,0),t.identity(u),t.rotateY(u,u,.5*Math.PI),Pn(o,i,c,u,l,1),t.identity(u),t.rotateX(u,u,.5*-Math.PI),Pn(o,i,c,u,l,2),t.identity(u),t.rotateX(u,u,.5*Math.PI),Pn(o,i,c,u,l,3),t.identity(u),Pn(o,i,c,u,l,4),t.identity(u),t.rotateY(u,u,Math.PI),Pn(o,i,c,u,l,5),o.viewport.set([0,0,e.width,e.height])}(e,n),n.markSkyboxValid(e)):"sky"===e.renderPass&&function(e,i,n,r,o){const s=e.context,a=s.gl,l=e.transform,c=e.useProgram("skybox");s.activeTexture.set(a.TEXTURE0),a.bindTexture(a.TEXTURE_CUBE_MAP,i.skyboxTexture);const u=((t,e,i,n,r)=>({u_matrix:t,u_sun_direction:e,u_cubemap:0,u_opacity:n,u_temporal_offset:r}))(l.skyboxMatrix,i.getCenter(e,!1),0,r,o);e.prepareDrawProgram(s,c),c.draw(s,a.TRIANGLES,n,t.StencilMode.disabled,e.colorModeForRenderPass(),t.CullFaceMode.backCW,u,"skybox",i.skyboxGeometry.vertexBuffer,i.skyboxGeometry.indexBuffer,i.skyboxGeometry.segment)}(e,n,c,s,u):"gradient"===l&&"sky"===e.renderPass&&function(e,i,n,r,o){const s=e.context,a=s.gl,l=e.transform,c=e.useProgram("skyboxGradient");i.skyboxGeometry||(i.skyboxGeometry=new Mn(s)),s.activeTexture.set(a.TEXTURE0);let u=i.colorRampTexture;u||(u=i.colorRampTexture=new t.Texture(s,i.colorRamp,a.RGBA)),u.bind(a.LINEAR,a.CLAMP_TO_EDGE);const h=((e,i,n,r,o)=>({u_matrix:e,u_color_ramp:0,u_center_direction:i,u_radius:t.degToRad(n),u_opacity:r,u_temporal_offset:o}))(l.skyboxMatrix,i.getCenter(e,!1),i.paint.get("sky-gradient-radius"),r,o);e.prepareDrawProgram(s,c),c.draw(s,a.TRIANGLES,n,t.StencilMode.disabled,e.colorModeForRenderPass(),t.CullFaceMode.backCW,h,"skyboxGradient",i.skyboxGeometry.vertexBuffer,i.skyboxGeometry.indexBuffer,i.skyboxGeometry.segment)}(e,n,c,s,u)},debug:function(t,e,i){for(let n=0;n<i.length;n++)Tn(t,e,i[n])},custom:function(e,i,n,r){const o=e.context,s=n.implementation;if(!e.transform.projection.unsupportedLayers||!e.transform.projection.unsupportedLayers.includes("custom")||e.terrain&&(e.terrain.renderingToTexture||"offscreen"===e.renderPass)&&n.isLayerDraped()){if("offscreen"===e.renderPass){const i=s.prerender;if(i){if(e.setCustomLayerDefaults(),o.setColorMode(e.colorModeForRenderPass()),"globe"===e.transform.projection.name){const n=e.transform.pointMerc;i.call(s,o.gl,e.transform.customLayerMatrix(),e.transform.getProjection(),e.transform.globeToMercatorMatrix(),t.globeToMercatorTransition(e.transform.zoom),[n.x,n.y],e.transform.pixelsPerMeterRatio)}else i.call(s,o.gl,e.transform.customLayerMatrix());o.setDirty(),e.setBaseState()}}else if("translucent"===e.renderPass){if(e.terrain&&e.terrain.renderingToTexture){const i=s.renderToTile;if(i){const n=r[0].canonical,a=new t.MercatorCoordinate(n.x+r[0].wrap*(1<<n.z),n.y,n.z);o.setDepthMode(t.DepthMode.disabled),o.setStencilMode(t.StencilMode.disabled),o.setColorMode(e.colorModeForRenderPass()),e.setCustomLayerDefaults(),i.call(s,o.gl,a),o.setDirty(),e.setBaseState()}return}e.setCustomLayerDefaults(),o.setColorMode(e.colorModeForRenderPass()),o.setStencilMode(t.StencilMode.disabled);const i="3d"===s.renderingMode?new t.DepthMode(e.context.gl.LEQUAL,t.DepthMode.ReadWrite,e.depthRangeFor3D):e.depthModeForSublayer(0,t.DepthMode.ReadOnly);if(o.setDepthMode(i),"globe"===e.transform.projection.name){const i=e.transform.pointMerc;s.render(o.gl,e.transform.customLayerMatrix(),e.transform.getProjection(),e.transform.globeToMercatorMatrix(),t.globeToMercatorTransition(e.transform.zoom),[i.x,i.y],e.transform.pixelsPerMeterRatio)}else s.render(o.gl,e.transform.customLayerMatrix());o.setDirty(),e.setBaseState(),o.bindFramebuffer.set(null)}}else t.warnOnce("Custom layers are not yet supported with this projection. Use mercator or globe to enable usage of custom layers.")}};class zn{constructor(e,i,n=!1){this.context=new Tt(e,n),this.transform=i,this._tileTextures={},this.frameCopies=[],this.loadTimeStamps=[],this.setup(),this.numSublayers=t.SourceCache.maxUnderzooming+t.SourceCache.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.deferredRenderGpuTimeQueries=[],this.gpuTimers={},this.frameCounter=0,this._backgroundTiles={}}updateTerrain(t,e){const i=!!t&&!!t.terrain&&this.transform.projection.supportsTerrain;if(!(i||this._terrain&&this._terrain.enabled))return;this._terrain||(this._terrain=new Ii(this,t));const n=this._terrain;this.transform.elevation=i?n:null,n.update(t,this.transform,e)}_updateFog(t){const e=t.fog;if(!e||"globe"===this.transform.projection.name||e.getOpacity(this.transform.pitch)<1||e.properties.get("horizon-blend")<.03)return void(this.transform.fogCullDistSq=null);const[i,n]=e.getFovAdjustedRange(this.transform._fov);if(i>n)return void(this.transform.fogCullDistSq=null);const r=i+.78*(n-i);this.transform.fogCullDistSq=r*r}get terrain(){return this.transform._terrainEnabled()&&this._terrain&&this._terrain.enabled?this._terrain:null}resize(e,i){if(this.width=e*t.exported.devicePixelRatio,this.height=i*t.exported.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const t of this.style.order)this.style._layers[t].resize()}setup(){const e=this.context,i=new t.StructArrayLayout2i4;i.emplaceBack(0,0),i.emplaceBack(t.EXTENT,0),i.emplaceBack(0,t.EXTENT),i.emplaceBack(t.EXTENT,t.EXTENT),this.tileExtentBuffer=e.createVertexBuffer(i,t.posAttributes.members),this.tileExtentSegments=t.SegmentVector.simpleSegment(0,0,4,2);const n=new t.StructArrayLayout2i4;n.emplaceBack(0,0),n.emplaceBack(t.EXTENT,0),n.emplaceBack(0,t.EXTENT),n.emplaceBack(t.EXTENT,t.EXTENT),this.debugBuffer=e.createVertexBuffer(n,t.posAttributes.members),this.debugSegments=t.SegmentVector.simpleSegment(0,0,4,5);const r=new t.StructArrayLayout2i4;r.emplaceBack(-1,-1),r.emplaceBack(1,-1),r.emplaceBack(-1,1),r.emplaceBack(1,1),this.viewportBuffer=e.createVertexBuffer(r,t.posAttributes.members),this.viewportSegments=t.SegmentVector.simpleSegment(0,0,4,2);const o=new t.StructArrayLayout4i8;o.emplaceBack(0,0,0,0),o.emplaceBack(t.EXTENT,0,t.EXTENT,0),o.emplaceBack(0,t.EXTENT,0,t.EXTENT),o.emplaceBack(t.EXTENT,t.EXTENT,t.EXTENT,t.EXTENT),this.mercatorBoundsBuffer=e.createVertexBuffer(o,t.boundsAttributes.members),this.mercatorBoundsSegments=t.SegmentVector.simpleSegment(0,0,4,2);const s=new t.StructArrayLayout3ui6;s.emplaceBack(0,1,2),s.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=e.createIndexBuffer(s);const a=new t.StructArrayLayout1ui2;for(const t of[0,1,3,2,0])a.emplaceBack(t);this.debugIndexBuffer=e.createIndexBuffer(a),this.emptyTexture=new t.Texture(e,new t.RGBAImage({width:1,height:1},Uint8Array.of(0,0,0,0)),e.gl.RGBA),this.identityMat=t.create();const l=this.context.gl;this.stencilClearMode=new t.StencilMode({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO),this.loadTimeStamps.push(t.window.performance.now()),this.atmosphereBuffer=new Ln(this.context)}getMercatorTileBoundsBuffers(){return{tileBoundsBuffer:this.mercatorBoundsBuffer,tileBoundsIndexBuffer:this.quadTriangleIndexBuffer,tileBoundsSegments:this.mercatorBoundsSegments}}getTileBoundsBuffers(t){return t._makeTileBoundsBuffers(this.context,this.transform.projection),t._tileBoundsBuffer?{tileBoundsBuffer:t._tileBoundsBuffer,tileBoundsIndexBuffer:t._tileBoundsIndexBuffer,tileBoundsSegments:t._tileBoundsSegments}:this.getMercatorTileBoundsBuffers()}clearStencil(){const e=this.context,i=e.gl;this.nextStencilID=1,this.currentStencilSource=void 0,this._tileClippingMaskIDs={},this.useProgram("clippingMask").draw(e,i.TRIANGLES,t.DepthMode.disabled,this.stencilClearMode,t.ColorMode.disabled,t.CullFaceMode.disabled,Si(this.identityMat),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}resetStencilClippingMasks(){this.terrain||(this.currentStencilSource=void 0,this._tileClippingMaskIDs={})}_renderTileClippingMasks(e,i,n){if(!i||this.currentStencilSource===i.id||!e.isTileClipped()||!n||0===n.length)return;if(this._tileClippingMaskIDs&&!this.terrain){let t=!1;for(const e of n)if(void 0===this._tileClippingMaskIDs[e.key]){t=!0;break}if(!t)return}this.currentStencilSource=i.id;const r=this.context,o=r.gl;this.nextStencilID+n.length>256&&this.clearStencil(),r.setColorMode(t.ColorMode.disabled),r.setDepthMode(t.DepthMode.disabled);const s=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(const a of n){const e=i.getTile(a),n=this._tileClippingMaskIDs[a.key]=this.nextStencilID++,{tileBoundsBuffer:l,tileBoundsIndexBuffer:c,tileBoundsSegments:u}=this.getTileBoundsBuffers(e);s.draw(r,o.TRIANGLES,t.DepthMode.disabled,new t.StencilMode({func:o.ALWAYS,mask:0},n,255,o.KEEP,o.KEEP,o.REPLACE),t.ColorMode.disabled,t.CullFaceMode.disabled,Si(a.projMatrix),"$clipping",l,c,u)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();const e=this.nextStencilID++,i=this.context.gl;return new t.StencilMode({func:i.NOTEQUAL,mask:255},e,255,i.KEEP,i.KEEP,i.REPLACE)}stencilModeForClipping(e){if(this.terrain)return this.terrain.stencilModeForRTTOverlap(e);const i=this.context.gl;return new t.StencilMode({func:i.EQUAL,mask:255},this._tileClippingMaskIDs[e.key],0,i.KEEP,i.KEEP,i.REPLACE)}stencilConfigForOverlap(e){const i=this.context.gl,n=e.sort((t,e)=>e.overscaledZ-t.overscaledZ),r=n[n.length-1].overscaledZ,o=n[0].overscaledZ-r+1;if(o>1){this.currentStencilSource=void 0,this.nextStencilID+o>256&&this.clearStencil();const e={};for(let n=0;n<o;n++)e[n+r]=new t.StencilMode({func:i.GEQUAL,mask:255},n+this.nextStencilID,255,i.KEEP,i.KEEP,i.REPLACE);return this.nextStencilID+=o,[e,n]}return[{[r]:t.StencilMode.disabled},n]}colorModeForRenderPass(){const e=this.context.gl;if(this._showOverdrawInspector){const i=1/8;return new t.ColorMode([e.CONSTANT_COLOR,e.ONE],new t.Color(i,i,i,0),[!0,!0,!0,!0])}return"opaque"===this.renderPass?t.ColorMode.unblended:t.ColorMode.alphaBlended}depthModeForSublayer(e,i,n){if(!this.opaquePassEnabledForLayer())return t.DepthMode.disabled;const r=1-((1+this.currentLayer)*this.numSublayers+e)*this.depthEpsilon;return new t.DepthMode(n||this.context.gl.LEQUAL,i,[r,r])}opaquePassEnabledForLayer(){return this.currentLayer<this.opaquePassCutoff}render(e,i){this.style=e,this.options=i,this.imageManager=e.imageManager,this.glyphManager=e.glyphManager,this.symbolFadeChange=e.placement.symbolFadeChange(t.exported.now()),this.imageManager.beginFrame();const n=this.style.order,r=this.style._sourceCaches;for(const t in r){const e=r[t];e.used&&e.prepare(this.context)}const o={},s={},a={};for(const t in r){const e=r[t];o[t]=e.getVisibleCoordinates(),s[t]=o[t].slice().reverse(),a[t]=e.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(let t=0;t<n.length;t++)if(this.style._layers[n[t]].is3D()){this.opaquePassCutoff=t;break}if(this.terrain&&(this.terrain.updateTileBinding(a),this.opaquePassCutoff=0),"globe"!==this.transform.projection.name||this.globeSharedBuffers||(this.globeSharedBuffers=new t.GlobeSharedBuffers(this.context)),!t.isMapAuthenticated(this.context.gl))return;this.renderPass="offscreen";for(const t of n){const i=this.style._layers[t],n=e._getLayerSourceCache(i);if(!i.hasOffscreenPass()||i.isHidden(this.transform.zoom))continue;const r=n?s[n.id]:void 0;("custom"===i.type||i.isSky()||r&&r.length)&&this.renderLayer(this,n,i,r)}this.depthRangeFor3D=[0,1-(e.order.length+2)*this.numSublayers*this.depthEpsilon];const l=this.terrain;if(l&&(this.style.hasSymbolLayers()||this.style.hasCircleLayers())&&l.drawDepth(),this.context.bindFramebuffer.set(null),this.context.viewport.set([0,0,this.width,this.height]),this.context.clear({color:i.showOverdrawInspector?t.Color.black:t.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=i.showOverdrawInspector,this.renderPass="opaque",!this.terrain)for(this.currentLayer=n.length-1;this.currentLayer>=0;this.currentLayer--){const t=this.style._layers[n[this.currentLayer]],i=e._getLayerSourceCache(t);if(t.isSky())continue;const r=i?s[i.id]:void 0;this._renderTileClippingMasks(t,i,r),this.renderLayer(this,i,t,r)}if(this.style.fog&&this.transform.projection.supportsFog&&function(e,i){const n=e.context,r=n.gl,o=e.transform,s=new t.DepthMode(r.LEQUAL,t.DepthMode.ReadOnly,[0,1]),a=e.useProgram("globeAtmosphere",null,"globe"===o.projection.name?["PROJECTION_GLOBE_VIEW","FOG"]:["FOG"]),l=t.globeToMercatorTransition(o.zoom),c=i.properties.get("color").toArray01(),u=i.properties.get("high-color").toArray01(),h=i.properties.get("space-color").toArray01PremultipliedAlpha(),d=t.identity$1([]);t.rotateY$1(d,d,-t.degToRad(o._center.lng)),t.rotateX$1(d,d,t.degToRad(o._center.lat)),t.rotateZ$1(d,d,o.angle),t.rotateX$1(d,d,-o._pitch);const f=t.fromQuat(new Float32Array(16),d),p=t.mapValue(i.properties.get("star-intensity"),0,1,0,.25),m=5e-4,g=t.mapValue(i.properties.get("horizon-blend"),0,1,m,.25),y=t.globeUseCustomAntiAliasing(e,n,o)&&g===m?o.worldSize/(2*Math.PI*1.025)-1:o.globeRadius,_=e.frameCounter/1e3%1,v=t.length(o.globeCenterInViewSpace),b=Math.sqrt(Math.pow(v,2)-Math.pow(y,2)),x=Math.acos(b/v),w=((e,i,n,r,o,s,a,l,c,u,h,d,f,p)=>({u_frustum_tl:e,u_frustum_tr:i,u_frustum_br:n,u_frustum_bl:r,u_horizon:o,u_transition:s,u_fadeout_range:a,u_color:l,u_high_color:c,u_space_color:u,u_star_intensity:h,u_star_size:5*t.exported.devicePixelRatio,u_star_density:0,u_temporal_offset:d,u_horizon_angle:f,u_rotation_matrix:p}))(o.frustumCorners.TL,o.frustumCorners.TR,o.frustumCorners.BR,o.frustumCorners.BL,o.frustumCorners.horizon,l,g,c,u,h,p,_,x,f);e.prepareDrawProgram(n,a);const E=e.atmosphereBuffer;E&&a.draw(n,r.TRIANGLES,s,t.StencilMode.disabled,t.ColorMode.alphaBlended,t.CullFaceMode.backCW,w,"skybox",E.vertexBuffer,E.indexBuffer,E.segments)}(this,this.style.fog),this.renderPass="sky",(t.globeToMercatorTransition(this.transform.zoom)>0||"globe"!==this.transform.projection.name)&&this.transform.isHorizonVisible())for(this.currentLayer=0;this.currentLayer<n.length;this.currentLayer++){const t=this.style._layers[n[this.currentLayer]],i=e._getLayerSourceCache(t);t.isSky()&&this.renderLayer(this,i,t,i?s[i.id]:void 0)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer<n.length;){const t=this.style._layers[n[this.currentLayer]],i=e._getLayerSourceCache(t);if(t.isSky()){++this.currentLayer;continue}if(this.terrain&&this.style.isLayerDraped(t)){if(t.isHidden(this.transform.zoom)){++this.currentLayer;continue}this.currentLayer=this.terrain.renderBatch(this.currentLayer);continue}const r=i?("symbol"===t.type?a:s)[i.id]:void 0;this._renderTileClippingMasks(t,i,i?o[i.id]:void 0),this.renderLayer(this,i,t,r),++this.currentLayer}if(this.terrain&&this.terrain.postRender(),this.options.showTileBoundaries||this.options.showQueryGeometry||this.options.showTileAABBs){let i=null;t.values(this.style._layers).forEach(t=>{const n=e._getLayerSourceCache(t);n&&!t.isHidden(this.transform.zoom)&&(!i||i.getSource().maxzoom<n.getSource().maxzoom)&&(i=n)}),i&&this.options.showTileBoundaries&&Rn.debug(this,i,i.getVisibleCoordinates())}this.options.showPadding&&function(t){const e=t.transform.padding;Sn(t,t.transform.height-(e.top||0),3,vn),Sn(t,e.bottom||0,3,bn),kn(t,e.left||0,3,xn),kn(t,t.transform.width-(e.right||0),3,wn);const i=t.transform.centerPoint;!function(t,e,i,n){On(t,e-1,i-10,2,20,n),On(t,e-10,i-1,20,2,n)}(t,i.x,t.transform.height-i.y,En)}(this),this.context.setDefault(),this.frameCounter=(this.frameCounter+1)%Number.MAX_SAFE_INTEGER,this.tileLoaded&&this.options.speedIndexTiming&&(this.loadTimeStamps.push(t.window.performance.now()),this.saveCanvasCopy())}renderLayer(t,e,i,n){i.isHidden(this.transform.zoom)||("background"===i.type||"sky"===i.type||"custom"===i.type||n&&n.length)&&(this.id=i.id,this.gpuTimingStart(i),(!t.transform.projection.unsupportedLayers||!t.transform.projection.unsupportedLayers.includes(i.type)||t.terrain&&"custom"===i.type)&&Rn[i.type](t,e,i,n,this.style.placement.variableOffsets,this.options.isInitialLoad),this.gpuTimingEnd())}gpuTimingStart(t){if(!this.options.gpuTiming)return;const e=this.context.extTimerQuery;let i=this.gpuTimers[t.id];i||(i=this.gpuTimers[t.id]={calls:0,cpuTime:0,query:e.createQueryEXT()}),i.calls++,e.beginQueryEXT(e.TIME_ELAPSED_EXT,i.query)}gpuTimingDeferredRenderStart(){if(this.options.gpuTimingDeferredRender){const t=this.context.extTimerQuery,e=t.createQueryEXT();this.deferredRenderGpuTimeQueries.push(e),t.beginQueryEXT(t.TIME_ELAPSED_EXT,e)}}gpuTimingDeferredRenderEnd(){if(!this.options.gpuTimingDeferredRender)return;const t=this.context.extTimerQuery;t.endQueryEXT(t.TIME_ELAPSED_EXT)}gpuTimingEnd(){if(!this.options.gpuTiming)return;const t=this.context.extTimerQuery;t.endQueryEXT(t.TIME_ELAPSED_EXT)}collectGpuTimers(){const t=this.gpuTimers;return this.gpuTimers={},t}collectDeferredRenderGpuQueries(){const t=this.deferredRenderGpuTimeQueries;return this.deferredRenderGpuTimeQueries=[],t}queryGpuTimers(t){const e={};for(const i in t){const n=t[i],r=this.context.extTimerQuery,o=r.getQueryObjectEXT(n.query,r.QUERY_RESULT_EXT)/1e6;r.deleteQueryEXT(n.query),e[i]=o}return e}queryGpuTimeDeferredRender(t){if(!this.options.gpuTimingDeferredRender)return 0;const e=this.context.extTimerQuery;let i=0;for(const n of t)i+=e.getQueryObjectEXT(n,e.QUERY_RESULT_EXT)/1e6,e.deleteQueryEXT(n);return i}translatePosMatrix(e,i,n,r,o){if(!n[0]&&!n[1])return e;const s=o?"map"===r?this.transform.angle:0:"viewport"===r?-this.transform.angle:0;if(s){const t=Math.sin(s),e=Math.cos(s);n=[n[0]*e-n[1]*t,n[0]*t+n[1]*e]}const a=[o?n[0]:I(i,n[0],this.transform.zoom),o?n[1]:I(i,n[1],this.transform.zoom),0],l=new Float32Array(16);return t.translate(l,e,a),l}saveTileTexture(t){const e=this._tileTextures[t.size[0]];e?e.push(t):this._tileTextures[t.size[0]]=[t]}getTileTexture(t){const e=this._tileTextures[t];return e&&e.length>0?e.pop():null}isPatternMissing(t){return null===t||void 0!==t&&!this.imageManager.getPattern(t.toString())}terrainRenderModeElevated(){return this.style&&!!this.style.getTerrain()&&!!this.terrain&&!this.terrain.renderingToTexture}currentGlobalDefines(){const t=this.terrain&&this.terrain.renderingToTexture,e=this.terrain&&0===this.terrain.exaggeration(),i=this.style&&this.style.fog,n=[];return this.terrainRenderModeElevated()&&n.push("TERRAIN"),"globe"===this.transform.projection.name&&n.push("GLOBE"),e&&n.push("ZERO_EXAGGERATION"),i&&!t&&0!==i.getOpacity(this.transform.pitch)&&n.push("FOG"),t&&n.push("RENDER_TO_TEXTURE"),this._showOverdrawInspector&&n.push("OVERDRAW_INSPECTOR"),n}useProgram(t,e,i){this.cache=this.cache||{};const n=i||[],r=this.currentGlobalDefines().concat(n),o=Mi.cacheKey(ci[t],t,r,e);return this.cache[o]||(this.cache[o]=new Mi(this.context,t,ci[t],e,an[t],r)),this.cache[o]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.frontFace.setDefault(),this.context.cullFaceSide.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)}initDebugOverlayCanvas(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=t.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new t.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this._terrain&&this._terrain.destroy(),this.globeSharedBuffers&&this.globeSharedBuffers.destroy(),this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy(),this.atmosphereBuffer&&this.atmosphereBuffer.destroy()}prepareDrawTile(){this.terrain&&this.terrain.prepareDrawTile()}prepareDrawProgram(e,i,n){if(this.terrain&&this.terrain.renderingToTexture)return;const r=this.style.fog;if(r){const o=r.getOpacity(this.transform.pitch),s=((e,i,n,r,o,s,a,l,c,u,h)=>{const d=e.transform,f=i.properties.get("color").toArray01();f[3]=r;const p=e.frameCounter/1e3%1;return{u_fog_matrix:n?d.calculateFogTileMatrix(n):e.identityMat,u_fog_range:i.getFovAdjustedRange(d._fov),u_fog_color:f,u_fog_horizon_blend:i.properties.get("horizon-blend"),u_fog_temporal_offset:p,u_frustum_tl:o,u_frustum_tr:s,u_frustum_br:a,u_frustum_bl:l,u_globe_pos:c,u_globe_radius:u,u_viewport:h,u_globe_transition:t.globeToMercatorTransition(d.zoom),u_is_globe:+("globe"===d.projection.name)}})(this,r,n,o,this.transform.frustumCorners.TL,this.transform.frustumCorners.TR,this.transform.frustumCorners.BR,this.transform.frustumCorners.BL,this.transform.globeCenterInViewSpace,this.transform.globeRadius,[this.transform.width*t.exported.devicePixelRatio,this.transform.height*t.exported.devicePixelRatio]);i.setFogUniformValues(e,s)}}setTileLoadedFlag(t){this.tileLoaded=t}saveCanvasCopy(){const t=this.canvasCopy();t&&(this.frameCopies.push(t),this.tileLoaded=!1)}canvasCopy(){const t=this.context.gl,e=t.createTexture();return t.bindTexture(t.TEXTURE_2D,e),t.copyTexImage2D(t.TEXTURE_2D,0,t.RGBA,0,0,t.drawingBufferWidth,t.drawingBufferHeight,0),e}getCanvasCopiesAndTimestamps(){return{canvasCopies:this.frameCopies,timeStamps:this.loadTimeStamps}}averageElevationNeedsEasing(){if(!this.transform._elevation)return!1;const t=this.style&&this.style.fog;return!!t&&0!==t.getOpacity(this.transform.pitch)}getBackgroundTiles(){const e=this._backgroundTiles,i=this._backgroundTiles={},n=this.transform.coveringTiles({tileSize:512});for(const r of n)i[r.key]=e[r.key]||new t.Tile(r,512,this.transform.tileZoom,this);return i}clearBackgroundTiles(){this._backgroundTiles={}}}class jn{constructor(t=0,e=0,i=0,n=0){if(isNaN(t)||t<0||isNaN(e)||e<0||isNaN(i)||i<0||isNaN(n)||n<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=t,this.bottom=e,this.left=i,this.right=n}interpolate(e,i,n){return null!=i.top&&null!=e.top&&(this.top=t.number(e.top,i.top,n)),null!=i.bottom&&null!=e.bottom&&(this.bottom=t.number(e.bottom,i.bottom,n)),null!=i.left&&null!=e.left&&(this.left=t.number(e.left,i.left,n)),null!=i.right&&null!=e.right&&(this.right=t.number(e.right,i.right,n)),this}getCenter(e,i){const n=t.clamp((this.left+e-this.right)/2,0,e),r=t.clamp((this.top+i-this.bottom)/2,0,i);return new t.Point(n,r)}equals(t){return this.top===t.top&&this.bottom===t.bottom&&this.left===t.left&&this.right===t.right}clone(){return new jn(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function Bn(e,i){const n=t.getColumn(e,3);t.fromQuat(e,i),t.setColumn(e,3,n)}function Fn(e,i){const n=t.identity$1([]);return t.rotateZ$1(n,n,-i),t.rotateX$1(n,n,-e),n}function Nn(e,i){const n=[e[0],e[1],0],r=[i[0],i[1],0];if(t.length(n)>=1e-15){const e=t.normalize([],n);t.scale$2(r,e,t.dot(r,e)),i[0]=r[0],i[1]=r[1]}const o=t.cross([],i,e);if(t.len(o)<1e-15)return null;const s=Math.atan2(-o[1],o[0]);return Fn(Math.atan2(Math.sqrt(e[0]*e[0]+e[1]*e[1]),-e[2]),s)}class Vn{constructor(t,e){this.position=t,this.orientation=e}get position(){return this._position}set position(e){if(e){const i=e instanceof t.MercatorCoordinate?e:new t.MercatorCoordinate(e[0],e[1],e[2]);this._renderWorldCopies&&(i.x=t.wrap(i.x,0,1)),this._position=i}else this._position=null}lookAtPoint(e,i){if(this.orientation=null,!this.position)return;const n=this.position,r=this._elevation?this._elevation.getAtPointOrZero(t.MercatorCoordinate.fromLngLat(e)):0,o=t.MercatorCoordinate.fromLngLat(e,r),s=[o.x-n.x,o.y-n.y,o.z-n.z];i||(i=[0,0,1]),i[2]=Math.abs(i[2]),this.orientation=Nn(s,i)}setPitchBearing(e,i){this.orientation=Fn(t.degToRad(e),t.degToRad(-i))}}class $n{constructor(e,i){this._transform=t.identity([]),this.orientation=i,this.position=e}get mercatorPosition(){const e=this.position;return new t.MercatorCoordinate(e[0],e[1],e[2])}get position(){const e=t.getColumn(this._transform,3);return[e[0],e[1],e[2]]}set position(e){var i;e&&t.setColumn(this._transform,3,[(i=e)[0],i[1],i[2],1])}get orientation(){return this._orientation}set orientation(e){this._orientation=e||t.identity$1([]),e&&Bn(this._transform,this._orientation)}getPitchBearing(){const t=this.forward(),e=this.right();return{bearing:Math.atan2(-e[1],e[0]),pitch:Math.atan2(Math.sqrt(t[0]*t[0]+t[1]*t[1]),-t[2])}}setPitchBearing(t,e){this._orientation=Fn(t,e),Bn(this._transform,this._orientation)}forward(){const e=t.getColumn(this._transform,2);return[-e[0],-e[1],-e[2]]}up(){const e=t.getColumn(this._transform,1);return[-e[0],-e[1],-e[2]]}right(){const e=t.getColumn(this._transform,0);return[e[0],e[1],e[2]]}getCameraToWorld(e,i){const n=new Float64Array(16);return t.invert(n,this.getWorldToCamera(e,i)),n}getWorldToCameraPosition(e,i,n){const r=this.position;t.scale$2(r,r,-e);const o=new Float64Array(16);return t.fromScaling(o,[n,n,n]),t.translate(o,o,r),o[10]*=i,o}getWorldToCamera(e,i){const n=new Float64Array(16),r=new Float64Array(4),o=this.position;return t.conjugate(r,this._orientation),t.scale$2(o,o,-e),t.fromQuat(n,r),t.translate(n,n,o),n[1]*=-1,n[5]*=-1,n[9]*=-1,n[13]*=-1,n[8]*=i,n[9]*=i,n[10]*=i,n[11]*=i,n}getCameraToClipPerspective(e,i,n,r){const o=new Float64Array(16);return t.perspective(o,e,i,n,r),o}getDistanceToElevation(e,i=!1){const n=0===e?0:t.mercatorZfromAltitude(e,i?t.latFromMercatorY(this.position[1]):this.position[1]),r=this.forward();return(n-this.position[2])/r[2]}clone(){return new $n([...this.position],[...this.orientation])}}function Un(e,i){const n=Gn(e.projection,e.zoom,e.width,e.height),r=function(e,i,n,r,o){const s=new t.LngLat(n.lng-180*Wn,n.lat),a=new t.LngLat(n.lng+180*Wn,n.lat),l=e.project(s.lng,s.lat),c=e.project(a.lng,a.lat),u=-Math.atan2(c.y-l.y,c.x-l.x),h=t.MercatorCoordinate.fromLngLat(n);h.y=t.clamp(h.y,-1+Wn,1-Wn);const d=h.toLngLat(),f=e.project(d.lng,d.lat),p=t.MercatorCoordinate.fromLngLat(d);p.x+=Wn;const m=p.toLngLat(),g=e.project(m.lng,m.lat),y=Hn(g.x-f.x,g.y-f.y,u),_=t.MercatorCoordinate.fromLngLat(d);_.y+=Wn;const v=_.toLngLat(),b=e.project(v.lng,v.lat),x=Hn(b.x-f.x,b.y-f.y,u),w=Math.abs(y.x)/Math.abs(x.y),E=t.identity([]);t.rotateZ(E,E,-u*(1-(o?0:r)));const T=t.identity([]);return t.scale(T,T,[1,1-(1-w)*r,1]),T[4]=-x.x/x.y*r,t.rotateZ(T,T,u),t.multiply(T,E,T),T}(e.projection,0,e.center,n,i),o=qn(e);return t.scale(r,r,[o,o,1]),r}function qn(e){const i=e.projection,n=Gn(e.projection,e.zoom,e.width,e.height),r=Zn(i,e.center),o=Zn(i,t.LngLat.convert(i.center));return Math.pow(2,r*n+(1-n)*o)}function Gn(e,i,n,r,o=1/0){const s=e.range;if(!s)return 0;const a=Math.min(o,Math.max(n,r)),l=Math.log(a/1024)/Math.LN2;return t.smoothstep(s[0]+l,s[1]+l,i)}const Wn=1/4e4;function Zn(e,i){const n=t.clamp(i.lat,-t.MAX_MERCATOR_LATITUDE,t.MAX_MERCATOR_LATITUDE),r=new t.LngLat(i.lng-180*Wn,n),o=new t.LngLat(i.lng+180*Wn,n),s=e.project(r.lng,n),a=e.project(o.lng,n),l=t.MercatorCoordinate.fromLngLat(r),c=t.MercatorCoordinate.fromLngLat(o),u=a.x-s.x,h=a.y-s.y,d=c.x-l.x,f=c.y-l.y,p=Math.sqrt((d*d+f*f)/(u*u+h*h));return Math.log(p)/Math.LN2}function Hn(t,e,i){const n=Math.cos(i),r=Math.sin(i);return{x:t*n-e*r,y:t*r+e*n}}class Xn{constructor(e,i,n,r,o,s,a){this.tileSize=512,this._renderWorldCopies=void 0===o||o,this._minZoom=e||0,this._maxZoom=i||22,this._minPitch=null==n?0:n,this._maxPitch=null==r?60:r,this.setProjection(s),this.setMaxBounds(a),this.width=0,this.height=0,this._center=new t.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._nearZ=0,this._farZ=0,this._unmodified=!0,this._edgeInsets=new jn,this._projMatrixCache={},this._alignedProjMatrixCache={},this._fogTileMatrixCache={},this._distanceTileDataCache={},this._camera=new $n,this._centerAltitude=0,this._averageElevation=0,this.cameraElevationReference="ground",this._pixelsPerMercatorPixel=1,this.globeRadius=0,this.globeCenterInViewSpace=[0,0,0],this._horizonShift=.1}clone(){const t=new Xn(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies,this.getProjection());return t._elevation=this._elevation,t._centerAltitude=this._centerAltitude,t._centerAltitudeValidForExaggeration=this._centerAltitudeValidForExaggeration,t.tileSize=this.tileSize,t.mercatorFromTransition=this.mercatorFromTransition,t.width=this.width,t.height=this.height,t.cameraElevationReference=this.cameraElevationReference,t._center=this._center,t._setZoom(this.zoom),t._seaLevelZoom=this._seaLevelZoom,t.angle=this.angle,t._fov=this._fov,t._pitch=this._pitch,t._nearZ=this._nearZ,t._farZ=this._farZ,t._averageElevation=this._averageElevation,t._unmodified=this._unmodified,t._edgeInsets=this._edgeInsets.clone(),t._camera=this._camera.clone(),t._calcMatrices(),t.freezeTileCoverage=this.freezeTileCoverage,t.frustumCorners=this.frustumCorners,t}get elevation(){return this._elevation}set elevation(t){this._elevation!==t&&(this._elevation=t,this._updateCameraOnTerrain(),this._calcMatrices())}updateElevation(t,e=!1){const i=this._elevation&&this._elevation.exaggeration()!==this._centerAltitudeValidForExaggeration;(null==this._seaLevelZoom||i)&&this._updateCameraOnTerrain(),(t||i)&&this._constrainCamera(e),this._calcMatrices()}getProjection(){return t.pick(this.projection,["name","center","parallels"])}setProjection(i){this.projectionOptions=i||{name:"mercator"};const n=this.projection?this.getProjection():void 0;this.projection=t.getProjection(this.projectionOptions);const r=!e(n,this.getProjection());return r&&this._calcMatrices(),this.mercatorFromTransition=!1,r}setMercatorFromTransition(){const e=this.projection.name;this.mercatorFromTransition=!0,this.projectionOptions={name:"mercator"},this.projection=t.getProjection({name:"mercator"});const i=e!==this.projection.name;return i&&this._calcMatrices(),i}get minZoom(){return this._minZoom}set minZoom(t){this._minZoom!==t&&(this._minZoom=t,this.zoom=Math.max(this.zoom,t))}get maxZoom(){return this._maxZoom}set maxZoom(t){this._maxZoom!==t&&(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))}get minPitch(){return this._minPitch}set minPitch(t){this._minPitch!==t&&(this._minPitch=t,this.pitch=Math.max(this.pitch,t))}get maxPitch(){return this._maxPitch}set maxPitch(t){this._maxPitch!==t&&(this._maxPitch=t,this.pitch=Math.min(this.pitch,t))}get renderWorldCopies(){return this._renderWorldCopies&&!0===this.projection.supportsWorldCopies}set renderWorldCopies(t){void 0===t?t=!0:null===t&&(t=!1),this._renderWorldCopies=t}get worldSize(){return this.tileSize*this.scale}get cameraWorldSizeForFog(){const t=Math.max(this._camera.getDistanceToElevation(this._averageElevation),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(t))}get cameraWorldSize(){const t=Math.max(this._camera.getDistanceToElevation(this._averageElevation,!0),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(t))}get pixelsPerMeter(){return this.projection.pixelsPerMeter(this.center.lat,this.worldSize)}get cameraPixelsPerMeter(){return t.mercatorZfromAltitude(this.center.lat,this.cameraWorldSizeForFog)}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new t.Point(this.width,this.height)}get bearing(){return t.wrap(this.rotation,-180,180)}set bearing(t){this.rotation=t}get rotation(){return-this.angle/Math.PI*180}set rotation(e){const i=-e*Math.PI/180;var n;this.angle!==i&&(this._unmodified=!1,this.angle=i,this._calcMatrices(),this.rotationMatrix=(n=new t.ARRAY_TYPE(4),t.ARRAY_TYPE!=Float32Array&&(n[1]=0,n[2]=0),n[0]=1,n[3]=1,n),function(t,e,i){var n=e[0],r=e[1],o=e[2],s=e[3],a=Math.sin(i),l=Math.cos(i);t[0]=n*l+o*a,t[1]=r*l+s*a,t[2]=n*-a+o*l,t[3]=r*-a+s*l}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(e){const i=t.clamp(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==i&&(this._unmodified=!1,this._pitch=i,this._calcMatrices())}get aspect(){return this.width/this.height}get fov(){return this._fov/Math.PI*180}get fovX(){return this._fov}get fovY(){const t=1/Math.tan(.5*this.fovX);return 2*Math.atan(1/this.aspect/t)}set fov(e){e=Math.max(.01,Math.min(60,e)),this._fov!==e&&(this._unmodified=!1,this._fov=t.degToRad(e),this._calcMatrices())}get averageElevation(){return this._averageElevation}set averageElevation(t){this._averageElevation=t,this._calcFogMatrices(),this._distanceTileDataCache={}}get zoom(){return this._zoom}set zoom(t){const e=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==e&&(this._unmodified=!1,this._setZoom(e),this._updateSeaLevelZoom(),this._constrain(),this._calcMatrices())}_setZoom(t){this._zoom=t,this.scale=this.zoomScale(t),this.tileZoom=Math.floor(t),this.zoomFraction=t-this.tileZoom}_updateCameraOnTerrain(){if(!this._elevation||!this._elevation.isDataAvailableAtPoint(this.locationCoordinate(this.center)))return this._centerAltitude=0,this._seaLevelZoom=null,void(this._centerAltitudeValidForExaggeration=void 0);const t=this._elevation;this._centerAltitude=t.getAtPointOrZero(this.locationCoordinate(this.center)),this._centerAltitudeValidForExaggeration=t.exaggeration(),this._updateSeaLevelZoom()}_updateSeaLevelZoom(){void 0!==this._centerAltitudeValidForExaggeration&&(this._seaLevelZoom=this._zoomFromMercatorZ((this.pixelsPerMeter*this._centerAltitude+this.cameraToCenterDistance)/this.worldSize))}sampleAverageElevation(){if(!this._elevation)return 0;const e=this._elevation,i=[[.5,.2],[.3,.5],[.5,.5],[.7,.5],[.5,.8]],n=this.horizonLineFromTop();let r=0,o=0;for(let s=0;s<i.length;s++){const a=new t.Point(i[s][0]*this.width,n+i[s][1]*(this.height-n)),l=e.pointCoordinate(a);if(!l)continue;const c=1/Math.hypot(l[0]-this._camera.position[0],l[1]-this._camera.position[1]);r+=l[3]*c,o+=c}return 0===o?NaN:r/o}get center(){return this._center}set center(t){t.lat===this._center.lat&&t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._terrainEnabled()&&("ground"===this.cameraElevationReference?this._updateCameraOnTerrain():this._updateZoomFromElevation()),this._constrain(),this._calcMatrices())}_updateZoomFromElevation(){if(null==this._seaLevelZoom||!this._elevation)return;const t=this._seaLevelZoom,e=this._elevation.getAtPointOrZero(this.locationCoordinate(this.center)),i=this.pixelsPerMeter/this.worldSize*e,n=this._mercatorZfromZoom(t),r=this._mercatorZfromZoom(this._maxZoom),o=Math.max(n-i,r);this._setZoom(this._zoomFromMercatorZ(o))}get padding(){return this._edgeInsets.toJSON()}set padding(t){this._edgeInsets.equals(t)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,t,1),this._calcMatrices())}computeZoomRelativeTo(e){const i=this.rayIntersectionCoordinate(this.pointRayIntersection(this.centerPoint,e.toAltitude()));let n;n=e.z<this._camera.position[2]?[i.x,i.y,i.z]:[e.x,e.y,e.z];const r=t.length(t.sub([],this._camera.position,n));return t.clamp(this._zoomFromMercatorZ(r),this._minZoom,this._maxZoom)}setFreeCameraOptions(e){if(!this.height)return;if(!e.position&&!e.orientation)return;this._updateCameraState();let i=!1;if(e.orientation&&!t.exactEquals(e.orientation,this._camera.orientation)&&(i=this._setCameraOrientation(e.orientation)),e.position){const n=[e.position.x,e.position.y,e.position.z];t.exactEquals$1(n,this._camera.position)||(this._setCameraPosition(n),i=!0)}i&&(this._updateStateFromCamera(),this.recenterOnTerrain())}getFreeCameraOptions(){this._updateCameraState();const e=this._camera.position,i=new Vn;return i.position=new t.MercatorCoordinate(e[0],e[1],e[2]),i.orientation=this._camera.orientation,i._elevation=this.elevation,i._renderWorldCopies=this.renderWorldCopies,i}_setCameraOrientation(e){if(!t.length$1(e))return!1;t.normalize$1(e,e);const i=t.transformQuat([],[0,0,-1],e),n=t.transformQuat([],[0,-1,0],e);if(n[2]<0)return!1;const r=Nn(i,n);return!!r&&(this._camera.orientation=r,!0)}_setCameraPosition(e){const i=this.zoomScale(this.minZoom)*this.tileSize,n=this.zoomScale(this.maxZoom)*this.tileSize,r=this.cameraToCenterDistance;e[2]=t.clamp(e[2],r/n,r/i),this._camera.position=e}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}get fovAboveCenter(){return this._fov*(.5+this.centerOffset.y/this.height)}isPaddingEqual(t){return this._edgeInsets.equals(t)}interpolatePadding(t,e,i){this._unmodified=!1,this._edgeInsets.interpolate(t,e,i),this._constrain(),this._calcMatrices()}coveringZoomLevel(t){const e=(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize));return Math.max(0,e)}getVisibleUnwrappedCoordinates(e){const i=[new t.UnwrappedTileID(0,e)];if(this.renderWorldCopies){const n=this.pointCoordinate(new t.Point(0,0)),r=this.pointCoordinate(new t.Point(this.width,0)),o=this.pointCoordinate(new t.Point(this.width,this.height)),s=this.pointCoordinate(new t.Point(0,this.height)),a=Math.floor(Math.min(n.x,r.x,o.x,s.x)),l=Math.floor(Math.max(n.x,r.x,o.x,s.x)),c=1;for(let u=a-c;u<=l+c;u++)0!==u&&i.push(new t.UnwrappedTileID(u,e))}return i}coveringTiles(e){let i=this.coveringZoomLevel(e);const n=i,r=this.elevation&&!e.isTerrainDEM,o="mercator"===this.projection.name;if(void 0!==e.minzoom&&i<e.minzoom)return[];void 0!==e.maxzoom&&i>e.maxzoom&&(i=e.maxzoom);const s=this.locationCoordinate(this.center),a=this.center.lat,l=1<<i,c=[l*s.x,l*s.y,0],u="globe"===this.projection.name,h=!u,d=t.Frustum.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,i,h),f=u?this._camera.mercatorPosition:this.pointCoordinate(this.getCameraPoint()),p=l*t.mercatorZfromAltitude(1,this.center.lat),m=this._camera.position[2]/t.mercatorZfromAltitude(1,this.center.lat),g=[l*f.x,l*f.y,m*(h?1:p)],y=this.cameraToCenterDistance/e.tileSize*(e.roundZoom?1:.502),_=this.pitch<=60&&this._edgeInsets.top<=this._edgeInsets.bottom&&!this._elevation&&!this.projection.isReprojectedInTileSpace?i:0,v=e.isTerrainDEM&&this._elevation?1e4*this._elevation.exaggeration():this._centerAltitude,b=e.isTerrainDEM?-v:this._elevation?this._elevation.getMinElevationBelowMSL():0,x=this.projection.isReprojectedInTileSpace?qn(this):1,w=e=>{const i=1/4e4,n=new t.MercatorCoordinate(e.x+i,e.y,e.z),r=new t.MercatorCoordinate(e.x,e.y+i,e.z),o=e.toLngLat(),s=n.toLngLat(),a=r.toLngLat(),l=this.locationCoordinate(o),c=this.locationCoordinate(s),u=this.locationCoordinate(a),h=Math.hypot(c.x-l.x,c.y-l.y),d=Math.hypot(u.x-l.x,u.y-l.y);return Math.sqrt(h*d)*x/i},E=e=>{const i=v,n=b;return{aabb:t.tileAABB(this,l,0,0,0,e,n,i,this.projection),zoom:0,x:0,y:0,minZ:n,maxZ:i,wrap:e,fullyVisible:!1}},T=[];let S=[];const k=i,O=e.reparseOverscaled?n:i,A=t=>t*t,C=A((m-this._centerAltitude)*p),I=t=>{if(!this._elevation||!t.tileID||!o)return;const e=this._elevation.getMinMaxForTile(t.tileID),i=t.aabb;e?(i.min[2]=e.min,i.max[2]=e.max,i.center[2]=(i.min[2]+i.max[2])/2):(t.shouldSplit=M(t),t.shouldSplit||(i.min[2]=i.max[2]=i.center[2]=this._centerAltitude))},M=e=>{if(e.zoom<_)return!0;if(e.zoom===k)return!1;if(null!=e.shouldSplit)return e.shouldSplit;const i=e.aabb.distanceX(g),o=e.aabb.distanceY(g);let s=C,l=1;if(u){s=A(e.aabb.distanceZ(g));const i=Math.pow(2,e.zoom),n=t.latFromMercatorY((e.y+1)/i),r=t.latFromMercatorY(e.y/i),o=Math.min(Math.max(a,n),r),c=t.circumferenceAtLatitude(o)/t.circumferenceAtLatitude(a);if(l=o===a?1/Math.max(1,this._mercatorScaleRatio-.3):Math.min(1,c/this._mercatorScaleRatio),this.zoom<=t.GLOBE_ZOOM_THRESHOLD_MIN&&e.zoom===k-1&&c>=.9)return!0}else if(r&&(s=A(e.aabb.distanceZ(g)*p)),this.projection.isReprojectedInTileSpace&&n<=5){const i=Math.pow(2,e.zoom),n=w(new t.MercatorCoordinate((e.x+.5)/i,(e.y+.5)/i));l=n>.85?1:n}const c=i*i+o*o+s,h=A((1<<k-e.zoom)*y*l*((t,e)=>{if(e*A(.707)<t)return 1;const i=Math.sqrt(e/t);return i/(1.4144271570014144+(Math.pow(1.1,i-1.4144271570014144+1)-1)/(1.1-1)-1)})(Math.max(s,C),c));return c<h};if(this.renderWorldCopies)for(let t=1;t<=3;t++)T.push(E(-t)),T.push(E(t));for(T.push(E(0));T.length>0;){const n=T.pop(),s=n.x,a=n.y;let h=n.fullyVisible;if(!h){const t=n.aabb.intersects(d);if(0===t)continue;h=2===t}if(n.zoom!==k&&M(n))for(let e=0;e<4;e++){const i=(s<<1)+e%2,c=(a<<1)+(e>>1),d={aabb:o?n.aabb.quadrant(e):t.tileAABB(this,l,n.zoom+1,i,c,n.wrap,n.minZ,n.maxZ,this.projection),zoom:n.zoom+1,x:i,y:c,wrap:n.wrap,fullyVisible:h,tileID:void 0,shouldSplit:void 0,minZ:n.minZ,maxZ:n.maxZ};r&&!u&&(d.tileID=new t.OverscaledTileID(n.zoom+1===k?O:n.zoom+1,n.wrap,n.zoom+1,i,c),I(d)),T.push(d)}else{const r=n.zoom===k?O:n.zoom;if(e.minzoom&&e.minzoom>r)continue;const o=c[0]-(.5+s+(n.wrap<<n.zoom))*(1<<i-n.zoom),l=c[1]-.5-a,u=n.tileID?n.tileID:new t.OverscaledTileID(r,n.wrap,n.zoom,s,a);S.push({tileID:u,distanceSq:o*o+l*l})}}if(this.fogCullDistSq){const i=this.fogCullDistSq,n=this.horizonLineFromTop();S=S.filter(r=>{const o=[0,0,0,1],s=[t.EXTENT,t.EXTENT,0,1],a=this.calculateFogTileMatrix(r.tileID.toUnwrapped());t.transformMat4$1(o,o,a),t.transformMat4$1(s,s,a);const l=t.getAABBPointSquareDist(o,s);if(0===l)return!0;let c=!1;const u=this._elevation;if(u&&l>i&&0!==n){const i=this.calculateProjMatrix(r.tileID.toUnwrapped());let o;e.isTerrainDEM||(o=u.getMinMaxForTile(r.tileID)),o||(o={min:b,max:v});const s=t.furthestTileCorner(this.rotation),a=[s[0]*t.EXTENT,s[1]*t.EXTENT,o.max];t.transformMat4(a,a,i),c=(1-a[1])*this.height*.5<n}return l<i||c})}return S.sort((t,e)=>t.distanceSq-e.distanceSq).map(t=>t.tileID)}resize(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(t){return Math.pow(2,t)}scaleZoom(t){return Math.log(t)/Math.LN2}project(e){const i=t.clamp(e.lat,-t.MAX_MERCATOR_LATITUDE,t.MAX_MERCATOR_LATITUDE),n=this.projection.project(e.lng,i);return new t.Point(n.x*this.worldSize,n.y*this.worldSize)}unproject(t){return this.projection.unproject(t.x/this.worldSize,t.y/this.worldSize)}get point(){return this.project(this.center)}get pointMerc(){return this.point._div(this.worldSize)}get pixelsPerMeterRatio(){return this.pixelsPerMeter/t.mercatorZfromAltitude(1,this.center.lat)/this.worldSize}setLocationAtPoint(e,i){let n,r;const o=this.centerPoint;if("globe"===this.projection.name){const t=this.worldSize;n=(i.x-o.x)/t,r=(i.y-o.y)/t}else{const t=this.pointCoordinate(i),e=this.pointCoordinate(o);n=t.x-e.x,r=t.y-e.y}const s=this.locationCoordinate(e);this.setLocation(new t.MercatorCoordinate(s.x-n,s.y-r))}setLocation(t){this.center=this.coordinateLocation(t),this.projection.wrap&&(this.center=this.center.wrap())}locationPoint(t){return this.projection.locationPoint(this,t)}locationPoint3D(t){return this.projection.locationPoint(this,t,!0)}pointLocation(t){return this.coordinateLocation(this.pointCoordinate(t))}pointLocation3D(t){return this.coordinateLocation(this.pointCoordinate3D(t))}locationCoordinate(e,i){const n=i?t.mercatorZfromAltitude(i,e.lat):void 0,r=this.projection.project(e.lng,e.lat);return new t.MercatorCoordinate(r.x,r.y,n)}coordinateLocation(t){return this.projection.unproject(t.x,t.y)}pointRayIntersection(e,i){const n=null!=i?i:this._centerAltitude,r=[e.x,e.y,0,1],o=[e.x,e.y,1,1];t.transformMat4$1(r,r,this.pixelMatrixInverse),t.transformMat4$1(o,o,this.pixelMatrixInverse);const s=o[3];t.scale$1(r,r,1/r[3]),t.scale$1(o,o,1/s);const a=r[2],l=o[2];return{p0:r,p1:o,t:a===l?0:(n-a)/(l-a)}}screenPointToMercatorRay(e){const i=[e.x,e.y,0,1],n=[e.x,e.y,1,1];return t.transformMat4$1(i,i,this.pixelMatrixInverse),t.transformMat4$1(n,n,this.pixelMatrixInverse),t.scale$1(i,i,1/i[3]),t.scale$1(n,n,1/n[3]),i[2]=t.mercatorZfromAltitude(i[2],this._center.lat)*this.worldSize,n[2]=t.mercatorZfromAltitude(n[2],this._center.lat)*this.worldSize,t.scale$1(i,i,1/this.worldSize),t.scale$1(n,n,1/this.worldSize),new t.Ray([i[0],i[1],i[2]],t.normalize([],t.sub([],n,i)))}rayIntersectionCoordinate(e){const{p0:i,p1:n,t:r}=e,o=t.mercatorZfromAltitude(i[2],this._center.lat),s=t.mercatorZfromAltitude(n[2],this._center.lat);return new t.MercatorCoordinate(t.number(i[0],n[0],r)/this.worldSize,t.number(i[1],n[1],r)/this.worldSize,t.number(o,s,r))}pointCoordinate(t,e=this._centerAltitude){return this.projection.pointCoordinate(this,t.x,t.y,e)}
vendor: 5,461 bytes, line 39
39pointCoordinate3D(e){if(!this.elevation)return this.pointCoordinate(e);let i=this.projection.pointCoordinate3D(this,e.x,e.y);if(i)return new t.MercatorCoordinate(i[0],i[1],i[2]);let n=0,r=this.horizonLineFromTop();if(e.y>r)return this.pointCoordinate(e);const o=.02*r,s=e.clone();for(let a=0;a<10&&r-n>o;a++){s.y=t.number(n,r,.66);const e=this.projection.pointCoordinate3D(this,s.x,s.y);e?(r=s.y,i=e):n=s.y}return i?new t.MercatorCoordinate(i[0],i[1],i[2]):this.pointCoordinate(e)}isPointAboveHorizon(t){return this.projection.isPointAboveHorizon(this,t)}isPointOnSurface(e){if(e.y<0||e.y>this.height||e.x<0||e.x>this.width)return!1;if(this.elevation||this.zoom>=t.GLOBE_ZOOM_THRESHOLD_MAX)return!this.isPointAboveHorizon(e);const i=this.pointCoordinate(e);return i.y>=0&&i.y<=1}_coordinatePoint(e,i){const n=i&&this.elevation?this.elevation.getAtPointOrZero(e,this._centerAltitude):this._centerAltitude,r=[e.x*this.worldSize,e.y*this.worldSize,n+e.toAltitude(),1];return t.transformMat4$1(r,r,this.pixelMatrix),r[3]>0?new t.Point(r[0]/r[3],r[1]/r[3]):new t.Point(Number.MAX_VALUE,Number.MAX_VALUE)}_getBoundsNonRectangular(){const{top:e,left:i}=this._edgeInsets,n=this.height-this._edgeInsets.bottom,r=this.width-this._edgeInsets.right,o=this.pointLocation3D(new t.Point(i,e)),s=this.pointLocation3D(new t.Point(r,e)),a=this.pointLocation3D(new t.Point(r,n)),l=this.pointLocation3D(new t.Point(i,n));let c=Math.min(o.lng,s.lng,a.lng,l.lng),u=Math.max(o.lng,s.lng,a.lng,l.lng),h=Math.min(o.lat,s.lat,a.lat,l.lat),d=Math.max(o.lat,s.lat,a.lat,l.lat);const f=Math.pow(2,-this.zoom)/16*270,p="globe"===this.projection.name?1:4,m=(e,i,n,r,o)=>{const s=(e+n)/2,a=(i+r)/2,l=new t.Point(s,a),{lng:g,lat:y}=this.pointLocation3D(l),_=Math.max(0,c-g,h-y,g-u,y-d);c=Math.min(c,g),u=Math.max(u,g),h=Math.min(h,y),d=Math.max(d,y),(o<p||_>f)&&(m(e,i,s,a,o+1),m(s,a,n,r,o+1))};if(m(i,e,r,e,1),m(r,e,r,n,1),m(r,n,i,n,1),m(i,n,i,e,1),"globe"===this.projection.name){const[e,i]=t.polesInViewport(this);e?(d=90,u=180,c=-180):i&&(h=-90,u=180,c=-180)}return new t.LngLatBounds(new t.LngLat(c,h),new t.LngLat(u,d))}_getBoundsRectangular(e,i){const{top:n,left:r}=this._edgeInsets,o=this.height-this._edgeInsets.bottom,s=this.width-this._edgeInsets.right,a=new t.Point(r,n),l=new t.Point(s,n),c=new t.Point(s,o),u=new t.Point(r,o);let h=this.pointCoordinate(a,e),d=this.pointCoordinate(l,e);const f=this.pointCoordinate(c,i),p=this.pointCoordinate(u,i),m=(t,e)=>(e.y-t.y)/(e.x-t.x);return h.y>1&&d.y>=0?h=new t.MercatorCoordinate((1-p.y)/m(p,h)+p.x,1):h.y<0&&d.y<=1&&(h=new t.MercatorCoordinate(-p.y/m(p,h)+p.x,0)),d.y>1&&h.y>=0?d=new t.MercatorCoordinate((1-f.y)/m(f,d)+f.x,1):d.y<0&&h.y<=1&&(d=new t.MercatorCoordinate(-f.y/m(f,d)+f.x,0)),(new t.LngLatBounds).extend(this.coordinateLocation(h)).extend(this.coordinateLocation(d)).extend(this.coordinateLocation(p)).extend(this.coordinateLocation(f))}_getBoundsRectangularTerrain(){const t=this.elevation;if(!t.visibleDemTiles.length||t.isUsingMockSource())return this._getBoundsRectangular(0,0);const e=t.visibleDemTiles.reduce((t,e)=>{if(e.dem){const i=e.dem.tree;t.min=Math.min(t.min,i.minimums[0]),t.max=Math.max(t.max,i.maximums[0])}return t},{min:Number.MAX_VALUE,max:0});return this._getBoundsRectangular(e.min*t.exaggeration(),e.max*t.exaggeration())}getBounds(){return"mercator"===this.projection.name||"equirectangular"===this.projection.name?this._terrainEnabled()?this._getBoundsRectangularTerrain():this._getBoundsRectangular(0,0):this._getBoundsNonRectangular()}horizonLineFromTop(t=!0){const e=this.height/2/Math.tan(this._fov/2)/Math.tan(Math.max(this._pitch,.1))+this.centerOffset.y,i=this.height/2-e*(1-this._horizonShift);return t?Math.max(0,i):i}getMaxBounds(){return this.maxBounds}setMaxBounds(e){this.maxBounds=e,this.minLat=-t.MAX_MERCATOR_LATITUDE,this.maxLat=t.MAX_MERCATOR_LATITUDE,this.minLng=-180,this.maxLng=180,e&&(this.minLat=e.getSouth(),this.maxLat=e.getNorth(),this.minLng=e.getWest(),this.maxLng=e.getEast(),this.maxLng<this.minLng&&(this.maxLng+=360)),this.worldMinX=t.mercatorXfromLng(this.minLng)*this.tileSize,this.worldMaxX=t.mercatorXfromLng(this.maxLng)*this.tileSize,this.worldMinY=t.mercatorYfromLat(this.maxLat)*this.tileSize,this.worldMaxY=t.mercatorYfromLat(this.minLat)*this.tileSize,this._constrain()}calculatePosMatrix(t,e){return this.projection.createTileMatrix(this,e,t)}calculateDistanceTileData(e){const i=e.key,n=this._distanceTileDataCache;if(n[i])return n[i];const r=e.canonical,o=1/this.height,s=this.cameraWorldSize,a=s/this.zoomScale(r.z),l=(r.x+Math.pow(2,r.z)*e.wrap)*a,c=r.y*a,u=this.point;u.x*=s/this.worldSize,u.y*=s/this.worldSize;const h=this.angle,d=Math.sin(-h),f=-Math.cos(-h);return n[i]={bearing:[d,f],center:[(u.x-l)*o,(u.y-c)*o],scale:a/t.EXTENT*o},n[i]}calculateFogTileMatrix(e){const i=e.key,n=this._fogTileMatrixCache;if(n[i])return n[i];const r=this.projection.createTileMatrix(this,this.cameraWorldSizeForFog,e);return t.multiply(r,this.worldToFogMatrix,r),n[i]=new Float32Array(r),n[i]}calculateProjMatrix(e,i=!1){const n=e.key,r=i?this._alignedProjMatrixCache:this._projMatrixCache;if(r[n])return r[n];const o=this.calculatePosMatrix(e,this.worldSize);return t.multiply(o,this.projection.isReprojectedInTileSpace?this.mercatorMatrix:i?this.alignedProjMatrix:this.projMatrix,o),r[n]=new Float32Array(o),r[n]}calculatePixelsToTileUnitsMatrix(e){const i=e.tileID.key,n=this._pixelsToTileUnitsCache;if(n[i])return n[i];const r=function(e,i){const{scale:n}
vendor: 22,732 bytes, line 39
39=e.tileTransform,r=n*t.EXTENT/(e.tileSize*Math.pow(2,i.zoom-e.tileID.overscaledZ+e.tileID.canonical.z));return o=new Float32Array(4),l=(s=i.inverseAdjustmentMatrix)[1],c=s[2],u=s[3],d=(a=[r,r])[1],o[0]=s[0]*(h=a[0]),o[1]=l*h,o[2]=c*d,o[3]=u*d,o;var o,s,a,l,c,u,h,d}(e,this);return n[i]=r,n[i]}customLayerMatrix(){return this.mercatorMatrix.slice()}globeToMercatorMatrix(){if("globe"===this.projection.name){const e=1/this.worldSize,i=t.fromScaling([],[e,e,e]);return t.multiply(i,i,this.globeMatrix),i}}recenterOnTerrain(){if(!this._elevation||"globe"===this.projection.name)return;const e=this._elevation;this._updateCameraState();const i=t.mercatorZfromAltitude(1,this._center.lat)*this.worldSize,n=this._computeCameraPosition(i),r=this._camera.forward(),o=t.mercatorZfromAltitude(1,this._center.lat);n[2]/=o,r[2]/=o,t.normalize(r,r);const s=e.raycast(n,r,e.exaggeration());if(s){const e=t.scaleAndAdd([],n,r,s),i=new t.MercatorCoordinate(e[0],e[1],t.mercatorZfromAltitude(e[2],t.latFromMercatorY(e[1]))),a=(i.z+t.length([i.x-n[0],i.y-n[1],i.z-n[2]*o]))*this._pixelsPerMercatorPixel;this._seaLevelZoom=this._zoomFromMercatorZ(a),this._centerAltitude=i.toAltitude(),this._center=this.coordinateLocation(i),this._updateZoomFromElevation(),this._constrain(),this._calcMatrices()}}_constrainCamera(e=!1){if(!this._elevation)return;const i=this._elevation,n=t.mercatorZfromAltitude(1,this._center.lat)*this.worldSize,r=this._computeCameraPosition(n),o=i.getAtPointOrZero(new t.MercatorCoordinate(...r)),s=this.pixelsPerMeter/this.worldSize*o,a=this._minimumHeightOverTerrain(),l=r[2]-s;if(l<=a)if(l<0||e){const e=this.locationCoordinate(this._center,this._centerAltitude),i=[r[0],r[1],e.z-r[2]],n=t.length(i);i[2]-=(a-l)/this._pixelsPerMercatorPixel;const o=t.length(i);if(0===o)return;t.scale$2(i,i,n/o*this._pixelsPerMercatorPixel),this._camera.position=[r[0],r[1],e.z*this._pixelsPerMercatorPixel-i[2]],this._updateStateFromCamera()}else this._isCameraConstrained=!0}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;const e="globe"===this.projection.name||this.mercatorFromTransition;if(this.projection.isReprojectedInTileSpace||e){const i=this.center;return i.lat=t.clamp(i.lat,this.minLat,this.maxLat),(this.maxBounds||!this.renderWorldCopies&&!e)&&(i.lng=t.clamp(i.lng,this.minLng,this.maxLng)),this.center=i,void(this._constraining=!1)}const i=this._unmodified,{x:n,y:r}=this.point;let o=0,s=n,a=r;const l=this.width/2,c=this.height/2,u=this.worldMinY*this.scale,h=this.worldMaxY*this.scale;if(r-c<u&&(a=u+c),r+c>h&&(a=h-c),h-u<this.height&&(o=Math.max(o,this.height/(h-u)),a=(h+u)/2),this.maxBounds||!this._renderWorldCopies||!this.projection.wrap){const t=this.worldMinX*this.scale,e=this.worldMaxX*this.scale,i=this.worldSize/2-(t+e)/2;s=(n+i+this.worldSize)%this.worldSize-i,s-l<t&&(s=t+l),s+l>e&&(s=e-l),e-t<this.width&&(o=Math.max(o,this.width/(e-t)),s=(e+t)/2)}s===n&&a===r||(this.center=this.unproject(new t.Point(s,a))),o&&(this.zoom+=this.scaleZoom(o)),this._constrainCamera(),this._unmodified=i,this._constraining=!1}_minZoomForBounds(){let t=Math.max(0,this.scaleZoom(this.height/(this.worldMaxY-this.worldMinY)));return this.maxBounds&&(t=Math.max(t,this.scaleZoom(this.width/(this.worldMaxX-this.worldMinX)))),t}_maxCameraBoundsDistance(){return this._mercatorZfromZoom(this._minZoomForBounds())}_calcMatrices(){if(!this.height)return;const e=this.centerOffset,i=this.pixelsPerMeter;"globe"===this.projection.name&&(this._mercatorScaleRatio=t.mercatorZfromAltitude(1,this.center.lat)/t.mercatorZfromAltitude(1,t.GLOBE_SCALE_MATCH_LATITUDE));const n=Gn(this.projection,this.zoom,this.width,this.height,1024);this._pixelsPerMercatorPixel=this.projection.pixelSpaceConversion(this.center.lat,this.worldSize,n),this.cameraToCenterDistance=.5/Math.tan(.5*this._fov)*this.height*this._pixelsPerMercatorPixel,this._updateCameraState(),this._farZ=this.projection.farthestPixelDistance(this),this._nearZ=this.height/50;const r="meters"===this.projection.zAxisUnit?i:1,o=this._camera.getWorldToCamera(this.worldSize,r),s=this._camera.getCameraToClipPerspective(this._fov,this.width/this.height,this._nearZ,this._farZ);s[8]=2*-e.x/this.width,s[9]=2*e.y/this.height;let a=t.mul([],s,o);if(this.projection.isReprojectedInTileSpace){const e=this.locationCoordinate(this.center),i=t.identity([]);t.translate(i,i,[e.x*this.worldSize,e.y*this.worldSize,0]),t.multiply(i,i,Un(this)),t.translate(i,i,[-e.x*this.worldSize,-e.y*this.worldSize,0]),t.multiply(a,a,i),this.inverseAdjustmentMatrix=function(t){const e=Un(t,!0);return _([],[e[0],e[1],e[4],e[5]])}(this)}else this.inverseAdjustmentMatrix=[1,0,0,1];this.mercatorMatrix=t.scale([],a,[this.worldSize,this.worldSize,this.worldSize/r,1]),this.projMatrix=a,this.invProjMatrix=t.invert(new Float64Array(16),this.projMatrix);const l=t.invert([],s);this.frustumCorners=t.FrustumCorners.fromInvProjectionMatrix(l,this.horizonLineFromTop(),this.height);const c=new Float32Array(16);t.identity(c),t.scale(c,c,[1,-1,1]),t.rotateX(c,c,this._pitch),t.rotateZ(c,c,this.angle);const u=t.perspective(new Float32Array(16),this._fov,this.width/this.height,this._nearZ,this._farZ),h=(Math.PI/2-this._pitch)*(this.height/this._fov)*this._horizonShift;u[8]=2*-e.x/this.width,u[9]=2*(e.y+h)/this.height,this.skyboxMatrix=t.multiply(c,u,c);const d=this.point,f=d.x,p=d.y,m=this.width%2/2,g=this.height%2/2,y=Math.cos(this.angle),v=Math.sin(this.angle),b=f-Math.round(f)+y*m+v*g,x=p-Math.round(p)+y*g+v*m,w=new Float64Array(a);if(t.translate(w,w,[b>.5?b-1:b,x>.5?x-1:x,0]),this.alignedProjMatrix=w,a=t.create(),t.scale(a,a,[this.width/2,-this.height/2,1]),t.translate(a,a,[1,-1,0]),this.labelPlaneMatrix=a,a=t.create(),t.scale(a,a,[1,-1,1]),t.translate(a,a,[-1,-1,0]),t.scale(a,a,[2/this.width,2/this.height,1]),this.glCoordMatrix=a,this.pixelMatrix=t.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),this._calcFogMatrices(),this._distanceTileDataCache={},a=t.invert(new Float64Array(16),this.pixelMatrix),!a)throw new Error("failed to invert matrix");if(this.pixelMatrixInverse=a,"globe"===this.projection.name||this.mercatorFromTransition){this.globeMatrix=t.calculateGlobeMatrix(this);const e=[this.globeMatrix[12],this.globeMatrix[13],this.globeMatrix[14]];this.globeCenterInViewSpace=t.transformMat4(e,e,o),this.globeRadius=this.worldSize/2/Math.PI-1}else this.globeMatrix=a;this._projMatrixCache={},this._alignedProjMatrixCache={},this._pixelsToTileUnitsCache={}}_calcFogMatrices(){this._fogTileMatrixCache={};const e=this.cameraWorldSizeForFog,i=this.cameraPixelsPerMeter,n=this._camera.position,r=1/this.height/this._pixelsPerMercatorPixel,o=[e,e,i];t.scale$2(o,o,r),t.scale$2(n,n,-1),t.multiply$2(n,n,o);const s=t.create();t.translate(s,s,n),t.scale(s,s,o),this.mercatorFogMatrix=s,this.worldToFogMatrix=this._camera.getWorldToCameraPosition(e,i,r)}_computeCameraPosition(t){const e=(t=t||this.pixelsPerMeter)/this.pixelsPerMeter,i=this._camera.forward(),n=this.point,r=this._mercatorZfromZoom(this._seaLevelZoom?this._seaLevelZoom:this._zoom)*e-t/this.worldSize*this._centerAltitude;return[n.x/this.worldSize-i[0]*r,n.y/this.worldSize-i[1]*r,t/this.worldSize*this._centerAltitude-i[2]*r]}_updateCameraState(){this.height&&(this._camera.setPitchBearing(this._pitch,this.angle),this._camera.position=this._computeCameraPosition())}_translateCameraConstrained(e){const i=this._maxCameraBoundsDistance()*Math.cos(this._pitch),n=this._camera.position[2],r=e[2];let o=1;this.projection.wrap&&(this.center=this.center.wrap()),r>0&&(o=Math.min((i-n)/r,1)),this._camera.position=t.scaleAndAdd([],this._camera.position,e,o),this._updateStateFromCamera()}_updateStateFromCamera(){const e=this._camera.position,i=this._camera.forward(),{pitch:n,bearing:r}=this._camera.getPitchBearing(),o=t.mercatorZfromAltitude(this._centerAltitude,this.center.lat)*this._pixelsPerMercatorPixel,s=this._mercatorZfromZoom(this._maxZoom)*Math.cos(t.degToRad(this._maxPitch)),a=Math.max((e[2]-o)/Math.cos(n),s),l=this._zoomFromMercatorZ(a);t.scaleAndAdd(e,e,i,a),this._pitch=t.clamp(n,t.degToRad(this.minPitch),t.degToRad(this.maxPitch)),this.angle=t.wrap(r,-Math.PI,Math.PI),this._setZoom(t.clamp(l,this._minZoom,this._maxZoom)),this._updateSeaLevelZoom(),this._center=this.coordinateLocation(new t.MercatorCoordinate(e[0],e[1],e[2])),this._unmodified=!1,this._constrain(),this._calcMatrices()}_worldSizeFromZoom(t){return Math.pow(2,t)*this.tileSize}_mercatorZfromZoom(t){return this.cameraToCenterDistance/this._worldSizeFromZoom(t)}_minimumHeightOverTerrain(){const t=Math.min((null!=this._seaLevelZoom?this._seaLevelZoom:this._zoom)+4,this._maxZoom);return this._mercatorZfromZoom(t)}_zoomFromMercatorZ(t){return this.scaleZoom(this.cameraToCenterDistance/(t*this.tileSize))}zoomFromMercatorZAdjusted(e){let i=0,n=t.GLOBE_ZOOM_THRESHOLD_MAX,r=0,o=1/0;for(;n-i>1e-6&&n>i;){const t=i+.5*(n-i),s=this.tileSize*Math.pow(2,t),a=this.getCameraToCenterDistance(this.projection,t,s),l=this.scaleZoom(a/(e*this.tileSize)),c=Math.abs(t-l);c<o&&(o=c,r=t),t<l?i=t:n=t}return r}_terrainEnabled(){return!(!this._elevation||!this.projection.supportsTerrain&&(t.warnOnce("Terrain is not yet supported with alternate projections. Use mercator or globe to enable terrain."),1))}anyCornerOffEdge(e,i){const n=Math.min(e.x,i.x),r=Math.max(e.x,i.x),o=Math.min(e.y,i.y),s=Math.max(e.y,i.y);if(o<this.horizonLineFromTop(!1))return!0;if("mercator"!==this.projection.name)return!1;const a=[new t.Point(n,o),new t.Point(r,s),new t.Point(n,s),new t.Point(r,o)],l=this.renderWorldCopies?-3:0,c=this.renderWorldCopies?4:1;for(const t of a){const e=this.pointRayIntersection(t);if(e.t<0)return!0;const i=this.rayIntersectionCoordinate(e);if(i.x<l||i.y<0||i.x>c||i.y>1)return!0}return!1}isHorizonVisible(){return this.pitch+t.radToDeg(this.fovAboveCenter)>88||this.anyCornerOffEdge(new t.Point(0,0),new t.Point(this.width,this.height))}zoomDeltaToMovement(e,i){const n=t.length(t.sub([],this._camera.position,e)),r=this._zoomFromMercatorZ(n)+i;return n-this._mercatorZfromZoom(r)}getCameraPoint(){if("globe"===this.projection.name){const e=function([e,i,n],r){const o=[e,i,n,1];t.transformMat4$1(o,o,r);const s=o[3]=Math.max(o[3],1e-6);return o[0]/=s,o[1]/=s,o[2]/=s,o}([this.globeMatrix[12],this.globeMatrix[13],this.globeMatrix[14]],this.pixelMatrix);return new t.Point(e[0],e[1])}{const e=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new t.Point(0,e))}}getCameraToCenterDistance(t,e=this.zoom,i=this.worldSize){const n=Gn(t,e,this.width,this.height,1024),r=t.pixelSpaceConversion(this.center.lat,i,n);return.5/Math.tan(.5*this._fov)*this.height*r}getWorldToCameraMatrix(){const e=this._camera.getWorldToCamera(this.worldSize,"meters"===this.projection.zAxisUnit?this.pixelsPerMeter:1);return"globe"===this.projection.name&&t.multiply(e,e,this.globeMatrix),e}}function Qn(t,e){let i=!1,n=null;const r=()=>{n=null,i&&(t(),n=setTimeout(r,e),i=!1)};return()=>(i=!0,n||r(),n)}class Yn{constructor(e){this._hashName=e&&encodeURIComponent(e),t.bindAll(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=Qn(this._updateHashUnthrottled.bind(this),300)}addTo(e){return this._map=e,t.window.addEventListener("hashchange",this._onHashChange,!1),e.on("moveend",this._updateHash),this}remove(){return this._map?(this._map.off("moveend",this._updateHash),t.window.removeEventListener("hashchange",this._onHashChange,!1),clearTimeout(this._updateHash()),this._map=void 0,this):this}getHashString(){const e=this._map;if(!e)return"";const i=Kn(e);if(this._hashName){const e=this._hashName;let n=!1;const r=t.window.location.hash.slice(1).split("&").map(t=>{const r=t.split("=")[0];return r===e?(n=!0,`${r}=${i}`):t}).filter(t=>t);return n||r.push(`${e}=${i}`),"#"+r.join("&")}return"#"+i}_getCurrentHash(){const e=t.window.location.hash.replace("#","");if(this._hashName){let t;return e.split("&").map(t=>t.split("=")).forEach(e=>{e[0]===this._hashName&&(t=e)}),(t&&t[1]||"").split("/")}return e.split("/")}_onHashChange(){const t=this._map;if(!t)return!1;const e=this._getCurrentHash();if(e.length>=3&&!e.some(t=>isNaN(t))){const i=t.dragRotate.isEnabled()&&t.touchZoomRotate.isEnabled()?+(e[3]||0):t.getBearing();return t.jumpTo({center:[+e[2],+e[1]],zoom:+e[0],bearing:i,pitch:+(e[4]||0)}),!0}return!1}_updateHashUnthrottled(){const e=t.window.location.href.replace(/(#.+)?$/,this.getHashString());t.window.history.replaceState(t.window.history.state,null,e)}}function Kn(t,e){const i=t.getCenter(),n=Math.round(100*t.getZoom())/100,r=Math.ceil((n*Math.LN2+Math.log(512/360/.5))/Math.LN10),o=Math.pow(10,r),s=Math.round(i.lng*o)/o,a=Math.round(i.lat*o)/o,l=t.getBearing(),c=t.getPitch();let u=e?`/${s}/${a}/${n}`:`${n}/${a}/${s}`;return(l||c)&&(u+="/"+Math.round(10*l)/10),c&&(u+="/"+Math.round(c)),u}const Jn={linearity:.3,easing:t.bezier(0,0,.3,1)},tr=t.extend({deceleration:2500,maxSpeed:1400},Jn),er=t.extend({deceleration:20,maxSpeed:1400},Jn),ir=t.extend({deceleration:1e3,maxSpeed:360},Jn),nr=t.extend({deceleration:1e3,maxSpeed:90},Jn);class rr{constructor(t){this._map=t,this.clear()}clear(){this._inertiaBuffer=[]}record(e){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:t.exported.now(),settings:e})}_drainInertiaBuffer(){const e=this._inertiaBuffer,i=t.exported.now();for(;e.length>0&&i-e[0].time>160;)e.shift()}_onMoveEnd(e){if(this._map._prefersReducedMotion())return;if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;const i={zoom:0,bearing:0,pitch:0,pan:new t.Point(0,0),pinchAround:void 0,around:void 0};for(const{settings:t}of this._inertiaBuffer)i.zoom+=t.zoomDelta||0,i.bearing+=t.bearingDelta||0,i.pitch+=t.pitchDelta||0,t.panDelta&&i.pan._add(t.panDelta),t.around&&(i.around=t.around),t.pinchAround&&(i.pinchAround=t.pinchAround);const n=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,r={};if(i.pan.mag()){const o=sr(i.pan.mag(),n,t.extend({},tr,e||{}));r.offset=i.pan.mult(o.amount/i.pan.mag()),r.center=this._map.transform.center,or(r,o)}if(i.zoom){const t=sr(i.zoom,n,er);r.zoom=this._map.transform.zoom+t.amount,or(r,t)}if(i.bearing){const e=sr(i.bearing,n,ir);r.bearing=this._map.transform.bearing+t.clamp(e.amount,-179,179),or(r,e)}if(i.pitch){const t=sr(i.pitch,n,nr);r.pitch=this._map.transform.pitch+t.amount,or(r,t)}if(r.zoom||r.bearing){const t=void 0===i.pinchAround?i.around:i.pinchAround;r.around=t?this._map.unproject(t):this._map.getCenter()}return this.clear(),r.noMoveStart=!0,r}}function or(t,e){(!t.duration||t.duration<e.duration)&&(t.duration=e.duration,t.easing=e.easing)}function sr(e,i,n){const{maxSpeed:r,linearity:o,deceleration:s}=n,a=t.clamp(e*o/(i/1e3),-r,r),l=Math.abs(a)/(s*o);return{easing:n.easing,duration:1e3*l,amount:a*(l/2)}}class ar extends t.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,i,n,r={}){const o=p(i.getCanvasContainer(),n),s=i.unproject(o);super(e,t.extend({point:o,lngLat:s,originalEvent:n},r)),this._defaultPrevented=!1,this.target=i}}class lr extends t.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,i,n){const r="touchend"===e?n.changedTouches:n.touches,o=m(i.getCanvasContainer(),r),s=o.map(t=>i.unproject(t)),a=o.reduce((t,e,i,n)=>t.add(e.div(n.length)),new t.Point(0,0));super(e,{points:o,point:a,lngLats:s,lngLat:i.unproject(a),originalEvent:n}),this._defaultPrevented=!1}}class cr extends t.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,e,i){super(t,{originalEvent:i}),this._defaultPrevented=!1}}class ur{constructor(t,e){this._map=t,this._clickTolerance=e.clickTolerance}reset(){this._mousedownPos=void 0}wheel(t){return this._firePreventable(new cr(t.type,this._map,t))}mousedown(t,e){return this._mousedownPos=e,this._firePreventable(new ar(t.type,this._map,t))}mouseup(t){this._map.fire(new ar(t.type,this._map,t))}preclick(e){const i=t.extend({},e);i.type="preclick",this._map.fire(new ar(i.type,this._map,i))}click(t,e){this._mousedownPos&&this._mousedownPos.dist(e)>=this._clickTolerance||(this.preclick(t),this._map.fire(new ar(t.type,this._map,t)))}dblclick(t){return this._firePreventable(new ar(t.type,this._map,t))}mouseover(t){this._map.fire(new ar(t.type,this._map,t))}mouseout(t){this._map.fire(new ar(t.type,this._map,t))}touchstart(t){return this._firePreventable(new lr(t.type,this._map,t))}touchmove(t){this._map.fire(new lr(t.type,this._map,t))}touchend(t){this._map.fire(new lr(t.type,this._map,t))}touchcancel(t){this._map.fire(new lr(t.type,this._map,t))}_firePreventable(t){if(this._map.fire(t),t.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class hr{constructor(t){this._map=t}reset(){this._delayContextMenu=!1,this._contextMenuEvent=void 0}mousemove(t){this._map.fire(new ar(t.type,this._map,t))}mousedown(){this._delayContextMenu=!0}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new ar("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(t){this._delayContextMenu?this._contextMenuEvent=t:this._map.fire(new ar(t.type,this._map,t)),this._map.listens("contextmenu")&&t.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class dr{constructor(t,e){this._map=t,this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=e.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(t,e){this.isEnabled()&&t.shiftKey&&0===t.button&&(u(),this._startPos=this._lastPos=e,this._active=!0)}mousemoveWindow(t,e){if(!this._active)return;const i=e,n=this._startPos,r=this._lastPos;if(!n||!r||r.equals(i)||!this._box&&i.dist(n)<this._clickTolerance)return;this._lastPos=i,this._box||(this._box=o("div","mapboxgl-boxzoom",this._container),this._container.classList.add("mapboxgl-crosshair"),this._fireEvent("boxzoomstart",t));const s=Math.min(n.x,i.x),a=Math.max(n.x,i.x),l=Math.min(n.y,i.y),c=Math.max(n.y,i.y);this._map._requestDomTask(()=>{this._box&&(this._box.style.transform=`translate(${s}px,${l}px)`,this._box.style.width=a-s+"px",this._box.style.height=c-l+"px")})}mouseupWindow(e,i){if(!this._active)return;const n=this._startPos,r=i;if(n&&0===e.button){if(this.reset(),f(),n.x!==r.x||n.y!==r.y)return this._map.fire(new t.Event("boxzoomend",{originalEvent:e})),{cameraAnimation:t=>t.fitScreenCoordinates(n,r,this._map.getBearing(),{linear:!1})};this._fireEvent("boxzoomcancel",e)}}keydown(t){this._active&&27===t.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",t))}blur(){this.reset()}reset(){this._active=!1,this._container.classList.remove("mapboxgl-crosshair"),this._box&&(this._box.remove(),this._box=null),h(),delete this._startPos,delete this._lastPos}_fireEvent(e,i){return this._map.fire(new t.Event(e,{originalEvent:i}))}}function fr(t,e){const i={};for(let n=0;n<t.length;n++)i[t[n].identifier]=e[n];return i}class pr{constructor(t){this.reset(),this.numTouches=t.numTouches}reset(){this.centroid=void 0,this.startTime=0,this.touches={},this.aborted=!1}touchstart(e,i,n){(this.centroid||n.length>this.numTouches)&&(this.aborted=!0),this.aborted||(0===this.startTime&&(this.startTime=e.timeStamp),n.length===this.numTouches&&(this.centroid=function(e){const i=new t.Point(0,0);for(const t of e)i._add(t);return i.div(e.length)}(i),this.touches=fr(n,i)))}touchmove(t,e,i){if(this.aborted||!this.centroid)return;const n=fr(i,e);for(const r in this.touches){const t=n[r];(!t||t.dist(this.touches[r])>30)&&(this.aborted=!0)}}touchend(t,e,i){if((!this.centroid||t.timeStamp-this.startTime>500)&&(this.aborted=!0),0===i.length){const t=!this.aborted&&this.centroid;if(this.reset(),t)return t}}}class mr{constructor(t){this.singleTap=new pr(t),this.numTaps=t.numTaps,this.reset()}reset(){this.lastTime=1/0,this.lastTap=void 0,this.count=0,this.singleTap.reset()}touchstart(t,e,i){this.singleTap.touchstart(t,e,i)}touchmove(t,e,i){this.singleTap.touchmove(t,e,i)}touchend(t,e,i){const n=this.singleTap.touchend(t,e,i);if(n){const e=t.timeStamp-this.lastTime<500,i=!this.lastTap||this.lastTap.dist(n)<30;if(e&&i||this.reset(),this.count++,this.lastTime=t.timeStamp,this.lastTap=n,this.count===this.numTaps)return this.reset(),n}}}class gr{constructor(){this._zoomIn=new mr({numTouches:1,numTaps:2}),this._zoomOut=new mr({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(t,e,i){this._zoomIn.touchstart(t,e,i),this._zoomOut.touchstart(t,e,i)}touchmove(t,e,i){this._zoomIn.touchmove(t,e,i),this._zoomOut.touchmove(t,e,i)}touchend(t,e,i){const n=this._zoomIn.touchend(t,e,i),r=this._zoomOut.touchend(t,e,i);return n?(this._active=!0,t.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:e=>e.easeTo({duration:300,zoom:e.getZoom()+1,around:e.unproject(n)},{originalEvent:t})}):r?(this._active=!0,t.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:e=>e.easeTo({duration:300,zoom:e.getZoom()-1,around:e.unproject(r)},{originalEvent:t})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}const yr={0:1,2:2};class _r{constructor(t){this.reset(),this._clickTolerance=t.clickTolerance||1}blur(){this.reset()}reset(){this._active=!1,this._moved=!1,this._lastPoint=void 0,this._eventButton=void 0}_correctButton(t,e){return!1}_move(t,e){return{}}mousedown(t,e){if(this._lastPoint)return;const i=g(t);this._correctButton(t,i)&&(this._lastPoint=e,this._eventButton=i)}mousemoveWindow(t,e){const i=this._lastPoint;if(i)if(t.preventDefault(),null!=this._eventButton&&function(t,e){const i=yr[e];return void 0===t.buttons||(t.buttons&i)!==i}(t,this._eventButton))this.reset();else if(this._moved||!(e.dist(i)<this._clickTolerance))return this._moved=!0,this._lastPoint=e,this._move(i,e)}mouseupWindow(t){this._lastPoint&&g(t)===this._eventButton&&(this._moved&&f(),this.reset())}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class vr extends _r{mousedown(t,e){super.mousedown(t,e),this._lastPoint&&(this._active=!0)}_correctButton(t,e){return 0===e&&!t.ctrlKey}_move(t,e){return{around:e,panDelta:e.sub(t)}}}class br extends _r{_correctButton(t,e){return 0===e&&t.ctrlKey||2===e}_move(t,e){const i=.8*(e.x-t.x);if(i)return this._active=!0,{bearingDelta:i}}contextmenu(t){t.preventDefault()}}class xr extends _r{_correctButton(t,e){return 0===e&&t.ctrlKey||2===e}
vendor: 4,520 bytes, line 39
39_move(t,e){const i=-.5*(e.y-t.y);if(i)return this._active=!0,{pitchDelta:i}}contextmenu(t){t.preventDefault()}}class wr{constructor(e,i){this._map=e,this._el=e.getCanvasContainer(),this._minTouches=1,this._clickTolerance=i.clickTolerance||1,this.reset(),t.bindAll(["_addTouchPanBlocker","_showTouchPanBlockerAlert"],this)}reset(){this._active=!1,this._touches={},this._sum=new t.Point(0,0)}touchstart(t,e,i){return this._calculateTransform(t,e,i)}touchmove(e,i,n){if(this._active&&!(n.length<this._minTouches)){if(this._map._cooperativeGestures&&!this._map.isMoving()){if(1===n.length&&!t.isFullscreen())return void this._showTouchPanBlockerAlert();"hidden"!==this._alertContainer.style.visibility&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}return e.cancelable&&e.preventDefault(),this._calculateTransform(e,i,n)}}touchend(t,e,i){this._calculateTransform(t,e,i),this._active&&i.length<this._minTouches&&this.reset()}touchcancel(){this.reset()}_calculateTransform(e,i,n){n.length>0&&(this._active=!0);const r=fr(n,i),o=new t.Point(0,0),s=new t.Point(0,0);let a=0;for(const t in r){const e=r[t],i=this._touches[t];i&&(o._add(e),s._add(e.sub(i)),a++,r[t]=e)}if(this._touches=r,a<this._minTouches||!s.mag())return;const l=s.div(a);return this._sum._add(l),this._sum.mag()<this._clickTolerance?void 0:{around:o.div(a),panDelta:l}}enable(){this._enabled=!0,this._map._cooperativeGestures&&(this._addTouchPanBlocker(),this._el.classList.add("mapboxgl-touch-pan-blocker-override","mapboxgl-scrollable-page"))}disable(){this._enabled=!1,this._map._cooperativeGestures&&(clearTimeout(this._alertTimer),this._alertContainer.remove(),this._el.classList.remove("mapboxgl-touch-pan-blocker-override","mapboxgl-scrollable-page")),this.reset()}isEnabled(){return!!this._enabled}isActive(){return!!this._active}_addTouchPanBlocker(){this._map&&!this._alertContainer&&(this._alertContainer=o("div","mapboxgl-touch-pan-blocker",this._map._container),this._alertContainer.textContent=this._map._getUIString("TouchPanBlocker.Message"),this._alertContainer.style.fontSize=Math.max(10,Math.min(24,Math.floor(.05*this._el.clientWidth)))+"px")}_showTouchPanBlockerAlert(){this._alertContainer.style.visibility="visible",this._alertContainer.classList.add("mapboxgl-touch-pan-blocker-show"),this._alertContainer.setAttribute("role","alert"),clearTimeout(this._alertTimer),this._alertTimer=setTimeout(()=>{this._alertContainer.classList.remove("mapboxgl-touch-pan-blocker-show"),this._alertContainer.setAttribute("role","null")},500)}}class Er{constructor(){this.reset()}reset(){this._active=!1,this._firstTwoTouches=void 0}_start(t){}_move(t,e,i){return{}}touchstart(t,e,i){this._firstTwoTouches||i.length<2||(this._firstTwoTouches=[i[0].identifier,i[1].identifier],this._start([e[0],e[1]]))}touchmove(t,e,i){const n=this._firstTwoTouches;if(!n)return;t.preventDefault();const[r,o]=n,s=Tr(i,e,r),a=Tr(i,e,o);if(!s||!a)return;const l=this._aroundCenter?null:s.add(a).div(2);return this._move([s,a],l,t)}touchend(t,e,i){if(!this._firstTwoTouches)return;const[n,r]=this._firstTwoTouches,o=Tr(i,e,n),s=Tr(i,e,r);o&&s||(this._active&&f(),this.reset())}touchcancel(){this.reset()}enable(t){this._enabled=!0,this._aroundCenter=!!t&&"center"===t.around}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}function Tr(t,e,i){for(let n=0;n<t.length;n++)if(t[n].identifier===i)return e[n]}function Sr(t,e){return Math.log(t/e)/Math.LN2}class kr extends Er{reset(){super.reset(),this._distance=0,this._startDistance=0}_start(t){this._startDistance=this._distance=t[0].dist(t[1])}_move(t,e){const i=this._distance;if(this._distance=t[0].dist(t[1]),this._active||!(Math.abs(Sr(this._distance,this._startDistance))<.1))return this._active=!0,{zoomDelta:Sr(this._distance,i),pinchAround:e}}}function Or(t,e){return 180*t.angleWith(e)/Math.PI}class Ar extends Er{reset(){super.reset(),this._minDiameter=0,this._startVector=void 0,this._vector=void 0}_start(t){this._startVector=this._vector=t[0].sub(t[1]),this._minDiameter=t[0].dist(t[1])}_move(t,e){const i=this._vector;if(this._vector=t[0].sub(t[1]),i&&(this._active||!this._isBelowThreshold(this._vector)))return this._active=!0,{bearingDelta:Or(this._vector,i),pinchAround:e}}_isBelowThreshold(t){this._minDiameter=Math.min(this._minDiameter,t.mag());const e=25/(Math.PI*this._minDiameter)*360,i=this._startVector;if(!i)return!1;const n=Or(t,i);return Math.abs(n)<e}}function Cr(t){return Math.abs(t.y)>Math.abs(t.x)}
vendor: 18,902 bytes, line 39
39class Ir extends Er{constructor(t){super(),this._map=t}reset(){super.reset(),this._valid=void 0,this._firstMove=void 0,this._lastPoints=void 0}_start(t){this._lastPoints=t,Cr(t[0].sub(t[1]))&&(this._valid=!1)}_move(e,i,n){const r=this._lastPoints;if(!r)return;const o=e[0].sub(r[0]),s=e[1].sub(r[1]);return this._map._cooperativeGestures&&!t.isFullscreen()&&n.touches.length<3||(this._valid=this.gestureBeginsVertically(o,s,n.timeStamp),!this._valid)?void 0:(this._lastPoints=e,this._active=!0,{pitchDelta:(o.y+s.y)/2*-.5})}gestureBeginsVertically(t,e,i){if(void 0!==this._valid)return this._valid;const n=t.mag()>=2,r=e.mag()>=2;if(!n&&!r)return;if(!n||!r)return null==this._firstMove&&(this._firstMove=i),i-this._firstMove<100&&void 0;const o=t.y>0==e.y>0;return Cr(t)&&Cr(e)&&o}}const Mr={panStep:100,bearingStep:15,pitchStep:10};class Pr{constructor(){const t=Mr;this._panStep=t.panStep,this._bearingStep=t.bearingStep,this._pitchStep=t.pitchStep,this._rotationDisabled=!1}blur(){this.reset()}reset(){this._active=!1}keydown(t){if(t.altKey||t.ctrlKey||t.metaKey)return;let e=0,i=0,n=0,r=0,o=0;switch(t.keyCode){case 61:case 107:case 171:case 187:e=1;break;case 189:case 109:case 173:e=-1;break;case 37:t.shiftKey?i=-1:(t.preventDefault(),r=-1);break;case 39:t.shiftKey?i=1:(t.preventDefault(),r=1);break;case 38:t.shiftKey?n=1:(t.preventDefault(),o=-1);break;case 40:t.shiftKey?n=-1:(t.preventDefault(),o=1);break;default:return}return this._rotationDisabled&&(i=0,n=0),{cameraAnimation:s=>{const a=s.getZoom();s.easeTo({duration:300,easeId:"keyboardHandler",easing:Dr,zoom:e?Math.round(a)+e*(t.shiftKey?2:1):a,bearing:s.getBearing()+i*this._bearingStep,pitch:s.getPitch()+n*this._pitchStep,offset:[-r*this._panStep,-o*this._panStep],center:s.getCenter()},{originalEvent:t})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function Dr(t){return t*(2-t)}const Lr=4.000244140625;class Rr{constructor(e,i){this._map=e,this._el=e.getCanvasContainer(),this._handler=i,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222,t.bindAll(["_onTimeout","_addScrollZoomBlocker","_showBlockerAlert"],this)}setZoomRate(t){this._defaultZoomRate=t}setWheelZoomRate(t){this._wheelZoomRate=t}isEnabled(){return!!this._enabled}isActive(){return this._active||void 0!==this._finishTimeout}isZooming(){return!!this._zooming}enable(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!t&&"center"===t.around,this._map._cooperativeGestures&&this._addScrollZoomBlocker())}disable(){this.isEnabled()&&(this._enabled=!1,this._map._cooperativeGestures&&(clearTimeout(this._alertTimer),this._alertContainer.remove()))}wheel(e){if(!this.isEnabled())return;if(this._map._cooperativeGestures){if(!(e.ctrlKey||e.metaKey||this.isZooming()||t.isFullscreen()))return void this._showBlockerAlert();"hidden"!==this._alertContainer.style.visibility&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}let i=e.deltaMode===t.window.WheelEvent.DOM_DELTA_LINE?40*e.deltaY:e.deltaY;const n=t.exported.now(),r=n-(this._lastWheelEventTime||0);this._lastWheelEventTime=n,0!==i&&i%Lr==0?this._type="wheel":0!==i&&Math.abs(i)<4?this._type="trackpad":r>400?(this._type=null,this._lastValue=i,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(r*i)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,i+=this._lastValue)),e.shiftKey&&i&&(i/=4),this._type&&(this._lastWheelEvent=e,this._delta-=i,this._active||this._start(e)),e.preventDefault()}_onTimeout(t){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(t)}_start(t){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);const e=p(this._el,t);this._aroundPoint=this._aroundCenter?this._map.transform.centerPoint:e,this._aroundCoord=this._map.transform.pointCoordinate3D(this._aroundPoint),this._targetZoom=void 0,this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}renderFrame(){if(!this._frameId)return;if(this._frameId=null,!this.isActive())return;const e=this._map.transform;"wheel"===this._type&&e.projection.wrap&&(e._center.lng>=180||e._center.lng<=-180)&&(this._prevEase=null,this._easing=null,this._lastWheelEvent=null,this._lastWheelEventTime=0);const i=()=>e._terrainEnabled()&&this._aroundCoord?e.computeZoomRelativeTo(this._aroundCoord):e.zoom;if(0!==this._delta){const t="wheel"===this._type&&Math.abs(this._delta)>Lr?this._wheelZoomRate:this._defaultZoomRate;let n=2/(1+Math.exp(-Math.abs(this._delta*t)));this._delta<0&&0!==n&&(n=1/n);const r=i(),o=Math.pow(2,r),s="number"==typeof this._targetZoom?e.zoomScale(this._targetZoom):o;this._targetZoom=Math.min(e.maxZoom,Math.max(e.minZoom,e.scaleZoom(s*n))),"wheel"===this._type&&(this._startZoom=r,this._easing=this._smoothOutEasing(200)),this._delta=0}const n="number"==typeof this._targetZoom?this._targetZoom:i(),r=this._startZoom,o=this._easing;let s,a=!1;if("wheel"===this._type&&r&&o){const e=Math.min((t.exported.now()-this._lastWheelEventTime)/200,1),i=o(e);s=t.number(r,n,i),e<1?this._frameId||(this._frameId=!0):a=!0}else s=n,a=!0;return this._active=!0,a&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._handler._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!a,zoomDelta:s-i(),around:this._aroundPoint,aroundCoord:this._aroundCoord,originalEvent:this._lastWheelEvent}}_smoothOutEasing(e){let i=t.ease;if(this._prevEase){const e=this._prevEase,n=(t.exported.now()-e.start)/e.duration,r=e.easing(n+.01)-e.easing(n),o=.27/Math.sqrt(r*r+1e-4)*.01,s=Math.sqrt(.0729-o*o);i=t.bezier(o,s,.25,1)}return this._prevEase={start:t.exported.now(),duration:e,easing:i},i}blur(){this.reset()}reset(){this._active=!1}_addScrollZoomBlocker(){this._map&&!this._alertContainer&&(this._alertContainer=o("div","mapboxgl-scroll-zoom-blocker",this._map._container),this._alertContainer.textContent=/(Mac|iPad)/i.test(t.window.navigator.userAgent)?this._map._getUIString("ScrollZoomBlocker.CmdMessage"):this._map._getUIString("ScrollZoomBlocker.CtrlMessage"),this._alertContainer.style.fontSize=Math.max(10,Math.min(24,Math.floor(.05*this._el.clientWidth)))+"px")}_showBlockerAlert(){this._alertContainer.style.visibility="visible",this._alertContainer.classList.add("mapboxgl-scroll-zoom-blocker-show"),this._alertContainer.setAttribute("role","alert"),clearTimeout(this._alertTimer),this._alertTimer=setTimeout(()=>{this._alertContainer.classList.remove("mapboxgl-scroll-zoom-blocker-show"),this._alertContainer.setAttribute("role","null")},200)}}class zr{constructor(t,e){this._clickZoom=t,this._tapZoom=e}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class jr{constructor(){this.reset()}reset(){this._active=!1}blur(){this.reset()}dblclick(t,e){return t.preventDefault(),{cameraAnimation:i=>{i.easeTo({duration:300,zoom:i.getZoom()+(t.shiftKey?-1:1),around:i.unproject(e)},{originalEvent:t})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Br{constructor(){this._tap=new mr({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,this._swipePoint=void 0,this._swipeTouch=0,this._tapTime=0,this._tap.reset()}touchstart(t,e,i){this._swipePoint||(this._tapTime&&t.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?i.length>0&&(this._swipePoint=e[0],this._swipeTouch=i[0].identifier):this._tap.touchstart(t,e,i))}touchmove(t,e,i){if(this._tapTime){if(this._swipePoint){if(i[0].identifier!==this._swipeTouch)return;const n=e[0],r=n.y-this._swipePoint.y;return this._swipePoint=n,t.preventDefault(),this._active=!0,{zoomDelta:r/128}}}else this._tap.touchmove(t,e,i)}touchend(t,e,i){this._tapTime?this._swipePoint&&0===i.length&&this.reset():this._tap.touchend(t,e,i)&&(this._tapTime=t.timeStamp)}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Fr{constructor(t,e,i){this._el=t,this._mousePan=e,this._touchPan=i}enable(t){this._inertiaOptions=t||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class Nr{constructor(t,e,i){this._pitchWithRotate=t.pitchWithRotate,this._mouseRotate=e,this._mousePitch=i}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class Vr{constructor(t,e,i,n){this._el=t,this._touchZoom=e,this._touchRotate=i,this._tapDragZoom=n,this._rotationDisabled=!1,this._enabled=!0}enable(t){this._touchZoom.enable(t),this._rotationDisabled||this._touchRotate.enable(t),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}const $r=t=>t.zoom||t.drag||t.pitch||t.rotate;class Ur extends t.Event{}class qr{constructor(){this.constants=[1,1,.01],this.radius=0}setup(e,i){const n=t.sub([],i,e);this.radius=t.length(n[2]<0?t.div([],n,this.constants):[n[0],n[1],0])}projectRay(e){t.div(e,e,this.constants),t.normalize(e,e),t.mul$1(e,e,this.constants);const i=t.scale$2([],e,this.radius);if(i[2]>0){const e=t.scale$2([],[0,0,1],t.dot(i,[0,0,1])),n=t.scale$2([],t.normalize([],[i[0],i[1],0]),this.radius),r=t.add([],i,t.scale$2([],t.sub([],t.add([],n,e),i),2));i[0]=r[0],i[1]=r[1]}return i}}function Gr(t){return t.panDelta&&t.panDelta.mag()||t.zoomDelta||t.bearingDelta||t.pitchDelta}class Wr{constructor(e,i){this._map=e,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new rr(e),this._bearingSnap=i.bearingSnap,this._previousActiveHandlers={},this._trackingEllipsoid=new qr,this._dragOrigin=null,this._eventsInProgress={},this._addDefaultHandlers(i),t.bindAll(["handleEvent","handleWindowEvent"],this);const n=this._el;this._listeners=[[n,"touchstart",{passive:!0}],[n,"touchmove",{passive:!1}],[n,"touchend",void 0],[n,"touchcancel",void 0],[n,"mousedown",void 0],[n,"mousemove",void 0],[n,"mouseup",void 0],[t.window.document,"mousemove",{capture:!0}],[t.window.document,"mouseup",void 0],[n,"mouseover",void 0],[n,"mouseout",void 0],[n,"dblclick",void 0],[n,"click",void 0],[n,"keydown",{capture:!1}],[n,"keyup",void 0],[n,"wheel",{passive:!1}],[n,"contextmenu",void 0],[t.window,"blur",void 0]];for(const[r,o,s]of this._listeners)r.addEventListener(o,r===t.window.document?this.handleWindowEvent:this.handleEvent,s)}destroy(){for(const[e,i,n]of this._listeners)e.removeEventListener(i,e===t.window.document?this.handleWindowEvent:this.handleEvent,n)}_addDefaultHandlers(t){const e=this._map,i=e.getCanvasContainer();this._add("mapEvent",new ur(e,t));const n=e.boxZoom=new dr(e,t);this._add("boxZoom",n);const r=new gr,o=new jr;e.doubleClickZoom=new zr(o,r),this._add("tapZoom",r),this._add("clickZoom",o);const s=new Br;this._add("tapDragZoom",s);const a=e.touchPitch=new Ir(e);this._add("touchPitch",a);const l=new br(t),c=new xr(t);e.dragRotate=new Nr(t,l,c),this._add("mouseRotate",l,["mousePitch"]),this._add("mousePitch",c,["mouseRotate"]);const u=new vr(t),h=new wr(e,t);e.dragPan=new Fr(i,u,h),this._add("mousePan",u),this._add("touchPan",h,["touchZoom","touchRotate"]);const d=new Ar,f=new kr;e.touchZoomRotate=new Vr(i,f,d,s),this._add("touchRotate",d,["touchPan","touchZoom"]),this._add("touchZoom",f,["touchPan","touchRotate"]),this._add("blockableMapEvent",new hr(e));const p=e.scrollZoom=new Rr(e,this);this._add("scrollZoom",p,["mousePan"]);const m=e.keyboard=new Pr;this._add("keyboard",m);for(const g of["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"])t.interactive&&t[g]&&e[g].enable(t[g])}_add(t,e,i){this._handlers.push({handlerName:t,handler:e,allowed:i}),this._handlersById[t]=e}stop(t){if(!this._updatingCamera){for(const{handler:t}of this._handlers)t.reset();this._inertia.clear(),this._fireEvents({},{},t),this._changes=[]}}isActive(){for(const{handler:t}of this._handlers)if(t.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!$r(this._eventsInProgress)||this.isZooming()}_isDragging(){return!!this._eventsInProgress.drag}_blockedByActive(t,e,i){for(const n in t)if(n!==i&&(!e||e.indexOf(n)<0))return!0;return!1}handleWindowEvent(t){this.handleEvent(t,t.type+"Window")}_getMapTouches(t){const e=[];for(const i of t)this._el.contains(i.target)&&e.push(i);return e}handleEvent(t,e){this._updatingCamera=!0;const i="renderFrame"===t.type,n=i?void 0:t,r={needsRenderFrame:!1},o={},s={},a=t.touches?this._getMapTouches(t.touches):void 0,l=a?m(this._el,a):i?void 0:p(this._el,t);for(const{handlerName:h,handler:d,allowed:f}of this._handlers){if(!d.isEnabled())continue;let i;this._blockedByActive(s,f,h)?d.reset():d[e||t.type]&&(i=d[e||t.type](t,l,a),this.mergeHandlerResult(r,o,i,h,n),i&&i.needsRenderFrame&&this._triggerRenderFrame()),(i||d.isActive())&&(s[h]=d)}const c={};for(const h in this._previousActiveHandlers)s[h]||(c[h]=n);this._previousActiveHandlers=s,(Object.keys(c).length||Gr(r))&&(this._changes.push([r,o,c]),this._triggerRenderFrame()),(Object.keys(s).length||Gr(r))&&this._map._stop(!0),this._updatingCamera=!1;const{cameraAnimation:u}=r;u&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],u(this._map))}mergeHandlerResult(e,i,n,r,o){if(!n)return;t.extend(e,n);const s={handlerName:r,originalEvent:n.originalEvent||o};void 0!==n.zoomDelta&&(i.zoom=s),void 0!==n.panDelta&&(i.drag=s),void 0!==n.pitchDelta&&(i.pitch=s),void 0!==n.bearingDelta&&(i.rotate=s)}_applyChanges(){const e={},i={},n={};for(const[r,o,s]of this._changes)r.panDelta&&(e.panDelta=(e.panDelta||new t.Point(0,0))._add(r.panDelta)),r.zoomDelta&&(e.zoomDelta=(e.zoomDelta||0)+r.zoomDelta),r.bearingDelta&&(e.bearingDelta=(e.bearingDelta||0)+r.bearingDelta),r.pitchDelta&&(e.pitchDelta=(e.pitchDelta||0)+r.pitchDelta),void 0!==r.around&&(e.around=r.around),void 0!==r.aroundCoord&&(e.aroundCoord=r.aroundCoord),void 0!==r.pinchAround&&(e.pinchAround=r.pinchAround),r.noInertia&&(e.noInertia=r.noInertia),t.extend(i,o),t.extend(n,s);this._updateMapTransform(e,i,n),this._changes=[]}_updateMapTransform(e,i,n){const r=this._map,o=r.transform,s=t=>[t.x,t.y,t.z];if((t=>{const e=this._eventsInProgress.drag;return e&&!this._handlersById[e.handlerName].isActive()})()&&!Gr(e)){const t=o.zoom;o.cameraElevationReference="sea",o.recenterOnTerrain(),o.cameraElevationReference="ground",t!==o.zoom&&this._map._update(!0)}if(o._isCameraConstrained&&r._stop(!0),!Gr(e))return void this._fireEvents(i,n,!0);let{panDelta:a,zoomDelta:l,bearingDelta:c,pitchDelta:u,around:h,aroundCoord:d,pinchAround:f}=e;o._isCameraConstrained&&(l>0&&(l=0),o._isCameraConstrained=!1),void 0!==f&&(h=f),(l||(t=>i[t]&&!this._eventsInProgress[t])("drag"))&&h&&(this._dragOrigin=s(o.pointCoordinate3D(h)),this._trackingEllipsoid.setup(o._camera.position,this._dragOrigin)),o.cameraElevationReference="sea",r._stop(!0),h=h||r.transform.centerPoint,c&&(o.bearing+=c),u&&(o.pitch+=u),o._updateCameraState();const p=[0,0,0];if(a)if("mercator"===o.projection.name){const t=this._trackingEllipsoid.projectRay(o.screenPointToMercatorRay(h).dir),e=this._trackingEllipsoid.projectRay(o.screenPointToMercatorRay(h.sub(a)).dir);p[0]=e[0]-t[0],p[1]=e[1]-t[1]}else{const e=o.pointCoordinate(h);if("globe"===o.projection.name){a=a.rotate(-o.angle);const i=o._pixelsPerMercatorPixel/o.worldSize;p[0]=-a.x*t.mercatorScale(t.latFromMercatorY(e.y))*i,p[1]=-a.y*t.mercatorScale(o.center.lat)*i}else{const t=o.pointCoordinate(h.sub(a));e&&t&&(p[0]=t.x-e.x,p[1]=t.y-e.y)}}const m=o.zoom,g=[0,0,0];if(l){const e=s(d||o.pointCoordinate3D(h)),i={dir:t.normalize([],t.sub([],e,o._camera.position))};if(i.dir[2]<0){const n=o.zoomDeltaToMovement(e,l);t.scale$2(g,i.dir,n)}}const y=t.add(p,p,g);o._translateCameraConstrained(y),l&&Math.abs(o.zoom-m)>1e-4&&o.recenterOnTerrain(),o.cameraElevationReference="ground",this._map._update(),e.noInertia||this._inertia.record(e),this._fireEvents(i,n,!0)}_fireEvents(e,i,n){const r=$r(this._eventsInProgress),o=$r(e),s={};for(const t in e){const{originalEvent:i}=e[t];this._eventsInProgress[t]||(s[t+"start"]=i),this._eventsInProgress[t]=e[t]}!r&&o&&this._fireEvent("movestart",o.originalEvent);for(const t in s)this._fireEvent(t,s[t]);o&&this._fireEvent("move",o.originalEvent);for(const t in e){const{originalEvent:i}=e[t];this._fireEvent(t,i)}const a={};let l;for(const t in this._eventsInProgress){const{handlerName:e,originalEvent:n}=this._eventsInProgress[t];this._handlersById[e].isActive()||(delete this._eventsInProgress[t],l=i[e]||n,a[t+"end"]=l)}for(const t in a)this._fireEvent(t,a[t]);const c=$r(this._eventsInProgress);if(n&&(r||o)&&!c){this._updatingCamera=!0;const e=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),i=t=>0!==t&&-this._bearingSnap<t&&t<this._bearingSnap;e?(i(e.bearing||this._map.getBearing())&&(e.bearing=0),this._map.easeTo(e,{originalEvent:l})):(this._map.fire(new t.Event("moveend",{originalEvent:l})),i(this._map.getBearing())&&this._map.resetNorth()),this._updatingCamera=!1}}_fireEvent(e,i){this._map.fire(new t.Event(e,i?{originalEvent:i}:{}))}_requestFrame(){return this._map.triggerRepaint(),this._map._renderTaskQueue.add(t=>{this._frameId=void 0,this.handleEvent(new Ur("renderFrame",{timeStamp:t})),this._applyChanges()})}
vendor: 4,671 bytes, line 39
39_triggerRenderFrame(){void 0===this._frameId&&(this._frameId=this._requestFrame())}}const Zr="map.setFreeCameraOptions(...) and map.getFreeCameraOptions() are not yet supported for non-mercator projections.";class Hr extends t.Evented{constructor(e,i){super(),this._moving=!1,this._zooming=!1,this.transform=e,this._bearingSnap=i.bearingSnap,this._respectPrefersReducedMotion=!1!==i.respectPrefersReducedMotion,t.bindAll(["_renderFrameCallback"],this)}getCenter(){return new t.LngLat(this.transform.center.lng,this.transform.center.lat)}setCenter(t,e){return this.jumpTo({center:t},e)}panBy(e,i,n){return e=t.Point.convert(e).mult(-1),this.panTo(this.transform.center,t.extend({offset:e},i),n)}panTo(e,i,n){return this.easeTo(t.extend({center:e},i),n)}getZoom(){return this.transform.zoom}setZoom(t,e){return this.jumpTo({zoom:t},e),this}zoomTo(e,i,n){return this.easeTo(t.extend({zoom:e},i),n)}zoomIn(t,e){return this.zoomTo(this.getZoom()+1,t,e),this}zoomOut(t,e){return this.zoomTo(this.getZoom()-1,t,e),this}getBearing(){return this.transform.bearing}setBearing(t,e){return this.jumpTo({bearing:t},e),this}getPadding(){return this.transform.padding}setPadding(t,e){return this.jumpTo({padding:t},e),this}rotateTo(e,i,n){return this.easeTo(t.extend({bearing:e},i),n)}resetNorth(e,i){return this.rotateTo(0,t.extend({duration:1e3},e),i),this}resetNorthPitch(e,i){return this.easeTo(t.extend({bearing:0,pitch:0,duration:1e3},e),i),this}snapToNorth(t,e){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(t,e):this}getPitch(){return this.transform.pitch}setPitch(t,e){return this.jumpTo({pitch:t},e),this}cameraForBounds(e,i){e=t.LngLatBounds.convert(e);const n=i&&i.bearing||0,r=i&&i.pitch||0,o=e.getNorthWest(),s=e.getSouthEast();return this._cameraForBounds(this.transform,o,s,n,r,i)}_extendCameraOptions(e){const i={top:0,bottom:0,right:0,left:0};if("number"==typeof(e=t.extend({padding:i,offset:[0,0],maxZoom:this.transform.maxZoom},e)).padding){const t=e.padding;e.padding={top:t,bottom:t,right:t,left:t}}return e.padding=t.extend(i,e.padding),e}_minimumAABBFrustumDistance(t,e){const i=e.max[0]-e.min[0],n=e.max[1]-e.min[1];return i/n>t.aspect?i/(2*Math.tan(.5*t.fovX)*t.aspect):n/(2*Math.tan(.5*t.fovY)*t.aspect)}_cameraForBoundsOnGlobe(e,i,n,r,o,s){const a=e.clone(),l=this._extendCameraOptions(s);a.bearing=r,a.pitch=o;const c=t.LngLat.convert(i),u=t.LngLat.convert(n),h=.5*(c.lat+u.lat),d=.5*(c.lng+u.lng),f=t.latLngToECEF(h,d),p=t.normalize([],f),m=t.normalize([],t.cross([],p,[0,1,0])),g=t.cross([],m,p),y=[m[0],m[1],m[2],0,g[0],g[1],g[2],0,p[0],p[1],p[2],0,0,0,0,1],_=[f,t.latLngToECEF(c.lat,c.lng),t.latLngToECEF(u.lat,c.lng),t.latLngToECEF(u.lat,u.lng),t.latLngToECEF(c.lat,u.lng),t.latLngToECEF(h,c.lng),t.latLngToECEF(h,u.lng),t.latLngToECEF(c.lat,d),t.latLngToECEF(u.lat,d)];let v=t.Aabb.fromPoints(_.map(e=>[t.dot(m,e),t.dot(g,e),t.dot(p,e)]));const b=t.transformMat4([],v.center,y);0===t.squaredLength(b)&&t.set(b,0,0,1),t.normalize(b,b),t.scale$2(b,b,t.GLOBE_RADIUS),a.center=t.ecefToLatLng(b);const x=a.getWorldToCameraMatrix(),w=t.invert(new Float64Array(16),x);v=t.Aabb.applyTransform(v,t.multiply([],x,y)),t.transformMat4(b,b,x);const E=.5*(v.max[2]-v.min[2]),T=this._minimumAABBFrustumDistance(a,v),S=t.scale$2([],[0,0,1],E),k=t.add(S,b,S),O=T+(0===a.pitch?0:t.distance(b,k)),A=a.globeCenterInViewSpace,C=t.sub([],b,[A[0],A[1],A[2]]);t.normalize(C,C),t.scale$2(C,C,O);const I=t.add([],b,C);t.transformMat4(I,I,w);const M=t.earthRadius/t.GLOBE_RADIUS,P=t.length(I),D=t.mercatorZfromAltitude(Math.max(P*M-t.earthRadius,Number.EPSILON),0),L=Math.min(a.zoomFromMercatorZAdjusted(D),l.maxZoom);return L>.5*(t.GLOBE_ZOOM_THRESHOLD_MIN+t.GLOBE_ZOOM_THRESHOLD_MAX)?(a.setProjection({name:"mercator"}),a.zoom=L,this._cameraForBounds(a,i,n,r,o,s)):{center:a.center,zoom:L,bearing:r,pitch:o}}queryTerrainElevation(e,i){const n=this.transform.elevation;return n?(i=t.extend({},{exaggerated:!0},i),n.getAtPoint(t.MercatorCoordinate.fromLngLat(e),null,i.exaggerated)):null}_cameraForBounds(e,i,n,r,o,s){if("globe"===e.projection.name)return this._cameraForBoundsOnGlobe(e,i,n,r,o,s);const a=e.clone(),l=this._extendCameraOptions(s),c=a.padding;a.bearing=r,a.pitch=o;const u=t.LngLat.convert(i),h=t.LngLat.convert(n),d=new t.LngLat(u.lng,h.lat),f=new t.LngLat(h.lng,u.lat),p=a.project(u),m=a.project(h),g=this.queryTerrainElevation(u),y=this.queryTerrainElevation(h),_=this.queryTerrainElevation(d),v=this.queryTerrainElevation(f),b=[[p.x,p.y,Math.min(g||0,y||0,_||0,v||0)],[m.x,m.y,Math.max(g||0,y||0,_||0,v||0)]];let x=t.Aabb.fromPoints(b);const w=a.getWorldToCameraMatrix(),E=t.invert(new Float64Array(16),w);x=t.Aabb.applyTransform(x,w);
39const T=t.sub([],x.max,x.min),S=c.left||0,k=c.right||0,O=c.bottom||0,A=c.top||0,{left:C,right:I,top:M,bottom:P}=l.padding,D=.5*(S+k),L=.5*(A+O),R=Math.min(a.scaleZoom(a.scale*Math.min((a.width-(S+k+C+I))/T[0],(a.height-(O+A+P+M))/T[1])),l.maxZoom),z=a.scale/a.zoomScale(R);x=new t.Aabb([x.min[0]-(C+D)*z,x.min[1]-(P+L)*z,x.min[2]],[x.max[0]+(I+D)*z,x.max[1]+(M+L)*z,x.max[2]]);const j=.5*T[2],B=this._minimumAABBFrustumDistance(a,x),F=[0,0,1,0];t.transformMat4$1(F,F,w),t.normalize$2(F,F);const N=t.scale$2([],F,B+j),V=t.add([],x.center,N),$=("number"==typeof l.offset.x&&"number"==typeof l.offset.y?new t.Point(l.offset.x,l.offset.y):t.Point.convert(l.offset)).rotate(-t.degToRad(r));x.center[0]-=$.x*z,x.center[1]+=$.y*z,t.transformMat4(x.center,x.center,E),t.transformMat4(V,V,E);const U=[x.center[0],x.center[1],V[2]*a.pixelsPerMeter];t.scale$2(U,U,1/a.worldSize);const q=t.lngFromMercatorX(U[0]),G=t.latFromMercatorY(U[1]),W=Math.min(a._zoomFromMercatorZ(U[2]),l.maxZoom),Z=new t.LngLat(q,G);return a.mercatorFromTransition&&W<.5*(t.GLOBE_ZOOM_THRESHOLD_MIN+t.GLOBE_ZOOM_THRESHOLD_MAX)?(a.setProjection({name:"globe"}),a.zoom=W,this._cameraForBounds(a,i,n,r,o,s)):{center:Z,zoom:W,bearing:r,pitch:o}}fitBounds(t,e,i){const n=this.cameraForBounds(t,e);return this._fitInternal(n,e,i)}fitScreenCoordinates(e,i,n,r,o){const s=t.Point.convert(e),a=t.Point.convert(i),l=new t.Point(Math.min(s.x,a.x),Math.min(s.y,a.y)),c=new t.Point(Math.max(s.x,a.x),Math.max(s.y,a.y));if("mercator"===this.transform.projection.name&&this.transform.anyCornerOffEdge(s,a))return this;const u=this.transform.pointLocation3D(l),h=this.transform.pointLocation3D(c),d=this.transform.pointLocation3D(new t.Point(l.x,c.y)),f=this.transform.pointLocation3D(new t.Point(c.x,l.y)),p=[Math.min(u.lng,h.lng,d.lng,f.lng),Math.min(u.lat,h.lat,d.lat,f.lat)],m=[Math.max(u.lng,h.lng,d.lng,f.lng),Math.max(u.lat,h.lat,d.lat,f.lat)],g=r&&r.pitch?r.pitch:this.getPitch(),y=this._cameraForBounds(this.transform,p,m,n,g,r);return this._fitInternal(y,r,o)}_fitInternal(e,i,n){return e?(delete(i=t.extend(e,i)).padding,i.linear?this.easeTo(i,n):this.flyTo(i,n)):this}jumpTo(e,i){this.stop();const n=e.preloadOnly?this.transform.clone():this.transform;let r=!1,o=!1,s=!1;return"zoom"in e&&n.zoom!==+e.zoom&&(r=!0,n.zoom=+e.zoom),void 0!==e.center&&(n.center=t.LngLat.convert(e.center)),"bearing"in e&&n.bearing!==+e.bearing&&(o=!0,n.bearing=+e.bearing),"pitch"in e&&n.pitch!==+e.pitch&&(s=!0,n.pitch=+e.pitch),null==e.padding||n.isPaddingEqual(e.padding)||(n.padding=e.padding),e.preloadOnly?(this._preloadTiles(n),this):(this.fire(new t.Event("movestart",i)).fire(new t.Event("move",i)),r&&this.fire(new t.Event("zoomstart",i)).fire(new t.Event("zoom",i)).fire(new t.Event("zoomend",i)),o&&this.fire(new t.Event("rotatestart",i)).fire(new t.Event("rotate",i)).fire(new t.Event("rotateend",i)),s&&this.fire(new t.Event("pitchstart",i)).fire(new t.Event("pitch",i)).fire(new t.Event("pitchend",i)),this.fire(new t.Event("moveend",i)))}getFreeCameraOptions(){return this.transform.projection.supportsFreeCamera||t.warnOnce(Zr),this.transform.getFreeCameraOptions()}setFreeCameraOptions(e,i){const n=this.transform;if(!n.projection.supportsFreeCamera)return t.warnOnce(Zr),this;this.stop();const r=n.zoom,o=n.pitch,s=n.bearing;n.setFreeCameraOptions(e);const a=r!==n.zoom,l=o!==n.pitch,c=s!==n.bearing;return this.fire(new t.Event("movestart",i)).fire(new t.Event("move",i)),a&&this.fire(new t.Event("zoomstart",i)).fire(new t.Event("zoom",i)).fire(new t.Event("zoomend",i)),c&&this.fire(new t.Event("rotatestart",i)).fire(new t.Event("rotate",i)).fire(new t.Event("rotateend",i)),l&&this.fire(new t.Event("pitchstart",i)).fire(new t.Event("pitch",i)).fire(new t.Event("pitchend",i)),this.fire(new t.Event("moveend",i)),this}easeTo(e,i){this._stop(!1,e.easeId),(!1===(e=t.extend({offset:[0,0],duration:500,easing:t.ease},e)).animate||this._prefersReducedMotion(e))&&(e.duration=0);const n=this.transform,r=this.getZoom(),o=this.getBearing(),s=this.getPitch(),a=this.getPadding(),l="zoom"in e?+e.zoom:r,c="bearing"in e?this._normalizeBearing(e.bearing,o):o,u="pitch"in e?+e.pitch:s,h="padding"in e?e.padding:n.padding,d=t.Point.convert(e.offset);let f,p,m;if("globe"===n.projection.name){const i=t.MercatorCoordinate.fromLngLat(n.center),r=d.rotate(-n.angle);i.x+=r.x/n.worldSize,i.y+=r.y/n.worldSize;const o=i.toLngLat(),s=t.LngLat.convert(e.center||o);this._normalizeCenter(s),f=n.centerPoint.add(r),p=new t.Point(i.x,i.y).mult(n.worldSize),m=new t.Point(t.mercatorXfromLng(s.lng),t.mercatorYfromLat(s.lat)).mult(n.worldSize).sub(p)}else{f=n.centerPoint.add(d);const i=n.pointLocation(f),r=t.LngLat.convert(e.center||i);this._normalizeCenter(r),p=n.project(i),m=n.project(r).sub(p)}const g=n.zoomScale(l-r);let y,_;e.around&&(y=t.LngLat.convert(e.around),_=n.locationPoint(y));const v=this._zooming||l!==r,b=this._rotating||o!==c,x=this._pitching||u!==s,w=!n.isPaddingEqual(h),E=n=>E=>{if(v&&(n.zoom=t.number(r,l,E)),b&&(n.bearing=t.number(o,c,E)),x&&(n.pitch=t.number(s,u,E)),w&&(n.interpolatePadding(a,h,E),f=n.centerPoint.add(d)),y)n.setLocationAtPoint(y,_);else{const t=n.zoomScale(n.zoom-r),e=l>r?Math.min(2,g):Math.max(.5,g),i=Math.pow(e,1-E),o=n.unproject(p.add(m.mult(E*i)).mult(t));
vendor: 14,409 bytes, line 39
39n.setLocationAtPoint(n.renderWorldCopies?o.wrap():o,f)}return e.preloadOnly||this._fireMoveEvents(i),n};if(e.preloadOnly){const t=this._emulate(E,e.duration,n);return this._preloadTiles(t),this}const T={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=v,this._rotating=b,this._pitching=x,this._padding=w,this._easeId=e.easeId,this._prepareEase(i,e.noMoveStart,T),this._ease(E(n),t=>{n.recenterOnTerrain(),this._afterEase(i,t)},e),this}_prepareEase(e,i,n={}){this._moving=!0,this.transform.cameraElevationReference="sea",i||n.moving||this.fire(new t.Event("movestart",e)),this._zooming&&!n.zooming&&this.fire(new t.Event("zoomstart",e)),this._rotating&&!n.rotating&&this.fire(new t.Event("rotatestart",e)),this._pitching&&!n.pitching&&this.fire(new t.Event("pitchstart",e))}_fireMoveEvents(e){this.fire(new t.Event("move",e)),this._zooming&&this.fire(new t.Event("zoom",e)),this._rotating&&this.fire(new t.Event("rotate",e)),this._pitching&&this.fire(new t.Event("pitch",e))}_afterEase(e,i){if(this._easeId&&i&&this._easeId===i)return;this._easeId=void 0,this.transform.cameraElevationReference="ground";const n=this._zooming,r=this._rotating,o=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,n&&this.fire(new t.Event("zoomend",e)),r&&this.fire(new t.Event("rotateend",e)),o&&this.fire(new t.Event("pitchend",e)),this.fire(new t.Event("moveend",e))}flyTo(e,i){if(this._prefersReducedMotion(e)){const n=t.pick(e,["center","zoom","bearing","pitch","around"]);return this.jumpTo(n,i)}this.stop(),e=t.extend({offset:[0,0],speed:1.2,curve:1.42,easing:t.ease},e);const n=this.transform,r=this.getZoom(),o=this.getBearing(),s=this.getPitch(),a=this.getPadding(),l="zoom"in e?t.clamp(+e.zoom,n.minZoom,n.maxZoom):r,c="bearing"in e?this._normalizeBearing(e.bearing,o):o,u="pitch"in e?+e.pitch:s,h="padding"in e?e.padding:n.padding,d=n.zoomScale(l-r),f=t.Point.convert(e.offset);let p=n.centerPoint.add(f);const m=n.pointLocation(p),g=t.LngLat.convert(e.center||m);this._normalizeCenter(g);const y=n.project(m),_=n.project(g).sub(y);let v=e.curve;const b=Math.max(n.width,n.height),x=b/d,w=_.mag();if("minZoom"in e){const i=t.clamp(Math.min(e.minZoom,r,l),n.minZoom,n.maxZoom),o=b/n.zoomScale(i-r);v=Math.sqrt(o/w*2)}const E=v*v;function T(t){const e=(x*x-b*b+(t?-1:1)*E*E*w*w)/(2*(t?x:b)*E*w);return Math.log(Math.sqrt(e*e+1)-e)}function S(t){return(Math.exp(t)-Math.exp(-t))/2}function k(t){return(Math.exp(t)+Math.exp(-t))/2}const O=T(0);let A=function(t){return k(O)/k(O+v*t)},C=function(t){return b*((k(O)*(S(e=O+v*t)/k(e))-S(O))/E)/w;var e},I=(T(1)-O)/v;if(Math.abs(w)<1e-6||!isFinite(I)){if(Math.abs(b-x)<1e-6)return this.easeTo(e,i);const t=x<b?-1:1;I=Math.abs(Math.log(x/b))/v,C=function(){return 0},A=function(e){return Math.exp(t*v*e)}}e.duration="duration"in e?+e.duration:1e3*I/("screenSpeed"in e?+e.screenSpeed/v:+e.speed),e.maxDuration&&e.duration>e.maxDuration&&(e.duration=0);const M=o!==c,P=u!==s,D=!n.isPaddingEqual(h),L=n=>d=>{const m=d*I,v=1/A(m);n.zoom=1===d?l:r+n.scaleZoom(v),M&&(n.bearing=t.number(o,c,d)),P&&(n.pitch=t.number(s,u,d)),D&&(n.interpolatePadding(a,h,d),p=n.centerPoint.add(f));const b=1===d?g:n.unproject(y.add(_.mult(C(m))).mult(v));return n.setLocationAtPoint(n.renderWorldCopies?b.wrap():b,p),n._updateCameraOnTerrain(),e.preloadOnly||this._fireMoveEvents(i),n};if(e.preloadOnly){const t=this._emulate(L,e.duration,n);return this._preloadTiles(t),this}return this._zooming=!0,this._rotating=M,this._pitching=P,this._padding=D,this._prepareEase(i,!1),this._ease(L(n),()=>this._afterEase(i),e),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(t,e){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),this._easeFrameId=void 0,this._onEaseFrame=void 0),this._onEaseEnd){const t=this._onEaseEnd;this._onEaseEnd=void 0,t.call(this,e)}if(!t){const t=this.handlers;t&&t.stop(!1)}return this}_ease(e,i,n){!1===n.animate||0===n.duration?(e(1),i()):(this._easeStart=t.exported.now(),this._easeOptions=n,this._onEaseFrame=e,this._onEaseEnd=i,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_renderFrameCallback(){const e=Math.min((t.exported.now()-this._easeStart)/this._easeOptions.duration,1),i=this._onEaseFrame;i&&i(this._easeOptions.easing(e)),e<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()}_normalizeBearing(e,i){e=t.wrap(e,-180,180);const n=Math.abs(e-i);return Math.abs(e-360-i)<n&&(e-=360),Math.abs(e+360-i)<n&&(e+=360),e}_normalizeCenter(t){const e=this.transform;if(!e.renderWorldCopies||e.maxBounds)return;const i=t.lng-e.center.lng;t.lng+=i>180?-360:i<-180?360:0}_prefersReducedMotion(e){return this._respectPrefersReducedMotion&&t.exported.prefersReducedMotion&&!(e&&e.essential)}_emulate(t,e,i){const n=Math.ceil(15*e/1e3),r=[],o=t(i.clone());for(let s=0;s<=n;s++){const t=o(s/n);r.push(t.clone())}return r}}class Xr{constructor(e={}){this.options=e,t.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)}getDefaultPosition(){return"bottom-right"}onAdd(t){const e=this.options&&this.options.compact;return this._map=t,this._container=o("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=o("button","mapboxgl-ctrl-attrib-button",this._container),o("span","mapboxgl-ctrl-icon",this._compactButton).setAttribute("aria-hidden","true"),this._compactButton.type="button",this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=o("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),e&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===e&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0}_setElementTitle(t,e){const i=this._map._getUIString("AttributionControl."+e);t.setAttribute("aria-label",i),t.removeAttribute("title"),t.firstElementChild&&t.firstElementChild.setAttribute("title",i)}_toggleAttribution(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","true"))}_updateEditLink(){let e=this._editLink;e||(e=this._editLink=this._container.querySelector(".mapbox-improve-map"));const i=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||t.config.ACCESS_TOKEN}];if(e){const n=i.reduce((t,e,n)=>(e.value&&(t+=`${e.key}=${e.value}${n<i.length-1?"&":""}`),t),"?");e.href=`${t.config.FEEDBACK_URL}/${n}#${Kn(this._map,!0)}`,e.rel="noopener nofollow",this._setElementTitle(e,"MapFeedback")}}_updateData(t){!t||"metadata"!==t.sourceDataType&&"visibility"!==t.sourceDataType&&"style"!==t.dataType||(this._updateAttributions(),this._updateEditLink())}_updateAttributions(){if(!this._map.style)return;let t=[];if(this._map.style.stylesheet){const t=this._map.style.stylesheet;this.styleOwner=t.owner,this.styleId=t.id}const e=this._map.style._sourceCaches;for(const n in e){const i=e[n];if(i.used){const e=i.getSource();e.attribution&&t.indexOf(e.attribution)<0&&t.push(e.attribution)}}t.sort((t,e)=>t.length-e.length),t=t.filter((e,i)=>{for(let n=i+1;n<t.length;n++)if(t[n].indexOf(e)>=0)return!1;return!0}),this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?t=[...this.options.customAttribution,...t]:t.unshift(this.options.customAttribution));const i=t.join(" | ");i!==this._attribHTML&&(this._attribHTML=i,t.length?(this._innerContainer.innerHTML=i,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}_updateCompact(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")}}class Qr{constructor(){t.bindAll(["_updateLogo","_updateCompact"],this)}onAdd(t){this._map=t,this._container=o("div","mapboxgl-ctrl");const e=o("a","mapboxgl-ctrl-logo");return e.target="_blank",e.rel="noopener nofollow",e.href="https://www.mapbox.com/",e.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),e.setAttribute("rel","noopener nofollow"),this._container.appendChild(e),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){this._container.remove(),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)}getDefaultPosition(){return"bottom-left"}_updateLogo(t){t&&"metadata"!==t.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")}_logoRequired(){if(!this._map.style)return!0;const t=this._map.style._sourceCaches;if(0===Object.entries(t).length)return!0;for(const e in t){const i=t[e].getSource();if(i.hasOwnProperty("mapbox_logo")&&!i.mapbox_logo)return!1}return!0}_updateCompact(){const t=this._container.children;if(t.length){const e=t[0];this._map.getCanvasContainer().offsetWidth<250?e.classList.add("mapboxgl-compact"):e.classList.remove("mapboxgl-compact")}}}class Yr{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(t){const e=++this._id;return this._queue.push({callback:t,id:e,cancelled:!1}),e}remove(t){const e=this._currentlyRunning,i=e?this._queue.concat(e):this._queue;for(const n of i)if(n.id===t)return void(n.cancelled=!0)}run(t=0){const e=this._currentlyRunning=this._queue;this._queue=[];for(const i of e)if(!i.cancelled&&(i.callback(t),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}function Kr(e,i,n){if(e=new t.LngLat(e.lng,e.lat),i){const r=new t.LngLat(e.lng-360,e.lat),o=new t.LngLat(e.lng+360,e.lat),s=360*Math.ceil(Math.abs(e.lng-n.center.lng)/360),a=n.locationPoint(e).distSqr(i),l=i.x<0||i.y<0||i.x>n.width||i.y>n.height;n.locationPoint(r).distSqr(i)<a&&(l||Math.abs(r.lng-n.center.lng)<s)?e=r:n.locationPoint(o).distSqr(i)<a&&(l||Math.abs(o.lng-n.center.lng)<s)&&(e=o)}for(;Math.abs(e.lng-n.center.lng)>180;){const t=n.locationPoint(e);if(t.x>=0&&t.y>=0&&t.x<=n.width&&t.y<=n.height)break;e.lng>n.center.lng?e.lng-=360:e.lng+=360}return e}const Jr={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};class to extends t.Evented{constructor(e,i){if(super(),(e instanceof t.window.HTMLElement||i)&&(e=t.extend({element:e},i)),t.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress","_clearFadeTimer"],this),this._anchor=e&&e.anchor||"center",this._color=e&&e.color||"#3FB1CE",this._scale=e&&e.scale||1,this._draggable=e&&e.draggable||!1,this._clickTolerance=e&&e.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=e&&e.rotation||0,this._rotationAlignment=e&&e.rotationAlignment||"auto",this._pitchAlignment=e&&e.pitchAlignment&&e.pitchAlignment||"auto",this._updateMoving=()=>this._update(!0),this._occludedOpacity=e&&e.occludedOpacity||.2,e&&e.element)this._element=e.element,this._offset=t.Point.convert(e&&e.offset||[0,0]);else{this._defaultMarker=!0,this._element=o("div");const i=41,n=27,r=s("svg",{display:"block",height:i*this._scale+"px",width:n*this._scale+"px",viewBox:`0 0 ${n} ${i}`},this._element),a=s("radialGradient",{id:"shadowGradient"},s("defs",{},r));s("stop",{offset:"10%","stop-opacity":.4},a),s("stop",{offset:"100%","stop-opacity":.05},a),s("ellipse",{cx:13.5,cy:34.8,rx:10.5,ry:5.25,fill:"url(#shadowGradient)"},r),s("path",{fill:this._color,d:"M27,13.5C27,19.07 20.25,27 14.75,34.5C14.02,35.5 12.98,35.5 12.25,34.5C6.75,27 0,19.22 0,13.5C0,6.04 6.04,0 13.5,0C20.96,0 27,6.04 27,13.5Z"},r),s("path",{opacity:.25,d:"M13.5,0C6.04,0 0,6.04 0,13.5C0,19.22 6.75,27 12.25,34.5C13,35.52 14.02,35.5 14.75,34.5C20.25,27 27,19.07 27,13.5C27,6.04 20.96,0 13.5,0ZM13.5,1C20.42,1 26,6.58 26,13.5C26,15.9 24.5,19.18 22.22,22.74C19.95,26.3 16.71,30.14 13.94,33.91C13.74,34.18 13.61,34.32 13.5,34.44C13.39,34.32 13.26,34.18 13.06,33.91C10.28,30.13 7.41,26.31 5.02,22.77C2.62,19.23 1,15.95 1,13.5C1,6.58 6.58,1 13.5,1Z"},r),s("circle",{fill:"white",cx:13.5,cy:13.5,r:5.5},r),this._offset=t.Point.convert(e&&e.offset||[0,-14])}this._element.hasAttribute("aria-label")||this._element.setAttribute("aria-label","Map marker"),this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",t=>{t.preventDefault()}),this._element.addEventListener("mousedown",t=>{t.preventDefault()});const n=this._element.classList;for(const t in Jr)n.remove("mapboxgl-marker-anchor-"+t);n.add("mapboxgl-marker-anchor-"+this._anchor),this._popup=null}addTo(t){return t===this._map||(this.remove(),this._map=t,t.getCanvasContainer().appendChild(this._element),t.on("move",this._updateMoving),t.on("moveend",this._update),t.on("remove",this._clearFadeTimer),t._addMarker(this),this.setDraggable(this._draggable),this._update(),t.on("click",this._onMapClick)),this}remove(){const t=this._map;return t&&(t.off("click",this._onMapClick),t.off("move",this._updateMoving),t.off("moveend",this._update),t.off("mousedown",this._addDragHandler),t.off("touchstart",this._addDragHandler),t.off("mouseup",this._onUp),t.off("touchend",this._onUp),t.off("mousemove",this._onMove),t.off("touchmove",this._onMove),t.off("remove",this._clearFadeTimer),t._removeMarker(this),this._map=void 0),this._clearFadeTimer(),this._element.remove(),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}
vendor: 3,836 bytes, line 39
39setLngLat(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(!0),this}getElement(){return this._element}setPopup(t){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeAttribute("role"),this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),t){if(!("offset"in t.options)){const e=38.1,i=13.5,n=Math.sqrt(Math.pow(i,2)/2);t.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-e],"bottom-left":[n,-1*(e-i+n)],"bottom-right":[-n,-1*(e-i+n)],left:[i,-1*(e-i)],right:[-i,-1*(e-i)]}:this._offset}this._popup=t,t._marker=this,this._lngLat&&this._popup.setLngLat(this._lngLat),this._element.setAttribute("role","button"),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress),this._element.setAttribute("aria-expanded","false")}return this}_onKeyPress(t){const e=t.code,i=t.charCode||t.keyCode;"Space"!==e&&"Enter"!==e&&32!==i&&13!==i||this.togglePopup()}_onMapClick(t){const e=t.originalEvent.target,i=this._element;this._popup&&(e===i||i.contains(e))&&this.togglePopup()}getPopup(){return this._popup}togglePopup(){const t=this._popup;return t?(t.isOpen()?(t.remove(),this._element.setAttribute("aria-expanded","false")):this._map&&(t.addTo(this._map),this._element.setAttribute("aria-expanded","true")),this):this}_behindTerrain(){const t=this._map,e=this._pos;if(!t||!e)return!1;const i=t.unproject(e),n=t.getFreeCameraOptions();if(!n.position)return!1;const r=n.position.toLngLat();return r.distanceTo(i)<.9*r.distanceTo(this._lngLat)}_evaluateOpacity(){const e=this._map;if(!e)return;const i=this._pos;if(!i||i.x<0||i.x>e.transform.width||i.y<0||i.y>e.transform.height)return void this._clearFadeTimer();const n=e.unproject(i);let r;e._showingGlobe()&&t.isLngLatBehindGlobe(e.transform,this._lngLat)?r=0:(r=1-e._queryFogOpacity(n),e.transform._terrainEnabled()&&e.getTerrain()&&this._behindTerrain()&&(r*=this._occludedOpacity)),this._element.style.opacity=""+r,this._element.style.pointerEvents=r>0?"auto":"none",this._popup&&this._popup._setOpacity(r),this._fadeTimer=null}_clearFadeTimer(){this._fadeTimer&&(clearTimeout(this._fadeTimer),this._fadeTimer=null)}_updateDOM(){const t=this._pos;if(!t||!this._map)return;const e=this._offset.mult(this._scale);this._element.style.transform=`\n translate(${t.x}px,${t.y}px)\n ${Jr[this._anchor]}\n ${this._calculateXYTransform()} ${this._calculateZTransform()}\n translate(${e.x}px,${e.y}px)\n `}_calculateXYTransform(){const e=this._pos,i=this._map,n=this.getPitchAlignment();if(!i||!e||"map"!==n)return"";if(!i._showingGlobe()){const t=i.getPitch();return t?`rotateX(${t}deg)`:""}const r=t.radToDeg(t.globeTiltAtLngLat(i.transform,this._lngLat)),o=e.sub(t.globeCenterToScreenPoint(i.transform)),s=Math.abs(o.x)+Math.abs(o.y);if(0===s)return"";const a=r/s;return`rotateX(${-o.y*a}deg) rotateY(${o.x*a}deg)`}_calculateZTransform(){const e=this._pos,i=this._map;if(!i||!e)return"";let n=0;const r=this.getRotationAlignment();if("map"===r)if(i._showingGlobe()){const e=i.project(new t.LngLat(this._lngLat.lng,this._lngLat.lat+.001)),r=i.project(new t.LngLat(this._lngLat.lng,this._lngLat.lat-.001)).sub(e);n=t.radToDeg(Math.atan2(r.y,r.x))-90}else n=-i.getBearing();else if("horizon"===r){const r=t.smoothstep(4,6,i.getZoom()),o=t.globeCenterToScreenPoint(i.transform);o.y+=r*i.transform.height;const s=e.sub(o),a=t.radToDeg(Math.atan2(s.y,s.x));n=(a>90?a-270:a+90)*(1-r)}return n+=this._rotation,n?`rotateZ(${n}deg)`:""}_update(e){t.window.cancelAnimationFrame(this._updateFrameId);const i=this._map;
vendor: 5,214 bytes, line 39
39i&&(i.transform.renderWorldCopies&&(this._lngLat=Kr(this._lngLat,this._pos,i.transform)),this._pos=i.project(this._lngLat),!0===e?this._updateFrameId=t.window.requestAnimationFrame(()=>{this._element&&this._pos&&this._anchor&&(this._pos=this._pos.round(),this._updateDOM())}):this._pos=this._pos.round(),i._requestDomTask(()=>{this._map&&(this._element&&this._pos&&this._anchor&&this._updateDOM(),(i._showingGlobe()||i.getTerrain()||i.getFog())&&!this._fadeTimer&&(this._fadeTimer=setTimeout(this._evaluateOpacity.bind(this),60)))}))}getOffset(){return this._offset}setOffset(e){return this._offset=t.Point.convert(e),this._update(),this}_onMove(e){const i=this._map;if(!i)return;const n=this._pointerdownPos,r=this._positionDelta;if(n&&r){if(!this._isDragging){const t=this._clickTolerance||i._clickTolerance;if(e.point.dist(n)<t)return;this._isDragging=!0}this._pos=e.point.sub(r),this._lngLat=i.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new t.Event("dragstart"))),this.fire(new t.Event("drag"))}}_onUp(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1;const e=this._map;e&&(e.off("mousemove",this._onMove),e.off("touchmove",this._onMove)),"active"===this._state&&this.fire(new t.Event("dragend")),this._state="inactive"}_addDragHandler(t){const e=this._map,i=this._pos;e&&i&&this._element.contains(t.originalEvent.target)&&(t.preventDefault(),this._positionDelta=t.point.sub(i),this._pointerdownPos=t.point,this._state="pending",e.on("mousemove",this._onMove),e.on("touchmove",this._onMove),e.once("mouseup",this._onUp),e.once("touchend",this._onUp))}setDraggable(t){this._draggable=!!t;const e=this._map;return e&&(t?(e.on("mousedown",this._addDragHandler),e.on("touchstart",this._addDragHandler)):(e.off("mousedown",this._addDragHandler),e.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(t){return this._rotation=t||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(t){return this._rotationAlignment=t||"auto",this._update(),this}getRotationAlignment(){return"auto"===this._rotationAlignment||"horizon"===this._rotationAlignment&&this._map&&!this._map._showingGlobe()?"viewport":this._rotationAlignment}setPitchAlignment(t){return this._pitchAlignment=t||"auto",this._update(),this}getPitchAlignment(){return"auto"===this._pitchAlignment?this.getRotationAlignment():this._pitchAlignment}setOccludedOpacity(t){return this._occludedOpacity=t||.2,this._update(),this}getOccludedOpacity(){return this._occludedOpacity}}const eo={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},io=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function no(e=new t.Point(0,0),i="bottom"){if("number"==typeof e){const n=Math.round(Math.sqrt(.5*Math.pow(e,2)));switch(i){case"top":return new t.Point(0,e);case"top-left":return new t.Point(n,n);case"top-right":return new t.Point(-n,n);case"bottom":return new t.Point(0,-e);case"bottom-left":return new t.Point(n,-n);case"bottom-right":return new t.Point(-n,-n);case"left":return new t.Point(e,0);case"right":return new t.Point(-e,0)}return new t.Point(0,0)}return e instanceof t.Point||Array.isArray(e)?t.Point.convert(e):t.Point.convert(e[i]||[0,0])}class ro{constructor(t){this.jumpTo(t)}getValue(e){if(e<=this._startTime)return this._start;if(e>=this._endTime)return this._end;const i=t.easeCubicInOut((e-this._startTime)/(this._endTime-this._startTime));return this._start*(1-i)+this._end*i}isEasing(t){return t>=this._startTime&&t<=this._endTime}jumpTo(t){this._startTime=-1/0,this._endTime=-1/0,this._start=t,this._end=t}easeTo(t,e,i){this._start=this.getValue(e),this._end=t,this._startTime=e,this._endTime=e+i}}const oo={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","Map.Title":"Map","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScrollZoomBlocker.CtrlMessage":"Use ctrl + scroll to zoom the map","ScrollZoomBlocker.CmdMessage":"Use â + scroll to zoom the map","TouchPanBlocker.Message":"Use two fingers to move the map"},so={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:85,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,performanceMetricsCollection:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,optimizeForTerrain:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,minTileCacheSize:null,maxTileC
vendor: 7,328 bytes, line 39
39acheSize:null,localIdeographFontFamily:"sans-serif",localFontFamily:null,transformRequest:null,accessToken:null,fadeDuration:300,respectPrefersReducedMotion:!0,crossSourceCollisions:!0},ao={showCompass:!0,showZoom:!0,visualizePitch:!1};class lo{constructor(e,i,n=!1){this._clickTolerance=10,this.element=i,this.mouseRotate=new br({clickTolerance:e.dragRotate._mouseRotate._clickTolerance}),this.map=e,n&&(this.mousePitch=new xr({clickTolerance:e.dragRotate._mousePitch._clickTolerance})),t.bindAll(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),i.addEventListener("mousedown",this.mousedown),i.addEventListener("touchstart",this.touchstart,{passive:!1}),i.addEventListener("touchmove",this.touchmove),i.addEventListener("touchend",this.touchend),i.addEventListener("touchcancel",this.reset)}down(t,e){this.mouseRotate.mousedown(t,e),this.mousePitch&&this.mousePitch.mousedown(t,e),u()}move(t,e){const i=this.map,n=this.mouseRotate.mousemoveWindow(t,e),r=n&&n.bearingDelta;if(r&&i.setBearing(i.getBearing()+r),this.mousePitch){const n=this.mousePitch.mousemoveWindow(t,e),r=n&&n.pitchDelta;r&&i.setPitch(i.getPitch()+r)}}off(){const t=this.element;t.removeEventListener("mousedown",this.mousedown),t.removeEventListener("touchstart",this.touchstart,{passive:!1}),t.removeEventListener("touchmove",this.touchmove),t.removeEventListener("touchend",this.touchend),t.removeEventListener("touchcancel",this.reset),this.offTemp()}offTemp(){h(),t.window.removeEventListener("mousemove",this.mousemove),t.window.removeEventListener("mouseup",this.mouseup)}mousedown(e){this.down(t.extend({},e,{ctrlKey:!0,preventDefault:()=>e.preventDefault()}),p(this.element,e)),t.window.addEventListener("mousemove",this.mousemove),t.window.addEventListener("mouseup",this.mouseup)}mousemove(t){this.move(t,p(this.element,t))}mouseup(t){this.mouseRotate.mouseupWindow(t),this.mousePitch&&this.mousePitch.mouseupWindow(t),this.offTemp()}touchstart(t){1!==t.targetTouches.length?this.reset():(this._startPos=this._lastPos=m(this.element,t.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:()=>t.preventDefault()},this._startPos))}touchmove(t){1!==t.targetTouches.length?this.reset():(this._lastPos=m(this.element,t.targetTouches)[0],this.move({preventDefault:()=>t.preventDefault()},this._lastPos))}touchend(t){0===t.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),this.reset()}reset(){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()}}const co={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0,showUserHeading:!1},uo={maxWidth:100,unit:"metric"},ho={kilometer:"km",meter:"m",mile:"mi",foot:"ft","nautical-mile":"nm"},fo={version:t.version,supported:i,setRTLTextPlugin:t.setRTLTextPlugin,getRTLTextPluginStatus:t.getRTLTextPluginStatus,Map:class extends Hr{constructor(e){if(t.LivePerformanceUtils.mark(t.PerformanceMarkers.create),null!=(e=t.extend({},so,e)).minZoom&&null!=e.maxZoom&&e.minZoom>e.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=e.minPitch&&null!=e.maxPitch&&e.minPitch>e.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=e.minPitch&&e.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=e.maxPitch&&e.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(e.antialias&&t.isSafariWithAntialiasingBug(t.window)&&(e.antialias=!1,t.warnOnce("Antialiasing is disabled for this WebGL context to avoid browser bug: https://github.com/mapbox/mapbox-gl-js/issues/11609")),super(new Xn(e.minZoom,e.maxZoom,e.minPitch,e.maxPitch,e.renderWorldCopies),e),this._interactive=e.interactive,this._minTileCacheSize=e.minTileCacheSize,this._maxTileCacheSize=e.maxTileCacheSize,this._failIfMajorPerformanceCaveat=e.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=e.preserveDrawingBuffer,this._antialias=e.antialias,this._useWebGL2=e.useWebGL2,this._trackResize=e.trackResize,this._bearingSnap=e.bearingSnap,this._refreshExpiredTiles=e.refreshExpiredTiles,this._fadeDuration=e.fadeDuration,this._isInitialLoad=!0,this._crossSourceCollisions=e.crossSourceCollisions,this._collectResourceTiming=e.collectResourceTiming,this._optimizeForTerrain=e.optimizeForTerrain,this._language=this._parseLanguage(e.language),this._worldview=e.worldview,this._renderTaskQueue=new Yr,this._domRenderTaskQueue=new Yr,this._controls=[],this._markers=[],this._popups=[],this._mapId=t.uniqueId(),this._locale=t.extend({},oo,e.locale),this._clickTolerance=e.clickTolerance,this._cooperativeGestures=e.cooperativeGestures,this._performanceMetricsCollection=e.performanceMetricsCollection,this._containerWidth=0,this._containerHeight=0,this._averageElevationLastSampledAt=-1/0,this._averageElevationExaggeration=0,this._averageElevation=new ro(0),this._interactionRange=[1/0,-1/0],this._visibilityHidden=0,this._useExplicitProjection=!1,this._requestManager=new t.RequestManager(e.transformRequest,e.accessToken,e.testMode),this._silenceAuthErrors=!!e.testMode,"string"==typeof e.container){if(this._container=t.window.document.getElementById(e.container),!this._container)throw new Error(`Container '${e.container}' not found.`)}else{if(!(e.container instanceof t.window.HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=e.container}if(this._container.childNodes.length>0&&t.warnOnce("The map container element should be empty, otherwise the map's interactivity will be negatively impacted. If you want to display a message when WebGL is not supported, use the Mapbox GL Supported plugin instead."),e.maxBounds&&this.setMaxBounds(e.maxBounds),t.bindAll(["_onWindowOnline","_onWindowResize","_onVisibilityChange","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),void 0!==t.window&&(t.window.addEventListener("online",this._onWindowOnline,!1),t.window.addEventListener("resize",this._onWindowResize,!1),t.window.addEventListener("orientationchange",this._onWindowResize,!1),t.window.addEventListener("webkitfullscreenchange",this._onWindowResize,!1),t.window.addEventListener("visibilitychange",this._onVisibilityChange,!1)),this.handlers=new Wr(this,e),this._localFontFamily=e.localFontFamily,this._localIdeographFontFamily=e.localIdeographFontFamily,e.style&&this.setStyle(e.style,{localFontFamily:this._localFontFamily,localIdeographFontFamily:this._localIdeographFontFamily}),e.projection&&this.setProjection(e.projection),this._hash=e.hash&&new Yn("string"==typeof e.hash&&e.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:e.center,zoom:e.zoom,bearing:e.bearing,pitch:e.pitch}),e.bounds&&(this.resize(),this.fitBounds(e.bounds,t.extend({},e.fitBoundsOptions,{duration:0})))),this.resize(),e.attributionControl&&this.addControl(new Xr({customAttribution:e.customAttribution}
vendor: 5,118 bytes, line 39
39)),this._logoControl=new Qr,this.addControl(this._logoControl,e.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",e=>{this._update("style"===e.dataType),this.fire(new t.Event(e.dataType+"data",e))}),this.on("dataloading",e=>{this.fire(new t.Event(e.dataType+"dataloading",e))})}_getMapId(){return this._mapId}addControl(e,i){if(void 0===i&&(i=e.getDefaultPosition?e.getDefaultPosition():"top-right"),!e||!e.onAdd)return this.fire(new t.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const n=e.onAdd(this);this._controls.push(e);const r=this._controlPositions[i];return-1!==i.indexOf("bottom")?r.insertBefore(n,r.firstChild):r.appendChild(n),this}removeControl(e){if(!e||!e.onRemove)return this.fire(new t.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const i=this._controls.indexOf(e);return i>-1&&this._controls.splice(i,1),e.onRemove(this),this}hasControl(t){return this._controls.indexOf(t)>-1}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}resize(e){if(this._updateContainerDimensions(),this._containerWidth===this.transform.width&&this._containerHeight===this.transform.height)return this;this._resizeCanvas(this._containerWidth,this._containerHeight),this.transform.resize(this._containerWidth,this._containerHeight),this.painter.resize(Math.ceil(this._containerWidth),Math.ceil(this._containerHeight));const i=!this._moving;return i&&this.fire(new t.Event("movestart",e)).fire(new t.Event("move",e)),this.fire(new t.Event("resize",e)),i&&this.fire(new t.Event("moveend",e)),this}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()||null}setMaxBounds(e){return this.transform.setMaxBounds(t.LngLatBounds.convert(e)),this._update()}setMinZoom(e){if((e=null==e?-2:e)>=-2&&e<=this.transform.maxZoom)return this.transform.minZoom=e,this._update(),this.getZoom()<e?this.setZoom(e):this.fire(new t.Event("zoomstart")).fire(new t.Event("zoom")).fire(new t.Event("zoomend")),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(){return this.transform.minZoom}setMaxZoom(e){if((e=null==e?22:e)>=this.transform.minZoom)return this.transform.maxZoom=e,this._update(),this.getZoom()>e?this.setZoom(e):this.fire(new t.Event("zoomstart")).fire(new t.Event("zoom")).fire(new t.Event("zoomend")),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(e){if((e=null==e?0:e)<0)throw new Error("minPitch must be greater than or equal to 0");if(e>=0&&e<=this.transform.maxPitch)return this.transform.minPitch=e,this._update(),this.getPitch()<e?this.setPitch(e):this.fire(new t.Event("pitchstart")).fire(new t.Event("pitch")).fire(new t.Event("pitchend")),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this.transform.minPitch}setMaxPitch(e){if((e=null==e?85:e)>85)throw new Error("maxPitch must be less than or equal to 85");if(e>=this.transform.minPitch)return this.transform.maxPitch=e,this._update(),this.getPitch()>e?this.setPitch(e):this.fire(new t.Event("pitchstart")).fire(new t.Event("pitch")).fire(new t.Event("pitchend")),this;throw new Error("maxPitch must be greater than or equal to minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(t){return this.transform.renderWorldCopies=t,this.transform.renderWorldCopies||this._forceMarkerAndPopupUpdate(!0),this._update()}getLanguage(){return this._language}_parseLanguage(e){return"auto"===e?t.window.navigator.language:Array.isArray(e)?0===e.length?void 0:e.map(e=>"auto"===e?t.window.navigator.language:e):e}setLanguage(t){const e=this._parseLanguage(t);if(!this.style||e===this._language)return this;this._language=e,this.style._reloadSources();for(const i of this._controls)i._setLanguage&&i._setLanguage(this._language);return this}getWorldview(){return this._worldview}setWorldview(t){return this.style&&t!==this._worldview?(this._worldview=t,this.style._reloadSources(),this):this}getProjection(){return this.transform.mercatorFromTransition?{name:"globe",center:[0,0]}:this.transform.getProjection()}_showingGlobe(){return"globe"===this.transform.projection.name}setProjection(t){return this._lazyInitEmptyStyle(),t?"string"==typeof t&&(t={name:t}):t=null,this._useExplicitProjection=!!t,this._prioritizeAndUpdateProjection(t,this.style.stylesheet?this.style.stylesheet.projection:null)}_updateProjectionTransition(){if("globe"!==this.getProjection().name)return;const e=this.transform,i=e.projection.name;let n;"globe"===i&&e.zoom>=t.GLOBE_ZOOM_THRESHOLD_MAX?(e.setMercatorFromTransition(),n=!0):"mercator"===i&&e.zoom<t.GLOBE_ZOOM_THRESHOLD_MAX&&(e.setProjection({name:"globe"}),n=!0),n&&(this.style.applyProjectionUpdate(),this.style._forceSymbolLayer
vendor: 10,330 bytes, line 39
39Update())}_prioritizeAndUpdateProjection(t,e){return this._updateProjection(t||e||{name:"mercator"})}_updateProjection(e){let i;if(i="globe"===e.name&&this.transform.zoom>=t.GLOBE_ZOOM_THRESHOLD_MAX?this.transform.setMercatorFromTransition():this.transform.setProjection(e),this.style.applyProjectionUpdate(),i){this.painter.clearBackgroundTiles();for(const t in this.style._sourceCaches)this.style._sourceCaches[t].clearTiles();this._update(!0),this._forceMarkerAndPopupUpdate(!0)}return this}project(e){return this.transform.locationPoint3D(t.LngLat.convert(e))}unproject(e){return this.transform.pointLocation3D(t.Point.convert(e))}isMoving(){return this._moving||this.handlers&&this.handlers.isMoving()||!1}isZooming(){return this._zooming||this.handlers&&this.handlers.isZooming()||!1}isRotating(){return this._rotating||this.handlers&&this.handlers.isRotating()||!1}_isDragging(){return this.handlers&&this.handlers._isDragging()||!1}_createDelegatedListener(t,e,i){if("mouseenter"===t||"mouseover"===t){let n=!1;const r=r=>{const o=e.filter(t=>this.getLayer(t)),s=o.length?this.queryRenderedFeatures(r.point,{layers:o}):[];s.length?n||(n=!0,i.call(this,new ar(t,this,r.originalEvent,{features:s}))):n=!1},o=()=>{n=!1};return{layers:new Set(e),listener:i,delegates:{mousemove:r,mouseout:o}}}if("mouseleave"===t||"mouseout"===t){let n=!1;const r=r=>{const o=e.filter(t=>this.getLayer(t));(o.length?this.queryRenderedFeatures(r.point,{layers:o}):[]).length?n=!0:n&&(n=!1,i.call(this,new ar(t,this,r.originalEvent)))},o=e=>{n&&(n=!1,i.call(this,new ar(t,this,e.originalEvent)))};return{layers:new Set(e),listener:i,delegates:{mousemove:r,mouseout:o}}}{const n=t=>{const n=e.filter(t=>this.getLayer(t)),r=n.length?this.queryRenderedFeatures(t.point,{layers:n}):[];r.length&&(t.features=r,i.call(this,t),delete t.features)};return{layers:new Set(e),listener:i,delegates:{[t]:n}}}}on(t,e,i){if(void 0===i)return super.on(t,e);Array.isArray(e)||(e=[e]);const n=this._createDelegatedListener(t,e,i);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[t]=this._delegatedListeners[t]||[],this._delegatedListeners[t].push(n);for(const r in n.delegates)this.on(r,n.delegates[r]);return this}once(t,e,i){if(void 0===i)return super.once(t,e);Array.isArray(e)||(e=[e]);const n=this._createDelegatedListener(t,e,i);for(const r in n.delegates)this.once(r,n.delegates[r]);return this}off(t,e,i){if(void 0===i)return super.off(t,e);e=new Set(Array.isArray(e)?e:[e]);const n=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0},r=this._delegatedListeners?this._delegatedListeners[t]:void 0;return r&&(t=>{for(let r=0;r<t.length;r++){const o=t[r];if(o.listener===i&&n(o.layers,e)){for(const t in o.delegates)this.off(t,o.delegates[t]);return t.splice(r,1),this}}})(r),this}queryRenderedFeatures(e,i){return this.style?(void 0!==i||void 0===e||e instanceof t.Point||Array.isArray(e)||(i=e,e=void 0),this.style.queryRenderedFeatures(e=e||[[0,0],[this.transform.width,this.transform.height]],i=i||{},this.transform)):[]}querySourceFeatures(t,e){return this.style.querySourceFeatures(t,e)}isPointOnSurface(e){const{name:i}=this.transform.projection;return"globe"!==i&&"mercator"!==i&&t.warnOnce(i+" projection does not support isPointOnSurface, this API may behave unexpectedly."),this.transform.isPointOnSurface(t.Point.convert(e))}setStyle(e,i){return!1!==(i=t.extend({},{localIdeographFontFamily:this._localIdeographFontFamily,localFontFamily:this._localFontFamily},i)).diff&&i.localIdeographFontFamily===this._localIdeographFontFamily&&i.localFontFamily===this._localFontFamily&&this.style&&e?(this._diffStyle(e,i),this):(this._localIdeographFontFamily=i.localIdeographFontFamily,this._localFontFamily=i.localFontFamily,this._updateStyle(e,i))}_getUIString(t){const e=this._locale[t];if(null==e)throw new Error(`Missing UI string '${t}'`);return e}_updateStyle(t,e){return this.style&&(this.style.setEventedParent(null),this.style._remove(),this.style=void 0),t&&(this.style=new Ye(this,e||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof t?this.style.loadURL(t):this.style.loadJSON(t)),this._updateTerrain(),this}_lazyInitEmptyStyle(){this.style||(this.style=new Ye(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(e,i){if("string"==typeof e){const n=this._requestManager.normalizeStyleURL(e),r=this._requestManager.transformRequest(n,t.ResourceType.Style);t.getJSON(r,(e,n)=>{e?this.fire(new t.ErrorEvent(e)):n&&this._updateDiff(n,i)})}else"object"==typeof e&&this._updateDiff(e,i)}_updateDiff(e,i){try{this.style.setState(e)&&this._update(!0)}catch(n){t.warnOnce(`Unable to perform style diff: ${n.message||n.error||n}. Rebuilding the style from scratch.`),this._updateStyle(e,i)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():(t.warnOnce("There is no style added to the map."),!1)}addSource(t,e){return this._lazyInitEmptyStyle(),this.style.addSource(t,e),this._update(!0)}isSourceLoaded(t){return!!this.style&&this.style._isSourceCacheLoaded(t)}areTilesLoaded(){const t=this.style&&this.style._sourceCaches;for(const e in t){const i=t[e]._tiles;for(const t in i){const e=i[t];if("loaded"!==e.state&&"errored"!==e.state)return!1}}return!0}addSourceType(t,e,i){this._lazyInitEmptyStyle(),this.style.addSourceType(t,e,i)}removeSource(t){return this.style.removeSource(t),this._updateTerrain(),this._update(!0)}getSource(t){return this.style.getSource(t)}addImage(e,i,{pixelRatio:n=1,sdf:r=!1,stretchX:o,stretchY:s,content:a}={}){if(this._lazyInitEmptyStyle(),i instanceof t.window.HTMLImageElement||t.window.ImageBitmap&&i instanceof t.window.ImageBitmap){const{width:l,height:c,data:u}=t.exported.getImageData(i);this.style.addImage(e,{data:new t.RGBAImage({width:l,height:c},u),pixelRatio:n,stretchX:o,stretchY:s,content:a,sdf:r,version:0})}else if(void 0===i.width||void 0===i.height)this.fire(new t.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));else{const{width:l,height:c}=i,u=i;this.style.addImage(e,{data:new t.RGBAImage({width:l,height:c},new Uint8Array(u.data)),pixelRatio:n,stretchX:o,stretchY:s,content:a,sdf:r,version:0,userImage:u}),u.onAdd&&u.onAdd(this,e)}}updateImage(e,i){const n=this.style.getImage(e);if(!n)return void this.fire(new t.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const r=i instanceof t.window.HTMLImageElement||t.window.ImageBitmap&&i instanceof t.window.ImageBitmap?t.exported.getImageData(i):i,{width:o,height:s}=r;void 0!==o&&void 0!==s?o===n.data.width&&s===n.data.height?(n.data.replace(r.data,!(i instanceof t.window.HTMLImageElement||t.window.ImageBitmap&&i instanceof t.window.ImageBitmap)),this.style.updateImage(e,n)):this.fire(new t.ErrorEvent(new Error(`The width and height of the updated image (${o}, ${s})\n must be that same as the previous version of the image\n (${n.data.width}, ${n.data.height})`))):this.fire(new t.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")))}hasImage(e){return e?!!this.style.getImage(e):(this.fire(new t.ErrorEvent(new Error("Missing required image id"))),!1)}removeImage(t){this.style.removeImage(t)}loadImage(e,i){t.getImage(this._requestManager.transformRequest(e,t.ResourceType.Image),(e,n)=>{i(e,n instanceof t.window.HTMLImageElement?t.exported.getImageData(n):n)})}listImages(){return this.style.listImages()}addLayer(t,e){return this._lazyInitEmptyStyle(),this.style.addLayer(t,e),this._update(!0)}moveLayer(t,e){return this.style.moveLayer(t,e),this._update(!0)}removeLayer(t){return this.style.removeLayer(t),this._update(!0)}getLayer(t){return this.style.getLayer(t)}setLayerZoomRange(t,e,i){return this.style.setLayerZoomRange(t,e,i),this._update(!0)}setFilter(t,e,i={}){return this.style.setFilter(t,e,i),this._update(!0)}getFilter(t){return this.style.getFilter(t)}setPaintProperty(t,e,i,n={}){return this.style.setPaintProperty(t,e,i,n),this._update(!0)}getPaintProperty(t,e){return this.style.getPaintProperty(t,e)}setLayoutProperty(t,e,i,n={}){return this.style.setLayoutProperty(t,e,i,n),this._update(!0)}getLayoutProperty(t,e){return this.style.getLayoutProperty(t,e)}setLight(t,e={}){return this._lazyInitEmptyStyle(),this.style.setLight(t,e),this._update(!0)}getLight(){return this.style.getLight()}setTerrain(t){return this._lazyInitEmptyStyle(),!t&&this.transform.projection.requiresDraping?this.style.setTerrainForDraping():this.style.setTerrain(t),this._averageElevationLastSampledAt=-1/0,this._update(!0)}getTerrain(){return this.style?this.style.getTerrain():null}setFog(t){return this._lazyInitEmptyStyle(),this.style.setFog(t),this._update(!0)}getFog(){return this.style?this.style.getFog():null}_queryFogOpacity(e){return this.style&&this.style.fog?this.style.fog.getOpacityAtLatLng(t.LngLat.convert(e),this.transform):0}setFeatureState(t,e){return this.style.setFeatureState(t,e),this._update()}removeFeatureState(t,e){return this.style.removeFeatureState(t,e),this._update()}getFeatureState(t){return this.style.getFeatureState(t)}_updateContainerDimensions(){if(!this._container)return;const e=this._container.getBoundingClientRect().width||400,i=this._container.getBoundingClientRect().height||300;let n,r,o,s=this._container;for(;s&&(!r||!o);){const e=t.window.getComputedStyle(s).transform;e&&"none"!==e&&(n=e.match(/matrix.*\((.+)\)/)[1].split(", "),n[0]&&"0"!==n[0]&&"1"!==n[0]&&(r=n[0]),n[3]&&"0"!==n[3]&&"1"!==n[3]&&(o=n[3])),s=s.parentElement}this._containerWidth=r?Math.abs(e/r):e,this._containerHeight=o?Math.abs(i/o):i}_detectMissingCSS(){"rgb(250, 128, 114)"!==t.window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")&&t.warnOnce("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described
39in https://www.mapbox.com/mapbox-gl-js/api/.")}_setupContainer(){const t=this._container;t.classList.add("mapboxgl-map"),(this._missingCSSCanary=o("div","mapboxgl-canary",t)).style.visibility="hidden",this._detectMissingCSS();const e=this._canvasContainer=o("div","mapboxgl-canvas-container",t);this._interactive&&e.classList.add("mapboxgl-interactive"),this._canvas=o("canvas","mapboxgl-canvas",e),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region"),this._updateContainerDimensions(),this._resizeCanvas(this._containerWidth,this._containerHeight);const i=this._controlContainer=o("div","mapboxgl-control-container",t),n=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(t=>{n[t]=o("div","mapboxgl-ctrl-"+t,i)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(e,i){const n=t.exported.devicePixelRatio||1;this._canvas.width=n*Math.ceil(e),this._canvas.height=n*Math.ceil(i),this._canvas.style.width=e+"px",this._canvas.style.height=i+"px"}_addMarker(t){this._markers.push(t)}_removeMarker(t){const e=this._markers.indexOf(t);-1!==e&&this._markers.splice(e,1)}_addPopup(t){this._popups.push(t)}_removePopup(t){const e=this._popups.indexOf(t);-1!==e&&this._popups.splice(e,1)}_setupPainter(){const e=t.extend({},i.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),n=this._useWebGL2&&this._canvas.getContext("webgl2",e),r=n||this._canvas.getContext("webgl",e)||this._canvas.getContext("experimental-webgl",e);r?(this._useWebGL2&&!n&&t.warnOnce("Failed to create WebGL 2 context. Using WebGL 1."),t.storeAuthState(r,!0),this.painter=new zn(r,this.transform,!!n),this.on("data",t=>{"source"===t.dataType&&this.painter.setTileLoadedFlag(!0)}),t.exported$1.testSupport(r)):this.fire(new t.ErrorEvent(new Error("Failed to initialize WebGL")))}_contextLost(e){e.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new t.Event("webglcontextlost",{originalEvent:e}))}_contextRestored(e){this._setupPainter(),this.resize(),this._update(),this.fire(new t.Event("webglcontextrestored",{originalEvent:e}))}_onMapScroll(t){if(t.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(t){return this.style?(this._styleDirty=this._styleDirty||t,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(t){return this._update(),this._renderTaskQueue.add(t)}_cancelRenderFrame(t){this._renderTaskQueue.remove(t)}_requestDomTask(t){!this.loaded()||this.loaded()&&!this.isMoving()?t():this._domRenderTaskQueue.add(t)}_render(e){let i;const n=this.painter.context.extTimerQuery,r=t.exported.now();if(this.listens("gpu-timing-frame")&&(i=n.createQueryEXT(),n.beginQueryEXT(n.TIME_ELAPSED_EXT,i)),this.painter.context.setDirty(),this.painter.setBaseState(),(this.isMoving()||this.isRotating()||this.isZooming())&&(this._interactionRange[0]=Math.min(this._interactionRange[0],t.window.performance.now()),this._interactionRange[1]=Math.max(this._interactionRange[1],t.window.performance.now())),this._renderTaskQueue.run(e),this._domRenderTaskQueue.run(e),this._removed)return;this._updateProjectionTransition();const o=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;const e=this.transform.zoom,i=this.transform.pitch,n=t.exported.now(),r=new t.EvaluationParameters(e,{now:n,fadeDuration:o,pitch:i,transition:this.style.getTransition()});this.style.update(r)}this.style&&this.style.fog&&this.style.fog.hasTransition()&&(this.style._markersNeedUpdate=!0,this._sourcesDirty=!0);let s=!1;if(this.style&&this._sourcesDirty?(this._sourcesDirty=!1,this.painter._updateFog(this.style),this._updateTerrain(),s=this._updateAverageElevation(r),this.style._updateSources(this.transform),this._forceMar
vendor: 10,441 bytes, line 39
39kerAndPopupUpdate()):s=this._updateAverageElevation(r),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,o,this._crossSourceCollisions),this.style&&this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showTerrainWireframe:this.showTerrainWireframe,showOverdrawInspector:this._showOverdrawInspector,showQueryGeometry:!!this._showQueryGeometry,showTileAABBs:this.showTileAABBs,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:o,isInitialLoad:this._isInitialLoad,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer"),gpuTimingDeferredRender:!!this.listens("gpu-timing-deferred-render"),speedIndexTiming:this.speedIndexTiming}),this.fire(new t.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new t.Event("load"))),this.style&&this.style.hasTransitions()&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),i){const e=t.exported.now()-r;n.endQueryEXT(n.TIME_ELAPSED_EXT,i),setTimeout(()=>{const o=n.getQueryObjectEXT(i,n.QUERY_RESULT_EXT)/1e6;n.deleteQueryEXT(i),this.fire(new t.Event("gpu-timing-frame",{cpuTime:e,gpuTime:o})),t.window.performance.mark("frame-gpu",{startTime:r,detail:{gpuTime:o}})},50)}if(this.listens("gpu-timing-layer")){const e=this.painter.collectGpuTimers();setTimeout(()=>{const i=this.painter.queryGpuTimers(e);this.fire(new t.Event("gpu-timing-layer",{layerTimes:i}))},50)}if(this.listens("gpu-timing-deferred-render")){const e=this.painter.collectDeferredRenderGpuQueries();setTimeout(()=>{const i=this.painter.queryGpuTimeDeferredRender(e);this.fire(new t.Event("gpu-timing-deferred-render",{gpuTime:i}))},50)}const a=this._sourcesDirty||this._styleDirty||this._placementDirty||s;if(a||this._repaint)this.triggerRepaint();else{const e=!this.isMoving()&&this.loaded();if(e&&(s=this._updateAverageElevation(r,!0)),s)this.triggerRepaint();else if(this._triggerFrame(!1),e&&(this.fire(new t.Event("idle")),this._isInitialLoad=!1,this.speedIndexTiming)){const e=this._calculateSpeedIndex();this.fire(new t.Event("speedindexcompleted",{speedIndex:e})),this.speedIndexTiming=!1}}!this._loaded||this._fullyLoaded||a||(this._fullyLoaded=!0,t.LivePerformanceUtils.mark(t.PerformanceMarkers.fullLoad),this._performanceMetricsCollection&&t.postPerformanceEvent(this._requestManager._customAccessToken,{width:this.painter.width,height:this.painter.height,interactionRange:this._interactionRange,visibilityHidden:this._visibilityHidden,terrainEnabled:!!this.painter.style.getTerrain(),fogEnabled:!!this.painter.style.getFog(),projection:this.getProjection().name,zoom:this.transform.zoom,renderer:this.painter.context.renderer,vendor:this.painter.context.vendor}),this._authenticate())}_forceMarkerAndPopupUpdate(t){for(const e of this._markers)t&&!this.getRenderWorldCopies()&&(e._lngLat=e._lngLat.wrap()),e._update();for(const e of this._popups)!t||this.getRenderWorldCopies()||e._trackPointer||(e._lngLat=e._lngLat.wrap()),e._update()}_updateAverageElevation(t,e=!1){const i=t=>(this.transform.averageElevation=t,this._update(!1),!0);if(!this.painter.averageElevationNeedsEasing())return 0!==this.transform.averageElevation&&i(0);if((e||t-this._averageElevationLastSampledAt>500)&&!this._averageElevation.isEasing(t)){const e=this.transform.averageElevation;let n=this.transform.sampleAverageElevation(),r=!1;this.transform.elevation&&(r=this.transform.elevation.exaggeration()!==this._averageElevationExaggeration,this._averageElevationExaggeration=this.transform.elevation.exaggeration()),isNaN(n)?n=0:this._averageElevationLastSampledAt=t;const o=Math.abs(e-n);if(o>1){if(this._isInitialLoad||r)return this._averageElevation.jumpTo(n),i(n);this._averageElevation.easeTo(n,t,300)}else if(o>1e-4)return this._averageElevation.jumpTo(n),i(n)}return!!this._averageElevation.isEasing(t)&&i(this._averageElevation.getValue(t))}_authenticate(){t.getMapSessionAPI(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,e=>{if(e&&(e.message===t.AUTH_ERR_MSG||401===e.status)){const e=this.painter.context.gl;t.storeAuthState(e,!1),this._logoControl instanceof Qr&&this._logoControl._updateLogo(),e&&e.clear(e.DEPTH_BUFFER_BIT|e.COLOR_BUFFER_BIT|e.STENCIL_BUFFER_BIT),this._silenceAuthErrors||this.fire(new t.ErrorEvent(new Error("A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/")))}}),t.postMapLoadEvent(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,()=>{})}_updateTerrain(){const t=this._isDragging();this.painter.updateTerrain(this.style,t)}_calculateSpeedIndex(){const t=this.painter.canvasCopy(),e=this.painter.getCanvasCopiesAndTimestamps();e.timeStamps.push(performance.now());const i=this.painter.context.gl,n=i.createFramebuffer();function r(t){i.framebufferTexture2D(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.TEXTURE_2D,t,0);const e=new Uint8Array(i.drawingBufferWidth*i.drawingBufferHeight*4);return i.readPixels(0,0,i.drawingBufferWidth,i.drawingBufferHeight,i.RGBA,i.UNSIGNED_BYTE,e),e}return i.bindFramebuffer(i.FRAMEBUFFER,n),this._canvasPixelComparison(r(t),e.canvasCopies.map(r),e.timeStamps)}_canvasPixelComparison(t,e,i){let n=i[1]-i[0];const r=t.length/4;for(let o=0;o<e.length;o++){const s=e[o];let a=0;for(let e=0;e<s.length;e+=4)s[e]===t[e]&&s[e+1]===t[e+1]&&s[e+2]===t[e+2]&&s[e+3]===t[e+3]&&(a+=1);n+=(i[o+2]-i[o+1])*(1-a/r)}return n}remove(){this._hash&&this._hash.remove();for(const t of this._controls)t.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this._domRenderTaskQueue.clear(),this.style&&this.style.destroy(),this.painter.destroy(),this.handlers&&this.handlers.destroy(),this.handlers=void 0,this.setStyle(null),void 0!==t.window&&(t.window.removeEventListener("resize",this._onWindowResize,!1),t.window.removeEventListener("orientationchange",this._onWindowResize,!1),t.window.removeEventListener("webkitfullscreenchange",this._onWindowResize,!1),t.window.removeEventListener("online",this._onWindowOnline,!1),t.window.removeEventListener("visibilitychange",this._onVisibilityChange,!1));const e=this.painter.context.gl.getExtension("WEBGL_lose_context");e&&e.loseContext(),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvasContainer.remove(),this._controlContainer.remove(),this._missingCSSCanary.remove(),this._canvas=void 0,this._canvasContainer=void 0,this._controlContainer=void 0,this._missingCSSCanary=void 0,this._container.classList.remove("mapboxgl-map"),this._container.removeEventListener("scroll",this._onMapScroll,!1),t.removeAuthState(this.painter.context.gl),this._removed=!0,this.fire(new t.Event("remove"))}triggerRepaint(){this._triggerFrame(!0)}_triggerFrame(e){this._renderNextFrame=this._renderNextFrame||e,this.style&&!this._frame&&(this._frame=t.exported.frame(t=>{const e=!!this._renderNextFrame;this._frame=null,this._renderNextFrame=null,e&&this._render(t)}))}_preloadTiles(e){const i=this.style?Object.values(this.style._sourceCaches):[];return t.asyncAll(i,(t,i)=>t._preloadTiles(e,i),()=>{this.triggerRepaint()}),this}_onWindowOnline(){this._update()}_onWindowResize(t){this._trackResize&&this.resize({originalEvent:t})._update()}_onVisibilityChange(){"hidden"===t.window.document.visibilityState&&this._visibilityHidden++}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(t){this._showTileBoundaries!==t&&(this._showTileBoundaries=t,this._update())}get showTerrainWireframe(){return!!this._showTerrainWireframe}set showTerrainWireframe(t){this._showTerrainWireframe!==t&&(this._showTerrainWireframe=t,this._update())}get speedIndexTiming(){return!!this._speedIndexTiming}set speedIndexTiming(t){this._speedIndexTiming!==t&&(this._speedIndexTiming=t,this._update())}get showPadding(){return!!this._showPadding}set showPadding(t){this._showPadding!==t&&(this._showPadding=t,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(t){this._showCollisionBoxes!==t&&(this._showCollisionBoxes=t,t?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(t){this._showOverdrawInspector!==t&&(this._showOverdrawInspector=t,this._update())}get repaint(){return!!this._repaint}set repaint(t){this._repaint!==t&&(this._repaint=t,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(t){this._vertices=t,this._update()}get showTileAABBs(){return!!this._showTileAABBs}set showTileAABBs(t){this._showTileAABBs!==t&&(this._showTileAABBs=t,t&&this._update())}_setCacheLimits(e,i){t.setCacheLimits(e,i)}get version(){return t.version}},NavigationControl:class{constructor(e){this.options=t.extend({},ao,e),this._container=o("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",t=>t.preventDefault()),this.options.showZoom&&(t.bindAll(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",t=>{this._map&&this._map.zoomIn({},{originalEvent:t})}),o("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",t=>{this._map&&this._map.zoomOut({},{originalEvent:t})}),o("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(t.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",t=>{const e=this._map;e&&(this.options.visualizePitch?e.resetNorthPitch({},{originalEvent:t}):e.resetNorth({},{originalEvent:t}))}),this._compassIcon=o("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}_updateZoomButtons(){const t=this._map;if(!t)return;const e=t.getZoom(),i=e===t.getMaxZoom(),n=e===t.getMinZoom();this._zoomInButton.disabled=i,this._zoomOutButton.disabled=n,this._zoomInButton.setAttribute("aria-disabled",i.toString()),this._zoomOutButton.setAttribute("aria-disabled",n.toString())}_rotateCompassArrow(){const t=this._map;if(!t)return;const e=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(t.transform.pitch*(Math.PI/180)
39),.5)}) rotateX(${t.transform.pitch}deg) rotateZ(${t.transform.angle*(180/Math.PI)}deg)`:`rotate(${t.transform.angle*(180/Math.PI)}deg)`;t._requestDomTask(()=>{this._compassIcon&&(this._compassIcon.style.transform=e)})}onAdd(t){return this._map=t,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),t.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&t.on("pitch",this._rotateCompassArrow),t.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new lo(t,this._compass,this.options.visualizePitch)),this._container}onRemove(){const t=this._map;t&&(this._container.remove(),this.options.showZoom&&t.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&t.off("pitch",this._rotateCompassArrow),t.off("rotate",this._rotateCompassArrow),this._handler&&this._handler.off(),this._handler=void 0),this._map=void 0)}_createButton(t,e){const i=o("button",t,this._container);return i.type="button",i.addEventListener("click",e),i}_setButtonTitle(t,e){if(!this._map)return;const i=this._map._getUIString("NavigationControl."+e);t.setAttribute("aria-label",i),t.firstElementChild&&t.firstElementChild.setAttribute("title",i)}},GeolocateControl:class extends t.Evented{constructor(e){super(),this.options=t.extend({geolocation:t.window.navigator.geolocation},co,e),t.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker","_updateMarkerRotation","_onDeviceOrientation"],this),this._updateMarkerRotationThrottled=Qn(this._updateMarkerRotation,20),this._numberOfWatches=0}onAdd(t){return this._map=t,this._container=o("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkGeolocationSupport(this._setupUI),this._container}onRemove(){void 0!==this._geolocationWatchID&&(this.options.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),this._container.remove(),this._map.off("zoom",this._onZoom),this._map=void 0,this._numberOfWatches=0,this._noTimeout=!1}_checkGeolocationSupport(e){const i=(t=!!this.options.geolocation)=>{this._supportsGeolocation=t,e(t)};void 0!==this._supportsGeolocation?e(this._supportsGeolocation):void 0!==t.window.navigator.permissions?t.window.navigator.permissions.query({name:"geolocation"}).then(t=>i("denied"!==t.state)).catch(()=>i()):i()}_isOutOfMapMaxBounds(t){const e=this._map.getMaxBounds(),i=t.coords;return!!e&&(i.longitude<e.getWest()||i.longitude>e.getEast()||i.latitude<e.getSouth()||i.latitude>e.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}}_onSuccess(e){if(this._map){if(this._isOutOfMapMaxBounds(e))return this._setErrorState(),this.fire(new t.Event("outofmaxbounds",e)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=e,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(e),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(e),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new t.Event("geolocate",e)),this._finish()}}_updateCamera(e){const i=new t.LngLat(e.coords.longitude,e.coords.latitude),n=e.coords.accuracy,r=this._map.getBearing(),o=t.extend({bearing:r},this.options.fitBoundsOptions);this._map.fitBounds(i.toBounds(n),o,{geolocateSource:!0})}_updateMarker(e){if(e){const i=new t.LngLat(e.coords.longitude,e.coords.latitude);this._accuracyCircleMarker.setLngLat(i).addTo(this._map),this._userLocationDotMarker.setLngLat(i).addTo(this._map),this._accuracy=e.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){const e=this._map.transform,i=t.mercatorZfromAltitude(1,e._center.lat)*e.worldSize,n=Math.ceil(2*this._accuracy*i);this._circleElement.style.width=n+"px",this._circleElement.style.height=n+"px"}_onZoom(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}_updateMarkerRotation(){this._userLocationDotMarker&&"number"==typeof this._heading?(this._userLocationDotMarker.setRotation(this._heading),this._dotElement.classList.add("mapboxgl-user-location-show-heading")):(this._dotElement.classList.remove("mapboxgl-user-location-show-heading"),this._userLocationDotMarker.setRotation(0))}_onError(e){if(this._map){if(this.options.trackUserLocation)if(1===e.code){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const t=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.setAttribute("aria-label",t),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",t),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===e.code&&this._noTimeout)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new t.Event("error",e)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(e){if(void 0!==this._map){if(this._container.addEventListener("contextmenu",t=>t.preventDefault()),this._geolocateButton=o("button","mapboxgl-ctrl-geolocate",this._container),o("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",!1===e){t.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");const e=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.setAttribute("aria-label",e),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",e)}else{const t=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.setAttribute("aria-label",t),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",t)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","fal
39se"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=o("div","mapboxgl-user-location"),this._dotElement.appendChild(o("div","mapboxgl-user-location-dot")),this._dotElement.appendChild(o("div","mapboxgl-user-location-heading")),this._userLocationDotMarker=new to({element:this._dotElement,rotationAlignment:"map",pitchAlignment:"map"}),this._circleElement=o("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new to({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",e=>{e.geolocateSource||"ACTIVE_LOCK"!==this._watchState||e.originalEvent&&"resize"===e.originalEvent.type||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this.fire(new t.Event("trackuserlocationend")))})}}_onDeviceOrientation(t){this._userLocationDotMarker&&(t.webkitCompassHeading?this._heading=t.webkitCompassHeading:!0===t.absolute&&(this._heading=-1*t.alpha),this._updateMarkerRotationThrottled())}trigger(){if(!this._setup)return t.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new t.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":this._numberOfWatches--,this._noTimeout=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new t.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new t.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){let t;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),this._numberOfWatches++,this._numberOfWatches>1?(t={maximumAge:6e5,timeout:0},this._noTimeout=!0):(t=this.options.positionOptions,this._noTimeout=!1),this._geolocationWatchID=this.options.geolocation.watchPosition(this._onSuccess,this._onError,t),this.options.showUserHeading&&this._addDeviceOrientationListener()}}else this.options.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_addDeviceOrientationListener(){const e=()=>{t.window.addEventListener("ondeviceorientationabsolute"in t.window?"deviceorientationabsolute":"deviceorientation",this._onDeviceOrientation)};void 0!==t.window.DeviceMotionEvent&&"function"==typeof t.window.DeviceMotionEvent.requestPermission?DeviceOrientationEvent.requestPermission().then(t=>{"granted"===t&&e()}).catch(console.error):e()}_clearWatch(){this.options.geolocation.clearWatch(this._geolocationWatchID),t.window.removeEventListener("deviceorientation",this._onDeviceOrientation),t.window.removeEventListener("deviceorientationabsolute",this._onDeviceOrientation),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","fal
39se"),this.options.showUserLocation&&this._updateMarker(null)}},AttributionControl:Xr,ScaleControl:class{constructor(e){this.options=t.extend({},uo,e),this._isNumberFormatSupported=function(){try{return new Intl.NumberFormat("en",{style:"unit",unitDisplay:"short",unit:"meter"}),!0}catch(t){return!1}}(),t.bindAll(["_update","_setScale","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_update(){const t=this.options.maxWidth||100,e=this._map,i=e._containerHeight/2,n=e._containerWidth/2-t/2,r=e.unproject([n,i]),o=e.unproject([n+t,i]),s=r.distanceTo(o);if("imperial"===this.options.unit){const e=3.2808*s;e>5280?this._setScale(t,e/5280,"mile"):this._setScale(t,e,"foot")}else"nautical"===this.options.unit?this._setScale(t,s/1852,"nautical-mile"):s>=1e3?this._setScale(t,s/1e3,"kilometer"):this._setScale(t,s,"meter")}_setScale(t,e,i){this._map._requestDomTask(()=>{const n=function(t){const e=Math.pow(10,(""+Math.floor(t)).length-1);let i=t/e;return i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:i>=1?1:function(t){const e=Math.pow(10,Math.ceil(-Math.log(t)/Math.LN10));return Math.round(t*e)/e}(i),e*i}(e),r=n/e;this._container.innerHTML=this._isNumberFormatSupported&&"nautical-mile"!==i?new Intl.NumberFormat(this._language,{style:"unit",unitDisplay:"short",unit:i}).format(n):`${n} ${ho[i]}`,this._container.style.width=t*r+"px"})}onAdd(t){return this._map=t,this._language=t.getLanguage(),this._container=o("div","mapboxgl-ctrl mapboxgl-ctrl-scale",t.getContainer()),this._container.dir="auto",this._map.on("move",this._update),this._update(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._update),this._map=void 0}_setLanguage(t){this._language=t,this._update()}setUnit(t){this.options.unit=t,this._update()}},FullscreenControl:class{constructor(e){this._fullscreen=!1,e&&e.container&&(e.container instanceof t.window.HTMLElement?this._container=e.container:t.warnOnce("Full screen control 'container' must be a DOM element.")),t.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in t.window.document?this._fullscreenchange="fullscreenchange":"onwebkitfullscreenchange"in t.window.document&&(this._fullscreenchange="webkitfullscreenchange")}onAdd(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=o("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",t.warnOnce("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,t.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!(!t.window.document.fullscreenEnabled&&!t.window.document.webkitFullscreenEnabled)}_setupUI(){const e=this._fullscreenButton=o("button","mapboxgl-ctrl-fullscreen",this._controlContainer);o("span","mapboxgl-ctrl-icon",e).setAttribute("aria-hidden","true"),e.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),t.window.document.addEventListener(this._fullscreenchange,this._changeIcon)}_updateTitle(){const t=this._getTitle();this._fullscreenButton.setAttribute("aria-label",t),this._fullscreenButton.firstElementChild&&this._fullscreenButton.firstElementChild.setAttribute("title",t)}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(t.window.document.fullscreenElement||t.window.document.webkitFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())}_onClickFullscreen(){this._isFullscreen()?t.window.document.exitFullscreen?t.window.document.exitFullscreen():t.window.document.webkitCancelFullScreen&&t.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},Popup:class extends t.Evented{constructor(e){super(),this.options=t.extend(Object.create(eo),e),t.bindAll(["_update","_onClose","remove","_onMouseEvent"],this),this._classList=new Set(e&&e.className?e.className.trim().split(/\s+/):[])}addTo(e){return this._map&&this.remove(),this._map=e,this.options.closeOnClick&&e.on("preclick",this._onClose),this.options.closeOnMove&&e.on("move",this._onClose),e.on("remove",this.remove),this._update(),e._addPopup(this),this._focusFirstElement(),this._trackPointer?(e.on("mousemove",this._onMouseEvent),e.on("mouseup",this._onMouseEvent),e._canvasContainer.classList.add("mapboxgl-track-pointer")):e.on("move",this._update),this.fire(new t.Event("open")),this}isOpen(){return!!this._map}remove(){this._content&&this._content.remove(),this._container&&(this._container.remove(),this._container=void 0);const e=this._map;return e&&(e.off("move",this._update),e.off("move",this._onClose),e.off("preclick",this._onClose),e.off("click",this._onClose),e.off("remove",this.remove),e.off("mousemove",this._onMouseEvent),e.off("mouseup",this._onMouseEvent),e.off("drag",this._onMouseEvent),e._canvasContainer&&e._canvasContainer.classList.remove("mapboxgl-track-pointer"),e._removePopup(this),this._map=void 0),this.fire(new t.Event("close")),this}getLngLat(){return this._lngLat}
vendor: 4,787 bytes, line 39
39setLngLat(e){this._lngLat=t.LngLat.convert(e),this._pos=null,this._trackPointer=!1,this._update();const i=this._map;return i&&(i.on("move",this._update),i.off("mousemove",this._onMouseEvent),i._canvasContainer.classList.remove("mapboxgl-track-pointer")),this}trackPointer(){this._trackPointer=!0,this._pos=null,this._update();const t=this._map;return t&&(t.off("move",this._update),t.on("mousemove",this._onMouseEvent),t.on("drag",this._onMouseEvent),t._canvasContainer.classList.add("mapboxgl-track-pointer")),this}getElement(){return this._container}setText(e){return this.setDOMContent(t.window.document.createTextNode(e))}setHTML(e){const i=t.window.document.createDocumentFragment(),n=t.window.document.createElement("body");let r;for(n.innerHTML=e;r=n.firstChild,r;)i.appendChild(r);return this.setDOMContent(i)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(t){return this.options.maxWidth=t,this._update(),this}setDOMContent(t){let e=this._content;if(e)for(;e.hasChildNodes();)e.firstChild&&e.removeChild(e.firstChild);else e=this._content=o("div","mapboxgl-popup-content",this._container||void 0);if(e.appendChild(t),this.options.closeButton){const t=this._closeButton=o("button","mapboxgl-popup-close-button",e);t.type="button",t.setAttribute("aria-label","Close popup"),t.setAttribute("aria-hidden","true"),t.innerHTML="×",t.addEventListener("click",this._onClose)}return this._update(),this._focusFirstElement(),this}addClassName(t){return this._classList.add(t),this._updateClassList(),this}removeClassName(t){return this._classList.delete(t),this._updateClassList(),this}setOffset(t){return this.options.offset=t,this._update(),this}toggleClassName(t){let e;return this._classList.delete(t)?e=!1:(this._classList.add(t),e=!0),this._updateClassList(),e}_onMouseEvent(t){this._update(t.point)}_getAnchor(t){if(this.options.anchor)return this.options.anchor;const e=this._map,i=this._container,n=this._pos;if(!e||!i||!n)return"bottom";const r=i.offsetWidth,o=i.offsetHeight,s=n.x<r/2,a=n.x>e.transform.width-r/2;if(n.y+t<o)return s?"top-left":a?"top-right":"top";if(n.y>e.transform.height-o){if(s)return"bottom-left";if(a)return"bottom-right"}return s?"left":a?"right":"bottom"}_updateClassList(){const t=this._container;if(!t)return;const e=[...this._classList];e.push("mapboxgl-popup"),this._anchor&&e.push("mapboxgl-popup-anchor-"+this._anchor),this._trackPointer&&e.push("mapboxgl-popup-track-pointer"),t.className=e.join(" ")}_update(e){const i=this._map,n=this._content;if(!i||!this._lngLat&&!this._trackPointer||!n)return;let r=this._container;if(r||(r=this._container=o("div","mapboxgl-popup",i.getContainer()),this._tip=o("div","mapboxgl-popup-tip",r),r.appendChild(n)),this.options.maxWidth&&r.style.maxWidth!==this.options.maxWidth&&(r.style.maxWidth=this.options.maxWidth),i.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Kr(this._lngLat,this._pos,i.transform)),!this._trackPointer||e){const t=this._pos=this._trackPointer&&e?e:i.project(this._lngLat),n=no(this.options.offset),r=this._anchor=this._getAnchor(n.y),o=no(this.options.offset,r),s=t.add(o).round();i._requestDomTask(()=>{this._container&&r&&(this._container.style.transform=`${Jr[r]} translate(${s.x}px,${s.y}px)`)})}if(!this._marker&&i._showingGlobe()){const e=t.isLngLatBehindGlobe(i.transform,this._lngLat)?0:1;this._setOpacity(e)}this._updateClassList()}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const t=this._container.querySelector(io);t&&t.focus()}_onClose(){this.remove()}_setOpacity(t){this._container&&(this._container.style.opacity=""+t),this._content&&(this._content.style.pointerEvents=t?"auto":"none")}},Marker:to,Style:Ye,LngLat:t.LngLat,LngLatBounds:t.LngLatBounds,Point:t.Point,MercatorCoordinate:t.MercatorCoordinate,FreeCameraOptions:Vn,Evented:t.Evented,config:t.config,prewarm:function(){Ft().acquire(zt)},clearPrewarmedResources:function(){const t=Bt;t&&(t.isPreloaded()&&1===t.numActive()?(t.release(zt),Bt=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return t.config.ACCESS_TOKEN},set accessToken(e){t.config.ACCESS_TOKEN=e},get baseApiUrl(){return t.config.API_URL},set baseApiUrl(e){t.config.API_URL=e},get workerCount(){return jt.workerCount},set workerCount(t){jt.workerCount=t},get maxParallelImageRequests(){return t.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(e){t.config.MAX_PARALLEL_IMAGE_REQUESTS=e},clearStorage(e){t.clearTileCache(e)},workerUrl:"",workerClass:null,setNow:t.exported.setNow,restoreNow:t.exported.restoreNow};return fo}));var r=i;return r}))}
vendor: 4,338 bytes, line 39
39,e2d8:function(t,e,i){(function(e){var i=200,n="__lodash_hash_undefined__",r=1/0,o="[object Function]",s="[object GeneratorFunction]",a=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,c="object"==typeof e&&e&&e.Object===Object&&e,u="object"==typeof self&&self&&self.Object===Object&&self,h=c||u||Function("return this")();function d(t,e){var i=t?t.length:0;return!!i&&m(t,e,0)>-1}function f(t,e,i){var n=-1,r=t?t.length:0;while(++n<r)if(i(e,t[n]))return!0;return!1}function p(t,e,i,n){var r=t.length,o=i+(n?1:-1);while(n?o--:++o<r)if(e(t[o],o,t))return o;return-1}function m(t,e,i){if(e!==e)return p(t,g,i);var n=i-1,r=t.length;while(++n<r)if(t[n]===e)return n;return-1}function g(t){return t!==t}function y(t,e){return t.has(e)}function _(t,e){return null==t?void 0:t[e]}function v(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(i){}return e}function b(t){var e=-1,i=Array(t.size);return t.forEach((function(t){i[++e]=t})),i}var x=Array.prototype,w=Function.prototype,E=Object.prototype,T=h["__core-js_shared__"],S=function(){var t=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),k=w.toString,O=E.hasOwnProperty,A=E.toString,C=RegExp("^"+k.call(O).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),I=x.splice,M=st(h,"Map"),P=st(h,"Set"),D=st(Object,"create");function L(t){var e=-1,i=t?t.length:0;this.clear();while(++e<i){var n=t[e];this.set(n[0],n[1])}}function R(){this.__data__=D?D(null):{}}function z(t){return this.has(t)&&delete this.__data__[t]}function j(t){var e=this.__data__;if(D){var i=e[t];return i===n?void 0:i}return O.call(e,t)?e[t]:void 0}function B(t){var e=this.__data__;return D?void 0!==e[t]:O.call(e,t)}function F(t,e){var i=this.__data__;return i[t]=D&&void 0===e?n:e,this}function N(t){var e=-1,i=t?t.length:0;this.clear();while(++e<i){var n=t[e];this.set(n[0],n[1])}}function V(){this.__data__=[]}function $(t){var e=this.__data__,i=et(e,t);if(i<0)return!1;var n=e.length-1;return i==n?e.pop():I.call(e,i,1),!0}function U(t){var e=this.__data__,i=et(e,t);return i<0?void 0:e[i][1]}function q(t){return et(this.__data__,t)>-1}function G(t,e){var i=this.__data__,n=et(i,t);return n<0?i.push([t,e]):i[n][1]=e,this}function W(t){var e=-1,i=t?t.length:0;this.clear();while(++e<i){var n=t[e];this.set(n[0],n[1])}}function Z(){this.__data__={hash:new L,map:new(M||N),string:new L}}function H(t){return ot(this,t)["delete"](t)}function X(t){return ot(this,t).get(t)}function Q(t){return ot(this,t).has(t)}function Y(t,e){return ot(this,t).set(t,e),this}function K(t){var e=-1,i=t?t.length:0;this.__data__=new W;while(++e<i)this.add(t[e])}function J(t){return this.__data__.set(t,n),this}function tt(t){return this.__data__.has(t)}function et(t,e){var i=t.length;while(i--)if(ht(t[i][0],e))return i;return-1}function it(t){if(!ft(t)||lt(t))return!1;var e=dt(t)||v(t)?C:l;return e.test(ct(t))}function nt(t,e,n){var r=-1,o=d,s=t.length,a=!0,l=[],c=l;if(n)a=!1,o=f;else if(s>=i){var u=e?null:rt(t);if(u)return b(u);a=!1,o=y,c=new K}else c=e?[]:l;t:while(++r<s){var h=t[r],p=e?e(h):h;if(h=n||0!==h?h:0,a&&p===p){var m=c.length;while(m--)if(c[m]===p)continue t;e&&c.push(p),l.push(h)}else o(c,p,n)||(c!==l&&c.push(p),l.push(h))}return l}L.prototype.clear=R,L.prototype["delete"]=z,L.prototype.get=j,L.prototype.has=B,L.prototype.set=F,N.prototype.clear=V,N.prototype["delete"]=$,N.prototype.get=U,N.prototype.has=q,N.prototype.set=G,W.prototype.clear=Z,W.prototype["delete"]=H,W.prototype.get=X,W.prototype.has=Q,W.prototype.set=Y,K.prototype.add=K.prototype.push=J,K.prototype.has=tt;var rt=P&&1/b(new P([,-0]))[1]==r?function(t){return new P(t)}:pt;function ot(t,e){var i=t.__data__;return at(e)?i["string"==typeof e?"string":"hash"]:i.map}function st(t,e){var i=_(t,e);return it(i)?i:void 0}function at(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function lt(t){return!!S&&S in t}function ct(t){if(null!=t){try{return k.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function ut(t,e){return t&&t.length?nt(t,void 0,e):[]}function ht(t,e){return t===e||t!==t&&e!==e}function dt(t){var e=ft(t)?A.call(t):"";return e==o||e==s}function ft(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function pt(){}t.exports=ut}).call(this,i("c8ba"))}
39,e330:function(t,e,i){"use strict";var n=i("40d5"),r=Function.prototype,o=r.call,s=n&&r.bind.bind(o,o);t.exports=n?s:function(t){return function(){return o.apply(t,arguments)}}},e391:function(t,e,i){"use strict";var n=i("577e");t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},e5c8:function(t,e,i){},e5cb:function(t,e,i){"use strict";var n=i("d066"),r=i("1a2d"),o=i("9112"),s=i("3a9b"),a=i("d2bb"),l=i("e893"),c=i("aeb0"),u=i("7156"),h=i("e391"),d=i("ab36"),f=i("6f19"),p=i("83ab"),m=i("c430");t.exports=function(t,e,i,g){var y="stackTraceLimit",_=g?2:1,v=t.split("."),b=v[v.length-1],x=n.apply(null,v);if(x){var w=x.prototype;if(!m&&r(w,"cause")&&delete w.cause,!i)return x;var E=n("Error"),T=e((function(t,e){var i=h(g?e:t,void 0),n=g?new x(t):new x;return void 0!==i&&o(n,"message",i),f(n,T,n.stack,2),this&&s(w,this)&&u(n,this,T),arguments.length>_&&d(n,arguments[_]),n}));if(T.prototype=w,"Error"!==b?a?a(T,E):l(T,E,{name:!0}):p&&y in x&&(c(T,x,y),c(T,x,"prepareStackTrace")),l(T,x),!m)try{w.name!==b&&o(w,"name",b),w.constructor=T}catch(S){}return T}}},e7a4:function(t,e,i){"use strict";i.d(e,"h",(function(){return a})),i.d(e,"g",(function(){return l})),i.d(e,"d",(function(){return c})),i.d(e,"k",(function(){return v})),i.d(e,"j",(function(){return b})),i.d(e,"b",(function(){return E})),i.d(e,"a",(function(){return T})),i.d(e,"i",(function(){return S})),i.d(e,"c",(function(){return k})),i.d(e,"e",(function(){return O})),i.d(e,"f",(function(){return A}));var n=i("8f69"),r=i("4623"),o=i("0ae3"),s=i("eba2");function a(t){return{__ref:String(t)}}function l(t){return Boolean(t&&"object"===typeof t&&"string"===typeof t.__ref)}function c(t){return Object(r["a"])(t)&&"Document"===t.kind&&Array.isArray(t.definitions)}function u(t){return"StringValue"===t.kind}function h(t){return"BooleanValue"===t.kind}function d(t){return"IntValue"===t.kind}function f(t){return"FloatValue"===t.kind}function p(t){return"Variable"===t.kind}function m(t){return"ObjectValue"===t.kind}function g(t){return"ListValue"===t.kind}function y(t){return"EnumValue"===t.kind}function _(t){return"NullValue"===t.kind}function v(t,e,i,r){if(d(i)||f(i))t[e.value]=Number(i.value);else if(h(i)||u(i))t[e.value]=i.value;else if(m(i)){var o={};i.fields.map((function(t){return v(o,t.name,t.value,r)})),t[e.value]=o}else if(p(i)){var s=(r||{})[i.name.value];t[e.value]=s}else if(g(i))t[e.value]=i.values.map((function(t){var i={};return v(i,e,t,r),i[e.value]}));else if(y(i))t[e.value]=i.value;else{if(!_(i))throw Object(n["d"])(96,e.value,i.kind);t[e.value]=null}}function b(t,e){var i=null;t.directives&&(i={},t.directives.forEach((function(t){i[t.name.value]={},t.arguments&&t.arguments.forEach((function(n){var r=n.name,o=n.value;return v(i[t.name.value],r,o,e)}))})));var n=null;return t.arguments&&t.arguments.length&&(n={},t.arguments.forEach((function(t){var i=t.name,r=t.value;return v(n,i,r,e)}))),E(t.name.value,n,i)}var x=["connection","include","skip","client","rest","export","nonreactive"],w=s["a"],E=Object.assign((function(t,e,i){if(e&&i&&i["connection"]&&i["connection"]["key"]){if(i["connection"]["filter"]&&i["connection"]["filter"].length>0){var n=i["connection"]["filter"]?i["connection"]["filter"]:[];n.sort();var r={};return n.forEach((function(t){r[t]=e[t]})),"".concat(i["connection"]["key"],"(").concat(w(r),")")}return i["connection"]["key"]}var o=t;if(e){var s=w(e);o+="(".concat(s,")")}
39return i&&Object.keys(i).forEach((function(t){-1===x.indexOf(t)&&(i[t]&&Object.keys(i[t]).length?o+="@".concat(t,"(").concat(w(i[t]),")"):o+="@".concat(t))})),o}),{setStringify:function(t){var e=w;return w=t,e}});function T(t,e){if(t.arguments&&t.arguments.length){var i={};return t.arguments.forEach((function(t){var n=t.name,r=t.value;return v(i,n,r,e)})),i}return null}function S(t){return t.alias?t.alias.value:t.name.value}function k(t,e,i){for(var n,r=0,s=e.selections;r<s.length;r++){var a=s[r];if(O(a)){if("__typename"===a.name.value)return t[S(a)]}else n?n.push(a):n=[a]}if("string"===typeof t.__typename)return t.__typename;if(n)for(var l=0,c=n;l<c.length;l++){a=c[l];var u=k(t,Object(o["b"])(a,i).selectionSet,i);if("string"===typeof u)return u}}function O(t){return"Field"===t.kind}function A(t){return"InlineFragment"===t.kind}},e893:function(t,e,i){"use strict";var n=i("1a2d"),r=i("56ef"),o=i("06cf"),s=i("9bf2");t.exports=function(t,e,i){for(var a=r(e),l=s.f,c=o.f,u=0;u<a.length;u++){var h=a[u];n(t,h)||i&&n(i,h)||l(t,h,c(e,h))}}},e8b5:function(t,e,i){"use strict";var n=i("c6b6");t.exports=Array.isArray||function(t){return"Array"===n(t)}},e95a:function(t,e,i){"use strict";var n=i("b622"),r=i("3f8c"),o=n("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||s[o]===t)}},e9b1:function(t,e,i){},e9bc:function(t,e,i){"use strict";var n=i("dc19"),r=i("cb27").add,o=i("83b9"),s=i("7f65"),a=i("5388");t.exports=function(t){var e=n(this),i=s(t).getIterator(),l=o(e);return a(i,(function(t){r(l,t)})),l}},e9f5:function(t,e,i){"use strict";var n=i("23e7"),r=i("cfe9"),o=i("19aa"),s=i("825a"),a=i("1626"),l=i("e163"),c=i("edd0"),u=i("8418"),h=i("d039"),d=i("1a2d"),f=i("b622"),p=i("ae93").IteratorPrototype,m=i("83ab"),g=i("c430"),y="constructor",_="Iterator",v=f("toStringTag"),b=TypeError,x=r[_],w=g||!a(x)||x.prototype!==p||!h((function(){x({})})),E=function(){if(o(this,p),l(this)===p)throw new b("Abstract class Iterator not directly constructable")},T=function(t,e){m?c(p,t,{configurable:!0,get:function(){return e},set:function(e){if(s(this),this===p)throw new b("You can't redefine this property");d(this,t)?this[t]=e:u(this,t,e)}}):p[t]=e};d(p,v)||T(v,_),!w&&d(p,y)&&p[y]!==Object||T(y,E),E.prototype=p,n({global:!0,constructor:!0,forced:w},{Iterator:E})},ea5f:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("d30b"),r=i("4703"),o=i("dcbe"),s=i.n(o);function a(t,e,i){void 0===i&&(i={});var o=Object(r["b"])(t),a=Object(r["b"])(e),l=s.a.intersection(o.coordinates,a.coordinates);return 0===l.length?null:1===l.length?Object(n["j"])(l[0],i.properties):Object(n["h"])(l,i.properties)}},ea5fe:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=new Map;function r(t){var e=n.get(t)||1;return n.set(t,e+1),"".concat(t,":").concat(e,":").concat(Math.random().toString(36).slice(2))}},eba2:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n,r=i("841e"),o=i("876b"),s=i("f45e"),a=Object.assign((function(t){return JSON.stringify(t,l)}),{reset:function(){n=new r["a"](o["a"].canonicalStringify||1e3)}});function l(t,e){if(e&&"object"===typeof e){var i=Object.getPrototypeOf(e);if(i===Object.prototype||null===i){var r=Object.keys(e);if(r.every(c))return e;var o=JSON.stringify(r),s=n.get(o);if(!s){r.sort();var a=JSON.stringify(r);s=n.get(a)||r,n.set(o,s),n.set(a,s)}var l=Object.create(i);return s.forEach((function(t){l[t]=e[t]})),l}}return e}function c(t,e,i){return 0===e||i[e-1]<=t}!1!==globalThis.__DEV__&&Object(s["d"])("canonicalStringify",(function(){return n.size})),a.reset()},ec29:function(t,e,i){},edd0:function(t,e,i){"use strict";var n=i("13d2"),r=i("9bf2");t.exports=function(t,e,i){return i.get&&n(i.get,e,{getter:!0}),i.set&&n(i.set,e,{setter:!0}),r.f(t,e,i)}},ee54:function(t,e,i){"use strict";(function(e){t.exports=function(t){for(var i="undefined"!==typeof window&&"function"===typeof window.atob,n=i?window.atob(t):e.from(t,"base64").toString("binary"),r=new Uint8Array(n.length),o=0;o<n.length;++o)r[o]=n.charCodeAt(o);return r.buffer}}).call(this,i("b639").Buffer)}
39,eee5:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));const n=()=>Object.create(null),{forEach:r,slice:o}=Array.prototype,{hasOwnProperty:s}=Object.prototype;class a{constructor(t=!0,e=n){this.weakness=t,this.makeData=e}lookup(){return this.lookupArray(arguments)}lookupArray(t){let e=this;return r.call(t,t=>e=e.getChildTrie(t)),s.call(e,"data")?e.data:e.data=this.makeData(o.call(t))}peek(){return this.peekArray(arguments)}peekArray(t){let e=this;for(let i=0,n=t.length;e&&i<n;++i){const n=e.mapFor(t[i],!1);e=n&&n.get(t[i])}return e&&e.data}remove(){return this.removeArray(arguments)}removeArray(t){let e;if(t.length){const i=t[0],n=this.mapFor(i,!1),r=n&&n.get(i);r&&(e=r.removeArray(o.call(t,1)),r.data||r.weak||r.strong&&r.strong.size||n.delete(i))}else e=this.data,delete this.data;return e}getChildTrie(t){const e=this.mapFor(t,!0);let i=e.get(t);return i||e.set(t,i=new a(this.weakness,this.makeData)),i}mapFor(t,e){return this.weakness&&l(t)?this.weak||(e?this.weak=new WeakMap:void 0):this.strong||(e?this.strong=new Map:void 0)}}function l(t){switch(typeof t){case"object":if(null===t)break;case"function":return!0}return!1}},ef78:function(t,e,i){"use strict";var n=i("8cb5");function r(t){var e,i=t.type||n.ERROR_HTTP;if(t.body)try{e=JSON.parse(t.body)}catch(o){e=t.body}else e=null;var r=t.message||null;r||("string"===typeof e?r=e:e&&"string"===typeof e.message?r=e.message:i===n.ERROR_REQUEST_ABORTED&&(r="Request aborted")),this.message=r,this.type=i,this.statusCode=t.statusCode||null,this.request=t.request,this.body=e}t.exports=r},f2e7:function(t,e,i){"use strict";i.d(e,"b",(function(){return r}));var n=i("2b0e");function r(t="value",e="input"){return n["a"].extend({name:"toggleable",model:{prop:t,event:e},props:{[t]:{required:!1}},data(){return{isActive:!!this[t]}},watch:{[t](t){this.isActive=!!t},isActive(i){!!i!==this[t]&&this.$emit(e,i)}}})}const o=r();e["a"]=o},f309:function(t,e,i){"use strict";i.d(e,"a",(function(){return pt}));var n={};i.r(n),i.d(n,"linear",(function(){return p})),i.d(n,"easeInQuad",(function(){return m})),i.d(n,"easeOutQuad",(function(){return g})),i.d(n,"easeInOutQuad",(function(){return y})),i.d(n,"easeInCubic",(function(){return _})),i.d(n,"easeOutCubic",(function(){return v})),i.d(n,"easeInOutCubic",(function(){return b})),i.d(n,"easeInQuart",(function(){return x})),i.d(n,"easeOutQuart",(function(){return w})),i.d(n,"easeInOutQuart",(function(){return E})),i.d(n,"easeInQuint",(function(){return T})),i.d(n,"easeOutQuint",(function(){return S})),i.d(n,"easeInOutQuint",(function(){return k}));i("14d9"),i("e9f5"),i("7d54");var r=i("2b0e"),o=i("d9bd");function s(t,e={}){if(s.installed)return;s.installed=!0,r["a"]!==t&&Object(o["b"])("Multiple instances of Vue detected\nSee https://github.com/vuetifyjs/vuetify/issues/4068\n\nIf you're seeing \"$attrs is readonly\", it's caused by this");const i=e.components||{},n=e.directives||{};for(const r in n){const e=n[r];t.directive(r,e)}(function e(i){if(i){for(const n in i){const r=i[n];r&&!e(r.$_vuetify_subcomponents)&&t.component(n,r)}return!0}return!1})(i),t.$_vuetify_installed||(t.$_vuetify_installed=!0,t.mixin({beforeCreate(){const e=this.$options;e.vuetify?(e.vuetify.init(this,this.$ssrContext),this.$vuetify=t.observable(e.vuetify.framework)):this.$vuetify=e.parent&&e.parent.$vuetify||this},beforeMount(){this.$options.vuetify&&this.$el&&this.$el.hasAttribute("data-server-rendered")&&(this.$vuetify.isHydrating=!0,this.$vuetify.breakpoint.update(!0))},mounted(){this.$options.vuetify&&this.$vuetify.isHydrating&&(this.$vuetify.isHydrating=!1,this.$vuetify.breakpoint.update())}}))}i("95ed");var a={badge:"Badge",close:"Close",dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},datePicker:{itemsSelected:"{0} selected",nextMonthAriaLabel:"Next month",nextYearAriaLabel:"Next year",prevMonthAriaLabel:"Previous month",prevYearAriaLabel:"Previous year"},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{wrapper:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Goto Page {0}",currentPage:"Current Page, Page {0}"}},rating:{ariaLabel:{icon:"Rating {0} of {1}"}},loading:"Loading..."};const l={breakpoint:{mobileBreakpoint:1264,scrollBarWidth:16,thresholds:{xs:600,sm:960,md:1280,lg:1920}},icons:{iconfont:"mdi",values:{}},lang:{current:"en",locales:{en:a},t:void 0},rtl:!1,theme:{dark:!1,default:"light",disable:!1,options:{cspNonce:void 0,customProperties:void 0,minifyTheme:void 0,theme
39Cache:void 0,variations:!0},themes:{light:{primary:"#1976D2",secondary:"#424242",accent:"#82B1FF",error:"#FF5252",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},dark:{primary:"#2196F3",secondary:"#424242",accent:"#FF4081",error:"#FF5252",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"}}}};var c=i("80d2");class u{constructor(){this.framework={}}init(t,e){}}class h extends u{constructor(t,e){super();const i=Object(c["s"])({},l),{userPreset:n}=e,{preset:r={},...s}=n;null!=r.preset&&Object(o["c"])("Global presets do not support the **preset** option, it can be safely omitted"),e.preset=Object(c["s"])(Object(c["s"])(i,r),s)}}h.property="presets";i("13d5"),i("9485");class d extends u{constructor(){super(...arguments),this.bar=0,this.top=0,this.left=0,this.insetFooter=0,this.right=0,this.bottom=0,this.footer=0,this.application={bar:{},top:{},left:{},insetFooter:{},right:{},bottom:{},footer:{}}}register(t,e,i){this.application[e][t]=i,this.update(e)}unregister(t,e){null!=this.application[e][t]&&(delete this.application[e][t],this.update(e))}update(t){this[t]=Object.values(this.application[t]).reduce((t,e)=>t+e,0)}}d.property="application";class f extends u{constructor(t){super(),this.xs=!1,this.sm=!1,this.md=!1,this.lg=!1,this.xl=!1,this.xsOnly=!1,this.smOnly=!1,this.smAndDown=!1,this.smAndUp=!1,this.mdOnly=!1,this.mdAndDown=!1,this.mdAndUp=!1,this.lgOnly=!1,this.lgAndDown=!1,this.lgAndUp=!1,this.xlOnly=!1,this.name="xs",this.height=0,this.width=0,this.mobile=!0,this.resizeTimeout=0;const{mobileBreakpoint:e,scrollBarWidth:i,thresholds:n}=t[f.property];this.mobileBreakpoint=e,this.scrollBarWidth=i,this.thresholds=n}init(){this.update(),"undefined"!==typeof window&&window.addEventListener("resize",this.onResize.bind(this),{passive:!0})}update(t=!1){const e=t?0:this.getClientHeight(),i=t?0:this.getClientWidth(),n=i<this.thresholds.xs,r=i<this.thresholds.sm&&!n,o=i<this.thresholds.md-this.scrollBarWidth&&!(r||n),s=i<this.thresholds.lg-this.scrollBarWidth&&!(o||r||n),a=i>=this.thresholds.lg-this.scrollBarWidth;switch(this.height=e,this.width=i,this.xs=n,this.sm=r,this.md=o,this.lg=s,this.xl=a,this.xsOnly=n,this.smOnly=r,this.smAndDown=(n||r)&&!(o||s||a),this.smAndUp=!n&&(r||o||s||a),this.mdOnly=o,this.mdAndDown=(n||r||o)&&!(s||a),this.mdAndUp=!(n||r)&&(o||s||a),this.lgOnly=s,this.lgAndDown=(n||r||o||s)&&!a,this.lgAndUp=!(n||r||o)&&(s||a),this.xlOnly=a,!0){case n:this.name="xs";break;case r:this.name="sm";break;case o:this.name="md";break;case s:this.name="lg";break;default:this.name="xl";break}if("number"===typeof this.mobileBreakpoint)return void(this.mobile=i<parseInt(this.mobileBreakpoint,10));const l={xs:0,sm:1,md:2,lg:3,xl:4},c=l[this.name],u=l[this.mobileBreakpoint];this.mobile=c<=u}onResize(){clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.update.bind(this),200)}getClientWidth(){return"undefined"===typeof document?0:Math.max(document.documentElement.clientWidth,window.innerWidth||0)}getClientHeight(){return"undefined"===typeof document?0:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}f.property="breakpoint";i("d9e2");const p=t=>t,m=t=>t**2,g=t=>t*(2-t),y=t=>t<.5?2*t**2:(4-2*t)*t-1,_=t=>t**3,v=t=>--t**3+1,b=t=>t<.5?4*t**3:(t-1)*(2*t-2)*(2*t-2)+1,x=t=>t**4,w=t=>1- --t**4,E=t=>t<.5?8*t*t*t*t:1-8*--t*t*t*t,T=t=>t**5,S=t=>1+--t**5,k=t=>t<.5?16*t**5:1+16*--t**5;function O(t){if("number"===typeof t)return t;let e=I(t);if(!e)throw"string"===typeof t?new Error(`Target element "${t}" not found.`):new TypeError(`Target must be a Number/Selector/HTMLElement/VueComponent, received ${C(t)} instead.`);let i=0;while(e)i+=e.offsetTop,e=e.offsetParent;return i}function A(t){const e=I(t);if(e)return e;throw"string"===typeof t?new Error(`Container element "${t}" not found.`):new TypeError(`Container must be a Selector/HTMLElement/VueComponent, received ${C(t)} instead.`)}function C(t){return null==t?t:t.constructor.name}function I(t){return"string"===typeof t?document.querySelector(t):t&&t._isVue?t.$el:t instanceof HTMLElement?t:null}function M(t,e={}){const i={container:document.scrollingElement||document.body||document.documentElement,duration:500,offset:0,easing:"easeInOutCubic",appOffset:!0,...e},r=A(i.container);if(i.appOffset&&M.framework.application){const t=r.classList.contains("v-navigation-drawer"),e=r.classList.contains("v-navigation-drawer--clipped"),{bar:n,top:o}=M.framework.application;i.offset+=n,t&&!e||(i.offset+=o)}const o=performance.now();let s;s="number"===typeof t?O(t)-i.offset:O(t)-O(r)-i.offset;const a=r.scrollTop;if(s===a)return Promise.resolve(s);const l="function"===typeof i.easing?i.easing:n[i.easing];if(!l)throw new TypeError(`Easing function "${i.easing}" not found.`);return new Promise(t=>requestAnimationFrame((function e(n){const c=n-o,u=Math.abs(i.duration?Math.min(c/i.duration,1):1);r.scrollTop=Math.floor(a+(s-a)*l(u));const h=r===document.body?document.documentElement.clientHeight:r.clientHeight,d=h+r.scrollTop>=r.scrollHeight;if(1===u||s>r.scrollTop&&d)return t(s);requestAnimationFrame(e)})))}M.framework={},M.init=()=>{};class P extends u{constructor(){return super(),M}}P.property="goTo";const D={complete:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",cancel:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",close:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",delete:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",clear:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",success:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z",info:"M13,9H11V7H13M13,17H11V11H13M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2ZM13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",warning:"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",error:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",prev:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",next:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",checkboxOn:"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",checkboxOff:"M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z",checkboxIndeterminate:"M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",delimiter:"M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",sort:"M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z",expand:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",menu:"M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",subgroup:"M7,10L12,15L17,10H7Z",dropdown:"M7,10L12,15L17,10H7Z",radioOn:"M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4
3912,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2M12,7C9.24,7 7,9.24 7,12C7,14.76 9.24,17 12,17C14.76,17 17,14.76 17,12C17,9.24 14.76,7 12,7Z",radioOff:"M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",edit:"M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",ratingEmpty:"M12,15.39L8.24,17.66L9.23,13.38L5.91,10.5L10.29,10.13L12,6.09L13.71,10.13L18.09,10.5L14.77,13.38L15.76,17.66M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",ratingFull:"M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z",ratingHalf:"M12,15.4V6.1L13.71,10.13L18.09,10.5L14.77,13.39L15.76,17.67M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",loading:"M19,8L15,12H18C18,15.31 15.31,18 12,18C11,18 10.03,17.75 9.2,17.3L7.74,18.76C8.97,19.54 10.43,20 12,20C16.42,20 20,16.42 20,12H23M6,12C6,8.69 8.69,6 12,6C13,6 13.97,6.25 14.8,6.7L16.26,5.24C15.03,4.46 13.57,4 12,4C7.58,4 4,7.58 4,12H1L5,16L9,12",first:"M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z",last:"M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z",unfold:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z",file:"M16.5,6V17.5C16.5,19.71 14.71,21.5 12.5,21.5C10.29,21.5 8.5,19.71 8.5,17.5V5C8.5,3.62 9.62,2.5 11,2.5C12.38,2.5 13.5,3.62 13.5,5V15.5C13.5,16.05 13.05,16.5 12.5,16.5C11.95,16.5 11.5,16.05 11.5,15.5V6H10V15.5C10,16.88 11.12,18 12.5,18C13.88,18 15,16.88 15,15.5V5C15,2.79 13.21,1 11,1C8.79,1 7,2.79 7,5V17.5C7,20.54 9.46,23 12.5,23C15.54,23 18,20.54 18,17.5V6H16.5Z",plus:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",minus:"M19,13H5V11H19V13Z"};var L=D;const R={complete:"check",cancel:"cancel",close:"close",delete:"cancel",clear:"clear",success:"check_circle",info:"info",warning:"priority_high",error:"warning",prev:"chevron_left",next:"chevron_right",checkboxOn:"check_box",checkboxOff:"check_box_outline_blank",checkboxIndeterminate:"indeterminate_check_box",delimiter:"fiber_manual_record",sort:"arrow_upward",expand:"keyboard_arrow_down",menu:"menu",subgroup:"arrow_drop_down",dropdown:"arrow_drop_down",radioOn:"radio_button_checked",radioOff:"radio_button_unchecked",edit:"edit",ratingEmpty:"star_border",ratingFull:"star",ratingHalf:"star_half",loading:"cached",first:"first_page",last:"last_page",unfold:"unfold_more",file:"attach_file",plus:"add",minus:"remove"};var z=R;const j={complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-exclamation",error:"mdi-alert",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sort:"mdi-arrow-up",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus"};var B=j;const F={complete:"fas fa-check",cancel:"fas fa-times-circle",close:"fas fa-times",delete:"fas fa-times-circle",clear:"fas fa-times-circle",success:"fas fa-check-circle",info:"fas fa-info-circle",warning:"fas fa-exclamation-circle",error:"fas fa-exclamation-triangle",prev:"fas fa-chevron-left",next:"fas fa-chevron-right",checkboxOn:"fas fa-check-square",checkboxOff:"far fa-square",checkboxIndeterminate:"fas fa-minus-square",delimiter:"fas fa-circle",s
39ort:"fas fa-sort-up",expand:"fas fa-chevron-down",menu:"fas fa-bars",subgroup:"fas fa-caret-down",dropdown:"fas fa-caret-down",radioOn:"far fa-dot-circle",radioOff:"far fa-circle",edit:"fas fa-edit",ratingEmpty:"far fa-star",ratingFull:"fas fa-star",ratingHalf:"fas fa-star-half",loading:"fas fa-sync",first:"fas fa-step-backward",last:"fas fa-step-forward",unfold:"fas fa-arrows-alt-v",file:"fas fa-paperclip",plus:"fas fa-plus",minus:"fas fa-minus"};var N=F;const V={complete:"fa fa-check",cancel:"fa fa-times-circle",close:"fa fa-times",delete:"fa fa-times-circle",clear:"fa fa-times-circle",success:"fa fa-check-circle",info:"fa fa-info-circle",warning:"fa fa-exclamation",error:"fa fa-exclamation-triangle",prev:"fa fa-chevron-left",next:"fa fa-chevron-right",checkboxOn:"fa fa-check-square",checkboxOff:"fa fa-square-o",checkboxIndeterminate:"fa fa-minus-square",delimiter:"fa fa-circle",sort:"fa fa-sort-up",expand:"fa fa-chevron-down",menu:"fa fa-bars",subgroup:"fa fa-caret-down",dropdown:"fa fa-caret-down",radioOn:"fa fa-dot-circle-o",radioOff:"fa fa-circle-o",edit:"fa fa-pencil",ratingEmpty:"fa fa-star-o",ratingFull:"fa fa-star",ratingHalf:"fa fa-star-half-o",loading:"fa fa-refresh",first:"fa fa-step-backward",last:"fa fa-step-forward",unfold:"fa fa-angle-double-down",file:"fa fa-paperclip",plus:"fa fa-plus",minus:"fa fa-minus"};var $=V;function U(t,e){const i={};for(const n in e)i[n]={component:t,props:{icon:e[n].split(" fa-")}};return i}var q=U("font-awesome-icon",N),G=Object.freeze({mdiSvg:L,md:z,mdi:B,fa:N,fa4:$,faSvg:q});class W extends u{constructor(t){super();const{iconfont:e,values:i,component:n}=t[W.property];this.component=n,this.iconfont=e,this.values=Object(c["s"])(G[e],i)}}W.property="icons";const Z="$vuetify.",H=Symbol("Lang fallback");function X(t,e,i=!1,n){const r=e.replace(Z,"");let s=Object(c["l"])(t,r,H);return s===H&&(i?(Object(o["b"])(`Translation key "${r}" not found in fallback`),s=e):(Object(o["c"])(`Translation key "${r}" not found, falling back to default`),s=X(n,e,!0,n))),s}class Q extends u{constructor(t){super(),this.defaultLocale="en";const{current:e,locales:i,t:n}=t[Q.property];this.current=e,this.locales=i,this.translator=n||this.defaultTranslator}currentLocale(t){const e=this.locales[this.current],i=this.locales[this.defaultLocale];return X(e,t,!1,i)}t(t,...e){return t.startsWith(Z)?this.translator(t,...e):this.replace(t,e)}defaultTranslator(t,...e){return this.replace(this.currentLocale(t),e)}replace(t,e){return t.replace(/\{(\d+)\}/g,(t,i)=>String(e[+i]))}}Q.property="lang";i("f665");var Y=i("7bc6"),K=i("8da5");const J=.20689655172413793,tt=t=>t>J**3?Math.cbrt(t):t/(3*J**2)+4/29,et=t=>t>J?t**3:3*J**2*(t-4/29);function it(t){const e=tt,i=e(t[1]);return[116*i-16,500*(e(t[0]/.95047)-i),200*(i-e(t[2]/1.08883))]}function nt(t){const e=et,i=(t[0]+16)/116;return[.95047*e(i+t[1]/500),e(i),1.08883*e(i-t[2]/200)]}function rt(t,e=!1,i=!0){const{anchor:n,...r}=t,o=Object.keys(r),s={};for(let a=0;a<o.length;++a){const n=o[a],r=t[n];null!=r&&(i?e?("base"===n||n.startsWith("lighten")||n.startsWith("darken"))&&(s[n]=Object(Y["a"])(r)):s[n]="object"===typeof r?rt(r,!0,i):ut(n,Object(Y["b"])(r)):s[n]={base:Object(Y["c"])(Object(Y["b"])(r))})}return e||(s.anchor=n||s.base||s.primary.base),s}const ot=(t,e)=>`\n.v-application .${t} {\n background-color: ${e} !important;\n border-color: ${e} !important;\n}\n.v-application .${t}--text {\n color: ${e} !important;\n caret-color: ${e} !important;\n}`,st=(t,e,i)=>{const[n,r]=e.split(/(\d)/,2);return`\n.v-application .${t}.${n}-${r} {\n background-color: ${i} !important;\n border-color: ${i} !important;\n}\n.v-application .${t}--text.text--${n}-${r} {\n color: ${i} !important;\n caret-color: ${i} !important;\n}`},at=(t,e="base")=>`--v-${t}-${e}`,lt=(t,e="base")=>`var(${at(t,e)})`;function ct(t,e=!1){const{anchor:i,...n}=t,r=Object.keys(n);if(!r.length)return"";let o="",s="";const a=e?lt("anchor"):i;s+=`.v-application a { color: ${a}; }`,e&&(o+=` ${at("anchor")}: ${i};\n`);for(let l=0;l<r.length;++l){const i=r[l],n=t[i];s+=ot(i,e?lt(i):n.base),e&&(o+=` ${at(i)}: ${n.base};\n`);const a=Object(c["r"])(n);for(let t=0;t<a.length;++t){const r=a[t],l=n[r];"base"!==r&&(s+=st(i,r,e?lt(i,r):l),e&&(o+=` ${at(i,r)}: ${l};\n`))}}return e&&(o=`:root {\n${o}}\n\n`),o+s}function ut(t,e){const i={base:Object(Y["c"])(e)};for(let n=5;n>0;--n)i["lighten"+n]=Object(Y["c"])(ht(e,n));for(let n=1;n<=4;++n)i["darken"+n]=Object(Y["c"])(dt(e,n));return i}function ht(t,e){const i=it(K["b"](t));return i[0]=i[0]+10*e,K["a"](nt(i))}function dt(t,e){const i=it(K["b"](t));return i[0]=i[0]-10*e,K["a"](nt(i))}class ft extends u{constructor(t){super(),this.disabled=!1,this.isDark=null,this.unwatch=null,this.vueMeta=null;const{dark:e,disable:i,options:n,themes:r}=t[ft.property];this.dark=Boolean(e),this.defaults=this.themes=r,this.options=n,i?this.disabled=!0:this.themes={dark:this.fillVariant(r.dar
39k,!0),light:this.fillVariant(r.light,!1)}}set css(t){this.vueMeta?this.isVueMeta23&&this.applyVueMeta23():this.checkOrCreateStyleElement()&&(this.styleEl.innerHTML=t)}set dark(t){const e=this.isDark;this.isDark=t,null!=e&&this.applyTheme()}get dark(){return Boolean(this.isDark)}applyTheme(){if(this.disabled)return this.clearCss();this.css=this.generatedStyles}clearCss(){this.css=""}init(t,e){this.disabled||(t.$meta?this.initVueMeta(t):e&&this.initSSR(e),this.initTheme(t))}setTheme(t,e){this.themes[t]=Object.assign(this.themes[t],e),this.applyTheme()}resetThemes(){this.themes.light=Object.assign({},this.defaults.light),this.themes.dark=Object.assign({},this.defaults.dark),this.applyTheme()}checkOrCreateStyleElement(){return this.styleEl=document.getElementById("vuetify-theme-stylesheet"),!!this.styleEl||(this.genStyleElement(),Boolean(this.styleEl))}fillVariant(t={},e){const i=this.themes[e?"dark":"light"];return Object.assign({},i,t)}genStyleElement(){"undefined"!==typeof document&&(this.styleEl=document.createElement("style"),this.styleEl.type="text/css",this.styleEl.id="vuetify-theme-stylesheet",this.options.cspNonce&&this.styleEl.setAttribute("nonce",this.options.cspNonce),document.head.appendChild(this.styleEl))}initVueMeta(t){if(this.vueMeta=t.$meta(),this.isVueMeta23)return void t.$nextTick(()=>{this.applyVueMeta23()});const e="function"===typeof this.vueMeta.getOptions?this.vueMeta.getOptions().keyName:"metaInfo",i=t.$options[e]||{};t.$options[e]=()=>{i.style=i.style||[];const t=i.style.find(t=>"vuetify-theme-stylesheet"===t.id);return t?t.cssText=this.generatedStyles:i.style.push({cssText:this.generatedStyles,type:"text/css",id:"vuetify-theme-stylesheet",nonce:(this.options||{}).cspNonce}),i}}applyVueMeta23(){const{set:t}=this.vueMeta.addApp("vuetify");t({style:[{cssText:this.generatedStyles,type:"text/css",id:"vuetify-theme-stylesheet",nonce:this.options.cspNonce}]})}initSSR(t){const e=this.options.cspNonce?` nonce="${this.options.cspNonce}"`:"";t.head=t.head||"",t.head+=`<style type="text/css" id="vuetify-theme-stylesheet"${e}>${this.generatedStyles}</style>`}initTheme(t){"undefined"!==typeof document&&(this.unwatch&&(this.unwatch(),this.unwatch=null),t.$once("hook:created",()=>{const e=r["a"].observable({themes:this.themes});this.unwatch=t.$watch(()=>e.themes,()=>this.applyTheme(),{deep:!0})}),this.applyTheme())}get currentTheme(){const t=this.dark?"dark":"light";return this.themes[t]}get generatedStyles(){const t=this.parsedTheme,e=this.options||{};let i;return null!=e.themeCache&&(i=e.themeCache.get(t),null!=i)||(i=ct(t,e.customProperties),null!=e.minifyTheme&&(i=e.minifyTheme(i)),null!=e.themeCache&&e.themeCache.set(t,i)),i}get parsedTheme(){return rt(this.currentTheme||{},void 0,Object(c["k"])(this.options,["variations"],!0))}get isVueMeta23(){return"function"===typeof this.vueMeta.addApp}}ft.property="theme";class pt{constructor(t={}){this.framework={isHydrating:!1},this.installed=[],this.preset={},this.userPreset={},this.userPreset=t,this.use(h),this.use(d),this.use(f),this.use(P),this.use(W),this.use(Q),this.use(ft)}init(t,e){this.installed.forEach(i=>{const n=this.framework[i];n.framework=this.framework,n.init(t,e)}),this.framework.rtl=Boolean(this.preset.rtl)}use(t){const e=t.property;this.installed.includes(e)||(this.framework[e]=new t(this.preset,this),this.installed.push(e))}}pt.install=s,pt.installed=!1,pt.version="2.7.2",pt.config={silent:!1}},f40d:function(t,e,i){"use strict";var n=i("2b0e");e["a"]=n["a"].extend({name:"transitionable",props:{mode:String,origin:String,transition:String}})},f45e:function(t,e,i){"use strict";i.d(e,"d",(function(){return s})),i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return l})),i.d(e,"a",(function(){return c}));var n=i("9ab4"),r=i("876b"),o={};function s(t,e){o[t]=e}var a=!1!==globalThis.__DEV__?h:void 0,l=!1!==globalThis.__DEV__?f:void 0,c=!1!==globalThis.__DEV__?d:void 0;function u(){var t={parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4};return Object.fromEntries(Object.entries(t).map((function(t){var e=t[0],i=t[1];return[e,r["a"][e]||i]})))}function h(){var t,e,i,r,s;if(!1===globalThis.__DEV__)throw new Error("only supported in development mode");return{limits:u(),sizes:Object(n["a"])({print:null===(t=o.print)||void 0===t?void 0:t.call(o),parser:null===(e=o.parser)||void 0===e?void 0:e.call(o),canonicalStringify:null===(i=o.canonicalStringify)||void 0===i?void 0:i.call(o),links:v(this.link),queryManager:{getDocumentInfo:this["queryManager"]["transformCache"].size,documentTransforms:y(this["queryManager"].documentTransform)}},null===(s=(r=this.cache).getMemoryInternals)||void 0===s?void 0:s.call(r))}}function d(){return{cache:{fragmentQueryDocuments:m(this["getFragmentDoc"])}}}function f(){var t=this.config.fragments;return Object(n["a"])(Object(n["a"])({},d.apply(this)),{addTypenameDocumentTransform:y(this["addTypenameTransform"]),inMemoryCache:{executeSelectionSet:m(this["storeReader"]["executeSelectionSet"]),executeSubSelectedArray:m(this["storeReader"]["executeSubSelectedArray"]),maybeBroadcastWatch:m(this["maybeBroadcastWatch"])},fragmentRegistry:{findFragmentSpreads:m(null===t||void 0===t?void 0:t.findFragmentSpreads),lookup:m(null===t||void 0===t?void 0:t.lookup),transform:m(null===t||void 0===t?void 0:t.transform)}})}function p(t){return!!t&&"dirtyKey"in t}function m(t){return p(t)?t.size:void 0}function g(t){return null!=t}function y(t){return _(t).map((function(t){return{cache:t}}))}function _(t){return t?Object(n["f"])(Object(n["f"])([m(null===t||void 0===t?void 0:t["performWork"])],_(null===t||void 0===t?void 0:t["left"]),!0),_(null===t||void 0===t?void 0:t["right"]),!0).filter(g):[]}function v(t){var e;return t?Object(n["f"])(Object(n["f"])([null===(e=null===t||void 0===t?void 0:t.getMemoryInternals)||void 0===e?void 0:e.call(t)],v(null===t||void 0===t?void 0:t.left),!0),v(null===t||void 0===t?void 0:t.right),!0).filter(g):[]}}
39,f5df:function(t,e,i){"use strict";var n=i("00ee"),r=i("1626"),o=i("c6b6"),s=i("b622"),a=s("toStringTag"),l=Object,c="Arguments"===o(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(i){}};t.exports=n?o:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=u(e=l(t),a))?i:c?o(e):"Object"===(n=o(e))&&r(e.callee)?"Arguments":n}},f665:function(t,e,i){"use strict";var n=i("23e7"),r=i("2266"),o=i("59ed"),s=i("825a"),a=i("46c4");n({target:"Iterator",proto:!0,real:!0},{find:function(t){s(this),o(t);var e=a(this),i=0;return r(e,(function(e,n){if(t(e,i++))return n(e)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},f6c4:function(t,e,i){"use strict";i("bd0c");var n=i("2b0e"),r=n["a"].extend({name:"ssr-bootable",data:()=>({isBooted:!1}),mounted(){window.requestAnimationFrame(()=>{this.$el.setAttribute("data-booted","true"),this.isBooted=!0})}}),o=i("80d2");e["a"]=r.extend({name:"v-main",props:{tag:{type:String,default:"main"}},computed:{styles(){const{bar:t,top:e,right:i,footer:n,insetFooter:r,bottom:o,left:s}=this.$vuetify.application;return{paddingTop:e+t+"px",paddingRight:i+"px",paddingBottom:n+r+o+"px",paddingLeft:s+"px"}}},render(t){const e={staticClass:"v-main",style:this.styles,ref:"main"};return t(this.tag,e,[t("div",{staticClass:"v-main__wrap"},Object(o["m"])(this))])}})},f772:function(t,e,i){"use strict";var n=i("5692"),r=i("90e3"),o=n("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},f846:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("ea5fe");function r(t,e){void 0===e&&(e=0);var i=Object(n["a"])("stringifyForDisplay");return JSON.stringify(t,(function(t,e){return void 0===e?i:e}),e).split(JSON.stringify(i)).join("<undefined>")}},f88b:function(t,e,i){"use strict";function n(){}i.d(e,"a",(function(){return r}));class r{constructor(t=1/0,e=n){this.max=t,this.dispose=e,this.map=new Map,this.newest=null,this.oldest=null}has(t){return this.map.has(t)}get(t){const e=this.getNode(t);return e&&e.value}get size(){return this.map.size}getNode(t){const e=this.map.get(t);if(e&&e!==this.newest){const{older:t,newer:i}=e;i&&(i.older=t),t&&(t.newer=i),e.older=this.newest,e.older.newer=e,e.newer=null,this.newest=e,e===this.oldest&&(this.oldest=i)}return e}set(t,e){let i=this.getNode(t);
39return i?i.value=e:(i={key:t,value:e,newer:null,older:this.newest},this.newest&&(this.newest.newer=i),this.newest=i,this.oldest=this.oldest||i,this.map.set(t,i),i.value)}clean(){while(this.oldest&&this.map.size>this.max)this.delete(this.oldest.key)}delete(t){const e=this.map.get(t);return!!e&&(e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.map.delete(t),this.dispose(e.value,t),!0)}}},fc6a:function(t,e,i){"use strict";var n=i("44ad"),r=i("1d80");t.exports=function(t){return n(r(t))}},fdbf:function(t,e,i){"use strict";var n=i("04f8");t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fe35:function(t,e,i){"use strict";var n;i.d(e,"a",(function(){return n})),function(t){t["NAME"]="Name",t["DOCUMENT"]="Document",t["OPERATION_DEFINITION"]="OperationDefinition",t["VARIABLE_DEFINITION"]="VariableDefinition",t["SELECTION_SET"]="SelectionSet",t["FIELD"]="Field",t["ARGUMENT"]="Argument",t["FRAGMENT_SPREAD"]="FragmentSpread",t["INLINE_FRAGMENT"]="InlineFragment",t["FRAGMENT_DEFINITION"]="FragmentDefinition",t["VARIABLE"]="Variable",t["INT"]="IntValue",t["FLOAT"]="FloatValue",t["STRING"]="StringValue",t["BOOLEAN"]="BooleanValue",t["NULL"]="NullValue",t["ENUM"]="EnumValue",t["LIST"]="ListValue",t["OBJECT"]="ObjectValue",t["OBJECT_FIELD"]="ObjectField",t["DIRECTIVE"]="Directive",t["NAMED_TYPE"]="NamedType",t["LIST_TYPE"]="ListType",t["NON_NULL_TYPE"]="NonNullType",t["SCHEMA_DEFINITION"]="SchemaDefinition",t["OPERATION_TYPE_DEFINITION"]="OperationTypeDefinition",t["SCALAR_TYPE_DEFINITION"]="ScalarTypeDefinition",t["OBJECT_TYPE_DEFINITION"]="ObjectTypeDefinition",t["FIELD_DEFINITION"]="FieldDefinition",t["INPUT_VALUE_DEFINITION"]="InputValueDefinition",t["INTERFACE_TYPE_DEFINITION"]="InterfaceTypeDefinition",t["UNION_TYPE_DEFINITION"]="UnionTypeDefinition",t["ENUM_TYPE_DEFINITION"]="EnumTypeDefinition",t["ENUM_VALUE_DEFINITION"]="EnumValueDefinition",t["INPUT_OBJECT_TYPE_DEFINITION"]="InputObjectTypeDefinition",t["DIRECTIVE_DEFINITION"]="DirectiveDefinition",t["SCHEMA_EXTENSION"]="SchemaExtension",t["SCALAR_TYPE_EXTENSION"]="ScalarTypeExtension",t["OBJECT_TYPE_EXTENSION"]="ObjectTypeExtension",t["INTERFACE_TYPE_EXTENSION"]="InterfaceTypeExtension",t["UNION_TYPE_EXTENSION"]="UnionTypeExtension",t["ENUM_TYPE_EXTENSION"]="EnumTypeExtension",t["INPUT_OBJECT_TYPE_EXTENSION"]="InputObjectTypeExtension"}(n||(n={}))},fe6c:function(t,e,i){"use strict";i.d(e,"b",(function(){return s}));var n=i("2b0e"),r=i("80d2");const o={absolute:Boolean,bottom:Boolean,fixed:Boolean,left:Boolean,right:Boolean,top:Boolean};function s(t=[]){return n["a"].extend({name:"positionable",props:t.length?Object(r["j"])(o,t):o})}e["a"]=s()},ff44:function(t,e,i){}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.