!function t(e,i,r){function n(a,s){if(!i[a]){if(!e[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=i[a]={exports:{}};e[a][0].call(c.exports,(function(t){return n(e[a][1][t]||t)}),c,c.exports,t,e,i,r)}return i[a].exports}for(var o="function"==typeof require&&require,a=0;au/n*r?t/r:u/n:"contain"===s?u>t/r*n?t/r:u/n:1,l?i.style.transform="scale("+e+")":(i.style.width=r*e+"px",i.style.height=n*e+"px"),i.style.left=t!==r*e?c*a+"px":"0px",i.style.top=u!==n*e?h*o+"px":"0px"):setTimeout(p,30)}i.style.position="absolute",i.parentElement.style.overflow="hidden",l&&(i.style.transformOrigin="left top"),-1===["relative","absolute","fixed"].indexOf(window.getComputedStyle(i.parentElement,null).getPropertyValue("position"))&&(i.parentElement.style.position="relative"),u(),c(),p(),this.update=p,this.setWidth=function(t){r=Number(t)},this.setHeight=function(t){n=Number(t)},this.setValign=function(t){o=t,u()},this.setHalign=function(t){a=t,c()},this.setFit=function(t){s=t},this.getWidth=function(){return Number(r)},this.getHeight=function(){return Number(n)},this.getCurrentWidth=function(){return e*r},this.getCurrentHeight=function(){return e*n},this.getValign=function(){return o},this.getHalign=function(){return a},this.getFit=function(){return s},this.getScale=function(){return e}}},{}],3:[function(t,e,i){"use strict";t("./index").polyfill()},{"./index":4}],4:[function(t,e,i){"use strict";function r(t,e){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var i=Object(t),r=1;ry&&(y=m),mx?x-1:l?"y"===l?x/_:_:Math.max(_,x/_))||0,b.b=x<0?o-x:o}return x=(b[t]-b.min)/b.max,b.b+(r?r.getRatio(x):x)*b.v}},s=function t(e,i,n){r.call(this,e,i,n),this._cycle=0,this._yoyo=!0===this.vars.yoyo||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._repeat&&this._uncache(!0),this.render=t.prototype.render},l=r._internals,u=l.isSelector,c=l.isArray,p=s.prototype=r.to({},.1,{}),h=[];s.version="2.1.3",p.constructor=s,p.kill()._gc=!1,s.killTweensOf=s.killDelayedCallsTo=r.killTweensOf,s.getTweensOf=r.getTweensOf,s.lagSmoothing=r.lagSmoothing,s.ticker=r.ticker,s.render=r.render,s.distribute=a,p.invalidate=function(){return this._yoyo=!0===this.vars.yoyo||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._yoyoEase=null,this._uncache(!0),r.prototype.invalidate.call(this)},p.updateTo=function(t,e){var i,n=this.ratio,o=this.vars.immediateRender||t.immediateRender;for(i in e&&this._startTime.998){var a=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(a,!0,!1)}else if(this._initted=!1,this._init(),this._time>0||o)for(var s,l=1/(1-n),u=this._firstPT;u;)s=u.s+u.c,u.c*=l,u.s=s-u.c,u=u._next;return this},p.render=function(t,e,i){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var n,o,a,s,u,c,p,h,f,d=this._dirty?this.totalDuration():this._totalDuration,m=this._time,v=this._totalTime,y=this._cycle,g=this._duration,_=this._rawPrevTime;if(t>=d-1e-8&&t>=0?(this._totalTime=d,this._cycle=this._repeat,this._yoyo&&0!=(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=g,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(n=!0,o="onComplete",i=i||this._timeline.autoRemoveChildren),0===g&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(_<0||t<=0&&t>=-1e-8||1e-8===_&&"isPause"!==this.data)&&_!==t&&(i=!0,_>1e-8&&(o="onReverseComplete")),this._rawPrevTime=h=!e||t||_===t?t:1e-8)):t<1e-8?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==v||0===g&&_>0)&&(o="onReverseComplete",n=this._reversed),t>-1e-8?t=0:t<0&&(this._active=!1,0===g&&(this._initted||!this.vars.lazy||i)&&(_>=0&&(i=!0),this._rawPrevTime=h=!e||t||_===t?t:1e-8)),this._initted||(i=!0)):(this._totalTime=this._time=t,0!==this._repeat&&(s=g+this._repeatDelay,this._cycle=this._totalTime/s>>0,0!==this._cycle&&this._cycle===this._totalTime/s&&v<=t&&this._cycle--,this._time=this._totalTime-this._cycle*s,this._yoyo&&0!=(1&this._cycle)&&(this._time=g-this._time,(f=this._yoyoEase||this.vars.yoyoEase)&&(this._yoyoEase||(!0!==f||this._initted?this._yoyoEase=f=!0===f?this._ease:f instanceof Ease?f:Ease.map[f]:(f=this.vars.ease,this._yoyoEase=f=f?f instanceof Ease?f:"function"==typeof f?new Ease(f,this.vars.easeParams):Ease.map[f]||r.defaultEase:r.defaultEase)),this.ratio=f?1-f.getRatio((g-this._time)/g):0)),this._time>g?this._time=g:this._time<0&&(this._time=0)),this._easeType&&!f?(u=this._time/g,(1===(c=this._easeType)||3===c&&u>=.5)&&(u=1-u),3===c&&(u*=2),1===(p=this._easePower)?u*=u:2===p?u*=u*u:3===p?u*=u*u*u:4===p&&(u*=u*u*u*u),this.ratio=1===c?1-u:2===c?u:this._time/g<.5?u/2:1-u/2):f||(this.ratio=this._ease.getRatio(this._time/g))),m!==this._time||i||y!==this._cycle){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=m,this._totalTime=v,this._rawPrevTime=_,this._cycle=y,l.lazyTweens.push(this),void(this._lazy=[t,e]);!this._time||n||f?n&&this._ease._calcEnd&&!f&&(this.ratio=this._ease.getRatio(0===this._time?0:1)):this.ratio=this._ease.getRatio(this._time/g)}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==m&&t>=0&&(this._active=!0),0===v&&(2===this._initted&&t>0&&this._init(),this._startAt&&(t>=0?this._startAt.render(t,!0,i):o||(o="_dummyGS")),this.vars.onStart&&(0===this._totalTime&&0!==g||e||this._callback("onStart"))),a=this._firstPT;a;)a.f?a.t[a.p](a.c*this.ratio+a.s):a.t[a.p]=a.c*this.ratio+a.s,a=a._next;this._onUpdate&&(t<0&&this._startAt&&this._startTime&&this._startAt.render(t,!0,i),e||(this._totalTime!==v||o)&&this._callback("onUpdate")),this._cycle!==y&&(e||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),o&&(this._gc&&!i||(t<0&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(t,!0,i),n&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[o]&&this._callback(o),0===g&&1e-8===this._rawPrevTime&&1e-8!==h&&(this._rawPrevTime=0)))}else v!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate"))},s.to=function(t,e,i){return new s(t,e,i)},s.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new s(t,e,i)},s.fromTo=function(t,e,i,r){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,new s(t,e,r)},s.staggerTo=s.allTo=function(t,e,i,l,p,f,d){var m,v,y,g,_=[],x=a(i.stagger||l),b=i.cycle,w=(i.startAt||h).cycle;for(c(t)||("string"==typeof t&&(t=r.selector(t)||t),u(t)&&(t=n(t))),m=(t=t||[]).length-1,y=0;y<=m;y++){for(g in v={},i)v[g]=i[g];if(b&&(o(v,t,y),null!=v.duration&&(e=v.duration,delete v.duration)),w){for(g in w=v.startAt={},i.startAt)w[g]=i.startAt[g];o(v.startAt,t,y)}v.delay=x(y,t[y],t)+(v.delay||0),y===m&&p&&(v.onComplete=function(){i.onComplete&&i.onComplete.apply(i.onCompleteScope||this,arguments),p.apply(d||i.callbackScope||this,f||h)}),_[y]=new s(t[y],e,v)}return _},s.staggerFrom=s.allFrom=function(t,e,i,r,n,o,a){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,s.staggerTo(t,e,i,r,n,o,a)},s.staggerFromTo=s.allFromTo=function(t,e,i,r,n,o,a,l){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,s.staggerTo(t,e,r,n,o,a,l)},s.delayedCall=function(t,e,i,r,n){return new s(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:r,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,useFrames:n,overwrite:0})},s.set=function(t,e){return new s(t,0,e)},s.isTweening=function(t){return r.getTweensOf(t,!0).length>0};var f=function t(e,i){for(var n=[],o=0,a=e._first;a;)a instanceof r?n[o++]=a:(i&&(n[o++]=a),o=(n=n.concat(t(a,i))).length),a=a._next;return n},d=s.getAllTweens=function(e){return f(t._rootTimeline,e).concat(f(t._rootFramesTimeline,e))};s.killAll=function(t,i,r,n){null==i&&(i=!0),null==r&&(r=!0);var o,a,s,l=d(0!=n),u=l.length,c=i&&r&&n;for(s=0;s-1;)s.killChildTweensOf(t[p],e);else{for(a in i=[],f)for(o=f[a].target.parentNode;o;)o===t&&(i=i.concat(f[a].tweens)),o=o.parentNode;for(h=i.length,p=0;p-1;)a=s[u],(l||a instanceof e||(o=a.target===a.vars.onComplete)&&r||i&&!o)&&a.paused(t)};return s.pauseAll=function(t,e,i){m(!0,t,e,i)},s.resumeAll=function(t,e,i){m(!1,t,e,i)},s.globalTimeScale=function(e){var i=t._rootTimeline,n=r.ticker.time;return arguments.length?(e=e||1e-8,i._startTime=n-(n-i._startTime)*i._timeScale/e,i=t._rootFramesTimeline,n=r.ticker.frame,i._startTime=n-(n-i._startTime)*i._timeScale/e,i._timeScale=t._rootTimeline._timeScale=e,e):i._timeScale},p.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this.duration()?this._time/this._duration:this.ratio},p.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},p.time=function(t,e){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();var i=this._duration,r=this._cycle,n=r*(i+this._repeatDelay);return t>i&&(t=i),this.totalTime(this._yoyo&&1&r?i-t+n:this._repeat?t+n:t,e)},p.duration=function(e){return arguments.length?t.prototype.duration.call(this,e):this._duration},p.totalDuration=function(t){return arguments.length?-1===this._repeat?this:this.duration((t-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},p.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},p.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},p.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},s}),!0),r._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],(function(t,e,n){var o=function(t){e.call(this,t);var i,r,n=this.vars;for(r in this._labels={},this.autoRemoveChildren=!!n.autoRemoveChildren,this.smoothChildTiming=!!n.smoothChildTiming,this._sortChildren=!0,this._onUpdate=n.onUpdate,n)i=n[r],u(i)&&-1!==i.join("").indexOf("{self}")&&(n[r]=this._swapSelfInParams(i));u(n.tweens)&&this.add(n.tweens,0,n.align,n.stagger)},a=n._internals,s=o._internals={},l=a.isSelector,u=a.isArray,c=a.lazyTweens,p=a.lazyRender,h=r._gsDefine.globals,f=function(t){var e,i={};for(e in t)i[e]=t[e];return i},d=function(t,e,i){var r,n,o=t.cycle;for(r in o)n=o[r],t[r]="function"==typeof n?n(i,e[i],e):n[i%n.length];delete t.cycle},m=s.pauseCallback=function(){},v=function(t,e,i,r){var n="immediateRender";return n in e||(e[n]=!(i&&!1===i[n]||r)),e},y=function(t){if("function"==typeof t)return t;var e="object"===i(t)?t:{each:t},r=e.ease,n=e.from||0,o=e.base||0,a={},s=isNaN(n),l=e.axis,u={center:.5,end:1}[n]||0;return function(t,i,c){var p,h,f,d,m,v,y,g,_,x=(c||e).length,b=a[x];if(!b){if(!(_="auto"===e.grid?0:(e.grid||[1/0])[0])){for(y=-1/0;y<(y=c[_++].getBoundingClientRect().left)&&_y&&(y=m),mx?x-1:l?"y"===l?x/_:_:Math.max(_,x/_))||0,b.b=x<0?o-x:o}return x=(b[t]-b.min)/b.max,b.b+(r?r.getRatio(x):x)*b.v}},g=o.prototype=new e;return o.version="2.1.3",o.distribute=y,g.constructor=o,g.kill()._gc=g._forcingPlayhead=g._hasPause=!1,g.to=function(t,e,i,r){var o=i.repeat&&h.TweenMax||n;return e?this.add(new o(t,e,i),r):this.set(t,i,r)},g.from=function(t,e,i,r){return this.add((i.repeat&&h.TweenMax||n).from(t,e,v(0,i)),r)},g.fromTo=function(t,e,i,r,o){var a=r.repeat&&h.TweenMax||n;return r=v(0,r,i),e?this.add(a.fromTo(t,e,i,r),o):this.set(t,r,o)},g.staggerTo=function(t,e,i,r,a,s,u,c){var p,h,m=new o({onComplete:s,onCompleteParams:u,callbackScope:c,smoothChildTiming:this.smoothChildTiming}),v=y(i.stagger||r),g=i.startAt,_=i.cycle;for("string"==typeof t&&(t=n.selector(t)||t),l(t=t||[])&&(t=function(t){var e,i=[],r=t.length;for(e=0;e!==r;i.push(t[e++]));return i}(t)),h=0;h1e-5)&&i.render(l,!1,!1)),(this._gc||this._time===this._duration)&&!this._paused&&this._durationi._startTime;f._timeline;)d&&f._timeline.smoothChildTiming?f.totalTime(f._totalTime,!0):f._gc&&f._enabled(!0,!1),f=f._timeline;return this},g.remove=function(e){if(e instanceof t){this._remove(e,!1);var i=e._timeline=e.vars.useFrames?t._rootFramesTimeline:t._rootTimeline;return e._startTime=(e._paused?e._pauseTime:i._time)-(e._reversed?e.totalDuration()-e._totalTime:e._totalTime)/e._timeScale,this}if(e instanceof Array||e&&e.push&&u(e)){for(var r=e.length;--r>-1;)this.remove(e[r]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},g._remove=function(t,i){return e.prototype._remove.call(this,t,i),this._last?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},g.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},g.insert=g.insertMultiple=function(t,e,i,r){return this.add(t,e||0,i,r)},g.appendMultiple=function(t,e,i,r){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,r)},g.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},g.addPause=function(t,e,i,r){var o=n.delayedCall(0,m,i,r||this);return o.vars.onComplete=o.vars.onReverseComplete=e,o.data="isPause",this._hasPause=!0,this.add(o,t)},g.removeLabel=function(t){return delete this._labels[t],this},g.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},g._parseTimeOrLabel=function(e,i,r,n){var o,a;if(n instanceof t&&n.timeline===this)this.remove(n);else if(n&&(n instanceof Array||n.push&&u(n)))for(a=n.length;--a>-1;)n[a]instanceof t&&n[a].timeline===this&&this.remove(n[a]);if(o="number"!=typeof e||i?this.duration()>99999999999?this.recent().endTime(!1):this._duration:0,"string"==typeof i)return this._parseTimeOrLabel(i,r&&"number"==typeof e&&null==this._labels[i]?e-o:0,r);if(i=i||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=o);else{if(-1===(a=e.indexOf("=")))return null==this._labels[e]?r?this._labels[e]=o+i:i:this._labels[e]+i;i=parseInt(e.charAt(a-1)+"1",10)*Number(e.substr(a+1)),e=a>1?this._parseTimeOrLabel(e.substr(0,a-1),0,r):o}return Number(e)+i},g.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),!1!==e)},g.stop=function(){return this.paused(!0)},g.gotoAndPlay=function(t,e){return this.play(t,e)},g.gotoAndStop=function(t,e){return this.pause(t,e)},g.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var r,n,o,a,s,l,u,h,f=this._time,d=this._dirty?this.totalDuration():this._totalDuration,m=this._startTime,v=this._timeScale,y=this._paused;if(f!==this._time&&(t+=this._time-f),this._hasPause&&!this._forcingPlayhead&&!e){if(t>f)for(r=this._first;r&&r._startTime<=t&&!l;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===this._rawPrevTime||(l=r),r=r._next;else for(r=this._last;r&&r._startTime>=t&&!l;)r._duration||"isPause"===r.data&&r._rawPrevTime>0&&(l=r),r=r._prev;l&&(this._time=this._totalTime=t=l._startTime,h=this._startTime+(this._reversed?this._duration-t:t)/this._timeScale)}if(t>=d-1e-8&&t>=0)this._totalTime=this._time=d,this._reversed||this._hasPausedChild()||(n=!0,a="onComplete",s=!!this._timeline.autoRemoveChildren,0===this._duration&&(t<=0&&t>=-1e-8||this._rawPrevTime<0||1e-8===this._rawPrevTime)&&this._rawPrevTime!==t&&this._first&&(s=!0,this._rawPrevTime>1e-8&&(a="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:1e-8,t=d+1e-4;else if(t<1e-8)if(this._totalTime=this._time=0,t>-1e-8&&(t=0),(0!==f||0===this._duration&&1e-8!==this._rawPrevTime&&(this._rawPrevTime>0||t<0&&this._rawPrevTime>=0))&&(a="onReverseComplete",n=this._reversed),t<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(s=n=!0,a="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(s=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:1e-8,0===t&&n)for(r=this._first;r&&0===r._startTime;)r._duration||(n=!1),r=r._next;t=0,this._initted||(s=!0)}else this._totalTime=this._time=this._rawPrevTime=t;if(this._time!==f&&this._first||i||s||l){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==f&&t>0&&(this._active=!0),0===f&&this.vars.onStart&&(0===this._time&&this._duration||e||this._callback("onStart")),(u=this._time)>=f)for(r=this._first;r&&(o=r._next,u===this._time&&(!this._paused||y));)(r._active||r._startTime<=u&&!r._paused&&!r._gc)&&(l===r&&(this.pause(),this._pauseTime=h),r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=o;else for(r=this._last;r&&(o=r._prev,u===this._time&&(!this._paused||y));){if(r._active||r._startTime<=f&&!r._paused&&!r._gc){if(l===r){for(l=r._prev;l&&l.endTime()>this._time;)l.render(l._reversed?l.totalDuration()-(t-l._startTime)*l._timeScale:(t-l._startTime)*l._timeScale,e,i),l=l._prev;l=null,this.pause(),this._pauseTime=h}r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)}r=o}this._onUpdate&&(e||(c.length&&p(),this._callback("onUpdate"))),a&&(this._gc||m!==this._startTime&&v===this._timeScale||(0===this._time||d>=this.totalDuration())&&(n&&(c.length&&p(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[a]&&this._callback(a)))}},g._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof o&&t._hasPausedChild())return!0;t=t._next}return!1},g.getChildren=function(t,e,i,r){r=r||-9999999999;for(var o=[],a=this._first,s=0;a;)a._startTime-1;)(i[r].timeline===this||e&&this._contains(i[r]))&&(a[s++]=i[r]);return o&&this._enabled(!1,!0),a},g.recent=function(){return this._recent},g._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},g.shiftChildren=function(t,e,i){i=i||0;for(var r,n=this._first,o=this._labels;n;)n._startTime>=i&&(n._startTime+=t),n=n._next;if(e)for(r in o)o[r]>=i&&(o[r]+=t);return this._uncache(!0)},g._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),r=i.length,n=!1;--r>-1;)i[r]._kill(t,e)&&(n=!0);return n},g.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;--i>-1;)e[i]._enabled(!1,!1);return!1!==t&&(this._labels={}),this._uncache(!0)},g.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},g._enabled=function(t,i){if(t===this._gc)for(var r=this._first;r;)r._enabled(t,!0),r=r._next;return e.prototype._enabled.call(this,t,i)},g.totalTime=function(e,i,r){this._forcingPlayhead=!0;var n=t.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,n},g.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},g.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,r=0,n=this,o=n._last,a=999999999999;o;)e=o._prev,o._dirty&&o.totalDuration(),o._startTime>a&&n._sortChildren&&!o._paused&&!n._calculatingDuration?(n._calculatingDuration=1,n.add(o,o._startTime-o._delay),n._calculatingDuration=0):a=o._startTime,o._startTime<0&&!o._paused&&(r-=o._startTime,n._timeline.smoothChildTiming&&(n._startTime+=o._startTime/n._timeScale,n._time-=o._startTime,n._totalTime-=o._startTime,n._rawPrevTime-=o._startTime),n.shiftChildren(-o._startTime,!1,-9999999999),a=0),(i=o._startTime+o._totalDuration/o._timeScale)>r&&(r=i),o=e;n._duration=n._totalDuration=r,n._dirty=!1}return this._totalDuration}return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this},g.paused=function(e){if(!1===e&&this._paused)for(var i=this._first;i;)i._startTime===this._time&&"isPause"===i.data&&(i._rawPrevTime=0),i=i._next;return t.prototype.paused.apply(this,arguments)},g.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootFramesTimeline},g.rawTime=function(t){return t&&(this._paused||this._repeat&&this.time()>0&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(t)-this._startTime)*this._timeScale},o}),!0),r._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],(function(t,e,i){var n=function(e){t.call(this,e),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!!this.vars.yoyo,this._dirty=!0},o=e._internals,a=o.lazyTweens,s=o.lazyRender,l=r._gsDefine.globals,u=new i(null,null,1,0),c=n.prototype=new t;return c.constructor=n,c.kill()._gc=!1,n.version="2.1.3",c.invalidate=function(){return this._yoyo=!!this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),t.prototype.invalidate.call(this)},c.addCallback=function(t,i,r,n){return this.add(e.delayedCall(0,t,r,n),i)},c.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var i=this.getTweensOf(t,!1),r=i.length,n=this._parseTimeOrLabel(e);--r>-1;)i[r]._startTime===n&&i[r]._enabled(!1,!1);return this},c.removePause=function(e){return this.removeCallback(t._internals.pauseCallback,e)},c.tweenTo=function(t,i){i=i||{};var r,n,o,a={ease:u,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},s=i.repeat&&l.TweenMax||e;for(n in i)a[n]=i[n];return a.time=this._parseTimeOrLabel(t),r=Math.abs(Number(a.time)-this._time)/this._timeScale||.001,o=new s(this,r,a),a.onStart=function(){o.target.paused(!0),o.vars.time===o.target.time()||r!==o.duration()||o.isFromTo||o.duration(Math.abs(o.vars.time-o.target.time())/o.target._timeScale).render(o.time(),!0,!0),i.onStart&&i.onStart.apply(i.onStartScope||i.callbackScope||o,i.onStartParams||[])},o},c.tweenFromTo=function(t,e,i){i=i||{},t=this._parseTimeOrLabel(t),i.startAt={onComplete:this.seek,onCompleteParams:[t],callbackScope:this},i.immediateRender=!1!==i.immediateRender;var r=this.tweenTo(e,i);return r.isFromTo=1,r.duration(Math.abs(r.vars.time-t)/this._timeScale||.001)},c.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var r,n,o,l,u,c,p,h,f,d=this._time,m=this._dirty?this.totalDuration():this._totalDuration,v=this._duration,y=this._totalTime,g=this._startTime,_=this._timeScale,x=this._rawPrevTime,b=this._paused,w=this._cycle;if(d!==this._time&&(t+=this._time-d),t>=m-1e-8&&t>=0)this._locked||(this._totalTime=m,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(n=!0,l="onComplete",u=!!this._timeline.autoRemoveChildren,0===this._duration&&(t<=0&&t>=-1e-8||x<0||1e-8===x)&&x!==t&&this._first&&(u=!0,x>1e-8&&(l="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:1e-8,this._yoyo&&1&this._cycle?this._time=t=0:(this._time=v,t=v+1e-4);else if(t<1e-8)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,t>-1e-8&&(t=0),(0!==d||0===v&&1e-8!==x&&(x>0||t<0&&x>=0)&&!this._locked)&&(l="onReverseComplete",n=this._reversed),t<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(u=n=!0,l="onReverseComplete"):x>=0&&this._first&&(u=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=v||!e||t||this._rawPrevTime===t?t:1e-8,0===t&&n)for(r=this._first;r&&0===r._startTime;)r._duration||(n=!1),r=r._next;t=0,this._initted||(u=!0)}else 0===v&&x<0&&(u=!0),this._time=this._rawPrevTime=t,this._locked||(this._totalTime=t,0!==this._repeat&&(c=v+this._repeatDelay,this._cycle=this._totalTime/c>>0,this._cycle&&this._cycle===this._totalTime/c&&y<=t&&this._cycle--,this._time=this._totalTime-this._cycle*c,this._yoyo&&1&this._cycle&&(this._time=v-this._time),this._time>v?(this._time=v,t=v+1e-4):this._time<0?this._time=t=0:t=this._time));if(this._hasPause&&!this._forcingPlayhead&&!e){if((t=this._time)>d||this._repeat&&w!==this._cycle)for(r=this._first;r&&r._startTime<=t&&!p;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===this._rawPrevTime||(p=r),r=r._next;else for(r=this._last;r&&r._startTime>=t&&!p;)r._duration||"isPause"===r.data&&r._rawPrevTime>0&&(p=r),r=r._prev;p&&(f=this._startTime+(this._reversed?this._duration-p._startTime:p._startTime)/this._timeScale,p._startTime0&&(this._active=!0),0===y&&this.vars.onStart&&(0===this._totalTime&&this._totalDuration||e||this._callback("onStart")),(h=this._time)>=d)for(r=this._first;r&&(o=r._next,h===this._time&&(!this._paused||b));)(r._active||r._startTime<=this._time&&!r._paused&&!r._gc)&&(p===r&&(this.pause(),this._pauseTime=f),r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=o;else for(r=this._last;r&&(o=r._prev,h===this._time&&(!this._paused||b));){if(r._active||r._startTime<=d&&!r._paused&&!r._gc){if(p===r){for(p=r._prev;p&&p.endTime()>this._time;)p.render(p._reversed?p.totalDuration()-(t-p._startTime)*p._timeScale:(t-p._startTime)*p._timeScale,e,i),p=p._prev;p=null,this.pause(),this._pauseTime=f}r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)}r=o}this._onUpdate&&(e||(a.length&&s(),this._callback("onUpdate"))),l&&(this._locked||this._gc||g!==this._startTime&&_===this._timeScale||(0===this._time||m>=this.totalDuration())&&(n&&(a.length&&s(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[l]&&this._callback(l)))}else y!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate"))},c.getActive=function(t,e,i){var r,n,o=[],a=this.getChildren(t||null==t,e||null==t,!!i),s=0,l=a.length;for(r=0;rt)return i[e].name;return null},c.getLabelBefore=function(t){null==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length;--i>-1;)if(e[i].timei&&(t=i),this.totalTime(this._yoyo&&1&r?i-t+n:this._repeat?t+n:t,e)},c.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},c.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},c.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},c.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+1e-8)},n}),!0),t=180/Math.PI,e=[],n=[],o=[],a={},s=r._gsDefine.globals,l=function(t,e,i,r){i===r&&(i=r-(r-e)/1e6),t===e&&(e=t+(i-t)/1e6),this.a=t,this.b=e,this.c=i,this.d=r,this.da=r-t,this.ca=i-t,this.ba=e-t},u=function(t,e,i,r){var n={a:t},o={},a={},s={c:r},l=(t+e)/2,u=(e+i)/2,c=(i+r)/2,p=(l+u)/2,h=(u+c)/2,f=(h-p)/8;return n.b=l+(t-l)/4,o.b=p+f,n.c=o.a=(n.b+o.b)/2,o.c=a.a=(p+h)/2,a.b=h-f,s.b=c+(r-c)/4,a.c=s.a=(a.b+s.b)/2,[n,o,a,s]},c=function(t,i,r,a,s){var l,c,p,h,f,d,m,v,y,g,_,x,b,w=t.length-1,T=0,S=t[0].a;for(l=0;l-1;)"string"==typeof(h=t[s][i])&&"="===h.charAt(1)&&(t[s][i]=o[i]+Number(h.charAt(0)+h.substr(2)));if((a=t.length-2)<0)return f[0]=new l(t[0][i],0,0,t[0][i]),f;for(s=0;s1){for(_=t[t.length-1],g=!0,h=b.length;--h>-1;)if(f=b[h],Math.abs(w[f]-_[f])>.05){g=!1;break}g&&(t=t.concat(),u&&t.unshift(u),t.push(t[1]),u=t[t.length-3])}for(e.length=n.length=o.length=0,h=b.length;--h>-1;)f=b[h],a[f]=-1!==l.indexOf(","+f+","),x[f]=p(t,f,a[f],u);for(h=e.length;--h>-1;)e[h]=Math.sqrt(e[h]),n[h]=Math.sqrt(n[h]);if(!s){for(h=b.length;--h>-1;)if(a[f])for(y=(d=x[b[h]]).length-1,m=0;m-1;)o[h]=Math.sqrt(o[h])}for(h=b.length,m=r?4:1;--h>-1;)d=x[f=b[h]],c(d,i,r,s,a[f]),g&&(d.splice(0,m),d.splice(d.length-m,m));return x},f=function(t,e,i){for(var r,n,o,a,s,l,u,c,p,h,f,d=1/i,m=t.length;--m>-1;)for(o=(h=t[m]).a,a=h.d-o,s=h.c-o,l=h.b-o,r=n=0,c=1;c<=i;c++)r=n-(n=((u=d*c)*u*a+3*(p=1-u)*(u*s+p*l))*u),e[f=m*i+c-1]=(e[f]||0)+r*r},d=r._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.9",API:2,global:!0,init:function(t,e,i){this._target=t,e instanceof Array&&(e={values:e}),this._func={},this._mod={},this._props=[],this._timeRes=null==e.timeResolution?6:parseInt(e.timeResolution,10);var r,n,o,a,s,u=e.values||[],c={},p=u[0],d=e.autoRotate||i.vars.orientToBezier;for(r in this._autoRotate=d?d instanceof Array?d:[["x","y","rotation",!0===d?0:Number(d)||0]]:null,p)this._props.push(r);for(o=this._props.length;--o>-1;)r=this._props[o],this._overwriteProps.push(r),n=this._func[r]="function"==typeof t[r],c[r]=n?t[r.indexOf("set")||"function"!=typeof t["get"+r.substr(3)]?r:"get"+r.substr(3)]():parseFloat(t[r]),s||c[r]!==u[0][r]&&(s=c);if(this._beziers="cubic"!==e.type&&"quadratic"!==e.type&&"soft"!==e.type?h(u,isNaN(e.curviness)?1:e.curviness,!1,"thruBasic"===e.type,e.correlate,s):function(t,e,i){var r,n,o,a,s,u,c,p,h,f,d,m={},v="cubic"===(e=e||"soft")?3:2,y="soft"===e,g=[];if(y&&i&&(t=[i].concat(t)),null==t||t.length-1;){for(m[h=g[u]]=s=[],f=0,p=t.length,c=0;c1&&c>0||6)-1,p=[],h=[];for(i in t)f(t[i],a,e);for(n=a.length,r=0;r>0]=h,s[o]=u,l=0,h=[]);return{length:u,lengths:s,segments:p}}(this._beziers,this._timeRes);this._length=m.length,this._lengths=m.lengths,this._segments=m.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(d=this._autoRotate)for(this._initialRotations=[],d[0]instanceof Array||(this._autoRotate=d=[d]),o=d.length;--o>-1;){for(a=0;a<3;a++)r=d[o][a],this._func[r]="function"==typeof t[r]&&t[r.indexOf("set")||"function"!=typeof t["get"+r.substr(3)]?r:"get"+r.substr(3)];r=d[o][2],this._initialRotations[o]=(this._func[r]?this._func[r].call(this._target):this._target[r])||0,this._overwriteProps.push(r)}return this._startRatio=i.vars.runBackwards?1:0,!0},set:function(e){var i,r,n,o,a,s,l,u,c,p,h,f=this._segCount,d=this._func,m=this._target,v=e!==this._startRatio;if(this._timeRes){if(c=this._lengths,p=this._curSeg,h=e*this._length,n=this._li,h>this._l2&&n0){for(;n>0&&(this._l1=c[--n])>=h;);0===n&&hthis._s2&&n0){for(;n>0&&(this._s1=p[--n])>=h;);0===n&&h=1?f-1:f*e>>0)*(1/f))*f;for(r=1-s,n=this._props.length;--n>-1;)o=this._props[n],l=(s*s*(a=this._beziers[o][i]).da+3*r*(s*a.ca+r*a.ba))*s+a.a,this._mod[o]&&(l=this._mod[o](l,m)),d[o]?m[o](l):m[o]=l;if(this._autoRotate){var y,g,_,x,b,w,T,S=this._autoRotate;for(n=S.length;--n>-1;)o=S[n][2],w=S[n][3]||0,T=!0===S[n][4]?1:t,a=this._beziers[S[n][0]],y=this._beziers[S[n][1]],a&&y&&(a=a[i],y=y[i],g=a.a+(a.b-a.a)*s,g+=((x=a.b+(a.c-a.b)*s)-g)*s,x+=(a.c+(a.d-a.c)*s-x)*s,_=y.a+(y.b-y.a)*s,_+=((b=y.b+(y.c-y.b)*s)-_)*s,b+=(y.c+(y.d-y.c)*s-b)*s,l=v?Math.atan2(b-_,x-g)*T+w:this._initialRotations[n],this._mod[o]&&(l=this._mod[o](l,m)),d[o]?m[o](l):m[o]=l)}}}),m=d.prototype,d.bezierThrough=h,d.cubicToQuadratic=u,d._autoCSS=!0,d.quadraticToCubic=function(t,e,i){return new l(t,(2*e+t)/3,(2*e+i)/3,i)},d._cssRegister=function(){var t=s.CSSPlugin;if(t){var e=t._internals,i=e._parseToProxy,r=e._setPluginRatio,n=e.CSSPropTween;e._registerComplexSpecialProp("bezier",{parser:function(t,e,o,a,s,l){e instanceof Array&&(e={values:e}),l=new d;var u,c,p,h=e.values,f=h.length-1,m=[],v={};if(f<0)return s;for(u=0;u<=f;u++)p=i(t,h[u],a,s,l,f!==u),m[u]=p.end;for(c in e)v[c]=e[c];return v.values=m,(s=new n(t,"bezier",0,0,p.pt,2)).data=p,s.plugin=l,s.setRatio=r,0===v.autoRotate&&(v.autoRotate=!0),!v.autoRotate||v.autoRotate instanceof Array||(u=!0===v.autoRotate?0:Number(v.autoRotate),v.autoRotate=null!=p.end.left?[["left","top","rotation",u,!1]]:null!=p.end.x&&[["x","y","rotation",u,!1]]),v.autoRotate&&(a._transform||a._enableTransforms(!1),p.autoRotate=a._target._gsTransform,p.proxy.rotation=p.autoRotate.rotation||0,a._overwriteProps.push("rotation")),l._onInitTween(p.proxy,v,a._tween),s}})}},m._mod=function(t){for(var e,i=this._overwriteProps,r=i.length;--r>-1;)(e=t[i[r]])&&"function"==typeof e&&(this._mod[i[r]]=e)},m._kill=function(t){var e,i,r=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],i=r.length;--i>-1;)r[i]===e&&r.splice(i,1);if(r=this._autoRotate)for(i=r.length;--i>-1;)t[r[i][2]]&&r.splice(i,1);return this._super._kill.call(this,t)},r._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],(function(t,e){var n,o,a,s,l=function e(){t.call(this,"css"),this._overwriteProps.length=0,this.setRatio=e.prototype.setRatio},u=r._gsDefine.globals,c={},p=l.prototype=new t("css");p.constructor=l,l.version="2.1.3",l.API=2,l.defaultTransformPerspective=0,l.defaultSkewType="compensated",l.defaultSmoothOrigin=!0,l.suffixMap={top:p="px",right:p,bottom:p,left:p,width:p,height:p,fontSize:p,padding:p,margin:p,perspective:p,lineHeight:""};var h,f,d,m,v,y,g,_,x=/(?:\-|\.|\b)(\d|\.|e\-)+/g,b=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,w=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,T=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b),?/gi,S=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,E=/(?:\d|\-|\+|=|#|\.)*/g,C=/opacity *= *([^)]*)/i,k=/opacity:([^;]*)/i,A=/alpha\(opacity *=.+?\)/i,P=/^(rgb|hsl)/,I=/([A-Z])/g,M=/-([a-z])/gi,z=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,D=function(t,e){return e.toUpperCase()},O=/(?:Left|Right|Width)/i,R=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,L=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,F=/,(?=[^\)]*(?:\(|$))/gi,B=/[\s,\(]/i,N=Math.PI/180,j=180/Math.PI,V={},U={style:{}},q=r.document||{createElement:function(){return U}},$=function(t,e){var i=q.createElementNS?q.createElementNS(e||"http://www.w3.org/1999/xhtml",t):q.createElement(t);return i.style?i:q.createElement(t)},Z=$("div"),G=$("img"),X=l._internals={_specialProps:c},H=(r.navigator||{}).userAgent||"",W=function(){var t=H.indexOf("Android"),e=$("a");return d=-1!==H.indexOf("Safari")&&-1===H.indexOf("Chrome")&&(-1===t||parseFloat(H.substr(t+8,2))>3),v=d&&parseFloat(H.substr(H.indexOf("Version/")+8,2))<6,m=-1!==H.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(H)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(H))&&(y=parseFloat(RegExp.$1)),!!e&&(e.style.cssText="top:1px;opacity:.55;",/^0.55/.test(e.style.opacity))}(),K=function(t){return C.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},Y=function(t){r.console},J="",Q="",tt=function(t,e){var i,r,n=(e=e||Z).style;if(void 0!==n[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],r=5;--r>-1&&void 0===n[i[r]+t];);return r>=0?(J="-"+(Q=3===r?"ms":i[r]).toLowerCase()+"-",Q+t):null},et="undefined"!=typeof window?window:q.defaultView||{getComputedStyle:function(){}},it=function(t){return et.getComputedStyle(t)},rt=l.getStyle=function(t,e,i,r,n){var o;return W||"opacity"!==e?(!r&&t.style[e]?o=t.style[e]:(i=i||it(t))?o=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(I,"-$1").toLowerCase()):t.currentStyle&&(o=t.currentStyle[e]),null==n||o&&"none"!==o&&"auto"!==o&&"auto auto"!==o?o:n):K(t)},nt=X.convertToPixels=function(t,i,r,n,o){if("px"===n||!n&&"lineHeight"!==i)return r;if("auto"===n||!r)return 0;var a,s,u,c=O.test(i),p=t,h=Z.style,f=r<0,d=1===r;if(f&&(r=-r),d&&(r*=100),"lineHeight"!==i||n)if("%"===n&&-1!==i.indexOf("border"))a=r/100*(c?t.clientWidth:t.clientHeight);else{if(h.cssText="border:0 solid red;position:"+rt(t,"position")+";line-height:0;","%"!==n&&p.appendChild&&"v"!==n.charAt(0)&&"rem"!==n)h[c?"borderLeftWidth":"borderTopWidth"]=r+n;else{if(p=t.parentNode||q.body,-1!==rt(p,"display").indexOf("flex")&&(h.position="absolute"),s=p._gsCache,u=e.ticker.frame,s&&c&&s.time===u)return s.width*r/100;h[c?"width":"height"]=r+n}p.appendChild(Z),a=parseFloat(Z[c?"offsetWidth":"offsetHeight"]),p.removeChild(Z),c&&"%"===n&&!1!==l.cacheWidths&&((s=p._gsCache=p._gsCache||{}).time=u,s.width=a/r*100),0!==a||o||(a=nt(t,i,r,n,!0))}else s=it(t).lineHeight,t.style.lineHeight=r,a=parseFloat(it(t).lineHeight),t.style.lineHeight=s;return d&&(a/=100),f?-a:a},ot=X.calculateOffset=function(t,e,i){if("absolute"!==rt(t,"position",i))return 0;var r="left"===e?"Left":"Top",n=rt(t,"margin"+r,i);return t["offset"+r]-(nt(t,e,parseFloat(n),n.replace(E,""))||0)},at=function(t,e){var i,r,n,o={};if(e=e||it(t))if(i=e.length)for(;--i>-1;)-1!==(n=e[i]).indexOf("-transform")&&Ft!==n||(o[n.replace(M,D)]=e.getPropertyValue(n));else for(i in e)-1!==i.indexOf("Transform")&&Lt!==i||(o[i]=e[i]);else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===o[i]&&(o[i.replace(M,D)]=e[i]);return W||(o.opacity=K(t)),r=Yt(t,e,!1),o.rotation=r.rotation,o.skewX=r.skewX,o.scaleX=r.scaleX,o.scaleY=r.scaleY,o.x=r.x,o.y=r.y,Nt&&(o.z=r.z,o.rotationX=r.rotationX,o.rotationY=r.rotationY,o.scaleZ=r.scaleZ),o.filters&&delete o.filters,o},st=function(t,e,i,r,n){var o,a,s,l={},u=t.style;for(a in i)"cssText"!==a&&"length"!==a&&isNaN(a)&&(e[a]!==(o=i[a])||n&&n[a])&&-1===a.indexOf("Origin")&&("number"!=typeof o&&"string"!=typeof o||(l[a]="auto"!==o||"left"!==a&&"top"!==a?""!==o&&"auto"!==o&&"none"!==o||"string"!=typeof e[a]||""===e[a].replace(S,"")?o:0:ot(t,a),void 0!==u[a]&&(s=new wt(u,a,u[a],s))));if(r)for(a in r)"className"!==a&&(l[a]=r[a]);return{difs:l,firstMPT:s}},lt={width:["Left","Right"],height:["Top","Bottom"]},ut=["marginLeft","marginRight","marginTop","marginBottom"],ct=function(t,e,i){if("svg"===(t.nodeName+"").toLowerCase())return(i||it(t))[e]||0;if(t.getCTM&&Ht(t))return t.getBBox()[e]||0;var r=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),n=lt[e],o=n.length;for(i=i||it(t);--o>-1;)r-=parseFloat(rt(t,"padding"+n[o],i,!0))||0,r-=parseFloat(rt(t,"border"+n[o]+"Width",i,!0))||0;return r},pt=function t(e,i){if("contain"===e||"auto"===e||"auto auto"===e)return e+" ";null!=e&&""!==e||(e="0 0");var r,n=e.split(" "),o=-1!==e.indexOf("left")?"0%":-1!==e.indexOf("right")?"100%":n[0],a=-1!==e.indexOf("top")?"0%":-1!==e.indexOf("bottom")?"100%":n[1];if(n.length>3&&!i){for(n=e.split(", ").join(",").split(","),e=[],r=0;r2?" "+n[2]:""),i&&(i.oxp=-1!==o.indexOf("%"),i.oyp=-1!==a.indexOf("%"),i.oxr="="===o.charAt(1),i.oyr="="===a.charAt(1),i.ox=parseFloat(o.replace(S,"")),i.oy=parseFloat(a.replace(S,"")),i.v=e),i||e},ht=function(t,e){return"function"==typeof t&&(t=t(_,g)),"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)||0},ft=function(t,e){"function"==typeof t&&(t=t(_,g));var i="string"==typeof t&&"="===t.charAt(1);return"string"==typeof t&&"v"===t.charAt(t.length-2)&&(t=(i?t.substr(0,2):0)+window["inner"+("vh"===t.substr(-2)?"Height":"Width")]*(parseFloat(i?t.substr(2):t)/100)),null==t?e:i?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)||0},dt=function(t,e,i,r){var n,o,a,s;return"function"==typeof t&&(t=t(_,g)),null==t?a=e:"number"==typeof t?a=t:(360,n=t.split("_"),o=((s="="===t.charAt(1))?parseInt(t.charAt(0)+"1",10)*parseFloat(n[0].substr(2)):parseFloat(n[0]))*(-1===t.indexOf("rad")?1:j)-(s?0:e),n.length&&(r&&(r[i]=e+o),-1!==t.indexOf("short")&&(o%=360)!==o%180&&(o=o<0?o+360:o-360),-1!==t.indexOf("_cw")&&o<0?o=(o+3599999999640)%360-360*(o/360|0):-1!==t.indexOf("ccw")&&o>0&&(o=(o-3599999999640)%360-360*(o/360|0))),a=e+o),a<1e-6&&a>-1e-6&&(a=0),a},mt={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},vt=function(t,e,i){return 255*(6*(t=t<0?t+1:t>1?t-1:t)<1?e+(i-e)*t*6:t<.5?i:3*t<2?e+(i-e)*(2/3-t)*6:e)+.5|0},yt=l.parseColor=function(t,e){var i,r,n,o,a,s,l,u,c,p,h;if(t)if("number"==typeof t)i=[t>>16,t>>8&255,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),mt[t])i=mt[t];else if("#"===t.charAt(0))4===t.length&&(r=t.charAt(1),n=t.charAt(2),o=t.charAt(3),t="#"+r+r+n+n+o+o),i=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(i=h=t.match(x),e){if(-1!==t.indexOf("="))return t.match(b)}else a=Number(i[0])%360/360,s=Number(i[1])/100,r=2*(l=Number(i[2])/100)-(n=l<=.5?l*(s+1):l+s-l*s),i.length>3&&(i[3]=Number(i[3])),i[0]=vt(a+1/3,r,n),i[1]=vt(a,r,n),i[2]=vt(a-1/3,r,n);else i=t.match(x)||mt.transparent;i[0]=Number(i[0]),i[1]=Number(i[1]),i[2]=Number(i[2]),i.length>3&&(i[3]=Number(i[3]))}else i=mt.black;return e&&!h&&(r=i[0]/255,n=i[1]/255,o=i[2]/255,l=((u=Math.max(r,n,o))+(c=Math.min(r,n,o)))/2,u===c?a=s=0:(p=u-c,s=l>.5?p/(2-u-c):p/(u+c),a=u===r?(n-o)/p+(n0?a[0].replace(x,""):"";return c?n=e?function(t){var e,h,f,d;if("number"==typeof t)t+=p;else if(r&&F.test(t)){for(d=t.replace(F,"|").split("|"),f=0;ff--)for(;++fh--)for(;++h>0];return n.parse(e,s,o,a)}},wt=(X._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,r,n,o,a=this.data,s=a.proxy,l=a.firstMPT;l;)e=s[l.v],l.r?e=l.r(e):e<1e-6&&e>-1e-6&&(e=0),l.t[l.p]=e,l=l._next;if(a.autoRotate&&(a.autoRotate.rotation=a.mod?a.mod.call(this._tween,s.rotation,this.t,this._tween):s.rotation),1===t||0===t)for(l=a.firstMPT,o=1===t?"e":"b";l;){if((i=l.t).type){if(1===i.type){for(n=i.xs0+i.s+i.xs1,r=1;r0;)l="xn"+a,f[s=r.p+"_"+l]=r.data[l],h[s]=r[l],o||(u=new wt(r,l,s,u,r.rxp[l]));r=r._next}return{proxy:h,end:f,firstMPT:u,pt:c}},X.CSSPropTween=function(t,e,i,r,o,a,l,u,c,p,h){this.t=t,this.p=e,this.s=i,this.c=r,this.n=l||e,t instanceof Tt||s.push(this.n),this.r=u?"function"==typeof u?u:Math.round:u,this.type=a||0,c&&(this.pr=c,n=!0),this.b=void 0===p?i:p,this.e=void 0===h?i+r:h,o&&(this._next=o,o._prev=this)}),St=function(t,e,i,r,n,o){var a=new Tt(t,e,i,r-i,n,-1,o);return a.b=i,a.e=a.xs0=r,a},Et=l.parseComplex=function(t,e,i,r,n,o,a,s,u,c){i=i||o||"","function"==typeof r&&(r=r(_,g)),a=new Tt(t,e,0,0,a,c?2:1,null,!1,s,i,r),r+="",n&&_t.test(r+i)&&(l.colorStringFilter(r=[i,r]),i=r[0],r=r[1]);var p,f,d,m,v,y,w,T,S,E,C,k,A,P=i.split(", ").join(",").split(" "),I=r.split(", ").join(",").split(" "),M=P.length,z=!1!==h;for(-1===r.indexOf(",")&&-1===i.indexOf(",")||(-1!==(r+i).indexOf("rgb")||-1!==(r+i).indexOf("hsl")?(P=P.join(" ").replace(F,", ").split(" "),I=I.join(" ").replace(F,", ").split(" ")):(P=P.join(" ").split(",").join(", ").split(" "),I=I.join(" ").split(",").join(", ").split(" ")),M=P.length),M!==I.length&&(M=(P=(o||"").split(" ")).length),a.plugin=u,a.setRatio=c,_t.lastIndex=0,p=0;p6)&&!W&&0===v[3]?(a["xs"+a.l]+=a.l?" transparent":"transparent",a.e=a.e.split(I[p]).join("transparent")):(W||(S=!1),A?a.appendXtra(E.substr(0,E.indexOf("hsl"))+(S?"hsla(":"hsl("),m[0],ht(v[0],m[0]),",",!1,!0).appendXtra("",m[1],ht(v[1],m[1]),"%,",!1).appendXtra("",m[2],ht(v[2],m[2]),S?"%,":"%"+k,!1):a.appendXtra(E.substr(0,E.indexOf("rgb"))+(S?"rgba(":"rgb("),m[0],v[0]-m[0],",",Math.round,!0).appendXtra("",m[1],v[1]-m[1],",",Math.round).appendXtra("",m[2],v[2]-m[2],S?",":k,Math.round),S&&(m=m.length<4?1:m[3],a.appendXtra("",m,(v.length<4?1:v[3])-m,k,!1))),_t.lastIndex=0;else if(y=m.match(x)){if(!(w=v.match(b))||w.length!==y.length)return a;for(d=0,f=0;f0;)p["xn"+Ct]=0,p["xs"+Ct]="";p.xs0="",p._next=p._prev=p.xfirst=p.data=p.plugin=p.setRatio=p.rxp=null,p.appendXtra=function(t,e,i,r,n,o){var a=this,s=a.l;return a["xs"+s]+=o&&(s||a["xs"+s])?" "+t:t||"",i||0===s||a.plugin?(a.l++,a.type=a.setRatio?2:1,a["xs"+a.l]=r||"",s>0?(a.data["xn"+s]=e+i,a.rxp["xn"+s]=n,a["xn"+s]=e,a.plugin||(a.xfirst=new Tt(a,"xn"+s,e,i,a.xfirst||a,0,a.n,n,a.pr),a.xfirst.xs0=0),a):(a.data={s:e+i},a.rxp={},a.s=e,a.c=i,a.r=n,a)):(a["xs"+s]+=e+(r||""),a)};var kt=function(t,e){e=e||{},this.p=e.prefix&&tt(t)||t,c[t]=c[this.p]=this,this.format=e.formatter||xt(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.allowFunc=e.allowFunc,this.pr=e.priority||0},At=X._registerComplexSpecialProp=function(t,e,r){"object"!==i(e)&&(e={parser:r});var n,o=t.split(","),a=e.defaultValue;for(r=r||[a],n=0;ns.length?l.length:s.length,a=0;a-1;)o=Number(n[Ct]),n[Ct]=(a=o-(o|=0))?(1e5*a+(a<0?-.5:.5)|0)/1e5+o:o;return e&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n},Yt=X.getTransform=function(t,i,r,n){if(t._gsTransform&&r&&!n)return t._gsTransform;var o,a,s,u,c,p,h=r&&t._gsTransform||new jt,f=h.scaleX<0,d=1e5,m=Nt&&(parseFloat(rt(t,Bt,i,!1,"0 0 0").split(" ")[2])||h.zOrigin)||0,v=parseFloat(l.defaultTransformPerspective)||0;if(h.svg=!(!t.getCTM||!Ht(t)),h.svg&&(Zt(t,rt(t,Bt,i,!1,"50% 50%")+"",h,t.getAttribute("data-svg-origin")),It=l.useSVGTransformAttr||$t),(o=Kt(t))!==Wt){if(16===o.length){var y,g,_,x,b,w=o[0],T=o[1],S=o[2],E=o[3],C=o[4],k=o[5],A=o[6],P=o[7],I=o[8],M=o[9],z=o[10],D=o[12],O=o[13],R=o[14],L=o[11],F=Math.atan2(A,z);h.zOrigin&&(D=I*(R=-h.zOrigin)-o[12],O=M*R-o[13],R=z*R+h.zOrigin-o[14]),h.rotationX=F*j,F&&(y=C*(x=Math.cos(-F))+I*(b=Math.sin(-F)),g=k*x+M*b,_=A*x+z*b,I=C*-b+I*x,M=k*-b+M*x,z=A*-b+z*x,L=P*-b+L*x,C=y,k=g,A=_),F=Math.atan2(-S,z),h.rotationY=F*j,F&&(g=T*(x=Math.cos(-F))-M*(b=Math.sin(-F)),_=S*x-z*b,M=T*b+M*x,z=S*b+z*x,L=E*b+L*x,w=y=w*x-I*b,T=g,S=_),F=Math.atan2(T,w),h.rotation=F*j,F&&(y=w*(x=Math.cos(F))+T*(b=Math.sin(F)),g=C*x+k*b,_=I*x+M*b,T=T*x-w*b,k=k*x-C*b,M=M*x-I*b,w=y,C=g,I=_),h.rotationX&&Math.abs(h.rotationX)+Math.abs(h.rotation)>359.9&&(h.rotationX=h.rotation=0,h.rotationY=180-h.rotationY),F=Math.atan2(C,k),h.scaleX=(Math.sqrt(w*w+T*T+S*S)*d+.5|0)/d,h.scaleY=(Math.sqrt(k*k+A*A)*d+.5|0)/d,h.scaleZ=(Math.sqrt(I*I+M*M+z*z)*d+.5|0)/d,w/=h.scaleX,C/=h.scaleY,T/=h.scaleX,k/=h.scaleY,Math.abs(F)>2e-5?(h.skewX=F*j,C=0,"simple"!==h.skewType&&(h.scaleY*=1/Math.cos(F))):h.skewX=0,h.perspective=L?1/(L<0?-L:L):0,h.x=D,h.y=O,h.z=R,h.svg&&(h.x-=h.xOrigin-(h.xOrigin*w-h.yOrigin*C),h.y-=h.yOrigin-(h.yOrigin*T-h.xOrigin*k))}else if(!Nt||n||!o.length||h.x!==o[4]||h.y!==o[5]||!h.rotationX&&!h.rotationY){var B=o.length>=6,N=B?o[0]:1,V=o[1]||0,U=o[2]||0,q=B?o[3]:1;h.x=o[4]||0,h.y=o[5]||0,s=Math.sqrt(N*N+V*V),u=Math.sqrt(q*q+U*U),c=N||V?Math.atan2(V,N)*j:h.rotation||0,p=U||q?Math.atan2(U,q)*j+c:h.skewX||0,h.scaleX=s,h.scaleY=u,h.rotation=c,h.skewX=p,Nt&&(h.rotationX=h.rotationY=h.z=0,h.perspective=v,h.scaleZ=1),h.svg&&(h.x-=h.xOrigin-(h.xOrigin*N+h.yOrigin*U),h.y-=h.yOrigin-(h.xOrigin*V+h.yOrigin*q))}for(a in Math.abs(h.skewX)>90&&Math.abs(h.skewX)<270&&(f?(h.scaleX*=-1,h.skewX+=h.rotation<=0?180:-180,h.rotation+=h.rotation<=0?180:-180):(h.scaleY*=-1,h.skewX+=h.skewX<=0?180:-180)),h.zOrigin=m,h)h[a]<2e-5&&h[a]>-2e-5&&(h[a]=0)}return r&&(t._gsTransform=h,h.svg&&(It&&t.style[Lt]?e.delayedCall(.001,(function(){ee(t.style,Lt)})):!It&&t.getAttribute("transform")&&e.delayedCall(.001,(function(){t.removeAttribute("transform")})))),h},Jt=function(t){var e,i,r=this.data,n=-r.rotation*N,o=n+r.skewX*N,a=1e5,s=(Math.cos(n)*r.scaleX*a|0)/a,l=(Math.sin(n)*r.scaleX*a|0)/a,u=(Math.sin(o)*-r.scaleY*a|0)/a,c=(Math.cos(o)*r.scaleY*a|0)/a,p=this.t.style,h=this.t.currentStyle;if(h){i=l,l=-u,u=-i,e=h.filter,p.filter="";var f,d,m=this.t.offsetWidth,v=this.t.offsetHeight,g="absolute"!==h.position,_="progid:DXImageTransform.Microsoft.Matrix(M11="+s+", M12="+l+", M21="+u+", M22="+c,x=r.x+m*r.xPercent/100,b=r.y+v*r.yPercent/100;if(null!=r.ox&&(x+=(f=(r.oxp?m*r.ox*.01:r.ox)-m/2)-(f*s+(d=(r.oyp?v*r.oy*.01:r.oy)-v/2)*l),b+=d-(f*u+d*c)),_+=g?", Dx="+((f=m/2)-(f*s+(d=v/2)*l)+x)+", Dy="+(d-(f*u+d*c)+b)+")":", sizingMethod='auto expand')",-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?p.filter=e.replace(L,_):p.filter=_+" "+e,0!==t&&1!==t||1===s&&0===l&&0===u&&1===c&&(g&&-1===_.indexOf("Dx=0, Dy=0")||C.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf(e.indexOf("Alpha"))&&p.removeAttribute("filter")),!g){var w,T,S,k=y<8?1:-1;for(f=r.ieOffsetX||0,d=r.ieOffsetY||0,r.ieOffsetX=Math.round((m-((s<0?-s:s)*m+(l<0?-l:l)*v))/2+x),r.ieOffsetY=Math.round((v-((c<0?-c:c)*v+(u<0?-u:u)*m))/2+b),Ct=0;Ct<4;Ct++)S=(i=-1!==(w=h[T=ut[Ct]]).indexOf("px")?parseFloat(w):nt(this.t,T,parseFloat(w),w.replace(E,""))||0)!==r[T]?Ct<2?-r.ieOffsetX:-r.ieOffsetY:Ct<2?f-r.ieOffsetX:d-r.ieOffsetY,p[T]=(r[T]=Math.round(i-S*(0===Ct||2===Ct?1:k)))+"px"}}},Qt=X.set3DTransformRatio=X.setTransformRatio=function(t){var e,i,r,n,o,a,s,l,u,c,p,h,f,d,v,y,g,_,x,b,w,T=this.data,S=this.t.style,E=T.rotation,C=T.rotationX,k=T.rotationY,A=T.scaleX,P=T.scaleY,I=T.scaleZ,M=T.x,z=T.y,D=T.z,O=T.svg,R=T.perspective,L=T.force3D,F=T.skewY,B=T.skewX;if(F&&(B+=F,E+=F),!((1!==t&&0!==t||"auto"!==L||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&L||D||R||k||C||1!==I)||It&&O||!Nt)E||B||O?(E*=N,b=B*N,w=1e5,i=Math.cos(E)*A,o=Math.sin(E)*A,r=Math.sin(E-b)*-P,a=Math.cos(E-b)*P,b&&"simple"===T.skewType&&(e=Math.tan(b-F*N),r*=e=Math.sqrt(1+e*e),a*=e,F&&(e=Math.tan(F*N),i*=e=Math.sqrt(1+e*e),o*=e)),O&&(M+=T.xOrigin-(T.xOrigin*i+T.yOrigin*r)+T.xOffset,z+=T.yOrigin-(T.xOrigin*o+T.yOrigin*a)+T.yOffset,It&&(T.xPercent||T.yPercent)&&(v=this.t.getBBox(),M+=.01*T.xPercent*v.width,z+=.01*T.yPercent*v.height),M<(v=1e-6)&&M>-v&&(M=0),z-v&&(z=0)),x=(i*w|0)/w+","+(o*w|0)/w+","+(r*w|0)/w+","+(a*w|0)/w+","+M+","+z+")",O&&It?this.t.setAttribute("transform","matrix("+x):S[Lt]=(T.xPercent||T.yPercent?"translate("+T.xPercent+"%,"+T.yPercent+"%) matrix(":"matrix(")+x):S[Lt]=(T.xPercent||T.yPercent?"translate("+T.xPercent+"%,"+T.yPercent+"%) matrix(":"matrix(")+A+",0,0,"+P+","+M+","+z+")";else{if(m&&(A<(v=1e-4)&&A>-v&&(A=I=2e-5),P-v&&(P=I=2e-5),!R||T.z||T.rotationX||T.rotationY||(R=0)),E||B)E*=N,y=i=Math.cos(E),g=o=Math.sin(E),B&&(E-=B*N,y=Math.cos(E),g=Math.sin(E),"simple"===T.skewType&&(e=Math.tan((B-F)*N),y*=e=Math.sqrt(1+e*e),g*=e,T.skewY&&(e=Math.tan(F*N),i*=e=Math.sqrt(1+e*e),o*=e))),r=-g,a=y;else{if(!(k||C||1!==I||R||O))return void(S[Lt]=(T.xPercent||T.yPercent?"translate("+T.xPercent+"%,"+T.yPercent+"%) translate3d(":"translate3d(")+M+"px,"+z+"px,"+D+"px)"+(1!==A||1!==P?" scale("+A+","+P+")":""));i=a=1,r=o=0}c=1,n=s=l=u=p=h=0,f=R?-1/R:0,d=T.zOrigin,v=1e-6,",","0",(E=k*N)&&(y=Math.cos(E),l=-(g=Math.sin(E)),p=f*-g,n=i*g,s=o*g,c=y,f*=y,i*=y,o*=y),(E=C*N)&&(e=r*(y=Math.cos(E))+n*(g=Math.sin(E)),_=a*y+s*g,u=c*g,h=f*g,n=r*-g+n*y,s=a*-g+s*y,c*=y,f*=y,r=e,a=_),1!==I&&(n*=I,s*=I,c*=I,f*=I),1!==P&&(r*=P,a*=P,u*=P,h*=P),1!==A&&(i*=A,o*=A,l*=A,p*=A),(d||O)&&(d&&(M+=n*-d,z+=s*-d,D+=c*-d+d),O&&(M+=T.xOrigin-(T.xOrigin*i+T.yOrigin*r)+T.xOffset,z+=T.yOrigin-(T.xOrigin*o+T.yOrigin*a)+T.yOffset),M-v&&(M="0"),z-v&&(z="0"),D-v&&(D=0)),x=T.xPercent||T.yPercent?"translate("+T.xPercent+"%,"+T.yPercent+"%) matrix3d(":"matrix3d(",x+=(i-v?"0":i)+","+(o-v?"0":o)+","+(l-v?"0":l),x+=","+(p-v?"0":p)+","+(r-v?"0":r)+","+(a-v?"0":a),C||k||1!==I?(x+=","+(u-v?"0":u)+","+(h-v?"0":h)+","+(n-v?"0":n),x+=","+(s-v?"0":s)+","+(c-v?"0":c)+","+(f-v?"0":f)+","):x+=",0,0,0,0,1,0,",x+=M+","+z+","+D+","+(R?1+-D/R:1)+")",S[Lt]=x}};(p=jt.prototype).x=p.y=p.z=p.skewX=p.skewY=p.rotation=p.rotationX=p.rotationY=p.zOrigin=p.xPercent=p.yPercent=p.xOffset=p.yOffset=0,p.scaleX=p.scaleY=p.scaleZ=1,At("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(t,e,r,n,o,s,u){if(n._lastParsedTransform===u)return o;n._lastParsedTransform=u;var c=u.scale&&"function"==typeof u.scale?u.scale:0;c&&(u.scale=c(_,t));var p,h,f,d,m,v,y,x,b,w=t._gsTransform,T=t.style,S=Rt.length,E=u,C={},k=Yt(t,a,!0,E.parseTransform),A=E.transform&&("function"==typeof E.transform?E.transform(_,g):E.transform);if(k.skewType=E.skewType||k.skewType||l.defaultSkewType,n._transform=k,"rotationZ"in E&&(E.rotation=E.rotationZ),A&&"string"==typeof A&&Lt)(h=Z.style)[Lt]=A,h.display="block",h.position="absolute",-1!==A.indexOf("%")&&(h.width=rt(t,"width"),h.height=rt(t,"height")),q.body.appendChild(Z),p=Yt(Z,null,!1),"simple"===k.skewType&&(p.scaleY*=Math.cos(p.skewX*N)),k.svg&&(v=k.xOrigin,y=k.yOrigin,p.x-=k.xOffset,p.y-=k.yOffset,(E.transformOrigin||E.svgOrigin)&&(A={},Zt(t,pt(E.transformOrigin),A,E.svgOrigin,E.smoothOrigin,!0),v=A.xOrigin,y=A.yOrigin,p.x-=A.xOffset-k.xOffset,p.y-=A.yOffset-k.yOffset),(v||y)&&(x=Kt(Z,!0),p.x-=v-(v*x[0]+y*x[2]),p.y-=y-(v*x[1]+y*x[3]))),q.body.removeChild(Z),p.perspective||(p.perspective=k.perspective),null!=E.xPercent&&(p.xPercent=ft(E.xPercent,k.xPercent)),null!=E.yPercent&&(p.yPercent=ft(E.yPercent,k.yPercent));else if("object"===i(E)){if(p={scaleX:ft(null!=E.scaleX?E.scaleX:E.scale,k.scaleX),scaleY:ft(null!=E.scaleY?E.scaleY:E.scale,k.scaleY),scaleZ:ft(E.scaleZ,k.scaleZ),x:ft(E.x,k.x),y:ft(E.y,k.y),z:ft(E.z,k.z),xPercent:ft(E.xPercent,k.xPercent),yPercent:ft(E.yPercent,k.yPercent),perspective:ft(E.transformPerspective,k.perspective)},null!=(m=E.directionalRotation))if("object"===i(m))for(h in m)E[h]=m[h];else E.rotation=m;"string"==typeof E.x&&-1!==E.x.indexOf("%")&&(p.x=0,p.xPercent=ft(E.x,k.xPercent)),"string"==typeof E.y&&-1!==E.y.indexOf("%")&&(p.y=0,p.yPercent=ft(E.y,k.yPercent)),p.rotation=dt("rotation"in E?E.rotation:"shortRotation"in E?E.shortRotation+"_short":k.rotation,k.rotation,"rotation",C),Nt&&(p.rotationX=dt("rotationX"in E?E.rotationX:"shortRotationX"in E?E.shortRotationX+"_short":k.rotationX||0,k.rotationX,"rotationX",C),p.rotationY=dt("rotationY"in E?E.rotationY:"shortRotationY"in E?E.shortRotationY+"_short":k.rotationY||0,k.rotationY,"rotationY",C)),p.skewX=dt(E.skewX,k.skewX),p.skewY=dt(E.skewY,k.skewY)}for(Nt&&null!=E.force3D&&(k.force3D=E.force3D,d=!0),(f=k.force3D||k.z||k.rotationX||k.rotationY||p.z||p.rotationX||p.rotationY||p.perspective)||null==E.scale||(p.scaleZ=1);--S>-1;)((A=p[b=Rt[S]]-k[b])>1e-6||A<-1e-6||null!=E[b]||null!=V[b])&&(d=!0,o=new Tt(k,b,k[b],A,o),b in C&&(o.e=C[b]),o.xs0=0,o.plugin=s,n._overwriteProps.push(o.n));return A="function"==typeof E.transformOrigin?E.transformOrigin(_,g):E.transformOrigin,k.svg&&(A||E.svgOrigin)&&(v=k.xOffset,y=k.yOffset,Zt(t,pt(A),p,E.svgOrigin,E.smoothOrigin),o=St(k,"xOrigin",(w?k:p).xOrigin,p.xOrigin,o,"transformOrigin"),o=St(k,"yOrigin",(w?k:p).yOrigin,p.yOrigin,o,"transformOrigin"),v===k.xOffset&&y===k.yOffset||(o=St(k,"xOffset",w?v:k.xOffset,k.xOffset,o,"transformOrigin"),o=St(k,"yOffset",w?y:k.yOffset,k.yOffset,o,"transformOrigin")),A="0px 0px"),(A||Nt&&f&&k.zOrigin)&&(Lt?(d=!0,b=Bt,A||(A=(A=(rt(t,b,a,!1,"50% 50%")+"").split(" "))[0]+" "+A[1]+" "+k.zOrigin+"px"),A+="",(o=new Tt(T,b,0,0,o,-1,"transformOrigin")).b=T[b],o.plugin=s,Nt?(h=k.zOrigin,A=A.split(" "),k.zOrigin=(A.length>2?parseFloat(A[2]):h)||0,o.xs0=o.e=A[0]+" "+(A[1]||"50%")+" 0px",(o=new Tt(k,"zOrigin",0,0,o,-1,o.n)).b=h,o.xs0=o.e=k.zOrigin):o.xs0=o.e=A):pt(A+"",k)),d&&(n._transformType=k.svg&&It||!f&&3!==this._transformType?2:3),c&&(u.scale=c),o},allowFunc:!0,prefix:!0}),At("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),At("clipPath",{defaultValue:"inset(0%)",prefix:!0,multi:!0,formatter:xt("inset(0% 0% 0% 0%)",!1,!0)}),At("borderRadius",{defaultValue:"0px",parser:function(t,e,i,r,n,s){e=this.format(e);var l,u,c,p,h,f,d,m,v,y,g,_,x,b,w,T,S=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],E=t.style;for(v=parseFloat(t.offsetWidth),y=parseFloat(t.offsetHeight),l=e.split(" "),u=0;u-1;)(c=-1!==(m=s[u]).indexOf("%"))!==(-1!==l[u].indexOf("%"))&&(p=0===u?t.offsetWidth-G.width:t.offsetHeight-G.height,s[u]=c?parseFloat(m)/100*p+"px":parseFloat(m)/p*100+"%");m=s.join(" ")}return this.parseComplex(t.style,m,v,n,o)},formatter:pt}),At("backgroundSize",{defaultValue:"0 0",formatter:function(t){return"co"===(t+="").substr(0,2)?t:pt(-1===t.indexOf(" ")?t+" "+t:t)}}),At("perspective",{defaultValue:"0px",prefix:!0}),At("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),At("transformStyle",{prefix:!0}),At("backfaceVisibility",{prefix:!0}),At("userSelect",{prefix:!0}),At("margin",{parser:bt("marginTop,marginRight,marginBottom,marginLeft")}),At("padding",{parser:bt("paddingTop,paddingRight,paddingBottom,paddingLeft")}),At("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,r,n,o){var s,l,u;return y<9?(l=t.currentStyle,u=y<8?" ":",",s="rect("+l.clipTop+u+l.clipRight+u+l.clipBottom+u+l.clipLeft+")",e=this.format(e).split(",").join(u)):(s=this.format(rt(t,this.p,a,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,s,e,n,o)}}),At("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),At("autoRound,strictUnits",{parser:function(t,e,i,r,n){return n}}),At("border",{defaultValue:"0px solid #000",parser:function(t,e,i,r,n,o){var s=rt(t,"borderTopWidth",a,!1,"0px"),l=this.format(e).split(" "),u=l[0].replace(E,"");return"px"!==u&&(s=parseFloat(s)/nt(t,"borderTopWidth",1,u)+u),this.parseComplex(t.style,this.format(s+" "+rt(t,"borderTopStyle",a,!1,"solid")+" "+rt(t,"borderTopColor",a,!1,"#000")),l.join(" "),n,o)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(_t)||["#000"])[0]}}),At("borderWidth",{parser:bt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),At("float,cssFloat,styleFloat",{parser:function(t,e,i,r,n,o){var a=t.style,s="cssFloat"in a?"cssFloat":"styleFloat";return new Tt(a,s,0,0,n,-1,i,!1,0,a[s],e)}});var te=function(t){var e,i=this.t,r=i.filter||rt(this.data,"filter")||"",n=this.s+this.c*t|0;100===n&&(-1===r.indexOf("atrix(")&&-1===r.indexOf("radient(")&&-1===r.indexOf("oader(")?(i.removeAttribute("filter"),e=!rt(this.data,"filter")):(i.filter=r.replace(A,""),e=!0)),e||(this.xn1&&(i.filter=r=r||"alpha(opacity="+n+")"),-1===r.indexOf("pacity")?0===n&&this.xn1||(i.filter=r+" alpha(opacity="+n+")"):i.filter=r.replace(C,"opacity="+n))};At("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,r,n,o){var s=parseFloat(rt(t,"opacity",a,!1,"1")),l=t.style,u="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+s),u&&1===s&&"hidden"===rt(t,"visibility",a)&&0!==e&&(s=0),W?n=new Tt(l,"opacity",s,e-s,n):((n=new Tt(l,"opacity",100*s,100*(e-s),n)).xn1=u?1:0,l.zoom=1,n.type=2,n.b="alpha(opacity="+n.s+")",n.e="alpha(opacity="+(n.s+n.c)+")",n.data=t,n.plugin=o,n.setRatio=te),u&&((n=new Tt(l,"visibility",0,0,n,-1,null,!1,0,0!==s?"inherit":"hidden",0===e?"hidden":"inherit")).xs0="inherit",r._overwriteProps.push(n.n),r._overwriteProps.push(i)),n}});var ee=function(t,e){e&&(t.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),t.removeProperty(e.replace(I,"-$1").toLowerCase())):t.removeAttribute(e))},ie=function(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v:ee(i,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};At("className",{parser:function(t,e,i,r,o,s,l){var u,c,p,h,f,d=t.getAttribute("class")||"",m=t.style.cssText;if((o=r._classNamePT=new Tt(t,i,0,0,o,2)).setRatio=ie,o.pr=-11,n=!0,o.b=d,c=at(t,a),p=t._gsClassPT){for(h={},f=p.data;f;)h[f.p]=1,f=f._next;p.setRatio(1)}return t._gsClassPT=o,o.e="="!==e.charAt(1)?e:d.replace(new RegExp("(?:\\s|^)"+e.substr(2)+"(?![\\w-])"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",o.e),u=st(t,c,at(t),l,h),t.setAttribute("class",d),o.data=u.firstMPT,t.style.cssText!==m&&(t.style.cssText=m),o=o.xfirst=r.parse(t,u.difs,o,s)}});var re=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,r,n,o,a=this.t.style,s=c.transform.parse;if("all"===this.e)a.cssText="",n=!0;else for(r=(e=this.e.split(" ").join("").split(",")).length;--r>-1;)i=e[r],c[i]&&(c[i].parse===s?n=!0:i="transformOrigin"===i?Bt:c[i].p),ee(a,i);n&&(ee(a,Lt),(o=this.t._gsTransform)&&(o.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(At("clearProps",{parser:function(t,e,i,r,o){return(o=new Tt(t,i,0,0,o,2)).setRatio=re,o.e=e,o.pr=-10,o.data=r._tween,n=!0,o}}),p="bezier,throwProps,physicsProps,physics2D".split(","),Ct=p.length;Ct--;)Pt(p[Ct]);(p=l.prototype)._firstPT=p._lastParsedTransform=p._transform=null,p._onInitTween=function(t,e,i,r){if(!t.nodeType)return!1;this._target=g=t,this._tween=i,this._vars=e,_=r,h=e.autoRound,n=!1,o=e.suffixMap||l.suffixMap,a=it(t),s=this._overwriteProps;var u,p,m,y,x,b,w,T,S,E=t.style;if(f&&""===E.zIndex&&("auto"!==(u=rt(t,"zIndex",a))&&""!==u||this._addLazySet(E,"zIndex",0)),"string"==typeof e&&(y=E.cssText,u=at(t,a),E.cssText=y+";"+e,u=st(t,u,at(t)).difs,!W&&k.test(e)&&(u.opacity=parseFloat(RegExp.$1)),e=u,E.cssText=y),e.className?this._firstPT=p=c.className.parse(t,e.className,"className",this,null,null,e):this._firstPT=p=this.parse(t,e,null),this._transformType){for(S=3===this._transformType,Lt?d&&(f=!0,""===E.zIndex&&("auto"!==(w=rt(t,"zIndex",a))&&""!==w||this._addLazySet(E,"zIndex",0)),v&&this._addLazySet(E,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(S?"visible":"hidden"))):E.zoom=1,m=p;m&&m._next;)m=m._next;T=new Tt(t,"transform",0,0,null,2),this._linkCSSP(T,null,m),T.setRatio=Lt?Qt:Jt,T.data=this._transform||Yt(t,a,!0),T.tween=i,T.pr=-1,s.pop()}if(n){for(;p;){for(b=p._next,m=y;m&&m.pr>p.pr;)m=m._next;(p._prev=m?m._prev:x)?p._prev._next=p:y=p,(p._next=m)?m._prev=p:x=p,p=b}this._firstPT=y}return!0},p.parse=function(t,e,i,r){var n,s,l,u,p,f,d,m,v,y,x=t.style;for(n in e){if(f=e[n],s=c[n],"function"!=typeof f||s&&s.allowFunc||(f=f(_,g)),s)i=s.parse(t,f,n,this,i,r,e);else{if("--"===n.substr(0,2)){this._tween._propLookup[n]=this._addTween.call(this._tween,t.style,"setProperty",it(t).getPropertyValue(n)+"",f+"",n,!1,n);continue}p=rt(t,n,a)+"",v="string"==typeof f,"color"===n||"fill"===n||"stroke"===n||-1!==n.indexOf("Color")||v&&P.test(f)?(v||(f=((f=yt(f)).length>3?"rgba(":"rgb(")+f.join(",")+")"),i=Et(x,n,p,f,!0,"transparent",i,0,r)):v&&B.test(f)?i=Et(x,n,p,f,!0,null,i,0,r):(d=(l=parseFloat(p))||0===l?p.substr((l+"").length):"",""!==p&&"auto"!==p||("width"===n||"height"===n?(l=ct(t,n,a),d="px"):"left"===n||"top"===n?(l=ot(t,n,a),d="px"):(l="opacity"!==n?0:1,d="")),(y=v&&"="===f.charAt(1))?(u=parseInt(f.charAt(0)+"1",10),f=f.substr(2),u*=parseFloat(f),m=f.replace(E,"")):(u=parseFloat(f),m=v?f.replace(E,""):""),""===m&&(m=n in o?o[n]:d),f=u||0===u?(y?u+l:u)+m:e[n],d!==m&&(""===m&&"lineHeight"!==n||(u||0===u)&&l&&(l=nt(t,n,l,d),"%"===m?(l/=nt(t,n,100,"%")/100,!0!==e.strictUnits&&(p=l+"%")):"em"===m||"rem"===m||"vw"===m||"vh"===m?l/=nt(t,n,1,m):"px"!==m&&(u=nt(t,n,u,m),m="px"),y&&(u||0===u)&&(f=u+l+m))),y&&(u+=l),!l&&0!==l||!u&&0!==u?void 0!==x[n]&&(f||f+""!="NaN"&&null!=f)?(i=new Tt(x,n,u||l||0,0,i,-1,n,!1,0,p,f)).xs0="none"!==f||"display"!==n&&-1===n.indexOf("Style")?f:p:Y(e[n]):(i=new Tt(x,n,l,u-l,i,0,n,!1!==h&&("px"===m||"zIndex"===n),0,p,f)).xs0=m)}r&&i&&!i.plugin&&(i.plugin=r)}return i},p.setRatio=function(t){var e,i,r,n=this._firstPT;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;n;){if(e=n.c*t+n.s,n.r?e=n.r(e):e<1e-6&&e>-1e-6&&(e=0),n.type)if(1===n.type)if(2===(r=n.l))n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2;else if(3===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3;else if(4===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4;else if(5===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4+n.xn4+n.xs5;else{for(i=n.xs0+e+n.xs1,r=1;r-1;)t(e[o],i,r);else for(o=(n=e.childNodes).length;--o>-1;)s=(a=n[o]).type,a.style&&(i.push(at(a)),r&&r.push(a)),1!==s&&9!==s&&11!==s||!a.childNodes.length||t(a,i,r)};return l.cascadeTo=function(t,i,r){var n,o,a,s,l=e.to(t,i,r),u=[l],c=[],p=[],h=[],f=e._internals.reservedProps;for(t=l._targets||l.target,oe(t,c,h),l.render(i,!0,!0),oe(t,p),l.render(0,!0,!0),l._enabled(!0),n=h.length;--n>-1;)if((o=st(h[n],c[n],p[n])).firstMPT){for(a in o=o.difs,r)f[a]&&(o[a]=r[a]);for(a in s={},o)s[a]=c[n][a];u.push(e.fromTo(h[n],i,s,o))}return u},t.activate([l]),l}),!0),function(){var t=r._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(t,e,i){return this._tween=i,!0}}),e=function(t){var e=t<1?Math.pow(10,(t+"").length-2):1;return function(i){return(Math.round(i/t)*t*e|0)/e}},n=function(t,e){for(;t;)t.f||t.blob||(t.m=e||Math.round),t=t._next},o=t.prototype;o._onInitAllProps=function(){var t,r,o,a,s=this._tween,l=s.vars.roundProps,u={},c=s._propLookup.roundProps;if("object"!==i(l)||l.push)for("string"==typeof l&&(l=l.split(",")),o=l.length;--o>-1;)u[l[o]]=Math.round;else for(a in l)u[a]=e(l[a]);for(a in u)for(t=s._firstPT;t;)r=t._next,t.pg?t.t._mod(u):t.n===a&&(2===t.f&&t.t?n(t.t._firstPT,u[a]):(this._add(t.t,a,t.s,t.c,u[a]),r&&(r._prev=t._prev),t._prev?t._prev._next=r:s._firstPT===t&&(s._firstPT=r),t._next=t._prev=null,s._propLookup[a]=c)),t=r;return!1},o._add=function(t,e,i,r,n){this._addTween(t,e,i,i+r,e,n||Math.round),this._overwriteProps.push(e)}}(),r._gsDefine.plugin({propName:"attr",API:2,version:"0.6.1",init:function(t,e,i,r){var n,o;if("function"!=typeof t.setAttribute)return!1;for(n in e)"function"==typeof(o=e[n])&&(o=o(r,t)),this._addTween(t,"setAttribute",t.getAttribute(n)+"",o+"",n,!1,n),this._overwriteProps.push(n);return!0}}),r._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(t,e,r,n){"object"!==i(e)&&(e={rotation:e}),this.finals={};var o,a,s,l,u,c,p=!0===e.useRadians?2*Math.PI:360;for(o in e)"useRadians"!==o&&("function"==typeof(l=e[o])&&(l=l(n,t)),a=(c=(l+"").split("_"))[0],s=parseFloat("function"!=typeof t[o]?t[o]:t[o.indexOf("set")||"function"!=typeof t["get"+o.substr(3)]?o:"get"+o.substr(3)]()),u=(l=this.finals[o]="string"==typeof a&&"="===a.charAt(1)?s+parseInt(a.charAt(0)+"1",10)*Number(a.substr(2)):Number(a)||0)-s,c.length&&(-1!==(a=c.join("_")).indexOf("short")&&(u%=p)!==u%(p/2)&&(u=u<0?u+p:u-p),-1!==a.indexOf("_cw")&&u<0?u=(u+9999999999*p)%p-(u/p|0)*p:-1!==a.indexOf("ccw")&&u>0&&(u=(u-9999999999*p)%p-(u/p|0)*p)),(u>1e-6||u<-1e-6)&&(this._addTween(t,o,s,s+u,o),this._overwriteProps.push(o)));return!0},set:function(t){var e;if(1!==t)this._super.setRatio.call(this,t);else for(e=this._firstPT;e;)e.f?e.t[e.p](this.finals[e.p]):e.t[e.p]=this.finals[e.p],e=e._next}})._autoCSS=!0,r._gsDefine("easing.Back",["easing.Ease"],(function(t){var e,i,n,o,a=r.GreenSockGlobals||r,s=a.com.greensock,l=2*Math.PI,u=Math.PI/2,c=s._class,p=function(e,i){var r=c("easing."+e,(function(){}),!0),n=r.prototype=new t;return n.constructor=r,n.getRatio=i,r},h=t.register||function(){},f=function(t,e,i,r,n){var o=c("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new r},!0);return h(o,t),o},d=function(t,e,i){this.t=t,this.v=e,i&&(this.next=i,i.prev=this,this.c=i.v-e,this.gap=i.t-t)},m=function(e,i){var r=c("easing."+e,(function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1}),!0),n=r.prototype=new t;return n.constructor=r,n.getRatio=i,n.config=function(t){return new r(t)},r},v=f("Back",m("BackOut",(function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1})),m("BackIn",(function(t){return t*t*((this._p1+1)*t-this._p1)})),m("BackInOut",(function(t){return(t*=2)<1?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)}))),y=c("easing.SlowMo",(function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=!0===i}),!0),g=y.prototype=new t;return g.constructor=y,g.getRatio=function(t){var e=t+(.5-t)*this._p;return tthis._p3?this._calcEnd?1===t?0:1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},y.ease=new y(.7,.7),g.config=y.config=function(t,e,i){return new y(t,e,i)},(g=(e=c("easing.SteppedEase",(function(t,e){t=t||1,this._p1=1/t,this._p2=t+(e?0:1),this._p3=e?1:0}),!0)).prototype=new t).constructor=e,g.getRatio=function(t){return t<0?t=0:t>=1&&(t=.999999999),((this._p2*t|0)+this._p3)*this._p1},g.config=e.config=function(t,i){return new e(t,i)},(g=(i=c("easing.ExpoScaleEase",(function(t,e,i){this._p1=Math.log(e/t),this._p2=e-t,this._p3=t,this._ease=i}),!0)).prototype=new t).constructor=i,g.getRatio=function(t){return this._ease&&(t=this._ease.getRatio(t)),(this._p3*Math.exp(this._p1*t)-this._p3)/this._p2},g.config=i.config=function(t,e,r){return new i(t,e,r)},(g=(n=c("easing.RoughEase",(function(e){for(var i,r,n,o,a,s,l=(e=e||{}).taper||"none",u=[],c=0,p=0|(e.points||20),h=p,f=!1!==e.randomize,m=!0===e.clamp,v=e.template instanceof t?e.template:null,y="number"==typeof e.strength?.4*e.strength:.4;--h>-1;)i=f?Math.random():1/p*h,r=v?v.getRatio(i):i,n="none"===l?y:"out"===l?(o=1-i)*o*y:"in"===l?i*i*y:i<.5?(o=2*i)*o*.5*y:(o=2*(1-i))*o*.5*y,f?r+=Math.random()*n-.5*n:h%2?r+=.5*n:r-=.5*n,m&&(r>1?r=1:r<0&&(r=0)),u[c++]={x:i,y:r};for(u.sort((function(t,e){return t.x-e.x})),s=new d(1,1,null),h=p;--h>-1;)a=u[h],s=new d(a.x,a.y,s);this._prev=new d(0,0,0!==s.t?s:s.next)}),!0)).prototype=new t).constructor=n,g.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&t<=e.t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},g.config=function(t){return new n(t)},n.ease=new n,f("Bounce",p("BounceOut",(function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375})),p("BounceIn",(function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:t<2/2.75?1-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)})),p("BounceInOut",(function(t){var e=t<.5;return(t=e?1-2*t:2*t-1)<1/2.75?t*=7.5625*t:t=t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5}))),f("Circ",p("CircOut",(function(t){return Math.sqrt(1-(t-=1)*t)})),p("CircIn",(function(t){return-(Math.sqrt(1-t*t)-1)})),p("CircInOut",(function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}))),f("Elastic",(o=function(e,i,r){var n=c("easing."+e,(function(t,e){this._p1=t>=1?t:1,this._p2=(e||r)/(t<1?t:1),this._p3=this._p2/l*(Math.asin(1/this._p1)||0),this._p2=l/this._p2}),!0),o=n.prototype=new t;return o.constructor=n,o.getRatio=i,o.config=function(t,e){return new n(t,e)},n})("ElasticOut",(function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1}),.3),o("ElasticIn",(function(t){return-this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)}),.3),o("ElasticInOut",(function(t){return(t*=2)<1?this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)*-.5:this._p1*Math.pow(2,-10*(t-=1))*Math.sin((t-this._p3)*this._p2)*.5+1}),.45)),f("Expo",p("ExpoOut",(function(t){return 1-Math.pow(2,-10*t)})),p("ExpoIn",(function(t){return Math.pow(2,10*(t-1))-.001})),p("ExpoInOut",(function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))}))),f("Sine",p("SineOut",(function(t){return Math.sin(t*u)})),p("SineIn",(function(t){return 1-Math.cos(t*u)})),p("SineInOut",(function(t){return-.5*(Math.cos(Math.PI*t)-1)}))),c("easing.EaseLookup",{find:function(e){return t.map[e]}},!0),h(a.SlowMo,"SlowMo","ease,"),h(n,"RoughEase","ease,"),h(e,"SteppedEase","ease,"),v}),!0)})),r._gsDefine&&r._gsQueue.pop()(),function(t,r){var n={},o=t.document,a=t.GreenSockGlobals=t.GreenSockGlobals||t,s=a.TweenMax;if(s)return void 0!==e&&e.exports&&(e.exports=s),s;var l,u,c,p,h,f,d,m=function(t){var e,i=t.split("."),r=a;for(e=0;e-1;)(p=x[o[v]]||new i(o[v],[])).gsClass?(u[v]=p.gsClass,y--):c&&p.sc.push(this);if(0===y&&s){if(f=(h=("com.greensock."+r).split(".")).pop(),d=m(h.join("."))[f]=this.gsClass=s.apply(s,u),l)if(a[f]=n[f]=d,void 0!==e&&e.exports)if("TweenMax"===r)for(v in e.exports=n.TweenMax=d,n)d[v]=n[v];else n.TweenMax&&(n.TweenMax[f]=d);else"function"==typeof define&&define.amd&&define((t.GreenSockAMDPath?t.GreenSockAMDPath+"/":"")+r.split(".").pop(),[],(function(){return d}));for(v=0;v-1;)for(o=l[u],n=r?T("easing."+o,null,!0):v.easing[o]||{},a=c.length;--a>-1;)s=c[a],C[o+"."+s]=C[s+o]=n[s]=t.getRatio?t:t[s]||new t};for((c=E.prototype)._calcEnd=!1,c.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,r=1===e?1-t:2===e?t:t<.5?2*t:2*(1-t);return 1===i?r*=r:2===i?r*=r*r:3===i?r*=r*r*r:4===i&&(r*=r*r*r*r),1===e?1-r:2===e?r:t<.5?r/2:1-r/2},u=(l=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;--u>-1;)c=l[u]+",Power"+u,k(new E(null,null,1,u),c,"easeOut",!0),k(new E(null,null,2,u),c,"easeIn"+(0===u?",easeNone":"")),k(new E(null,null,3,u),c,"easeInOut");C.linear=v.easing.Linear.easeIn,C.swing=v.easing.Quad.easeInOut;var A=T("events.EventDispatcher",(function(t){this._listeners={},this._eventTarget=t||this}));(c=A.prototype).addEventListener=function(t,e,i,r,n){n=n||0;var o,a,s=this._listeners[t],l=0;for(this!==p||h||p.wake(),null==s&&(this._listeners[t]=s=[]),a=s.length;--a>-1;)(o=s[a]).c===e&&o.s===i?s.splice(a,1):0===l&&o.pr-1;)if(r[i].c===e)return void r.splice(i,1)},c.dispatchEvent=function(t){var e,i,r,n=this._listeners[t];if(n)for((e=n.length)>1&&(n=n.slice(0)),i=this._eventTarget;--e>-1;)(r=n[e])&&(r.up?r.c.call(r.s||i,{type:t,target:i}):r.c.call(r.s||i))};var P=t.requestAnimationFrame,I=t.cancelAnimationFrame,M=Date.now||function(){return(new Date).getTime()},z=M();for(u=(l=["ms","moz","webkit","o"]).length;--u>-1&&!P;)P=t[l[u]+"RequestAnimationFrame"],I=t[l[u]+"CancelAnimationFrame"]||t[l[u]+"CancelRequestAnimationFrame"];T("Ticker",(function(t,e){var i,r,n,a,s,l=this,u=M(),c=!(!1===e||!P)&&"auto",f=500,d=33,m=function t(e){var o,c,p=M()-z;p>f&&(u+=p-d),z+=p,l.time=(z-u)/1e3,o=l.time-s,(!i||o>0||!0===e)&&(l.frame++,s+=o+(o>=a?.004:a-o),c=!0),!0!==e&&(n=r(t)),c&&l.dispatchEvent("tick")};A.call(l),l.time=l.frame=0,l.tick=function(){m(!0)},l.lagSmoothing=function(t,e){if(!arguments.length)return f<1/1e-8;f=t||1/1e-8,d=Math.min(e,f,0)},l.sleep=function(){null!=n&&(c&&I?I(n):clearTimeout(n),r=g,n=null,l===p&&(h=!1))},l.wake=function(t){null!==n?l.sleep():t?u+=-z+(z=M()):l.frame>10&&(z=M()-f+5),r=0===i?g:c&&P?P:function(t){return setTimeout(t,1e3*(s-l.time)+1|0)},l===p&&(h=!0),m(2)},l.fps=function(t){if(!arguments.length)return i;a=1/((i=t)||60),s=this.time+a,l.wake()},l.useRAF=function(t){if(!arguments.length)return c;l.sleep(),c=t,l.fps(i)},l.fps(t),setTimeout((function(){"auto"===c&&l.frame<5&&"hidden"!==(o||{}).visibilityState&&l.useRAF(!1)}),1500)})),(c=v.Ticker.prototype=new v.events.EventDispatcher).constructor=v.Ticker;var D=T("core.Animation",(function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=!!e.immediateRender,this.data=e.data,this._reversed=!!e.reversed,J){h||p.wake();var i=this.vars.useFrames?Y:J;i.add(this,i._time),this.vars.paused&&this.paused(!0)}}));p=D.ticker=new v.Ticker,(c=D.prototype)._dirty=c._gc=c._initted=c._paused=!1,c._totalTime=c._time=0,c._rawPrevTime=-1,c._next=c._last=c._onUpdate=c._timeline=c.timeline=null,c._paused=!1;!function t(){h&&M()-z>2e3&&("hidden"!==(o||{}).visibilityState||!p.lagSmoothing())&&p.wake();var e=setTimeout(t,2e3);e.unref&&e.unref()}(),c.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},c.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},c.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},c.seek=function(t,e){return this.totalTime(Number(t),!1!==e)},c.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},c.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},c.render=function(t,e,i){},c.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},c.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime(!0))>=i&&t-1;)"{self}"===t[e]&&(i[e]=this);return i},c._callback=function(t){var e=this.vars,i=e[t],r=e[t+"Params"],n=e[t+"Scope"]||e.callbackScope||this;switch(r?r.length:0){case 0:i.call(n);break;case 1:i.call(n,r[0]);break;case 2:i.call(n,r[0],r[1]);break;default:i.apply(n,r)}},c.eventCallback=function(t,e,i,r){if("on"===(t||"").substr(0,2)){var n=this.vars;if(1===arguments.length)return n[t];null==e?delete n[t]:(n[t]=e,n[t+"Params"]=_(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,n[t+"Scope"]=r),"onUpdate"===t&&(this._onUpdate=e)}return this},c.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},c.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._timethis._duration?this._duration:t,e)):this._time},c.totalTime=function(t,e,i){if(h||p.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(t<0&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var r=this._totalDuration,n=this._timeline;if(t>r&&!i&&(t=r),this._startTime=(this._paused?this._pauseTime:n._time)-(this._reversed?r-t:t)/this._timeScale,n._dirty||this._uncache(!1),n._timeline)for(;n._timeline;)n._timeline._time!==(n._startTime+n._totalTime)/n._timeScale&&n.totalTime(n._totalTime,!0),n=n._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===t&&0!==this._duration||(F.length&&tt(),this.render(t,e,!1),F.length&&tt())}return this},c.progress=c.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},c.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},c.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},c.timeScale=function(t){if(!arguments.length)return this._timeScale;var e,i;for(t=t||1e-8,this._timeline&&this._timeline.smoothChildTiming&&(i=(e=this._pauseTime)||0===e?e:this._timeline.totalTime(),this._startTime=i-(i-this._startTime)*this._timeScale/t),this._timeScale=t,i=this.timeline;i&&i.timeline;)i._dirty=!0,i.totalDuration(),i=i.timeline;return this},c.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},c.paused=function(t){if(!arguments.length)return this._paused;var e,i,r=this._timeline;return t!=this._paused&&r&&(h||t||p.wake(),i=(e=r.rawTime())-this._pauseTime,!t&&r.smoothChildTiming&&(this._startTime+=i,this._uncache(!1)),this._pauseTime=t?e:null,this._paused=t,this._active=this.isActive(),!t&&0!==i&&this._initted&&this.duration()&&(e=r.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,this.render(e,e===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var O=T("core.SimpleTimeline",(function(t){D.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0}));(c=O.prototype=new D).constructor=O,c.kill()._gc=!1,c._first=c._last=c._recent=null,c._sortChildren=!1,c.add=c.insert=function(t,e,i,r){var n,o;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=this.rawTime()-(t._timeline.rawTime()-t._pauseTime)),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),n=this._last,this._sortChildren)for(o=t._startTime;n&&n._startTime>o;)n=n._prev;return n?(t._next=n._next,n._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=n,this._recent=t,this._timeline&&this._uncache(!0),this},c._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},c.render=function(t,e,i){var r,n=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;n;)r=n._next,(n._active||t>=n._startTime&&!n._paused&&!n._gc)&&(n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=r},c.rawTime=function(){return h||p.wake(),this._totalTime};var R=T("TweenLite",(function(e,i,r){if(D.call(this,i,r),this.render=R.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:R.selector(e)||e;var n,o,a,s=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),l=this.vars.overwrite;if(this._overwrite=l=null==l?K[R.defaultOverwrite]:"number"==typeof l?l>>0:K[l],(s||e instanceof Array||e.push&&_(e))&&"number"!=typeof e[0])for(this._targets=a=y(e),this._propLookup=[],this._siblings=[],n=0;n1&&rt(o,this,null,1,this._siblings[n])):"string"==typeof(o=a[n--]=R.selector(o))&&a.splice(n+1,1):a.splice(n--,1);else this._propLookup={},this._siblings=et(e,this,!1),1===l&&this._siblings.length>1&&rt(e,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-1e-8,this.render(Math.min(0,-this._delay)))}),!0),L=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)};(c=R.prototype=new D).constructor=R,c.kill()._gc=!1,c.ratio=0,c._firstPT=c._targets=c._overwrittenProps=c._startAt=null,c._notifyPluginsOfEnabled=c._lazy=!1,R.version="2.1.3",R.defaultEase=c._ease=new E(null,null,1,1),R.defaultOverwrite="auto",R.ticker=p,R.autoSleep=120,R.lagSmoothing=function(t,e){p.lagSmoothing(t,e)},R.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(R.selector=i,i(e)):(o||(o=t.document),o?o.querySelectorAll?o.querySelectorAll(e):o.getElementById("#"===e.charAt(0)?e.substr(1):e):e)};var F=[],B={},N=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,j=/[\+-]=-?[\.\d]/,V=function(t){for(var e,i=this._firstPT;i;)e=i.blob?1===t&&null!=this.end?this.end:t?this.join(""):this.start:i.c*t+i.s,i.m?e=i.m.call(this._tween,e,this._target||i.t,this._tween):e<1e-6&&e>-1e-6&&!i.blob&&(e=0),i.f?i.fp?i.t[i.p](i.fp,e):i.t[i.p](e):i.t[i.p]=e,i=i._next},U=function(t){return(1e3*t|0)/1e3+""},q=function(t,e,i,r){var n,o,a,s,l,u,c,p=[],h=0,f="",d=0;for(p.start=t,p.end=e,t=p[0]=t+"",e=p[1]=e+"",i&&(i(p),t=p[0],e=p[1]),p.length=0,n=t.match(N)||[],o=e.match(N)||[],r&&(r._next=null,r.blob=1,p._firstPT=p._applyPT=r),l=o.length,s=0;s=Q){for(i in Q=p.frame+(parseInt(R.autoSleep,10)||120),X){for(t=(e=X[i].tweens).length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete X[i]}if((!(i=J._first)||i._paused)&&R.autoSleep&&!Y._first&&1===p._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||p.sleep()}}},p.addEventListener("tick",D._updateRoot);var et=function(t,e,i){var r,n,o=t._gsTweenID;if(X[o||(t._gsTweenID=o="t"+H++)]||(X[o]={target:t,tweens:[]}),e&&((r=X[o].tweens)[n=r.length]=e,i))for(;--n>-1;)r[n]===e&&r.splice(n,1);return X[o].tweens},it=function(t,e,i,r){var n,o,a=t.vars.onOverwrite;return a&&(n=a(t,e,i,r)),(a=R.onOverwrite)&&(o=a(t,e,i,r)),!1!==n&&!1!==o},rt=function(t,e,i,r,n){var o,a,s,l;if(1===r||r>=4){for(l=n.length,o=0;o-1;)(s=n[o])===e||s._gc||s._paused||(s._timeline!==e._timeline?(u=u||nt(e,0,f),0===nt(s,u,f)&&(p[h++]=s)):s._startTime<=c&&s._startTime+s.totalDuration()/s._timeScale>c&&((f||!s._initted)&&c-s._startTime<=2e-8||(p[h++]=s)));for(o=h;--o>-1;)if(l=(s=p[o])._firstPT,2===r&&s._kill(i,t,e)&&(a=!0),2!==r||!s._firstPT&&s._initted&&l){if(2!==r&&!it(s,e))continue;s._enabled(!1,!1)&&(a=!0)}return a},nt=function(t,e,i){for(var r=t._timeline,n=r._timeScale,o=t._startTime;r._timeline;){if(o+=r._startTime,n*=r._timeScale,r._paused)return-100;r=r._timeline}return(o/=n)>e?o-e:i&&o===e||!t._initted&&o-e<2e-8?1e-8:(o+=t.totalDuration()/t._timeScale/n)>e+1e-8?0:o-e-1e-8};c._init=function(){var t,e,i,r,n,o,a=this.vars,s=this._overwrittenProps,l=this._duration,u=!!a.immediateRender,c=a.ease,p=this._startAt;if(a.startAt){for(r in p&&(p.render(-1,!0),p.kill()),n={},a.startAt)n[r]=a.startAt[r];if(n.data="isStart",n.overwrite=!1,n.immediateRender=!0,n.lazy=u&&!1!==a.lazy,n.startAt=n.delay=null,n.onUpdate=a.onUpdate,n.onUpdateParams=a.onUpdateParams,n.onUpdateScope=a.onUpdateScope||a.callbackScope||this,this._startAt=R.to(this.target||{},0,n),u)if(this._time>0)this._startAt=null;else if(0!==l)return}else if(a.runBackwards&&0!==l)if(p)p.render(-1,!0),p.kill(),this._startAt=null;else{for(r in 0!==this._time&&(u=!1),i={},a)W[r]&&"autoCSS"!==r||(i[r]=a[r]);if(i.overwrite=0,i.data="isFromStart",i.lazy=u&&!1!==a.lazy,i.immediateRender=u,this._startAt=R.to(this.target,0,i),u){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=c=c?c instanceof E?c:"function"==typeof c?new E(c,a.easeParams):C[c]||R.defaultEase:R.defaultEase,a.easeParams instanceof Array&&c.config&&(this._ease=c.config.apply(c,a.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(o=this._targets.length,t=0;t-1;)i[u._overwriteProps[s]]=this._firstPT;(u._priority||u._onInitAllProps)&&(l=!0),(u._onDisable||u._onEnable)&&(this._notifyPluginsOfEnabled=!0),c._next&&(c._next._prev=c)}else i[a]=$.call(this,e,a,"get",p,a,0,null,this.vars.stringFilter,o);return n&&this._kill(n,e)?this._initProps(e,i,r,n,o):this._overwrite>1&&this._firstPT&&r.length>1&&rt(e,this,i,this._overwrite,r)?(this._kill(i,e),this._initProps(e,i,r,n,o)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(B[e._gsTweenID]=!0),l)},c.render=function(t,e,i){var r,n,o,a,s=this._time,l=this._duration,u=this._rawPrevTime;if(t>=l-1e-8&&t>=0)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(r=!0,n="onComplete",i=i||this._timeline.autoRemoveChildren),0===l&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(u<0||t<=0&&t>=-1e-8||1e-8===u&&"isPause"!==this.data)&&u!==t&&(i=!0,u>1e-8&&(n="onReverseComplete")),this._rawPrevTime=a=!e||t||u===t?t:1e-8);else if(t<1e-8)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==s||0===l&&u>0)&&(n="onReverseComplete",r=this._reversed),t>-1e-8?t=0:t<0&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(u>=0&&(1e-8!==u||"isPause"!==this.data)&&(i=!0),this._rawPrevTime=a=!e||t||u===t?t:1e-8)),(!this._initted||this._startAt&&this._startAt.progress())&&(i=!0);else if(this._totalTime=this._time=t,this._easeType){var c=t/l,p=this._easeType,h=this._easePower;(1===p||3===p&&c>=.5)&&(c=1-c),3===p&&(c*=2),1===h?c*=c:2===h?c*=c*c:3===h?c*=c*c*c:4===h&&(c*=c*c*c*c),this.ratio=1===p?1-c:2===p?c:t/l<.5?c/2:1-c/2}else this.ratio=this._ease.getRatio(t/l);if(this._time!==s||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=s,this._rawPrevTime=u,F.push(this),void(this._lazy=[t,e]);this._time&&!r?this.ratio=this._ease.getRatio(this._time/l):r&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==s&&t>=0&&(this._active=!0),0===s&&(this._startAt&&(t>=0?this._startAt.render(t,!0,i):n||(n="_dummyGS")),this.vars.onStart&&(0===this._time&&0!==l||e||this._callback("onStart"))),o=this._firstPT;o;)o.f?o.t[o.p](o.c*this.ratio+o.s):o.t[o.p]=o.c*this.ratio+o.s,o=o._next;this._onUpdate&&(t<0&&this._startAt&&-1e-4!==t&&this._startAt.render(t,!0,i),e||(this._time!==s||r||i)&&this._callback("onUpdate")),n&&(this._gc&&!i||(t<0&&this._startAt&&!this._onUpdate&&-1e-4!==t&&this._startAt.render(t,!0,i),r&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[n]&&this._callback(n),0===l&&1e-8===this._rawPrevTime&&1e-8!==a&&(this._rawPrevTime=0)))}},c._kill=function(t,e,r){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:R.selector(e)||e;var n,o,a,s,l,u,c,p,h,f=r&&this._time&&r._startTime===this._startTime&&this._timeline===r._timeline,d=this._firstPT;if((_(e)||L(e))&&"number"!=typeof e[0])for(n=e.length;--n>-1;)this._kill(t,e[n],r)&&(u=!0);else{if(this._targets){for(n=this._targets.length;--n>-1;)if(e===this._targets[n]){l=this._propLookup[n]||{},this._overwrittenProps=this._overwrittenProps||[],o=this._overwrittenProps[n]=t?this._overwrittenProps[n]||{}:"all";break}}else{if(e!==this.target)return!1;l=this._propLookup,o=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(l){if(c=t||l,p=t!==o&&"all"!==o&&t!==l&&("object"!==i(t)||!t._tempKill),r&&(R.onOverwrite||this.vars.onOverwrite)){for(a in c)l[a]&&(h||(h=[]),h.push(a));if((h||!t)&&!it(this,r,e,h))return!1}for(a in c)(s=l[a])&&(f&&(s.f?s.t[s.p](s.s):s.t[s.p]=s.s,u=!0),s.pg&&s.t._kill(c)&&(u=!0),s.pg&&0!==s.t._overwriteProps.length||(s._prev?s._prev._next=s._next:s===this._firstPT&&(this._firstPT=s._next),s._next&&(s._next._prev=s._prev),s._next=s._prev=null),delete l[a]),p&&(o[a]=1);!this._firstPT&&this._initted&&d&&this._enabled(!1,!1)}}return u},c.invalidate=function(){this._notifyPluginsOfEnabled&&R._onPluginEvent("_onDisable",this);var t=this._time;return this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],D.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-1e-8,this.render(t,!1,!1!==this.vars.lazy)),this},c._enabled=function(t,e){if(h||p.wake(),t&&this._gc){var i,r=this._targets;if(r)for(i=r.length;--i>-1;)this._siblings[i]=et(r[i],this,!0);else this._siblings=et(this.target,this,!0)}return D.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&R._onPluginEvent(t?"_onEnable":"_onDisable",this)},R.to=function(t,e,i){return new R(t,e,i)},R.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new R(t,e,i)},R.fromTo=function(t,e,i,r){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,new R(t,e,r)},R.delayedCall=function(t,e,i,r,n){return new R(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:r,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:n,overwrite:0})},R.set=function(t,e){return new R(t,0,e)},R.getTweensOf=function(t,e){if(null==t)return[];var i,r,n,o;if(t="string"!=typeof t?t:R.selector(t)||t,(_(t)||L(t))&&"number"!=typeof t[0]){for(i=t.length,r=[];--i>-1;)r=r.concat(R.getTweensOf(t[i],e));for(i=r.length;--i>-1;)for(o=r[i],n=i;--n>-1;)o===r[n]&&r.splice(i,1)}else if(t._gsTweenID)for(i=(r=et(t).concat()).length;--i>-1;)(r[i]._gc||e&&!r[i].isActive())&&r.splice(i,1);return r||[]},R.killTweensOf=R.killDelayedCallsTo=function(t,e,r){"object"===i(e)&&(r=e,e=!1);for(var n=R.getTweensOf(t,e),o=n.length;--o>-1;)n[o]._kill(r,t)};var ot=T("plugins.TweenPlugin",(function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=ot.prototype}),!0);if(c=ot.prototype,ot.version="1.19.0",ot.API=2,c._firstPT=null,c._addTween=$,c.setRatio=V,c._kill=function(t){var e,i=this._overwriteProps,r=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;--e>-1;)null!=t[i[e]]&&i.splice(e,1);for(;r;)null!=t[r.n]&&(r._next&&(r._next._prev=r._prev),r._prev?(r._prev._next=r._next,r._prev=null):this._firstPT===r&&(this._firstPT=r._next)),r=r._next;return!1},c._mod=c._roundProps=function(t){for(var e,i=this._firstPT;i;)(e=t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")])&&"function"==typeof e&&(2===i.f?i.t._applyPT.m=e:i.m=e),i=i._next},R._onPluginEvent=function(t,e){var i,r,n,o,a,s=e._firstPT;if("_onInitAllProps"===t){for(;s;){for(a=s._next,r=n;r&&r.pr>s.pr;)r=r._next;(s._prev=r?r._prev:o)?s._prev._next=s:n=s,(s._next=r)?r._prev=s:o=s,s=a}s=e._firstPT=n}for(;s;)s.pg&&"function"==typeof s.t[t]&&s.t[t]()&&(i=!0),s=s._next;return i},ot.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===ot.API&&(G[(new t[e])._propName]=t[e]);return!0},w.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,r=t.priority||0,n=t.overwriteProps,o={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},a=T("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",(function(){ot.call(this,i,r),this._overwriteProps=n||[]}),!0===t.global),s=a.prototype=new ot(i);for(e in s.constructor=a,a.API=t.API,o)"function"==typeof t[e]&&(s[o[e]]=t[e]);return a.version=t.version,ot.activate([a]),a},l=t._gsQueue){for(u=0;u(r=1))return r;for(;io?i=n:r=n,n=.5*(r-i)+i}return n},r.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var n=o;function o(t,e){this.x=t,this.y=e}o.prototype={clone:function(){return new o(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),r=i*this.x+e*this.y;return this.x=e*this.x-i*this.y,this.y=r,this},_rotateAround:function(t,e){var i=Math.cos(t),r=Math.sin(t),n=e.y+r*(this.x-e.x)+i*(this.y-e.y);return this.x=e.x+i*(this.x-e.x)-r*(this.y-e.y),this.y=n,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},o.convert=function(t){return t instanceof o?t:Array.isArray(t)?new o(t[0],t[1]):t};var a="undefined"!=typeof self?self:{},s=Math.pow(2,53)-1;function l(t,e,r,n){var o=new i(t,e,r,n);return function(t){return o.solve(t)}}var u=l(.25,.1,.25,1);function c(t,e,i){return Math.min(i,Math.max(e,t))}function p(t,e,i){var r=i-e,n=((t-e)%r+r)%r+e;return n===e?i:n}function h(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];for(var r=0,n=e;r>e/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function v(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 y(t,e){t.forEach((function(t){e[t]&&(e[t]=e[t].bind(e))}))}function g(t,e){return-1!==t.indexOf(e,t.length-e.length)}function _(t,e,i){var r={};for(var n in t)r[n]=e.call(i||this,t[n],n,t);return r}function x(t,e,i){var r={};for(var n in t)e.call(i||this,t[n],n,t)&&(r[n]=t[n]);return r}function b(t){return Array.isArray(t)?t.map(b):"object"==typeof t&&t?_(t,b):t}var w={};function T(t){w[t]||(w[t]=!0)}function S(t,e,i){return(i.y-t.y)*(e.x-t.x)>(e.y-t.y)*(i.x-t.x)}function E(t){for(var e=0,i=0,r=t.length,n=r-1,o=void 0,a=void 0;i@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(function(t,i,r,n){var o=r||n;return e[i]=!o||o.toLowerCase(),""})),e["max-age"]){var i=parseInt(e["max-age"],10);isNaN(i)?delete e["max-age"]:e["max-age"]=i}return e}var A=null;function P(t){if(null==A){var e=t.navigator?t.navigator.userAgent:null;A=!!t.safari||!(!e||!(/\b(iPad|iPhone|iPod)\b/.test(e)||e.match("Safari")&&!e.match("Chrome")))}return A}function I(t){try{var e=a[t];return e.setItem("_mapbox_test_",1),e.removeItem("_mapbox_test_"),!0}catch(t){return!1}}var M,z,D,O,R=a.performance&&a.performance.now?a.performance.now.bind(a.performance):Date.now.bind(Date),L=a.requestAnimationFrame||a.mozRequestAnimationFrame||a.webkitRequestAnimationFrame||a.msRequestAnimationFrame,F=a.cancelAnimationFrame||a.mozCancelAnimationFrame||a.webkitCancelAnimationFrame||a.msCancelAnimationFrame,B={now:R,frame:function(t){var e=L(t);return{cancel:function(){return F(e)}}},getImageData:function(t,e){void 0===e&&(e=0);var i=a.document.createElement("canvas"),r=i.getContext("2d");if(!r)throw new Error("failed to create canvas 2d context");return i.width=t.width,i.height=t.height,r.drawImage(t,0,0,t.width,t.height),r.getImageData(-e,-e,t.width+2*e,t.height+2*e)},resolveURL:function(t){return M||(M=a.document.createElement("a")),M.href=t,M.href},hardwareConcurrency:a.navigator&&a.navigator.hardwareConcurrency||4,get devicePixelRatio(){return a.devicePixelRatio},get prefersReducedMotion(){return!!a.matchMedia&&(null==z&&(z=a.matchMedia("(prefers-reduced-motion: reduce)")),z.matches)}},N={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf("https://api.mapbox.cn")?"https://events.mapbox.cn/events/v2":0===this.API_URL.indexOf("https://api.mapbox.com")?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},j={supported:!1,testSupport:function(t){!V&&O&&(U?q(t):D=t)}},V=!1,U=!1;function q(t){var e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e);try{if(t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,O),t.isContextLost())return;j.supported=!0}catch(t){}t.deleteTexture(e),V=!0}a.document&&((O=a.document.createElement("img")).onload=function(){D&&q(D),D=null,U=!0},O.onerror=function(){V=!0,D=null},O.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var $="01",Z=function(t,e){this._transformRequestFn=t,this._customAccessToken=e,this._createSkuToken()};function G(t){return 0===t.indexOf("mapbox:")}Z.prototype._createSkuToken=function(){var t=function(){for(var t="",e=0;e<10;e++)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",$,t].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=t.token,this._skuTokenExpiresAt=t.tokenExpiresAt},Z.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Z.prototype.transformRequest=function(t,e){return this._transformRequestFn&&this._transformRequestFn(t,e)||{url:t}},Z.prototype.normalizeStyleURL=function(t,e){if(!G(t))return t;var i=K(t);return i.path="/styles/v1"+i.path,this._makeAPIURL(i,this._customAccessToken||e)},Z.prototype.normalizeGlyphsURL=function(t,e){if(!G(t))return t;var i=K(t);return i.path="/fonts/v1"+i.path,this._makeAPIURL(i,this._customAccessToken||e)},Z.prototype.normalizeSourceURL=function(t,e){if(!G(t))return t;var i=K(t);return i.path="/v4/"+i.authority+".json",i.params.push("secure"),this._makeAPIURL(i,this._customAccessToken||e)},Z.prototype.normalizeSpriteURL=function(t,e,i,r){var n=K(t);return G(t)?(n.path="/styles/v1"+n.path+"/sprite"+e+i,this._makeAPIURL(n,this._customAccessToken||r)):(n.path+=""+e+i,Y(n))},Z.prototype.normalizeTileURL=function(t,e){if(this._isSkuTokenExpired()&&this._createSkuToken(),t&&!G(t))return t;var i=K(t);i.path=i.path.replace(/(\.(png|jpg)\d*)(?=$)/,(B.devicePixelRatio>=2||512===e?"@2x":"")+(j.supported?".webp":"$1")),i.path=i.path.replace(/^.+\/v4\//,"/"),i.path="/v4"+i.path;var r=this._customAccessToken||function(t){for(var e=0,i=t;e=1&&a.localStorage.setItem(e,JSON.stringify(this.eventData))}catch(t){T("Unable to write to LocalStorage")}},Q.prototype.processRequests=function(t){},Q.prototype.postEvent=function(t,e,i,r){var n=this;if(N.EVENTS_URL){var o=K(N.EVENTS_URL);o.params.push("access_token="+(r||N.ACCESS_TOKEN||""));var a={event:this.type,created:new Date(t).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.12.0",skuId:$,userId:this.anonId},s=e?h(a,e):a,l={url:Y(o),headers:{"Content-Type":"text/plain"},body:JSON.stringify([s])};this.pendingRequest=bt(l,(function(t){n.pendingRequest=null,i(t),n.saveEventData(),n.processRequests(r)}))}},Q.prototype.queueRequest=function(t,e){this.queue.push(t),this.processRequests(e)};var tt,et,it=function(t){function e(){t.call(this,"map.load"),this.success={},this.skuToken=""}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.postMapLoadEvent=function(t,e,i,r){this.skuToken=i,(N.EVENTS_URL&&r||N.ACCESS_TOKEN&&Array.isArray(t)&&t.some((function(t){return G(t)||H(t)})))&&this.queueRequest({id:e,timestamp:Date.now()},r)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&&0!==this.queue.length){var i=this.queue.shift(),r=i.id,n=i.timestamp;r&&this.success[r]||(this.anonId||this.fetchEventData(),v(this.anonId)||(this.anonId=m()),this.postEvent(n,{skuToken:this.skuToken},(function(t){t||r&&(e.success[r]=!0)}),t))}},e}(Q),rt=new(function(t){function e(e){t.call(this,"appUserTurnstile"),this._customAccessToken=e}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.postTurnstileEvent=function(t,e){N.EVENTS_URL&&N.ACCESS_TOKEN&&Array.isArray(t)&&t.some((function(t){return G(t)||H(t)}))&&this.queueRequest(Date.now(),e)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&&0!==this.queue.length){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var i=J(N.ACCESS_TOKEN),r=i?i.u:N.ACCESS_TOKEN,n=r!==this.eventData.tokenU;v(this.anonId)||(this.anonId=m(),n=!0);var o=this.queue.shift();if(this.eventData.lastSuccess){var a=new Date(this.eventData.lastSuccess),s=new Date(o),l=(o-this.eventData.lastSuccess)/864e5;n=n||l>=1||l<-1||a.getDate()!==s.getDate()}else n=!0;if(!n)return this.processRequests();this.postEvent(o,{"enabled.telemetry":!1},(function(t){t||(e.eventData.lastSuccess=o,e.eventData.tokenU=r)}),t)}},e}(Q)),nt=rt.postTurnstileEvent.bind(rt),ot=new it,at=ot.postMapLoadEvent.bind(ot),st=500,lt=50;function ut(){a.caches&&!tt&&(tt=a.caches.open("mapbox-tiles"))}function ct(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}var pt,ht=1/0;function ft(){return null==pt&&(pt=a.OffscreenCanvas&&new a.OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof a.createImageBitmap),pt}var dt={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(dt);var mt,vt,yt=function(t){function e(e,i,r){401===i&&H(r)&&(e+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),t.call(this,e),this.status=i,this.url=r,this.name=this.constructor.name,this.message=e}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},e}(Error),gt=C()?function(){return self.worker&&self.worker.referrer}:function(){return("blob:"===a.location.protocol?a.parent:a).location.href},_t=function(t,e){if(!(/^file:/.test(i=t.url)||/^file:/.test(gt())&&!/^\w+:/.test(i))){if(a.fetch&&a.Request&&a.AbortController&&a.Request.prototype.hasOwnProperty("signal"))return function(t,e){var i,r=new a.AbortController,n=new a.Request(t.url,{method:t.method||"GET",body:t.body,credentials:t.credentials,headers:t.headers,referrer:gt(),signal:r.signal}),o=!1,s=!1,l=(i=n.url).indexOf("sku=")>0&&H(i);"json"===t.type&&n.headers.set("Accept","application/json");var u=function(i,r,o){if(!s){if(i&&"SecurityError"!==i.message&&T(i),r&&o)return c(r);var u=Date.now();a.fetch(n).then((function(i){if(i.ok){var r=l?i.clone():null;return c(i,r,u)}return e(new yt(i.statusText,i.status,t.url))})).catch((function(t){20!==t.code&&e(new Error(t.message))}))}},c=function(i,r,l){("arrayBuffer"===t.type?i.arrayBuffer():"json"===t.type?i.json():i.text()).then((function(t){s||(r&&l&&function(t,e,i){if(ut(),tt){var r={status:e.status,statusText:e.statusText,headers:new a.Headers};e.headers.forEach((function(t,e){return r.headers.set(e,t)}));var n=k(e.headers.get("Cache-Control")||"");n["no-store"]||(n["max-age"]&&r.headers.set("Expires",new Date(i+1e3*n["max-age"]).toUTCString()),new Date(r.headers.get("Expires")).getTime()-i<42e4||function(t,e){if(void 0===et)try{new Response(new ReadableStream),et=!0}catch(t){et=!1}et?e(t.body):t.blob().then(e)}(e,(function(e){var i=new a.Response(e,r);ut(),tt&&tt.then((function(e){return e.put(ct(t.url),i)})).catch((function(t){return T(t.message)}))})))}}(n,r,l),o=!0,e(null,t,i.headers.get("Cache-Control"),i.headers.get("Expires")))})).catch((function(t){s||e(new Error(t.message))}))};return l?function(t,e){if(ut(),!tt)return e(null);var i=ct(t.url);tt.then((function(t){t.match(i).then((function(r){var n=function(t){if(!t)return!1;var e=new Date(t.headers.get("Expires")||0),i=k(t.headers.get("Cache-Control")||"");return e>Date.now()&&!i["no-cache"]}(r);t.delete(i),n&&t.put(i,r.clone()),e(null,r,n)})).catch(e)})).catch(e)}(n,u):u(null,null),{cancel:function(){s=!0,o||r.abort()}}}(t,e);if(C()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",t,e,void 0,!0)}var i;return function(t,e){var i=new a.XMLHttpRequest;for(var r in i.open(t.method||"GET",t.url,!0),"arrayBuffer"===t.type&&(i.responseType="arraybuffer"),t.headers)i.setRequestHeader(r,t.headers[r]);return"json"===t.type&&(i.responseType="text",i.setRequestHeader("Accept","application/json")),i.withCredentials="include"===t.credentials,i.onerror=function(){e(new Error(i.statusText))},i.onload=function(){if((i.status>=200&&i.status<300||0===i.status)&&null!==i.response){var r=i.response;if("json"===t.type)try{r=JSON.parse(i.response)}catch(t){return e(t)}e(null,r,i.getResponseHeader("Cache-Control"),i.getResponseHeader("Expires"))}else e(new yt(i.statusText,i.status,t.url))},i.send(t.body),{cancel:function(){return i.abort()}}}(t,e)},xt=function(t,e){return _t(h(t,{type:"arrayBuffer"}),e)},bt=function(t,e){return _t(h(t,{method:"POST"}),e)};mt=[],vt=0;var wt=function(t,e){if(j.supported&&(t.headers||(t.headers={}),t.headers.accept="image/webp,*/*"),vt>=N.MAX_PARALLEL_IMAGE_REQUESTS){var i={requestParameters:t,callback:e,cancelled:!1,cancel:function(){this.cancelled=!0}};return mt.push(i),i}vt++;var r=!1,n=function(){if(!r)for(r=!0,vt--;mt.length&&vt0||this._oneTimeListeners&&this._oneTimeListeners[t]&&this._oneTimeListeners[t].length>0||this._eventedParent&&this._eventedParent.listens(t)},kt.prototype.setEventedParent=function(t,e){return this._eventedParent=t,this._eventedParentData=e,this};var At={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},Pt=function(t,e,i,r){this.message=(t?t+": ":"")+i,r&&(this.identifier=r),null!=e&&e.__line__&&(this.line=e.__line__)};function It(t){var e=t.value;return e?[new Pt(t.key,e,"constants have been deprecated as of v8")]:[]}function Mt(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];for(var r=0,n=e;r":"value"===t.itemType.kind?"array":"array<"+e+">"}return t.kind}var Ht=[Lt,Ft,Bt,Nt,jt,$t,Vt,Gt(Ut),Zt];function Wt(t,e){if("error"===e.kind)return null;if("array"===t.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!Wt(t.itemType,e.itemType))&&("number"!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if("value"===t.kind)for(var i=0,r=Ht;i255?255:t}function n(t){return r("%"===t[t.length-1]?parseFloat(t)/100*255:parseInt(t))}function o(t){return(e="%"===t[t.length-1]?parseFloat(t)/100:parseFloat(t))<0?0:e>1?1:e;var e}function a(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{e.parseCSSColor=function(t){var e,s=t.replace(/ /g,"").toLowerCase();if(s in i)return i[s].slice();if("#"===s[0])return 4===s.length?(e=parseInt(s.substr(1),16))>=0&&e<=4095?[(3840&e)>>4|(3840&e)>>8,240&e|(240&e)>>4,15&e|(15&e)<<4,1]:null:7===s.length&&(e=parseInt(s.substr(1),16))>=0&&e<=16777215?[(16711680&e)>>16,(65280&e)>>8,255&e,1]:null;var l=s.indexOf("("),u=s.indexOf(")");if(-1!==l&&u+1===s.length){var c=s.substr(0,l),p=s.substr(l+1,u-(l+1)).split(","),h=1;switch(c){case"rgba":if(4!==p.length)return null;h=o(p.pop());case"rgb":return 3!==p.length?null:[n(p[0]),n(p[1]),n(p[2]),h];case"hsla":if(4!==p.length)return null;h=o(p.pop());case"hsl":if(3!==p.length)return null;var f=(parseFloat(p[0])%360+360)%360/360,d=o(p[1]),m=o(p[2]),v=m<=.5?m*(d+1):m+d-m*d,y=2*m-v;return[r(255*a(y,v,f+1/3)),r(255*a(y,v,f)),r(255*a(y,v,f-1/3)),h];default:return null}}return null}}catch(t){}})).parseCSSColor,Qt=function(t,e,i,r){void 0===r&&(r=1),this.r=t,this.g=e,this.b=i,this.a=r};Qt.parse=function(t){if(t){if(t instanceof Qt)return t;if("string"==typeof t){var e=Jt(t);if(e)return new Qt(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},Qt.prototype.toString=function(){var t=this.toArray(),e=t[1],i=t[2],r=t[3];return"rgba("+Math.round(t[0])+","+Math.round(e)+","+Math.round(i)+","+r+")"},Qt.prototype.toArray=function(){var t=this.a;return 0===t?[0,0,0,0]:[255*this.r/t,255*this.g/t,255*this.b/t,t]},Qt.black=new Qt(0,0,0,1),Qt.white=new Qt(1,1,1,1),Qt.transparent=new Qt(0,0,0,0),Qt.red=new Qt(1,0,0,1);var te=function(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"})};te.prototype.compare=function(t,e){return this.collator.compare(t,e)},te.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var ee=function(t,e,i,r,n){this.text=t,this.image=e,this.scale=i,this.fontStack=r,this.textColor=n},ie=function(t){this.sections=t};ie.fromString=function(t){return new ie([new ee(t,null,null,null,null)])},ie.prototype.isEmpty=function(){return 0===this.sections.length||!this.sections.some((function(t){return 0!==t.text.length||t.image&&0!==t.image.name.length}))},ie.factory=function(t){return t instanceof ie?t:ie.fromString(t)},ie.prototype.toString=function(){return 0===this.sections.length?"":this.sections.map((function(t){return t.text})).join("")},ie.prototype.serialize=function(){for(var t=["format"],e=0,i=this.sections;e=0&&t<=255&&"number"==typeof e&&e>=0&&e<=255&&"number"==typeof i&&i>=0&&i<=255?void 0===r||"number"==typeof r&&r>=0&&r<=1?null:"Invalid rgba value ["+[t,e,i,r].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"==typeof r?[t,e,i,r]:[t,e,i]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function oe(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 Qt)return!0;if(t instanceof te)return!0;if(t instanceof ie)return!0;if(t instanceof re)return!0;if(Array.isArray(t)){for(var e=0,i=t;e2){var s=t[1];if("string"!=typeof s||!(s in ce)||"object"===s)return e.error('The item type argument of "array" must be one of string, number, boolean',1);o=ce[s],r++}else o=Ut;if(t.length>3){if(null!==t[2]&&("number"!=typeof t[2]||t[2]<0||t[2]!==Math.floor(t[2])))return e.error('The length argument to "array" must be a positive integer literal',2);a=t[2],r++}i=Gt(o,a)}else i=ce[n];for(var l=[];r1)&&e.push(r)}}return e.concat(this.args.map((function(t){return t.serialize()})))};var he=function(t){this.type=$t,this.sections=t};he.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var i=t[1];if(!Array.isArray(i)&&"object"==typeof i)return e.error("First argument must be an image or text section.");for(var r=[],n=!1,o=1;o<=t.length-1;++o){var a=t[o];if(n&&"object"==typeof a&&!Array.isArray(a)){n=!1;var s=null;if(a["font-scale"]&&!(s=e.parse(a["font-scale"],1,Ft)))return null;var l=null;if(a["text-font"]&&!(l=e.parse(a["text-font"],1,Gt(Bt))))return null;var u=null;if(a["text-color"]&&!(u=e.parse(a["text-color"],1,jt)))return null;var c=r[r.length-1];c.scale=s,c.font=l,c.textColor=u}else{var p=e.parse(t[o],1,Ut);if(!p)return null;var h=p.type.kind;if("string"!==h&&"value"!==h&&"null"!==h&&"resolvedImage"!==h)return e.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");n=!0,r.push({content:p,scale:null,font:null,textColor:null})}}return new he(r)},he.prototype.evaluate=function(t){return new ie(this.sections.map((function(e){var i=e.content.evaluate(t);return ae(i)===Zt?new ee("",i,null,null,null):new ee(se(i),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(","):null,e.textColor?e.textColor.evaluate(t):null)})))},he.prototype.eachChild=function(t){for(var e=0,i=this.sections;e-1),i},fe.prototype.eachChild=function(t){t(this.input)},fe.prototype.outputDefined=function(){return!1},fe.prototype.serialize=function(){return["image",this.input.serialize()]};var de={"to-boolean":Nt,"to-color":jt,"to-number":Ft,"to-string":Bt},me=function(t,e){this.type=t,this.args=e};me.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var i=t[0];if(("to-boolean"===i||"to-string"===i)&&2!==t.length)return e.error("Expected one argument.");for(var r=de[i],n=[],o=1;o4?"Invalid rbga value "+JSON.stringify(e)+": expected an array containing either three or four numeric values.":ne(e[0],e[1],e[2],e[3])))return new Qt(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new ue(i||"Could not parse color from value '"+("string"==typeof e?e:String(JSON.stringify(e)))+"'")}if("number"===this.type.kind){for(var a=null,s=0,l=this.args;s=e[2]||t[1]<=e[1]||t[3]>=e[3])}function we(t,e){var i=(180+t[0])/360,r=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t[1]*Math.PI/360)))/360,n=Math.pow(2,e.z);return[Math.round(i*n*8192),Math.round(r*n*8192)]}function Te(t,e,i){return e[1]>t[1]!=i[1]>t[1]&&t[0]<(i[0]-e[0])*(t[1]-e[1])/(i[1]-e[1])+e[0]}function Se(t,e){for(var i,r,n,o,a,s,l,u=!1,c=0,p=e.length;c0&&s<0||a<0&&s>0}function ke(t,e,i){for(var r=0,n=i;ri[2]){var n=.5*r,o=t[0]-i[0]>n?-r:i[0]-t[0]>n?r:0;0===o&&(o=t[0]-i[2]>n?-r:i[2]-t[0]>n?r:0),t[0]+=o}xe(e,t)}function De(t,e,i,r){for(var n=8192*Math.pow(2,r.z),o=[8192*r.x,8192*r.y],a=[],s=0,l=t;s=0)return!1;var i=!0;return t.eachChild((function(t){i&&!Be(t,e)&&(i=!1)})),i}Re.parse=function(t,e){if(2!==t.length)return e.error("'within' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(oe(t[1])){var i=t[1];if("FeatureCollection"===i.type)for(var r=0;re))throw new ue("Input is not a number.");o=a-1}return 0}je.prototype.parse=function(t,e,i,r,n){return void 0===n&&(n={}),e?this.concat(e,i,r)._parse(t,n):this._parse(t,n)},je.prototype._parse=function(t,e){function i(t,e,i){return"assert"===i?new pe(e,[t]):"coerce"===i?new me(e,[t]):t}if(null!==t&&"string"!=typeof t&&"boolean"!=typeof t&&"number"!=typeof t||(t=["literal",t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var r=t[0];if("string"!=typeof r)return this.error("Expression name must be a string, but found "+typeof r+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var n=this.registry[r];if(n){var o=n.parse(t,this);if(!o)return null;if(this.expectedType){var a=this.expectedType,s=o.type;if("string"!==a.kind&&"number"!==a.kind&&"boolean"!==a.kind&&"object"!==a.kind&&"array"!==a.kind||"value"!==s.kind)if("color"!==a.kind&&"formatted"!==a.kind&&"resolvedImage"!==a.kind||"value"!==s.kind&&"string"!==s.kind){if(this.checkSubtype(a,s))return null}else o=i(o,a,e.typeAnnotation||"coerce");else o=i(o,a,e.typeAnnotation||"assert")}if(!(o instanceof le)&&"resolvedImage"!==o.type.kind&&function t(e){if(e instanceof Ne)return t(e.boundExpression);if(e instanceof ge&&"error"===e.name)return!1;if(e instanceof _e)return!1;if(e instanceof Re)return!1;var i=e instanceof me||e instanceof pe,r=!0;return e.eachChild((function(e){r=i?r&&t(e):r&&e instanceof le})),!!r&&Le(e)&&Be(e,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(o)){var l=new ye;try{o=new le(o.type,o.evaluate(l))}catch(t){return this.error(t.message),null}}return o}return this.error('Unknown expression "'+r+'". If you wanted a literal array, use ["literal", [...]].',0)}return this.error(void 0===t?"'undefined' value invalid. Use null instead.":"object"==typeof t?'Bare objects invalid. Use ["literal", {...}] instead.':"Expected an array, but found "+typeof t+" instead.")},je.prototype.concat=function(t,e,i){var r="number"==typeof t?this.path.concat(t):this.path,n=i?this.scope.concat(i):this.scope;return new je(this.registry,r,e||null,n,this.errors)},je.prototype.error=function(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];var r=""+this.key+e.map((function(t){return"["+t+"]"})).join("");this.errors.push(new Ot(r,t))},je.prototype.checkSubtype=function(t,e){var i=Wt(t,e);return i&&this.error(i),i};var Ue=function(t,e,i){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var r=0,n=i;r=a)return e.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',l);var c=e.parse(s,u,n);if(!c)return null;n=n||c.type,r.push([a,c])}return new Ue(n,i,r)},Ue.prototype.evaluate=function(t){var e=this.labels,i=this.outputs;if(1===e.length)return i[0].evaluate(t);var r=this.input.evaluate(t);if(r<=e[0])return i[0].evaluate(t);var n=e.length;return r>=e[n-1]?i[n-1].evaluate(t):i[Ve(e,r)].evaluate(t)},Ue.prototype.eachChild=function(t){t(this.input);for(var e=0,i=this.outputs;e0&&t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};var $e=Object.freeze({__proto__:null,number:qe,color:function(t,e,i){return new Qt(qe(t.r,e.r,i),qe(t.g,e.g,i),qe(t.b,e.b,i),qe(t.a,e.a,i))},array:function(t,e,i){return t.map((function(t,r){return qe(t,e[r],i)}))}}),Ze=6/29*3*(6/29),Ge=Math.PI/180,Xe=180/Math.PI;function He(t){return t>.008856451679035631?Math.pow(t,1/3):t/Ze+4/29}function We(t){return t>6/29?t*t*t:Ze*(t-4/29)}function Ke(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Ye(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Je(t){var e=Ye(t.r),i=Ye(t.g),r=Ye(t.b),n=He((.4124564*e+.3575761*i+.1804375*r)/.95047),o=He((.2126729*e+.7151522*i+.072175*r)/1);return{l:116*o-16,a:500*(n-o),b:200*(o-He((.0193339*e+.119192*i+.9503041*r)/1.08883)),alpha:t.a}}function Qe(t){var e=(t.l+16)/116,i=isNaN(t.a)?e:e+t.a/500,r=isNaN(t.b)?e:e-t.b/200;return e=1*We(e),i=.95047*We(i),r=1.08883*We(r),new Qt(Ke(3.2404542*i-1.5371385*e-.4985314*r),Ke(-.969266*i+1.8760108*e+.041556*r),Ke(.0556434*i-.2040259*e+1.0572252*r),t.alpha)}function ti(t,e,i){var r=e-t;return t+i*(r>180||r<-180?r-360*Math.round(r/360):r)}var ei={forward:Je,reverse:Qe,interpolate:function(t,e,i){return{l:qe(t.l,e.l,i),a:qe(t.a,e.a,i),b:qe(t.b,e.b,i),alpha:qe(t.alpha,e.alpha,i)}}},ii={forward:function(t){var e=Je(t),i=e.l,r=e.a,n=e.b,o=Math.atan2(n,r)*Xe;return{h:o<0?o+360:o,c:Math.sqrt(r*r+n*n),l:i,alpha:t.a}},reverse:function(t){var e=t.h*Ge,i=t.c;return Qe({l:t.l,a:Math.cos(e)*i,b:Math.sin(e)*i,alpha:t.alpha})},interpolate:function(t,e,i){return{h:ti(t.h,e.h,i),c:qe(t.c,e.c,i),l:qe(t.l,e.l,i),alpha:qe(t.alpha,e.alpha,i)}}},ri=Object.freeze({__proto__:null,lab:ei,hcl:ii}),ni=function(t,e,i,r,n){this.type=t,this.operator=e,this.interpolation=i,this.input=r,this.labels=[],this.outputs=[];for(var o=0,a=n;o1})))return e.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);r={name:"cubic-bezier",controlPoints:s}}if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");if(!(n=e.parse(n,2,Ft)))return null;var l=[],u=null;"interpolate-hcl"===i||"interpolate-lab"===i?u=jt:e.expectedType&&"value"!==e.expectedType.kind&&(u=e.expectedType);for(var c=0;c=p)return e.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',f);var m=e.parse(h,d,u);if(!m)return null;u=u||m.type,l.push([p,m])}return"number"===u.kind||"color"===u.kind||"array"===u.kind&&"number"===u.itemType.kind&&"number"==typeof u.N?new ni(u,i,r,n,l):e.error("Type "+Xt(u)+" is not interpolatable.")},ni.prototype.evaluate=function(t){var e=this.labels,i=this.outputs;if(1===e.length)return i[0].evaluate(t);var r=this.input.evaluate(t);if(r<=e[0])return i[0].evaluate(t);var n=e.length;if(r>=e[n-1])return i[n-1].evaluate(t);var o=Ve(e,r),a=ni.interpolationFactor(this.interpolation,r,e[o],e[o+1]),s=i[o].evaluate(t),l=i[o+1].evaluate(t);return"interpolate"===this.operator?$e[this.type.kind.toLowerCase()](s,l,a):"interpolate-hcl"===this.operator?ii.reverse(ii.interpolate(ii.forward(s),ii.forward(l),a)):ei.reverse(ei.interpolate(ei.forward(s),ei.forward(l),a))},ni.prototype.eachChild=function(t){t(this.input);for(var e=0,i=this.outputs;e=i.length)throw new ue("Array index out of bounds: "+e+" > "+(i.length-1)+".");if(e!==Math.floor(e))throw new ue("Array index must be an integer, but found "+e+" instead.");return i[e]},li.prototype.eachChild=function(t){t(this.index),t(this.input)},li.prototype.outputDefined=function(){return!1},li.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var ui=function(t,e){this.type=Nt,this.needle=t,this.haystack=e};ui.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var i=e.parse(t[1],1,Ut),r=e.parse(t[2],2,Ut);return i&&r?Kt(i.type,[Nt,Bt,Ft,Lt,Ut])?new ui(i,r):e.error("Expected first argument to be of type boolean, string, number or null, but found "+Xt(i.type)+" instead"):null},ui.prototype.evaluate=function(t){var e=this.needle.evaluate(t),i=this.haystack.evaluate(t);if(!i)return!1;if(!Yt(e,["boolean","string","number","null"]))throw new ue("Expected first argument to be of type boolean, string, number or null, but found "+Xt(ae(e))+" instead.");if(!Yt(i,["string","array"]))throw new ue("Expected second argument to be of type array or string, but found "+Xt(ae(i))+" instead.");return i.indexOf(e)>=0},ui.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},ui.prototype.outputDefined=function(){return!0},ui.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var ci=function(t,e,i){this.type=Ft,this.needle=t,this.haystack=e,this.fromIndex=i};ci.parse=function(t,e){if(t.length<=2||t.length>=5)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var i=e.parse(t[1],1,Ut),r=e.parse(t[2],2,Ut);if(!i||!r)return null;if(!Kt(i.type,[Nt,Bt,Ft,Lt,Ut]))return e.error("Expected first argument to be of type boolean, string, number or null, but found "+Xt(i.type)+" instead");if(4===t.length){var n=e.parse(t[3],3,Ft);return n?new ci(i,r,n):null}return new ci(i,r)},ci.prototype.evaluate=function(t){var e=this.needle.evaluate(t),i=this.haystack.evaluate(t);if(!Yt(e,["boolean","string","number","null"]))throw new ue("Expected first argument to be of type boolean, string, number or null, but found "+Xt(ae(e))+" instead.");if(!Yt(i,["string","array"]))throw new ue("Expected second argument to be of type array or string, but found "+Xt(ae(i))+" instead.");if(this.fromIndex){var r=this.fromIndex.evaluate(t);return i.indexOf(e,r)}return i.indexOf(e)},ci.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)},ci.prototype.outputDefined=function(){return!1},ci.prototype.serialize=function(){if(null!=this.fromIndex&&void 0!==this.fromIndex){var t=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),t]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var pi=function(t,e,i,r,n,o){this.inputType=t,this.type=e,this.input=i,this.cases=r,this.outputs=n,this.otherwise=o};pi.parse=function(t,e){if(t.length<5)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if(t.length%2!=1)return e.error("Expected an even number of arguments.");var i,r;e.expectedType&&"value"!==e.expectedType.kind&&(r=e.expectedType);for(var n={},o=[],a=2;aNumber.MAX_SAFE_INTEGER)return u.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof h&&Math.floor(h)!==h)return u.error("Numeric branch labels must be integer values.");if(i){if(u.checkSubtype(i,ae(h)))return null}else i=ae(h);if(void 0!==n[String(h)])return u.error("Branch labels must be unique.");n[String(h)]=o.length}var f=e.parse(l,a,r);if(!f)return null;r=r||f.type,o.push(f)}var d=e.parse(t[1],1,Ut);if(!d)return null;var m=e.parse(t[t.length-1],t.length-1,r);return m?"value"!==d.type.kind&&e.concat(1).checkSubtype(i,d.type)?null:new pi(i,r,d,n,o,m):null},pi.prototype.evaluate=function(t){var e=this.input.evaluate(t);return(ae(e)===this.inputType&&this.outputs[this.cases[e]]||this.otherwise).evaluate(t)},pi.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},pi.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))&&this.otherwise.outputDefined()},pi.prototype.serialize=function(){for(var t=this,e=["match",this.input.serialize()],i=[],r={},n=0,o=Object.keys(this.cases).sort();n=5)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var i=e.parse(t[1],1,Ut),r=e.parse(t[2],2,Ft);if(!i||!r)return null;if(!Kt(i.type,[Gt(Ut),Bt,Ut]))return e.error("Expected first argument to be of type array or string, but found "+Xt(i.type)+" instead");if(4===t.length){var n=e.parse(t[3],3,Ft);return n?new fi(i.type,i,r,n):null}return new fi(i.type,i,r)},fi.prototype.evaluate=function(t){var e=this.input.evaluate(t),i=this.beginIndex.evaluate(t);if(!Yt(e,["string","array"]))throw new ue("Expected first argument to be of type array or string, but found "+Xt(ae(e))+" instead.");if(this.endIndex){var r=this.endIndex.evaluate(t);return e.slice(i,r)}return e.slice(i)},fi.prototype.eachChild=function(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)},fi.prototype.outputDefined=function(){return!1},fi.prototype.serialize=function(){if(null!=this.endIndex&&void 0!==this.endIndex){var t=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),t]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var yi=vi("==",(function(t,e,i){return e===i}),mi),gi=vi("!=",(function(t,e,i){return e!==i}),(function(t,e,i,r){return!mi(0,e,i,r)})),_i=vi("<",(function(t,e,i){return e",(function(t,e,i){return e>i}),(function(t,e,i,r){return r.compare(e,i)>0})),bi=vi("<=",(function(t,e,i){return e<=i}),(function(t,e,i,r){return r.compare(e,i)<=0})),wi=vi(">=",(function(t,e,i){return e>=i}),(function(t,e,i,r){return r.compare(e,i)>=0})),Ti=function(t,e,i,r,n){this.type=Bt,this.number=t,this.locale=e,this.currency=i,this.minFractionDigits=r,this.maxFractionDigits=n};Ti.parse=function(t,e){if(3!==t.length)return e.error("Expected two arguments.");var i=e.parse(t[1],1,Ft);if(!i)return null;var r=t[2];if("object"!=typeof r||Array.isArray(r))return e.error("NumberFormat options argument must be an object.");var n=null;if(r.locale&&!(n=e.parse(r.locale,1,Bt)))return null;var o=null;if(r.currency&&!(o=e.parse(r.currency,1,Bt)))return null;var a=null;if(r["min-fraction-digits"]&&!(a=e.parse(r["min-fraction-digits"],1,Ft)))return null;var s=null;return r["max-fraction-digits"]&&!(s=e.parse(r["max-fraction-digits"],1,Ft))?null:new Ti(i,n,o,a,s)},Ti.prototype.evaluate=function(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))},Ti.prototype.eachChild=function(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)},Ti.prototype.outputDefined=function(){return!1},Ti.prototype.serialize=function(){var t={};return this.locale&&(t.locale=this.locale.serialize()),this.currency&&(t.currency=this.currency.serialize()),this.minFractionDigits&&(t["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(t["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),t]};var Si=function(t){this.type=Ft,this.input=t};Si.parse=function(t,e){if(2!==t.length)return e.error("Expected 1 argument, but found "+(t.length-1)+" instead.");var 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 "+Xt(i.type)+" instead."):new Si(i):null},Si.prototype.evaluate=function(t){var e=this.input.evaluate(t);if("string"==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new ue("Expected value to be of type string or array, but found "+Xt(ae(e))+" instead.")},Si.prototype.eachChild=function(t){t(this.input)},Si.prototype.outputDefined=function(){return!1},Si.prototype.serialize=function(){var t=["length"];return this.eachChild((function(e){t.push(e.serialize())})),t};var Ei={"==":yi,"!=":gi,">":xi,"<":_i,">=":wi,"<=":bi,array:pe,at:li,boolean:pe,case:hi,coalesce:ai,collator:_e,format:he,image:fe,in:ui,"index-of":ci,interpolate:ni,"interpolate-hcl":ni,"interpolate-lab":ni,length:Si,let:si,literal:le,match:pi,number:pe,"number-format":Ti,object:pe,slice:fi,step:Ue,string:pe,"to-boolean":me,"to-color":me,"to-number":me,"to-string":me,var:Ne,within:Re};function Ci(t,e){var i=e[0],r=e[1],n=e[2],o=e[3];i=i.evaluate(t),r=r.evaluate(t),n=n.evaluate(t);var a=o?o.evaluate(t):1,s=ne(i,r,n,a);if(s)throw new ue(s);return new Qt(i/255*a,r/255*a,n/255*a,a)}function ki(t,e){return t in e}function Ai(t,e){var i=e[t];return void 0===i?null:i}function Pi(t){return{type:t}}function Ii(t){return{result:"success",value:t}}function Mi(t){return{result:"error",value:t}}function zi(t){return"data-driven"===t["property-type"]||"cross-faded-data-driven"===t["property-type"]}function Di(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function Oi(t){return!!t.expression&&t.expression.interpolated}function Ri(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":null===t?"null":typeof t}function Li(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)}function Fi(t){return t}function Bi(t,e,i){return void 0!==t?t:void 0!==e?e:void 0!==i?i:void 0}function Ni(t,e,i,r,n){return Bi(typeof i===n?r[i]:void 0,t.default,e.default)}function ji(t,e,i){if("number"!==Ri(i))return Bi(t.default,e.default);var 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];var n=Ve(t.stops.map((function(t){return t[0]})),i);return t.stops[n][1]}function Vi(t,e,i){var r=void 0!==t.base?t.base:1;if("number"!==Ri(i))return Bi(t.default,e.default);var 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];var o=Ve(t.stops.map((function(t){return t[0]})),i),a=function(t,e,i,r){var n=r-i,o=t-i;return 0===n?0:1===e?o/n:(Math.pow(e,o)-1)/(Math.pow(e,n)-1)}(i,r,t.stops[o][0],t.stops[o+1][0]),s=t.stops[o][1],l=t.stops[o+1][1],u=$e[e.type]||Fi;if(t.colorSpace&&"rgb"!==t.colorSpace){var c=ri[t.colorSpace];u=function(t,e){return c.reverse(c.interpolate(c.forward(t),c.forward(e),a))}}return"function"==typeof s.evaluate?{evaluate:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var i=s.evaluate.apply(void 0,t),r=l.evaluate.apply(void 0,t);if(void 0!==i&&void 0!==r)return u(i,r,a)}}:u(s,l,a)}function Ui(t,e,i){return"color"===e.type?i=Qt.parse(i):"formatted"===e.type?i=ie.fromString(i.toString()):"resolvedImage"===e.type?i=re.fromString(i.toString()):Ri(i)===e.type||"enum"===e.type&&e.values[i]||(i=void 0),Bi(i,t.default,e.default)}ge.register(Ei,{error:[{kind:"error"},[Bt],function(t,e){throw new ue(e[0].evaluate(t))}],typeof:[Bt,[Ut],function(t,e){return Xt(ae(e[0].evaluate(t)))}],"to-rgba":[Gt(Ft,4),[jt],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[jt,[Ft,Ft,Ft],Ci],rgba:[jt,[Ft,Ft,Ft,Ft],Ci],has:{type:Nt,overloads:[[[Bt],function(t,e){return ki(e[0].evaluate(t),t.properties())}],[[Bt,Vt],function(t,e){var i=e[1];return ki(e[0].evaluate(t),i.evaluate(t))}]]},get:{type:Ut,overloads:[[[Bt],function(t,e){return Ai(e[0].evaluate(t),t.properties())}],[[Bt,Vt],function(t,e){var i=e[1];return Ai(e[0].evaluate(t),i.evaluate(t))}]]},"feature-state":[Ut,[Bt],function(t,e){return Ai(e[0].evaluate(t),t.featureState||{})}],properties:[Vt,[],function(t){return t.properties()}],"geometry-type":[Bt,[],function(t){return t.geometryType()}],id:[Ut,[],function(t){return t.id()}],zoom:[Ft,[],function(t){return t.globals.zoom}],"heatmap-density":[Ft,[],function(t){return t.globals.heatmapDensity||0}],"line-progress":[Ft,[],function(t){return t.globals.lineProgress||0}],accumulated:[Ut,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],"+":[Ft,Pi(Ft),function(t,e){for(var i=0,r=0,n=e;r":[Nt,[Bt,Ut],function(t,e){var i=e[0],r=e[1],n=t.properties()[i.value],o=r.value;return typeof n==typeof o&&n>o}],"filter-id->":[Nt,[Ut],function(t,e){var i=e[0],r=t.id(),n=i.value;return typeof r==typeof n&&r>n}],"filter-<=":[Nt,[Bt,Ut],function(t,e){var i=e[0],r=e[1],n=t.properties()[i.value],o=r.value;return typeof n==typeof o&&n<=o}],"filter-id-<=":[Nt,[Ut],function(t,e){var i=e[0],r=t.id(),n=i.value;return typeof r==typeof n&&r<=n}],"filter->=":[Nt,[Bt,Ut],function(t,e){var i=e[0],r=e[1],n=t.properties()[i.value],o=r.value;return typeof n==typeof o&&n>=o}],"filter-id->=":[Nt,[Ut],function(t,e){var i=e[0],r=t.id(),n=i.value;return typeof r==typeof n&&r>=n}],"filter-has":[Nt,[Ut],function(t,e){return e[0].value in t.properties()}],"filter-has-id":[Nt,[],function(t){return null!==t.id()&&void 0!==t.id()}],"filter-type-in":[Nt,[Gt(Bt)],function(t,e){return e[0].value.indexOf(t.geometryType())>=0}],"filter-id-in":[Nt,[Gt(Ut)],function(t,e){return e[0].value.indexOf(t.id())>=0}],"filter-in-small":[Nt,[Bt,Gt(Ut)],function(t,e){var i=e[0];return e[1].value.indexOf(t.properties()[i.value])>=0}],"filter-in-large":[Nt,[Bt,Gt(Ut)],function(t,e){var i=e[0],r=e[1];return function(t,e,i,r){for(;i<=r;){var n=i+r>>1;if(e[n]===t)return!0;e[n]>t?r=n-1:i=n+1}return!1}(t.properties()[i.value],r.value,0,r.value.length-1)}],all:{type:Nt,overloads:[[[Nt,Nt],function(t,e){var i=e[1];return e[0].evaluate(t)&&i.evaluate(t)}],[Pi(Nt),function(t,e){for(var i=0,r=e;i0&&"string"==typeof t[0]&&t[0]in Ei}function Zi(t,e){var i=new je(Ei,[],e?function(t){var e={color:jt,string:Bt,number:Ft,enum:Bt,boolean:Nt,formatted:$t,resolvedImage:Zt};return"array"===t.type?Gt(e[t.value]||Ut,t.length):e[t.type]}(e):void 0),r=i.parse(t,void 0,void 0,void 0,e&&"string"===e.type?{typeAnnotation:"coerce"}:void 0);return r?Ii(new qi(r,e)):Mi(i.errors)}qi.prototype.evaluateWithoutErrorHandling=function(t,e,i,r,n,o){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=i,this._evaluator.canonical=r,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=o,this.expression.evaluate(this._evaluator)},qi.prototype.evaluate=function(t,e,i,r,n,o){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=i||null,this._evaluator.canonical=r,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=o||null;try{var a=this.expression.evaluate(this._evaluator);if(null==a||"number"==typeof a&&a!=a)return this._defaultValue;if(this._enumValues&&!(a in this._enumValues))throw new ue("Expected value to be one of "+Object.keys(this._enumValues).map((function(t){return JSON.stringify(t)})).join(", ")+", but found "+JSON.stringify(a)+" instead.");return a}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0),this._defaultValue}};var Gi=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent="constant"!==t&&!Fe(e.expression)};Gi.prototype.evaluateWithoutErrorHandling=function(t,e,i,r,n,o){return this._styleExpression.evaluateWithoutErrorHandling(t,e,i,r,n,o)},Gi.prototype.evaluate=function(t,e,i,r,n,o){return this._styleExpression.evaluate(t,e,i,r,n,o)};var Xi=function(t,e,i,r){this.kind=t,this.zoomStops=i,this._styleExpression=e,this.isStateDependent="camera"!==t&&!Fe(e.expression),this.interpolationType=r};function Hi(t,e){if("error"===(t=Zi(t,e)).result)return t;var i=t.value.expression,r=Le(i);if(!r&&!zi(e))return Mi([new Ot("","data expressions not supported")]);var n=Be(i,["zoom"]);if(!n&&!Di(e))return Mi([new Ot("","zoom expressions not supported")]);var o=function t(e){var i=null;if(e instanceof si)i=t(e.result);else if(e instanceof ai)for(var r=0,n=e.args;rr.maximum?[new Pt(e,i,i+" is greater than the maximum value "+r.maximum)]:[]}function Qi(t){var e,i,r,n=t.valueSpec,o=zt(t.value.type),a={},s="categorical"!==o&&void 0===t.value.property,l=!s,u="array"===Ri(t.value.stops)&&"array"===Ri(t.value.stops[0])&&"object"===Ri(t.value.stops[0][0]),c=Ki({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if("identity"===o)return[new Pt(t.key,t.value,'identity function may not have a "stops" property')];var e=[],i=t.value;return e=e.concat(Yi({key:t.key,value:i,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:p})),"array"===Ri(i)&&0===i.length&&e.push(new Pt(t.key,i,"array must have at least one stop")),e},default:function(t){return br({key:t.key,value:t.value,valueSpec:n,style:t.style,styleSpec:t.styleSpec})}}});return"identity"===o&&s&&c.push(new Pt(t.key,t.value,'missing required property "property"')),"identity"===o||t.value.stops||c.push(new Pt(t.key,t.value,'missing required property "stops"')),"exponential"===o&&t.valueSpec.expression&&!Oi(t.valueSpec)&&c.push(new Pt(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(l&&!zi(t.valueSpec)?c.push(new Pt(t.key,t.value,"property functions not supported")):s&&!Di(t.valueSpec)&&c.push(new Pt(t.key,t.value,"zoom functions not supported"))),"categorical"!==o&&!u||void 0!==t.value.property||c.push(new Pt(t.key,t.value,'"property" property is required')),c;function p(t){var e=[],o=t.value,s=t.key;if("array"!==Ri(o))return[new Pt(s,o,"array expected, "+Ri(o)+" found")];if(2!==o.length)return[new Pt(s,o,"array length 2 expected, length "+o.length+" found")];if(u){if("object"!==Ri(o[0]))return[new Pt(s,o,"object expected, "+Ri(o[0])+" found")];if(void 0===o[0].zoom)return[new Pt(s,o,"object stop key must have zoom")];if(void 0===o[0].value)return[new Pt(s,o,"object stop key must have value")];if(r&&r>zt(o[0].zoom))return[new Pt(s,o[0].zoom,"stop zoom values must appear in ascending order")];zt(o[0].zoom)!==r&&(r=zt(o[0].zoom),i=void 0,a={}),e=e.concat(Ki({key:s+"[0]",value:o[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:Ji,value:h}}))}else e=e.concat(h({key:s+"[0]",value:o[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},o));return $i(Dt(o[1]))?e.concat([new Pt(s+"[1]",o[1],"expressions are not allowed in function stops.")]):e.concat(br({key:s+"[1]",value:o[1],valueSpec:n,style:t.style,styleSpec:t.styleSpec}))}function h(t,r){var s=Ri(t.value),l=zt(t.value),u=null!==t.value?t.value:r;if(e){if(s!==e)return[new Pt(t.key,u,s+" stop domain type must match previous stop domain type "+e)]}else e=s;if("number"!==s&&"string"!==s&&"boolean"!==s)return[new Pt(t.key,u,"stop domain value must be a number, string, or boolean")];if("number"!==s&&"categorical"!==o){var c="number expected, "+s+" found";return zi(n)&&void 0===o&&(c+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Pt(t.key,u,c)]}return"categorical"!==o||"number"!==s||isFinite(l)&&Math.floor(l)===l?"categorical"!==o&&"number"===s&&void 0!==i&&l=2&&"$id"!==t[1]&&"$type"!==t[1];case"in":return t.length>=3&&("string"!=typeof t[1]||Array.isArray(t[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(var e=0,i=t.slice(1);ee?1:0}function ar(t){if(!t)return!0;var e,i=t[0];return t.length<=1?"any"!==i:"=="===i?sr(t[1],t[2],"=="):"!="===i?cr(sr(t[1],t[2],"==")):"<"===i||">"===i||"<="===i||">="===i?sr(t[1],t[2],i):"any"===i?(e=t.slice(1),["any"].concat(e.map(ar))):"all"===i?["all"].concat(t.slice(1).map(ar)):"none"===i?["all"].concat(t.slice(1).map(ar).map(cr)):"in"===i?lr(t[1],t.slice(2)):"!in"===i?cr(lr(t[1],t.slice(2))):"has"===i?ur(t[1]):"!has"===i?cr(ur(t[1])):"within"!==i||t}function sr(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 lr(t,e){if(0===e.length)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some((function(t){return typeof t!=typeof e[0]}))?["filter-in-large",t,["literal",e.sort(or)]]:["filter-in-small",t,["literal",e]]}}function ur(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function cr(t){return["!",t]}function pr(t){return ir(Dt(t.value))?tr(Mt({},t,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function t(e){var i=e.value,r=e.key;if("array"!==Ri(i))return[new Pt(r,i,"array expected, "+Ri(i)+" found")];var n,o=e.styleSpec,a=[];if(i.length<1)return[new Pt(r,i,"filter array must have at least 1 element")];switch(a=a.concat(er({key:r+"[0]",value:i[0],valueSpec:o.filter_operator,style:e.style,styleSpec:e.styleSpec})),zt(i[0])){case"<":case"<=":case">":case">=":i.length>=2&&"$type"===zt(i[1])&&a.push(new Pt(r,i,'"$type" cannot be use with operator "'+i[0]+'"'));case"==":case"!=":3!==i.length&&a.push(new Pt(r,i,'filter array for operator "'+i[0]+'" must have 3 elements'));case"in":case"!in":i.length>=2&&"string"!==(n=Ri(i[1]))&&a.push(new Pt(r+"[1]",i[1],"string expected, "+n+" found"));for(var s=2;s=c[f+0]&&r>=c[f+1])?(a[h]=!0,o.push(u[h])):a[h]=!1}}},zr.prototype._forEachCell=function(t,e,i,r,n,o,a,s){for(var l=this._convertToCellCoord(t),u=this._convertToCellCoord(e),c=this._convertToCellCoord(i),p=this._convertToCellCoord(r),h=l;h<=c;h++)for(var f=u;f<=p;f++){var d=this.d*f+h;if((!s||s(this._convertFromCellCoord(h),this._convertFromCellCoord(f),this._convertFromCellCoord(h+1),this._convertFromCellCoord(f+1)))&&n.call(this,t,e,i,r,d,o,a,s))return}},zr.prototype._convertFromCellCoord=function(t){return(t-this.padding)/this.scale},zr.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},zr.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=3+this.cells.length+1+1,i=0,r=0;r=0)){var c=t[u];l[u]=Rr[s].shallow.indexOf(u)>=0?c:jr(c,e)}t instanceof Error&&(l.message=t.message)}if(l.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==s&&(l.$name=s),l}throw new Error("can't serialize object of type "+typeof t)}function Vr(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||Br(t)||Nr(t)||ArrayBuffer.isView(t)||t instanceof Dr)return t;if(Array.isArray(t))return t.map(Vr);if("object"==typeof t){var e=t.$name||"Object",i=Rr[e].klass;if(!i)throw new Error("can't deserialize unregistered class "+e);if(i.deserialize)return i.deserialize(t);for(var r=Object.create(i.prototype),n=0,o=Object.keys(t);n=0?s:Vr(s)}}return r}throw new Error("can't deserialize object of type "+typeof t)}var Ur=function(){this.first=!0};Ur.prototype.update=function(t,e){var i=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=i,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=i,!0):(this.lastFloorZoom>i?(this.lastIntegerZoom=i+1,this.lastIntegerZoomTime=e):this.lastFloorZoom=128&&t<=255},Arabic:function(t){return t>=1536&&t<=1791},"Arabic Supplement":function(t){return t>=1872&&t<=1919},"Arabic Extended-A":function(t){return t>=2208&&t<=2303},"Hangul Jamo":function(t){return t>=4352&&t<=4607},"Unified Canadian Aboriginal Syllabics":function(t){return t>=5120&&t<=5759},Khmer:function(t){return t>=6016&&t<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(t){return t>=6320&&t<=6399},"General Punctuation":function(t){return t>=8192&&t<=8303},"Letterlike Symbols":function(t){return t>=8448&&t<=8527},"Number Forms":function(t){return t>=8528&&t<=8591},"Miscellaneous Technical":function(t){return t>=8960&&t<=9215},"Control Pictures":function(t){return t>=9216&&t<=9279},"Optical Character Recognition":function(t){return t>=9280&&t<=9311},"Enclosed Alphanumerics":function(t){return t>=9312&&t<=9471},"Geometric Shapes":function(t){return t>=9632&&t<=9727},"Miscellaneous Symbols":function(t){return t>=9728&&t<=9983},"Miscellaneous Symbols and Arrows":function(t){return t>=11008&&t<=11263},"CJK Radicals Supplement":function(t){return t>=11904&&t<=12031},"Kangxi Radicals":function(t){return t>=12032&&t<=12255},"Ideographic Description Characters":function(t){return t>=12272&&t<=12287},"CJK Symbols and Punctuation":function(t){return t>=12288&&t<=12351},Hiragana:function(t){return t>=12352&&t<=12447},Katakana:function(t){return t>=12448&&t<=12543},Bopomofo:function(t){return t>=12544&&t<=12591},"Hangul Compatibility Jamo":function(t){return t>=12592&&t<=12687},Kanbun:function(t){return t>=12688&&t<=12703},"Bopomofo Extended":function(t){return t>=12704&&t<=12735},"CJK Strokes":function(t){return t>=12736&&t<=12783},"Katakana Phonetic Extensions":function(t){return t>=12784&&t<=12799},"Enclosed CJK Letters and Months":function(t){return t>=12800&&t<=13055},"CJK Compatibility":function(t){return t>=13056&&t<=13311},"CJK Unified Ideographs Extension A":function(t){return t>=13312&&t<=19903},"Yijing Hexagram Symbols":function(t){return t>=19904&&t<=19967},"CJK Unified Ideographs":function(t){return t>=19968&&t<=40959},"Yi Syllables":function(t){return t>=40960&&t<=42127},"Yi Radicals":function(t){return t>=42128&&t<=42191},"Hangul Jamo Extended-A":function(t){return t>=43360&&t<=43391},"Hangul Syllables":function(t){return t>=44032&&t<=55215},"Hangul Jamo Extended-B":function(t){return t>=55216&&t<=55295},"Private Use Area":function(t){return t>=57344&&t<=63743},"CJK Compatibility Ideographs":function(t){return t>=63744&&t<=64255},"Arabic Presentation Forms-A":function(t){return t>=64336&&t<=65023},"Vertical Forms":function(t){return t>=65040&&t<=65055},"CJK Compatibility Forms":function(t){return t>=65072&&t<=65103},"Small Form Variants":function(t){return t>=65104&&t<=65135},"Arabic Presentation Forms-B":function(t){return t>=65136&&t<=65279},"Halfwidth and Fullwidth Forms":function(t){return t>=65280&&t<=65519}};function $r(t){for(var e=0,i=t;e=65097&&t<=65103)||qr["CJK Compatibility Ideographs"](t)||qr["CJK Compatibility"](t)||qr["CJK Radicals Supplement"](t)||qr["CJK Strokes"](t)||!(!qr["CJK Symbols and Punctuation"](t)||t>=12296&&t<=12305||t>=12308&&t<=12319||12336===t)||qr["CJK Unified Ideographs Extension A"](t)||qr["CJK Unified Ideographs"](t)||qr["Enclosed CJK Letters and Months"](t)||qr["Hangul Compatibility Jamo"](t)||qr["Hangul Jamo Extended-A"](t)||qr["Hangul Jamo Extended-B"](t)||qr["Hangul Jamo"](t)||qr["Hangul Syllables"](t)||qr.Hiragana(t)||qr["Ideographic Description Characters"](t)||qr.Kanbun(t)||qr["Kangxi Radicals"](t)||qr["Katakana Phonetic Extensions"](t)||qr.Katakana(t)&&12540!==t||!(!qr["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)||!(!qr["Small Form Variants"](t)||t>=65112&&t<=65118||t>=65123&&t<=65126)||qr["Unified Canadian Aboriginal Syllabics"](t)||qr["Unified Canadian Aboriginal Syllabics Extended"](t)||qr["Vertical Forms"](t)||qr["Yijing Hexagram Symbols"](t)||qr["Yi Syllables"](t)||qr["Yi Radicals"](t))))}function Gr(t){return!(Zr(t)||function(t){return!!(qr["Latin-1 Supplement"](t)&&(167===t||169===t||174===t||177===t||188===t||189===t||190===t||215===t||247===t)||qr["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)||qr["Letterlike Symbols"](t)||qr["Number Forms"](t)||qr["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)||qr["Control Pictures"](t)&&9251!==t||qr["Optical Character Recognition"](t)||qr["Enclosed Alphanumerics"](t)||qr["Geometric Shapes"](t)||qr["Miscellaneous Symbols"](t)&&!(t>=9754&&t<=9759)||qr["Miscellaneous Symbols and Arrows"](t)&&(t>=11026&&t<=11055||t>=11088&&t<=11097||t>=11192&&t<=11243)||qr["CJK Symbols and Punctuation"](t)||qr.Katakana(t)||qr["Private Use Area"](t)||qr["CJK Compatibility Forms"](t)||qr["Small Form Variants"](t)||qr["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 Xr(t){return t>=1424&&t<=2303||qr["Arabic Presentation Forms-A"](t)||qr["Arabic Presentation Forms-B"](t)}function Hr(t,e){return!(!e&&Xr(t)||t>=2304&&t<=3583||t>=3840&&t<=4255||qr.Khmer(t))}function Wr(t){for(var e=0,i=t;e-1&&(Yr="error"),Kr&&Kr(t)};function tn(){en.fire(new Et("pluginStateChange",{pluginStatus:Yr,pluginURL:Jr}))}var en=new kt,rn=function(){return Yr},nn=function(){if("deferred"!==Yr||!Jr)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Yr="loading",tn(),Jr&&xt({url:Jr},(function(t){t?Qr(t):(Yr="loaded",tn())}))},on={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return"loaded"===Yr||null!=on.applyArabicShaping},isLoading:function(){return"loading"===Yr},setState:function(t){Yr=t.pluginStatus,Jr=t.pluginURL},isParsed:function(){return null!=on.applyArabicShaping&&null!=on.processBidirectionalText&&null!=on.processStyledBidirectionalText},getPluginURL:function(){return Jr}},an=function(t,e){this.zoom=t,e?(this.now=e.now,this.fadeDuration=e.fadeDuration,this.zoomHistory=e.zoomHistory,this.transition=e.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Ur,this.transition={})};an.prototype.isSupportedScript=function(t){return function(t,e){for(var i=0,r=t;ithis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*i}:{fromScale:.5,toScale:1,t:1-(1-i)*e}};var sn=function(t,e){this.property=t,this.value=e,this.expression=function(t,e){if(Li(t))return new Wi(t,e);if($i(t)){var i=Hi(t,e);if("error"===i.result)throw new Error(i.value.map((function(t){return t.key+": "+t.message})).join(", "));return i.value}var r=t;return"string"==typeof t&&"color"===e.type&&(r=Qt.parse(t)),{kind:"constant",evaluate:function(){return r}}}(void 0===e?t.specification.default:e,t.specification)};sn.prototype.isDataDriven=function(){return"source"===this.expression.kind||"composite"===this.expression.kind},sn.prototype.possiblyEvaluate=function(t,e,i){return this.property.possiblyEvaluate(this,t,e,i)};var ln=function(t){this.property=t,this.value=new sn(t,void 0)};ln.prototype.transitioned=function(t,e){return new cn(this.property,this.value,e,h({},t.transition,this.transition),t.now)},ln.prototype.untransitioned=function(){return new cn(this.property,this.value,null,{},0)};var un=function(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)};un.prototype.getValue=function(t){return b(this._values[t].value.value)},un.prototype.setValue=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new ln(this._values[t].property)),this._values[t].value=new sn(this._values[t].property,null===e?void 0:b(e))},un.prototype.getTransition=function(t){return b(this._values[t].transition)},un.prototype.setTransition=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new ln(this._values[t].property)),this._values[t].transition=b(e)||void 0},un.prototype.serialize=function(){for(var t={},e=0,i=Object.keys(this._values);ethis.end)return this.prior=null,n;if(this.value.isDataDriven())return this.prior=null,n;if(r=1)return 1;var e=t*t,i=e*t;return 4*(t<.5?i:3*(t-e)+i-.75)}(a))}return n};var pn=function(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)};pn.prototype.possiblyEvaluate=function(t,e,i){for(var r=new dn(this._properties),n=0,o=Object.keys(this._values);nr.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:i,to:e}},e.prototype.interpolate=function(t){return t},e}(vn),gn=function(t){this.specification=t};gn.prototype.possiblyEvaluate=function(t,e,i,r){if(void 0!==t.value){if("constant"===t.expression.kind){var n=t.expression.evaluate(e,null,{},i,r);return this._calculate(n,n,n,e)}return this._calculate(t.expression.evaluate(new an(Math.floor(e.zoom-1),e)),t.expression.evaluate(new an(Math.floor(e.zoom),e)),t.expression.evaluate(new an(Math.floor(e.zoom+1),e)),e)}},gn.prototype._calculate=function(t,e,i,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:i,to:e}},gn.prototype.interpolate=function(t){return t};var _n=function(t){this.specification=t};_n.prototype.possiblyEvaluate=function(t,e,i,r){return!!t.expression.evaluate(e,null,{},i,r)},_n.prototype.interpolate=function(){return!1};var xn=function(t){for(var e in this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],t){var i=t[e];i.specification.overridable&&this.overridableProperties.push(e);var r=this.defaultPropertyValues[e]=new sn(i,void 0),n=this.defaultTransitionablePropertyValues[e]=new ln(i);this.defaultTransitioningPropertyValues[e]=n.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=r.possiblyEvaluate({})}};Lr("DataDrivenProperty",vn),Lr("DataConstantProperty",mn),Lr("CrossFadedDataDrivenProperty",yn),Lr("CrossFadedProperty",gn),Lr("ColorRampProperty",_n);var bn=function(t){function e(e,i){if(t.call(this),this.id=e.id,this.type=e.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},"custom"!==e.type&&(this.metadata=(e=e).metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,"background"!==e.type&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter),i.layout&&(this._unevaluatedLayout=new hn(i.layout)),i.paint)){for(var r in this._transitionablePaint=new un(i.paint),e.paint)this.setPaintProperty(r,e.paint[r],{validate:!1});for(var n in e.layout)this.setLayoutProperty(n,e.layout[n],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new dn(i.paint)}}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},e.prototype.getLayoutProperty=function(t){return"visibility"===t?this.visibility:this._unevaluatedLayout.getValue(t)},e.prototype.setLayoutProperty=function(t,e,i){void 0===i&&(i={}),null!=e&&this._validate(Pr,"layers."+this.id+".layout."+t,t,e,i)||("visibility"!==t?this._unevaluatedLayout.setValue(t,e):this.visibility=e)},e.prototype.getPaintProperty=function(t){return g(t,"-transition")?this._transitionablePaint.getTransition(t.slice(0,-"-transition".length)):this._transitionablePaint.getValue(t)},e.prototype.setPaintProperty=function(t,e,i){if(void 0===i&&(i={}),null!=e&&this._validate(Ar,"layers."+this.id+".paint."+t,t,e,i))return!1;if(g(t,"-transition"))return this._transitionablePaint.setTransition(t.slice(0,-"-transition".length),e||void 0),!1;var r=this._transitionablePaint._values[t],n="cross-faded-data-driven"===r.property.specification["property-type"],o=r.value.isDataDriven(),a=r.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);var s=this._transitionablePaint._values[t].value;return s.isDataDriven()||o||n||this._handleOverridablePaintPropertyUpdate(t,a,s)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){},e.prototype._handleOverridablePaintPropertyUpdate=function(t,e,i){return!1},e.prototype.isHidden=function(t){return!!(this.minzoom&&t=this.maxzoom)||"none"===this.visibility},e.prototype.updateTransitions=function(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)},e.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},e.prototype.recalculate=function(t,e){t.getCrossfadeParameters&&(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,e)},e.prototype.serialize=function(){var t={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(t.layout=t.layout||{},t.layout.visibility=this.visibility),x(t,(function(t,e){return!(void 0===t||"layout"===e&&!Object.keys(t).length||"paint"===e&&!Object.keys(t).length)}))},e.prototype._validate=function(t,e,i,r,n){return void 0===n&&(n={}),(!n||!1!==n.validate)&&Ir(this,t.call(Cr,{key:e,layerType:this.type,objectKey:i,value:r,styleSpec:At,style:{glyphs:!0,sprite:!0}}))},e.prototype.is3D=function(){return!1},e.prototype.isTileClipped=function(){return!1},e.prototype.hasOffscreenPass=function(){return!1},e.prototype.resize=function(){},e.prototype.isStateDependent=function(){for(var t in this.paint._values){var e=this.paint.get(t);if(e instanceof fn&&zi(e.property.specification)&&("source"===e.value.kind||"composite"===e.value.kind)&&e.value.isStateDependent)return!0}return!1},e}(kt),wn={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Tn=function(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Sn=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function En(t,e){void 0===e&&(e=1);var i=0,r=0;return{members:t.map((function(t){var n=wn[t.type].BYTES_PER_ELEMENT,o=i=Cn(i,Math.max(e,n)),a=t.components||1;return r=Math.max(r,n),i+=n*a,{name:t.name,type:t.type,components:a,offset:o}})),size:Cn(i,Math.max(r,e)),alignment:e}}function Cn(t,e){return Math.ceil(t/e)*e}Sn.serialize=function(t,e){return t._trim(),e&&(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}},Sn.deserialize=function(t){var e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e},Sn.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Sn.prototype.clear=function(){this.length=0},Sn.prototype.resize=function(t){this.reserve(t),this.length=t},Sn.prototype.reserve=function(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var e=this.uint8;this._refreshViews(),e&&this.uint8.set(e)}},Sn.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var kn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var i=this.length;return this.resize(i+1),this.emplace(i,t,e)},e.prototype.emplace=function(t,e,i){var r=2*t;return this.int16[r+0]=e,this.int16[r+1]=i,t},e}(Sn);kn.prototype.bytesPerElement=4,Lr("StructArrayLayout2i4",kn);var An=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,i,r)},e.prototype.emplace=function(t,e,i,r,n){var o=4*t;return this.int16[o+0]=e,this.int16[o+1]=i,this.int16[o+2]=r,this.int16[o+3]=n,t},e}(Sn);An.prototype.bytesPerElement=8,Lr("StructArrayLayout4i8",An);var Pn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,r,n,o){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,i,r,n,o)},e.prototype.emplace=function(t,e,i,r,n,o,a){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=i,this.int16[s+2]=r,this.int16[s+3]=n,this.int16[s+4]=o,this.int16[s+5]=a,t},e}(Sn);Pn.prototype.bytesPerElement=12,Lr("StructArrayLayout2i4i12",Pn);var In=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,r,n,o){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,i,r,n,o)},e.prototype.emplace=function(t,e,i,r,n,o,a){var s=4*t,l=8*t;return this.int16[s+0]=e,this.int16[s+1]=i,this.uint8[l+4]=r,this.uint8[l+5]=n,this.uint8[l+6]=o,this.uint8[l+7]=a,t},e}(Sn);In.prototype.bytesPerElement=8,Lr("StructArrayLayout2i4ub8",In);var Mn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var i=this.length;return this.resize(i+1),this.emplace(i,t,e)},e.prototype.emplace=function(t,e,i){var r=2*t;return this.float32[r+0]=e,this.float32[r+1]=i,t},e}(Sn);Mn.prototype.bytesPerElement=8,Lr("StructArrayLayout2f8",Mn);var zn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,r,n,o,a,s,l,u){var c=this.length;return this.resize(c+1),this.emplace(c,t,e,i,r,n,o,a,s,l,u)},e.prototype.emplace=function(t,e,i,r,n,o,a,s,l,u,c){var p=10*t;return this.uint16[p+0]=e,this.uint16[p+1]=i,this.uint16[p+2]=r,this.uint16[p+3]=n,this.uint16[p+4]=o,this.uint16[p+5]=a,this.uint16[p+6]=s,this.uint16[p+7]=l,this.uint16[p+8]=u,this.uint16[p+9]=c,t},e}(Sn);zn.prototype.bytesPerElement=20,Lr("StructArrayLayout10ui20",zn);var Dn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,r,n,o,a,s,l,u,c,p){var h=this.length;return this.resize(h+1),this.emplace(h,t,e,i,r,n,o,a,s,l,u,c,p)},e.prototype.emplace=function(t,e,i,r,n,o,a,s,l,u,c,p,h){var f=12*t;return this.int16[f+0]=e,this.int16[f+1]=i,this.int16[f+2]=r,this.int16[f+3]=n,this.uint16[f+4]=o,this.uint16[f+5]=a,this.uint16[f+6]=s,this.uint16[f+7]=l,this.int16[f+8]=u,this.int16[f+9]=c,this.int16[f+10]=p,this.int16[f+11]=h,t},e}(Sn);Dn.prototype.bytesPerElement=24,Lr("StructArrayLayout4i4ui4i24",Dn);var On=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i){var r=this.length;return this.resize(r+1),this.emplace(r,t,e,i)},e.prototype.emplace=function(t,e,i,r){var n=3*t;return this.float32[n+0]=e,this.float32[n+1]=i,this.float32[n+2]=r,t},e}(Sn);On.prototype.bytesPerElement=12,Lr("StructArrayLayout3f12",On);var Rn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.uint32[1*t+0]=e,t},e}(Sn);Rn.prototype.bytesPerElement=4,Lr("StructArrayLayout1ul4",Rn);var Ln=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,r,n,o,a,s,l){var u=this.length;return this.resize(u+1),this.emplace(u,t,e,i,r,n,o,a,s,l)},e.prototype.emplace=function(t,e,i,r,n,o,a,s,l,u){var c=10*t,p=5*t;return this.int16[c+0]=e,this.int16[c+1]=i,this.int16[c+2]=r,this.int16[c+3]=n,this.int16[c+4]=o,this.int16[c+5]=a,this.uint32[p+3]=s,this.uint16[c+8]=l,this.uint16[c+9]=u,t},e}(Sn);Ln.prototype.bytesPerElement=20,Lr("StructArrayLayout6i1ul2ui20",Ln);var Fn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,r,n,o){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,i,r,n,o)},e.prototype.emplace=function(t,e,i,r,n,o,a){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=i,this.int16[s+2]=r,this.int16[s+3]=n,this.int16[s+4]=o,this.int16[s+5]=a,t},e}(Sn);Fn.prototype.bytesPerElement=12,Lr("StructArrayLayout2i2i2i12",Fn);var Bn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,r,n){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,i,r,n)},e.prototype.emplace=function(t,e,i,r,n,o){var a=4*t,s=8*t;return this.float32[a+0]=e,this.float32[a+1]=i,this.float32[a+2]=r,this.int16[s+6]=n,this.int16[s+7]=o,t},e}(Sn);Bn.prototype.bytesPerElement=16,Lr("StructArrayLayout2f1f2i16",Bn);var Nn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,i,r)},e.prototype.emplace=function(t,e,i,r,n){var o=12*t,a=3*t;return this.uint8[o+0]=e,this.uint8[o+1]=i,this.float32[a+1]=r,this.float32[a+2]=n,t},e}(Sn);Nn.prototype.bytesPerElement=12,Lr("StructArrayLayout2ub2f12",Nn);var jn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i){var r=this.length;return this.resize(r+1),this.emplace(r,t,e,i)},e.prototype.emplace=function(t,e,i,r){var n=3*t;return this.uint16[n+0]=e,this.uint16[n+1]=i,this.uint16[n+2]=r,t},e}(Sn);jn.prototype.bytesPerElement=6,Lr("StructArrayLayout3ui6",jn);var Vn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,r,n,o,a,s,l,u,c,p,h,f,d,m,v){var y=this.length;return this.resize(y+1),this.emplace(y,t,e,i,r,n,o,a,s,l,u,c,p,h,f,d,m,v)},e.prototype.emplace=function(t,e,i,r,n,o,a,s,l,u,c,p,h,f,d,m,v,y){var g=24*t,_=12*t,x=48*t;return this.int16[g+0]=e,this.int16[g+1]=i,this.uint16[g+2]=r,this.uint16[g+3]=n,this.uint32[_+2]=o,this.uint32[_+3]=a,this.uint32[_+4]=s,this.uint16[g+10]=l,this.uint16[g+11]=u,this.uint16[g+12]=c,this.float32[_+7]=p,this.float32[_+8]=h,this.uint8[x+36]=f,this.uint8[x+37]=d,this.uint8[x+38]=m,this.uint32[_+10]=v,this.int16[g+22]=y,t},e}(Sn);Vn.prototype.bytesPerElement=48,Lr("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Vn);var Un=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,r,n,o,a,s,l,u,c,p,h,f,d,m,v,y,g,_,x,b,w,T,S,E,C,k){var A=this.length;return this.resize(A+1),this.emplace(A,t,e,i,r,n,o,a,s,l,u,c,p,h,f,d,m,v,y,g,_,x,b,w,T,S,E,C,k)},e.prototype.emplace=function(t,e,i,r,n,o,a,s,l,u,c,p,h,f,d,m,v,y,g,_,x,b,w,T,S,E,C,k,A){var P=34*t,I=17*t;return this.int16[P+0]=e,this.int16[P+1]=i,this.int16[P+2]=r,this.int16[P+3]=n,this.int16[P+4]=o,this.int16[P+5]=a,this.int16[P+6]=s,this.int16[P+7]=l,this.uint16[P+8]=u,this.uint16[P+9]=c,this.uint16[P+10]=p,this.uint16[P+11]=h,this.uint16[P+12]=f,this.uint16[P+13]=d,this.uint16[P+14]=m,this.uint16[P+15]=v,this.uint16[P+16]=y,this.uint16[P+17]=g,this.uint16[P+18]=_,this.uint16[P+19]=x,this.uint16[P+20]=b,this.uint16[P+21]=w,this.uint16[P+22]=T,this.uint32[I+12]=S,this.float32[I+13]=E,this.float32[I+14]=C,this.float32[I+15]=k,this.float32[I+16]=A,t},e}(Sn);Un.prototype.bytesPerElement=68,Lr("StructArrayLayout8i15ui1ul4f68",Un);var qn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.float32[1*t+0]=e,t},e}(Sn);qn.prototype.bytesPerElement=4,Lr("StructArrayLayout1f4",qn);var $n=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i){var r=this.length;return this.resize(r+1),this.emplace(r,t,e,i)},e.prototype.emplace=function(t,e,i,r){var n=3*t;return this.int16[n+0]=e,this.int16[n+1]=i,this.int16[n+2]=r,t},e}(Sn);$n.prototype.bytesPerElement=6,Lr("StructArrayLayout3i6",$n);var Zn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i){var r=this.length;return this.resize(r+1),this.emplace(r,t,e,i)},e.prototype.emplace=function(t,e,i,r){var n=4*t;return this.uint32[2*t+0]=e,this.uint16[n+2]=i,this.uint16[n+3]=r,t},e}(Sn);Zn.prototype.bytesPerElement=8,Lr("StructArrayLayout1ul2ui8",Zn);var Gn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var i=this.length;return this.resize(i+1),this.emplace(i,t,e)},e.prototype.emplace=function(t,e,i){var r=2*t;return this.uint16[r+0]=e,this.uint16[r+1]=i,t},e}(Sn);Gn.prototype.bytesPerElement=4,Lr("StructArrayLayout2ui4",Gn);var Xn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.uint16[1*t+0]=e,t},e}(Sn);Xn.prototype.bytesPerElement=2,Lr("StructArrayLayout1ui2",Xn);var Hn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,i,r)},e.prototype.emplace=function(t,e,i,r,n){var o=4*t;return this.float32[o+0]=e,this.float32[o+1]=i,this.float32[o+2]=r,this.float32[o+3]=n,t},e}(Sn);Hn.prototype.bytesPerElement=16,Lr("StructArrayLayout4f16",Hn);var Wn=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var i={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return i.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},i.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},i.x1.get=function(){return this._structArray.int16[this._pos2+2]},i.y1.get=function(){return this._structArray.int16[this._pos2+3]},i.x2.get=function(){return this._structArray.int16[this._pos2+4]},i.y2.get=function(){return this._structArray.int16[this._pos2+5]},i.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},i.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},i.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},i.anchorPoint.get=function(){return new n(this.anchorPointX,this.anchorPointY)},Object.defineProperties(e.prototype,i),e}(Tn);Wn.prototype.size=20;var Kn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.get=function(t){return new Wn(this,t)},e}(Ln);Lr("CollisionBoxArray",Kn);var Yn=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var i={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return i.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},i.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},i.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},i.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},i.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},i.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},i.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},i.segment.get=function(){return this._structArray.uint16[this._pos2+10]},i.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},i.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},i.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},i.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},i.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},i.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},i.placedOrientation.set=function(t){this._structArray.uint8[this._pos1+37]=t},i.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},i.hidden.set=function(t){this._structArray.uint8[this._pos1+38]=t},i.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},i.crossTileID.set=function(t){this._structArray.uint32[this._pos4+10]=t},i.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(e.prototype,i),e}(Tn);Yn.prototype.size=48;var Jn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.get=function(t){return new Yn(this,t)},e}(Vn);Lr("PlacedSymbolArray",Jn);var Qn=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var i={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return i.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},i.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},i.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},i.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},i.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},i.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},i.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},i.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},i.key.get=function(){return this._structArray.uint16[this._pos2+8]},i.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},i.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},i.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},i.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},i.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},i.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},i.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},i.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},i.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},i.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},i.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},i.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},i.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},i.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},i.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},i.crossTileID.set=function(t){this._structArray.uint32[this._pos4+12]=t},i.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},i.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},i.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},i.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(e.prototype,i),e}(Tn);Qn.prototype.size=68;var to=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.get=function(t){return new Qn(this,t)},e}(Un);Lr("SymbolInstanceArray",to);var eo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getoffsetX=function(t){return this.float32[1*t+0]},e}(qn);Lr("GlyphOffsetArray",eo);var io=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getx=function(t){return this.int16[3*t+0]},e.prototype.gety=function(t){return this.int16[3*t+1]},e.prototype.gettileUnitDistanceFromAnchor=function(t){return this.int16[3*t+2]},e}($n);Lr("SymbolLineVertexArray",io);var ro=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var i={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return i.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},i.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},i.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(e.prototype,i),e}(Tn);ro.prototype.size=8;var no=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.get=function(t){return new ro(this,t)},e}(Zn);Lr("FeatureIndexArray",no);var oo=En([{name:"a_pos",components:2,type:"Int16"}],4).members,ao=function(t){void 0===t&&(t=[]),this.segments=t};function so(t,e){return 256*(t=c(Math.floor(t),0,255))+c(Math.floor(e),0,255)}ao.prototype.prepareSegment=function(t,e,i,r){var n=this.segments[this.segments.length-1];return t>ao.MAX_VERTEX_ARRAY_LENGTH&&T("Max vertices per segment is "+ao.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+t),(!n||n.vertexLength+t>ao.MAX_VERTEX_ARRAY_LENGTH||n.sortKey!==r)&&(n={vertexOffset:e.length,primitiveOffset:i.length,vertexLength:0,primitiveLength:0},void 0!==r&&(n.sortKey=r),this.segments.push(n)),n},ao.prototype.get=function(){return this.segments},ao.prototype.destroy=function(){for(var t=0,e=this.segments;t>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295)<<13|n>>>19))+((5*(n>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(l=0,i){case 3:l^=(255&t.charCodeAt(u+2))<<16;case 2:l^=(255&t.charCodeAt(u+1))<<8;case 1:n^=l=(65535&(l=(l=(65535&(l^=255&t.charCodeAt(u)))*a+(((l>>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295}return n^=t.length,n=2246822507*(65535&(n^=n>>>16))+((2246822507*(n>>>16)&65535)<<16)&4294967295,n=3266489909*(65535&(n^=n>>>13))+((3266489909*(n>>>16)&65535)<<16)&4294967295,(n^=n>>>16)>>>0}})),co=e((function(t){t.exports=function(t,e){for(var i,r=t.length,n=e^r,o=0;r>=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),n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16)^(i=1540483477*(65535&(i^=i>>>24))+((1540483477*(i>>>16)&65535)<<16)),r-=4,++o;switch(r){case 3:n^=(255&t.charCodeAt(o+2))<<16;case 2:n^=(255&t.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(o)))+((1540483477*(n>>>16)&65535)<<16)}return n=1540483477*(65535&(n^=n>>>13))+((1540483477*(n>>>16)&65535)<<16),(n^=n>>>15)>>>0}})),po=uo,ho=co;po.murmur3=uo,po.murmur2=ho;var fo=function(){this.ids=[],this.positions=[],this.indexed=!1};fo.prototype.add=function(t,e,i,r){this.ids.push(vo(t)),this.positions.push(e,i,r)},fo.prototype.getPositions=function(t){for(var e=vo(t),i=0,r=this.ids.length-1;i>1;this.ids[n]>=e?r=n:i=n+1}for(var o=[];this.ids[i]===e;)o.push({index:this.positions[3*i],start:this.positions[3*i+1],end:this.positions[3*i+2]}),i++;return o},fo.serialize=function(t,e){var i=new Float64Array(t.ids),r=new Uint32Array(t.positions);return function t(e,i,r,n){for(;r>1],a=r-1,s=n+1;;){do{a++}while(e[a]o);if(a>=s)break;yo(e,a,s),yo(i,3*a,3*s),yo(i,3*a+1,3*s+1),yo(i,3*a+2,3*s+2)}s-ra.x+1||la.y+1)&&T("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return i}function jo(t,e,i,r,n){t.emplaceBack(2*e+(r+1)/2,2*i+(n+1)/2)}var Vo=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new kn,this.indexArray=new jn,this.segments=new ao,this.programConfigurations=new Oo(t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function Uo(t,e){for(var i=0;i1){if(Go(t,e))return!0;for(var r=0;r1?i:i.sub(e)._mult(n)._add(e))}function Ko(t,e){for(var i,r,n,o=!1,a=0;ae.y!=(n=i[l]).y>e.y&&e.x<(n.x-r.x)*(e.y-r.y)/(n.y-r.y)+r.x&&(o=!o);return o}function Yo(t,e){for(var i=!1,r=0,n=t.length-1;re.y!=a.y>e.y&&e.x<(a.x-o.x)*(e.y-o.y)/(a.y-o.y)+o.x&&(i=!i)}return i}function Jo(t,e,i){var r=i[0],n=i[2];if(t.xn.x&&e.x>n.x||t.yn.y&&e.y>n.y)return!1;var o=S(t,e,i[0]);return o!==S(t,e,i[1])||o!==S(t,e,i[2])||o!==S(t,e,i[3])}function Qo(t,e,i){var r=e.paint.get(t).value;return"constant"===r.kind?r.value:i.programConfigurations.get(e.id).getMaxValue(t)}function ta(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function ea(t,e,i,r,o){if(!e[0]&&!e[1])return t;var a=n.convert(e)._mult(o);"viewport"===i&&a._rotate(-r);for(var s=[],l=0;l=8192||c<0||c>=8192)){var p=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,t.sortKey),h=p.vertexLength;jo(this.layoutVertexArray,u,c,-1,-1),jo(this.layoutVertexArray,u,c,1,-1),jo(this.layoutVertexArray,u,c,1,1),jo(this.layoutVertexArray,u,c,-1,1),this.indexArray.emplaceBack(h,h+1,h+2),this.indexArray.emplaceBack(h,h+3,h+2),p.vertexLength+=4,p.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,i,{},r)},Lr("CircleBucket",Vo,{omit:["layers"]});var ia=new xn({"circle-sort-key":new vn(At.layout_circle["circle-sort-key"])}),ra={paint:new xn({"circle-radius":new vn(At.paint_circle["circle-radius"]),"circle-color":new vn(At.paint_circle["circle-color"]),"circle-blur":new vn(At.paint_circle["circle-blur"]),"circle-opacity":new vn(At.paint_circle["circle-opacity"]),"circle-translate":new mn(At.paint_circle["circle-translate"]),"circle-translate-anchor":new mn(At.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new mn(At.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new mn(At.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new vn(At.paint_circle["circle-stroke-width"]),"circle-stroke-color":new vn(At.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new vn(At.paint_circle["circle-stroke-opacity"])}),layout:ia},na="undefined"!=typeof Float32Array?Float32Array:Array;function oa(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 aa(t,e,i){var r=e[0],n=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],p=e[8],h=e[9],f=e[10],d=e[11],m=e[12],v=e[13],y=e[14],g=e[15],_=i[0],x=i[1],b=i[2],w=i[3];return t[0]=_*r+x*s+b*p+w*m,t[1]=_*n+x*l+b*h+w*v,t[2]=_*o+x*u+b*f+w*y,t[3]=_*a+x*c+b*d+w*g,t[4]=(_=i[4])*r+(x=i[5])*s+(b=i[6])*p+(w=i[7])*m,t[5]=_*n+x*l+b*h+w*v,t[6]=_*o+x*u+b*f+w*y,t[7]=_*a+x*c+b*d+w*g,t[8]=(_=i[8])*r+(x=i[9])*s+(b=i[10])*p+(w=i[11])*m,t[9]=_*n+x*l+b*h+w*v,t[10]=_*o+x*u+b*f+w*y,t[11]=_*a+x*c+b*d+w*g,t[12]=(_=i[12])*r+(x=i[13])*s+(b=i[14])*p+(w=i[15])*m,t[13]=_*n+x*l+b*h+w*v,t[14]=_*o+x*u+b*f+w*y,t[15]=_*a+x*c+b*d+w*g,t}Math.hypot||(Math.hypot=function(){for(var t=arguments,e=0,i=arguments.length;i--;)e+=t[i]*t[i];return Math.sqrt(e)});var sa,la=aa;function ua(t,e,i){var r=e[0],n=e[1],o=e[2],a=e[3];return t[0]=i[0]*r+i[4]*n+i[8]*o+i[12]*a,t[1]=i[1]*r+i[5]*n+i[9]*o+i[13]*a,t[2]=i[2]*r+i[6]*n+i[10]*o+i[14]*a,t[3]=i[3]*r+i[7]*n+i[11]*o+i[15]*a,t}sa=new na(3),na!=Float32Array&&(sa[0]=0,sa[1]=0,sa[2]=0),function(){var t=new na(4);na!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0)}();var ca=(function(){var t=new na(2);na!=Float32Array&&(t[0]=0,t[1]=0)}(),function(t){function e(e){t.call(this,e,ra)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createBucket=function(t){return new Vo(t)},e.prototype.queryRadius=function(t){var e=t;return Qo("circle-radius",this,e)+Qo("circle-stroke-width",this,e)+ta(this.paint.get("circle-translate"))},e.prototype.queryIntersectsFeature=function(t,e,i,r,n,o,a,s){for(var l=ea(t,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),o.angle,a),u=this.paint.get("circle-radius").evaluate(e,i)+this.paint.get("circle-stroke-width").evaluate(e,i),c="map"===this.paint.get("circle-pitch-alignment"),p=c?l:function(t,e){return t.map((function(t){return pa(t,e)}))}(l,s),h=c?u*a:u,f=0,d=r;ft.width||n.height>t.height||i.x>t.width-n.width||i.y>t.height-n.height)throw new RangeError("out of range source coordinates for image copy");if(n.width>e.width||n.height>e.height||r.x>e.width-n.width||r.y>e.height-n.height)throw new RangeError("out of range destination coordinates for image copy");for(var a=t.data,s=e.data,l=0;l80*i){r=o=t[0],n=a=t[1];for(var d=i;do&&(o=s),l>a&&(a=l);u=0!==(u=Math.max(o-r,a-n))?1/u:0}return Pa(h,f,i,r,n,u),f}function ka(t,e,i,r,n){var o,a;if(n===Ya(t,e,i,r)>0)for(o=e;o=e;o-=r)a=Ha(o,t[o],t[o+1],a);return a&&Ua(a,a.next)&&(Wa(a),a=a.next),a}function Aa(t,e){if(!t)return t;e||(e=t);var i,r=t;do{if(i=!1,r.steiner||!Ua(r,r.next)&&0!==Va(r.prev,r,r.next))r=r.next;else{if(Wa(r),(r=e=r.prev)===r.next)break;i=!0}}while(i||r!==e);return e}function Pa(t,e,i,r,n,o,a){if(t){!a&&o&&function(t,e,i,r){var n=t;do{null===n.z&&(n.z=Fa(n.x,n.y,e,i,r)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next}while(n!==t);n.prevZ.nextZ=null,n.prevZ=null,function(t){var e,i,r,n,o,a,s,l,u=1;do{for(i=t,t=null,o=null,a=0;i;){for(a++,r=i,s=0,e=0;e0||l>0&&r;)0!==s&&(0===l||!r||i.z<=r.z)?(n=i,i=i.nextZ,s--):(n=r,r=r.nextZ,l--),o?o.nextZ=n:t=n,n.prevZ=o,o=n;i=r}o.nextZ=null,u*=2}while(a>1)}(n)}(t,r,n,o);for(var s,l,u=t;t.prev!==t.next;)if(s=t.prev,l=t.next,o?Ma(t,r,n,o):Ia(t))e.push(s.i/i),e.push(t.i/i),e.push(l.i/i),Wa(t),t=l.next,u=l.next;else if((t=l)===u){a?1===a?Pa(t=za(Aa(t),e,i),e,i,r,n,o,2):2===a&&Da(t,e,i,r,n,o):Pa(Aa(t),e,i,r,n,o,1);break}}}function Ia(t){var e=t.prev,i=t,r=t.next;if(Va(e,i,r)>=0)return!1;for(var n=t.next.next;n!==t.prev;){if(Na(e.x,e.y,i.x,i.y,r.x,r.y,n.x,n.y)&&Va(n.prev,n,n.next)>=0)return!1;n=n.next}return!0}function Ma(t,e,i,r){var n=t.prev,o=t,a=t.next;if(Va(n,o,a)>=0)return!1;for(var s=n.x>o.x?n.x>a.x?n.x:a.x:o.x>a.x?o.x:a.x,l=n.y>o.y?n.y>a.y?n.y:a.y:o.y>a.y?o.y:a.y,u=Fa(n.x=u&&h&&h.z<=c;){if(p!==t.prev&&p!==t.next&&Na(n.x,n.y,o.x,o.y,a.x,a.y,p.x,p.y)&&Va(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,h!==t.prev&&h!==t.next&&Na(n.x,n.y,o.x,o.y,a.x,a.y,h.x,h.y)&&Va(h.prev,h,h.next)>=0)return!1;h=h.nextZ}for(;p&&p.z>=u;){if(p!==t.prev&&p!==t.next&&Na(n.x,n.y,o.x,o.y,a.x,a.y,p.x,p.y)&&Va(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;h&&h.z<=c;){if(h!==t.prev&&h!==t.next&&Na(n.x,n.y,o.x,o.y,a.x,a.y,h.x,h.y)&&Va(h.prev,h,h.next)>=0)return!1;h=h.nextZ}return!0}function za(t,e,i){var r=t;do{var n=r.prev,o=r.next.next;!Ua(n,o)&&qa(n,r,r.next,o)&&Ga(n,o)&&Ga(o,n)&&(e.push(n.i/i),e.push(r.i/i),e.push(o.i/i),Wa(r),Wa(r.next),r=t=o),r=r.next}while(r!==t);return Aa(r)}function Da(t,e,i,r,n,o){var a=t;do{for(var s=a.next.next;s!==a.prev;){if(a.i!==s.i&&ja(a,s)){var l=Xa(a,s);return a=Aa(a,a.next),l=Aa(l,l.next),Pa(a,e,i,r,n,o),void Pa(l,e,i,r,n,o)}s=s.next}a=a.next}while(a!==t)}function Oa(t,e){return t.x-e.x}function Ra(t,e){if(e=function(t,e){var i,r=e,n=t.x,o=t.y,a=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var s=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=n&&s>a){if(a=s,s===n){if(o===r.y)return r;if(o===r.next.y)return r.next}i=r.x=r.x&&r.x>=c&&n!==r.x&&Na(oi.x||r.x===i.x&&La(i,r)))&&(i=r,h=l)),r=r.next}while(r!==u);return i}(t,e)){var i=Xa(e,t);Aa(e,e.next),Aa(i,i.next)}}function La(t,e){return Va(t.prev,t,e.prev)<0&&Va(e.next,t,t.next)<0}function Fa(t,e,i,r,n){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-i)*n)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*n)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function Ba(t){var e=t,i=t;do{(e.x=0&&(t-a)*(r-s)-(i-a)*(e-s)>=0&&(i-a)*(o-s)-(n-a)*(r-s)>=0}function ja(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&&qa(i,i.next,t,e))return!0;i=i.next}while(i!==t);return!1}(t,e)&&(Ga(t,e)&&Ga(e,t)&&function(t,e){var i=t,r=!1,n=(t.x+e.x)/2,o=(t.y+e.y)/2;do{i.y>o!=i.next.y>o&&i.next.y!==i.y&&n<(i.next.x-i.x)*(o-i.y)/(i.next.y-i.y)+i.x&&(r=!r),i=i.next}while(i!==t);return r}(t,e)&&(Va(t.prev,t,e.prev)||Va(t,e.prev,e))||Ua(t,e)&&Va(t.prev,t,t.next)>0&&Va(e.prev,e,e.next)>0)}function Va(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function Ua(t,e){return t.x===e.x&&t.y===e.y}function qa(t,e,i,r){var n=Za(Va(t,e,i)),o=Za(Va(t,e,r)),a=Za(Va(i,r,t)),s=Za(Va(i,r,e));return n!==o&&a!==s||!(0!==n||!$a(t,i,e))||!(0!==o||!$a(t,r,e))||!(0!==a||!$a(i,t,r))||!(0!==s||!$a(i,e,r))}function $a(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 Za(t){return t>0?1:t<0?-1:0}function Ga(t,e){return Va(t.prev,t,t.next)<0?Va(t,e,t.next)>=0&&Va(t,t.prev,e)>=0:Va(t,e,t.prev)<0||Va(t,t.next,e)<0}function Xa(t,e){var i=new Ka(t.i,t.x,t.y),r=new Ka(e.i,e.x,e.y),n=t.next,o=e.prev;return t.next=e,e.prev=t,i.next=n,n.prev=i,r.next=i,i.prev=r,o.next=r,r.prev=o,r}function Ha(t,e,i,r){var n=new Ka(t,e,i);return r?(n.next=r.next,n.prev=r,r.next.prev=n,r.next=n):(n.prev=n,n.next=n),n}function Wa(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 Ka(t,e,i){this.i=t,this.x=e,this.y=i,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Ya(t,e,i,r){for(var n=0,o=e,a=i-r;or;){if(n-r>600){var a=n-r+1,s=i-r+1,l=Math.log(a),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(a-u)/a)*(s-a/2<0?-1:1);t(e,i,Math.max(r,Math.floor(i-s*u/a+c)),Math.min(n,Math.floor(i+(a-s)*u/a+c)),o)}var p=e[i],h=r,f=n;for(Qa(e,r,i),o(e[n],p)>0&&Qa(e,r,n);h0;)f--}0===o(e[r],p)?Qa(e,r,f):Qa(e,++f,n),f<=i&&(r=f+1),i<=f&&(n=f-1)}}(t,e,i||0,r||t.length-1,n||ts)}function Qa(t,e,i){var r=t[e];t[e]=t[i],t[i]=r}function ts(t,e){return te?1:0}function es(t,e){var i=t.length;if(i<=1)return[t];for(var r,n,o=[],a=0;a1)for(var l=0;l0&&i.holes.push(r+=t[n-1].length)}return i},Sa.default=Ea;var os=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new kn,this.indexArray=new jn,this.indexArray2=new Gn,this.programConfigurations=new Oo(t.layers,t.zoom),this.segments=new ao,this.segments2=new ao,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};os.prototype.populate=function(t,e,i){this.hasPattern=rs("fill",this.layers,e);for(var r=this.layers[0].layout.get("fill-sort-key"),n=[],o=0,a=t;o>3}if(o--,1===r||2===r)a+=t.readSVarint(),s+=t.readSVarint(),1===r&&(e&&l.push(e),e=[]),e.push(new n(a,s));else{if(7!==r)throw new Error("unknown command "+r);e&&e.push(e[0].clone())}}return e&&l.push(e),l},ps.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,i=1,r=0,n=0,o=0,a=1/0,s=-1/0,l=1/0,u=-1/0;t.pos>3}if(r--,1===i||2===i)(n+=t.readSVarint())s&&(s=n),(o+=t.readSVarint())u&&(u=o);else if(7!==i)throw new Error("unknown command "+i)}return[a,l,s,u]},ps.prototype.toGeoJSON=function(t,e,i){var r,n,o=this.extent*Math.pow(2,i),a=this.extent*t,s=this.extent*e,l=this.loadGeometry(),u=ps.types[this.type];function c(t){for(var e=0;e>3;e=1===r?t.readString():2===r?t.readFloat():3===r?t.readDouble():4===r?t.readVarint64():5===r?t.readVarint():6===r?t.readSVarint():7===r?t.readBoolean():null}return e}(i))}function ys(t,e,i){if(3===t){var r=new ds(i,i.readVarint()+i.pos);r.length&&(e[r.name]=r)}}ms.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 cs(this._pbf,e,this.extent,this._keys,this._values)};var gs={VectorTile:function(t,e){this.layers=t.readFields(ys,{},e)},VectorTileFeature:cs,VectorTileLayer:ds},_s=gs.VectorTileFeature.types,xs=Math.pow(2,13);function bs(t,e,i,r,n,o,a,s){t.emplaceBack(e,i,2*Math.floor(r*xs)+a,n*xs*2,o*xs*2,Math.round(s))}var ws=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Pn,this.indexArray=new jn,this.programConfigurations=new Oo(t.layers,t.zoom),this.segments=new ao,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function Ts(t,e){return t.x===e.x&&(t.x<0||t.x>8192)||t.y===e.y&&(t.y<0||t.y>8192)}ws.prototype.populate=function(t,e,i){this.features=[],this.hasPattern=rs("fill-extrusion",this.layers,e);for(var r=0,n=t;r8192}))||z.every((function(t){return t.y<0}))||z.every((function(t){return t.y>8192}))))for(var m=0,v=0;v=1){var g=d[v-1];if(!Ts(y,g)){p.vertexLength+4>ao.MAX_VERTEX_ARRAY_LENGTH&&(p=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var _=y.sub(g)._perp()._unit(),x=g.dist(y);m+x>32768&&(m=0),bs(this.layoutVertexArray,y.x,y.y,_.x,_.y,0,0,m),bs(this.layoutVertexArray,y.x,y.y,_.x,_.y,0,1,m),bs(this.layoutVertexArray,g.x,g.y,_.x,_.y,0,0,m+=x),bs(this.layoutVertexArray,g.x,g.y,_.x,_.y,0,1,m);var b=p.vertexLength;this.indexArray.emplaceBack(b,b+2,b+1),this.indexArray.emplaceBack(b+1,b+2,b+3),p.vertexLength+=4,p.primitiveLength+=2}}}}if(p.vertexLength+l>ao.MAX_VERTEX_ARRAY_LENGTH&&(p=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray)),"Polygon"===_s[t.type]){for(var w=[],T=[],S=p.vertexLength,E=0,C=s;E=2&&t[l-1].equals(t[l-2]);)l--;for(var u=0;u0;if(T&&y>u){var E=c.dist(f);if(E>2*p){var C=c.sub(c.sub(f)._mult(p/E)._round());this.updateDistance(f,C),this.addCurrentVertex(C,m,0,0,h),f=C}}var k=f&&d,A=k?i:s?"butt":r;if(k&&"round"===A&&(bn&&(A="bevel"),"bevel"===A&&(b>2&&(A="flipbevel"),b100)g=v.mult(-1);else{var P=b*m.add(v).mag()/m.sub(v).mag();g._perp()._mult(P*(S?-1:1))}this.addCurrentVertex(c,g,0,0,h),this.addCurrentVertex(c,g.mult(-1),0,0,h)}else if("bevel"===A||"fakeround"===A){var I=-Math.sqrt(b*b-1),M=S?I:0,z=S?0:I;if(f&&this.addCurrentVertex(c,m,M,z,h),"fakeround"===A)for(var D=Math.round(180*w/Math.PI/20),O=1;O2*p){var j=c.add(d.sub(c)._mult(p/N)._round());this.updateDistance(c,j),this.addCurrentVertex(j,v,0,0,h),c=j}}}}},Ds.prototype.addCurrentVertex=function(t,e,i,r,n,o){void 0===o&&(o=!1);var a=e.y*r-e.x,s=-e.y-e.x*r;this.addHalfVertex(t,e.x+e.y*i,e.y-e.x*i,o,!1,i,n),this.addHalfVertex(t,a,s,o,!0,-r,n),this.distance>zs/2&&0===this.totalDistance&&(this.distance=0,this.addCurrentVertex(t,e,i,r,n,o))},Ds.prototype.addHalfVertex=function(t,e,i,r,n,o,a){var s=.5*(this.lineClips?this.scaledDistance*(zs-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((t.x<<1)+(r?1:0),(t.y<<1)+(n?1:0),Math.round(63*e)+128,Math.round(63*i)+128,1+(0===o?0:o<0?-1:1)|(63&s)<<2,s>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);var l=a.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,l),a.primitiveLength++),n?this.e2=l:this.e1=l},Ds.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},Ds.prototype.updateDistance=function(t,e){this.distance+=t.dist(e),this.updateScaledDistance()},Lr("LineBucket",Ds,{omit:["layers","patternFeatures"]});var Os=new xn({"line-cap":new mn(At.layout_line["line-cap"]),"line-join":new vn(At.layout_line["line-join"]),"line-miter-limit":new mn(At.layout_line["line-miter-limit"]),"line-round-limit":new mn(At.layout_line["line-round-limit"]),"line-sort-key":new vn(At.layout_line["line-sort-key"])}),Rs={paint:new xn({"line-opacity":new vn(At.paint_line["line-opacity"]),"line-color":new vn(At.paint_line["line-color"]),"line-translate":new mn(At.paint_line["line-translate"]),"line-translate-anchor":new mn(At.paint_line["line-translate-anchor"]),"line-width":new vn(At.paint_line["line-width"]),"line-gap-width":new vn(At.paint_line["line-gap-width"]),"line-offset":new vn(At.paint_line["line-offset"]),"line-blur":new vn(At.paint_line["line-blur"]),"line-dasharray":new gn(At.paint_line["line-dasharray"]),"line-pattern":new yn(At.paint_line["line-pattern"]),"line-gradient":new _n(At.paint_line["line-gradient"])}),layout:Os},Ls=new(function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.possiblyEvaluate=function(e,i){return i=new an(Math.floor(i.zoom),{now:i.now,fadeDuration:i.fadeDuration,zoomHistory:i.zoomHistory,transition:i.transition}),t.prototype.possiblyEvaluate.call(this,e,i)},e.prototype.evaluate=function(e,i,r,n){return i=h({},i,{zoom:Math.floor(i.zoom)}),t.prototype.evaluate.call(this,e,i,r,n)},e}(vn))(Rs.paint.properties["line-width"].specification);Ls.useIntegerZoom=!0;var Fs=function(t){function e(e){t.call(this,e,Rs),this.gradientVersion=0}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._handleSpecialPaintPropertyUpdate=function(t){"line-gradient"===t&&(this.stepInterpolant=this._transitionablePaint._values["line-gradient"].value.expression._styleExpression.expression instanceof Ue,this.gradientVersion=(this.gradientVersion+1)%s)},e.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},e.prototype.recalculate=function(e,i){t.prototype.recalculate.call(this,e,i),this.paint._values["line-floorwidth"]=Ls.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)},e.prototype.createBucket=function(t){return new Ds(t)},e.prototype.queryRadius=function(t){var e=t,i=Bs(Qo("line-width",this,e),Qo("line-gap-width",this,e)),r=Qo("line-offset",this,e);return i/2+Math.abs(r)+ta(this.paint.get("line-translate"))},e.prototype.queryIntersectsFeature=function(t,e,i,r,o,a,s){var l=ea(t,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),a.angle,s),u=s/2*Bs(this.paint.get("line-width").evaluate(e,i),this.paint.get("line-gap-width").evaluate(e,i)),c=this.paint.get("line-offset").evaluate(e,i);return c&&(r=function(t,e){for(var i=[],r=new n(0,0),o=0;o=3)for(var o=0;o0?e+2*t:t}var Ns=En([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),js=En([{name:"a_projected_pos",components:3,type:"Float32"}],4),Vs=(En([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),En([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Us=(En([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),En([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),qs=En([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function $s(t,e,i){return t.sections.forEach((function(t){t.text=function(t,e,i){var r=e.layout.get("text-transform").evaluate(i,{});return"uppercase"===r?t=t.toLocaleUpperCase():"lowercase"===r&&(t=t.toLocaleLowerCase()),on.applyArabicShaping&&(t=on.applyArabicShaping(t)),t}(t.text,e,i)})),t}En([{name:"triangle",components:3,type:"Uint16"}]),En([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),En([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),En([{type:"Float32",name:"offsetX"}]),En([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var Zs={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"},Gs=function(t,e,i,r,n){var o,a,s=8*n-r-1,l=(1<>1,c=-7,p=i?n-1:0,h=i?-1:1,f=t[e+p];for(p+=h,o=f&(1<<-c)-1,f>>=-c,c+=s;c>0;o=256*o+t[e+p],p+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+p],p+=h,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=u}return(f?-1:1)*a*Math.pow(2,o-r)},Xs=function(t,e,i,r,n,o){var a,s,l,u=8*o-n-1,c=(1<>1,h=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,d=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+p>=1?h/l:h*Math.pow(2,1-p))*l>=2&&(a++,l/=2),a+p>=c?(s=0,a=c):a+p>=1?(s=(e*l-1)*Math.pow(2,n),a+=p):(s=e*Math.pow(2,p-1)*Math.pow(2,n),a=0));n>=8;t[i+f]=255&s,f+=d,s/=256,n-=8);for(a=a<0;t[i+f]=255&a,f+=d,a/=256,u-=8);t[i+f-d]|=128*m},Hs=Ws;function Ws(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}Ws.Varint=0,Ws.Fixed64=1,Ws.Bytes=2,Ws.Fixed32=5;var Ks="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function Ys(t){return t.type===Ws.Bytes?t.readVarint()+t.pos:t.pos+1}function Js(t,e,i){return i?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function Qs(t,e,i){var r=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));i.realloc(r);for(var n=i.pos-1;n>=t;n--)i.buf[n+r]=i.buf[n]}function tl(t,e){for(var i=0;i>>8,t[i+2]=e>>>16,t[i+3]=e>>>24}function pl(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}function hl(t,e,i){1===t&&i.readMessage(fl,e)}function fl(t,e,i){if(3===t){var r=i.readMessage(dl,{}),n=r.width,o=r.height,a=r.left,s=r.top,l=r.advance;e.push({id:r.id,bitmap:new va({width:n+6,height:o+6},r.bitmap),metrics:{width:n,height:o,left:a,top:s,advance:l}})}}function dl(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())}function ml(t){for(var e=0,i=0,r=0,n=t;r=0;h--){var f=a[h];if(!(p.w>f.w||p.h>f.h)){if(p.x=f.x,p.y=f.y,l=Math.max(l,p.y+p.h),s=Math.max(s,p.x+p.w),p.w===f.w&&p.h===f.h){var d=a.pop();h>3,o=this.pos;this.type=7&r,t(n,e,this),this.pos===o&&this.skip(r)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=ul(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=pl(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=ul(this.buf,this.pos)+4294967296*ul(this.buf,this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=ul(this.buf,this.pos)+4294967296*pl(this.buf,this.pos+4);return this.pos+=8,t},readFloat:function(){var t=Gs(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=Gs(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,i,r=this.buf;return e=127&(i=r[this.pos++]),i<128?e:(e|=(127&(i=r[this.pos++]))<<7,i<128?e:(e|=(127&(i=r[this.pos++]))<<14,i<128?e:(e|=(127&(i=r[this.pos++]))<<21,i<128?e:function(t,e,i){var r,n,o=i.buf;if(r=(112&(n=o[i.pos++]))>>4,n<128)return Js(t,r,e);if(r|=(127&(n=o[i.pos++]))<<3,n<128)return Js(t,r,e);if(r|=(127&(n=o[i.pos++]))<<10,n<128)return Js(t,r,e);if(r|=(127&(n=o[i.pos++]))<<17,n<128)return Js(t,r,e);if(r|=(127&(n=o[i.pos++]))<<24,n<128)return Js(t,r,e);if(r|=(1&(n=o[i.pos++]))<<31,n<128)return Js(t,r,e);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(i=r[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=12&&Ks?function(t,e,i){return Ks.decode(t.subarray(e,i))}(this.buf,e,t):function(t,e,i){for(var r="",n=e;n239?4:l>223?3:l>191?2:1;if(n+c>i)break;1===c?l<128&&(u=l):2===c?128==(192&(o=t[n+1]))&&(u=(31&l)<<6|63&o)<=127&&(u=null):3===c?(a=t[n+2],128==(192&(o=t[n+1]))&&128==(192&a)&&((u=(15&l)<<12|(63&o)<<6|63&a)<=2047||u>=55296&&u<=57343)&&(u=null)):4===c&&(a=t[n+2],s=t[n+3],128==(192&(o=t[n+1]))&&128==(192&a)&&128==(192&s)&&((u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)<=65535||u>=1114112)&&(u=null)),null===u?(u=65533,c=1):u>65535&&(u-=65536,r+=String.fromCharCode(u>>>10&1023|55296),u=56320|1023&u),r+=String.fromCharCode(u),n+=c}return r}(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==Ws.Bytes)return t.push(this.readVarint(e));var i=Ys(this);for(t=t||[];this.pos127;);else if(e===Ws.Bytes)this.pos=this.readVarint()+this.pos;else if(e===Ws.Fixed32)this.pos+=4;else{if(e!==Ws.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;e268435455||t<0?function(t,e){var i,r;if(t>=0?(i=t%4294967296|0,r=t/4294967296|0):(r=~(-t/4294967296),4294967295^(i=~(-t%4294967296))?i=i+1|0:(i=0,r=r+1|0)),t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),function(t,e,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)))))}(r,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,i){for(var r,n,o=0;o55295&&r<57344){if(!n){r>56319||o+1===e.length?(t[i++]=239,t[i++]=191,t[i++]=189):n=r;continue}if(r<56320){t[i++]=239,t[i++]=191,t[i++]=189,n=r;continue}r=n-55296<<10|r-56320|65536,n=null}else n&&(t[i++]=239,t[i++]=191,t[i++]=189,n=null);r<128?t[i++]=r:(r<2048?t[i++]=r>>6|192:(r<65536?t[i++]=r>>12|224:(t[i++]=r>>18|240,t[i++]=r>>12&63|128),t[i++]=r>>6&63|128),t[i++]=63&r|128)}return i}(this.buf,t,this.pos);var i=this.pos-e;i>=128&&Qs(e,i,this),this.pos=e-1,this.writeVarint(i),this.pos+=i},writeFloat:function(t){this.realloc(4),Xs(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),Xs(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=128&&Qs(i,r,this),this.pos=i-1,this.writeVarint(r),this.pos+=r},writeMessage:function(t,e,i){this.writeTag(t,Ws.Bytes),this.writeRawMessage(e,i)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,tl,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,el,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,nl,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,il,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,rl,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,ol,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,al,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,sl,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,ll,e)},writeBytesField:function(t,e){this.writeTag(t,Ws.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,Ws.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,Ws.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,Ws.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,Ws.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,Ws.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,Ws.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,Ws.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,Ws.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,Ws.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}};var vl=function(t,e){var i=e.pixelRatio,r=e.version,n=e.stretchX,o=e.stretchY,a=e.content;this.paddedRect=t,this.pixelRatio=i,this.stretchX=n,this.stretchY=o,this.content=a,this.version=r},yl={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};yl.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},yl.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},yl.tlbr.get=function(){return this.tl.concat(this.br)},yl.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(vl.prototype,yl);var gl=function(t,e){var i={},r={};this.haveRenderCallbacks=[];var n=[];this.addImages(t,i,n),this.addImages(e,r,n);var o=ml(n),a=new ya({width:o.w||1,height:o.h||1});for(var s in t){var l=t[s],u=i[s].paddedRect;ya.copy(l.data,a,{x:0,y:0},{x:u.x+1,y:u.y+1},l.data)}for(var c in e){var p=e[c],h=r[c].paddedRect,f=h.x+1,d=h.y+1,m=p.data.width,v=p.data.height;ya.copy(p.data,a,{x:0,y:0},{x:f,y:d},p.data),ya.copy(p.data,a,{x:0,y:v-1},{x:f,y:d-1},{width:m,height:1}),ya.copy(p.data,a,{x:0,y:0},{x:f,y:d+v},{width:m,height:1}),ya.copy(p.data,a,{x:m-1,y:0},{x:f-1,y:d},{width:1,height:v}),ya.copy(p.data,a,{x:0,y:0},{x:f+m,y:d},{width:1,height:v})}this.image=a,this.iconPositions=i,this.patternPositions=r};gl.prototype.addImages=function(t,e,i){for(var r in t){var n=t[r],o={x:0,y:0,w:n.data.width+2,h:n.data.height+2};i.push(o),e[r]=new vl(o,n),n.hasRenderCallback&&this.haveRenderCallbacks.push(r)}},gl.prototype.patchUpdatedImages=function(t,e){for(var i in t.dispatchRenderCallbacks(this.haveRenderCallbacks),t.updatedImages)this.patchUpdatedImage(this.iconPositions[i],t.getImage(i),e),this.patchUpdatedImage(this.patternPositions[i],t.getImage(i),e)},gl.prototype.patchUpdatedImage=function(t,e,i){if(t&&e&&t.version!==e.version){t.version=e.version;var r=t.tl;i.update(e.data,void 0,{x:r[0],y:r[1]})}},Lr("ImagePosition",vl),Lr("ImageAtlas",gl);var _l={horizontal:1,vertical:2,horizontalOnly:3},xl=function(){this.scale=1,this.fontStack="",this.imageName=null};xl.forText=function(t,e){var i=new xl;return i.scale=t||1,i.fontStack=e,i},xl.forImage=function(t){var e=new xl;return e.imageName=t,e};var bl=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function wl(t,e,i,r,n,o,a,s,l,u,c,p,h,f,d,m){var v,y=bl.fromFeature(t,n);p===_l.vertical&&y.verticalizePunctuation();var g=on.processBidirectionalText,_=on.processStyledBidirectionalText;if(g&&1===y.sections.length){v=[];for(var x=0,b=g(y.toString(),Pl(y,u,o,e,r,f,d));x0&&B>E&&(E=B)}else{var N=i[k.fontStack],j=N&&N[P];if(j&&j.rect)z=j.rect,M=j.metrics;else{var V=e[k.fontStack],U=V&&V[P];if(!U)continue;M=U.metrics}I=24*(b-k.scale)}R?(t.verticalizable=!0,S.push({glyph:P,imageName:D,x:h,y:f+I,vertical:R,scale:k.scale,fontStack:k.fontStack,sectionIndex:A,metrics:M,rect:z}),h+=O*k.scale+u):(S.push({glyph:P,imageName:D,x:h,y:f+I,vertical:R,scale:k.scale,fontStack:k.fontStack,sectionIndex:A,metrics:M,rect:z}),h+=M.advance*k.scale+u)}0!==S.length&&(d=Math.max(h-u,d),Ml(S,0,S.length-1,v,E)),h=0;var q=o*b+E;T.lineOffset=Math.max(E,w),f+=q,m=Math.max(q,m),++y}else f+=o,++y}var $,Z=f- -17,G=Il(a),X=G.horizontalAlign,H=G.verticalAlign;(function(t,e,i,r,n,o,a,s,l){var u,c=(e-i)*n;u=o!==a?-s*r- -17:(-r*l+.5)*a;for(var p=0,h=t;p=0&&r>=t&&Tl[this.text.charCodeAt(r)];r--)i--;this.text=this.text.substring(t,i),this.sectionIndex=this.sectionIndex.slice(t,i)},bl.prototype.substring=function(t,e){var i=new bl;return i.text=this.text.substring(t,e),i.sectionIndex=this.sectionIndex.slice(t,e),i.sections=this.sections,i},bl.prototype.toString=function(){return this.text},bl.prototype.getMaxScale=function(){var t=this;return this.sectionIndex.reduce((function(e,i){return Math.max(e,t.sections[i].scale)}),0)},bl.prototype.addTextSection=function(t,e){this.text+=t.text,this.sections.push(xl.forText(t.scale,t.fontStack||e));for(var i=this.sections.length-1,r=0;r=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var Tl={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Sl={};function El(t,e,i,r,n,o){if(e.imageName){var a=r[e.imageName];return a?a.displaySize[0]*e.scale*24/o+n:0}var s=i[e.fontStack],l=s&&s[t];return l?l.metrics.advance*e.scale+n:0}function Cl(t,e,i,r){var n=Math.pow(t-e,2);return r?t=0,p=0,h=0;h-i/2;){if(--a<0)return!1;s-=t[a].dist(o),o=t[a]}s+=t[a].dist(t[a+1]),a++;for(var l=[],u=0;sr;)u-=l.shift().angleDelta;if(u>n)return!1;a++,s+=c.dist(p)}return!0}function Nl(t){for(var e=0,i=0;iu){var d=(u-l)/f,m=qe(p.x,h.x,d),v=qe(p.y,h.y,d),y=new Dl(m,v,h.angleTo(p),c);return y._round(),!a||Bl(t,y,s,a,e)?y:void 0}l+=f}}function ql(t,e,i,r,n,o,a,s,l){var u=jl(r,o,a),c=Vl(r,n),p=c*a,h=0===t[0].x||t[0].x===l||0===t[0].y||t[0].y===l;return e-p=0&&b=0&&w=0&&f+c<=p){var T=new Dl(b,w,_,m);T._round(),n&&!Bl(e,T,a,n,o)||d.push(T)}}h+=g}return l||d.length||s||(d=t(e,h/2,r,n,o,a,s,!0,u)),d}(t,h?e/2*s%e:(c/2+2*o)*a*s%e,e,u,i,p,h,!1,l)}function $l(t,e,i,r,o){for(var a=[],s=0;s=r&&h.x>=r||(p.x>=r?p=new n(r,p.y+(r-p.x)/(h.x-p.x)*(h.y-p.y))._round():h.x>=r&&(h=new n(r,p.y+(r-p.x)/(h.x-p.x)*(h.y-p.y))._round()),p.y>=o&&h.y>=o||(p.y>=o?p=new n(p.x+(o-p.y)/(h.y-p.y)*(h.x-p.x),o)._round():h.y>=o&&(h=new n(p.x+(o-p.y)/(h.y-p.y)*(h.x-p.x),o)._round()),u&&p.equals(u[u.length-1])||a.push(u=[p]),u.push(h)))))}return a}function Zl(t,e,i,r){var o=[],a=t.image,s=a.pixelRatio,l=a.paddedRect.w-2,u=a.paddedRect.h-2,c=t.right-t.left,p=t.bottom-t.top,h=a.stretchX||[[0,l]],f=a.stretchY||[[0,u]],d=function(t,e){return t+e[1]-e[0]},m=h.reduce(d,0),v=f.reduce(d,0),y=l-m,g=u-v,_=0,x=m,b=0,w=v,T=0,S=y,E=0,C=g;if(a.content&&r){var k=a.content;_=Gl(h,0,k[0]),b=Gl(f,0,k[1]),x=Gl(h,k[0],k[2]),w=Gl(f,k[1],k[3]),T=k[0]-_,E=k[1]-b,S=k[2]-k[0]-x,C=k[3]-k[1]-w}var A=function(r,o,l,u){var h=Hl(r.stretch-_,x,c,t.left),f=Wl(r.fixed-T,S,r.stretch,m),d=Hl(o.stretch-b,w,p,t.top),y=Wl(o.fixed-E,C,o.stretch,v),g=Hl(l.stretch-_,x,c,t.left),k=Wl(l.fixed-T,S,l.stretch,m),A=Hl(u.stretch-b,w,p,t.top),P=Wl(u.fixed-E,C,u.stretch,v),I=new n(h,d),M=new n(g,d),z=new n(g,A),D=new n(h,A),O=new n(f/s,y/s),R=new n(k/s,P/s),L=e*Math.PI/180;if(L){var F=Math.sin(L),B=Math.cos(L),N=[B,-F,F,B];I._matMult(N),M._matMult(N),D._matMult(N),z._matMult(N)}var j=r.stretch+r.fixed,V=o.stretch+o.fixed;return{tl:I,tr:M,bl:D,br:z,tex:{x:a.paddedRect.x+1+j,y:a.paddedRect.y+1+V,w:l.stretch+l.fixed-j,h:u.stretch+u.fixed-V},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:O,pixelOffsetBR:R,minFontScaleX:S/s/c,minFontScaleY:C/s/p,isSDF:i}};if(r&&(a.stretchX||a.stretchY))for(var P=Xl(h,y,m),I=Xl(f,g,v),M=0;M0&&(d=Math.max(10,d),this.circleDiameter=d)}else{var m=a.top*s-l,v=a.bottom*s+l,y=a.left*s-l,g=a.right*s+l,_=a.collisionPadding;if(_&&(y-=_[0]*s,m-=_[1]*s,g+=_[2]*s,v+=_[3]*s),c){var x=new n(y,m),b=new n(g,m),w=new n(y,v),T=new n(g,v),S=c*Math.PI/180;x._rotate(S),b._rotate(S),w._rotate(S),T._rotate(S),y=Math.min(x.x,b.x,w.x,T.x),g=Math.max(x.x,b.x,w.x,T.x),m=Math.min(x.y,b.y,w.y,T.y),v=Math.max(x.y,b.y,w.y,T.y)}t.emplaceBack(e.x,e.y,y,m,g,v,i,r,o)}this.boxEndIndex=t.length},Yl=function(t,e){if(void 0===t&&(t=[]),void 0===e&&(e=Jl),this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(var i=(this.length>>1)-1;i>=0;i--)this._down(i)};function Jl(t,e){return te?1:0}function Ql(t,e,i){void 0===e&&(e=1),void 0===i&&(i=!1);for(var r=1/0,o=1/0,a=-1/0,s=-1/0,l=t[0],u=0;ua)&&(a=c.x),(!u||c.y>s)&&(s=c.y)}var p=Math.min(a-r,s-o),h=p/2,f=new Yl([],tu);if(0===p)return new n(r,o);for(var d=r;dv.d||!v.d)&&(v=y),y.max-v.d<=e||(f.push(new eu(y.p.x-(h=y.h/2),y.p.y-h,h,t)),f.push(new eu(y.p.x+h,y.p.y-h,h,t)),f.push(new eu(y.p.x-h,y.p.y+h,h,t)),f.push(new eu(y.p.x+h,y.p.y+h,h,t)),4)}return v.p}function tu(t,e){return e.max-t.max}function eu(t,e,i,r){this.p=new n(t,e),this.h=i,this.d=function(t,e){for(var i=!1,r=1/0,n=0;nt.y!=c.y>t.y&&t.x<(c.x-u.x)*(t.y-u.y)/(c.y-u.y)+u.x&&(i=!i),r=Math.min(r,Wo(t,u,c))}return(i?1:-1)*Math.sqrt(r)}(this.p,r),this.max=this.d+this.h*Math.SQRT2}Yl.prototype.push=function(t){this.data.push(t),this.length++,this._up(this.length-1)},Yl.prototype.pop=function(){if(0!==this.length){var t=this.data[0],e=this.data.pop();return this.length--,this.length>0&&(this.data[0]=e,this._down(0)),t}},Yl.prototype.peek=function(){return this.data[0]},Yl.prototype._up=function(t){for(var e=this.data,i=this.compare,r=e[t];t>0;){var n=t-1>>1,o=e[n];if(i(r,o)>=0)break;e[t]=o,t=n}e[t]=r},Yl.prototype._down=function(t){for(var e=this.data,i=this.compare,r=this.length>>1,n=e[t];t=0)break;e[t]=a,t=o}e[t]=n};var iu=Number.POSITIVE_INFINITY;function ru(t,e){return e[1]!==iu?function(t,e,i){var r=0,n=0;switch(e=Math.abs(e),i=Math.abs(i),t){case"top-right":case"top-left":case"top":n=i-7;break;case"bottom-right":case"bottom-left":case"bottom":n=7-i}switch(t){case"top-right":case"bottom-right":case"right":r=-e;break;case"top-left":case"bottom-left":case"left":r=e}return[r,n]}(t,e[0],e[1]):function(t,e){var i=0,r=0;e<0&&(e=0);var n=e/Math.sqrt(2);switch(t){case"top-right":case"top-left":r=n-7;break;case"bottom-right":case"bottom-left":r=7-n;break;case"bottom":r=7-e;break;case"top":r=e-7}switch(t){case"top-right":case"bottom-right":i=-n;break;case"top-left":case"bottom-left":i=n;break;case"left":i=e;break;case"right":i=-e}return[i,r]}(t,e[0])}function nu(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 ou(t,e,i,r,o,a,s,l,u,c,p,h,f,d,m){var v=function(t,e,i,r,o,a,s,l){for(var u=r.layout.get("text-rotate").evaluate(a,{})*Math.PI/180,c=[],p=0,h=e.positionedLines;p32640&&T(t.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'):"composite"===y.kind&&((g=[128*d.compositeTextSizes[0].evaluate(s,{},m),128*d.compositeTextSizes[1].evaluate(s,{},m)])[0]>32640||g[1]>32640)&&T(t.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'),t.addSymbols(t.text,v,g,l,a,s,c,e,u.lineStartIndex,u.lineLength,f,m);for(var _=0,x=p;_=0;a--)if(r.dist(o[a])0)&&("constant"!==o.value.kind||o.value.value.length>0),u="constant"!==s.value.kind||!!s.value.value||Object.keys(s.parameters).length>0,c=n.get("symbol-sort-key");if(this.features=[],l||u){for(var p=e.iconDependencies,h=e.glyphDependencies,f=e.availableImages,d=new an(this.zoom),m=0,v=t;m=0;for(var D=0,O=S.sections;D=0;s--)o[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:n},s>0&&(n+=e[s-1].dist(e[s]));for(var l=0;l0},mu.prototype.hasIconData=function(){return this.icon.segments.get().length>0},mu.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},mu.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},mu.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},mu.prototype.addIndicesForPlacedSymbol=function(t,e){for(var i=t.placedSymbolArray.get(e),r=i.vertexStartIndex+4*i.numGlyphs,n=i.vertexStartIndex;n1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var i=0,r=this.symbolInstanceIndexes;i=0&&r.indexOf(t)===i&&e.addIndicesForPlacedSymbol(e.text,t)})),n.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,n.verticalPlacedTextSymbolIndex),n.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,n.placedIconSymbolIndex),n.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,n.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Lr("SymbolBucket",mu,{omit:["layers","collisionBoxArray","features","compareText"]}),mu.MAX_GLYPHS=65535,mu.addDynamicAttributes=pu;var vu=new xn({"symbol-placement":new mn(At.layout_symbol["symbol-placement"]),"symbol-spacing":new mn(At.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new mn(At.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new vn(At.layout_symbol["symbol-sort-key"]),"symbol-z-order":new mn(At.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new mn(At.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new mn(At.layout_symbol["icon-ignore-placement"]),"icon-optional":new mn(At.layout_symbol["icon-optional"]),"icon-rotation-alignment":new mn(At.layout_symbol["icon-rotation-alignment"]),"icon-size":new vn(At.layout_symbol["icon-size"]),"icon-text-fit":new mn(At.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new mn(At.layout_symbol["icon-text-fit-padding"]),"icon-image":new vn(At.layout_symbol["icon-image"]),"icon-rotate":new vn(At.layout_symbol["icon-rotate"]),"icon-padding":new mn(At.layout_symbol["icon-padding"]),"icon-keep-upright":new mn(At.layout_symbol["icon-keep-upright"]),"icon-offset":new vn(At.layout_symbol["icon-offset"]),"icon-anchor":new vn(At.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new mn(At.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new mn(At.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new mn(At.layout_symbol["text-rotation-alignment"]),"text-field":new vn(At.layout_symbol["text-field"]),"text-font":new vn(At.layout_symbol["text-font"]),"text-size":new vn(At.layout_symbol["text-size"]),"text-max-width":new vn(At.layout_symbol["text-max-width"]),"text-line-height":new mn(At.layout_symbol["text-line-height"]),"text-letter-spacing":new vn(At.layout_symbol["text-letter-spacing"]),"text-justify":new vn(At.layout_symbol["text-justify"]),"text-radial-offset":new vn(At.layout_symbol["text-radial-offset"]),"text-variable-anchor":new mn(At.layout_symbol["text-variable-anchor"]),"text-anchor":new vn(At.layout_symbol["text-anchor"]),"text-max-angle":new mn(At.layout_symbol["text-max-angle"]),"text-writing-mode":new mn(At.layout_symbol["text-writing-mode"]),"text-rotate":new vn(At.layout_symbol["text-rotate"]),"text-padding":new mn(At.layout_symbol["text-padding"]),"text-keep-upright":new mn(At.layout_symbol["text-keep-upright"]),"text-transform":new vn(At.layout_symbol["text-transform"]),"text-offset":new vn(At.layout_symbol["text-offset"]),"text-allow-overlap":new mn(At.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new mn(At.layout_symbol["text-ignore-placement"]),"text-optional":new mn(At.layout_symbol["text-optional"])}),yu={paint:new xn({"icon-opacity":new vn(At.paint_symbol["icon-opacity"]),"icon-color":new vn(At.paint_symbol["icon-color"]),"icon-halo-color":new vn(At.paint_symbol["icon-halo-color"]),"icon-halo-width":new vn(At.paint_symbol["icon-halo-width"]),"icon-halo-blur":new vn(At.paint_symbol["icon-halo-blur"]),"icon-translate":new mn(At.paint_symbol["icon-translate"]),"icon-translate-anchor":new mn(At.paint_symbol["icon-translate-anchor"]),"text-opacity":new vn(At.paint_symbol["text-opacity"]),"text-color":new vn(At.paint_symbol["text-color"],{runtimeType:jt,getOverride:function(t){return t.textColor},hasOverride:function(t){return!!t.textColor}}),"text-halo-color":new vn(At.paint_symbol["text-halo-color"]),"text-halo-width":new vn(At.paint_symbol["text-halo-width"]),"text-halo-blur":new vn(At.paint_symbol["text-halo-blur"]),"text-translate":new mn(At.paint_symbol["text-translate"]),"text-translate-anchor":new mn(At.paint_symbol["text-translate-anchor"])}),layout:vu},gu=function(t){this.type=t.property.overrides?t.property.overrides.runtimeType:Lt,this.defaultValue=t};gu.prototype.evaluate=function(t){if(t.formattedSection){var e=this.defaultValue.property.overrides;if(e&&e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&&t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default},gu.prototype.eachChild=function(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)},gu.prototype.outputDefined=function(){return!1},gu.prototype.serialize=function(){return null},Lr("FormatSectionOverride",gu,{omit:["defaultValue"]});var _u=function(t){function e(e){t.call(this,e,yu)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.recalculate=function(e,i){if(t.prototype.recalculate.call(this,e,i),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),"point"===this.layout.get("symbol-placement")){var r=this.layout.get("text-writing-mode");if(r){for(var n=[],o=0,a=r;o",targetMapId:r,sourceMapId:o.mapId})}}},Du.prototype.receive=function(t){var e=t.data,i=e.id;if(i&&(!e.targetMapId||this.mapId===e.targetMapId))if(""===e.type){delete this.tasks[i];var r=this.cancelCallbacks[i];delete this.cancelCallbacks[i],r&&r()}else C()||e.mustQueue?(this.tasks[i]=e,this.taskQueue.push(i),this.invoker.trigger()):this.processTask(i,e)},Du.prototype.process=function(){if(this.taskQueue.length){var t=this.taskQueue.shift(),e=this.tasks[t];delete this.tasks[t],this.taskQueue.length&&this.invoker.trigger(),e&&this.processTask(t,e)}},Du.prototype.processTask=function(t,e){var i=this;if(""===e.type){var r=this.callbacks[t];delete this.callbacks[t],r&&(e.error?r(Vr(e.error)):r(null,Vr(e.data)))}else{var n=!1,o=P(this.globalScope)?void 0:[],a=e.hasCallback?function(e,r){n=!0,delete i.cancelCallbacks[t],i.target.postMessage({id:t,type:"",sourceMapId:i.mapId,error:e?jr(e):null,data:jr(r,o)},o)}:function(t){n=!0},s=null,l=Vr(e.data);if(this.parent[e.type])s=this.parent[e.type](e.sourceMapId,l,a);else if(this.parent.getWorkerSource){var u=e.type.split(".");s=this.parent.getWorkerSource(e.sourceMapId,u[0],l.source)[u[1]](l,a)}else a(new Error("Could not find function "+e.type));!n&&s&&s.cancel&&(this.cancelCallbacks[t]=s.cancel)}},Du.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var Ru=function(t,e){t&&(e?this.setSouthWest(t).setNorthEast(e):4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1]))};Ru.prototype.setNorthEast=function(t){return this._ne=t instanceof Lu?new Lu(t.lng,t.lat):Lu.convert(t),this},Ru.prototype.setSouthWest=function(t){return this._sw=t instanceof Lu?new Lu(t.lng,t.lat):Lu.convert(t),this},Ru.prototype.extend=function(t){var e,i,r=this._sw,n=this._ne;if(t instanceof Lu)e=t,i=t;else{if(!(t instanceof Ru))return Array.isArray(t)?4===t.length||t.every(Array.isArray)?this.extend(Ru.convert(t)):this.extend(Lu.convert(t)):this;if(i=t._ne,!(e=t._sw)||!i)return this}return r||n?(r.lng=Math.min(e.lng,r.lng),r.lat=Math.min(e.lat,r.lat),n.lng=Math.max(i.lng,n.lng),n.lat=Math.max(i.lat,n.lat)):(this._sw=new Lu(e.lng,e.lat),this._ne=new Lu(i.lng,i.lat)),this},Ru.prototype.getCenter=function(){return new Lu((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Ru.prototype.getSouthWest=function(){return this._sw},Ru.prototype.getNorthEast=function(){return this._ne},Ru.prototype.getNorthWest=function(){return new Lu(this.getWest(),this.getNorth())},Ru.prototype.getSouthEast=function(){return new Lu(this.getEast(),this.getSouth())},Ru.prototype.getWest=function(){return this._sw.lng},Ru.prototype.getSouth=function(){return this._sw.lat},Ru.prototype.getEast=function(){return this._ne.lng},Ru.prototype.getNorth=function(){return this._ne.lat},Ru.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Ru.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Ru.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Ru.prototype.contains=function(t){var e=Lu.convert(t),i=e.lng,r=e.lat,n=this._sw.lng<=i&&i<=this._ne.lng;return this._sw.lng>this._ne.lng&&(n=this._sw.lng>=i&&i>=this._ne.lng),this._sw.lat<=r&&r<=this._ne.lat&&n},Ru.convert=function(t){return!t||t instanceof Ru?t:new Ru(t)};var Lu=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid LngLat object: ("+t+", "+e+")");if(this.lng=+t,this.lat=+e,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Lu.prototype.wrap=function(){return new Lu(p(this.lng,-180,180),this.lat)},Lu.prototype.toArray=function(){return[this.lng,this.lat]},Lu.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Lu.prototype.distanceTo=function(t){var e=Math.PI/180,i=this.lat*e,r=t.lat*e,n=Math.sin(i)*Math.sin(r)+Math.cos(i)*Math.cos(r)*Math.cos((t.lng-this.lng)*e);return 6371008.8*Math.acos(Math.min(n,1))},Lu.prototype.toBounds=function(t){void 0===t&&(t=0);var e=360*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return new Ru(new Lu(this.lng-i,this.lat-e),new Lu(this.lng+i,this.lat+e))},Lu.convert=function(t){if(t instanceof Lu)return t;if(Array.isArray(t)&&(2===t.length||3===t.length))return new Lu(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&"object"==typeof t&&null!==t)return new Lu(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: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var Fu=2*Math.PI*6371008.8;function Bu(t){return Fu*Math.cos(t*Math.PI/180)}function Nu(t){return(180+t)/360}function ju(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function Vu(t,e){return t/Bu(e)}function Uu(t){return 360/Math.PI*Math.atan(Math.exp((180-360*t)*Math.PI/180))-90}var qu=function(t,e,i){void 0===i&&(i=0),this.x=+t,this.y=+e,this.z=+i};qu.fromLngLat=function(t,e){void 0===e&&(e=0);var i=Lu.convert(t);return new qu(Nu(i.lng),ju(i.lat),Vu(e,i.lat))},qu.prototype.toLngLat=function(){return new Lu(360*this.x-180,Uu(this.y))},qu.prototype.toAltitude=function(){return this.z*Bu(Uu(this.y))},qu.prototype.meterInMercatorCoordinateUnits=function(){return 1/Fu*(t=Uu(this.y),1/Math.cos(t*Math.PI/180));var t};var $u=function(t,e,i){this.z=t,this.x=e,this.y=i,this.key=Xu(0,t,t,e,i)};$u.prototype.equals=function(t){return this.z===t.z&&this.x===t.x&&this.y===t.y},$u.prototype.url=function(t,e){var i,r,n,o,a,s=(r=this.y,n=this.z,o=Ou(256*(i=this.x),256*(r=Math.pow(2,n)-r-1),n),a=Ou(256*(i+1),256*(r+1),n),o[0]+","+o[1]+","+a[0]+","+a[1]),l=function(t,e,i){for(var r,n="",o=t;o>0;o--)n+=(e&(r=1<this.canonical.z?new Gu(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Gu(t,this.wrap,t,this.canonical.x>>e,this.canonical.y>>e)},Gu.prototype.calculateScaledKey=function(t,e){var i=this.canonical.z-t;return t>this.canonical.z?Xu(this.wrap*+e,t,this.canonical.z,this.canonical.x,this.canonical.y):Xu(this.wrap*+e,t,t,this.canonical.x>>i,this.canonical.y>>i)},Gu.prototype.isChildOf=function(t){if(t.wrap!==this.wrap)return!1;var e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ>e&&t.canonical.y===this.canonical.y>>e},Gu.prototype.children=function(t){if(this.overscaledZ>=t)return[new Gu(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var e=this.canonical.z+1,i=2*this.canonical.x,r=2*this.canonical.y;return[new Gu(e,this.wrap,e,i,r),new Gu(e,this.wrap,e,i+1,r),new Gu(e,this.wrap,e,i,r+1),new Gu(e,this.wrap,e,i+1,r+1)]},Gu.prototype.isLessThan=function(t){return this.wrapt.wrap)&&(this.overscaledZt.overscaledZ)&&(this.canonical.xt.canonical.x)&&this.canonical.y=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)},Hu.prototype._unpackMapbox=function(t,e,i){return(256*t*256+256*e+i)/10-1e4},Hu.prototype._unpackTerrarium=function(t,e,i){return 256*t+e+i/256-32768},Hu.prototype.getPixels=function(){return new ya({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Hu.prototype.backfillBorder=function(t,e,i){if(this.dim!==t.dim)throw new Error("dem dimension mismatch");var r=e*this.dim,n=e*this.dim+this.dim,o=i*this.dim,a=i*this.dim+this.dim;switch(e){case-1:r=n-1;break;case 1:n=r+1}switch(i){case-1:o=a-1;break;case 1:a=o+1}for(var s=-e*this.dim,l=-i*this.dim,u=o;u=0&&c[3]>=0&&s.insert(a,c[0],c[1],c[2],c[3])}},Qu.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new gs.VectorTile(new Hs(this.rawTileData)).layers,this.sourceLayerCoder=new Wu(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},Qu.prototype.query=function(t,e,i,r){var o=this;this.loadVTLayers();for(var a=t.params||{},s=8192/t.tileSize/t.scale,l=nr(a.filter),u=t.queryGeometry,c=t.queryPadding*s,p=ec(u),h=this.grid.query(p.minX-c,p.minY-c,p.maxX+c,p.maxY+c),f=ec(t.cameraQueryGeometry),d=0,m=this.grid3D.query(f.minX-c,f.minY-c,f.maxX+c,f.maxY+c,(function(e,i,r,o){return function(t,e,i,r,o){for(var a=0,s=t;a=l.x&&o>=l.y)return!0}var u=[new n(e,i),new n(e,o),new n(r,o),new n(r,i)];if(t.length>2)for(var c=0,p=u;c=0)return!0;return!1}(o,p)){var h=this.sourceLayerCoder.decode(i),f=this.vtLayers[h].feature(r);if(n.filter(new an(this.tileID.overscaledZ),f))for(var d=this.getId(f,h),m=0;mr)n=!1;else if(e)if(this.expirationTimelt&&(t.getActor().send("enforceCacheSizeLimit",st),ht=0)},t.clamp=c,t.clearTileCache=function(t){var e=a.caches.delete("mapbox-tiles");t&&e.catch(t).then((function(){return t()}))},t.clipLine=$l,t.clone=function(t){var e=new na(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=b,t.clone$2=function(t){var e=new na(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},t.collisionCircleLayout=qs,t.config=N,t.create=function(){var t=new na(16);return na!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},t.create$1=function(){var t=new na(9);return na!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},t.create$2=function(){var t=new na(4);return na!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},t.createCommonjsModule=e,t.createExpression=Zi,t.createLayout=En,t.createStyleLayer=function(t){return"custom"===t.type?new Su(t):new Eu[t.type](t)},t.cross=function(t,e,i){var r=e[0],n=e[1],o=e[2],a=i[0],s=i[1],l=i[2];return t[0]=n*l-o*s,t[1]=o*a-r*l,t[2]=r*s-n*a,t},t.deepEqual=function t(e,i){if(Array.isArray(e)){if(!Array.isArray(i)||e.length!==i.length)return!1;for(var r=0;r0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t},t.number=qe,t.offscreenCanvasSupported=ft,t.ortho=function(t,e,i,r,n,o,a){var s=1/(e-i),l=1/(r-n),u=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+i)*s,t[13]=(n+r)*l,t[14]=(a+o)*u,t[15]=1,t},t.parseGlyphPBF=function(t){return new Hs(t).readFields(hl,[])},t.pbf=Hs,t.performSymbolLayout=function(t,e,i,r,n,o,a){t.createArrays(),t.tilePixelRatio=8192/(512*t.overscaling),t.compareText={},t.iconsNeedLinear=!1;var s=t.layers[0].layout,l=t.layers[0]._unevaluatedLayout._values,u={};if("composite"===t.textSizeData.kind){var c=t.textSizeData,p=c.maxZoom;u.compositeTextSizes=[l["text-size"].possiblyEvaluate(new an(c.minZoom),a),l["text-size"].possiblyEvaluate(new an(p),a)]}if("composite"===t.iconSizeData.kind){var h=t.iconSizeData,f=h.maxZoom;u.compositeIconSizes=[l["icon-size"].possiblyEvaluate(new an(h.minZoom),a),l["icon-size"].possiblyEvaluate(new an(f),a)]}u.layoutTextSize=l["text-size"].possiblyEvaluate(new an(t.zoom+1),a),u.layoutIconSize=l["icon-size"].possiblyEvaluate(new an(t.zoom+1),a),u.textMaxSize=l["text-size"].possiblyEvaluate(new an(18));for(var d=24*s.get("text-line-height"),m="map"===s.get("text-rotation-alignment")&&"point"!==s.get("symbol-placement"),v=s.get("text-keep-upright"),y=s.get("text-size"),g=function(){var o=x[_],l=s.get("text-font").evaluate(o,{},a).join(","),c=y.evaluate(o,{},a),p=u.layoutTextSize.evaluate(o,{},a),h=u.layoutIconSize.evaluate(o,{},a),f={horizontal:{},vertical:void 0},g=o.text,b=[0,0];if(g){var w=g.toString(),S=24*s.get("text-letter-spacing").evaluate(o,{},a),E=function(t){for(var e=0,i=t;e=8192||p.y<0||p.y>=8192||function(t,e,i,r,n,o,a,s,l,u,c,p,h,f,d,m,v,y,g,_,x,b,w,S,E){var C,k,A,P,I,M=t.addToLineVertexArray(e,i),z=0,D=0,O=0,R=0,L=-1,F=-1,B={},N=po(""),j=0,V=0;if(void 0===s._unevaluatedLayout.getValue("text-radial-offset")?(j=(C=s.layout.get("text-offset").evaluate(x,{},S).map((function(t){return 24*t})))[0],V=C[1]):(j=24*s.layout.get("text-radial-offset").evaluate(x,{},S),V=iu),t.allowVerticalPlacement&&r.vertical){var U=s.layout.get("text-rotate").evaluate(x,{},S)+90;P=new Kl(l,e,u,c,p,r.vertical,h,f,d,U),a&&(I=new Kl(l,e,u,c,p,a,v,y,d,U))}if(n){var q=s.layout.get("icon-rotate").evaluate(x,{}),$="none"!==s.layout.get("icon-text-fit"),Z=Zl(n,q,w,$),G=a?Zl(a,q,w,$):void 0;A=new Kl(l,e,u,c,p,n,v,y,!1,q),z=4*Z.length;var X=t.iconSizeData,H=null;"source"===X.kind?(H=[128*s.layout.get("icon-size").evaluate(x,{})])[0]>32640&&T(t.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'):"composite"===X.kind&&((H=[128*b.compositeIconSizes[0].evaluate(x,{},S),128*b.compositeIconSizes[1].evaluate(x,{},S)])[0]>32640||H[1]>32640)&&T(t.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'),t.addSymbols(t.icon,Z,H,_,g,x,!1,e,M.lineStartIndex,M.lineLength,-1,S),L=t.icon.placedSymbolArray.length-1,G&&(D=4*G.length,t.addSymbols(t.icon,G,H,_,g,x,_l.vertical,e,M.lineStartIndex,M.lineLength,-1,S),F=t.icon.placedSymbolArray.length-1)}for(var W in r.horizontal){var K=r.horizontal[W];if(!k){N=po(K.text);var Y=s.layout.get("text-rotate").evaluate(x,{},S);k=new Kl(l,e,u,c,p,K,h,f,d,Y)}var J=1===K.positionedLines.length;if(O+=ou(t,e,K,o,s,d,x,m,M,r.vertical?_l.horizontal:_l.horizontalOnly,J?Object.keys(r.horizontal):[W],B,L,b,S),J)break}r.vertical&&(R+=ou(t,e,r.vertical,o,s,d,x,m,M,_l.vertical,["vertical"],B,F,b,S));var Q=k?k.boxStartIndex:t.collisionBoxArray.length,tt=k?k.boxEndIndex:t.collisionBoxArray.length,et=P?P.boxStartIndex:t.collisionBoxArray.length,it=P?P.boxEndIndex:t.collisionBoxArray.length,rt=A?A.boxStartIndex:t.collisionBoxArray.length,nt=A?A.boxEndIndex:t.collisionBoxArray.length,ot=I?I.boxStartIndex:t.collisionBoxArray.length,at=I?I.boxEndIndex:t.collisionBoxArray.length,st=-1,lt=function(t,e){return t&&t.circleDiameter?Math.max(t.circleDiameter,e):e};st=lt(k,st),st=lt(P,st),st=lt(A,st);var ut=(st=lt(I,st))>-1?1:0;ut&&(st*=E/24),t.glyphOffsetArray.length>=mu.MAX_GLYPHS&&T("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==x.sortKey&&t.addToSortKeyRanges(t.symbolInstances.length,x.sortKey),t.symbolInstances.emplaceBack(e.x,e.y,B.right>=0?B.right:-1,B.center>=0?B.center:-1,B.left>=0?B.left:-1,B.vertical||-1,L,F,N,Q,tt,et,it,rt,nt,ot,at,u,O,R,z,D,ut,0,h,j,V,st)}(t,p,s,i,r,n,h,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,y,b,E,l,_,w,C,d,e,o,u,c,a)};if("line"===k)for(var M=0,z=$l(e.geometry,0,0,8192,8192);M1){var j=Ul(N,S,i.vertical||m,r,24,g);j&&I(N,j)}}else if("Polygon"===e.type)for(var V=0,U=es(e.geometry,0);V=A.maxzoom||"none"!==A.visibility&&(a(k,this.zoom,r),(m[A.id]=A.createBucket({index:c.bucketLayerIDs.length,layers:k,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:x,sourceID:this.source})).populate(b,v,this.tileID.canonical),c.bucketLayerIDs.push(k.map((function(t){return t.id}))))}}}var P=t.mapObject(v.glyphDependencies,(function(t){return Object.keys(t).map(Number)}));Object.keys(P).length?o.send("getGlyphs",{uid:this.uid,stacks:P},(function(t,e){p||(p=t,h=e,z.call(l))})):h={};var I=Object.keys(v.iconDependencies);I.length?o.send("getImages",{icons:I,source:this.source,tileID:this.tileID,type:"icons"},(function(t,e){p||(p=t,f=e,z.call(l))})):f={};var M=Object.keys(v.patternDependencies);function z(){if(p)return s(p);if(h&&f&&d){var e=new n(h),i=new t.ImageAtlas(f,d);for(var o in m){var l=m[o];l instanceof t.SymbolBucket?(a(l.layers,this.zoom,r),t.performSymbolLayout(l,h,e.positions,f,i.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):l.hasPattern&&(l instanceof t.LineBucket||l instanceof t.FillBucket||l instanceof t.FillExtrusionBucket)&&(a(l.layers,this.zoom,r),l.addFeatures(v,this.tileID.canonical,i.patternPositions))}this.status="done",s(null,{buckets:t.values(m).filter((function(t){return!t.isEmpty()})),featureIndex:c,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:e.image,imageAtlas:i,glyphMap:this.returnDependencies?h:null,iconMap:this.returnDependencies?f:null,glyphPositions:this.returnDependencies?e.positions:null})}}M.length?o.send("getImages",{icons:M,source:this.source,tileID:this.tileID,type:"patterns"},(function(t,e){p||(p=t,d=e,z.call(l))})):d={},z.call(this)};var l=function(t,e,i,r){this.actor=t,this.layerIndex=e,this.availableImages=i,this.loadVectorData=r||s,this.loading={},this.loaded={}};l.prototype.loadTile=function(e,i){var r=this,n=e.uid;this.loading||(this.loading={});var a=!!(e&&e.request&&e.request.collectResourceTiming)&&new t.RequestPerformance(e.request),s=this.loading[n]=new o(e);s.abort=this.loadVectorData(e,(function(e,o){if(delete r.loading[n],e||!o)return s.status="done",r.loaded[n]=s,i(e);var l=o.rawData,u={};o.expires&&(u.expires=o.expires),o.cacheControl&&(u.cacheControl=o.cacheControl);var c={};if(a){var p=a.finish();p&&(c.resourceTiming=JSON.parse(JSON.stringify(p)))}s.vectorTile=o.vectorTile,s.parse(o.vectorTile,r.layerIndex,r.availableImages,r.actor,(function(e,r){if(e||!r)return i(e);i(null,t.extend({rawTileData:l.slice(0)},r,u,c))})),r.loaded=r.loaded||{},r.loaded[n]=s}))},l.prototype.reloadTile=function(t,e){var i=this,r=this.loaded,n=t.uid,o=this;if(r&&r[n]){var a=r[n];a.showCollisionBoxes=t.showCollisionBoxes;var s=function(t,r){var n=a.reloadCallback;n&&(delete a.reloadCallback,a.parse(a.vectorTile,o.layerIndex,i.availableImages,o.actor,n)),e(t,r)};"parsing"===a.status?a.reloadCallback=s:"done"===a.status&&(a.vectorTile?a.parse(a.vectorTile,this.layerIndex,this.availableImages,this.actor,s):s())}},l.prototype.abortTile=function(t,e){var i=this.loading,r=t.uid;i&&i[r]&&i[r].abort&&(i[r].abort(),delete i[r]),e()},l.prototype.removeTile=function(t,e){var i=this.loaded,r=t.uid;i&&i[r]&&delete i[r],e()};var u=t.window.ImageBitmap,c=function(){this.loaded={}};function p(t,e){if(0!==t.length){h(t[0],e);for(var i=1;i=0!=!!e&&t.reverse()}c.prototype.loadTile=function(e,i){var r=e.uid,n=e.encoding,o=e.rawImageData,a=u&&o instanceof u?this.getImageData(o):o,s=new t.DEMData(r,a,n);this.loaded=this.loaded||{},this.loaded[r]=s,i(null,s)},c.prototype.getImageData=function(e){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(e.width,e.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=e.width,this.offscreenCanvas.height=e.height,this.offscreenCanvasContext.drawImage(e,0,0,e.width,e.height);var i=this.offscreenCanvasContext.getImageData(-1,-1,e.width+2,e.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new t.RGBAImage({width:i.width,height:i.height},i.data)},c.prototype.removeTile=function(t){var e=this.loaded,i=t.uid;e&&e[i]&&delete e[i]};var f=t.vectorTile.VectorTileFeature.prototype.toGeoJSON,d=function(e){this._feature=e,this.extent=t.EXTENT,this.type=e.type,this.properties=e.tags,"id"in e&&!isNaN(e.id)&&(this.id=parseInt(e.id,10))};d.prototype.loadGeometry=function(){if(1===this._feature.type){for(var e=[],i=0,r=this._feature.geometry;i>31}function A(t,e){for(var i=t.loadGeometry(),r=t.type,n=0,o=0,a=i.length,s=0;s>1;!function t(e,i,r,n,o,a){for(;o>n;){if(o-n>600){var s=o-n+1,l=r-n+1,u=Math.log(s),c=.5*Math.exp(2*u/3),p=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2<0?-1:1);t(e,i,r,Math.max(n,Math.floor(r-l*c/s+p)),Math.min(o,Math.floor(r+(s-l)*c/s+p)),a)}var h=i[2*r+a],f=n,d=o;for(I(e,i,n,r),i[2*o+a]>h&&I(e,i,n,o);fh;)d--}i[2*n+a]===h?I(e,i,n,d):I(e,i,++d,o),d<=r&&(n=d+1),r<=d&&(o=d-1)}}(e,i,s,n,o,a%2),t(e,i,r,n,s-1,a+1),t(e,i,r,s+1,o,a+1)}}(a,s,r,0,a.length-1,0)};R.prototype.range=function(t,e,i,r){return function(t,e,i,r,n,o,a){for(var s,l,u=[0,t.length-1,0],c=[];u.length;){var p=u.pop(),h=u.pop(),f=u.pop();if(h-f<=a)for(var d=f;d<=h;d++)l=e[2*d+1],(s=e[2*d])>=i&&s<=n&&l>=r&&l<=o&&c.push(t[d]);else{var m=Math.floor((f+h)/2);l=e[2*m+1],(s=e[2*m])>=i&&s<=n&&l>=r&&l<=o&&c.push(t[m]);var v=(p+1)%2;(0===p?i<=s:r<=l)&&(u.push(f),u.push(m-1),u.push(v)),(0===p?n>=s:o>=l)&&(u.push(m+1),u.push(h),u.push(v))}}return c}(this.ids,this.coords,t,e,i,r,this.nodeSize)},R.prototype.within=function(t,e,i){return function(t,e,i,r,n,o){for(var a=[0,t.length-1,0],s=[],l=n*n;a.length;){var u=a.pop(),c=a.pop(),p=a.pop();if(c-p<=o)for(var h=p;h<=c;h++)z(e[2*h],e[2*h+1],i,r)<=l&&s.push(t[h]);else{var f=Math.floor((p+c)/2),d=e[2*f],m=e[2*f+1];z(d,m,i,r)<=l&&s.push(t[f]);var v=(u+1)%2;(0===u?i-n<=d:r-n<=m)&&(a.push(p),a.push(f-1),a.push(v)),(0===u?i+n>=d:r+n>=m)&&(a.push(f+1),a.push(c),a.push(v))}}return s}(this.ids,this.coords,t,e,i,this.nodeSize)};var L={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(t){return t}},F=function(t){this.options=$(Object.create(L),t),this.trees=new Array(this.options.maxZoom+1)};function B(t,e,i,r,n){return{x:t,y:e,zoom:1/0,id:i,parentId:-1,numPoints:r,properties:n}}function N(t,e){var i=t.geometry.coordinates,r=i[1];return{x:U(i[0]),y:q(r),zoom:1/0,index:e,parentId:-1}}function j(t){return{type:"Feature",id:t.id,properties:V(t),geometry:{type:"Point",coordinates:[(r=t.x,360*(r-.5)),(e=t.y,i=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(i))/Math.PI-90)]}};var e,i,r}function V(t){var e=t.numPoints,i=e>=1e4?Math.round(e/1e3)+"k":e>=1e3?Math.round(e/100)/10+"k":e;return $($({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:i})}function U(t){return t/360+.5}function q(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 $(t,e){for(var i in e)t[i]=e[i];return t}function Z(t){return t.x}function G(t){return t.y}function X(t,e,i,r,n,o){var a=n-i,s=o-r;if(0!==a||0!==s){var l=((t-i)*a+(e-r)*s)/(a*a+s*s);l>1?(i=n,r=o):l>0&&(i+=a*l,r+=s*l)}return(a=t-i)*a+(s=e-r)*s}function H(t,e,i,r){var n={id:void 0===t?null:t,type:e,geometry:i,tags:r,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)W(t,e);else if("Polygon"===i||"MultiLineString"===i)for(var r=0;r0&&(a+=r?(n*u-l*o)/2:Math.sqrt(Math.pow(l-n,2)+Math.pow(u-o,2))),n=l,o=u}var c=e.length-3;e[2]=1,function t(e,i,r,n){for(var o,a=n,s=r-i>>1,l=r-i,u=e[i],c=e[i+1],p=e[r],h=e[r+1],f=i+3;fa)o=f,a=d;else if(d===a){var m=Math.abs(f-s);mn&&(o-i>3&&t(e,i,o,n),e[o+2]=a,r-o>3&&t(e,o,r,n))}(e,0,c,i),e[c+2]=1,e.size=Math.abs(a),e.start=0,e.end=e.size}function Q(t,e,i,r){for(var n=0;n1?1:i}function it(t,e,i,r,n,o,a,s){if(r/=e,o>=(i/=e)&&a=r)return null;for(var l=[],u=0;u=i&&d=r)){var m=[];if("Point"===h||"MultiPoint"===h)rt(p,m,i,r,n);else if("LineString"===h)nt(p,m,i,r,n,!1,s.lineMetrics);else if("MultiLineString"===h)at(p,m,i,r,n,!1);else if("Polygon"===h)at(p,m,i,r,n,!0);else if("MultiPolygon"===h)for(var v=0;v=i&&a<=r&&(e.push(t[o]),e.push(t[o+1]),e.push(t[o+2]))}}function nt(t,e,i,r,n,o,a){for(var s,l,u=ot(t),c=0===n?lt:ut,p=t.start,h=0;hi&&(l=c(u,f,d,v,y,i),a&&(u.start=p+s*l)):g>r?_=i&&(l=c(u,f,d,v,y,i),x=!0),_>r&&g<=r&&(l=c(u,f,d,v,y,r),x=!0),!o&&x&&(a&&(u.end=p+s*l),e.push(u),u=ot(t)),a&&(p+=s)}var b=t.length-3;f=t[b],d=t[b+1],m=t[b+2],(g=0===n?f:d)>=i&&g<=r&&st(u,f,d,m),b=u.length-3,o&&b>=3&&(u[b]!==u[0]||u[b+1]!==u[1])&&st(u,u[0],u[1],u[2]),u.length&&e.push(u)}function ot(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function at(t,e,i,r,n,o){for(var a=0;aa.maxX&&(a.maxX=c),p>a.maxY&&(a.maxY=p)}return a}function mt(t,e,i,r){var n=e.geometry,o=e.type,a=[];if("Point"===o||"MultiPoint"===o)for(var s=0;s0&&e.size<(n?a:r))i.numPoints+=e.length/3;else{for(var s=[],l=0;la)&&(i.numSimplified++,s.push(e[l]),s.push(e[l+1])),i.numPoints++;n&&function(t,e){for(var i=0,r=0,n=t.length,o=n-2;r0===e)for(r=0,n=t.length;r24)throw new Error("maxZoom should be in the 0-24 range");if(e.promoteId&&e.generateId)throw new Error("promoteId and generateId cannot be used together.");var r=function(t,e){var i=[];if("FeatureCollection"===t.type)for(var r=0;r=i;s--){Date.now();o=this._cluster(o,s),this.trees[s]=new R(o,Z,G,n,Float32Array)}return this},F.prototype.getClusters=function(t,e){var i=((t[0]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,t[1])),n=180===t[2]?180:((t[2]+180)%360+360)%360-180,o=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)i=-180,n=180;else if(i>n){var a=this.getClusters([i,r,180,o],e),s=this.getClusters([-180,r,n,o],e);return a.concat(s)}for(var l=this.trees[this._limitZoom(e)],u=[],c=0,p=l.range(U(i),q(o),U(n),q(r));ce&&(h+=m.numPoints||1)}if(h>=o){for(var v=l.x*p,y=l.y*p,g=n&&p>1?this._map(l,!0):null,_=(s<<5)+(e+1)+this.points.length,x=0,b=c;x1)for(var S=0,E=c;S>5},F.prototype._getOriginZoom=function(t){return(t-this.points.length)%32},F.prototype._map=function(t,e){if(t.numPoints)return e?$({},t.properties):t.properties;var i=this.points[t.index].properties,r=this.options.map(i);return e&&r===i?$({},r):r},yt.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},yt.prototype.splitTile=function(t,e,i,r,n,o,a){for(var s=[t,e,i,r],l=this.options,u=l.debug;s.length;){r=s.pop(),i=s.pop(),e=s.pop(),t=s.pop();var c=1<24)return null;var o=1<0;)l--,u=Math.floor(u/2),c=Math.floor(c/2),s=this.tiles[gt(l,u,c)];return s&&s.source?(this.splitTile(s.source,l,u,c,t,e,i),this.tiles[a]?ht(this.tiles[a],n):null):null};var xt=function(e){function i(t,i,r,n){e.call(this,t,i,r,_t),n&&(this.loadGeoJSON=n)}return e&&(i.__proto__=e),(i.prototype=Object.create(e&&e.prototype)).constructor=i,i.prototype.loadData=function(t,e){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=e,this._pendingLoadDataParams=t,this._state&&"Idle"!==this._state?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},i.prototype._loadData=function(){var e=this;if(this._pendingCallback&&this._pendingLoadDataParams){var i=this._pendingCallback,r=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var n=!!(r&&r.request&&r.request.collectResourceTiming)&&new t.RequestPerformance(r.request);this.loadGeoJSON(r,(function(o,a){if(o||!a)return i(o);if("object"!=typeof a)return i(new Error("Input data given to '"+r.source+"' is not a valid GeoJSON object."));!function t(e,i){var r,n=e&&e.type;if("FeatureCollection"===n)for(r=0;r=0?0:e.button},i.remove=function(t){t.parentNode&&t.parentNode.removeChild(t)};var h=function(e){function i(){e.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new t.RGBAImage({width:1,height:1}),this.dirty=!0}return e&&(i.__proto__=e),(i.prototype=Object.create(e&&e.prototype)).constructor=i,i.prototype.isLoaded=function(){return this.loaded},i.prototype.setLoaded=function(t){if(this.loaded!==t&&(this.loaded=t,t)){for(var e=0,i=this.requestors;e=0?1.2:1))}function y(t,e,i,r,n,o,a){for(var s=0;s65535)e(new Error("glyphs > 65535 not supported"));else if(o.ranges[s])e(null,{stack:i,id:n,glyph:a});else{var l=o.requests[s];l||(l=o.requests[s]=[],_.loadGlyphRange(i,s,r.url,r.requestManager,(function(t,e){if(e){for(var i in e)r._doesCharSupportLocalGlyph(+i)||(o.glyphs[+i]=e[+i]);o.ranges[s]=!0}for(var n=0,a=l;n1&&(s=t[++a]);var u=Math.abs(l-s.left),c=Math.abs(l-s.right),p=Math.min(u,c),h=void 0,f=n/i*(r+1);if(s.isDash){var d=r-Math.abs(f);h=Math.sqrt(p*p+d*d)}else h=r-Math.sqrt(p*p+f*f);this.data[o+l]=Math.max(0,Math.min(255,h+128))}},T.prototype.addRegularDash=function(t){for(var e=t.length-1;e>=0;--e){var i=t[e],r=t[e+1];i.zeroLength?t.splice(e,1):r&&r.isDash===i.isDash&&(r.left=i.left,t.splice(e,1))}var n=t[0],o=t[t.length-1];n.isDash===o.isDash&&(n.left=o.left-this.width,o.right=n.right+this.width);for(var a=this.width*this.nextRow,s=0,l=t[s],u=0;u1&&(l=t[++s]);var c=Math.abs(u-l.left),p=Math.abs(u-l.right),h=Math.min(c,p);this.data[a+u]=Math.max(0,Math.min(255,(l.isDash?h:-h)+128))}},T.prototype.addDash=function(e,i){var r=i?7:0,n=2*r+1;if(this.nextRow+n>this.height)return t.warnOnce("LineAtlas out of space"),null;for(var o=0,a=0;a=r&&e.x=n&&e.y0&&(l[new t.OverscaledTileID(e.overscaledZ,o,i.z,n,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,s,i.z,a,i.y-1).key]={backfilled:!1}),i.y+10&&(r.resourceTiming=e._resourceTiming,e._resourceTiming=[]),e.fire(new t.Event("data",r))}}))},i.prototype.onAdd=function(t){this.map=t,this.load()},i.prototype.setData=function(e){var i=this;return this._data=e,this.fire(new t.Event("dataloading",{dataType:"source"})),this._updateWorkerData((function(e){if(e)i.fire(new t.ErrorEvent(e));else{var r={dataType:"source",sourceDataType:"content"};i._collectResourceTiming&&i._resourceTiming&&i._resourceTiming.length>0&&(r.resourceTiming=i._resourceTiming,i._resourceTiming=[]),i.fire(new t.Event("data",r))}})),this},i.prototype.getClusterExpansionZoom=function(t,e){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:t,source:this.id},e),this},i.prototype.getClusterChildren=function(t,e){return this.actor.send("geojson.getClusterChildren",{clusterId:t,source:this.id},e),this},i.prototype.getClusterLeaves=function(t,e,i,r){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:t,limit:e,offset:i},r),this},i.prototype._updateWorkerData=function(e){var i=this;this._loaded=!1;var r=t.extend({},this.workerOptions),n=this._data;"string"==typeof n?(r.request=this.map._requestManager.transformRequest(t.browser.resolveURL(n),t.ResourceType.Source),r.request.collectResourceTiming=this._collectResourceTiming):r.data=JSON.stringify(n),this.actor.send(this.type+".loadData",r,(function(t,n){i._removed||n&&n.abandoned||(i._loaded=!0,n&&n.resourceTiming&&n.resourceTiming[i.id]&&(i._resourceTiming=n.resourceTiming[i.id].slice(0)),i.actor.send(i.type+".coalesce",{source:r.source},null),e(t))}))},i.prototype.loaded=function(){return this._loaded},i.prototype.loadTile=function(e,i){var r=this,n=e.actor?"reloadTile":"loadTile";e.actor=this.actor,e.request=this.actor.send(n,{type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},(function(t,o){return delete e.request,e.unloadVectorData(),e.aborted?i(null):t?i(t):(e.loadVectorData(o,r.map.painter,"reloadTile"===n),i(null))}))},i.prototype.abortTile=function(t){t.request&&(t.request.cancel(),delete t.request),t.aborted=!0},i.prototype.unloadTile=function(t){t.unloadVectorData(),this.actor.send("removeTile",{uid:t.uid,type:this.type,source:this.id})},i.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},i.prototype.serialize=function(){return t.extend({},this._options,{type:this.type,data:this._data})},i.prototype.hasTransition=function(){return!1},i}(t.Evented),M=t.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),z=function(e){function i(t,i,r,n){e.call(this),this.id=t,this.dispatcher=r,this.coordinates=i.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(n),this.options=i}return e&&(i.__proto__=e),(i.prototype=Object.create(e&&e.prototype)).constructor=i,i.prototype.load=function(e,i){var r=this;this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this.url=this.options.url,t.getImage(this.map._requestManager.transformRequest(this.url,t.ResourceType.Image),(function(n,o){r._loaded=!0,n?r.fire(new t.ErrorEvent(n)):o&&(r.image=o,e&&(r.coordinates=e),i&&i(),r._finishLoading())}))},i.prototype.loaded=function(){return this._loaded},i.prototype.updateImage=function(t){var e=this;return this.image&&t.url?(this.options.url=t.url,this.load(t.coordinates,(function(){e.texture=null})),this):this},i.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})))},i.prototype.onAdd=function(t){this.map=t,this.load()},i.prototype.setCoordinates=function(e){var i=this;this.coordinates=e;var r=e.map(t.MercatorCoordinate.fromLngLat);this.tileID=function(e){for(var i=1/0,r=1/0,n=-1/0,o=-1/0,a=0,s=e;ai.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}},i.prototype.getVideo=function(){return this.video},i.prototype.onAdd=function(t){this.map||(this.map=t,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},i.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState<2)){var e=this.map.painter.context,i=e.gl;for(var r in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,M.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),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.tiles){var n=this.tiles[r];"loaded"!==n.state&&(n.state="loaded",n.texture=this.texture)}}},i.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},i.prototype.hasTransition=function(){return this.video&&!this.video.paused},i}(z),O=function(e){function i(i,r,n,o){e.call(this,i,r,n,o),r.coordinates?Array.isArray(r.coordinates)&&4===r.coordinates.length&&!r.coordinates.some((function(t){return!Array.isArray(t)||2!==t.length||t.some((function(t){return"number"!=typeof t}))}))||this.fire(new t.ErrorEvent(new t.ValidationError("sources."+i,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.ErrorEvent(new t.ValidationError("sources."+i,null,'missing required property "coordinates"'))),r.animate&&"boolean"!=typeof r.animate&&this.fire(new t.ErrorEvent(new t.ValidationError("sources."+i,null,'optional "animate" property must be a boolean value'))),r.canvas?"string"==typeof r.canvas||r.canvas instanceof t.window.HTMLCanvasElement||this.fire(new t.ErrorEvent(new t.ValidationError("sources."+i,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."+i,null,'missing required property "canvas"'))),this.options=r,this.animate=void 0===r.animate||r.animate}return e&&(i.__proto__=e),(i.prototype=Object.create(e&&e.prototype)).constructor=i,i.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof t.window.HTMLCanvasElement?this.options.canvas:t.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new t.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},i.prototype.getCanvas=function(){return this.canvas},i.prototype.onAdd=function(t){this.map=t,this.load(),this.canvas&&this.animate&&this.play()},i.prototype.onRemove=function(){this.pause()},i.prototype.prepare=function(){var e=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,e=!0),!this._hasInvalidDimensions()&&0!==Object.keys(this.tiles).length){var i=this.map.painter.context,r=i.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=i.createVertexBuffer(this._boundsArray,M.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(e||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new t.Texture(i,this.canvas,r.RGBA,{premultiply:!0}),this.tiles){var o=this.tiles[n];"loaded"!==o.state&&(o.state="loaded",o.texture=this.texture)}}},i.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},i.prototype.hasTransition=function(){return this._playing},i.prototype._hasInvalidDimensions=function(){for(var t=0,e=[this.canvas.width,this.canvas.height];tthis.max){var a=this._getAndRemoveByKey(this.order[0]);a&&this.onRemove(a)}return this},N.prototype.has=function(t){return t.wrapped().key in this.data},N.prototype.getAndRemove=function(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null},N.prototype._getAndRemoveByKey=function(t){var e=this.data[t].shift();return e.timeout&&clearTimeout(e.timeout),0===this.data[t].length&&delete this.data[t],this.order.splice(this.order.indexOf(t),1),e.value},N.prototype.getByKey=function(t){var e=this.data[t];return e?e[0].value:null},N.prototype.get=function(t){return this.has(t)?this.data[t.wrapped().key][0].value:null},N.prototype.remove=function(t,e){if(!this.has(t))return this;var i=t.wrapped().key,r=void 0===e?0:this.data[i].indexOf(e),n=this.data[i][r];return this.data[i].splice(r,1),n.timeout&&clearTimeout(n.timeout),0===this.data[i].length&&delete this.data[i],this.onRemove(n.value),this.order.splice(this.order.indexOf(i),1),this},N.prototype.setMaxSize=function(t){for(this.max=t;this.order.length>this.max;){var e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this},N.prototype.filter=function(t){var e=[];for(var i in this.data)for(var r=0,n=this.data[i];r1||(Math.abs(i)>1&&(1===Math.abs(i+n)?i+=n:1===Math.abs(i-n)&&(i-=n)),e.dem&&t.dem&&(t.dem.backfillBorder(e.dem,i,r),t.neighboringTiles&&t.neighboringTiles[o]&&(t.neighboringTiles[o].backfilled=!0)))}},i.prototype.getTile=function(t){return this.getTileByID(t.key)},i.prototype.getTileByID=function(t){return this._tiles[t]},i.prototype._retainLoadedChildren=function(t,e,i,r){for(var n in this._tiles){var o=this._tiles[n];if(!(r[n]||!o.hasData()||o.tileID.overscaledZ<=e||o.tileID.overscaledZ>i)){for(var a=o.tileID;o&&o.tileID.overscaledZ>e+1;){var s=o.tileID.scaledTo(o.tileID.overscaledZ-1);(o=this._tiles[s.key])&&o.hasData()&&(a=s)}for(var l=a;l.overscaledZ>e;)if(t[(l=l.scaledTo(l.overscaledZ-1)).key]){r[a.key]=a;break}}}},i.prototype.findLoadedParent=function(t,e){if(t.key in this._loadedParentTiles){var i=this._loadedParentTiles[t.key];return i&&i.tileID.overscaledZ>=e?i:null}for(var r=t.overscaledZ-1;r>=e;r--){var n=t.scaledTo(r),o=this._getLoadedTile(n);if(o)return o}},i.prototype._getLoadedTile=function(t){var e=this._tiles[t.key];return e&&e.hasData()?e:this._cache.getByKey(t.wrapped().key)},i.prototype.updateCacheSize=function(t){var e=Math.ceil(t.width/this._source.tileSize)+1,i=Math.ceil(t.height/this._source.tileSize)+1,r=Math.floor(e*i*5),n="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,r):r;this._cache.setMaxSize(n)},i.prototype.handleWrapJump=function(t){var e=Math.round((t-(void 0===this._prevLng?t:this._prevLng))/360);if(this._prevLng=t,e){var i={};for(var r in this._tiles){var n=this._tiles[r];n.tileID=n.tileID.unwrapTo(n.tileID.wrap+e),i[n.tileID.key]=n}for(var o in this._tiles=i,this._timers)clearTimeout(this._timers[o]),delete this._timers[o];for(var a in this._tiles)this._setTileReloadTimer(a,this._tiles[a])}},i.prototype.update=function(e){var r=this;if(this.transform=e,this._sourceLoaded&&!this._paused){var n;this.updateCacheSize(e),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?n=e.getVisibleUnwrappedCoordinates(this._source.tileID).map((function(e){return new t.OverscaledTileID(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y)})):(n=e.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(n=n.filter((function(t){return r._source.hasTile(t)})))):n=[];var o=e.coveringZoomLevel(this._source),a=Math.max(o-i.maxOverzooming,this._source.minzoom),s=Math.max(o+i.maxUnderzooming,this._source.minzoom),l=this._updateRetainedTiles(n,o);if(zt(this._source.type)){for(var u={},c={},p=0,h=Object.keys(l);pthis._source.maxzoom){var v=d.children(this._source.maxzoom)[0],y=this.getTile(v);if(y&&y.hasData()){r[v.key]=v;continue}}else{var g=d.children(this._source.maxzoom);if(r[g[0].key]&&r[g[1].key]&&r[g[2].key]&&r[g[3].key])continue}for(var _=m.wasRequested(),x=d.overscaledZ-1;x>=o;--x){var b=d.scaledTo(x);if(n[b.key])break;if(n[b.key]=!0,!(m=this.getTile(b))&&_&&(m=this._addTile(b)),m&&(r[b.key]=b,_=m.wasRequested(),m.hasData()))break}}}return r},i.prototype._updateLoadedParentTileCache=function(){for(var t in this._loadedParentTiles={},this._tiles){for(var e=[],i=void 0,r=this._tiles[t].tileID;r.overscaledZ>0;){if(r.key in this._loadedParentTiles){i=this._loadedParentTiles[r.key];break}e.push(r.key);var n=r.scaledTo(r.overscaledZ-1);if(i=this._getLoadedTile(n))break;r=n}for(var o=0,a=e;o0||(e.hasData()&&"reloading"!==e.state?this._cache.add(e.tileID,e,e.getExpiryTimeout()):(e.aborted=!0,this._abortTile(e),this._unloadTile(e))))},i.prototype.clearTiles=function(){for(var t in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(t);this._cache.reset()},i.prototype.tilesIn=function(e,i,r){var n=this,o=[],a=this.transform;if(!a)return o;for(var s=r?a.getCameraQueryGeometry(e):e,l=e.map((function(t){return a.pointCoordinate(t)})),u=s.map((function(t){return a.pointCoordinate(t)})),c=this.getIds(),p=1/0,h=1/0,f=-1/0,d=-1/0,m=0,v=u;m=0&&y[1].y+v>=0){var g=l.map((function(t){return s.getTilePoint(t)})),_=u.map((function(t){return s.getTilePoint(t)}));o.push({tile:r,tileID:s,queryGeometry:g,cameraQueryGeometry:_,scale:m})}}},_=0;_=t.browser.now())return!0}return!1},i.prototype.setFeatureState=function(t,e,i){this._state.updateState(t=t||"_geojsonTileLayer",e,i)},i.prototype.removeFeatureState=function(t,e,i){this._state.removeFeatureState(t=t||"_geojsonTileLayer",e,i)},i.prototype.getFeatureState=function(t,e){return this._state.getState(t=t||"_geojsonTileLayer",e)},i.prototype.setDependencies=function(t,e,i){var r=this._tiles[t];r&&r.setDependencies(e,i)},i.prototype.reloadTilesForDependencies=function(t,e){for(var i in this._tiles)this._tiles[i].hasDependency(t,e)&&this._reloadTile(i,"reloading");this._cache.filter((function(i){return!i.hasDependency(t,e)}))},i}(t.Evented);function Mt(t,e){var i=Math.abs(2*t.wrap)-+(t.wrap<0),r=Math.abs(2*e.wrap)-+(e.wrap<0);return t.overscaledZ-e.overscaledZ||r-i||e.canonical.y-t.canonical.y||e.canonical.x-t.canonical.x}function zt(t){return"raster"===t||"image"===t||"video"===t}function Dt(){return new t.window.Worker(Hn.workerUrl)}It.maxOverzooming=10,It.maxUnderzooming=3;var Ot="mapboxgl_preloaded_worker_pool",Rt=function(){this.active={}};Rt.prototype.acquire=function(t){if(!this.workers)for(this.workers=[];this.workers.length0?(n-a)/s:0;return this.points[o].mult(1-l).add(this.points[i].mult(l))};var Kt=function(t,e,i){var r=this.boxCells=[],n=this.circleCells=[];this.xCellCount=Math.ceil(t/i),this.yCellCount=Math.ceil(e/i);for(var o=0;o=-e[0]&&i<=e[0]&&r>=-e[1]&&r<=e[1]}function ie(e,i,r,n,o,a,s,l){var u=n?e.textSizeData:e.iconSizeData,c=t.evaluateSizeForZoom(u,r.transform.zoom),p=[256/r.width*2+1,256/r.height*2+1],h=n?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;h.clear();for(var f=e.lineVertexArray,d=n?e.text.placedSymbolArray:e.icon.placedSymbolArray,m=r.transform.width/r.transform.height,v=!1,y=0;yMath.abs(r.x-i.x)*n?{useVertical:!0}:(e===t.WritingMode.vertical?i.yr.x)?{needsFlipping:!0}:null}function oe(e,i,r,n,o,a,s,l,u,c,p,h,f,d){var m,v=i/24,y=e.lineOffsetX*v,g=e.lineOffsetY*v;if(e.numGlyphs>1){var _=e.glyphStartIndex+e.numGlyphs,x=e.lineStartIndex,b=e.lineStartIndex+e.lineLength,w=re(v,l,y,g,r,p,h,e,u,a,f);if(!w)return{notEnoughRoom:!0};var T=Qt(w.first.point,s).point,S=Qt(w.last.point,s).point;if(n&&!r){var E=ne(e.writingMode,T,S,d);if(E)return E}m=[w.first];for(var C=e.glyphStartIndex+1;C<_-1;C++)m.push(se(v*l.getoffsetX(C),y,g,r,p,h,e.segment,x,b,u,a,f));m.push(w.last)}else{if(n&&!r){var k=Qt(h,o).point,A=e.lineStartIndex+e.segment+1,P=new t.Point(u.getx(A),u.gety(A)),I=Qt(P,o),M=I.signedDistanceFromCamera>0?I.point:ae(h,P,k,1,o),z=ne(e.writingMode,k,M,d);if(z)return z}var D=se(v*l.getoffsetX(e.glyphStartIndex),y,g,r,p,h,e.segment,e.lineStartIndex,e.lineStartIndex+e.lineLength,u,a,f);if(!D)return{notEnoughRoom:!0};m=[D]}for(var O=0,R=m;O0?1:-1,m=0;n&&(d*=-1,m=Math.PI),d<0&&(m+=Math.PI);for(var v=d>0?l+s:l+s+1,y=o,g=o,_=0,x=0,b=Math.abs(f),w=[];_+x<=b;){if((v+=d)=u)return null;if(g=y,w.push(y),void 0===(y=h[v])){var T=new t.Point(c.getx(v),c.gety(v)),S=Qt(T,p);if(S.signedDistanceFromCamera>0)y=h[v]=S.point;else{var E=v-d;y=ae(0===_?a:new t.Point(c.getx(E),c.gety(E)),T,g,b-_+1,p)}}_+=x,x=g.dist(y)}var C=(b-_)/x,k=y.sub(g),A=k.mult(C)._add(g);A._add(k._unit()._perp()._mult(r*d));var P=m+Math.atan2(y.y-g.y,y.x-g.x);return w.push(A),{point:A,angle:P,path:w}}Kt.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Kt.prototype.insert=function(t,e,i,r,n){this._forEachCell(e,i,r,n,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(e),this.bboxes.push(i),this.bboxes.push(r),this.bboxes.push(n)},Kt.prototype.insertCircle=function(t,e,i,r){this._forEachCell(e-r,i-r,e+r,i+r,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(e),this.circles.push(i),this.circles.push(r)},Kt.prototype._insertBoxCell=function(t,e,i,r,n,o){this.boxCells[n].push(o)},Kt.prototype._insertCircleCell=function(t,e,i,r,n,o){this.circleCells[n].push(o)},Kt.prototype._query=function(t,e,i,r,n,o){if(i<0||t>this.width||r<0||e>this.height)return!n&&[];var a=[];if(t<=0&&e<=0&&this.width<=i&&this.height<=r){if(n)return!0;for(var s=0;s0:a},Kt.prototype._queryCircle=function(t,e,i,r,n){var o=t-i,a=t+i,s=e-i,l=e+i;if(a<0||o>this.width||l<0||s>this.height)return!r&&[];var u=[];return this._forEachCell(o,s,a,l,this._queryCellCircle,u,{hitTest:r,circle:{x:t,y:e,radius:i},seenUids:{box:{},circle:{}}},n),r?u.length>0:u},Kt.prototype.query=function(t,e,i,r,n){return this._query(t,e,i,r,!1,n)},Kt.prototype.hitTest=function(t,e,i,r,n){return this._query(t,e,i,r,!0,n)},Kt.prototype.hitTestCircle=function(t,e,i,r){return this._queryCircle(t,e,i,!0,r)},Kt.prototype._queryCell=function(t,e,i,r,n,o,a,s){var l=a.seenUids,u=this.boxCells[n];if(null!==u)for(var c=this.bboxes,p=0,h=u;p=c[d+0]&&r>=c[d+1]&&(!s||s(this.boxKeys[f]))){if(a.hitTest)return o.push(!0),!0;o.push({key:this.boxKeys[f],x1:c[d],y1:c[d+1],x2:c[d+2],y2:c[d+3]})}}}var m=this.circleCells[n];if(null!==m)for(var v=this.circles,y=0,g=m;ya*a+s*s},Kt.prototype._circleAndRectCollide=function(t,e,i,r,n,o,a){var s=(o-r)/2,l=Math.abs(t-(r+s));if(l>s+i)return!1;var u=(a-n)/2,c=Math.abs(e-(n+u));if(c>u+i)return!1;if(l<=s||c<=u)return!0;var p=l-s,h=c-u;return p*p+h*h<=i*i};var le=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ue(t,e){for(var i=0;i=1;M--)I.push(A.path[M]);for(var z=1;z0){for(var L=I[0].clone(),F=I[0].clone(),B=1;B=E.x&&F.x<=C.x&&L.y>=E.y&&F.y<=C.y?[I]:F.xC.x||F.yC.y?[]:t.clipLine([I],E.x,E.y,C.x,C.y)}for(var N=0,j=R;N=this.screenRightBoundary||r<100||e>this.screenBottomBoundary},pe.prototype.isInsideGrid=function(t,e,i,r){return i>=0&&t=0&&e0?(this.prevPlacement&&this.prevPlacement.variableOffsets[p.crossTileID]&&this.prevPlacement.placements[p.crossTileID]&&this.prevPlacement.placements[p.crossTileID].text&&(m=this.prevPlacement.variableOffsets[p.crossTileID].anchor),this.variableOffsets[p.crossTileID]={textOffset:v,width:i,height:r,anchor:t,textBoxScale:n,prevAnchor:m},this.markUsedJustification(h,t,p,f),h.allowVerticalPlacement&&(this.markUsedOrientation(h,f,p),this.placedOrientations[p.crossTileID]=f),{shift:y,placedGlyphBoxes:g}):void 0},be.prototype.placeLayerBucketPart=function(e,i,r){var n=this,o=e.parameters,a=o.bucket,s=o.layout,l=o.posMatrix,u=o.textLabelPlaneMatrix,c=o.labelToScreenMatrix,p=o.textPixelRatio,h=o.holdingForFade,f=o.collisionBoxArray,d=o.partiallyEvaluatedTextSize,m=o.collisionGroup,v=s.get("text-optional"),y=s.get("icon-optional"),g=s.get("text-allow-overlap"),_=s.get("icon-allow-overlap"),x="map"===s.get("text-rotation-alignment"),b="map"===s.get("text-pitch-alignment"),w="none"!==s.get("icon-text-fit"),T="viewport-y"===s.get("symbol-z-order"),S=g&&(_||!a.hasIconData()||y),E=_&&(g||!a.hasTextData()||v);!a.collisionArrays&&f&&a.deserializeCollisionBoxes(f);var C=function(e,o){if(!i[e.crossTileID])if(h)n.placements[e.crossTileID]=new me(!1,!1,!1);else{var f,T=!1,C=!1,k=!0,A=null,P={box:null,offscreen:null},I={box:null,offscreen:null},M=null,z=null,D=0,O=0,R=0;o.textFeatureIndex?D=o.textFeatureIndex:e.useRuntimeCollisionCircles&&(D=e.featureIndex),o.verticalTextFeatureIndex&&(O=o.verticalTextFeatureIndex);var L=o.textBox;if(L){var F=function(i){var r=t.WritingMode.horizontal;if(a.allowVerticalPlacement&&!i&&n.prevPlacement){var o=n.prevPlacement.placedOrientations[e.crossTileID];o&&(n.placedOrientations[e.crossTileID]=o,n.markUsedOrientation(a,r=o,e))}return r},B=function(i,r){if(a.allowVerticalPlacement&&e.numVerticalGlyphVertices>0&&o.verticalTextBox)for(var n=0,s=a.writingModes;n0&&(N=N.filter((function(t){return t!==j.anchor}))).unshift(j.anchor)}var V=function(t,i,r){for(var o=t.x2-t.x1,s=t.y2-t.y1,u=e.textBoxScale,c=w&&!_?i:null,h={box:[],offscreen:!1},f=g?2*N.length:N.length,d=0;d=N.length,e,a,r,c);if(v&&(h=v.placedGlyphBoxes)&&h.box&&h.box.length){T=!0,A=v.shift;break}}return h};B((function(){return V(L,o.iconBox,t.WritingMode.horizontal)}),(function(){var i=o.verticalTextBox;return a.allowVerticalPlacement&&!(P&&P.box&&P.box.length)&&e.numVerticalGlyphVertices>0&&i?V(i,o.verticalIconBox,t.WritingMode.vertical):{box:null,offscreen:null}})),P&&(T=P.box,k=P.offscreen);var U=F(P&&P.box);if(!T&&n.prevPlacement){var q=n.prevPlacement.variableOffsets[e.crossTileID];q&&(n.variableOffsets[e.crossTileID]=q,n.markUsedJustification(a,q.anchor,e,U))}}else{var $=function(t,i){var r=n.collisionIndex.placeCollisionBox(t,g,p,l,m.predicate);return r&&r.box&&r.box.length&&(n.markUsedOrientation(a,i,e),n.placedOrientations[e.crossTileID]=i),r};B((function(){return $(L,t.WritingMode.horizontal)}),(function(){var i=o.verticalTextBox;return a.allowVerticalPlacement&&e.numVerticalGlyphVertices>0&&i?$(i,t.WritingMode.vertical):{box:null,offscreen:null}})),F(P&&P.box&&P.box.length)}}if(T=(f=P)&&f.box&&f.box.length>0,k=f&&f.offscreen,e.useRuntimeCollisionCircles){var Z=a.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex),G=t.evaluateSizeForFeature(a.textSizeData,d,Z),X=s.get("text-padding");M=n.collisionIndex.placeCollisionCircles(g,Z,a.lineVertexArray,a.glyphOffsetArray,G,l,u,c,r,b,m.predicate,e.collisionCircleDiameter,X),T=g||M.circles.length>0&&!M.collisionDetected,k=k&&M.offscreen}if(o.iconFeatureIndex&&(R=o.iconFeatureIndex),o.iconBox){var H=function(t){var e=w&&A?xe(t,A.x,A.y,x,b,n.transform.angle):t;return n.collisionIndex.placeCollisionBox(e,_,p,l,m.predicate)};C=I&&I.box&&I.box.length&&o.verticalIconBox?(z=H(o.verticalIconBox)).box.length>0:(z=H(o.iconBox)).box.length>0,k=k&&z.offscreen}var W=v||0===e.numHorizontalGlyphVertices&&0===e.numVerticalGlyphVertices,K=y||0===e.numIconVertices;if(W||K?K?W||(C=C&&T):T=C&&T:C=T=C&&T,T&&f&&f.box&&n.collisionIndex.insertCollisionBox(f.box,s.get("text-ignore-placement"),a.bucketInstanceId,I&&I.box&&O?O:D,m.ID),C&&z&&n.collisionIndex.insertCollisionBox(z.box,s.get("icon-ignore-placement"),a.bucketInstanceId,R,m.ID),M&&(T&&n.collisionIndex.insertCollisionCircles(M.circles,s.get("text-ignore-placement"),a.bucketInstanceId,D,m.ID),r)){var Y=a.bucketInstanceId,J=n.collisionCircleArrays[Y];void 0===J&&(J=n.collisionCircleArrays[Y]=new ve);for(var Q=0;Q=0;--A){var P=k[A];C(a.symbolInstances.get(P),a.collisionArrays[P])}else for(var I=e.symbolInstanceStart;I=0&&(e.text.placedSymbolArray.get(l).crossTileID=o>=0&&l!==o?0:r.crossTileID)}},be.prototype.markUsedOrientation=function(e,i,r){for(var n=i===t.WritingMode.horizontal||i===t.WritingMode.horizontalOnly?i:0,o=i===t.WritingMode.vertical?i:0,a=0,s=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex];a0,g=n.placedOrientations[o.crossTileID],_=g===t.WritingMode.vertical,x=g===t.WritingMode.horizontal||g===t.WritingMode.horizontalOnly;if(s>0||l>0){var b=Ie(v.text);d(e.text,s,_?Me:b),d(e.text,l,x?Me:b);var w=v.text.isHidden();[o.rightJustifiedTextSymbolIndex,o.centerJustifiedTextSymbolIndex,o.leftJustifiedTextSymbolIndex].forEach((function(t){t>=0&&(e.text.placedSymbolArray.get(t).hidden=w||_?1:0)})),o.verticalPlacedTextSymbolIndex>=0&&(e.text.placedSymbolArray.get(o.verticalPlacedTextSymbolIndex).hidden=w||x?1:0);var T=n.variableOffsets[o.crossTileID];T&&n.markUsedJustification(e,T.anchor,o,g);var S=n.placedOrientations[o.crossTileID];S&&(n.markUsedJustification(e,"left",o,S),n.markUsedOrientation(e,S,o))}if(y){var E=Ie(v.icon),C=!(h&&o.verticalPlacedIconSymbolIndex&&_);o.placedIconSymbolIndex>=0&&(d(e.icon,o.numIconVertices,C?E:Me),e.icon.placedSymbolArray.get(o.placedIconSymbolIndex).hidden=v.icon.isHidden()),o.verticalPlacedIconSymbolIndex>=0&&(d(e.icon,o.numVerticalIconVertices,C?Me:E),e.icon.placedSymbolArray.get(o.verticalPlacedIconSymbolIndex).hidden=v.icon.isHidden())}if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){var k=e.collisionArrays[r];if(k){var A=new t.Point(0,0);if(k.textBox||k.verticalTextBox){var P=!0;if(u){var I=n.variableOffsets[m];I?(A=_e(I.anchor,I.width,I.height,I.textOffset,I.textBoxScale),c&&A._rotate(p?n.transform.angle:-n.transform.angle)):P=!1}k.textBox&&we(e.textCollisionBox.collisionVertexArray,v.text.placed,!P||_,A.x,A.y),k.verticalTextBox&&we(e.textCollisionBox.collisionVertexArray,v.text.placed,!P||x,A.x,A.y)}var M=Boolean(!x&&k.verticalIconBox);k.iconBox&&we(e.iconCollisionBox.collisionVertexArray,v.icon.placed,M,h?A.x:0,h?A.y:0),k.verticalIconBox&&we(e.iconCollisionBox.collisionVertexArray,v.icon.placed,!M,h?A.x:0,h?A.y:0)}}},v=0;vt},be.prototype.setStale=function(){this.stale=!0};var Te=Math.pow(2,25),Se=Math.pow(2,24),Ee=Math.pow(2,17),Ce=Math.pow(2,16),ke=Math.pow(2,9),Ae=Math.pow(2,8),Pe=Math.pow(2,1);function Ie(t){if(0===t.opacity&&!t.placed)return 0;if(1===t.opacity&&t.placed)return 4294967295;var e=t.placed?1:0,i=Math.floor(127*t.opacity);return i*Te+e*Se+i*Ee+e*Ce+i*ke+e*Ae+i*Pe+e}var Me=0,ze=function(t){this._sortAcrossTiles="viewport-y"!==t.layout.get("symbol-z-order")&&void 0!==t.layout.get("symbol-sort-key").constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};ze.prototype.continuePlacement=function(t,e,i,r,n){for(var o=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var s=i[e[this._currentPlacementIndex]],l=this.placement.collisionIndex.transform.zoom;if("symbol"===s.type&&(!s.minzoom||s.minzoom<=l)&&(!s.maxzoom||s.maxzoom>l)){if(this._inProgressLayer||(this._inProgressLayer=new ze(s)),this._inProgressLayer.continuePlacement(r[s.source],this.placement,this._showCollisionBoxes,s,a))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},De.prototype.commit=function(t){return this.placement.commit(t),this.placement};var Oe=512/t.EXTENT/2,Re=function(t,e,i){this.tileID=t,this.indexedSymbolInstances={},this.bucketInstanceId=i;for(var r=0;rt.overscaledZ)for(var s in a){var l=a[s];l.tileID.isChildOf(t)&&l.findMatches(e.symbolInstances,t,n)}else{var u=a[t.scaledTo(Number(o)).key];u&&u.findMatches(e.symbolInstances,t,n)}}for(var c=0;c1?"@2x":"",l=t.getJSON(i.transformRequest(i.normalizeSpriteURL(e,s,".json"),t.ResourceType.SpriteJSON),(function(t,e){l=null,a||(a=t,n=e,c())})),u=t.getImage(i.transformRequest(i.normalizeSpriteURL(e,s,".png"),t.ResourceType.SpriteImage),(function(t,e){u=null,a||(a=t,o=e,c())}));function c(){if(a)r(a);else if(n&&o){var e=t.browser.getImageData(o),i={};for(var s in n){var l=n[s],u=l.width,c=l.height,p=l.x,h=l.y,f=l.sdf,d=l.pixelRatio,m=l.stretchX,v=l.stretchY,y=l.content,g=new t.RGBAImage({width:u,height:c});t.RGBAImage.copy(e,g,{x:p,y:h},{x:0,y:0},{width:u,height:c}),i[s]={data:g,pixelRatio:d,sdf:f,stretchX:m,stretchY:v,content:y}}r(null,i)}}return{cancel:function(){l&&(l.cancel(),l=null),u&&(u.cancel(),u=null)}}}(e,this.map._requestManager,(function(e,r){if(i._spriteRequest=null,e)i.fire(new t.ErrorEvent(e));else if(r)for(var n in r)i.imageManager.addImage(n,r[n]);i.imageManager.setLoaded(!0),i._availableImages=i.imageManager.listImages(),i.dispatcher.broadcast("setImages",i._availableImages),i.fire(new t.Event("data",{dataType:"style"}))}))},i.prototype._validateLayer=function(e){var i=this.sourceCaches[e.source];if(i){var r=e.sourceLayer;if(r){var n=i.getSource();("geojson"===n.type||n.vectorLayerIds&&-1===n.vectorLayerIds.indexOf(r))&&this.fire(new t.ErrorEvent(new Error('Source layer "'+r+'" does not exist on source "'+n.id+'" as specified by style layer "'+e.id+'"')))}}},i.prototype.loaded=function(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(var t in this.sourceCaches)if(!this.sourceCaches[t].loaded())return!1;return!!this.imageManager.isLoaded()},i.prototype._serializeLayers=function(t){for(var e=[],i=0,r=t;i0)throw new Error("Unimplemented: "+n.map((function(t){return t.command})).join(", ")+".");return r.forEach((function(t){"setTransition"!==t.command&&i[t.command].apply(i,t.args)})),this.stylesheet=e,!0},i.prototype.addImage=function(e,i){if(this.getImage(e))return this.fire(new t.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(e,i),this._afterImageUpdated(e)},i.prototype.updateImage=function(t,e){this.imageManager.updateImage(t,e)},i.prototype.getImage=function(t){return this.imageManager.getImage(t)},i.prototype.removeImage=function(e){if(!this.getImage(e))return this.fire(new t.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(e),this._afterImageUpdated(e)},i.prototype._afterImageUpdated=function(e){this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new t.Event("data",{dataType:"style"}))},i.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},i.prototype.addSource=function(e,i,r){var n=this;if(void 0===r&&(r={}),this._checkLoaded(),void 0!==this.sourceCaches[e])throw new Error("There is already a source with this ID");if(!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.validateStyle.source,"sources."+e,i,null,r))){this.map&&this.map._collectResourceTiming&&(i.collectResourceTiming=!0);var o=this.sourceCaches[e]=new It(e,i,this.dispatcher);o.style=this,o.setEventedParent(this,(function(){return{isSourceLoaded:n.loaded(),source:o.serialize(),sourceId:e}})),o.onAdd(this.map),this._changed=!0}},i.prototype.removeSource=function(e){if(this._checkLoaded(),void 0===this.sourceCaches[e])throw new Error("There is no source with this ID");for(var i in this._layers)if(this._layers[i].source===e)return this.fire(new t.ErrorEvent(new Error('Source "'+e+'" cannot be removed while layer "'+i+'" is using it.')));var r=this.sourceCaches[e];delete this.sourceCaches[e],delete this._updatedSources[e],r.fire(new t.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:e})),r.setEventedParent(null),r.clearTiles(),r.onRemove&&r.onRemove(this.map),this._changed=!0},i.prototype.setGeoJSONSourceData=function(t,e){this._checkLoaded(),this.sourceCaches[t].getSource().setData(e),this._changed=!0},i.prototype.getSource=function(t){return this.sourceCaches[t]&&this.sourceCaches[t].getSource()},i.prototype.addLayer=function(e,i,r){void 0===r&&(r={}),this._checkLoaded();var n=e.id;if(this.getLayer(n))this.fire(new t.ErrorEvent(new Error('Layer with id "'+n+'" already exists on this map')));else{var o;if("custom"===e.type){if(Ne(this,t.validateCustomStyleLayer(e)))return;o=t.createStyleLayer(e)}else{if("object"==typeof e.source&&(this.addSource(n,e.source),e=t.clone$1(e),e=t.extend(e,{source:n})),this._validate(t.validateStyle.layer,"layers."+n,e,{arrayIndex:-1},r))return;o=t.createStyleLayer(e),this._validateLayer(o),o.setEventedParent(this,{layer:{id:n}}),this._serializedLayers[o.id]=o.serialize()}var a=i?this._order.indexOf(i):this._order.length;if(i&&-1===a)this.fire(new t.ErrorEvent(new Error('Layer with id "'+i+'" does not exist on this map.')));else{if(this._order.splice(a,0,n),this._layerOrderChanged=!0,this._layers[n]=o,this._removedLayers[n]&&o.source&&"custom"!==o.type){var s=this._removedLayers[n];delete this._removedLayers[n],s.type!==o.type?this._updatedSources[o.source]="clear":(this._updatedSources[o.source]="reload",this.sourceCaches[o.source].pause())}this._updateLayer(o),o.onAdd&&o.onAdd(this.map)}}},i.prototype.moveLayer=function(e,i){if(this._checkLoaded(),this._changed=!0,this._layers[e]){if(e!==i){var r=this._order.indexOf(e);this._order.splice(r,1);var n=i?this._order.indexOf(i):this._order.length;i&&-1===n?this.fire(new t.ErrorEvent(new Error('Layer with id "'+i+'" does not exist on this map.'))):(this._order.splice(n,0,e),this._layerOrderChanged=!0)}}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be moved.")))},i.prototype.removeLayer=function(e){this._checkLoaded();var i=this._layers[e];if(i){i.setEventedParent(null);var r=this._order.indexOf(e);this._order.splice(r,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)}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be removed.")))},i.prototype.getLayer=function(t){return this._layers[t]},i.prototype.hasLayer=function(t){return t in this._layers},i.prototype.setLayerZoomRange=function(e,i,r){this._checkLoaded();var n=this.getLayer(e);n?n.minzoom===i&&n.maxzoom===r||(null!=i&&(n.minzoom=i),null!=r&&(n.maxzoom=r),this._updateLayer(n)):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot have zoom extent.")))},i.prototype.setFilter=function(e,i,r){void 0===r&&(r={}),this._checkLoaded();var n=this.getLayer(e);if(n){if(!t.deepEqual(n.filter,i))return null==i?(n.filter=void 0,void this._updateLayer(n)):void(this._validate(t.validateStyle.filter,"layers."+n.id+".filter",i,null,r)||(n.filter=t.clone$1(i),this._updateLayer(n)))}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be filtered.")))},i.prototype.getFilter=function(e){return t.clone$1(this.getLayer(e).filter)},i.prototype.setLayoutProperty=function(e,i,r,n){void 0===n&&(n={}),this._checkLoaded();var o=this.getLayer(e);o?t.deepEqual(o.getLayoutProperty(i),r)||(o.setLayoutProperty(i,r,n),this._updateLayer(o)):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be styled.")))},i.prototype.getLayoutProperty=function(e,i){var r=this.getLayer(e);if(r)return r.getLayoutProperty(i);this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style.")))},i.prototype.setPaintProperty=function(e,i,r,n){void 0===n&&(n={}),this._checkLoaded();var o=this.getLayer(e);o?t.deepEqual(o.getPaintProperty(i),r)||(o.setPaintProperty(i,r,n)&&this._updateLayer(o),this._changed=!0,this._updatedPaintProps[e]=!0):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be styled.")))},i.prototype.getPaintProperty=function(t,e){return this.getLayer(t).getPaintProperty(e)},i.prototype.setFeatureState=function(e,i){this._checkLoaded();var r=e.source,n=e.sourceLayer,o=this.sourceCaches[r];if(void 0!==o){var a=o.getSource().type;"geojson"===a&&n?this.fire(new t.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):"vector"!==a||n?(void 0===e.id&&this.fire(new t.ErrorEvent(new Error("The feature id parameter must be provided."))),o.setFeatureState(n,e.id,i)):this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error("The source '"+r+"' does not exist in the map's style.")))},i.prototype.removeFeatureState=function(e,i){this._checkLoaded();var r=e.source,n=this.sourceCaches[r];if(void 0!==n){var o=n.getSource().type,a="vector"===o?e.sourceLayer:void 0;"vector"!==o||a?i&&"string"!=typeof e.id&&"number"!=typeof e.id?this.fire(new t.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):n.removeFeatureState(a,e.id,i):this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error("The source '"+r+"' does not exist in the map's style.")))},i.prototype.getFeatureState=function(e){this._checkLoaded();var i=e.source,r=e.sourceLayer,n=this.sourceCaches[i];if(void 0!==n){if("vector"!==n.getSource().type||r)return void 0===e.id&&this.fire(new t.ErrorEvent(new Error("The feature id parameter must be provided."))),n.getFeatureState(r,e.id);this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error("The source '"+i+"' does not exist in the map's style.")))},i.prototype.getTransition=function(){return t.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},i.prototype.serialize=function(){return t.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:t.mapObject(this.sourceCaches,(function(t){return t.serialize()})),layers:this._serializeLayers(this._order)},(function(t){return void 0!==t}))},i.prototype._updateLayer=function(t){this._updatedLayers[t.id]=!0,t.source&&!this._updatedSources[t.source]&&"raster"!==this.sourceCaches[t.source].getSource().type&&(this._updatedSources[t.source]="reload",this.sourceCaches[t.source].pause()),this._changed=!0},i.prototype._flattenAndSortRenderedFeatures=function(t){for(var e=this,i=function(t){return"fill-extrusion"===e._layers[t].type},r={},n=[],o=this._order.length-1;o>=0;o--){var a=this._order[o];if(i(a)){r[a]=o;for(var s=0,l=t;s=0;f--){var d=this._order[f];if(i(d))for(var m=n.length-1;m>=0;m--){var v=n[m].feature;if(r[v.layer.id] 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),Qe=yi("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),ti=yi("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}"),ei=yi("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}"),ii=yi("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),ri=yi("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),ni=yi("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}"),oi=yi("varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}"),ai=yi("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}"),si=yi("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),li=yi("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;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),ui=yi("uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),ci=yi("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),pi=yi("uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}"),hi=yi("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}"),fi=yi("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),di=yi("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}"),mi=yi("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}"),vi=yi("#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;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}");function yi(t,e){var i=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,r=e.match(/attribute ([\w]+) ([\w]+)/g),n=t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),o=e.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),a=o?o.concat(n):n,s={};return{fragmentSource:t=t.replace(i,(function(t,e,i,r,n){return s[n]=!0,"define"===e?"\n#ifndef HAS_UNIFORM_u_"+n+"\nvarying "+i+" "+r+" "+n+";\n#else\nuniform "+i+" "+r+" u_"+n+";\n#endif\n":"\n#ifdef HAS_UNIFORM_u_"+n+"\n "+i+" "+r+" "+n+" = u_"+n+";\n#endif\n"})),vertexSource:e=e.replace(i,(function(t,e,i,r,n){var o="float"===r?"vec2":"vec4",a=n.match(/color/)?"color":o;return s[n]?"define"===e?"\n#ifndef HAS_UNIFORM_u_"+n+"\nuniform lowp float u_"+n+"_t;\nattribute "+i+" "+o+" a_"+n+";\nvarying "+i+" "+r+" "+n+";\n#else\nuniform "+i+" "+r+" u_"+n+";\n#endif\n":"vec4"===a?"\n#ifndef HAS_UNIFORM_u_"+n+"\n "+n+" = a_"+n+";\n#else\n "+i+" "+r+" "+n+" = u_"+n+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+n+"\n "+n+" = unpack_mix_"+a+"(a_"+n+", u_"+n+"_t);\n#else\n "+i+" "+r+" "+n+" = u_"+n+";\n#endif\n":"define"===e?"\n#ifndef HAS_UNIFORM_u_"+n+"\nuniform lowp float u_"+n+"_t;\nattribute "+i+" "+o+" a_"+n+";\n#else\nuniform "+i+" "+r+" u_"+n+";\n#endif\n":"vec4"===a?"\n#ifndef HAS_UNIFORM_u_"+n+"\n "+i+" "+r+" "+n+" = a_"+n+";\n#else\n "+i+" "+r+" "+n+" = u_"+n+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+n+"\n "+i+" "+r+" "+n+" = unpack_mix_"+a+"(a_"+n+", u_"+n+"_t);\n#else\n "+i+" "+r+" "+n+" = u_"+n+";\n#endif\n"})),staticAttributes:r,staticUniforms:a}}var gi=Object.freeze({__proto__:null,prelude:Ze,background:Ge,backgroundPattern:Xe,circle:He,clippingMask:We,heatmap:Ke,heatmapTexture:Ye,collisionBox:Je,collisionCircle:Qe,debug:ti,fill:ei,fillOutline:ii,fillOutlinePattern:ri,fillPattern:ni,fillExtrusion:oi,fillExtrusionPattern:ai,hillshadePrepare:si,hillshade:li,line:ui,lineGradient:ci,linePattern:pi,lineSDF:hi,raster:fi,symbolIcon:di,symbolSDF:mi,symbolTextAndIcon:vi}),_i=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};function xi(t){for(var e=[],i=0;i>16,s>>16],u_pixel_coord_lower:[65535&a,65535&s]}}bi.prototype.draw=function(t,e,i,r,n,o,a,s,l,u,c,p,h,f,d,m){var v,y=t.gl;if(!this.failedToCreate){for(var g in t.program.set(this.program),t.setDepthMode(i),t.setStencilMode(r),t.setColorMode(n),t.setCullFace(o),this.fixedUniforms)this.fixedUniforms[g].set(a[g]);f&&f.setUniforms(t,this.binderUniforms,p,{zoom:h});for(var _=(v={},v[y.LINES]=2,v[y.TRIANGLES]=3,v[y.LINE_STRIP]=1,v)[e],x=0,b=c.get();x0?1-1/(1.001-a):-a),u_contrast_factor:(o=n.paint.get("raster-contrast"),o>0?1/(1-o):1+o),u_spin_weights:Ui(n.paint.get("raster-hue-rotate"))};var o,a};function Ui(t){t*=Math.PI/180;var 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]}var qi,$i=function(t,e,i,r,n,o,a,s,l,u){var c=n.transform;return{u_is_size_zoom_constant:+("constant"===t||"source"===t),u_is_size_feature_constant:+("constant"===t||"camera"===t),u_size_t:e?e.uSizeT:0,u_size:e?e.uSize:0,u_camera_to_center_distance:c.cameraToCenterDistance,u_pitch:c.pitch/360*2*Math.PI,u_rotate_symbol:+i,u_aspect_ratio:c.width/c.height,u_fade_change:n.options.fadeDuration?n.symbolFadeChange:1,u_matrix:o,u_label_plane_matrix:a,u_coord_matrix:s,u_is_text:+l,u_pitch_with_map:+r,u_texsize:u,u_texture:0}},Zi=function(e,i,r,n,o,a,s,l,u,c,p){var h=o.transform;return t.extend($i(e,i,r,n,o,a,s,l,u,c),{u_gamma_scale:n?Math.cos(h._pitch)*h.cameraToCenterDistance:1,u_device_pixel_ratio:t.browser.devicePixelRatio,u_is_halo:+p})},Gi=function(e,i,r,n,o,a,s,l,u,c){return t.extend(Zi(e,i,r,n,o,a,s,l,!0,u,!0),{u_texsize_icon:c,u_texture_icon:1})},Xi=function(t,e,i){return{u_matrix:t,u_opacity:e,u_color:i}},Hi=function(e,i,r,n,o,a){return t.extend(function(t,e,i,r){var n=i.imageManager.getPattern(t.from.toString()),o=i.imageManager.getPattern(t.to.toString()),a=i.imageManager.getPixelSize(),s=a.width,l=a.height,u=Math.pow(2,r.tileID.overscaledZ),c=r.tileSize*Math.pow(2,i.transform.tileZoom)/u,p=c*(r.tileID.canonical.x+r.tileID.wrap*u),h=c*r.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:n.tl,u_pattern_br_a:n.br,u_pattern_tl_b:o.tl,u_pattern_br_b:o.br,u_texsize:[s,l],u_mix:e.t,u_pattern_size_a:n.displaySize,u_pattern_size_b:o.displaySize,u_scale_a:e.fromScale,u_scale_b:e.toScale,u_tile_units_to_pixels:1/he(r,1,i.transform.tileZoom),u_pixel_coord_upper:[p>>16,h>>16],u_pixel_coord_lower:[65535&p,65535&h]}}(n,a,r,o),{u_matrix:e,u_opacity:i})},Wi={fillExtrusion:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_lightpos:new t.Uniform3f(e,i.u_lightpos),u_lightintensity:new t.Uniform1f(e,i.u_lightintensity),u_lightcolor:new t.Uniform3f(e,i.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,i.u_vertical_gradient),u_opacity:new t.Uniform1f(e,i.u_opacity)}},fillExtrusionPattern:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_lightpos:new t.Uniform3f(e,i.u_lightpos),u_lightintensity:new t.Uniform1f(e,i.u_lightintensity),u_lightcolor:new t.Uniform3f(e,i.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,i.u_vertical_gradient),u_height_factor:new t.Uniform1f(e,i.u_height_factor),u_image:new t.Uniform1i(e,i.u_image),u_texsize:new t.Uniform2f(e,i.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,i.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,i.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,i.u_scale),u_fade:new t.Uniform1f(e,i.u_fade),u_opacity:new t.Uniform1f(e,i.u_opacity)}},fill:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix)}},fillPattern:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_image:new t.Uniform1i(e,i.u_image),u_texsize:new t.Uniform2f(e,i.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,i.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,i.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,i.u_scale),u_fade:new t.Uniform1f(e,i.u_fade)}},fillOutline:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_world:new t.Uniform2f(e,i.u_world)}},fillOutlinePattern:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_world:new t.Uniform2f(e,i.u_world),u_image:new t.Uniform1i(e,i.u_image),u_texsize:new t.Uniform2f(e,i.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,i.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,i.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,i.u_scale),u_fade:new t.Uniform1f(e,i.u_fade)}},circle:function(e,i){return{u_camera_to_center_distance:new t.Uniform1f(e,i.u_camera_to_center_distance),u_scale_with_map:new t.Uniform1i(e,i.u_scale_with_map),u_pitch_with_map:new t.Uniform1i(e,i.u_pitch_with_map),u_extrude_scale:new t.Uniform2f(e,i.u_extrude_scale),u_device_pixel_ratio:new t.Uniform1f(e,i.u_device_pixel_ratio),u_matrix:new t.UniformMatrix4f(e,i.u_matrix)}},collisionBox:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_camera_to_center_distance:new t.Uniform1f(e,i.u_camera_to_center_distance),u_pixels_to_tile_units:new t.Uniform1f(e,i.u_pixels_to_tile_units),u_extrude_scale:new t.Uniform2f(e,i.u_extrude_scale),u_overscale_factor:new t.Uniform1f(e,i.u_overscale_factor)}},collisionCircle:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_inv_matrix:new t.UniformMatrix4f(e,i.u_inv_matrix),u_camera_to_center_distance:new t.Uniform1f(e,i.u_camera_to_center_distance),u_viewport_size:new t.Uniform2f(e,i.u_viewport_size)}},debug:function(e,i){return{u_color:new t.UniformColor(e,i.u_color),u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_overlay:new t.Uniform1i(e,i.u_overlay),u_overlay_scale:new t.Uniform1f(e,i.u_overlay_scale)}},clippingMask:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix)}},heatmap:function(e,i){return{u_extrude_scale:new t.Uniform1f(e,i.u_extrude_scale),u_intensity:new t.Uniform1f(e,i.u_intensity),u_matrix:new t.UniformMatrix4f(e,i.u_matrix)}},heatmapTexture:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_world:new t.Uniform2f(e,i.u_world),u_image:new t.Uniform1i(e,i.u_image),u_color_ramp:new t.Uniform1i(e,i.u_color_ramp),u_opacity:new t.Uniform1f(e,i.u_opacity)}},hillshade:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_image:new t.Uniform1i(e,i.u_image),u_latrange:new t.Uniform2f(e,i.u_latrange),u_light:new t.Uniform2f(e,i.u_light),u_shadow:new t.UniformColor(e,i.u_shadow),u_highlight:new t.UniformColor(e,i.u_highlight),u_accent:new t.UniformColor(e,i.u_accent)}},hillshadePrepare:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_image:new t.Uniform1i(e,i.u_image),u_dimension:new t.Uniform2f(e,i.u_dimension),u_zoom:new t.Uniform1f(e,i.u_zoom),u_unpack:new t.Uniform4f(e,i.u_unpack)}},line:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_ratio:new t.Uniform1f(e,i.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,i.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,i.u_units_to_pixels)}},lineGradient:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_ratio:new t.Uniform1f(e,i.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,i.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,i.u_units_to_pixels),u_image:new t.Uniform1i(e,i.u_image),u_image_height:new t.Uniform1f(e,i.u_image_height)}},linePattern:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_texsize:new t.Uniform2f(e,i.u_texsize),u_ratio:new t.Uniform1f(e,i.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,i.u_device_pixel_ratio),u_image:new t.Uniform1i(e,i.u_image),u_units_to_pixels:new t.Uniform2f(e,i.u_units_to_pixels),u_scale:new t.Uniform3f(e,i.u_scale),u_fade:new t.Uniform1f(e,i.u_fade)}},lineSDF:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_ratio:new t.Uniform1f(e,i.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,i.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,i.u_units_to_pixels),u_patternscale_a:new t.Uniform2f(e,i.u_patternscale_a),u_patternscale_b:new t.Uniform2f(e,i.u_patternscale_b),u_sdfgamma:new t.Uniform1f(e,i.u_sdfgamma),u_image:new t.Uniform1i(e,i.u_image),u_tex_y_a:new t.Uniform1f(e,i.u_tex_y_a),u_tex_y_b:new t.Uniform1f(e,i.u_tex_y_b),u_mix:new t.Uniform1f(e,i.u_mix)}},raster:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_tl_parent:new t.Uniform2f(e,i.u_tl_parent),u_scale_parent:new t.Uniform1f(e,i.u_scale_parent),u_buffer_scale:new t.Uniform1f(e,i.u_buffer_scale),u_fade_t:new t.Uniform1f(e,i.u_fade_t),u_opacity:new t.Uniform1f(e,i.u_opacity),u_image0:new t.Uniform1i(e,i.u_image0),u_image1:new t.Uniform1i(e,i.u_image1),u_brightness_low:new t.Uniform1f(e,i.u_brightness_low),u_brightness_high:new t.Uniform1f(e,i.u_brightness_high),u_saturation_factor:new t.Uniform1f(e,i.u_saturation_factor),u_contrast_factor:new t.Uniform1f(e,i.u_contrast_factor),u_spin_weights:new t.Uniform3f(e,i.u_spin_weights)}},symbolIcon:function(e,i){return{u_is_size_zoom_constant:new t.Uniform1i(e,i.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,i.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,i.u_size_t),u_size:new t.Uniform1f(e,i.u_size),u_camera_to_center_distance:new t.Uniform1f(e,i.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,i.u_pitch),u_rotate_symbol:new t.Uniform1i(e,i.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,i.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,i.u_fade_change),u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,i.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,i.u_coord_matrix),u_is_text:new t.Uniform1i(e,i.u_is_text),u_pitch_with_map:new t.Uniform1i(e,i.u_pitch_with_map),u_texsize:new t.Uniform2f(e,i.u_texsize),u_texture:new t.Uniform1i(e,i.u_texture)}},symbolSDF:function(e,i){return{u_is_size_zoom_constant:new t.Uniform1i(e,i.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,i.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,i.u_size_t),u_size:new t.Uniform1f(e,i.u_size),u_camera_to_center_distance:new t.Uniform1f(e,i.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,i.u_pitch),u_rotate_symbol:new t.Uniform1i(e,i.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,i.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,i.u_fade_change),u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,i.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,i.u_coord_matrix),u_is_text:new t.Uniform1i(e,i.u_is_text),u_pitch_with_map:new t.Uniform1i(e,i.u_pitch_with_map),u_texsize:new t.Uniform2f(e,i.u_texsize),u_texture:new t.Uniform1i(e,i.u_texture),u_gamma_scale:new t.Uniform1f(e,i.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,i.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,i.u_is_halo)}},symbolTextAndIcon:function(e,i){return{u_is_size_zoom_constant:new t.Uniform1i(e,i.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,i.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,i.u_size_t),u_size:new t.Uniform1f(e,i.u_size),u_camera_to_center_distance:new t.Uniform1f(e,i.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,i.u_pitch),u_rotate_symbol:new t.Uniform1i(e,i.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,i.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,i.u_fade_change),u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,i.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,i.u_coord_matrix),u_is_text:new t.Uniform1i(e,i.u_is_text),u_pitch_with_map:new t.Uniform1i(e,i.u_pitch_with_map),u_texsize:new t.Uniform2f(e,i.u_texsize),u_texsize_icon:new t.Uniform2f(e,i.u_texsize_icon),u_texture:new t.Uniform1i(e,i.u_texture),u_texture_icon:new t.Uniform1i(e,i.u_texture_icon),u_gamma_scale:new t.Uniform1f(e,i.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,i.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,i.u_is_halo)}},background:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_opacity:new t.Uniform1f(e,i.u_opacity),u_color:new t.UniformColor(e,i.u_color)}},backgroundPattern:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_opacity:new t.Uniform1f(e,i.u_opacity),u_image:new t.Uniform1i(e,i.u_image),u_pattern_tl_a:new t.Uniform2f(e,i.u_pattern_tl_a),u_pattern_br_a:new t.Uniform2f(e,i.u_pattern_br_a),u_pattern_tl_b:new t.Uniform2f(e,i.u_pattern_tl_b),u_pattern_br_b:new t.Uniform2f(e,i.u_pattern_br_b),u_texsize:new t.Uniform2f(e,i.u_texsize),u_mix:new t.Uniform1f(e,i.u_mix),u_pattern_size_a:new t.Uniform2f(e,i.u_pattern_size_a),u_pattern_size_b:new t.Uniform2f(e,i.u_pattern_size_b),u_scale_a:new t.Uniform1f(e,i.u_scale_a),u_scale_b:new t.Uniform1f(e,i.u_scale_b),u_pixel_coord_upper:new t.Uniform2f(e,i.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,i.u_pixel_coord_lower),u_tile_units_to_pixels:new t.Uniform1f(e,i.u_tile_units_to_pixels)}}};function Ki(e,i,r,n,o,a,s){for(var l=e.context,u=l.gl,c=e.useProgram("collisionBox"),p=[],h=0,f=0,d=0;d0){var b=t.create(),w=g;t.mul(b,y.placementInvProjMatrix,e.transform.glCoordMatrix),t.mul(b,b,y.placementViewportMatrix),p.push({circleArray:x,circleOffset:f,transform:w,invTransform:b}),f=h+=x.length/4}_&&c.draw(l,u.LINES,Et.disabled,Ct.disabled,e.colorModeForRenderPass(),At.disabled,Ii(g,e.transform,v),r.id,_.layoutVertexBuffer,_.indexBuffer,_.segments,null,e.transform.zoom,null,null,_.collisionVertexBuffer)}}if(s&&p.length){var T=e.useProgram("collisionCircle"),S=new t.StructArrayLayout2f1f2i16;S.resize(4*h),S._trim();for(var E=0,C=0,k=p;C=0&&(m[y.associatedIconIndex]={shiftedAnchor:S,angle:E})}else ue(y.numGlyphs,f)}if(p){d.clear();for(var k=e.icon.placedSymbolArray,A=0;A0){var s=t.browser.now(),l=(s-e.timeAdded)/a,u=i?(s-i.timeAdded)/a:-1,c=r.getSource(),p=o.coveringZoomLevel({tileSize:c.tileSize,roundZoom:c.roundZoom}),h=!i||Math.abs(i.tileID.overscaledZ-p)>Math.abs(e.tileID.overscaledZ-p),f=h&&e.refreshedUponExpiration?1:t.clamp(h?l:1-u,0,1);return e.refreshedUponExpiration&&l>=1&&(e.refreshedUponExpiration=!1),i?{opacity:1,mix:1-f}:{opacity:f,mix:0}}return{opacity:1,mix:0}}var lr=new t.Color(1,0,0,1),ur=new t.Color(0,1,0,1),cr=new t.Color(0,0,1,1),pr=new t.Color(1,0,1,1),hr=new t.Color(0,1,1,1);function fr(t,e,i,r){mr(t,0,e+i/2,t.transform.width,i,r)}function dr(t,e,i,r){mr(t,e-i/2,0,i,t.transform.height,r)}function mr(e,i,r,n,o,a){var s=e.context,l=s.gl;l.enable(l.SCISSOR_TEST),l.scissor(i*t.browser.devicePixelRatio,r*t.browser.devicePixelRatio,n*t.browser.devicePixelRatio,o*t.browser.devicePixelRatio),s.clear({color:a}),l.disable(l.SCISSOR_TEST)}function vr(e,i,r){var n=e.context,o=n.gl,a=r.posMatrix,s=e.useProgram("debug"),l=Et.disabled,u=Ct.disabled,c=e.colorModeForRenderPass();n.activeTexture.set(o.TEXTURE0),e.emptyTexture.bind(o.LINEAR,o.CLAMP_TO_EDGE),s.draw(n,o.LINE_STRIP,l,u,c,At.disabled,zi(a,t.Color.red),"$debug",e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments);var p=i.getTileByID(r.key).latestRawTileData,h=Math.floor((p&&p.byteLength||0)/1024),f=i.getTile(r).tileSize,d=512/Math.min(f,512)*(r.overscaledZ/e.transform.zoom)*.5,m=r.canonical.toString();r.overscaledZ!==r.canonical.z&&(m+=" => "+r.overscaledZ),function(t,e){t.initDebugOverlayCanvas();var i=t.debugOverlayCanvas,r=t.context.gl,n=t.debugOverlayCanvas.getContext("2d");n.clearRect(0,0,i.width,i.height),n.shadowColor="white",n.shadowBlur=2,n.lineWidth=1.5,n.strokeStyle="white",n.textBaseline="top",n.font="bold 36px Open Sans, sans-serif",n.fillText(e,5,5),n.strokeText(e,5,5),t.debugOverlayTexture.update(i),t.debugOverlayTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)}(e,m+" "+h+"kb"),s.draw(n,o.TRIANGLES,l,u,kt.alphaBlended,At.disabled,zi(a,t.Color.transparent,d),"$debug",e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments)}var yr={symbol:function(e,i,r,n,o){if("translucent"===e.renderPass){var a=Ct.disabled,s=e.colorModeForRenderPass();r.layout.get("text-variable-anchor")&&function(e,i,r,n,o,a,s){for(var l=i.transform,u="map"===o,c="map"===a,p=0,h=e;p256&&this.clearStencil(),i.setColorMode(kt.disabled),i.setDepthMode(Et.disabled);var n=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var o=0,a=e;o256&&this.clearStencil();var t=this.nextStencilID++,e=this.context.gl;return new Ct({func:e.NOTEQUAL,mask:255},t,255,e.KEEP,e.KEEP,e.REPLACE)},gr.prototype.stencilModeForClipping=function(t){var e=this.context.gl;return new Ct({func:e.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,e.KEEP,e.KEEP,e.REPLACE)},gr.prototype.stencilConfigForOverlap=function(t){var e,i=this.context.gl,r=t.sort((function(t,e){return e.overscaledZ-t.overscaledZ})),n=r[r.length-1].overscaledZ,o=r[0].overscaledZ-n+1;if(o>1){this.currentStencilSource=void 0,this.nextStencilID+o>256&&this.clearStencil();for(var a={},s=0;s=0;this.currentLayer--){var x=this.style._layers[n[this.currentLayer]],b=o[x.source],w=c[x.source];this._renderTileClippingMasks(x,w),this.renderLayer(this,b,x,w)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?e.pop():null},gr.prototype.isPatternMissing=function(t){if(!t)return!1;if(!t.from||!t.to)return!0;var e=this.imageManager.getPattern(t.from.toString()),i=this.imageManager.getPattern(t.to.toString());return!e||!i},gr.prototype.useProgram=function(t,e){this.cache=this.cache||{};var i=""+t+(e?e.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[i]||(this.cache[i]=new bi(this.context,t,gi[t],e,Wi[t],this._showOverdrawInspector)),this.cache[i]},gr.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},gr.prototype.setBaseState=function(){var t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)},gr.prototype.initDebugOverlayCanvas=function(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=t.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new t.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},gr.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var _r=function(t,e){this.points=t,this.planes=e};_r.fromInvProjectionMatrix=function(e,i,r){var n=Math.pow(2,r),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((function(i){return t.transformMat4([],i,e)})).map((function(e){return t.scale$1([],e,1/e[3]/i*n)})),a=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((function(e){var i=t.sub([],o[e[0]],o[e[1]]),r=t.sub([],o[e[2]],o[e[1]]),n=t.normalize([],t.cross([],i,r)),a=-t.dot(n,o[e[1]]);return n.concat(a)}));return new _r(o,a)};var xr=function(e,i){this.min=e,this.max=i,this.center=t.scale$2([],t.add([],this.min,this.max),.5)};xr.prototype.quadrant=function(e){for(var i=[e%2==0,e<2],r=t.clone$2(this.min),n=t.clone$2(this.max),o=0;o=0;if(0===a)return 0;a!==i.length&&(r=!1)}if(r)return 2;for(var l=0;l<3;l++){for(var u=Number.MAX_VALUE,c=-Number.MAX_VALUE,p=0;pthis.max[l]-this.min[l])return 0}return 1};var br=function(t,e,i,r){if(void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===r&&(r=0),isNaN(t)||t<0||isNaN(e)||e<0||isNaN(i)||i<0||isNaN(r)||r<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=t,this.bottom=e,this.left=i,this.right=r};br.prototype.interpolate=function(e,i,r){return null!=i.top&&null!=e.top&&(this.top=t.number(e.top,i.top,r)),null!=i.bottom&&null!=e.bottom&&(this.bottom=t.number(e.bottom,i.bottom,r)),null!=i.left&&null!=e.left&&(this.left=t.number(e.left,i.left,r)),null!=i.right&&null!=e.right&&(this.right=t.number(e.right,i.right,r)),this},br.prototype.getCenter=function(e,i){var r=t.clamp((this.left+e-this.right)/2,0,e),n=t.clamp((this.top+i-this.bottom)/2,0,i);return new t.Point(r,n)},br.prototype.equals=function(t){return this.top===t.top&&this.bottom===t.bottom&&this.left===t.left&&this.right===t.right},br.prototype.clone=function(){return new br(this.top,this.bottom,this.left,this.right)},br.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var wr=function(e,i,r,n,o){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===o||o,this._minZoom=e||0,this._maxZoom=i||22,this._minPitch=null==r?0:r,this._maxPitch=null==n?60:n,this.setMaxBounds(),this.width=0,this.height=0,this._center=new t.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new br,this._posMatrixCache={},this._alignedPosMatrixCache={}},Tr={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};wr.prototype.clone=function(){var t=new wr(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return t.tileSize=this.tileSize,t.latRange=this.latRange,t.width=this.width,t.height=this.height,t._center=this._center,t.zoom=this.zoom,t.angle=this.angle,t._fov=this._fov,t._pitch=this._pitch,t._unmodified=this._unmodified,t._edgeInsets=this._edgeInsets.clone(),t._calcMatrices(),t},Tr.minZoom.get=function(){return this._minZoom},Tr.minZoom.set=function(t){this._minZoom!==t&&(this._minZoom=t,this.zoom=Math.max(this.zoom,t))},Tr.maxZoom.get=function(){return this._maxZoom},Tr.maxZoom.set=function(t){this._maxZoom!==t&&(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))},Tr.minPitch.get=function(){return this._minPitch},Tr.minPitch.set=function(t){this._minPitch!==t&&(this._minPitch=t,this.pitch=Math.max(this.pitch,t))},Tr.maxPitch.get=function(){return this._maxPitch},Tr.maxPitch.set=function(t){this._maxPitch!==t&&(this._maxPitch=t,this.pitch=Math.min(this.pitch,t))},Tr.renderWorldCopies.get=function(){return this._renderWorldCopies},Tr.renderWorldCopies.set=function(t){void 0===t?t=!0:null===t&&(t=!1),this._renderWorldCopies=t},Tr.worldSize.get=function(){return this.tileSize*this.scale},Tr.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Tr.size.get=function(){return new t.Point(this.width,this.height)},Tr.bearing.get=function(){return-this.angle/Math.PI*180},Tr.bearing.set=function(e){var i=-t.wrap(e,-180,180)*Math.PI/180;this.angle!==i&&(this._unmodified=!1,this.angle=i,this._calcMatrices(),this.rotationMatrix=t.create$2(),t.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Tr.pitch.get=function(){return this._pitch/Math.PI*180},Tr.pitch.set=function(e){var i=t.clamp(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==i&&(this._unmodified=!1,this._pitch=i,this._calcMatrices())},Tr.fov.get=function(){return this._fov/Math.PI*180},Tr.fov.set=function(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&&(this._unmodified=!1,this._fov=t/180*Math.PI,this._calcMatrices())},Tr.zoom.get=function(){return this._zoom},Tr.zoom.set=function(t){var e=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==e&&(this._unmodified=!1,this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom,this._constrain(),this._calcMatrices())},Tr.center.get=function(){return this._center},Tr.center.set=function(t){t.lat===this._center.lat&&t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._constrain(),this._calcMatrices())},Tr.padding.get=function(){return this._edgeInsets.toJSON()},Tr.padding.set=function(t){this._edgeInsets.equals(t)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,t,1),this._calcMatrices())},Tr.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},wr.prototype.isPaddingEqual=function(t){return this._edgeInsets.equals(t)},wr.prototype.interpolatePadding=function(t,e,i){this._unmodified=!1,this._edgeInsets.interpolate(t,e,i),this._constrain(),this._calcMatrices()},wr.prototype.coveringZoomLevel=function(t){var e=(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize));return Math.max(0,e)},wr.prototype.getVisibleUnwrappedCoordinates=function(e){var i=[new t.UnwrappedTileID(0,e)];if(this._renderWorldCopies)for(var r=this.pointCoordinate(new t.Point(0,0)),n=this.pointCoordinate(new t.Point(this.width,0)),o=this.pointCoordinate(new t.Point(this.width,this.height)),a=this.pointCoordinate(new t.Point(0,this.height)),s=Math.floor(Math.min(r.x,n.x,o.x,a.x)),l=Math.floor(Math.max(r.x,n.x,o.x,a.x)),u=s-1;u<=l+1;u++)0!==u&&i.push(new t.UnwrappedTileID(u,e));return i},wr.prototype.coveringTiles=function(e){var i=this.coveringZoomLevel(e),r=i;if(void 0!==e.minzoom&&ie.maxzoom&&(i=e.maxzoom);var n=t.MercatorCoordinate.fromLngLat(this.center),o=Math.pow(2,i),a=[o*n.x,o*n.y,0],s=_r.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,i),l=e.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(l=i);var u=function(t){return{aabb:new xr([t*o,0,0],[(t+1)*o,o,0]),zoom:0,x:0,y:0,wrap:t,fullyVisible:!1}},c=[],p=[],h=i,f=e.reparseOverscaled?r:i;if(this._renderWorldCopies)for(var d=1;d<=3;d++)c.push(u(-d)),c.push(u(d));for(c.push(u(0));c.length>0;){var m=c.pop(),v=m.x,y=m.y,g=m.fullyVisible;if(!g){var _=m.aabb.intersects(s);if(0===_)continue;g=2===_}var x=m.aabb.distanceX(a),b=m.aabb.distanceY(a),w=Math.max(Math.abs(x),Math.abs(b));if(m.zoom===h||w>3+(1<=l)p.push({tileID:new t.OverscaledTileID(m.zoom===h?f:m.zoom,m.wrap,m.zoom,v,y),distanceSq:t.sqrLen([a[0]-.5-v,a[1]-.5-y])});else for(var T=0;T<4;T++){var S=(v<<1)+T%2,E=(y<<1)+(T>>1);c.push({aabb:m.aabb.quadrant(T),zoom:m.zoom+1,x:S,y:E,wrap:m.wrap,fullyVisible:g})}}return p.sort((function(t,e){return t.distanceSq-e.distanceSq})).map((function(t){return t.tileID}))},wr.prototype.resize=function(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._constrain(),this._calcMatrices()},Tr.unmodified.get=function(){return this._unmodified},wr.prototype.zoomScale=function(t){return Math.pow(2,t)},wr.prototype.scaleZoom=function(t){return Math.log(t)/Math.LN2},wr.prototype.project=function(e){var i=t.clamp(e.lat,-this.maxValidLatitude,this.maxValidLatitude);return new t.Point(t.mercatorXfromLng(e.lng)*this.worldSize,t.mercatorYfromLat(i)*this.worldSize)},wr.prototype.unproject=function(e){return new t.MercatorCoordinate(e.x/this.worldSize,e.y/this.worldSize).toLngLat()},Tr.point.get=function(){return this.project(this.center)},wr.prototype.setLocationAtPoint=function(e,i){var r=this.pointCoordinate(i),n=this.pointCoordinate(this.centerPoint),o=this.locationCoordinate(e),a=new t.MercatorCoordinate(o.x-(r.x-n.x),o.y-(r.y-n.y));this.center=this.coordinateLocation(a),this._renderWorldCopies&&(this.center=this.center.wrap())},wr.prototype.locationPoint=function(t){return this.coordinatePoint(this.locationCoordinate(t))},wr.prototype.pointLocation=function(t){return this.coordinateLocation(this.pointCoordinate(t))},wr.prototype.locationCoordinate=function(e){return t.MercatorCoordinate.fromLngLat(e)},wr.prototype.coordinateLocation=function(t){return t.toLngLat()},wr.prototype.pointCoordinate=function(e){var i=[e.x,e.y,0,1],r=[e.x,e.y,1,1];t.transformMat4(i,i,this.pixelMatrixInverse),t.transformMat4(r,r,this.pixelMatrixInverse);var n=i[3],o=r[3],a=i[1]/n,s=r[1]/o,l=i[2]/n,u=r[2]/o,c=l===u?0:(0-l)/(u-l);return new t.MercatorCoordinate(t.number(i[0]/n,r[0]/o,c)/this.worldSize,t.number(a,s,c)/this.worldSize)},wr.prototype.coordinatePoint=function(e){var i=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(i,i,this.pixelMatrix),new t.Point(i[0]/i[3],i[1]/i[3])},wr.prototype.getBounds=function(){return(new t.LngLatBounds).extend(this.pointLocation(new t.Point(0,0))).extend(this.pointLocation(new t.Point(this.width,0))).extend(this.pointLocation(new t.Point(this.width,this.height))).extend(this.pointLocation(new t.Point(0,this.height)))},wr.prototype.getMaxBounds=function(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new t.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},wr.prototype.setMaxBounds=function(t){t?(this.lngRange=[t.getWest(),t.getEast()],this.latRange=[t.getSouth(),t.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},wr.prototype.calculatePosMatrix=function(e,i){void 0===i&&(i=!1);var r=e.key,n=i?this._alignedPosMatrixCache:this._posMatrixCache;if(n[r])return n[r];var o=e.canonical,a=this.worldSize/this.zoomScale(o.z),s=o.x+Math.pow(2,o.z)*e.wrap,l=t.identity(new Float64Array(16));return t.translate(l,l,[s*a,o.y*a,0]),t.scale(l,l,[a/t.EXTENT,a/t.EXTENT,1]),t.multiply(l,i?this.alignedProjMatrix:this.projMatrix,l),n[r]=new Float32Array(l),n[r]},wr.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},wr.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var e,i,r,n,o=-90,a=90,s=-180,l=180,u=this.size,c=this._unmodified;if(this.latRange){var p=this.latRange;o=t.mercatorYfromLat(p[1])*this.worldSize,e=(a=t.mercatorYfromLat(p[0])*this.worldSize)-oa&&(n=a-v)}if(this.lngRange){var y=f.x,g=u.x/2;y-gl&&(r=l-g)}void 0===r&&void 0===n||(this.center=this.unproject(new t.Point(void 0!==r?r:f.x,void 0!==n?n:f.y))),this._unmodified=c,this._constraining=!1}},wr.prototype._calcMatrices=function(){if(this.height){var e=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var i=Math.PI/2+this._pitch,r=this._fov*(.5+e.y/this.height),n=Math.sin(r)*this.cameraToCenterDistance/Math.sin(t.clamp(Math.PI-i-r,.01,Math.PI-.01)),o=this.point,a=o.x,s=o.y,l=1.01*(Math.cos(Math.PI/2-this._pitch)*n+this.cameraToCenterDistance),u=this.height/50,c=new Float64Array(16);t.perspective(c,this._fov,this.width/this.height,u,l),c[8]=2*-e.x/this.width,c[9]=2*e.y/this.height,t.scale(c,c,[1,-1,1]),t.translate(c,c,[0,0,-this.cameraToCenterDistance]),t.rotateX(c,c,this._pitch),t.rotateZ(c,c,this.angle),t.translate(c,c,[-a,-s,0]),this.mercatorMatrix=t.scale([],c,[this.worldSize,this.worldSize,this.worldSize]),t.scale(c,c,[1,1,t.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=c,this.invProjMatrix=t.invert([],this.projMatrix);var p=this.width%2/2,h=this.height%2/2,f=Math.cos(this.angle),d=Math.sin(this.angle),m=a-Math.round(a)+f*p+d*h,v=s-Math.round(s)+f*h+d*p,y=new Float64Array(c);if(t.translate(y,y,[m>.5?m-1:m,v>.5?v-1:v,0]),this.alignedProjMatrix=y,c=t.create(),t.scale(c,c,[this.width/2,-this.height/2,1]),t.translate(c,c,[1,-1,0]),this.labelPlaneMatrix=c,c=t.create(),t.scale(c,c,[1,-1,1]),t.translate(c,c,[-1,-1,0]),t.scale(c,c,[2/this.width,2/this.height,1]),this.glCoordMatrix=c,this.pixelMatrix=t.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(c=t.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=c,this._posMatrixCache={},this._alignedPosMatrixCache={}}},wr.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var e=this.pointCoordinate(new t.Point(0,0)),i=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(i,i,this.pixelMatrix)[3]/this.cameraToCenterDistance},wr.prototype.getCameraPoint=function(){var e=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new t.Point(0,e))},wr.prototype.getCameraQueryGeometry=function(e){var i=this.getCameraPoint();if(1===e.length)return[e[0],i];for(var r=i.x,n=i.y,o=i.x,a=i.y,s=0,l=e;s=3&&!t.some((function(t){return isNaN(t)}))){var e=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:e,pitch:+(t[4]||0)}),!0}return!1},Sr.prototype._updateHashUnthrottled=function(){var e=this.getHashString();try{t.window.history.replaceState(t.window.history.state,"",e)}catch(t){}};var Er={linearity:.3,easing:t.bezier(0,0,.3,1)},Cr=t.extend({deceleration:2500,maxSpeed:1400},Er),kr=t.extend({deceleration:20,maxSpeed:1400},Er),Ar=t.extend({deceleration:1e3,maxSpeed:360},Er),Pr=t.extend({deceleration:1e3,maxSpeed:90},Er),Ir=function(t){this._map=t,this.clear()};function Mr(t,e){(!t.duration||t.duration0&&i-e[0].time>160;)e.shift()},Ir.prototype._onMoveEnd=function(e){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var i={zoom:0,bearing:0,pitch:0,pan:new t.Point(0,0),pinchAround:void 0,around:void 0},r=0,n=this._inertiaBuffer;r=this._clickTolerance||this._map.fire(new Dr(t.type,this._map,t))},Lr.prototype.dblclick=function(t){return this._firePreventable(new Dr(t.type,this._map,t))},Lr.prototype.mouseover=function(t){this._map.fire(new Dr(t.type,this._map,t))},Lr.prototype.mouseout=function(t){this._map.fire(new Dr(t.type,this._map,t))},Lr.prototype.touchstart=function(t){return this._firePreventable(new Or(t.type,this._map,t))},Lr.prototype.touchmove=function(t){this._map.fire(new Or(t.type,this._map,t))},Lr.prototype.touchend=function(t){this._map.fire(new Or(t.type,this._map,t))},Lr.prototype.touchcancel=function(t){this._map.fire(new Or(t.type,this._map,t))},Lr.prototype._firePreventable=function(t){if(this._map.fire(t),t.defaultPrevented)return{}},Lr.prototype.isEnabled=function(){return!0},Lr.prototype.isActive=function(){return!1},Lr.prototype.enable=function(){},Lr.prototype.disable=function(){};var Fr=function(t){this._map=t};Fr.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Fr.prototype.mousemove=function(t){this._map.fire(new Dr(t.type,this._map,t))},Fr.prototype.mousedown=function(){this._delayContextMenu=!0},Fr.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Dr("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Fr.prototype.contextmenu=function(t){this._delayContextMenu?this._contextMenuEvent=t:this._map.fire(new Dr(t.type,this._map,t)),this._map.listens("contextmenu")&&t.preventDefault()},Fr.prototype.isEnabled=function(){return!0},Fr.prototype.isActive=function(){return!1},Fr.prototype.enable=function(){},Fr.prototype.disable=function(){};var Br=function(t,e){this._map=t,this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=e.clickTolerance||1};function Nr(t,e){for(var i={},r=0;rthis.numTouches)&&(this.aborted=!0),this.aborted||(void 0===this.startTime&&(this.startTime=e.timeStamp),r.length===this.numTouches&&(this.centroid=function(e){for(var i=new t.Point(0,0),r=0,n=e;r30)&&(this.aborted=!0)}}},jr.prototype.touchend=function(t,e,i){if((!this.centroid||t.timeStamp-this.startTime>500)&&(this.aborted=!0),0===i.length){var r=!this.aborted&&this.centroid;if(this.reset(),r)return r}};var Vr=function(t){this.singleTap=new jr(t),this.numTaps=t.numTaps,this.reset()};Vr.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Vr.prototype.touchstart=function(t,e,i){this.singleTap.touchstart(t,e,i)},Vr.prototype.touchmove=function(t,e,i){this.singleTap.touchmove(t,e,i)},Vr.prototype.touchend=function(t,e,i){var r=this.singleTap.touchend(t,e,i);if(r){var n=t.timeStamp-this.lastTime<500,o=!this.lastTap||this.lastTap.dist(r)<30;if(n&&o||this.reset(),this.count++,this.lastTime=t.timeStamp,this.lastTap=r,this.count===this.numTaps)return this.reset(),r}};var Ur=function(){this._zoomIn=new Vr({numTouches:1,numTaps:2}),this._zoomOut=new Vr({numTouches:2,numTaps:1}),this.reset()};Ur.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},Ur.prototype.touchstart=function(t,e,i){this._zoomIn.touchstart(t,e,i),this._zoomOut.touchstart(t,e,i)},Ur.prototype.touchmove=function(t,e,i){this._zoomIn.touchmove(t,e,i),this._zoomOut.touchmove(t,e,i)},Ur.prototype.touchend=function(t,e,i){var r=this,n=this._zoomIn.touchend(t,e,i),o=this._zoomOut.touchend(t,e,i);return n?(this._active=!0,t.preventDefault(),setTimeout((function(){return r.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()+1,around:e.unproject(n)},{originalEvent:t})}}):o?(this._active=!0,t.preventDefault(),setTimeout((function(){return r.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()-1,around:e.unproject(o)},{originalEvent:t})}}):void 0},Ur.prototype.touchcancel=function(){this.reset()},Ur.prototype.enable=function(){this._enabled=!0},Ur.prototype.disable=function(){this._enabled=!1,this.reset()},Ur.prototype.isEnabled=function(){return this._enabled},Ur.prototype.isActive=function(){return this._active};var qr={0:1,2:2},$r=function(t){this.reset(),this._clickTolerance=t.clickTolerance||1};$r.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},$r.prototype._correctButton=function(t,e){return!1},$r.prototype._move=function(t,e){return{}},$r.prototype.mousedown=function(t,e){if(!this._lastPoint){var r=i.mouseButton(t);this._correctButton(t,r)&&(this._lastPoint=e,this._eventButton=r)}},$r.prototype.mousemoveWindow=function(t,e){var i=this._lastPoint;if(i)if(t.preventDefault(),function(t,e){var i=qr[e];return void 0===t.buttons||(t.buttons&i)!==i}(t,this._eventButton))this.reset();else if(this._moved||!(e.dist(i)0&&(this._active=!0);var n=Nr(r,i),o=new t.Point(0,0),a=new t.Point(0,0),s=0;for(var l in n){var u=n[l],c=this._touches[l];c&&(o._add(u),a._add(u.sub(c)),s++,n[l]=u)}if(this._touches=n,!(sMath.abs(t.x)}var rn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},e.prototype._start=function(t){this._lastPoints=t,en(t[0].sub(t[1]))&&(this._valid=!1)},e.prototype._move=function(t,e,i){var r=t[0].sub(this._lastPoints[0]),n=t[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(r,n,i.timeStamp),this._valid)return this._lastPoints=t,this._active=!0,{pitchDelta:(r.y+n.y)/2*-.5}},e.prototype.gestureBeginsVertically=function(t,e,i){if(void 0!==this._valid)return this._valid;var r=t.mag()>=2,n=e.mag()>=2;if(r||n){if(!r||!n)return void 0===this._firstMove&&(this._firstMove=i),i-this._firstMove<100&&void 0;var o=t.y>0==e.y>0;return en(t)&&en(e)&&o}},e}(Wr),nn={panStep:100,bearingStep:15,pitchStep:10},on=function(){var t=nn;this._panStep=t.panStep,this._bearingStep=t.bearingStep,this._pitchStep=t.pitchStep};function an(t){return t*(2-t)}on.prototype.reset=function(){this._active=!1},on.prototype.keydown=function(t){var e=this;if(!(t.altKey||t.ctrlKey||t.metaKey)){var i=0,r=0,n=0,o=0,a=0;switch(t.keyCode){case 61:case 107:case 171:case 187:i=1;break;case 189:case 109:case 173:i=-1;break;case 37:t.shiftKey?r=-1:(t.preventDefault(),o=-1);break;case 39:t.shiftKey?r=1:(t.preventDefault(),o=1);break;case 38:t.shiftKey?n=1:(t.preventDefault(),a=-1);break;case 40:t.shiftKey?n=-1:(t.preventDefault(),a=1);break;default:return}return{cameraAnimation:function(s){var l=s.getZoom();s.easeTo({duration:300,easeId:"keyboardHandler",easing:an,zoom:i?Math.round(l)+i*(t.shiftKey?2:1):l,bearing:s.getBearing()+r*e._bearingStep,pitch:s.getPitch()+n*e._pitchStep,offset:[-o*e._panStep,-a*e._panStep],center:s.getCenter()},{originalEvent:t})}}}},on.prototype.enable=function(){this._enabled=!0},on.prototype.disable=function(){this._enabled=!1,this.reset()},on.prototype.isEnabled=function(){return this._enabled},on.prototype.isActive=function(){return this._active};var sn=function(e,i){this._map=e,this._el=e.getCanvasContainer(),this._handler=i,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,t.bindAll(["_onTimeout"],this)};sn.prototype.setZoomRate=function(t){this._defaultZoomRate=t},sn.prototype.setWheelZoomRate=function(t){this._wheelZoomRate=t},sn.prototype.isEnabled=function(){return!!this._enabled},sn.prototype.isActive=function(){return!!this._active||void 0!==this._finishTimeout},sn.prototype.isZooming=function(){return!!this._zooming},sn.prototype.enable=function(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=t&&"center"===t.around)},sn.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},sn.prototype.wheel=function(e){if(this.isEnabled()){var i=e.deltaMode===t.window.WheelEvent.DOM_DELTA_LINE?40*e.deltaY:e.deltaY,r=t.browser.now(),n=r-(this._lastWheelEventTime||0);this._lastWheelEventTime=r,0!==i&&i%4.000244140625==0?this._type="wheel":0!==i&&Math.abs(i)<4?this._type="trackpad":n>400?(this._type=null,this._lastValue=i,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(n*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()}},sn.prototype._onTimeout=function(t){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(t)},sn.prototype._start=function(e){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var r=i.mousePos(this._el,e);this._around=t.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(r)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},sn.prototype.renderFrame=function(){var e=this;if(this._frameId&&(this._frameId=null,this.isActive())){var i=this._map.transform;if(0!==this._delta){var r="wheel"===this._type&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,n=2/(1+Math.exp(-Math.abs(this._delta*r)));this._delta<0&&0!==n&&(n=1/n);var o="number"==typeof this._targetZoom?i.zoomScale(this._targetZoom):i.scale;this._targetZoom=Math.min(i.maxZoom,Math.max(i.minZoom,i.scaleZoom(o*n))),"wheel"===this._type&&(this._startZoom=i.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var a,s="number"==typeof this._targetZoom?this._targetZoom:i.zoom,l=this._startZoom,u=this._easing,c=!1;if("wheel"===this._type&&l&&u){var p=Math.min((t.browser.now()-this._lastWheelEventTime)/200,1),h=u(p);a=t.number(l,s,h),p<1?this._frameId||(this._frameId=!0):c=!0}else a=s,c=!0;return this._active=!0,c&&(this._active=!1,this._finishTimeout=setTimeout((function(){e._zooming=!1,e._handler._triggerRenderFrame(),delete e._targetZoom,delete e._finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!c,zoomDelta:a-i.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},sn.prototype._smoothOutEasing=function(e){var i=t.ease;if(this._prevEase){var r=this._prevEase,n=(t.browser.now()-r.start)/r.duration,o=r.easing(n+.01)-r.easing(n),a=.27/Math.sqrt(o*o+1e-4)*.01,s=Math.sqrt(.0729-a*a);i=t.bezier(a,s,.25,1)}return this._prevEase={start:t.browser.now(),duration:e,easing:i},i},sn.prototype.reset=function(){this._active=!1};var ln=function(t,e){this._clickZoom=t,this._tapZoom=e};ln.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},ln.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},ln.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},ln.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var un=function(){this.reset()};un.prototype.reset=function(){this._active=!1},un.prototype.dblclick=function(t,e){return t.preventDefault(),{cameraAnimation:function(i){i.easeTo({duration:300,zoom:i.getZoom()+(t.shiftKey?-1:1),around:i.unproject(e)},{originalEvent:t})}}},un.prototype.enable=function(){this._enabled=!0},un.prototype.disable=function(){this._enabled=!1,this.reset()},un.prototype.isEnabled=function(){return this._enabled},un.prototype.isActive=function(){return this._active};var cn=function(){this._tap=new Vr({numTouches:1,numTaps:1}),this.reset()};cn.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},cn.prototype.touchstart=function(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))},cn.prototype.touchmove=function(t,e,i){if(this._tapTime){if(this._swipePoint){if(i[0].identifier!==this._swipeTouch)return;var r=e[0],n=r.y-this._swipePoint.y;return this._swipePoint=r,t.preventDefault(),this._active=!0,{zoomDelta:n/128}}}else this._tap.touchmove(t,e,i)},cn.prototype.touchend=function(t,e,i){this._tapTime?this._swipePoint&&0===i.length&&this.reset():this._tap.touchend(t,e,i)&&(this._tapTime=t.timeStamp)},cn.prototype.touchcancel=function(){this.reset()},cn.prototype.enable=function(){this._enabled=!0},cn.prototype.disable=function(){this._enabled=!1,this.reset()},cn.prototype.isEnabled=function(){return this._enabled},cn.prototype.isActive=function(){return this._active};var pn=function(t,e,i){this._el=t,this._mousePan=e,this._touchPan=i};pn.prototype.enable=function(t){this._inertiaOptions=t||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},pn.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},pn.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},pn.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var hn=function(t,e,i){this._pitchWithRotate=t.pitchWithRotate,this._mouseRotate=e,this._mousePitch=i};hn.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},hn.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},hn.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},hn.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var fn=function(t,e,i,r){this._el=t,this._touchZoom=e,this._touchRotate=i,this._tapDragZoom=r,this._rotationDisabled=!1,this._enabled=!0};fn.prototype.enable=function(t){this._touchZoom.enable(t),this._rotationDisabled||this._touchRotate.enable(t),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},fn.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},fn.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},fn.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},fn.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},fn.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var dn=function(t){return t.zoom||t.drag||t.pitch||t.rotate},mn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(t.Event);function vn(t){return t.panDelta&&t.panDelta.mag()||t.zoomDelta||t.bearingDelta||t.pitchDelta}var yn=function(e,r){this._map=e,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Ir(e),this._bearingSnap=r.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(r),t.bindAll(["handleEvent","handleWindowEvent"],this);var 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(var o=0,a=this._listeners;oo?Math.min(2,b):Math.max(.5,b),w=Math.pow(v,1-e),T=n.unproject(_.add(x.mult(e*w)).mult(m));n.setLocationAtPoint(n.renderWorldCopies?T.wrap():T,d)}r._fireMoveEvents(i)}),(function(t){r._afterEase(i,t)}),e),this},i.prototype._prepareEase=function(e,i,r){void 0===r&&(r={}),this._moving=!0,i||r.moving||this.fire(new t.Event("movestart",e)),this._zooming&&!r.zooming&&this.fire(new t.Event("zoomstart",e)),this._rotating&&!r.rotating&&this.fire(new t.Event("rotatestart",e)),this._pitching&&!r.pitching&&this.fire(new t.Event("pitchstart",e))},i.prototype._fireMoveEvents=function(e){this.fire(new t.Event("move",e)),this._zooming&&this.fire(new t.Event("zoom",e)),this._rotating&&this.fire(new t.Event("rotate",e)),this._pitching&&this.fire(new t.Event("pitch",e))},i.prototype._afterEase=function(e,i){if(!this._easeId||!i||this._easeId!==i){delete this._easeId;var r=this._zooming,n=this._rotating,o=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,r&&this.fire(new t.Event("zoomend",e)),n&&this.fire(new t.Event("rotateend",e)),o&&this.fire(new t.Event("pitchend",e)),this.fire(new t.Event("moveend",e))}},i.prototype.flyTo=function(e,i){var r=this;if(!e.essential&&t.browser.prefersReducedMotion){var 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);var o=this.transform,a=this.getZoom(),s=this.getBearing(),l=this.getPitch(),u=this.getPadding(),c="zoom"in e?t.clamp(+e.zoom,o.minZoom,o.maxZoom):a,p="bearing"in e?this._normalizeBearing(e.bearing,s):s,h="pitch"in e?+e.pitch:l,f="padding"in e?e.padding:o.padding,d=o.zoomScale(c-a),m=t.Point.convert(e.offset),v=o.centerPoint.add(m),y=o.pointLocation(v),g=t.LngLat.convert(e.center||y);this._normalizeCenter(g);var _=o.project(y),x=o.project(g).sub(_),b=e.curve,w=Math.max(o.width,o.height),T=w/d,S=x.mag();if("minZoom"in e){var E=t.clamp(Math.min(e.minZoom,a,c),o.minZoom,o.maxZoom),C=w/o.zoomScale(E-a);b=Math.sqrt(C/S*2)}var k=b*b;function A(t){var e=(T*T-w*w+(t?-1:1)*k*k*S*S)/(2*(t?T:w)*k*S);return Math.log(Math.sqrt(e*e+1)-e)}function P(t){return(Math.exp(t)-Math.exp(-t))/2}function I(t){return(Math.exp(t)+Math.exp(-t))/2}var M=A(0),z=function(t){return I(M)/I(M+b*t)},D=function(t){return w*((I(M)*(P(e=M+b*t)/I(e))-P(M))/k)/S;var e},O=(A(1)-M)/b;if(Math.abs(S)<1e-6||!isFinite(O)){if(Math.abs(w-T)<1e-6)return this.easeTo(e,i);var R=Te.maxDuration&&(e.duration=0),this._zooming=!0,this._rotating=s!==p,this._pitching=h!==l,this._padding=!o.isPaddingEqual(f),this._prepareEase(i,!1),this._ease((function(e){var n=e*O,d=1/z(n);o.zoom=1===e?c:a+o.scaleZoom(d),r._rotating&&(o.bearing=t.number(s,p,e)),r._pitching&&(o.pitch=t.number(l,h,e)),r._padding&&(o.interpolatePadding(u,f,e),v=o.centerPoint.add(m));var y=1===e?g:o.unproject(_.add(x.mult(D(n))).mult(d));o.setLocationAtPoint(o.renderWorldCopies?y.wrap():y,v),r._fireMoveEvents(i)}),(function(){return r._afterEase(i)}),e),this},i.prototype.isEasing=function(){return!!this._easeFrameId},i.prototype.stop=function(){return this._stop()},i.prototype._stop=function(t,e){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var i=this._onEaseEnd;delete this._onEaseEnd,i.call(this,e)}if(!t){var r=this.handlers;r&&r.stop(!1)}return this},i.prototype._ease=function(e,i,r){!1===r.animate||0===r.duration?(e(1),i()):(this._easeStart=t.browser.now(),this._easeOptions=r,this._onEaseFrame=e,this._onEaseEnd=i,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},i.prototype._renderFrameCallback=function(){var e=Math.min((t.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(e)),e<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},i.prototype._normalizeBearing=function(e,i){e=t.wrap(e,-180,180);var r=Math.abs(e-i);return Math.abs(e-360-i)180?-360:i<-180?360:0}},i}(t.Evented),_n=function(e){void 0===e&&(e={}),this.options=e,t.bindAll(["_updateEditLink","_updateData","_updateCompact"],this)};_n.prototype.getDefaultPosition=function(){return"bottom-right"},_n.prototype.onAdd=function(t){var e=this.options&&this.options.compact;return this._map=t,this._container=i.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._innerContainer=i.create("div","mapboxgl-ctrl-attrib-inner",this._container),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},_n.prototype.onRemove=function(){i.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},_n.prototype._updateEditLink=function(){var e=this._editLink;e||(e=this._editLink=this._container.querySelector(".mapbox-improve-map"));var 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){var r=i.reduce((function(t,e,r){return e.value&&(t+=e.key+"="+e.value+(r=0)return!1;return!0}))).join(" | ");a!==this._attribHTML&&(this._attribHTML=a,t.length?(this._innerContainer.innerHTML=a,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},_n.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact")};var xn=function(){t.bindAll(["_updateLogo"],this),t.bindAll(["_updateCompact"],this)};xn.prototype.onAdd=function(t){this._map=t,this._container=i.create("div","mapboxgl-ctrl");var e=i.create("a","mapboxgl-ctrl-logo");return e.target="_blank",e.rel="noopener nofollow",e.href="https://www.mapbox.com/",e.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),e.setAttribute("rel","noopener nofollow"),this._container.appendChild(e),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},xn.prototype.onRemove=function(){i.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},xn.prototype.getDefaultPosition=function(){return"bottom-left"},xn.prototype._updateLogo=function(t){t&&"metadata"!==t.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")},xn.prototype._logoRequired=function(){if(this._map.style){var t=this._map.style.sourceCaches;for(var e in t)if(t[e].getSource().mapbox_logo)return!0;return!1}},xn.prototype._updateCompact=function(){var t=this._container.children;if(t.length){var e=t[0];this._map.getCanvasContainer().offsetWidth<250?e.classList.add("mapboxgl-compact"):e.classList.remove("mapboxgl-compact")}};var bn=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};bn.prototype.add=function(t){var e=++this._id;return this._queue.push({callback:t,id:e,cancelled:!1}),e},bn.prototype.remove=function(t){for(var e=this._currentlyRunning,i=0,r=e?this._queue.concat(e):this._queue;ie.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=e.minPitch&&null!=e.maxPitch&&e.minPitch>e.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=e.minPitch&&e.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=e.maxPitch&&e.maxPitch>60)throw new Error("maxPitch must be less than or equal to 60");var n=new wr(e.minZoom,e.maxZoom,e.minPitch,e.maxPitch,e.renderWorldCopies);if(r.call(this,n,e),this._interactive=e.interactive,this._maxTileCacheSize=e.maxTileCacheSize,this._failIfMajorPerformanceCaveat=e.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=e.preserveDrawingBuffer,this._antialias=e.antialias,this._trackResize=e.trackResize,this._bearingSnap=e.bearingSnap,this._refreshExpiredTiles=e.refreshExpiredTiles,this._fadeDuration=e.fadeDuration,this._crossSourceCollisions=e.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=e.collectResourceTiming,this._renderTaskQueue=new bn,this._controls=[],this._mapId=t.uniqueId(),this._locale=t.extend({},wn,e.locale),this._requestManager=new t.RequestManager(e.transformRequest,e.accessToken),"string"==typeof e.container){if(this._container=t.window.document.getElementById(e.container),!this._container)throw new Error("Container '"+e.container+"' not found.")}else{if(!(e.container instanceof Sn))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=e.container}if(e.maxBounds&&this.setMaxBounds(e.maxBounds),t.bindAll(["_onWindowOnline","_onWindowResize","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",(function(){return i._update(!1)})),this.on("moveend",(function(){return i._update(!1)})),this.on("zoom",(function(){return i._update(!0)})),void 0!==t.window&&(t.window.addEventListener("online",this._onWindowOnline,!1),t.window.addEventListener("resize",this._onWindowResize,!1),t.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new yn(this,e),this._hash=e.hash&&new Sr("string"==typeof e.hash&&e.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:e.center,zoom:e.zoom,bearing:e.bearing,pitch:e.pitch}),e.bounds&&(this.resize(),this.fitBounds(e.bounds,t.extend({},e.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=e.localIdeographFontFamily,e.style&&this.setStyle(e.style,{localIdeographFontFamily:e.localIdeographFontFamily}),e.attributionControl&&this.addControl(new _n({customAttribution:e.customAttribution})),this.addControl(new xn,e.logoPosition),this.on("style.load",(function(){i.transform.unmodified&&i.jumpTo(i.style.stylesheet)})),this.on("data",(function(e){i._update("style"===e.dataType),i.fire(new t.Event(e.dataType+"data",e))})),this.on("dataloading",(function(e){i.fire(new t.Event(e.dataType+"dataloading",e))}))}r&&(n.__proto__=r),(n.prototype=Object.create(r&&r.prototype)).constructor=n;var o={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return n.prototype._getMapId=function(){return this._mapId},n.prototype.addControl=function(e,i){if(void 0===i&&e.getDefaultPosition&&(i=e.getDefaultPosition()),void 0===i&&(i="top-right"),!e||!e.onAdd)return this.fire(new t.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var r=e.onAdd(this);this._controls.push(e);var n=this._controlPositions[i];return-1!==i.indexOf("bottom")?n.insertBefore(r,n.firstChild):n.appendChild(r),this},n.prototype.removeControl=function(e){if(!e||!e.onRemove)return this.fire(new t.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var i=this._controls.indexOf(e);return i>-1&&this._controls.splice(i,1),e.onRemove(this),this},n.prototype.resize=function(e){var i=this._containerDimensions(),r=i[0],n=i[1];this._resizeCanvas(r,n),this.transform.resize(r,n),this.painter.resize(r,n);var o=!this._moving;return o&&(this.stop(),this.fire(new t.Event("movestart",e)).fire(new t.Event("move",e))),this.fire(new t.Event("resize",e)),o&&this.fire(new t.Event("moveend",e)),this},n.prototype.getBounds=function(){return this.transform.getBounds()},n.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},n.prototype.setMaxBounds=function(e){return this.transform.setMaxBounds(t.LngLatBounds.convert(e)),this._update()},n.prototype.setMinZoom=function(t){if((t=null==t?-2:t)>=-2&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()>t&&this.setZoom(t),this;throw new Error("maxZoom must be greater than the current minZoom")},n.prototype.getMaxZoom=function(){return this.transform.maxZoom},n.prototype.setMinPitch=function(t){if((t=null==t?0:t)<0)throw new Error("minPitch must be greater than or equal to 0");if(t>=0&&t<=this.transform.maxPitch)return this.transform.minPitch=t,this._update(),this.getPitch()60)throw new Error("maxPitch must be less than or equal to 60");if(t>=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()>t&&this.setPitch(t),this;throw new Error("maxPitch must be greater than the current minPitch")},n.prototype.getMaxPitch=function(){return this.transform.maxPitch},n.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},n.prototype.setRenderWorldCopies=function(t){return this.transform.renderWorldCopies=t,this._update()},n.prototype.project=function(e){return this.transform.locationPoint(t.LngLat.convert(e))},n.prototype.unproject=function(e){return this.transform.pointLocation(t.Point.convert(e))},n.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},n.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},n.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},n.prototype._createDelegatedListener=function(t,e,i){var r,n=this;if("mouseenter"===t||"mouseover"===t){var o=!1;return{layer:e,listener:i,delegates:{mousemove:function(r){var a=n.getLayer(e)?n.queryRenderedFeatures(r.point,{layers:[e]}):[];a.length?o||(o=!0,i.call(n,new Dr(t,n,r.originalEvent,{features:a}))):o=!1},mouseout:function(){o=!1}}}}if("mouseleave"===t||"mouseout"===t){var a=!1;return{layer:e,listener:i,delegates:{mousemove:function(r){(n.getLayer(e)?n.queryRenderedFeatures(r.point,{layers:[e]}):[]).length?a=!0:a&&(a=!1,i.call(n,new Dr(t,n,r.originalEvent)))},mouseout:function(e){a&&(a=!1,i.call(n,new Dr(t,n,e.originalEvent)))}}}}return{layer:e,listener:i,delegates:(r={},r[t]=function(t){var r=n.getLayer(e)?n.queryRenderedFeatures(t.point,{layers:[e]}):[];r.length&&(t.features=r,i.call(n,t),delete t.features)},r)}},n.prototype.on=function(t,e,i){if(void 0===i)return r.prototype.on.call(this,t,e);var n=this._createDelegatedListener(t,e,i);for(var o in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[t]=this._delegatedListeners[t]||[],this._delegatedListeners[t].push(n),n.delegates)this.on(o,n.delegates[o]);return this},n.prototype.once=function(t,e,i){if(void 0===i)return r.prototype.once.call(this,t,e);var n=this._createDelegatedListener(t,e,i);for(var o in n.delegates)this.once(o,n.delegates[o]);return this},n.prototype.off=function(t,e,i){var n=this;return void 0===i?r.prototype.off.call(this,t,e):(this._delegatedListeners&&this._delegatedListeners[t]&&function(r){for(var o=r[t],a=0;a180;){var s=r.locationPoint(e);if(s.x>=0&&s.y>=0&&s.x<=r.width&&s.y<=r.height)break;e.lng>r.center.lng?e.lng-=360:e.lng+=360}return e}Mn.prototype.down=function(t,e){this.mouseRotate.mousedown(t,e),this.mousePitch&&this.mousePitch.mousedown(t,e),i.disableDrag()},Mn.prototype.move=function(t,e){var i=this.map,r=this.mouseRotate.mousemoveWindow(t,e);if(r&&r.bearingDelta&&i.setBearing(i.getBearing()+r.bearingDelta),this.mousePitch){var n=this.mousePitch.mousemoveWindow(t,e);n&&n.pitchDelta&&i.setPitch(i.getPitch()+n.pitchDelta)}},Mn.prototype.off=function(){var t=this.element;i.removeEventListener(t,"mousedown",this.mousedown),i.removeEventListener(t,"touchstart",this.touchstart,{passive:!1}),i.removeEventListener(t,"touchmove",this.touchmove),i.removeEventListener(t,"touchend",this.touchend),i.removeEventListener(t,"touchcancel",this.reset),this.offTemp()},Mn.prototype.offTemp=function(){i.enableDrag(),i.removeEventListener(t.window,"mousemove",this.mousemove),i.removeEventListener(t.window,"mouseup",this.mouseup)},Mn.prototype.mousedown=function(e){this.down(t.extend({},e,{ctrlKey:!0,preventDefault:function(){return e.preventDefault()}}),i.mousePos(this.element,e)),i.addEventListener(t.window,"mousemove",this.mousemove),i.addEventListener(t.window,"mouseup",this.mouseup)},Mn.prototype.mousemove=function(t){this.move(t,i.mousePos(this.element,t))},Mn.prototype.mouseup=function(t){this.mouseRotate.mouseupWindow(t),this.mousePitch&&this.mousePitch.mouseupWindow(t),this.offTemp()},Mn.prototype.touchstart=function(t){1!==t.targetTouches.length?this.reset():(this._startPos=this._lastPos=i.touchPos(this.element,t.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return t.preventDefault()}},this._startPos))},Mn.prototype.touchmove=function(t){1!==t.targetTouches.length?this.reset():(this._lastPos=i.touchPos(this.element,t.targetTouches)[0],this.move({preventDefault:function(){return t.preventDefault()}},this._lastPos))},Mn.prototype.touchend=function(t){0===t.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)e.getEast()||i.latitudee.getNorth())},r.prototype._setErrorState=function(){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")}},r.prototype._onSuccess=function(e){if(this._map){if(this._isOutOfMapMaxBounds(e))return this._setErrorState(),this.fire(new t.Event("outofmaxbounds",e)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=e,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(e),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(e),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new t.Event("geolocate",e)),this._finish()}},r.prototype._updateCamera=function(e){var i=new t.LngLat(e.coords.longitude,e.coords.latitude),r=e.coords.accuracy,n=this._map.getBearing(),o=t.extend({bearing:n},this.options.fitBoundsOptions);this._map.fitBounds(i.toBounds(r),o,{geolocateSource:!0})},r.prototype._updateMarker=function(e){if(e){var 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()},r.prototype._updateCircleRadius=function(){var t=this._map._container.clientHeight/2,e=this._map.unproject([0,t]),i=this._map.unproject([1,t]),r=e.distanceTo(i),n=Math.ceil(2*this._accuracy/r);this._circleElement.style.width=n+"px",this._circleElement.style.height=n+"px"},r.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},r.prototype._onError=function(e){if(this._map){if(this.options.trackUserLocation)if(1===e.code){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var i=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=i,this._geolocateButton.setAttribute("aria-label",i),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===e.code&&Nn)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new t.Event("error",e)),this._finish()}},r.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},r.prototype._setupUI=function(e){var r=this;if(this._container.addEventListener("contextmenu",(function(t){return t.preventDefault()})),this._geolocateButton=i.create("button","mapboxgl-ctrl-geolocate",this._container),i.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",!1===e){t.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var n=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=n,this._geolocateButton.setAttribute("aria-label",n)}else{var o=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=o,this._geolocateButton.setAttribute("aria-label",o)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=i.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Ln(this._dotElement),this._circleElement=i.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Ln({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",(function(e){e.geolocateSource||"ACTIVE_LOCK"!==r._watchState||e.originalEvent&&"resize"===e.originalEvent.type||(r._watchState="BACKGROUND",r._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),r._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),r.fire(new t.Event("trackuserlocationend")))}))},r.prototype.trigger=function(){if(!this._setup)return t.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new t.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Bn--,Nn=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new t.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new t.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){var e;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++Bn>1?(e={maximumAge:6e5,timeout:0},Nn=!0):(e=this.options.positionOptions,Nn=!1),this._geolocationWatchID=t.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,e)}}else t.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},r.prototype._clearWatch=function(){t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},r}(t.Evented),Vn={maxWidth:100,unit:"metric"},Un=function(e){this.options=t.extend({},Vn,e),t.bindAll(["_onMove","setUnit"],this)};function qn(t,e,i){var r=i&&i.maxWidth||100,n=t._container.clientHeight/2,o=t.unproject([0,n]),a=t.unproject([r,n]),s=o.distanceTo(a);if(i&&"imperial"===i.unit){var l=3.2808*s;l>5280?$n(e,r,l/5280,t._getUIString("ScaleControl.Miles")):$n(e,r,l,t._getUIString("ScaleControl.Feet"))}else i&&"nautical"===i.unit?$n(e,r,s/1852,t._getUIString("ScaleControl.NauticalMiles")):s>=1e3?$n(e,r,s/1e3,t._getUIString("ScaleControl.Kilometers")):$n(e,r,s,t._getUIString("ScaleControl.Meters"))}function $n(t,e,i,r){var n,o,a,s=(n=i,(o=Math.pow(10,(""+Math.floor(n)).length-1))*(a=(a=n/o)>=10?10:a>=5?5:a>=3?3:a>=2?2:a>=1?1:function(t){var e=Math.pow(10,Math.ceil(-Math.log(t)/Math.LN10));return Math.round(t*e)/e}(a)));t.style.width=e*(s/i)+"px",t.innerHTML=s+" "+r}Un.prototype.getDefaultPosition=function(){return"bottom-left"},Un.prototype._onMove=function(){qn(this._map,this._container,this.options)},Un.prototype.onAdd=function(t){return this._map=t,this._container=i.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",t.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Un.prototype.onRemove=function(){i.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Un.prototype.setUnit=function(t){this.options.unit=t,qn(this._map,this._container,this.options)};var Zn=function(e){this._fullscreen=!1,e&&e.container&&(e.container instanceof t.window.HTMLElement?this._container=e.container:t.warnOnce("Full screen control 'container' must be a DOM element.")),t.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in t.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in t.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in t.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in t.window.document&&(this._fullscreenchange="MSFullscreenChange")};Zn.prototype.onAdd=function(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=i.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",t.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Zn.prototype.onRemove=function(){i.remove(this._controlContainer),this._map=null,t.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Zn.prototype._checkFullscreenSupport=function(){return!!(t.window.document.fullscreenEnabled||t.window.document.mozFullScreenEnabled||t.window.document.msFullscreenEnabled||t.window.document.webkitFullscreenEnabled)},Zn.prototype._setupUI=function(){var e=this._fullscreenButton=i.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);i.create("span","mapboxgl-ctrl-icon",e).setAttribute("aria-hidden",!0),e.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),t.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Zn.prototype._updateTitle=function(){var t=this._getTitle();this._fullscreenButton.setAttribute("aria-label",t),this._fullscreenButton.title=t},Zn.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Zn.prototype._isFullscreen=function(){return this._fullscreen},Zn.prototype._changeIcon=function(){(t.window.document.fullscreenElement||t.window.document.mozFullScreenElement||t.window.document.webkitFullscreenElement||t.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},Zn.prototype._onClickFullscreen=function(){this._isFullscreen()?t.window.document.exitFullscreen?t.window.document.exitFullscreen():t.window.document.mozCancelFullScreen?t.window.document.mozCancelFullScreen():t.window.document.msExitFullscreen?t.window.document.msExitFullscreen():t.window.document.webkitCancelFullScreen&&t.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Gn={closeButton:!0,closeOnClick:!0,className:"",maxWidth:"240px"},Xn=function(e){function r(i){e.call(this),this.options=t.extend(Object.create(Gn),i),t.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r,r.prototype.addTo=function(e){return this._map&&this.remove(),this._map=e,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new t.Event("open")),this},r.prototype.isOpen=function(){return!!this._map},r.prototype.remove=function(){return this._content&&i.remove(this._content),this._container&&(i.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new t.Event("close")),this},r.prototype.getLngLat=function(){return this._lngLat},r.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},r.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},r.prototype.getElement=function(){return this._container},r.prototype.setText=function(e){return this.setDOMContent(t.window.document.createTextNode(e))},r.prototype.setHTML=function(e){var i,r=t.window.document.createDocumentFragment(),n=t.window.document.createElement("body");for(n.innerHTML=e;i=n.firstChild;)r.appendChild(i);return this.setDOMContent(r)},r.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},r.prototype.setMaxWidth=function(t){return this.options.maxWidth=t,this._update(),this},r.prototype.setDOMContent=function(t){return this._createContent(),this._content.appendChild(t),this._update(),this},r.prototype.addClassName=function(t){this._container&&this._container.classList.add(t)},r.prototype.removeClassName=function(t){this._container&&this._container.classList.remove(t)},r.prototype.toggleClassName=function(t){if(this._container)return this._container.classList.toggle(t)},r.prototype._createContent=function(){this._content&&i.remove(this._content),this._content=i.create("div","mapboxgl-popup-content",this._container),this.options.closeButton&&(this._closeButton=i.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},r.prototype._onMouseUp=function(t){this._update(t.point)},r.prototype._onMouseMove=function(t){this._update(t.point)},r.prototype._onDrag=function(t){this._update(t.point)},r.prototype._update=function(e){var r=this;if(this._map&&(this._lngLat||this._trackPointer)&&this._content&&(this._container||(this._container=i.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=i.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach((function(t){return r._container.classList.add(t)})),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=zn(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||e)){var n=this._pos=this._trackPointer&&e?e:this._map.project(this._lngLat),o=this.options.anchor,a=function e(i){if(i){if("number"==typeof i){var r=Math.round(Math.sqrt(.5*Math.pow(i,2)));return{center:new t.Point(0,0),top:new t.Point(0,i),"top-left":new t.Point(r,r),"top-right":new t.Point(-r,r),bottom:new t.Point(0,-i),"bottom-left":new t.Point(r,-r),"bottom-right":new t.Point(-r,-r),left:new t.Point(i,0),right:new t.Point(-i,0)}}if(i instanceof t.Point||Array.isArray(i)){var n=t.Point.convert(i);return{center:n,top:n,"top-left":n,"top-right":n,bottom:n,"bottom-left":n,"bottom-right":n,left:n,right:n}}return{center:t.Point.convert(i.center||[0,0]),top:t.Point.convert(i.top||[0,0]),"top-left":t.Point.convert(i["top-left"]||[0,0]),"top-right":t.Point.convert(i["top-right"]||[0,0]),bottom:t.Point.convert(i.bottom||[0,0]),"bottom-left":t.Point.convert(i["bottom-left"]||[0,0]),"bottom-right":t.Point.convert(i["bottom-right"]||[0,0]),left:t.Point.convert(i.left||[0,0]),right:t.Point.convert(i.right||[0,0])}}return e(new t.Point(0,0))}(this.options.offset);if(!o){var s,l=this._container.offsetWidth,u=this._container.offsetHeight;s=n.y+a.bottom.ythis._map.transform.height-u?["bottom"]:[],n.xthis._map.transform.width-l/2&&s.push("right"),o=0===s.length?"bottom":s.join("-")}var c=n.add(a[o]).round();i.setTransform(this._container,Dn[o]+" translate("+c.x+"px,"+c.y+"px)"),On(this._container,o,"popup")}},r.prototype._onClose=function(){this.remove()},r}(t.Evented),Hn={version:t.version,supported:e,setRTLTextPlugin:t.setRTLTextPlugin,getRTLTextPluginStatus:t.getRTLTextPluginStatus,Map:kn,NavigationControl:In,GeolocateControl:jn,AttributionControl:_n,ScaleControl:Un,FullscreenControl:Zn,Popup:Xn,Marker:Ln,Style:qe,LngLat:t.LngLat,LngLatBounds:t.LngLatBounds,Point:t.Point,MercatorCoordinate:t.MercatorCoordinate,Evented:t.Evented,config:t.config,prewarm:function(){Bt().acquire(Ot)},clearPrewarmedResources:function(){var t=Lt;t&&t.isPreloaded()&&1===t.numActive()&&(t.release(Ot),Lt=null)},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 Rt.workerCount},set workerCount(t){Rt.workerCount=t},get maxParallelImageRequests(){return t.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(e){t.config.MAX_PARALLEL_IMAGE_REQUESTS=e},clearStorage:function(e){t.clearTileCache(e)},workerUrl:""};return Hn})),i}))},{}],7:[function(t,e,i){var r,n,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(t){if(r===setTimeout)return setTimeout(t,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(t){r=a}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(t){n=s}}();var u,c=[],p=!1,h=-1;function f(){p&&u&&(p=!1,u.length?c=u.concat(c):h=-1,c.length&&d())}function d(){if(!p){var t=l(f);p=!0;for(var e=c.length;e;){for(u=c,c=[];++h1)for(var i=1;i As of ScrollMagic 2.0.0 you need to use 'new ScrollMagic.Controller()' to create a new controller instance. Use 'new ScrollMagic.Scene()' to instance a scene.")};t.version="2.0.7",window.addEventListener("mousewheel",(function(){})),t.Controller=function(i){var n,o,a="ScrollMagic.Controller",s=e.defaults,l=this,u=r.extend({},s,i),c=[],p=!1,h=0,f="PAUSED",d=!0,m=0,v=!0,y=function(){u.refreshInterval>0&&(o=window.setTimeout(S,u.refreshInterval))},g=function(){return u.vertical?r.get.scrollTop(u.container):r.get.scrollLeft(u.container)},_=function(){return u.vertical?r.get.height(u.container):r.get.width(u.container)},x=this._setScrollPos=function(t){u.vertical?d?window.scrollTo(r.get.scrollLeft(),t):u.container.scrollTop=t:d?window.scrollTo(t,r.get.scrollTop()):u.container.scrollLeft=t},b=function(){if(v&&p){var t=r.type.Array(p)?p:c.slice(0);p=!1;var e=h,i=(h=l.scrollPos())-e;0!==i&&(f=i>0?"FORWARD":"REVERSE"),"REVERSE"===f&&t.reverse(),t.forEach((function(e,i){E(3,"updating Scene "+(i+1)+"/"+t.length+" ("+c.length+" total)"),e.update(!0)})),0===t.length&&u.loglevel>=3&&E(3,"updating 0 Scenes (nothing added to controller)")}},w=function(){n=r.rAF(b)},T=function(t){E(3,"event fired causing an update:",t.type),"resize"==t.type&&(m=_(),f="PAUSED"),!0!==p&&(p=!0,w())},S=function(){if(!d&&m!=_()){var t;try{t=new Event("resize",{bubbles:!1,cancelable:!1})}catch(e){(t=document.createEvent("Event")).initEvent("resize",!1,!1)}u.container.dispatchEvent(t)}c.forEach((function(t,e){t.refresh()})),y()},E=this._log=function(t,e){u.loglevel>=t&&(Array.prototype.splice.call(arguments,1,0,"("+a+") ->"),r.log.apply(window,arguments))};this._options=u;var C=function(t){if(t.length<=1)return t;var e=t.slice(0);return e.sort((function(t,e){return t.scrollOffset()>e.scrollOffset()?1:-1})),e};return this.addScene=function(e){if(r.type.Array(e))e.forEach((function(t,e){l.addScene(t)}));else if(e instanceof t.Scene){if(e.controller()!==l)e.addTo(l);else if(c.indexOf(e)<0){for(var i in c.push(e),c=C(c),e.on("shift.controller_sort",(function(){c=C(c)})),u.globalSceneOptions)e[i]&&e[i].call(e,u.globalSceneOptions[i]);E(3,"adding Scene (now "+c.length+" total)")}}else E(1,"ERROR: invalid argument supplied for '.addScene()'");return l},this.removeScene=function(t){if(r.type.Array(t))t.forEach((function(t,e){l.removeScene(t)}));else{var e=c.indexOf(t);e>-1&&(t.off("shift.controller_sort"),c.splice(e,1),E(3,"removing Scene (now "+c.length+" left)"),t.remove())}return l},this.updateScene=function(e,i){return r.type.Array(e)?e.forEach((function(t,e){l.updateScene(t,i)})):i?e.update(!0):!0!==p&&e instanceof t.Scene&&(-1==(p=p||[]).indexOf(e)&&p.push(e),p=C(p),w()),l},this.update=function(t){return T({type:"resize"}),t&&b(),l},this.scrollTo=function(e,i){if(r.type.Number(e))x.call(u.container,e,i);else if(e instanceof t.Scene)e.controller()===l?l.scrollTo(e.scrollOffset(),i):E(2,"scrollTo(): The supplied scene does not belong to this controller. Scroll cancelled.",e);else if(r.type.Function(e))x=e;else{var n=r.get.elements(e)[0];if(n){for(;n.parentNode.hasAttribute("data-scrollmagic-pin-spacer");)n=n.parentNode;var o=u.vertical?"top":"left",a=r.get.offset(u.container),s=r.get.offset(n);d||(a[o]-=l.scrollPos()),l.scrollTo(s[o]-a[o],i)}else E(2,"scrollTo(): The supplied argument is invalid. Scroll cancelled.",e)}return l},this.scrollPos=function(t){return arguments.length?(r.type.Function(t)?g=t:E(2,"Provided value for method 'scrollPos' is not a function. To change the current scroll position use 'scrollTo()'."),l):g.call(l)},this.info=function(t){var e={size:m,vertical:u.vertical,scrollPos:h,scrollDirection:f,container:u.container,isDocument:d};return arguments.length?void 0!==e[t]?e[t]:void E(1,'ERROR: option "'+t+'" is not available'):e},this.loglevel=function(t){return arguments.length?(u.loglevel!=t&&(u.loglevel=t),l):u.loglevel},this.enabled=function(t){return arguments.length?(v!=t&&(v=!!t,l.updateScene(c,!0)),l):v},this.destroy=function(t){window.clearTimeout(o);for(var e=c.length;e--;)c[e].destroy(t);return u.container.removeEventListener("resize",T),u.container.removeEventListener("scroll",T),r.cAF(n),E(3,"destroyed "+a+" (reset: "+(t?"true":"false")+")"),null},function(){for(var e in u)s.hasOwnProperty(e)||(E(2,'WARNING: Unknown option "'+e+'"'),delete u[e]);if(u.container=r.get.elements(u.container)[0],!u.container)throw E(1,"ERROR creating object "+a+": No valid scroll container supplied"),a+" init failed.";(d=u.container===window||u.container===document.body||!document.body.contains(u.container))&&(u.container=window),m=_(),u.container.addEventListener("resize",T),u.container.addEventListener("scroll",T);var i=parseInt(u.refreshInterval,10);u.refreshInterval=r.type.Number(i)?i:s.refreshInterval,y(),E(3,"added new "+a+" controller (v"+t.version+")")}(),l};var e={defaults:{container:window,vertical:!0,globalSceneOptions:{},loglevel:2,refreshInterval:100}};t.Controller.addOption=function(t,i){e.defaults[t]=i},t.Controller.extend=function(e){var i=this;t.Controller=function(){return i.apply(this,arguments),this.$super=r.extend({},this),e.apply(this,arguments)||this},r.extend(t.Controller,i),t.Controller.prototype=i.prototype,t.Controller.prototype.constructor=t.Controller},t.Scene=function(e){var n,o,a="ScrollMagic.Scene",s=i.defaults,l=this,u=r.extend({},s,e),c="BEFORE",p=0,h={start:0,end:0},f=0,d=!0,m={};this.on=function(t,e){return r.type.Function(e)?(t=t.trim().split(" ")).forEach((function(t){var i=t.split("."),r=i[0],n=i[1];"*"!=r&&(m[r]||(m[r]=[]),m[r].push({namespace:n||"",callback:e}))})):v(1,"ERROR when calling '.on()': Supplied callback for '"+t+"' is not a valid function!"),l},this.off=function(t,e){return t?((t=t.trim().split(" ")).forEach((function(t,i){var r=t.split("."),n=r[0],o=r[1]||"";("*"===n?Object.keys(m):[n]).forEach((function(t){for(var i=m[t]||[],r=i.length;r--;){var n=i[r];!n||o!==n.namespace&&"*"!==o||e&&e!=n.callback||i.splice(r,1)}i.length||delete m[t]}))})),l):(v(1,"ERROR: Invalid event name supplied."),l)},this.trigger=function(e,i){if(e){var r=e.trim().split("."),n=r[0],o=r[1],a=m[n];v(3,"event fired:",n,i?"->":"",i||""),a&&a.forEach((function(e,r){o&&o!==e.namespace||e.callback.call(l,new t.Event(n,e.namespace,l,i))}))}else v(1,"ERROR: Invalid event name supplied.");return l},l.on("change.internal",(function(t){"loglevel"!==t.what&&"tweenChanges"!==t.what&&("triggerElement"===t.what?b():"reverse"===t.what&&l.update())})).on("shift.internal",(function(t){_(),l.update()}));var v=this._log=function(t,e){u.loglevel>=t&&(Array.prototype.splice.call(arguments,1,0,"("+a+") ->"),r.log.apply(window,arguments))};this.addTo=function(e){return e instanceof t.Controller?o!=e&&(o&&o.removeScene(l),o=e,S(),x(!0),b(!0),_(),o.info("container").addEventListener("resize",w),e.addScene(l),l.trigger("add",{controller:o}),v(3,"added "+a+" to controller"),l.update()):v(1,"ERROR: supplied argument of 'addTo()' is not a valid ScrollMagic Controller"),l},this.enabled=function(t){return arguments.length?(d!=t&&(d=!!t,l.update(!0)),l):d},this.remove=function(){if(o){o.info("container").removeEventListener("resize",w);var t=o;o=void 0,t.removeScene(l),l.trigger("remove"),v(3,"removed "+a+" from controller")}return l},this.destroy=function(t){return l.trigger("destroy",{reset:t}),l.remove(),l.off("*.*"),v(3,"destroyed "+a+" (reset: "+(t?"true":"false")+")"),null},this.update=function(t){if(o)if(t)if(o.enabled()&&d){var e,i=o.info("scrollPos");e=u.duration>0?(i-h.start)/(h.end-h.start):i>=h.start?1:0,l.trigger("update",{startPos:h.start,endPos:h.end,scrollPos:i}),l.progress(e)}else y&&"DURING"===c&&k(!0);else o.updateScene(l,!1);return l},this.refresh=function(){return x(),b(),l},this.progress=function(t){if(arguments.length){var e=!1,i=c,r=o?o.info("scrollDirection"):"PAUSED",n=u.reverse||t>=p;if(0===u.duration?(e=p!=t,c=0==(p=t<1&&n?0:1)?"BEFORE":"DURING"):t<0&&"BEFORE"!==c&&n?(p=0,c="BEFORE",e=!0):t>=0&&t<1&&n?(p=t,c="DURING",e=!0):t>=1&&"AFTER"!==c?(p=1,c="AFTER",e=!0):"DURING"!==c||n||k(),e){var a={progress:p,state:c,scrollDirection:r},s=c!=i,h=function(t){l.trigger(t,a)};s&&"DURING"!==i&&(h("enter"),h("BEFORE"===i?"start":"end")),h("progress"),s&&"DURING"!==c&&(h("BEFORE"===c?"start":"end"),h("leave"))}return l}return p};var y,g,_=function(){h={start:f+u.offset},o&&u.triggerElement&&(h.start-=o.info("size")*u.triggerHook),h.end=h.start+u.duration},x=function(t){n&&E("duration",n.call(l))&&!t&&(l.trigger("change",{what:"duration",newval:u.duration}),l.trigger("shift",{reason:"duration"}))},b=function(t){var e=0,i=u.triggerElement;if(o&&(i||f>0)){if(i)if(i.parentNode){for(var n=o.info(),a=r.get.offset(n.container),s=n.vertical?"top":"left";i.parentNode.hasAttribute("data-scrollmagic-pin-spacer");)i=i.parentNode;var c=r.get.offset(i);n.isDocument||(a[s]-=o.scrollPos()),e=c[s]-a[s]}else v(2,"WARNING: triggerElement was removed from DOM and will be reset to",void 0),l.triggerElement(void 0);var p=e!=f;f=e,p&&!t&&l.trigger("shift",{reason:"triggerElementPosition"})}},w=function(t){u.triggerHook>0&&l.trigger("shift",{reason:"containerResize"})},T=r.extend(i.validate,{duration:function(t){if(r.type.String(t)&&t.match(/^(\.|\d)*\d+%$/)){var e=parseFloat(t)/100;t=function(){return o?o.info("size")*e:0}}if(r.type.Function(t)){n=t;try{t=parseFloat(n.call(l))}catch(e){t=-1}}if(t=parseFloat(t),!r.type.Number(t)||t<0)throw n?(n=void 0,['Invalid return value of supplied function for option "duration":',t]):['Invalid value for option "duration":',t];return t}}),S=function(t){(t=arguments.length?[t]:Object.keys(T)).forEach((function(t,e){var i;if(T[t])try{i=T[t](u[t])}catch(e){i=s[t];var n=r.type.String(e)?[e]:e;r.type.Array(n)?(n[0]="ERROR: "+n[0],n.unshift(1),v.apply(this,n)):v(1,"ERROR: Problem executing validation callback for option '"+t+"':",e.message)}finally{u[t]=i}}))},E=function(t,e){var i=!1,r=u[t];return u[t]!=e&&(u[t]=e,S(t),i=r!=u[t]),i},C=function(t){l[t]||(l[t]=function(e){return arguments.length?("duration"===t&&(n=void 0),E(t,e)&&(l.trigger("change",{what:t,newval:u[t]}),i.shifts.indexOf(t)>-1&&l.trigger("shift",{reason:t})),l):u[t]})};this.controller=function(){return o},this.state=function(){return c},this.scrollOffset=function(){return h.start},this.triggerPosition=function(){var t=u.offset;return o&&(u.triggerElement?t+=f:t+=o.info("size")*l.triggerHook()),t},l.on("shift.internal",(function(t){var e="duration"===t.reason;("AFTER"===c&&e||"DURING"===c&&0===u.duration)&&k(),e&&A()})).on("progress.internal",(function(t){k()})).on("add.internal",(function(t){A()})).on("destroy.internal",(function(t){l.removePin(t.reset)}));var k=function(t){if(y&&o){var e=o.info(),i=g.spacer.firstChild;if(t||"DURING"!==c){var n={position:g.inFlow?"relative":"absolute",top:0,left:0},a=r.css(i,"position")!=n.position;g.pushFollowers?u.duration>0&&("AFTER"===c&&0===parseFloat(r.css(g.spacer,"padding-top"))||"BEFORE"===c&&0===parseFloat(r.css(g.spacer,"padding-bottom")))&&(a=!0):n[e.vertical?"top":"left"]=u.duration*p,r.css(i,n),a&&A()}else{"fixed"!=r.css(i,"position")&&(r.css(i,{position:"fixed"}),A());var s=r.get.offset(g.spacer,!0),l=u.reverse||0===u.duration?e.scrollPos-h.start:Math.round(p*u.duration*10)/10;s[e.vertical?"top":"left"]+=l,r.css(g.spacer.firstChild,{top:s.top,left:s.left})}}},A=function(){if(y&&o&&g.inFlow){var t="DURING"===c,e=o.info("vertical"),i=g.spacer.firstChild,n=r.isMarginCollapseType(r.css(g.spacer,"display")),a={};g.relSize.width||g.relSize.autoFullWidth?t?r.css(y,{width:r.get.width(g.spacer)}):r.css(y,{width:"100%"}):(a["min-width"]=r.get.width(e?y:i,!0,!0),a.width=t?a["min-width"]:"auto"),g.relSize.height?t?r.css(y,{height:r.get.height(g.spacer)-(g.pushFollowers?u.duration:0)}):r.css(y,{height:"100%"}):(a["min-height"]=r.get.height(e?i:y,!0,!n),a.height=t?a["min-height"]:"auto"),g.pushFollowers&&(a["padding"+(e?"Top":"Left")]=u.duration*p,a["padding"+(e?"Bottom":"Right")]=u.duration*(1-p)),r.css(g.spacer,a)}},P=function(){o&&y&&"DURING"===c&&!o.info("isDocument")&&k()},I=function(){o&&y&&"DURING"===c&&((g.relSize.width||g.relSize.autoFullWidth)&&r.get.width(window)!=r.get.width(g.spacer.parentNode)||g.relSize.height&&r.get.height(window)!=r.get.height(g.spacer.parentNode))&&A()},M=function(t){o&&y&&"DURING"===c&&!o.info("isDocument")&&(t.preventDefault(),o._setScrollPos(o.info("scrollPos")-((t.wheelDelta||t[o.info("vertical")?"wheelDeltaY":"wheelDeltaX"])/3||30*-t.detail)))};this.setPin=function(t,e){var i=e&&e.hasOwnProperty("pushFollowers");if(e=r.extend({},{pushFollowers:!0,spacerClass:"scrollmagic-pin-spacer"},e),!(t=r.get.elements(t)[0]))return v(1,"ERROR calling method 'setPin()': Invalid pin element supplied."),l;if("fixed"===r.css(t,"position"))return v(1,"ERROR calling method 'setPin()': Pin does not work with elements that are positioned 'fixed'."),l;if(y){if(y===t)return l;l.removePin()}var n=(y=t).parentNode.style.display,o=["top","left","bottom","right","margin","marginLeft","marginRight","marginTop","marginBottom"];y.parentNode.style.display="none";var a="absolute"!=r.css(y,"position"),s=r.css(y,o.concat(["display"])),c=r.css(y,["width","height"]);y.parentNode.style.display=n,!a&&e.pushFollowers&&(v(2,"WARNING: If the pinned element is positioned absolutely pushFollowers will be disabled."),e.pushFollowers=!1),window.setTimeout((function(){y&&0===u.duration&&i&&e.pushFollowers&&v(2,"WARNING: pushFollowers =",!0,"has no effect, when scene duration is 0.")}),0);var p=y.parentNode.insertBefore(document.createElement("div"),y),h=r.extend(s,{position:a?"relative":"absolute",boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"});if(a||r.extend(h,r.css(y,["width","height"])),r.css(p,h),p.setAttribute("data-scrollmagic-pin-spacer",""),r.addClass(p,e.spacerClass),g={spacer:p,relSize:{width:"%"===c.width.slice(-1),height:"%"===c.height.slice(-1),autoFullWidth:"auto"===c.width&&a&&r.isMarginCollapseType(s.display)},pushFollowers:e.pushFollowers,inFlow:a},!y.___origStyle){y.___origStyle={};var f=y.style;o.concat(["width","height","position","boxSizing","mozBoxSizing","webkitBoxSizing"]).forEach((function(t){y.___origStyle[t]=f[t]||""}))}return g.relSize.width&&r.css(p,{width:c.width}),g.relSize.height&&r.css(p,{height:c.height}),p.appendChild(y),r.css(y,{position:a?"relative":"absolute",margin:"auto",top:"auto",left:"auto",bottom:"auto",right:"auto"}),(g.relSize.width||g.relSize.autoFullWidth)&&r.css(y,{boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"}),window.addEventListener("scroll",P),window.addEventListener("resize",P),window.addEventListener("resize",I),y.addEventListener("mousewheel",M),y.addEventListener("DOMMouseScroll",M),v(3,"added pin"),k(),l},this.removePin=function(t){if(y){if("DURING"===c&&k(!0),t||!o){var e=g.spacer.firstChild;if(e.hasAttribute("data-scrollmagic-pin-spacer")){var i=g.spacer.style,n={};["margin","marginLeft","marginRight","marginTop","marginBottom"].forEach((function(t){n[t]=i[t]||""})),r.css(e,n)}g.spacer.parentNode.insertBefore(e,g.spacer),g.spacer.parentNode.removeChild(g.spacer),y.parentNode.hasAttribute("data-scrollmagic-pin-spacer")||(r.css(y,y.___origStyle),delete y.___origStyle)}window.removeEventListener("scroll",P),window.removeEventListener("resize",P),window.removeEventListener("resize",I),y.removeEventListener("mousewheel",M),y.removeEventListener("DOMMouseScroll",M),y=void 0,v(3,"removed pin (reset: "+(t?"true":"false")+")")}return l};var z,D=[];return l.on("destroy.internal",(function(t){l.removeClassToggle(t.reset)})),this.setClassToggle=function(t,e){var i=r.get.elements(t);return 0!==i.length&&r.type.String(e)?(D.length>0&&l.removeClassToggle(),z=e,D=i,l.on("enter.internal_class leave.internal_class",(function(t){var e="enter"===t.type?r.addClass:r.removeClass;D.forEach((function(t,i){e(t,z)}))})),l):(v(1,"ERROR calling method 'setClassToggle()': Invalid "+(0===i.length?"element":"classes")+" supplied."),l)},this.removeClassToggle=function(t){return t&&D.forEach((function(t,e){r.removeClass(t,z)})),l.off("start.internal_class end.internal_class"),z=void 0,D=[],l},function(){for(var t in u)s.hasOwnProperty(t)||(v(2,'WARNING: Unknown option "'+t+'"'),delete u[t]);for(var e in s)C(e);S()}(),l};var i={defaults:{duration:0,offset:0,triggerElement:void 0,triggerHook:.5,reverse:!0,loglevel:2},validate:{offset:function(t){if(t=parseFloat(t),!r.type.Number(t))throw['Invalid value for option "offset":',t];return t},triggerElement:function(t){if(t=t||void 0){var e=r.get.elements(t)[0];if(!e||!e.parentNode)throw['Element defined in option "triggerElement" was not found:',t];t=e}return t},triggerHook:function(t){var e={onCenter:.5,onEnter:1,onLeave:0};if(r.type.Number(t))t=Math.max(0,Math.min(parseFloat(t),1));else{if(!(t in e))throw['Invalid value for option "triggerHook": ',t];t=e[t]}return t},reverse:function(t){return!!t},loglevel:function(t){if(t=parseInt(t),!r.type.Number(t)||t<0||t>3)throw['Invalid value for option "loglevel":',t];return t}},shifts:["duration","offset","triggerHook"]};t.Scene.addOption=function(e,r,n,o){e in i.defaults?t._util.log(1,"[static] ScrollMagic.Scene -> Cannot add Scene option '"+e+"', because it already exists."):(i.defaults[e]=r,i.validate[e]=n,o&&i.shifts.push(e))},t.Scene.extend=function(e){var i=this;t.Scene=function(){return i.apply(this,arguments),this.$super=r.extend({},this),e.apply(this,arguments)||this},r.extend(t.Scene,i),t.Scene.prototype=i.prototype,t.Scene.prototype.constructor=t.Scene},t.Event=function(t,e,i,r){for(var n in r=r||{})this[n]=r[n];return this.type=t,this.target=this.currentTarget=i,this.namespace=e||"",this.timeStamp=this.timestamp=Date.now(),this};var r=t._util=function(t){var e,i={},r=function(t){return parseFloat(t)||0},n=function(e){return e.currentStyle?e.currentStyle:t.getComputedStyle(e)},o=function(e,i,o,a){if((i=i===document?t:i)===t)a=!1;else if(!d.DomElement(i))return 0;e=e.charAt(0).toUpperCase()+e.substr(1).toLowerCase();var s=(o?i["offset"+e]||i["outer"+e]:i["client"+e]||i["inner"+e])||0;if(o&&a){var l=n(i);s+="Height"===e?r(l.marginTop)+r(l.marginBottom):r(l.marginLeft)+r(l.marginRight)}return s},a=function(t){return t.replace(/^[^a-z]+([a-z])/g,"$1").replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))};i.extend=function(t){for(t=t||{},e=1;e-1};var s=0,l=["ms","moz","webkit","o"],u=t.requestAnimationFrame,c=t.cancelAnimationFrame;for(e=0;!u&&ep.length||t<=0)&&(t=p.length);var e=new Date,i=("0"+e.getHours()).slice(-2)+":"+("0"+e.getMinutes()).slice(-2)+":"+("0"+e.getSeconds()).slice(-2)+":"+("00"+e.getMilliseconds()).slice(-3),r=p[t-1],n=Array.prototype.splice.call(arguments,1),o=Function.prototype.bind.call(h[r],h);n.unshift(i),o.apply(h,n)};var d=i.type=function(t){return Object.prototype.toString.call(t).replace(/^\[object (.+)\]$/,"$1").toLowerCase()};d.String=function(t){return"string"===d(t)},d.Function=function(t){return"function"===d(t)},d.Array=function(t){return Array.isArray(t)},d.Number=function(t){return!d.Array(t)&&t-parseFloat(t)+1>=0},d.DomElement=function(t){return"object"==typeof HTMLElement||"function"==typeof HTMLElement?t instanceof HTMLElement||t instanceof SVGElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName};var m=i.get={};return m.elements=function(e){var i=[];if(d.String(e))try{e=document.querySelectorAll(e)}catch(t){return i}if("nodelist"===d(e)||d.Array(e)||e instanceof NodeList)for(var r=0,n=i.length=e.length;r ERROR calling addIndicators() due to missing Plugin 'debug.addIndicators'. Please make sure to include plugins/debug.addIndicators.js"),this},t.Scene.prototype.removeIndicators=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeIndicators() due to missing Plugin 'debug.addIndicators'. Please make sure to include plugins/debug.addIndicators.js"),this},t.Scene.prototype.setTween=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling setTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js"),this},t.Scene.prototype.removeTween=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js"),this},t.Scene.prototype.setVelocity=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling setVelocity() due to missing Plugin 'animation.velocity'. Please make sure to include plugins/animation.velocity.js"),this},t.Scene.prototype.removeVelocity=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeVelocity() due to missing Plugin 'animation.velocity'. Please make sure to include plugins/animation.velocity.js"),this},t},"function"==typeof define&&define.amd?define(n):"object"==typeof i?e.exports=n():r.ScrollMagic=n()},{}],9:[function(t,e,i){ /*! * ScrollMagic v2.0.7 (2019-05-07) * The javascript library for magical scroll interactions. * (c) 2019 Jan Paepke (@janpaepke) * Project Website: http://scrollmagic.io * * @version 2.0.7 * @license Dual licensed under MIT license and GPL. * @author Jan Paepke - e-mail@janpaepke.de * * @file ScrollMagic GSAP Animation Plugin. * * requires: GSAP ~1.14 * Powered by the Greensock Animation Platform (GSAP): http://www.greensock.com/js * Greensock License info at http://www.greensock.com/licensing/ */var r,n;r=this,n=function(t,e,i){"use strict";var r="animation.gsap",n=window.console||{},o=Function.prototype.bind.call(n.error||n.log||function(){},n);t||o("("+r+") -> ERROR: The ScrollMagic main module could not be found. Please make sure it's loaded before this plugin or use an asynchronous loader like requirejs."),e||o("("+r+") -> ERROR: TweenLite or TweenMax could not be found. Please make sure GSAP is loaded before ScrollMagic or use an asynchronous loader like requirejs."),t.Scene.addOption("tweenChanges",!1,(function(t){return!!t})),t.Scene.extend((function(){var t,n=this,o=function(){n._log&&(Array.prototype.splice.call(arguments,1,0,"("+r+")","->"),n._log.apply(this,arguments))};n.on("progress.plugin_gsap",(function(){a()})),n.on("destroy.plugin_gsap",(function(t){n.removeTween(t.reset)}));var a=function(){if(t){var e=n.progress(),i=n.state();t.repeat&&-1===t.repeat()?"DURING"===i&&t.paused()?t.play():"DURING"===i||t.paused()||t.pause():e!=t.progress()&&(0===n.duration()?e>0?t.play():t.reverse():n.tweenChanges()&&t.tweenTo?t.tweenTo(e*t.duration()):t.progress(e).pause())}};n.setTween=function(r,s,l){var u;arguments.length>1&&(arguments.length<3&&(l=s,s=1),r=e.to(r,s,l));try{(u=i?new i({smoothChildTiming:!0}).add(r):r).pause()}catch(t){return o(1,"ERROR calling method 'setTween()': Supplied argument is not a valid TweenObject"),n}if(t&&n.removeTween(),t=u,r.repeat&&-1===r.repeat()&&(t.repeat(-1),t.yoyo(r.yoyo())),n.tweenChanges()&&!t.tweenTo&&o(2,"WARNING: tweenChanges will only work if the TimelineMax object is available for ScrollMagic."),t&&n.controller()&&n.triggerElement()&&n.loglevel()>=2){var c=e.getTweensOf(n.triggerElement()),p=n.controller().info("vertical");c.forEach((function(t,e){var i=t.vars.css||t.vars;if(p?void 0!==i.top||void 0!==i.bottom:void 0!==i.left||void 0!==i.right)return o(2,"WARNING: Tweening the position of the trigger element affects the scene timing and should be avoided!"),!1}))}if(parseFloat(TweenLite.version)>=1.14)for(var h,f,d=t.getChildren?t.getChildren(!0,!0,!1):[t],m=function(){o(2,"WARNING: tween was overwritten by another. To learn how to avoid this issue see here: https://github.com/janpaepke/ScrollMagic/wiki/WARNING:-tween-was-overwritten-by-another")},v=0;v=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},i.setImmediate="function"==typeof e?e:function(t){var e=l++,r=!(arguments.length<2)&&a.call(arguments,1);return s[e]=!0,n((function(){s[e]&&(r?t.apply(null,r):t.call(null),i.clearImmediate(e))})),e},i.clearImmediate="function"==typeof r?r:function(t){delete s[t]}}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":7,timers:10}],11:[function(t,e,i){ /*! * viewport-units-buggyfill v0.6.2 * @web: https://github.com/rodneyrehm/viewport-units-buggyfill/ * @author: Rodney Rehm - http://rodneyrehm.de/en/ */ !function(){!function(t,r){"use strict";"function"==typeof define&&define.amd?define([],r):"object"==typeof i?e.exports=r():t.viewportUnitsBuggyfill=r()}(this,(function(){"use strict";var t,e,i,r,n,o=!1,a=window.navigator.userAgent,s=/([+-]?[0-9.]+)(vh|vw|vmin|vmax)/g,l=/(https?:)?\/\//,u=[].forEach,c=/MSIE [0-9]\./i.test(a),p=/MSIE [0-8]\./i.test(a),h=a.indexOf("Opera Mini")>-1,f=/(iPhone|iPod|iPad).+AppleWebKit/i.test(a)&&((n=a.match(/OS (\d)/))&&n.length>1&&parseInt(n[1])<10),d=a.indexOf(" Android ")>-1&&a.indexOf("Version/")>-1&&parseFloat((a.match("Android ([0-9.]+)")||[])[1])<=4.4;c||(c=!!navigator.userAgent.match(/MSIE 10\.|Trident.*rv[ :]*1[01]\.| Edge\/1\d\./));try{new m("test")}catch(t){var m=function(t,e){var i;return e=e||{bubbles:!1,cancelable:!1,detail:void 0},(i=document.createEvent("CustomEvent")).initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i};m.prototype=window.Event.prototype,window.CustomEvent=m}function v(){o&&(y(),setTimeout((function(){r.textContent=_(),r.parentNode.appendChild(r),window.dispatchEvent(new m("viewport-units-buggyfill-style"))}),1))}function y(){return i=[],u.call(document.styleSheets,(function(t){var e=function(t){try{if(!t.cssRules)return}catch(t){if("SecurityError"!==t.name)throw t;return}for(var e=[],i=0;i1&&void 0!==arguments[1]?arguments[1]:{},i=Object.assign({},r,e),n=i.host,o=i.trackerFileName;(function(t){var e=new Promise((function(e,i){var r=document.createElement("script");r.async=!0,r.defer=!0,r.src=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(r),r.onload=e,r.onerror=i}));return e.catch((function(t){t.target.src})),e})("".concat(n,"/").concat(o,".js")).then((function(){return function(t,e){var i=e.host,r=e.siteId,n=e.trackerFileName,o=e.trackerUrl||"".concat(i,"/").concat(n,".php"),a=window.Piwik.getTracker(o,r);t.prototype.$piwik=a,t.prototype.$matomo=a,e.requireConsent&&a.requireConsent(),e.trackInitialView&&a.trackPageView(),e.enableLinkTracking&&a.enableLinkTracking(),e.router&&e.router.afterEach((function(t,i){var r=window.location,n=r.protocol;":"!==n.slice(-1)&&(n+=":");var o="hash"===e.router.mode?"/#":"",s=n+"//"+r.host+o+t.path;t.meta.analyticsIgnore?e.debug:(e.debug,a.setCustomUrl(s),a.trackPageView())}))}(t,i)}))}}])}))},{}],13:[function(t,e,i){ /*! * vue-resource v1.5.1 * https://github.com/pagekit/vue-resource * Released under the MIT License. */ "use strict";function r(t){this.state=2,this.value=void 0,this.deferred=[];var e=this;try{t((function(t){e.resolve(t)}),(function(t){e.reject(t)}))}catch(t){e.reject(t)}}r.reject=function(t){return new r((function(e,i){i(t)}))},r.resolve=function(t){return new r((function(e,i){e(t)}))},r.all=function(t){return new r((function(e,i){var n=0,o=[];function a(i){return function(r){o[i]=r,(n+=1)===t.length&&e(o)}}0===t.length&&e(o);for(var s=0;s=200&&a<300,this.status=a||0,this.statusText=s||"",this.headers=new L(n),this.body=t,d(t)?this.bodyText=t:(i=t,"undefined"!=typeof Blob&&i instanceof Blob&&(this.bodyBlob=t,function(t){return 0===t.type.indexOf("text")||-1!==t.type.indexOf("json")}(t)&&(this.bodyText=function(t){return new o((function(e){var i=new FileReader;i.readAsText(t),i.onload=function(){e(i.result)}}))}(t))))};B.prototype.blob=function(){return g(this.bodyBlob)},B.prototype.text=function(){return g(this.bodyText)},B.prototype.json=function(){return g(this.text(),(function(t){return JSON.parse(t)}))},Object.defineProperty(B.prototype,"data",{get:function(){return this.body},set:function(t){this.body=t}});var N=function(t){var e;this.body=null,this.params={},b(this,t,{method:(e=t.method||"GET",e?e.toUpperCase():"")}),this.headers instanceof L||(this.headers=new L(this.headers))};N.prototype.getUrl=function(){return P(this)},N.prototype.getBody=function(){return this.body},N.prototype.respondWith=function(t,e){return new B(t,b(e||{},{url:this.getUrl()}))};var j={"Content-Type":"application/json;charset=utf-8"};function V(t){var e=this||{},i=function(t){var e=[R],i=[];function r(r){for(;e.length;){var n=e.pop();if(m(n)){var a=void 0,s=void 0;if(v(a=n.call(t,r,(function(t){return s=t}))||s))return new o((function(e,r){i.forEach((function(e){a=g(a,(function(i){return e.call(t,i)||i}),r)})),g(a,e,r)}),t);m(a)&&i.unshift(a)}}}return v(t)||(t=null),r.use=function(t){e.push(t)},r}(e.$vm);return function(t){var e=u.call(arguments,1);e.forEach((function(e){for(var i in e)void 0===t[i]&&(t[i]=e[i])}))}(t||{},e.$options,V.options),V.interceptors.forEach((function(t){d(t)&&(t=V.interceptor[t]),m(t)&&i.use(t)})),i(new N(t)).then((function(t){return t.ok?t:o.reject(t)}),(function(t){return Error,o.reject(t)}))}function U(t,e,i,r){var n=this||{},o={};return x(i=b({},U.actions,i),(function(i,a){i=w({url:t,params:b({},e)},r,i),o[a]=function(){return(n.$http||V)(q(i,arguments))}})),o}function q(t,e){var i,r=b({},t),n={};switch(e.length){case 2:n=e[0],i=e[1];break;case 1:/^(POST|PUT|PATCH)$/i.test(r.method)?i=e[0]:n=e[0];break;case 0:break;default:throw"Expected up to 2 arguments [params, body], got "+e.length+" arguments"}return r.body=i,r.params=b({},r.params,n),r}function $(t){$.installed||(!function(t){var e=t.config,i=t.nextTick;s=i,e.debug||!e.silent}(t),t.url=P,t.http=V,t.resource=U,t.Promise=o,Object.defineProperties(t.prototype,{$url:{get:function(){return _(t.url,this,this.$options.url)}},$http:{get:function(){return _(t.http,this,this.$options.http)}},$resource:{get:function(){return t.resource.bind(this)}},$promise:{get:function(){var e=this;return function(i){return new t.Promise(i,e)}}}}))}V.options={},V.headers={put:j,post:j,patch:j,delete:j,common:{Accept:"application/json, text/plain, */*"},custom:{}},V.interceptor={before:function(t){m(t.before)&&t.before.call(this,t)},method:function(t){t.emulateHTTP&&/^(PUT|PATCH|DELETE)$/i.test(t.method)&&(t.headers.set("X-HTTP-Method-Override",t.method),t.method="POST")},jsonp:function(t){"JSONP"==t.method&&(t.client=z)},json:function(t){var e=t.headers.get("Content-Type")||"";return v(t.body)&&0===e.indexOf("application/json")&&(t.body=JSON.stringify(t.body)),function(t){return t.bodyText?g(t.text(),(function(e){var i,r;if(0===(t.headers.get("Content-Type")||"").indexOf("application/json")||(r=(i=e).match(/^\s*(\[|\{)/))&&{"[":/]\s*$/,"{":/}\s*$/}[r[1]].test(i))try{t.body=JSON.parse(e)}catch(e){t.body=null}else t.body=e;return t})):t}},form:function(t){var e;e=t.body,"undefined"!=typeof FormData&&e instanceof FormData?t.headers.delete("Content-Type"):v(t.body)&&t.emulateJSON&&(t.body=P.params(t.body),t.headers.set("Content-Type","application/x-www-form-urlencoded"))},header:function(t){x(b({},V.headers.common,t.crossOrigin?{}:V.headers.custom,V.headers[h(t.method)]),(function(e,i){t.headers.has(i)||t.headers.set(i,e)}))},cors:function(t){if(c){var e=P.parse(location.href),i=P.parse(t.getUrl());i.protocol===e.protocol&&i.host===e.host||(t.crossOrigin=!0,t.emulateHTTP=!1,M||(t.client=I))}}},V.interceptors=["before","method","jsonp","json","form","header","cors"],["get","delete","head","jsonp"].forEach((function(t){V[t]=function(e,i){return this(b(i||{},{url:e,method:t}))}})),["post","put","patch"].forEach((function(t){V[t]=function(e,i,r){return this(b(r||{},{url:e,method:t,body:i}))}})),U.actions={get:{method:"GET"},save:{method:"POST"},query:{method:"GET"},update:{method:"PUT"},remove:{method:"DELETE"},delete:{method:"DELETE"}},"undefined"!=typeof window&&window.Vue&&window.Vue.use($),e.exports=$},{got:1}],14:[function(t,e,i){(function(t){ /*! * vue-router v3.4.3 * (c) 2020 Evan You * @license MIT */ "use strict";function i(t,e){if(!t)throw new Error("[vue-router] "+e)}function r(e,i){t.env.NODE_ENV}function n(t,e){for(var i in e)t[i]=e[i];return t}var o={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var i=e.props,r=e.children,o=e.parent,s=e.data;s.routerView=!0;for(var l=o.$createElement,u=i.name,c=o.$route,p=o._routerViewCache||(o._routerViewCache={}),h=0,f=!1;o&&o._routerRoot!==o;){var d=o.$vnode?o.$vnode.data:{};d.routerView&&h++,d.keepAlive&&o._directInactive&&o._inactive&&(f=!0),o=o.$parent}if(s.routerViewDepth=h,f){var m=p[u],v=m&&m.component;return v?(m.configProps&&a(v,s,m.route,m.configProps),l(v,s,r)):l()}var y=c.matched[h],g=y&&y.components[u];if(!y||!g)return p[u]=null,l();p[u]={component:g},s.registerRouteInstance=function(t,e){var i=y.instances[u];(e&&i!==t||!e&&i===t)&&(y.instances[u]=e)},(s.hook||(s.hook={})).prepatch=function(t,e){y.instances[u]=e.componentInstance},s.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==y.instances[u]&&(y.instances[u]=t.componentInstance)};var _=y.props&&y.props[u];return _&&(n(p[u],{route:c,configProps:_}),a(g,s,c,_)),l(g,s,r)}};function a(e,i,o,a){var s=i.props=function(e,i){switch(typeof i){case"undefined":return;case"object":return i;case"function":return i(e);case"boolean":return i?e.params:void 0;default:"production"!==t.env.NODE_ENV&&r(0,e.path)}}(o,a);if(s){s=i.props=n({},s);var l=i.attrs=i.attrs||{};for(var u in s)e.props&&u in e.props||(l[u]=s[u],delete s[u])}}var s=/[!'()*]/g,l=function(t){return"%"+t.charCodeAt(0).toString(16)},u=/%2C/g,c=function(t){return encodeURIComponent(t).replace(s,l).replace(u,",")},p=decodeURIComponent;var h=function(t){return null==t||"object"==typeof t?t:String(t)};function f(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var i=t.replace(/\+/g," ").split("="),r=p(i.shift()),n=i.length>0?p(i.join("=")):null;void 0===e[r]?e[r]=n:Array.isArray(e[r])?e[r].push(n):e[r]=[e[r],n]})),e):e}function d(t){var e=t?Object.keys(t).map((function(e){var i=t[e];if(void 0===i)return"";if(null===i)return c(e);if(Array.isArray(i)){var r=[];return i.forEach((function(t){void 0!==t&&(null===t?r.push(c(e)):r.push(c(e)+"="+c(t)))})),r.join("&")}return c(e)+"="+c(i)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var m=/\/?$/;function v(t,e,i,r){var n=r&&r.options.stringifyQuery,o=e.query||{};try{o=y(o)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:x(e,n),matched:t?_(t):[]};return i&&(a.redirectedFrom=x(i,n)),Object.freeze(a)}function y(t){if(Array.isArray(t))return t.map(y);if(t&&"object"==typeof t){var e={};for(var i in t)e[i]=y(t[i]);return e}return t}var g=v(null,{path:"/"});function _(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function x(t,e){var i=t.path,r=t.query;void 0===r&&(r={});var n=t.hash;return void 0===n&&(n=""),(i||"/")+(e||d)(r)+n}function b(t,e){return e===g?t===e:!!e&&(t.path&&e.path?t.path.replace(m,"")===e.path.replace(m,"")&&t.hash===e.hash&&w(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&w(t.query,e.query)&&w(t.params,e.params)))}function w(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var i=Object.keys(t),r=Object.keys(e);return i.length===r.length&&i.every((function(i){var r=t[i],n=e[i];return null==r||null==n?r===n:"object"==typeof r&&"object"==typeof n?w(r,n):String(r)===String(n)}))}function T(t,e,i){var r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;var n=e.split("/");i&&n[n.length-1]||n.pop();for(var o=t.replace(/^\//,"").split("/"),a=0;a=0&&(e=t.slice(r),t=t.slice(0,r));var n=t.indexOf("?");return n>=0&&(i=t.slice(n+1),t=t.slice(0,n)),{path:t,query:i,hash:e}}(s.path||""),d=i&&i.path||"/",m=p.path?T(p.path,d,o||s.append):d,v=function(e,i,n){void 0===i&&(i={});var o,a=n||f;try{o=a(e||"")}catch(e){"production"!==t.env.NODE_ENV&&r(0,e.message),o={}}for(var s in i){var l=i[s];o[s]=Array.isArray(l)?l.map(h):h(l)}return o}(p.query,s.query,a&&a.options.parseQuery),y=s.hash||p.hash;return y&&"#"!==y.charAt(0)&&(y="#"+y),{_normalized:!0,path:m,query:v,hash:y}}var $,Z=function(){},G={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(e){var i=this,o=this.$router,a=this.$route,s=o.resolve(this.to,a,this.append),l=s.location,u=s.route,c=s.href,p={},h=o.options.linkActiveClass,f=o.options.linkExactActiveClass,d=null==h?"router-link-active":h,y=null==f?"router-link-exact-active":f,g=null==this.activeClass?d:this.activeClass,_=null==this.exactActiveClass?y:this.exactActiveClass,x=u.redirectedFrom?v(null,q(u.redirectedFrom),null,o):u;p[_]=b(a,x),p[g]=this.exact?p[_]:function(t,e){return 0===t.path.replace(m,"/").indexOf(e.path.replace(m,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var i in e)if(!(i in t))return!1;return!0}(t.query,e.query)}(a,x);var w=p[_]?this.ariaCurrentValue:null,T=function(t){X(t)&&(i.replace?o.replace(l,Z):o.push(l,Z))},S={click:X};Array.isArray(this.event)?this.event.forEach((function(t){S[t]=T})):S[this.event]=T;var E={class:p},C=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:c,route:u,navigate:T,isActive:p[g],isExactActive:p[_]});if(C){if(1===C.length)return C[0];if(C.length>1||!C.length)return"production"!==t.env.NODE_ENV&&r(0,this.to),0===C.length?e():e("span",{},C)}if("a"===this.tag)E.on=S,E.attrs={href:c,"aria-current":w};else{var k=function t(e){var i;if(e)for(var r=0;r0){h.map((function(t){return"- "+t})).join("\n");r()}}return{pathList:s,pathMap:l,nameMap:u}}function Y(e,i){var n=C(e,[],i);if("production"!==t.env.NODE_ENV){var o=Object.create(null);n.keys.forEach((function(t){r(o[t.name]),o[t.name]=!0}))}return n}function J(e,n){var o=K(e),a=o.pathList,s=o.pathMap,l=o.nameMap;function u(e,i,o){var u=q(e,i,!1,n),c=u.name;if(c){var h=l[c];if("production"!==t.env.NODE_ENV&&r(),!h)return p(null,u);var f=h.regex.keys.filter((function(t){return!t.optional})).map((function(t){return t.name}));if("object"!=typeof u.params&&(u.params={}),i&&"object"==typeof i.params)for(var d in i.params)!(d in u.params)&&f.indexOf(d)>-1&&(u.params[d]=i.params[d]);return u.path=U(h.path,u.params),p(h,u,o)}if(u.path){u.params={};for(var m=0;m=t.length?i():t[n]?e(t[n],(function(){r(n+1)})):r(n+1)};r(0)}var xt={redirected:2,aborted:4,cancelled:8,duplicated:16};function bt(t,e){return Tt(t,e,xt.redirected,'Redirected when going from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return St.forEach((function(i){i in t&&(e[i]=t[i])})),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}function wt(t,e){return Tt(t,e,xt.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function Tt(t,e,i,r){var n=new Error(r);return n._isRouter=!0,n.from=t,n.to=e,n.type=i,n}var St=["params","query","hash"];function Et(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function Ct(t,e){return Et(t)&&t._isRouter&&(null==e||t.type===e)}function kt(e){return function(i,n,o){var a=!1,s=0,l=null;At(e,(function(e,i,n,u){if("function"==typeof e&&void 0===e.cid){a=!0,s++;var c,p=Mt((function(t){var i;((i=t).__esModule||It&&"Module"===i[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:$.extend(t),n.components[u]=t,--s<=0&&o()})),h=Mt((function(e){var i="Failed to resolve async component "+u+": "+e;"production"!==t.env.NODE_ENV&&r(),l||(l=Et(e)?e:new Error(i),o(l))}));try{c=e(p,h)}catch(t){h(t)}if(c)if("function"==typeof c.then)c.then(p,h);else{var f=c.component;f&&"function"==typeof f.then&&f.then(p,h)}}})),a||o()}}function At(t,e){return Pt(t.map((function(t){return Object.keys(t.components).map((function(i){return e(t.components[i],t.instances[i],t,i)}))})))}function Pt(t){return Array.prototype.concat.apply([],t)}var It="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Mt(t){var e=!1;return function(){for(var i=[],r=arguments.length;r--;)i[r]=arguments[r];if(!e)return e=!0,t.apply(this,i)}}var zt=function(t,e){this.router=t,this.base=function(t){if(!t)if(W){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=g,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Dt(t,e,i,r){var n=At(t,(function(t,r,n,o){var a=function(t,e){"function"!=typeof t&&(t=$.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map((function(t){return i(t,r,n,o)})):i(a,r,n,o)}));return Pt(r?n.reverse():n)}function Ot(t,e){if(e)return function(){return t.apply(e,arguments)}}zt.prototype.listen=function(t){this.cb=t},zt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},zt.prototype.onError=function(t){this.errorCbs.push(t)},zt.prototype.transitionTo=function(t,e,i){var r,n=this;try{r=this.router.match(t,this.current)}catch(t){throw this.errorCbs.forEach((function(e){e(t)})),t}this.confirmTransition(r,(function(){var t=n.current;n.updateRoute(r),e&&e(r),n.ensureURL(),n.router.afterHooks.forEach((function(e){e&&e(r,t)})),n.ready||(n.ready=!0,n.readyCbs.forEach((function(t){t(r)})))}),(function(t){i&&i(t),t&&!n.ready&&(n.ready=!0,Ct(t,xt.redirected)?n.readyCbs.forEach((function(t){t(r)})):n.readyErrorCbs.forEach((function(e){e(t)})))}))},zt.prototype.confirmTransition=function(t,e,i){var n,o,a=this,s=this.current,l=function(t){!Ct(t)&&Et(t)&&(a.errorCbs.length?a.errorCbs.forEach((function(e){e(t)})):r()),i&&i(t)},u=t.matched.length-1,c=s.matched.length-1;if(b(t,s)&&u===c&&t.matched[u]===s.matched[c])return this.ensureURL(),l(((o=Tt(n=s,t,xt.duplicated,'Avoided redundant navigation to current location: "'+n.fullPath+'".')).name="NavigationDuplicated",o));var p=function(t,e){var i,r=Math.max(t.length,e.length);for(i=0;i0)){var e=this.router,i=e.options.scrollBehavior,r=vt&&i;r&&this.listeners.push(at());var n=function(){var i=t.current,n=Lt(t.base);t.current===g&&n===t._startLocation||t.transitionTo(n,(function(t){r&&st(e,t,i,!0)}))};window.addEventListener("popstate",n),this.listeners.push((function(){window.removeEventListener("popstate",n)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,i){var r=this,n=this.current;this.transitionTo(t,(function(t){yt(S(r.base+t.fullPath)),st(r.router,t,n,!1),e&&e(t)}),i)},e.prototype.replace=function(t,e,i){var r=this,n=this.current;this.transitionTo(t,(function(t){gt(S(r.base+t.fullPath)),st(r.router,t,n,!1),e&&e(t)}),i)},e.prototype.ensureURL=function(t){if(Lt(this.base)!==this.current.fullPath){var e=S(this.base+this.current.fullPath);t?yt(e):gt(e)}},e.prototype.getCurrentLocation=function(){return Lt(this.base)},e}(zt);function Lt(t){var e=decodeURI(window.location.pathname);return t&&0===e.toLowerCase().indexOf(t.toLowerCase())&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var Ft=function(t){function e(e,i,r){t.call(this,e,i),r&&function(t){var e=Lt(t);if(!/^\/#/.test(e))return window.location.replace(S(t+"/#"+e)),!0}(this.base)||Bt()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,i=vt&&e;i&&this.listeners.push(at());var r=function(){var e=t.current;Bt()&&t.transitionTo(Nt(),(function(r){i&&st(t.router,r,e,!0),vt||Ut(r.fullPath)}))},n=vt?"popstate":"hashchange";window.addEventListener(n,r),this.listeners.push((function(){window.removeEventListener(n,r)}))}},e.prototype.push=function(t,e,i){var r=this,n=this.current;this.transitionTo(t,(function(t){Vt(t.fullPath),st(r.router,t,n,!1),e&&e(t)}),i)},e.prototype.replace=function(t,e,i){var r=this,n=this.current;this.transitionTo(t,(function(t){Ut(t.fullPath),st(r.router,t,n,!1),e&&e(t)}),i)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;Nt()!==e&&(t?Vt(e):Ut(e))},e.prototype.getCurrentLocation=function(){return Nt()},e}(zt);function Bt(){var t=Nt();return"/"===t.charAt(0)||(Ut("/"+t),!1)}function Nt(){var t=window.location.href,e=t.indexOf("#");if(e<0)return"";var i=(t=t.slice(e+1)).indexOf("?");if(i<0){var r=t.indexOf("#");t=r>-1?decodeURI(t.slice(0,r))+t.slice(r):decodeURI(t)}else t=decodeURI(t.slice(0,i))+t.slice(i);return t}function jt(t){var e=window.location.href,i=e.indexOf("#");return(i>=0?e.slice(0,i):e)+"#"+t}function Vt(t){vt?yt(jt(t)):window.location.hash=t}function Ut(t){vt?gt(jt(t)):window.location.replace(jt(t))}var qt=function(t){function e(e,i){t.call(this,e,i),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,i){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),i)},e.prototype.replace=function(t,e,i){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),i)},e.prototype.go=function(t){var e=this,i=this.index+t;if(!(i<0||i>=this.stack.length)){var r=this.stack[i];this.confirmTransition(r,(function(){e.index=i,e.updateRoute(r)}),(function(t){Ct(t,xt.duplicated)&&(e.index=i)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(zt),$t=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=J(e.routes||[],this);var r=e.mode||"hash";switch(this.fallback="history"===r&&!vt&&!1!==e.fallback,this.fallback&&(r="hash"),W||(r="abstract"),this.mode=r,r){case"history":this.history=new Rt(this,e.base);break;case"hash":this.history=new Ft(this,e.base,this.fallback);break;case"abstract":this.history=new qt(this,e.base);break;default:"production"!==t.env.NODE_ENV&&i(!1,"invalid mode: "+r)}},Zt={currentRoute:{configurable:!0}};function Gt(t,e){return t.push(e),function(){var i=t.indexOf(e);i>-1&&t.splice(i,1)}}$t.prototype.match=function(t,e,i){return this.matcher.match(t,e,i)},Zt.currentRoute.get=function(){return this.history&&this.history.current},$t.prototype.init=function(e){var r=this;if("production"!==t.env.NODE_ENV&&i(H.installed,"not installed. Make sure to call `Vue.use(VueRouter)` before creating root instance."),this.apps.push(e),e.$once("hook:destroyed",(function(){var t=r.apps.indexOf(e);t>-1&&r.apps.splice(t,1),r.app===e&&(r.app=r.apps[0]||null),r.app||r.history.teardownListeners()})),!this.app){this.app=e;var n=this.history;if(n instanceof Rt||n instanceof Ft){var o=function(t){n.setupListeners(),function(t){var e=n.current,i=r.options.scrollBehavior;vt&&i&&"fullPath"in t&&st(r,t,e,!1)}(t)};n.transitionTo(n.getCurrentLocation(),o,o)}n.listen((function(t){r.apps.forEach((function(e){e._route=t}))}))}},$t.prototype.beforeEach=function(t){return Gt(this.beforeHooks,t)},$t.prototype.beforeResolve=function(t){return Gt(this.resolveHooks,t)},$t.prototype.afterEach=function(t){return Gt(this.afterHooks,t)},$t.prototype.onReady=function(t,e){this.history.onReady(t,e)},$t.prototype.onError=function(t){this.history.onError(t)},$t.prototype.push=function(t,e,i){var r=this;if(!e&&!i&&"undefined"!=typeof Promise)return new Promise((function(e,i){r.history.push(t,e,i)}));this.history.push(t,e,i)},$t.prototype.replace=function(t,e,i){var r=this;if(!e&&!i&&"undefined"!=typeof Promise)return new Promise((function(e,i){r.history.replace(t,e,i)}));this.history.replace(t,e,i)},$t.prototype.go=function(t){this.history.go(t)},$t.prototype.back=function(){this.go(-1)},$t.prototype.forward=function(){this.go(1)},$t.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},$t.prototype.resolve=function(t,e,i){var r=q(t,e=e||this.history.current,i,this),n=this.match(r,e),o=n.redirectedFrom||n.fullPath;return{location:r,route:n,href:function(t,e,i){var r="hash"===i?"#"+e:e;return t?S(t+"/"+r):r}(this.history.base,o,this.mode),normalizedTo:r,resolved:n}},$t.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==g&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties($t.prototype,Zt),$t.install=H,$t.version="3.4.3",$t.isNavigationFailure=Ct,$t.NavigationFailureType=xt,W&&window.Vue&&window.Vue.use($t),e.exports=$t}).call(this,t("_process"))},{_process:7}],15:[function(t,e,i){(function(t,r){ /*! * Vue.js v2.6.12 * (c) 2014-2020 Evan You * Released under the MIT License. */ !function(t,r){"object"==typeof i&&void 0!==e?e.exports=r():"function"==typeof define&&define.amd?define(r):(t=t||self).Vue=r()}(this,(function(){"use strict";var e=Object.freeze({});function i(t){return null==t}function n(t){return null!=t}function o(t){return!0===t}function a(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function s(t){return null!==t&&"object"==typeof t}var l=Object.prototype.toString;function u(t){return"[object Object]"===l.call(t)}function c(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function p(t){return n(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function h(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===l?JSON.stringify(t,null,2):String(t)}function f(t){var e=parseFloat(t);return isNaN(e)?t:e}function d(t,e){for(var i=Object.create(null),r=t.split(","),n=0;n-1)return t.splice(i,1)}}var g=Object.prototype.hasOwnProperty;function _(t,e){return g.call(t,e)}function x(t){var e=Object.create(null);return function(i){return e[i]||(e[i]=t(i))}}var b=/-(\w)/g,w=x((function(t){return t.replace(b,(function(t,e){return e?e.toUpperCase():""}))})),T=x((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),S=/\B([A-Z])/g,E=x((function(t){return t.replace(S,"-$1").toLowerCase()})),C=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function i(i){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,i):t.call(e)}return i._length=t.length,i};function k(t,e){e=e||0;for(var i=t.length-e,r=new Array(i);i--;)r[i]=t[i+e];return r}function A(t,e){for(var i in e)t[i]=e[i];return t}function P(t){for(var e={},i=0;i0,Y=H&&H.indexOf("edge/")>0,J=(H&&H.indexOf("android"),H&&/iphone|ipad|ipod|ios/.test(H)||"ios"===X),Q=(H&&/chrome\/\d+/.test(H),H&&/phantomjs/.test(H),H&&H.match(/firefox\/(\d+)/)),tt={}.watch,et=!1;if(Z)try{var it={};Object.defineProperty(it,"passive",{get:function(){et=!0}}),window.addEventListener("test-passive",null,it)}catch(e){}var rt=function(){return void 0===U&&(U=!Z&&!G&&void 0!==t&&t.process&&"server"===t.process.env.VUE_ENV),U},nt=Z&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ot(t){return"function"==typeof t&&/native code/.test(t.toString())}var at,st="undefined"!=typeof Symbol&&ot(Symbol)&&"undefined"!=typeof Reflect&&ot(Reflect.ownKeys);at="undefined"!=typeof Set&&ot(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 lt=I,ut=0,ct=function(){this.id=ut++,this.subs=[]};ct.prototype.addSub=function(t){this.subs.push(t)},ct.prototype.removeSub=function(t){y(this.subs,t)},ct.prototype.depend=function(){ct.target&&ct.target.addDep(this)},ct.prototype.notify=function(){for(var t=this.subs.slice(),e=0,i=t.length;e-1)if(o&&!_(n,"default"))a=!1;else if(""===a||a===E(t)){var l=jt(String,n.type);(l<0||s0&&(ue((l=t(l,(r||"")+"_"+s))[0])&&ue(c)&&(p[u]=yt(c.text+l[0].text),l.shift()),p.push.apply(p,l)):a(l)?ue(c)?p[u]=yt(c.text+l):""!==l&&p.push(yt(l)):ue(l)&&ue(c)?p[u]=yt(c.text+l.text):(o(e._isVList)&&n(l.tag)&&i(l.key)&&n(r)&&(l.key="__vlist"+r+"_"+s+"__"),p.push(l)));return p}(t):void 0}function ue(t){return n(t)&&n(t.text)&&!1===t.isComment}function ce(t,e){if(t){for(var i=Object.create(null),r=st?Reflect.ownKeys(t):Object.keys(t),n=0;n0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==e&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var l in n={},t)t[l]&&"$"!==l[0]&&(n[l]=de(i,l,t[l]))}else n={};for(var u in i)u in n||(n[u]=me(i,u));return t&&Object.isExtensible(t)&&(t._normalized=n),V(n,"$stable",a),V(n,"$key",s),V(n,"$hasNormal",o),n}function de(t,e,i){var r=function(){var t=arguments.length?i.apply(null,arguments):i({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:le(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return i.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function me(t,e){return function(){return t[e]}}function ve(t,e){var i,r,o,a,l;if(Array.isArray(t)||"string"==typeof t)for(i=new Array(t.length),r=0,o=t.length;rdocument.createEvent("Event").timeStamp&&(ai=function(){return si.now()})}function li(){var t,e;for(oi=ai(),ri=!0,Qe.sort((function(t,e){return t.id-e.id})),ni=0;nini&&Qe[i].id>t.id;)i--;Qe.splice(i+1,0,t)}else Qe.push(t);ii||(ii=!0,te(li))}}(this)},ci.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||s(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Vt(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},ci.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},ci.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},ci.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var pi={enumerable:!0,configurable:!0,get:I,set:I};function hi(t,e,i){pi.get=function(){return this[e][i]},pi.set=function(t){this[e][i]=t},Object.defineProperty(t,i,pi)}var fi={lazy:!0};function di(t,e,i){var r=!rt();"function"==typeof i?(pi.get=r?mi(e):vi(i),pi.set=I):(pi.get=i.get?r&&!1!==i.cache?mi(e):vi(i.get):I,pi.set=i.set||I),Object.defineProperty(t,e,pi)}function mi(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ct.target&&e.depend(),e.value}}function vi(t){return function(){return t.call(this,this)}}function yi(t,e,i,r){return u(i)&&(r=i,i=i.handler),"string"==typeof i&&(i=t[i]),t.$watch(e,i,r)}var gi=0;function _i(t){var e=t.options;if(t.super){var i=_i(t.super);if(i!==t.superOptions){t.superOptions=i;var r=function(t){var e,i=t.options,r=t.sealedOptions;for(var n in i)i[n]!==r[n]&&(e||(e={}),e[n]=i[n]);return e}(t);r&&A(t.extendOptions,r),(e=t.options=Rt(i,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function xi(t){this._init(t)}function bi(t){return t&&(t.Ctor.options.name||t.tag)}function wi(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:(i=t,"[object RegExp]"===l.call(i)&&t.test(e));var i}function Ti(t,e){var i=t.cache,r=t.keys,n=t._vnode;for(var o in i){var a=i[o];if(a){var s=bi(a.componentOptions);s&&!e(s)&&Si(i,o,r,n)}}}function Si(t,e,i,r){var n=t[e];!n||r&&n.tag===r.tag||n.componentInstance.$destroy(),t[e]=null,y(i,e)}!function(t){t.prototype._init=function(t){var i=this;i._uid=gi++,i._isVue=!0,t&&t._isComponent?function(t,e){var i=t.$options=Object.create(t.constructor.options),r=e._parentVnode;i.parent=e.parent,i._parentVnode=r;var n=r.componentOptions;i.propsData=n.propsData,i._parentListeners=n.listeners,i._renderChildren=n.children,i._componentTag=n.tag,e.render&&(i.render=e.render,i.staticRenderFns=e.staticRenderFns)}(i,t):i.$options=Rt(_i(i.constructor),t||{},i),i._renderProxy=i,i._self=i,function(t){var e=t.$options,i=e.parent;if(i&&!e.abstract){for(;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._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(i),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Xe(t,e)}(i),function(t){t._vnode=null,t._staticTrees=null;var i=t.$options,r=t.$vnode=i._parentVnode,n=r&&r.context;t.$slots=pe(i._renderChildren,n),t.$scopedSlots=e,t._c=function(e,i,r,n){return Be(t,e,i,r,n,!1)},t.$createElement=function(e,i,r,n){return Be(t,e,i,r,n,!0)};var o=r&&r.data;Ct(t,"$attrs",o&&o.attrs||e,null,!0),Ct(t,"$listeners",i._parentListeners||e,null,!0)}(i),Je(i,"beforeCreate"),function(t){var e=ce(t.$options.inject,t);e&&(Tt(!1),Object.keys(e).forEach((function(i){Ct(t,i,e[i])})),Tt(!0))}(i),function(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var i=t.$options.propsData||{},r=t._props={},n=t.$options._propKeys=[];t.$parent&&Tt(!1);var o=function(o){n.push(o);var a=Ft(o,e,i,t);Ct(r,o,a),o in t||hi(t,"_props",o)};for(var a in e)o(a);Tt(!0)}(t,e.props),e.methods&&function(t,e){for(var i in t.$options.props,e)t[i]="function"!=typeof e[i]?I:C(e[i],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;u(e=t._data="function"==typeof e?function(t,e){ht();try{return t.call(e,e)}catch(t){return Vt(t,e,"data()"),{}}finally{ft()}}(e,t):e||{})||(e={});for(var i,r=Object.keys(e),n=t.$options.props,o=(t.$options.methods,r.length);o--;){var a=r[o];n&&_(n,a)||(void 0,36!==(i=(a+"").charCodeAt(0))&&95!==i&&hi(t,"_data",a))}Et(e,!0)}(t):Et(t._data={},!0),e.computed&&function(t,e){var i=t._computedWatchers=Object.create(null),r=rt();for(var n in e){var o=e[n],a="function"==typeof o?o:o.get;r||(i[n]=new ci(t,a||I,I,fi)),n in t||di(t,n,o)}}(t,e.computed),e.watch&&e.watch!==tt&&function(t,e){for(var i in e){var r=e[i];if(Array.isArray(r))for(var n=0;n1?k(e):e;for(var i=k(arguments,1),r='event handler for "'+t+'"',n=0,o=e.length;nparseInt(this.max)&&Si(a,s[0],s,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return N}};Object.defineProperty(t,"config",e),t.util={warn:lt,extend:A,mergeOptions:Rt,defineReactive:Ct},t.set=kt,t.delete=At,t.nextTick=te,t.observable=function(t){return Et(t),t},t.options=Object.create(null),F.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,A(t.options.components,Ci),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var i=k(arguments,1);return i.unshift(this),"function"==typeof t.install?t.install.apply(t,i):"function"==typeof t&&t.apply(null,i),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Rt(this.options,t),this}}(t),function(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var i=this,r=i.cid,n=t._Ctor||(t._Ctor={});if(n[r])return n[r];var o=t.name||i.options.name,a=function(t){this._init(t)};return(a.prototype=Object.create(i.prototype)).constructor=a,a.cid=e++,a.options=Rt(i.options,t),a.super=i,a.options.props&&function(t){var e=t.options.props;for(var i in e)hi(t.prototype,"_props",i)}(a),a.options.computed&&function(t){var e=t.options.computed;for(var i in e)di(t.prototype,i,e[i])}(a),a.extend=i.extend,a.mixin=i.mixin,a.use=i.use,F.forEach((function(t){a[t]=i[t]})),o&&(a.options.components[o]=a),a.superOptions=i.options,a.extendOptions=t,a.sealedOptions=A({},a.options),n[r]=a,a}}(t),function(t){F.forEach((function(e){t[e]=function(t,i){return i?("component"===e&&u(i)&&(i.name=i.name||t,i=this.options._base.extend(i)),"directive"===e&&"function"==typeof i&&(i={bind:i,update:i}),this.options[e+"s"][t]=i,i):this.options[e+"s"][t]}}))}(t)}(xi),Object.defineProperty(xi.prototype,"$isServer",{get:rt}),Object.defineProperty(xi.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(xi,"FunctionalRenderContext",{value:Me}),xi.version="2.6.12";var ki=d("style,class"),Ai=d("input,textarea,option,select,progress"),Pi=function(t,e,i){return"value"===i&&Ai(t)&&"button"!==e||"selected"===i&&"option"===t||"checked"===i&&"input"===t||"muted"===i&&"video"===t},Ii=d("contenteditable,draggable,spellcheck"),Mi=d("events,caret,typing,plaintext-only"),zi=d("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,translate,truespeed,typemustmatch,visible"),Di="http://www.w3.org/1999/xlink",Oi=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Ri=function(t){return Oi(t)?t.slice(6,t.length):""},Li=function(t){return null==t||!1===t};function Fi(t,e){return{staticClass:Bi(t.staticClass,e.staticClass),class:n(t.class)?[t.class,e.class]:e.class}}function Bi(t,e){return t?e?t+" "+e:t:e||""}function Ni(t){return Array.isArray(t)?function(t){for(var e,i="",r=0,o=t.length;r-1?cr(t,e,i):zi(e)?Li(i)?t.removeAttribute(e):(i="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,i)):Ii(e)?t.setAttribute(e,function(t,e){return Li(e)||"false"===e?"false":"contenteditable"===t&&Mi(e)?e:"true"}(e,i)):Oi(e)?Li(i)?t.removeAttributeNS(Di,Ri(e)):t.setAttributeNS(Di,e,i):cr(t,e,i)}function cr(t,e,i){if(Li(i))t.removeAttribute(e);else{if(W&&!K&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==i&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,i)}}var pr={create:lr,update:lr};function hr(t,e){var r=e.elm,o=e.data,a=t.data;if(!(i(o.staticClass)&&i(o.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var s=function(t){for(var e=t.data,i=t,r=t;n(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=Fi(r.data,e));for(;n(i=i.parent);)i&&i.data&&(e=Fi(e,i.data));return function(t,e){return n(t)||n(e)?Bi(t,Ni(e)):""}(e.staticClass,e.class)}(e),l=r._transitionClasses;n(l)&&(s=Bi(s,Ni(l))),s!==r._prevClass&&(r.setAttribute("class",s),r._prevClass=s)}}var fr,dr,mr,vr,yr,gr,_r={create:hr,update:hr},xr=/[\w).+\-_$\]]/;function br(t){var e,i,r,n,o,a=!1,s=!1,l=!1,u=!1,c=0,p=0,h=0,f=0;for(r=0;r=0&&" "===(m=t.charAt(d));d--);m&&xr.test(m)||(u=!0)}}else void 0===n?(f=r+1,n=t.slice(0,r).trim()):v();function v(){(o||(o=[])).push(t.slice(f,r).trim()),f=r+1}if(void 0===n?n=t.slice(0,r).trim():0!==f&&v(),o)for(r=0;r-1?{exp:t.slice(0,vr),key:'"'+t.slice(vr+1)+'"'}:{exp:t,key:null};for(dr=t,vr=yr=gr=0;!Br();)Nr(mr=Fr())?Vr(mr):91===mr&&jr(mr);return{exp:t.slice(0,yr),key:t.slice(yr+1,gr)}}(t);return null===i.key?t+"="+e:"$set("+i.exp+", "+i.key+", "+e+")"}function Fr(){return dr.charCodeAt(++vr)}function Br(){return vr>=fr}function Nr(t){return 34===t||39===t}function jr(t){var e=1;for(yr=vr;!Br();)if(Nr(t=Fr()))Vr(t);else if(91===t&&e++,93===t&&e--,0===e){gr=vr;break}}function Vr(t){for(var e=t;!Br()&&(t=Fr())!==e;);}var Ur,qr="__r";function $r(t,e,i){var r=Ur;return function n(){null!==e.apply(null,arguments)&&Xr(t,n,i,r)}}var Zr=Gt&&!(Q&&Number(Q[1])<=53);function Gr(t,e,i,r){if(Zr){var n=oi,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=n||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Ur.addEventListener(t,e,et?{capture:i,passive:r}:i)}function Xr(t,e,i,r){(r||Ur).removeEventListener(t,e._wrapper||e,i)}function Hr(t,e){if(!i(t.data.on)||!i(e.data.on)){var r=e.data.on||{},o=t.data.on||{};Ur=e.elm,function(t){if(n(t.__r)){var e=W?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}n(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(r),oe(r,o,Gr,Xr,$r,e.context),Ur=void 0}}var Wr,Kr={create:Hr,update:Hr};function Yr(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var r,o,a=e.elm,s=t.data.domProps||{},l=e.data.domProps||{};for(r in n(l.__ob__)&&(l=e.data.domProps=A({},l)),s)r in l||(a[r]="");for(r in l){if(o=l[r],"textContent"===r||"innerHTML"===r){if(e.children&&(e.children.length=0),o===s[r])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===r&&"PROGRESS"!==a.tagName){a._value=o;var u=i(o)?"":String(o);Jr(a,u)&&(a.value=u)}else if("innerHTML"===r&&Ui(a.tagName)&&i(a.innerHTML)){(Wr=Wr||document.createElement("div")).innerHTML=""+o+"";for(var c=Wr.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;c.firstChild;)a.appendChild(c.firstChild)}else if(o!==s[r])try{a[r]=o}catch(t){}}}}function Jr(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var i=!0;try{i=document.activeElement!==t}catch(t){}return i&&t.value!==e}(t,e)||function(t,e){var i=t.value,r=t._vModifiers;if(n(r)){if(r.number)return f(i)!==f(e);if(r.trim)return i.trim()!==e.trim()}return i!==e}(t,e))}var Qr={create:Yr,update:Yr},tn=x((function(t){var e={},i=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(i);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function en(t){var e=rn(t.style);return t.staticStyle?A(t.staticStyle,e):e}function rn(t){return Array.isArray(t)?P(t):"string"==typeof t?tn(t):t}var nn,on=/^--/,an=/\s*!important$/,sn=function(t,e,i){if(on.test(e))t.style.setProperty(e,i);else if(an.test(i))t.style.setProperty(E(e),i.replace(an,""),"important");else{var r=un(e);if(Array.isArray(i))for(var n=0,o=i.length;n-1?e.split(hn).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var i=" "+(t.getAttribute("class")||"")+" ";i.indexOf(" "+e+" ")<0&&t.setAttribute("class",(i+e).trim())}}function dn(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(hn).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var i=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";i.indexOf(r)>=0;)i=i.replace(r," ");(i=i.trim())?t.setAttribute("class",i):t.removeAttribute("class")}}function mn(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&A(e,vn(t.name||"v")),A(e,t),e}return"string"==typeof t?vn(t):void 0}}var vn=x((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),yn=Z&&!K,gn="transition",_n="animation",xn="transition",bn="transitionend",wn="animation",Tn="animationend";yn&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(xn="WebkitTransition",bn="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(wn="WebkitAnimation",Tn="webkitAnimationEnd"));var Sn=Z?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function En(t){Sn((function(){Sn(t)}))}function Cn(t,e){var i=t._transitionClasses||(t._transitionClasses=[]);i.indexOf(e)<0&&(i.push(e),fn(t,e))}function kn(t,e){t._transitionClasses&&y(t._transitionClasses,e),dn(t,e)}function An(t,e,i){var r=In(t,e),n=r.type,o=r.timeout,a=r.propCount;if(!n)return i();var s=n===gn?bn:Tn,l=0,u=function(){t.removeEventListener(s,c),i()},c=function(e){e.target===t&&++l>=a&&u()};setTimeout((function(){l0&&(i=gn,c=a,p=o.length):e===_n?u>0&&(i=_n,c=u,p=l.length):p=(i=(c=Math.max(a,u))>0?a>u?gn:_n:null)?i===gn?o.length:l.length:0,{type:i,timeout:c,propCount:p,hasTransform:i===gn&&Pn.test(r[xn+"Property"])}}function Mn(t,e){for(;t.length1}function Fn(t,e){!0!==e.data.show&&Dn(e)}var Bn=function(t){var e,r,s={},l=t.modules,u=t.nodeOps;for(e=0;ed?_(t,i(r[y+1])?null:r[y+1].elm,r,f,y,o):f>y&&b(e,h,d)}(h,m,y,r,c):n(y)?(n(t.text)&&u.setTextContent(h,""),_(h,null,y,0,y.length-1,r)):n(m)?b(m,0,m.length-1):n(t.text)&&u.setTextContent(h,""):t.text!==e.text&&u.setTextContent(h,e.text),n(d)&&n(f=d.hook)&&n(f=f.postpatch)&&f(t,e)}}}function E(t,e,i){if(o(i)&&n(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r-1,a.selected!==o&&(a.selected=o);else if(D(qn(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));n||(t.selectedIndex=-1)}}function Un(t,e){return e.every((function(e){return!D(e,t)}))}function qn(t){return"_value"in t?t._value:t.value}function $n(t){t.target.composing=!0}function Zn(t){t.target.composing&&(t.target.composing=!1,Gn(t.target,"input"))}function Gn(t,e){var i=document.createEvent("HTMLEvents");i.initEvent(e,!0,!0),t.dispatchEvent(i)}function Xn(t){return!t.componentInstance||t.data&&t.data.transition?t:Xn(t.componentInstance._vnode)}var Hn={model:Nn,show:{bind:function(t,e,i){var r=e.value,n=(i=Xn(i)).data&&i.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&n?(i.data.show=!0,Dn(i,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,i){var r=e.value;!r!=!e.oldValue&&((i=Xn(i)).data&&i.data.transition?(i.data.show=!0,r?Dn(i,(function(){t.style.display=t.__vOriginalDisplay})):On(i,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,i,r,n){n||(t.style.display=t.__vOriginalDisplay)}}},Wn={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 Kn(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Kn(qe(e.children)):t}function Yn(t){var e={},i=t.$options;for(var r in i.propsData)e[r]=t[r];var n=i._parentListeners;for(var o in n)e[w(o)]=n[o];return e}function Jn(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var Qn=function(t){return t.tag||Ue(t)},to=function(t){return"show"===t.name},eo={name:"transition",props:Wn,abstract:!0,render:function(t){var e=this,i=this.$slots.default;if(i&&(i=i.filter(Qn)).length){var r=this.mode,n=i[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return n;var o=Kn(n);if(!o)return n;if(this._leaving)return Jn(t,n);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var l=(o.data||(o.data={})).transition=Yn(this),u=this._vnode,c=Kn(u);if(o.data.directives&&o.data.directives.some(to)&&(o.data.show=!0),c&&c.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,c)&&!Ue(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var p=c.data.transition=A({},l);if("out-in"===r)return this._leaving=!0,ae(p,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),Jn(t,n);if("in-out"===r){if(Ue(o))return u;var h,f=function(){h()};ae(l,"afterEnter",f),ae(l,"enterCancelled",f),ae(p,"delayLeave",(function(t){h=t}))}}return n}}},io=A({tag:String,moveClass:String},Wn);function ro(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function no(t){t.data.newPos=t.elm.getBoundingClientRect()}function oo(t){var e=t.data.pos,i=t.data.newPos,r=e.left-i.left,n=e.top-i.top;if(r||n){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+n+"px)",o.transitionDuration="0s"}}delete io.mode;var ao={Transition:eo,TransitionGroup:{props:io,beforeMount:function(){var t=this,e=this._update;this._update=function(i,r){var n=We(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,n(),e.call(t,i,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",i=Object.create(null),r=this.prevChildren=this.children,n=this.$slots.default||[],o=this.children=[],a=Yn(this),s=0;s-1?Zi[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Zi[t]=/HTMLUnknownElement/.test(e.toString())},A(xi.options.directives,Hn),A(xi.options.components,ao),xi.prototype.__patch__=Z?Bn:I,xi.prototype.$mount=function(t,e){return function(t,e,i){var r;return t.$el=e,t.$options.render||(t.$options.render=vt),Je(t,"beforeMount"),r=function(){t._update(t._render(),i)},new ci(t,r,I,{before:function(){t._isMounted&&!t._isDestroyed&&Je(t,"beforeUpdate")}},!0),i=!1,null==t.$vnode&&(t._isMounted=!0,Je(t,"mounted")),t}(this,t=t&&Z?Xi(t):void 0,e)},Z&&setTimeout((function(){N.devtools&&nt&&nt.emit("init",xi)}),0);var so,lo=/\{\{((?:.|\r?\n)+?)\}\}/g,uo=/[-.*+?^${}()|[\]\/\\]/g,co=x((function(t){var e=t[0].replace(uo,"\\$&"),i=t[1].replace(uo,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+i,"g")})),po={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var i=zr(t,"class");i&&(t.staticClass=JSON.stringify(i));var r=Mr(t,"class",!1);r&&(t.classBinding=r)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}},ho={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var i=zr(t,"style");i&&(t.staticStyle=JSON.stringify(tn(i)));var r=Mr(t,"style",!1);r&&(t.styleBinding=r)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}},fo=d("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),mo=d("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),vo=d("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),yo=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,go=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,_o="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+j.source+"]*",xo="((?:"+_o+"\\:)?"+_o+")",bo=new RegExp("^<"+xo),wo=/^\s*(\/?)>/,To=new RegExp("^<\\/"+xo+"[^>]*>"),So=/^]+>/i,Eo=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Io=/&(?:lt|gt|quot|amp|#39);/g,Mo=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,zo=d("pre,textarea",!0),Do=function(t,e){return t&&zo(t)&&"\n"===e[0]};function Oo(t,e){var i=e?Mo:Io;return t.replace(i,(function(t){return Po[t]}))}var Ro,Lo,Fo,Bo,No,jo,Vo,Uo,qo=/^@|^v-on:/,$o=/^v-|^@|^:|^#/,Zo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Go=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Xo=/^\(|\)$/g,Ho=/^\[.*\]$/,Wo=/:(.*)$/,Ko=/^:|^\.|^v-bind:/,Yo=/\.[^.\]]+(?=[^\]]*$)/g,Jo=/^v-slot(:|$)|^#/,Qo=/[\r\n]/,ta=/\s+/g,ea=x((function(t){return(so=so||document.createElement("div")).innerHTML=t,so.textContent})),ia="_empty_";function ra(t,e,i){return{type:1,tag:t,attrsList:e,attrsMap:ua(e),rawAttrsMap:{},parent:i,children:[]}}function na(t,e){var i,r;(r=Mr(i=t,"key"))&&(i.key=r),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,function(t){var e=Mr(t,"ref");e&&(t.ref=e,t.refInFor=function(t){for(var e=t;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}(t))}(t),function(t){var e;"template"===t.tag?(e=zr(t,"scope"),t.slotScope=e||zr(t,"slot-scope")):(e=zr(t,"slot-scope"))&&(t.slotScope=e);var i=Mr(t,"slot");if(i&&(t.slotTarget='""'===i?'"default"':i,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["v-bind:slot"]),"template"===t.tag||t.slotScope||Cr(t,"slot",i,function(t,e){return t.rawAttrsMap[":"+e]||t.rawAttrsMap["v-bind:"+e]||t.rawAttrsMap[e]}(t,"slot"))),"template"===t.tag){var r=Dr(t,Jo);if(r){var n=sa(r),o=n.name,a=n.dynamic;t.slotTarget=o,t.slotTargetDynamic=a,t.slotScope=r.value||ia}}else{var s=Dr(t,Jo);if(s){var l=t.scopedSlots||(t.scopedSlots={}),u=sa(s),c=u.name,p=u.dynamic,h=l[c]=ra("template",[],t);h.slotTarget=c,h.slotTargetDynamic=p,h.children=t.children.filter((function(t){if(!t.slotScope)return t.parent=h,!0})),h.slotScope=s.value||ia,t.children=[],t.plain=!1}}}(t),function(t){"slot"===t.tag&&(t.slotName=Mr(t,"name"))}(t),function(t){var e;(e=Mr(t,"is"))&&(t.component=e),null!=zr(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(var n=0;n-1"+("true"===o?":("+e+")":":_q("+e+","+o+")")),Ir(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+n+")":n)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Lr(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Lr(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Lr(e,"$$c")+"}",null,!0)}(t,r,n);else if("input"===o&&"radio"===a)!function(t,e,i){var r=i&&i.number,n=Mr(t,"value")||"null";Er(t,"checked","_q("+e+","+(n=r?"_n("+n+")":n)+")"),Ir(t,"change",Lr(e,n),null,!0)}(t,r,n);else if("input"===o||"textarea"===o)!function(t,e,i){var r=t.attrsMap.type,n=i||{},o=n.lazy,a=n.number,s=n.trim,l=!o&&"range"!==r,u=o?"change":"range"===r?qr:"input",c="$event.target.value";s&&(c="$event.target.value.trim()"),a&&(c="_n("+c+")");var p=Lr(e,c);l&&(p="if($event.target.composing)return;"+p),Er(t,"value","("+e+")"),Ir(t,u,p,null,!0),(s||a)&&Ir(t,"blur","$forceUpdate()")}(t,r,n);else if(!N.isReservedTag(o))return Rr(t,r,n),!1;return!0},text:function(t,e){e.value&&Er(t,"textContent","_s("+e.value+")",e)},html:function(t,e){e.value&&Er(t,"innerHTML","_s("+e.value+")",e)}},isPreTag:function(t){return"pre"===t},isUnaryTag:fo,mustUseProp:Pi,canBeLeftOpenTag:mo,isReservedTag:qi,getTagNamespace:$i,staticKeys:function(t){return t.reduce((function(t,e){return t.concat(e.staticKeys||[])}),[]).join(",")}(ma)},ya=x((function(t){return d("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))}));var ga=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,_a=/\([^)]*?\);*$/,xa=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,ba={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},wa={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Ta=function(t){return"if("+t+")return null;"},Sa={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Ta("$event.target !== $event.currentTarget"),ctrl:Ta("!$event.ctrlKey"),shift:Ta("!$event.shiftKey"),alt:Ta("!$event.altKey"),meta:Ta("!$event.metaKey"),left:Ta("'button' in $event && $event.button !== 0"),middle:Ta("'button' in $event && $event.button !== 1"),right:Ta("'button' in $event && $event.button !== 2")};function Ea(t,e){var i=e?"nativeOn:":"on:",r="",n="";for(var o in t){var a=Ca(t[o]);t[o]&&t[o].dynamic?n+=o+","+a+",":r+='"'+o+'":'+a+","}return r="{"+r.slice(0,-1)+"}",n?i+"_d("+r+",["+n.slice(0,-1)+"])":i+r}function Ca(t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map((function(t){return Ca(t)})).join(",")+"]";var e=xa.test(t.value),i=ga.test(t.value),r=xa.test(t.value.replace(_a,""));if(t.modifiers){var n="",o="",a=[];for(var s in t.modifiers)if(Sa[s])o+=Sa[s],ba[s]&&a.push(s);else if("exact"===s){var l=t.modifiers;o+=Ta(["ctrl","shift","alt","meta"].filter((function(t){return!l[t]})).map((function(t){return"$event."+t+"Key"})).join("||"))}else a.push(s);return a.length&&(n+=function(t){return"if(!$event.type.indexOf('key')&&"+t.map(ka).join("&&")+")return null;"}(a)),o&&(n+=o),"function($event){"+n+(e?"return "+t.value+"($event)":i?"return ("+t.value+")($event)":r?"return "+t.value:t.value)+"}"}return e||i?t.value:"function($event){"+(r?"return "+t.value:t.value)+"}"}function ka(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var i=ba[t],r=wa[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(i)+",$event.key,"+JSON.stringify(r)+")"}var Aa={on:function(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}},bind:function(t,e){t.wrapData=function(i){return"_b("+i+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}},cloak:I},Pa=function(t){this.options=t,this.warn=t.warn||Tr,this.transforms=Sr(t.modules,"transformCode"),this.dataGenFns=Sr(t.modules,"genData"),this.directives=A(A({},Aa),t.directives);var e=t.isReservedTag||M;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Ia(t,e){var i=new Pa(e);return{render:"with(this){return "+(t?Ma(t,i):'_c("div")')+"}",staticRenderFns:i.staticRenderFns}}function Ma(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return za(t,e);if(t.once&&!t.onceProcessed)return Da(t,e);if(t.for&&!t.forProcessed)return Ra(t,e);if(t.if&&!t.ifProcessed)return Oa(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var i=t.slotName||'"default"',r=Na(t,e),n="_t("+i+(r?","+r:""),o=t.attrs||t.dynamicAttrs?Ua((t.attrs||[]).concat(t.dynamicAttrs||[]).map((function(t){return{name:w(t.name),value:t.value,dynamic:t.dynamic}}))):null,a=t.attrsMap["v-bind"];return!o&&!a||r||(n+=",null"),o&&(n+=","+o),a&&(n+=(o?"":",null")+","+a),n+")"}(t,e);var i;if(t.component)i=function(t,e,i){var r=e.inlineTemplate?null:Na(e,i,!0);return"_c("+t+","+La(e,i)+(r?","+r:"")+")"}(t.component,t,e);else{var r;(!t.plain||t.pre&&e.maybeComponent(t))&&(r=La(t,e));var n=t.inlineTemplate?null:Na(t,e,!0);i="_c('"+t.tag+"'"+(r?","+r:"")+(n?","+n:"")+")"}for(var o=0;o>>0}(a):"")+")"}(t,t.scopedSlots,e)+","),t.model&&(i+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var o=function(t,e){var i=t.children[0];if(i&&1===i.type){var r=Ia(i,e.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map((function(t){return"function(){"+t+"}"})).join(",")+"]}"}}(t,e);o&&(i+=o+",")}return i=i.replace(/,$/,"")+"}",t.dynamicAttrs&&(i="_b("+i+',"'+t.tag+'",'+Ua(t.dynamicAttrs)+")"),t.wrapData&&(i=t.wrapData(i)),t.wrapListeners&&(i=t.wrapListeners(i)),i}function Fa(t){return 1===t.type&&("slot"===t.tag||t.children.some(Fa))}function Ba(t,e){var i=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!i)return Oa(t,e,Ba,"null");if(t.for&&!t.forProcessed)return Ra(t,e,Ba);var r=t.slotScope===ia?"":String(t.slotScope),n="function("+r+"){return "+("template"===t.tag?t.if&&i?"("+t.if+")?"+(Na(t,e)||"undefined")+":undefined":Na(t,e)||"undefined":Ma(t,e))+"}",o=r?"":",proxy:true";return"{key:"+(t.slotTarget||'"default"')+",fn:"+n+o+"}"}function Na(t,e,i,r,n){var o=t.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=i?e.maybeComponent(a)?",1":",0":"";return""+(r||Ma)(a,e)+s}var l=i?function(t,e){for(var i=0,r=0;r]*>)","i")),h=t.replace(p,(function(t,i,r){return u=r.length,ko(c)||"noscript"===c||(i=i.replace(//g,"$1").replace(//g,"$1")),Do(c,i)&&(i=i.slice(1)),e.chars&&e.chars(i),""}));l+=t.length-h.length,t=h,C(c,l-u,l)}else{var f=t.indexOf("<");if(0===f){if(Eo.test(t)){var d=t.indexOf("--\x3e");if(d>=0){e.shouldKeepComment&&e.comment(t.substring(4,d),l,l+d+3),T(d+3);continue}}if(Co.test(t)){var m=t.indexOf("]>");if(m>=0){T(m+2);continue}}var v=t.match(So);if(v){T(v[0].length);continue}var y=t.match(To);if(y){var g=l;T(y[0].length),C(y[1],g,l);continue}var _=S();if(_){E(_),Do(_.tagName,t)&&T(1);continue}}var x=void 0,b=void 0,w=void 0;if(f>=0){for(b=t.slice(f);!(To.test(b)||bo.test(b)||Eo.test(b)||Co.test(b)||(w=b.indexOf("<",1))<0);)f+=w,b=t.slice(f);x=t.substring(0,f)}f<0&&(x=t),x&&T(x.length),e.chars&&x&&e.chars(x,l-x.length,l)}if(t===i){e.chars&&e.chars(t);break}}function T(e){l+=e,t=t.substring(e)}function S(){var e=t.match(bo);if(e){var i,r,n={tagName:e[1],attrs:[],start:l};for(T(e[0].length);!(i=t.match(wo))&&(r=t.match(go)||t.match(yo));)r.start=l,T(r[0].length),r.end=l,n.attrs.push(r);if(i)return n.unarySlash=i[1],T(i[0].length),n.end=l,n}}function E(t){var i=t.tagName,l=t.unarySlash;o&&("p"===r&&vo(i)&&C(r),s(i)&&r===i&&C(i));for(var u=a(i)||!!l,c=t.attrs.length,p=new Array(c),h=0;h=0&&n[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=n.length-1;u>=a;u--)e.end&&e.end(n[u].tag,i,o);n.length=a,r=a&&n[a-1].tag}else"br"===s?e.start&&e.start(t,[],!0,i,o):"p"===s&&(e.start&&e.start(t,[],!1,i,o),e.end&&e.end(t,i,o))}C()}(t,{warn:Ro,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,o,a,c,p){var h=r&&r.ns||Uo(t);W&&"svg"===h&&(o=function(t){for(var e=[],i=0;il&&(s.push(o=t.slice(l,n)),a.push(JSON.stringify(o)));var u=br(r[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),l=n+r[0].length}return l':'
',Xa.innerHTML.indexOf(" ")>0}var Ya=!!Z&&Ka(!1),Ja=!!Z&&Ka(!0),Qa=x((function(t){var e=Xi(t);return e&&e.innerHTML})),ts=xi.prototype.$mount;return xi.prototype.$mount=function(t,e){if((t=t&&Xi(t))===document.body||t===document.documentElement)return this;var i=this.$options;if(!i.render){var r=i.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=Qa(r));else{if(!r.nodeType)return this;r=r.innerHTML}else t&&(r=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(r){var n=Wa(r,{outputSourceRange:!1,shouldDecodeNewlines:Ya,shouldDecodeNewlinesForHref:Ja,delimiters:i.delimiters,comments:i.comments},this),o=n.render,a=n.staticRenderFns;i.render=o,i.staticRenderFns=a}}return ts.call(this,t,e)},xi.compile=Wa,xi}))}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("timers").setImmediate)},{timers:10}],16:[function(t,e,i){function r(t,e){var i={name:t.name,path:t.path,hash:t.hash,query:t.query,params:t.params,fullPath:t.fullPath,meta:t.meta};return e&&(i.from=r(e)),Object.freeze(i)}i.sync=function(t,e,i){var n=(i||{}).moduleName||"route";t.registerModule(n,{namespaced:!0,state:r(e.currentRoute),mutations:{ROUTE_CHANGED:function(e,i){t.state[n]=r(i.to,i.from)}}});var o,a=!1,s=t.watch((function(t){return t[n]}),(function(t){var i=t.fullPath;i!==o&&(null!=o&&(a=!0,e.push(t)),o=i)}),{sync:!0}),l=e.afterEach((function(e,i){a?a=!1:(o=e.fullPath,t.commit(n+"/ROUTE_CHANGED",{to:e,from:i}))}));return function(){null!=l&&l(),null!=s&&s(),t.unregisterModule(n)}}},{}],17:[function(t,e,i){(function(t,i){ /*! * vuex v3.5.1 * (c) 2020 Evan You * @license MIT */ "use strict";var r=("undefined"!=typeof window?window:void 0!==i?i:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function n(t,e){if(void 0===e&&(e=[]),null===t||"object"!=typeof t)return t;var i,r=(i=function(e){return e.original===t},e.filter(i)[0]);if(r)return r.copy;var o=Array.isArray(t)?[]:{};return e.push({original:t,copy:o}),Object.keys(t).forEach((function(i){o[i]=n(t[i],e)})),o}function o(t,e){Object.keys(t).forEach((function(i){return e(t[i],i)}))}function a(t){return null!==t&&"object"==typeof t}function s(t,e){if(!t)throw new Error("[vuex] "+e)}var l=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var i=t.state;this.state=("function"==typeof i?i():i)||{}},u={namespaced:{configurable:!0}};u.namespaced.get=function(){return!!this._rawModule.namespaced},l.prototype.addChild=function(t,e){this._children[t]=e},l.prototype.removeChild=function(t){delete this._children[t]},l.prototype.getChild=function(t){return this._children[t]},l.prototype.hasChild=function(t){return t in this._children},l.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},l.prototype.forEachChild=function(t){o(this._children,t)},l.prototype.forEachGetter=function(t){this._rawModule.getters&&o(this._rawModule.getters,t)},l.prototype.forEachAction=function(t){this._rawModule.actions&&o(this._rawModule.actions,t)},l.prototype.forEachMutation=function(t){this._rawModule.mutations&&o(this._rawModule.mutations,t)},Object.defineProperties(l.prototype,u);var c=function(t){this.register([],t,!1)};c.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},c.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,i){return t+((e=e.getChild(i)).namespaced?i+"/":"")}),"")},c.prototype.update=function(e){!function e(i,r,n){"production"!==t.env.NODE_ENV&&d(i,n);if(r.update(n),n.modules)for(var o in n.modules){if(!r.getChild(o))return void t.env.NODE_ENV;e(i.concat(o),r.getChild(o),n.modules[o])}}([],this.root,e)},c.prototype.register=function(e,i,r){var n=this;void 0===r&&(r=!0),"production"!==t.env.NODE_ENV&&d(e,i);var a=new l(i,r);0===e.length?this.root=a:this.get(e.slice(0,-1)).addChild(e[e.length-1],a);i.modules&&o(i.modules,(function(t,i){n.register(e.concat(i),t,r)}))},c.prototype.unregister=function(e){var i=this.get(e.slice(0,-1)),r=e[e.length-1],n=i.getChild(r);n?n.runtime&&i.removeChild(r):t.env.NODE_ENV},c.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),i=t[t.length-1];return e.hasChild(i)};var p,h={assert:function(t){return"function"==typeof t},expected:"function"},f={getters:h,mutations:h,actions:{assert:function(t){return"function"==typeof t||"object"==typeof t&&"function"==typeof t.handler},expected:'function or object with "handler" function'}};function d(t,e){Object.keys(f).forEach((function(i){if(e[i]){var r=f[i];o(e[i],(function(e,n){s(r.assert(e),function(t,e,i,r,n){var o=e+" should be "+n+' but "'+e+"."+i+'"';t.length>0&&(o+=' in module "'+t.join(".")+'"');return o+=" is "+JSON.stringify(r)+"."}(t,i,n,e,r.expected))}))}}))}var m=function e(i){var n=this;void 0===i&&(i={}),!p&&"undefined"!=typeof window&&window.Vue&&T(window.Vue),"production"!==t.env.NODE_ENV&&(s(p,"must call Vue.use(Vuex) before creating a store instance."),s("undefined"!=typeof Promise,"vuex requires a Promise polyfill in this browser."),s(this instanceof e,"store must be called with the new operator."));var o=i.plugins;void 0===o&&(o=[]);var a=i.strict;void 0===a&&(a=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new c(i),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new p,this._makeLocalGettersCache=Object.create(null);var l=this,u=this.dispatch,h=this.commit;this.dispatch=function(t,e){return u.call(l,t,e)},this.commit=function(t,e,i){return h.call(l,t,e,i)},this.strict=a;var f=this._modules.root.state;x(this,f,[],this._modules.root),_(this,f),o.forEach((function(t){return t(n)})),(void 0!==i.devtools?i.devtools:p.config.devtools)&&function(t){r&&(t._devtoolHook=r,r.emit("vuex:init",t),r.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){r.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){r.emit("vuex:action",t,e)}),{prepend:!0}))}(this)},v={state:{configurable:!0}};function y(t,e,i){return e.indexOf(t)<0&&(i&&i.prepend?e.unshift(t):e.push(t)),function(){var i=e.indexOf(t);i>-1&&e.splice(i,1)}}function g(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var i=t.state;x(t,i,[],t._modules.root,!0),_(t,i,e)}function _(e,i,r){var n=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var a=e._wrappedGetters,l={};o(a,(function(t,i){l[i]=function(t,e){return function(){return t(e)}}(t,e),Object.defineProperty(e.getters,i,{get:function(){return e._vm[i]},enumerable:!0})}));var u=p.config.silent;p.config.silent=!0,e._vm=new p({data:{$$state:i},computed:l}),p.config.silent=u,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){"production"!==t.env.NODE_ENV&&s(e._committing,"do not mutate vuex store state outside mutation handlers.")}),{deep:!0,sync:!0})}(e),n&&(r&&e._withCommit((function(){n._data.$$state=null})),p.nextTick((function(){return n.$destroy()})))}function x(e,i,r,n,o){var a=!r.length,s=e._modules.getNamespace(r);if(n.namespaced&&(e._modulesNamespaceMap[s]&&t.env.NODE_ENV,e._modulesNamespaceMap[s]=n),!a&&!o){var l=b(i,r.slice(0,-1)),u=r[r.length-1];e._withCommit((function(){t.env.NODE_ENV,p.set(l,u,n.state)}))}var c=n.context=function(e,i,r){var n=""===i,o={dispatch:n?e.dispatch:function(r,n,o){var a=w(r,n,o),s=a.payload,l=a.options,u=a.type;if(l&&l.root||(u=i+u,"production"===t.env.NODE_ENV||e._actions[u]))return e.dispatch(u,s)},commit:n?e.commit:function(r,n,o){var a=w(r,n,o),s=a.payload,l=a.options,u=a.type;(l&&l.root||(u=i+u,"production"===t.env.NODE_ENV||e._mutations[u]))&&e.commit(u,s,l)}};return Object.defineProperties(o,{getters:{get:n?function(){return e.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var i={},r=e.length;Object.keys(t.getters).forEach((function(n){if(n.slice(0,r)===e){var o=n.slice(r);Object.defineProperty(i,o,{get:function(){return t.getters[n]},enumerable:!0})}})),t._makeLocalGettersCache[e]=i}return t._makeLocalGettersCache[e]}(e,i)}},state:{get:function(){return b(e.state,r)}}}),o}(e,s,r);n.forEachMutation((function(t,i){!function(t,e,i,r){(t._mutations[e]||(t._mutations[e]=[])).push((function(e){i.call(t,r.state,e)}))}(e,s+i,t,c)})),n.forEachAction((function(t,i){var r=t.root?i:s+i,n=t.handler||t;!function(t,e,i,r){(t._actions[e]||(t._actions[e]=[])).push((function(e){var n,o=i.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return(n=o)&&"function"==typeof n.then||(o=Promise.resolve(o)),t._devtoolHook?o.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):o}))}(e,r,n,c)})),n.forEachGetter((function(i,r){!function(e,i,r,n){if(e._wrappedGetters[i])return void t.env.NODE_ENV;e._wrappedGetters[i]=function(t){return r(n.state,n.getters,t.state,t.getters)}}(e,s+r,i,c)})),n.forEachChild((function(t,n){x(e,i,r.concat(n),t,o)}))}function b(t,e){return e.reduce((function(t,e){return t[e]}),t)}function w(e,i,r){return a(e)&&e.type&&(r=i,i=e,e=e.type),"production"!==t.env.NODE_ENV&&s("string"==typeof e,"expects string as the type, but found "+typeof e+"."),{type:e,payload:i,options:r}}function T(e){p&&e===p?t.env.NODE_ENV:function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:i});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[i].concat(t.init):i,e.call(this,t)}}function i(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(p=e)}v.state.get=function(){return this._vm._data.$$state},v.state.set=function(e){"production"!==t.env.NODE_ENV&&s(!1,"use store.replaceState() to explicit replace store state.")},m.prototype.commit=function(e,i,r){var n=this,o=w(e,i,r),a=o.type,s=o.payload,l=o.options,u={type:a,payload:s},c=this._mutations[a];c?(this._withCommit((function(){c.forEach((function(t){t(s)}))})),this._subscribers.slice().forEach((function(t){return t(u,n.state)})),"production"!==t.env.NODE_ENV&&l&&l.silent):t.env.NODE_ENV},m.prototype.dispatch=function(e,i){var r=this,n=w(e,i),o=n.type,a=n.payload,s={type:o,payload:a},l=this._actions[o];if(l){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(s,r.state)}))}catch(e){t.env.NODE_ENV}var u=l.length>1?Promise.all(l.map((function(t){return t(a)}))):l[0](a);return new Promise((function(e,i){u.then((function(i){try{r._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(s,r.state)}))}catch(e){t.env.NODE_ENV}e(i)}),(function(e){try{r._actionSubscribers.filter((function(t){return t.error})).forEach((function(t){return t.error(s,r.state,e)}))}catch(e){t.env.NODE_ENV}i(e)}))}))}t.env.NODE_ENV},m.prototype.subscribe=function(t,e){return y(t,this._subscribers,e)},m.prototype.subscribeAction=function(t,e){return y("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},m.prototype.watch=function(e,i,r){var n=this;return"production"!==t.env.NODE_ENV&&s("function"==typeof e,"store.watch only accepts a function."),this._watcherVM.$watch((function(){return e(n.state,n.getters)}),i,r)},m.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},m.prototype.registerModule=function(e,i,r){void 0===r&&(r={}),"string"==typeof e&&(e=[e]),"production"!==t.env.NODE_ENV&&(s(Array.isArray(e),"module path must be a string or an Array."),s(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,i),x(this,this.state,e,this._modules.get(e),r.preserveState),_(this,this.state)},m.prototype.unregisterModule=function(e){var i=this;"string"==typeof e&&(e=[e]),"production"!==t.env.NODE_ENV&&s(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit((function(){var t=b(i.state,e.slice(0,-1));p.delete(t,e[e.length-1])})),g(this)},m.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),"production"!==t.env.NODE_ENV&&s(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},m.prototype.hotUpdate=function(t){this._modules.update(t),g(this,!0)},m.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(m.prototype,v);var S=I((function(e,i){var r={};return"production"!==t.env.NODE_ENV&&P(i),A(i).forEach((function(t){var i=t.key,n=t.val;r[i]=function(){var t=this.$store.state,i=this.$store.getters;if(e){var r=M(this.$store,"mapState",e);if(!r)return;t=r.context.state,i=r.context.getters}return"function"==typeof n?n.call(this,t,i):t[n]},r[i].vuex=!0})),r})),E=I((function(e,i){var r={};return"production"!==t.env.NODE_ENV&&P(i),A(i).forEach((function(t){var i=t.key,n=t.val;r[i]=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];var r=this.$store.commit;if(e){var o=M(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"==typeof n?n.apply(this,[r].concat(t)):r.apply(this.$store,[n].concat(t))}})),r})),C=I((function(e,i){var r={};return"production"!==t.env.NODE_ENV&&P(i),A(i).forEach((function(i){var n=i.key,o=i.val;o=e+o,r[n]=function(){if((!e||M(this.$store,"mapGetters",e))&&("production"===t.env.NODE_ENV||o in this.$store.getters))return this.$store.getters[o]},r[n].vuex=!0})),r})),k=I((function(e,i){var r={};return"production"!==t.env.NODE_ENV&&P(i),A(i).forEach((function(t){var i=t.key,n=t.val;r[i]=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];var r=this.$store.dispatch;if(e){var o=M(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"==typeof n?n.apply(this,[r].concat(t)):r.apply(this.$store,[n].concat(t))}})),r}));function A(t){return P(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function P(t){return Array.isArray(t)||a(t)}function I(t){return function(e,i){return"string"!=typeof e?(i=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,i)}}function M(e,i,r){var n=e._modulesNamespaceMap[r];return t.env.NODE_ENV,n}function z(t,e,i){var r=i?t.groupCollapsed:t.group;try{r.call(t,e)}catch(i){t.log(e)}}function D(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function O(){var t=new Date;return" @ "+R(t.getHours(),2)+":"+R(t.getMinutes(),2)+":"+R(t.getSeconds(),2)+"."+R(t.getMilliseconds(),3)}function R(t,e){return i="0",r=e-t.toString().length,new Array(r+1).join(i)+t;var i,r}var L={Store:m,install:T,version:"3.5.1",mapState:S,mapMutations:E,mapGetters:C,mapActions:k,createNamespacedHelpers:function(t){return{mapState:S.bind(null,t),mapGetters:C.bind(null,t),mapMutations:E.bind(null,t),mapActions:k.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var i=t.filter;void 0===i&&(i=function(t,e,i){return!0});var r=t.transformer;void 0===r&&(r=function(t){return t});var o=t.mutationTransformer;void 0===o&&(o=function(t){return t});var a=t.actionFilter;void 0===a&&(a=function(t,e){return!0});var s=t.actionTransformer;void 0===s&&(s=function(t){return t});var l=t.logMutations;void 0===l&&(l=!0);var u=t.logActions;void 0===u&&(u=!0);var c=t.logger;return void 0===c&&(c=console),function(t){var p=n(t.state);void 0!==c&&(l&&t.subscribe((function(t,a){var s=n(a);if(i(t,p,s)){var l=O(),u=o(t),h="mutation "+t.type+l;z(c,h,e),c.log("%c prev state","color: #9E9E9E; font-weight: bold",r(p)),c.log("%c mutation","color: #03A9F4; font-weight: bold",u),c.log("%c next state","color: #4CAF50; font-weight: bold",r(s)),D(c)}p=s})),u&&t.subscribeAction((function(t,i){if(a(t,i)){var r=O(),n=s(t),o="action "+t.type+r;z(c,o,e),c.log("%c action","color: #03A9F4; font-weight: bold",n),D(c)}})))}}};e.exports=L}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:7}],18:[function(t,e,i){ /** * what-input - A global utility for tracking the current input method (mouse, keyboard or touch). * @version v5.2.10 * @link https://github.com/ten1seven/what-input * @license MIT */ var r,n;r=this,n=function(){return function(t){var e={};function i(r){if(e[r])return e[r].exports;var n=e[r]={exports:{},id:r,loaded:!1};return t[r].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}return i.m=t,i.c=e,i.p="",i(0)}([function(t,e){"use strict";t.exports=function(){if("undefined"==typeof document||"undefined"==typeof window)return{ask:function(){return"initial"},element:function(){return null},ignoreKeys:function(){},specificKeys:function(){},registerOnChange:function(){},unRegisterOnChange:function(){}};var t=document.documentElement,e=null,i="initial",r=i,n=Date.now(),o="false",a=["button","input","select","textarea"],s=[],l=[16,17,18,91,93],u=[],c={keydown:"keyboard",keyup:"keyboard",mousedown:"mouse",mousemove:"mouse",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch",touchend:"touch"},p=!1,h={x:null,y:null},f={2:"touch",3:"touch",4:"mouse"},d=!1;try{var m=Object.defineProperty({},"passive",{get:function(){d=!0}});window.addEventListener("test",null,m)}catch(t){}var v=function(){var t=!!d&&{passive:!0};document.addEventListener("DOMContentLoaded",y),window.PointerEvent?(window.addEventListener("pointerdown",g),window.addEventListener("pointermove",x)):window.MSPointerEvent?(window.addEventListener("MSPointerDown",g),window.addEventListener("MSPointerMove",x)):(window.addEventListener("mousedown",g),window.addEventListener("mousemove",x),"ontouchstart"in window&&(window.addEventListener("touchstart",g,t),window.addEventListener("touchend",g))),window.addEventListener(C(),x,t),window.addEventListener("keydown",g),window.addEventListener("keyup",g),window.addEventListener("focusin",b),window.addEventListener("focusout",w)},y=function(){if(o=!(t.getAttribute("data-whatpersist")||"false"===document.body.getAttribute("data-whatpersist")))try{window.sessionStorage.getItem("what-input")&&(i=window.sessionStorage.getItem("what-input")),window.sessionStorage.getItem("what-intent")&&(r=window.sessionStorage.getItem("what-intent"))}catch(t){}_("input"),_("intent")},g=function(t){var e=t.which,n=c[t.type];"pointer"===n&&(n=S(t));var o=!u.length&&-1===l.indexOf(e),s=u.length&&-1!==u.indexOf(e),p="keyboard"===n&&e&&(o||s)||"mouse"===n||"touch"===n;if(E(n)&&(p=!1),p&&i!==n&&(T("input",i=n),_("input")),p&&r!==n){var h=document.activeElement;h&&h.nodeName&&(-1===a.indexOf(h.nodeName.toLowerCase())||"button"===h.nodeName.toLowerCase()&&!P(h,"form"))&&(T("intent",r=n),_("intent"))}},_=function(e){t.setAttribute("data-what"+e,"input"===e?i:r),k(e)},x=function(t){var e=c[t.type];"pointer"===e&&(e=S(t)),A(t),(!p&&!E(e)||p&&"wheel"===t.type||"mousewheel"===t.type||"DOMMouseScroll"===t.type)&&r!==e&&(T("intent",r=e),_("intent"))},b=function(i){i.target.nodeName?(e=i.target.nodeName.toLowerCase(),t.setAttribute("data-whatelement",e),i.target.classList&&i.target.classList.length&&t.setAttribute("data-whatclasses",i.target.classList.toString().replace(" ",","))):w()},w=function(){e=null,t.removeAttribute("data-whatelement"),t.removeAttribute("data-whatclasses")},T=function(t,e){if(o)try{window.sessionStorage.setItem("what-"+t,e)}catch(t){}},S=function(t){return"number"==typeof t.pointerType?f[t.pointerType]:"pen"===t.pointerType?"touch":t.pointerType},E=function(t){var e=Date.now(),r="mouse"===t&&"touch"===i&&e-n<200;return n=e,r},C=function(){return"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll"},k=function(t){for(var e=0,n=s.length;eResort Lifestyle",path:"/residences-and-villas"},"c-next-page":{subtitle:"Location",title:"The Premier Address
on the Dubai Canal",path:"/location"}}})],1)},r.staticRenderFns=[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"arrival-carousel-inner-copy"},[e("p",{staticClass:"body-medium"},[this._v("\n The private residential resort experience begins at the attended arrival where the "),e("span",{staticClass:"nowrap"},[this._v("Four Seasons")]),this._v(" concierge welcomes owners and guests. A private chauffeured house car will be made available to drive residents to the neighbouring "),e("span",{staticClass:"nowrap"},[this._v("Four Seasons Hotels & Resorts")]),this._v(".\n ")])])}]},{"fullsite/partials/image-carousel.vue":33,"mixins/fullsite-page.js":50}],22:[function(t,e,i){!function(){"use strict";var e;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var r={mixins:[((e=t("mixins/fullsite-page.js"))&&e.__esModule?e:{default:e}).default],data:function(){return{canSubmit:!0,errors:[],form:{name:"",email:"",phone:"",location:"",notes:""}}},computed:{errorCount:function(){return Object.keys(this.errors).length}},methods:{hasError:function(t){return this.errors.hasOwnProperty(t)},onSuccess:function(){this.routerPush("/thanks")},updateErrors:function(t){for(var e in this.errors={},t.errors)$("#".concat(e)).length&&(this.errors[e]=t.errors[e][0].replace(RegExp("(".concat(e,")"),""),"$1"))},onSubmit:function(){var t=this;!0===this.canSubmit&&(this.canSubmit=!1,this.$http.post("/api/register-contact"+env.apiToken,JSON.stringify(this.form)).then((function(e){t.canSubmit=!0,t.onSuccess()}),(function(e){t.canSubmit=!0,t.updateErrors(e.body)})))}}};i.default=r}(),e.exports.__esModule&&(e.exports=e.exports.default);var r="function"==typeof e.exports?e.exports.options:e.exports;r.render=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"contact-component"},[i("div",{staticClass:"contact-component-container"},[i("div",{staticClass:"contact-component-container-image",attrs:{role:"img","aria-label":"A blue sky with a few clouds, the Four Seasons Private Residences Dubai at Jumeirah, and a waterway with a boat."}}),t._v(" "),i("div",{staticClass:"contact-component-container-form"},[i("div",{staticClass:"registration"},[i("h1",[t._v("Inquire")]),t._v(" "),i("form",{attrs:{action:"#",method:"POST","accept-charset":"UTF-8"},on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[i("label",{attrs:{for:"name"}},[t._v("Full Name *")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.form.name,expression:"form.name"}],staticClass:"contact-field",class:{error:t.hasError("name")},attrs:{id:"name",type:"text",name:"name","aria-invalid":t.hasError("name"),"aria-required":"true"},domProps:{value:t.form.name},on:{input:function(e){e.target.composing||t.$set(t.form,"name",e.target.value)}}}),t._v(" "),i("label",{attrs:{for:"email"}},[t._v("Email *")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.form.email,expression:"form.email"}],staticClass:"contact-field",class:{error:t.hasError("email")},attrs:{id:"email",type:"text",name:"email","aria-invalid":t.hasError("email"),"aria-required":"true"},domProps:{value:t.form.email},on:{input:function(e){e.target.composing||t.$set(t.form,"email",e.target.value)}}}),t._v(" "),i("label",{attrs:{for:"phone"}},[t._v("Phone Number")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.form.phone,expression:"form.phone"}],staticClass:"contact-field",class:{error:t.hasError("phone")},attrs:{id:"phone",type:"text",name:"phone","aria-invalid":t.hasError("phone")},domProps:{value:t.form.phone},on:{input:function(e){e.target.composing||t.$set(t.form,"phone",e.target.value)}}}),t._v(" "),i("label",{attrs:{for:"location"}},[t._v("City / Country")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.form.location,expression:"form.location"}],staticClass:"contact-field",class:{error:t.hasError("location")},attrs:{id:"location",type:"text",name:"location","aria-invalid":t.hasError("location"),placeholder:""},domProps:{value:t.form.location},on:{input:function(e){e.target.composing||t.$set(t.form,"location",e.target.value)}}}),t._v(" "),i("label",{attrs:{for:"notes"}},[t._v("Other Notes")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.form.notes,expression:"form.notes"}],staticClass:"contact-field",class:{error:t.hasError("notes")},attrs:{id:"notes",type:"text",name:"notes","aria-invalid":t.hasError("notes")},domProps:{value:t.form.notes},on:{input:function(e){e.target.composing||t.$set(t.form,"notes",e.target.value)}}}),t._v(" "),i("input",{staticClass:"submit",attrs:{type:"submit",value:"Submit",disabled:!t.canSubmit}})]),t._v(" "),i("transition",{attrs:{name:"fade"}},[t.errorCount>0?i("div",{staticClass:"error-container",attrs:{"aria-live":"polite","aria-atomic":"true"}},[i("div",{staticClass:"error-container-heading"},[t._v("\n There were "),i("span",{staticClass:"highlight"},[t._v(t._s(t.errorCount))]),t._v(" errors in your submission:\n ")]),t._v(" "),t._l(Object.keys(t.errors),(function(e){return i("div",{staticClass:"error-container-item"},[i("a",{attrs:{href:"#"+e},domProps:{innerHTML:t._s(t.errors[e])}})])}))],2):t._e()])],1)])]),t._v(" "),i("breadcrumb",{attrs:{"c-prev-page":{subtitle:"Team",title:"Globally Recognized Visionaries",path:"/team"},"c-next-page":{subtitle:"Four Seasons Lifestyle",title:"The Art of Service",path:"/four-seasons-lifestyle"}}})],1)},r.staticRenderFns=[]},{"mixins/fullsite-page.js":50}],23:[function(t,e,i){!function(){"use strict";var e;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var r={mixins:[((e=t("mixins/fullsite-page.js"))&&e.__esModule?e:{default:e}).default]};i.default=r}(),e.exports.__esModule&&(e.exports=e.exports.default);var r="function"==typeof e.exports?e.exports.options:e.exports;r.render=function(){var t=this.$createElement;this._self._c;return this._m(0)},r.staticRenderFns=[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"error-component"},[e("div",{staticClass:"error-text"},[e("h1",[this._v("Page Not Found")])])])}]},{"mixins/fullsite-page.js":50}],24:[function(t,e,i){!function(){"use strict";var e;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var r={mixins:[((e=t("mixins/fullsite-page.js"))&&e.__esModule?e:{default:e}).default]};i.default=r}(),e.exports.__esModule&&(e.exports=e.exports.default);var r="function"==typeof e.exports?e.exports.options:e.exports;r.render=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"four-seasons-lifestyle-component"},[i("intro-video",{attrs:{id:"the-art-of-service","c-video":"four-seasons-lifestyle-intro","c-version":2}},[i("h1",[t._v("\n The Art"),i("br"),t._v("\n of Service\n ")]),t._v(" "),i("scroll-down",{attrs:{slot:"after"},slot:"after"})],1),t._v(" "),i("media-section",{attrs:{"c-image":"/img/four-seasons-lifestyle/a-legacy-of-service.jpg","c-anchor":"property-management"}},[i("div",{attrs:{slot:"right"},slot:"right"},[i("h1",{staticClass:"title-block-serif"},[t._v("\n An Address of"),i("br"),t._v("\n Appreciation\n ")]),t._v(" "),i("p",{staticClass:"body-medium"},[t._v("\n For over thirty-five years, "),i("span",{staticClass:"nowrap"},[t._v("Four Seasons")]),t._v(" has been the property"),i("br"),t._v("\n manager and service provider for the world’s most appreciated"),i("br"),t._v("\n homes. Extraordinary design. Unrivaled locations. And, above"),i("br"),t._v("\n all, impeccable service. Intuitive, yet personal. Perfectly"),i("br"),t._v("\n choreographed. Expertly executed. It is why "),i("span",{staticClass:"nowrap"},[t._v("Four Seasons")]),t._v(" have"),i("br"),t._v("\n the most desirable portfolio of properties around the world.\n ")])])]),t._v(" "),i("media-section",{attrs:{"c-image":"/img/four-seasons-lifestyle/four-seasons-residential-portfolio.jpg"}},[i("div",{staticClass:"large-quote"},[i("q",[t._v("\n The balance of access"),i("br"),t._v("\n and privacy makes this"),i("br"),t._v("\n address truly unique in the"),i("br"),t._v("\n city. A one-of-a-kind"),i("br"),t._v("\n experience.\n ")]),t._v(" "),i("div",{staticClass:"attribution"},[i("div",{staticClass:"attribution-name"},[t._v("Simon Casson")]),t._v(" "),i("div",{staticClass:"attribution-title"},[t._v("\n President hotel operations EMEA"),i("br"),t._v(" "),i("span",{staticClass:"nowrap"},[t._v("Four Seasons")]),t._v(" Hotels and Resorts\n ")])])])]),t._v(" "),i("media-section",{staticClass:"no-bottom-margin",attrs:{"c-image":"/img/four-seasons-lifestyle/four-seasons-dubai-collection.jpg","c-anchor":"four-seasons-dubai-collection"}},[i("div",{attrs:{slot:"right"},slot:"right"},[i("h1",{staticClass:"title-block-serif"},[i("span",{staticClass:"nowrap"},[t._v("Four Seasons")]),i("br"),t._v("\n Dubai Collection\n ")]),t._v(" "),i("p",{staticClass:"body-medium"},[t._v("\n Owners at "),i("span",{staticClass:"nowrap"},[t._v("Four Seasons")]),t._v(" Private Residences are given"),i("br"),t._v("\n the ultimate privilege, access to the services and"),i("br"),t._v("\n amenities of the neighboring "),i("span",{staticClass:"nowrap"},[t._v("Four Seasons")]),t._v(" Hotels and"),i("br"),t._v("\n Resorts in Dubai. Enjoy priority reservations for the"),i("br"),t._v("\n Beach Club, wellness and spa facilities and culinary"),i("br"),t._v("\n experiences at all "),i("span",{staticClass:"nowrap"},[t._v("Four Seasons")]),t._v(" destinations in Dubai.\n ")])])]),t._v(" "),i("breadcrumb",{attrs:{"c-prev-page":{subtitle:"Contact",title:"Register Now",path:"/contact"},"c-next-page":{subtitle:"Residences and Villas",title:"A Waterfront
Resort Lifestyle",path:"/residences-and-villas"}}})],1)},r.staticRenderFns=[]},{"mixins/fullsite-page.js":50}],25:[function(t,e,i){!function(){"use strict";var e;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var r={mixins:[((e=t("mixins/fullsite-page.js"))&&e.__esModule?e:{default:e}).default],data:function(){return{footerVisible:!1}},methods:{nextPage:function(){this.routerPush("/four-seasons-lifestyle")},nextPageOnSwipeUp:function(){$(document).height()-($(window).height()+$(window).scrollTop())<=1&&this.nextPage()},nextPageOnScrollDown:function(t){var e=t.originalEvent.wheelDelta||-t.originalEvent.detail;"down"===(1===Math.max(-1,Math.min(1,e))?"up":"down")&&$(document).height()-($(window).height()+$(window).scrollTop())<=1&&this.nextPage()}},mounted:function(){$.detectSwipe.preventDefault=!1,$(this.$el).on("mousewheel DOMMouseScroll",this.nextPageOnScrollDown),$(this.$el).on("swipeup",this.nextPageOnSwipeUp)}};i.default=r}(),e.exports.__esModule&&(e.exports=e.exports.default);var r="function"==typeof e.exports?e.exports.options:e.exports;r.render=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"home-component"},[i("intro-video",{attrs:{"c-video":"intro","c-version":7}},[i("h1",[i("span",{staticClass:"nowrap"},[t._v("Four Seasons")]),i("br"),t._v("\n Living in Dubai\n ")])]),t._v(" "),i("scroll-down",{attrs:{"c-show-text":!0,"c-next-section":!1},nativeOn:{click:function(e){return t.nextPage(e)}}})],1)},r.staticRenderFns=[]},{"mixins/fullsite-page.js":50}],26:[function(t,e,i){!function(){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e=o(t("mixins/fullsite-page.js")),r=o(t("fullsite/sections/location-map.vue")),n=o(t("fullsite/partials/fade-on-enter.vue"));function o(t){return t&&t.__esModule?t:{default:t}}var a={mixins:[e.default],components:{"location-map":r.default,"fade-on-enter":n.default}};i.default=a}(),e.exports.__esModule&&(e.exports=e.exports.default);var r="function"==typeof e.exports?e.exports.options:e.exports;r.render=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"location-component"},[i("intro-video",{attrs:{"c-video":"location-intro","c-version":5}},[i("h1",[t._v("\n The Premier Address"),i("br"),t._v("\n on the Dubai Canal\n ")]),t._v(" "),i("scroll-down",{attrs:{slot:"after"},slot:"after"})],1),t._v(" "),i("section",{staticClass:"location-component-map"},[i("div",{staticClass:"section-anchor",attrs:{id:"map"}}),t._v(" "),t._m(0),t._v(" "),i("location-map")],1),t._v(" "),i("section",{staticClass:"quote-section"},[i("div",{staticClass:"section-anchor",attrs:{id:"canal-side-living"}}),t._v(" "),i("fade-on-enter",[i("q",[t._v("\n This intimate offering, is truly"),i("br"),t._v("\n reflective of a sense of place."),i("br"),t._v("\n This is haute couture living with"),i("br"),t._v("\n a Dubai Water Canal address.\n ")]),t._v(" "),i("div",{staticClass:"attribution"},[i("div",{staticClass:"attribution-name"},[t._v("Sybille De Margerie")]),t._v(" "),i("div",{staticClass:"attribution-title"},[t._v("Interior Designer")])])])],1),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),i("breadcrumb",{attrs:{"c-prev-page":{subtitle:"Amenities",title:"Making Every
Moment Memorable",path:"/amenities"},"c-next-page":{subtitle:"Team",title:"Globally Recognized Visionaries",path:"/team"}}})],1)},r.staticRenderFns=[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"location-component-map-heading"},[e("div",{staticClass:"location-component-map-heading-inner"},[this._v("\n The Canal brings the spirit of the Arabian Sea to the heart of the city. As the first exclusive residential address prominently positioned on the Dubai Water Canal, owners are just moments away from the cosmopolitan highlights of one of the world’s most coveted cities.\n ")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"location-component-split-distances no-top-margin"},[i("div",{staticClass:"flex-wrapper"},[i("div",{staticClass:"location-component-split-distances-inner"},[i("div",{staticClass:"location-component-split-distances-inner-image dubai-downtown"}),t._v(" "),i("div",{staticClass:"location-component-split-distances-inner-copy"},[i("div",{staticClass:"location-component-split-distances-inner-copy-block"},[i("p",[t._v("Less than 10 minute drive")]),t._v(" "),i("ul",[i("li",[t._v("\n Downtown"),i("br"),t._v("\n Dubai\n ")])])]),t._v(" "),i("div",{staticClass:"location-component-split-distances-inner-copy-block"},[i("p",[t._v("Less than 5 minute drive")]),t._v(" "),i("ul",[i("li",[i("span",{staticClass:"nowrap"},[t._v("Four Seasons")]),i("br"),t._v("\n Resort"),i("br"),t._v("\n Jumeirah Beach\n ")])])])]),t._v(" "),i("div",{staticClass:"location-component-split-distances-inner-image four-seasons-resort"})])])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"location-component-split-distances"},[i("div",{staticClass:"flex-wrapper"},[i("div",{staticClass:"location-component-split-distances-inner"},[i("div",{staticClass:"location-component-split-distances-inner-image dubai-international-airport"}),t._v(" "),i("div",{staticClass:"location-component-split-distances-inner-copy"},[i("div",{staticClass:"location-component-split-distances-inner-copy-block"},[i("p",[t._v("Less than 15 minute drive ")]),t._v(" "),i("ul",[i("li",[t._v("\n Dubai"),i("br"),t._v("\n International"),i("br"),t._v("\n Airport\n ")])])]),t._v(" "),i("div",{staticClass:"location-component-split-distances-inner-copy-block"},[i("p",[t._v("Less than 10 minute drive")]),t._v(" "),i("ul",[i("li",[i("span",{staticClass:"nowrap"},[t._v("Four Seasons")]),i("br"),t._v("\n Hotel DIFC\n ")])])])]),t._v(" "),i("div",{staticClass:"location-component-split-distances-inner-image four-seasons-hotel-difc"})])])])}]},{"fullsite/partials/fade-on-enter.vue":31,"fullsite/sections/location-map.vue":45,"mixins/fullsite-page.js":50}],27:[function(t,e,i){!function(){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e=n(t("mixins/fullsite-page.js")),r=n(t("fullsite/partials/fade-on-enter.vue"));function n(t){return t&&t.__esModule?t:{default:t}}var o={mixins:[e.default],components:{"fade-on-enter":r.default}};i.default=o}(),e.exports.__esModule&&(e.exports=e.exports.default);var r="function"==typeof e.exports?e.exports.options:e.exports;r.render=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"residences-and-villas-component"},[i("intro-video",{attrs:{"c-video":"residences-and-villas-intro","c-version":6}},[i("h1",[t._v("\n A Waterfront"),i("br"),t._v("\n Resort Lifestyle\n ")]),t._v(" "),i("scroll-down",{attrs:{slot:"after"},slot:"after"})],1),t._v(" "),i("section",{staticClass:"quote-section"},[i("fade-on-enter",[i("q",[t._v("\n It's where East meets West,"),i("br"),t._v("\n the Arabic seafaring tradition"),i("br"),t._v("\n reinterpreted with a chic,"),i("br"),t._v("\n timeless European sensibility.\n ")]),t._v(" "),i("div",{staticClass:"attribution"},[i("div",{staticClass:"attribution-name"},[t._v("Sybille De Margerie")]),t._v(" "),i("div",{staticClass:"attribution-title"},[t._v("Interior Designer")])])])],1),t._v(" "),i("scroll-text-image",{staticClass:"xs-top-margin",attrs:{"c-image":"/img/residences-and-villas/perfectly-configured.jpg","c-alt":"A two story room with a long zigzag staircase, a column taking up the full height of both floors with a fireplace, and a large window overlooking the water.","c-version":2,"c-anchor":"the-residences"}},[i("h2",[t._v("Perfectly Configured")]),t._v(" "),i("h1",[t._v("The Residences")])]),t._v(" "),i("image-side-copy",{attrs:{"c-image":"/img/residences-and-villas/the-terrace.jpg","c-alt":"Chairs on a balcony overlooking the water.","c-version":2,"c-rtl":!0}},[t._v("\n\n The terraced simplex and duplex residences and"),i("br"),t._v("\n striking penthouses are designed to blur the"),i("br"),t._v("\n boundaries between indoor outdoor living.\n ")]),t._v(" "),i("image-side-copy",{attrs:{"c-image":"/img/residences-and-villas/bedrooms.jpg","c-alt":"The bedroom with a bed and connecting room on the left.","c-version":2}},[t._v("\n\n On the upper levels, Sybille de Margerie's artistry of"),i("br"),t._v("\n craftsmanship is on display in the light filled"),i("br"),t._v("\n bedrooms with bespoke embroidered headboards"),i("br"),t._v("\n and gracious dressing rooms. Expansive balconies"),i("br"),t._v("\n offer private sanctuaries overlooking the Water"),i("br"),t._v("\n Canal and downtown skyline.\n ")]),t._v(" "),i("image-side-copy",{attrs:{"c-image":"/img/residences-and-villas/master-baths.jpg","c-alt":"A bathroom with marble walls, counters and floors containing a free-standing tub, walk-in shower and sink.","c-version":2,"c-rtl":!0}},[t._v("\n\n Master baths, clad in the finest finishes,"),i("br"),t._v("\n are personalised sanctuaries.\n ")]),t._v(" "),i("scroll-text-image",{attrs:{"c-image":"/img/residences-and-villas/enchanting-oasis.jpg","c-alt":"A shot of the front of the building with two palm trees and a sports car parked out front.","c-version":2,"c-anchor":"the-waterfront-villas"}},[i("h2",[t._v("An Enchanting Oasis")]),t._v(" "),i("h1",[t._v("The Waterfront Villas")])]),t._v(" "),i("image-side-copy",{attrs:{"c-image":"/img/residences-and-villas/grand-scale-dining-rooms.jpg","c-alt":"A collection of couches and tables with some bar stools off to the side in a large social gathering room.","c-version":2,"c-rtl":!0}},[t._v("\n\n The grand-scaled living and dining"),i("br"),t._v("\n rooms open onto the lushly landscaped"),i("br"),t._v("\n pool and garden oasis making these"),i("br"),t._v("\n among the most desirable private"),i("br"),t._v("\n entertaining spaces in Dubai.\n ")]),t._v(" "),i("section",{staticClass:"living-room"},[i("div",{staticClass:"living-room-media"},[i("img",{attrs:{src:"/img/residences-and-villas/living-room.jpg?version=1",alt:"A corner couch and a chair with a table between them and a set of wall height windows with the drapes drawn"}}),t._v(" "),i("image-expand-button",{attrs:{"c-image":"/img/residences-and-villas/living-room.jpg?version=1"}})],1)]),t._v(" "),t._m(0),t._v(" "),i("breadcrumb",{attrs:{"c-prev-page":{subtitle:"Four Seasons Lifestyle",title:"The Art of Service",path:"/four-seasons-lifestyle"},"c-next-page":{subtitle:"Amenities",title:"Making Every
Moment Memorable",path:"/amenities"}}})],1)},r.staticRenderFns=[function(){var t=this.$createElement,e=this._self._c||t;return e("section",{staticClass:"pool-patio"},[e("img",{attrs:{src:"/img/residences-and-villas/pool-patio.jpg?version=3",alt:"Sliding glass doors from the back of a unit leading to an outdoor pool and patio"}})])}]},{"fullsite/partials/fade-on-enter.vue":31,"mixins/fullsite-page.js":50}],28:[function(t,e,i){!function(){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e=n(t("mixins/fullsite-page.js")),r=n(t("fullsite/partials/team-block.vue"));function n(t){return t&&t.__esModule?t:{default:t}}var o={mixins:[e.default],components:{"team-block":r.default}};i.default=o}(),e.exports.__esModule&&(e.exports=e.exports.default);var r="function"==typeof e.exports?e.exports.options:e.exports;r.render=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"team-component"},[t._m(0),t._v(" "),i("team-block",{staticClass:"no-top-margin",attrs:{"c-images":["/img/team/g-and-h-development.jpg"],"c-anchor":"h-and-h-brightstart"}},[i("h2",[t._v("H&H Development")]),t._v(" "),i("p",[t._v("\n H&H Investment and Development was established in 2007 by Shahab"),i("br"),t._v('\n Lutfi and Mohamed Al Hussaini. "Development is Creation" is the'),i("br"),t._v("\n company’s mission statement and is applied to everything they do."),i("br"),t._v("\n Portfolio highlights include "),i("span",{staticClass:"nowrap"},[t._v("Four Seasons")]),t._v(" Resort Jumeirah Beach,"),i("br"),t._v(" "),i("span",{staticClass:"nowrap"},[t._v("Four Seasons")]),t._v(" Hotel DIFC and Residences 22 Business Bay.\n ")])]),t._v(" "),i("team-block",{attrs:{"c-images":["/img/team/four-seasons-hotel-and-resorts.jpg?version=1"],"c-reverse":!0,"c-anchor":"four-seasons"}},[i("h2",[i("span",{staticClass:"nowrap"},[t._v("Four Seasons")]),i("br"),t._v("\n Hotels and Resorts\n ")]),t._v(" "),i("p",[t._v("\n The world’s most highly regarded and rewarded hospitality"),i("br"),t._v("\n company operates a global portfolio of over 100 hotels"),i("br"),t._v("\n worldwide. Fully serviced, managed and operated by"),i("br"),t._v(" "),i("span",{staticClass:"nowrap"},[t._v("Four Seasons")]),t._v(", the Private Residences will deliver the same"),i("br"),t._v("\n standards of extraordinary excellence that make "),i("span",{staticClass:"nowrap"},[t._v("Four Seasons")]),i("br"),t._v("\n Resort Jumeirah Beach and "),i("span",{staticClass:"nowrap"},[t._v("Four Seasons")]),t._v(" Hotels DIFC"),i("br"),t._v("\n the two most lauded and highly rated destinations in Dubai.\n ")])]),t._v(" "),i("team-block",{attrs:{"c-images":["/img/team/hopkins-architecture.jpg"],"c-anchor":"hopkins"}},[i("h2",[t._v("\n Hopkins"),i("br"),t._v("\n Architecture\n ")]),t._v(" "),i("p",[t._v("\n The London and Dubai based practice is the namesake firm"),i("br"),t._v("\n of Sir Michael Hopkins, one of London’s most lauded architects"),i("br"),t._v("\n and recipient of the Royal Institute of British Architects Royal"),i("br"),t._v("\n Gold Medal. In addition to their contributions to "),i("span",{staticClass:"nowrap"},[t._v("Four Seasons")]),i("br"),t._v("\n Hotel Jumeirah Beach and DIFC Gate Village, their celebrated"),i("br"),t._v("\n achievements include additions to the Yale University,"),i("br"),t._v("\n Harvard University and Princeton University campuses as well"),i("br"),t._v("\n as the upcoming Peninsula London on Grosvenor Place.\n ")])]),t._v(" "),i("team-block",{attrs:{"c-images":["/img/team/sybille-de-margerie.jpg"],"c-reverse":!0,"c-anchor":"sybille-de-margerie"}},[i("h2",[t._v("\n Sybille de"),i("br"),t._v("\n Margerie\n ")]),t._v(" "),i("p",[t._v("\n The most celebrated French decorator with a global"),i("br"),t._v("\n portfolio, Sybille de Margerie has overseen the most"),i("br"),t._v("\n distinctive and elegant private home and hospitality spaces."),i("br"),t._v("\n She formed her taste for exquisite places in the universe"),i("br"),t._v("\n of the Taittinger family-run hospitality group and trained"),i("br"),t._v("\n at the Ecole des Arts Supérieurs Boule. Her seminal works"),i("br"),t._v("\n include the design and appointment of the signature suites and"),i("br"),t._v("\n guest experiences at "),i("span",{staticClass:"nowrap"},[t._v("Four Seasons")]),t._v(" Resort Jumeirah Beach.\n ")])]),t._v(" "),i("breadcrumb",{attrs:{"c-prev-page":{subtitle:"Location",title:"The Premier Address
on the Dubai Canal",path:"/location"},"c-next-page":{subtitle:"Contact",title:"Register Now",path:"/contact"}}})],1)},r.staticRenderFns=[function(){var t=this.$createElement,e=this._self._c||t;return e("section",{staticClass:"team-component-header"},[e("h1",[this._v("Globally Recognized Visionaries")]),this._v(" "),e("p",[this._v("H&H Investments is proud to develop the first and only "),e("span",{staticClass:"nowrap"},[this._v("Four Seasons")]),this._v(" Private Residences in Dubai. The internationally recognized teams were selected to ensure that the craftsmanship and design is as elevated as the service.")])])}]},{"fullsite/partials/team-block.vue":40,"mixins/fullsite-page.js":50}],29:[function(t,e,i){!function(){"use strict";var e;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var r={mixins:[((e=t("mixins/fullsite-page.js"))&&e.__esModule?e:{default:e}).default]};i.default=r}(),e.exports.__esModule&&(e.exports=e.exports.default);var r="function"==typeof e.exports?e.exports.options:e.exports;r.render=function(){var t=this.$createElement;this._self._c;return this._m(0)},r.staticRenderFns=[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"thanks-component"},[e("div",{staticClass:"thanks-text"},[e("h1",[this._v("Thank you for registering.")]),this._v(" "),e("h2",[this._v("A sales associate will contact you shortly.")])])])}]},{"mixins/fullsite-page.js":50}],30:[function(t,e,i){!function(){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var t={props:{cVideo:{type:String},cAlt:{type:String},cVersion:{type:Number,default:1}},computed:{poster:function(){return"/img/posters/".concat(this.cVideo,".jpg?version=").concat(this.cVersion)}}};i.default=t}(),e.exports.__esModule&&(e.exports=e.exports.default);var r="function"==typeof e.exports?e.exports.options:e.exports;r.render=function(){var t=this.$createElement,e=this._self._c||t;return e("section",{staticClass:"centered-video-component"},[e("div",{staticClass:"centered-video-component-inner"},[e("img",{attrs:{src:this.poster,alt:this.cAlt}}),this._v(" "),e("video-source",{attrs:{"c-source":this.cVideo,"c-version":this.cVersion,"c-play-in-view":!0}})],1)])},r.staticRenderFns=[]},{}],31:[function(t,e,i){!function(){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e,r=(e=t("scrollmagic/scrollmagic/uncompressed/ScrollMagic.js"))&&e.__esModule?e:{default:e};t("scrollmagic/scrollmagic/uncompressed/plugins/animation.gsap.js");var n={data:function(){return{controller:new r.default.Controller}},methods:{initScrollEvents:function(){new r.default.Scene({triggerElement:this.$el,triggerHook:.75,reverse:!1}).setTween(TweenMax.fromTo(this.$el,1,{opacity:0},{opacity:1})).addTo(this.controller)}},mounted:function(){this.$nextTick(this.initScrollEvents)},beforeDestroy:function(){this.controller.destroy()}};i.default=n}(),e.exports.__esModule&&(e.exports=e.exports.default);var r="function"==typeof e.exports?e.exports.options:e.exports;r.render=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"fade-on-enter-component"},[this._t("default")],2)},r.staticRenderFns=[]},{"scrollmagic/scrollmagic/uncompressed/ScrollMagic.js":8,"scrollmagic/scrollmagic/uncompressed/plugins/animation.gsap.js":9}],32:[function(t,e,i){!function(){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var t={props:{cLink:{type:String}},methods:{scrollToAnchor:function(t){var e=t.replace(/^[^#]*/,""),i=""===e?0:$(e).offset().top;$("html, body").animate({scrollTop:i},1500)},linkPathToKey:function(t){return t.replace(/#/g,"HASH").replace(/[^a-zA-Z\-_]/g,"")}}};i.default=t}(),e.exports.__esModule&&(e.exports=e.exports.default);var r="function"==typeof e.exports?e.exports.options:e.exports;r.render=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"footer-link-component"},[t.cLink.replace(/#.*/,"")!==t.$route.path.replace(/#.*/,"")?i("site-link",{key:t.linkPathToKey(t.cLink),attrs:{"aria-live":"polite","aria-atomic":"true",to:t.cLink,exact:""}},[t._t("default")],2):i("a",{key:t.linkPathToKey(t.cLink),attrs:{href:t.cLink},on:{click:function(e){return e.preventDefault(),t.scrollToAnchor(t.cLink)}}},[t._t("default")],2)],1)},r.staticRenderFns=[]},{}],33:[function(t,e,i){!function(){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var t={props:{cImages:{type:Array}},data:function(){return{currentIndex:0}},methods:{nextImage:function(){this.currentIndex>=this.cImages.length-1?this.currentIndex=0:this.currentIndex++},prevImage:function(){this.currentIndex<=0?this.currentIndex=this.cImages.length-1:this.currentIndex--}}};i.default=t}(),e.exports.__esModule&&(e.exports=e.exports.default);var r="function"==typeof e.exports?e.exports.options:e.exports;r.render=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"image-carousel-component"},[t._l(t.cImages,(function(e,r){return i("div",{staticClass:"image-carousel-component-item",class:{active:r===t.currentIndex},style:{backgroundImage:"url("+e+")"}})})),t._v(" "),t.cImages.length>1?i("div",{staticClass:"image-carousel-component-nav"},[i("div",{staticClass:"image-carousel-component-nav-arrow left",on:{click:t.prevImage}},[i("div",{staticClass:"image-carousel-component-nav-arrow-inner"})]),t._v(" "),i("div",{staticClass:"image-carousel-component-nav-arrow right",on:{click:t.nextImage}},[i("div",{staticClass:"image-carousel-component-nav-arrow-inner"})])]):t._e()],2)},r.staticRenderFns=[]},{}],34:[function(t,e,i){!function(){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var t={props:{cImage:{type:String},cColor:{type:String,default:"white"}},computed:{modal:function(){return $("#image-expand-modal")}},methods:{openModal:function(){this.modal.trigger("open",this.cImage)}}};i.default=t}(),e.exports.__esModule&&(e.exports=e.exports.default);var r="function"==typeof e.exports?e.exports.options:e.exports;r.render=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"image-expand-button-component",on:{click:t.openModal}},[i("button",{staticClass:"image-expand-button-component-button",class:t.cColor,on:{click:function(e){return e.stopPropagation(),t.openModal(e)}}},[i("img",{staticClass:"image-expand-button-component-button-icon",attrs:{src:"/img/expand-"+t.cColor+".svg"}}),t._v("\n\n Click to Expand\n ")])])},r.staticRenderFns=[]},{}],35:[function(t,e,i){!function(){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e=n(t("fullsite/partials/image-zoom.vue")),r=n(t("fullsite/partials/fade-on-enter.vue"));function n(t){return t&&t.__esModule?t:{default:t}}var o={components:{"image-zoom":e.default,"fade-on-enter":r.default},props:{cImage:{type:String},cAlt:{type:String},cExpandButtonColor:{type:String,default:"white"},cVersion:{type:Number,default:1},cRtl:{type:Boolean,default:!1}},computed:{image:function(){return"".concat(this.cImage,"?version=").concat(this.cVersion)}}};i.default=o}(),e.exports.__esModule&&(e.exports=e.exports.default);var r="function"==typeof e.exports?e.exports.options:e.exports;r.render=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"image-side-copy-component",class:{rtl:t.cRtl}},[i("div",{staticClass:"image-side-copy-component-image"},[i("img",{staticClass:"image-side-copy-component-image-sizer",attrs:{src:t.image,alt:t.cAlt}}),t._v(" "),i("image-zoom",{attrs:{"c-image":t.image}}),t._v(" "),i("image-expand-button",{attrs:{"c-image":t.image,"c-color":t.cExpandButtonColor}})],1),t._v(" "),i("div",{staticClass:"image-side-copy-component-copy"},[i("fade-on-enter",[t._t("default")],2)],1)])},r.staticRenderFns=[]},{"fullsite/partials/fade-on-enter.vue":31,"fullsite/partials/image-zoom.vue":36}],36:[function(t,e,i){!function(){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e,r=(e=t("scrollmagic/scrollmagic/uncompressed/ScrollMagic.js"))&&e.__esModule?e:{default:e};t("scrollmagic/scrollmagic/uncompressed/plugins/animation.gsap.js");var n={props:{cImage:{type:String,default:null},cImagePosition:{type:String,default:"center center"}},data:function(){return{controller:new r.default.Controller}},methods:{initScrollEvents:function(){new r.default.Scene({triggerElement:this.$el,triggerHook:.5,reverse:!1}).setTween(TweenMax.fromTo(this.$refs.inner,5,{scale:1.3},{scale:1})).addTo(this.controller)}},mounted:function(){this.initScrollEvents()},beforeDestroy:function(){this.controller.destroy()}};i.default=n}(),e.exports.__esModule&&(e.exports=e.exports.default);var r="function"==typeof e.exports?e.exports.options:e.exports;r.render=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"image-zoom-component"},[e("div",{ref:"inner",staticClass:"image-zoom-component-inner",style:{backgroundImage:"url("+this.cImage+")",backgroundPosition:this.cImagePosition}})])},r.staticRenderFns=[]},{"scrollmagic/scrollmagic/uncompressed/ScrollMagic.js":8,"scrollmagic/scrollmagic/uncompressed/plugins/animation.gsap.js":9}],37:[function(t,e,i){!function(){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e=n(t("fullsite/partials/image-zoom.vue")),r=n(t("fullsite/partials/fade-on-enter.vue"));function n(t){return t&&t.__esModule?t:{default:t}}var o={components:{"image-zoom":e.default,"fade-on-enter":r.default},props:{cImage:{type:String,default:null},cAlt:{type:String},cVideo:{type:String,default:null},cVersion:{type:Number,default:1},cAnchor:{type:String,default:null}}};i.default=o}(),e.exports.__esModule&&(e.exports=e.exports.default);var r="function"==typeof e.exports?e.exports.options:e.exports;r.render=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"media-section-component"},[null!==t.cAnchor?i("div",{staticClass:"section-anchor",attrs:{id:t.cAnchor}}):t._e(),t._v(" "),i("div",{staticClass:"flex-wrapper"},[i("div",{staticClass:"media-section-component-inner"},[null!==t.cImage?i("image-zoom",{attrs:{"c-image":t.cImage+"?version="+t.cVersion,"aria-role":"img","aria-label":t.cAlt}}):null!==t.cVideo?i("video-source",{attrs:{"c-source":t.cVideo,"c-version":t.cVersion,"c-play-in-view":!0}}):t._e(),t._v(" "),void 0!==t.$slots.left||void 0!==t.$slots.right?[i("div",{staticClass:"media-section-component-inner-column"},[i("fade-on-enter",[t._t("left")],2)],1),t._v(" "),i("div",{staticClass:"media-section-component-inner-column"},[i("fade-on-enter",[t._t("right")],2)],1)]:i("div",{staticClass:"media-section-component-inner-column"},[i("fade-on-enter",[t._t("default")],2)],1)],2)])])},r.staticRenderFns=[]},{"fullsite/partials/fade-on-enter.vue":31,"fullsite/partials/image-zoom.vue":36}],38:[function(t,e,i){!function(){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var t={props:{cShowText:{type:Boolean,default:!1},cNextSection:{type:Boolean,default:!0}},data:function(){return{animateTimeout:void 0,animate:!1}},methods:{nextSection:function(){var t=$(this.$el).closest("section");$("html, body").animate({scrollTop:t.offset().top+t.height()-$(".navbar-component").height()},500)}},mounted:function(){var t=this;this.$nextTick((function(){t.animateTimeout=setTimeout((function(){t.animate=!0}),250)}))},beforeDestroy:function(){clearTimeout(this.animateTimeout)}};i.default=t}(),e.exports.__esModule&&(e.exports=e.exports.default);var r="function"==typeof e.exports?e.exports.options:e.exports;r.render=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("button",t._g({staticClass:"scroll-down-component"},t.cNextSection?{click:t.nextSection}:{}),[t.cShowText?i("div",{staticClass:"scroll-down-component-text"},[t._v("\n\n Scroll to discover\n ")]):t._e(),t._v(" "),i("div",{staticClass:"scroll-down-component-icon"},[i("div",{staticClass:"scroll-down-component-icon-circle"}),t._v(" "),i("div",{staticClass:"scroll-down-component-icon-arrow"}),t._v(" "),i("div",{staticClass:"scroll-down-component-icon-diamond",class:{animate:t.animate}},[i("div",{staticClass:"scroll-down-component-icon-diamond-side one"}),t._v(" "),i("div",{staticClass:"scroll-down-component-icon-diamond-side two"}),t._v(" "),i("div",{staticClass:"scroll-down-component-icon-diamond-side three"}),t._v(" "),i("div",{staticClass:"scroll-down-component-icon-diamond-side four"})])])])},r.staticRenderFns=[]},{}],39:[function(t,e,i){!function(){"use strict";var e;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var r={components:{"image-zoom":((e=t("fullsite/partials/image-zoom.vue"))&&e.__esModule?e:{default:e}).default},props:{cImage:{type:String},cAlt:{type:String},cVersion:{type:Number,default:1},cAnchor:{type:String,default:null}},computed:{image:function(){return"".concat(this.cImage,"?version=").concat(this.cVersion)}}};i.default=r}(),e.exports.__esModule&&(e.exports=e.exports.default);var r="function"==typeof e.exports?e.exports.options:e.exports;r.render=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"scroll-text-image-component"},[null!==t.cAnchor?i("div",{staticClass:"section-anchor",attrs:{id:t.cAnchor}}):t._e(),t._v(" "),i("div",{staticClass:"scroll-text-image-component-background"},[i("img",{staticClass:"scroll-text-image-component-background-sizer",attrs:{src:t.image}}),t._v(" "),i("image-zoom",{attrs:{"c-image":t.image,"aria-role":"img","aria-label":t.cAlt}})],1),t._v(" "),i("div",{staticClass:"scroll-text-image-component-copy"},[t._t("default")],2)])},r.staticRenderFns=[]},{"fullsite/partials/image-zoom.vue":36}],40:[function(t,e,i){!function(){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e=n(t("fullsite/partials/image-carousel.vue")),r=n(t("fullsite/partials/fade-on-enter.vue"));function n(t){return t&&t.__esModule?t:{default:t}}var o={components:{"image-carousel":e.default,"fade-on-enter":r.default},props:{cImages:{type:Array},cReverse:{type:Boolean,default:!1},cAnchor:{type:String,default:null}},data:function(){return{offsetWidth:0,offsetTimeout:void 0,loaded:!1}},computed:{galleryWidth:function(){return"calc(100% + ".concat(this.offsetWidth,"px)")}},methods:{updateWidthValues:function(){this.offsetWidth=$(this.$refs.inner).offset().left},initWidthUpdate:function(){this.updateWidthValues(),this.$nextTick(this.updateWidthValues),$(window).on("resize orientationchange",this.updateWidthValues),this.offsetTimeout=setTimeout(this.updateWidthValues,500),this.loaded=!0}},mounted:function(){this.initWidthUpdate()},beforeDestroy:function(){$(window).off("resize orientationchange",this.updateWidthValues),clearTimeout(this.offsetTimeout)}};i.default=o}(),e.exports.__esModule&&(e.exports=e.exports.default);var r="function"==typeof e.exports?e.exports.options:e.exports;r.render=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"team-block-component",class:{loaded:t.loaded}},[null!==t.cAnchor?i("div",{staticClass:"section-anchor",attrs:{id:t.cAnchor}}):t._e(),t._v(" "),i("div",{ref:"inner",staticClass:"team-block-component-inner",class:{reverse:t.cReverse}},[i("div",{staticClass:"team-block-component-inner-gallery",class:{reverse:t.cReverse}},[i("div",{staticClass:"team-block-component-inner-gallery-wrapper",style:{width:t.galleryWidth}},[i("image-carousel",{attrs:{"c-images":t.cImages}})],1)]),t._v(" "),i("div",{staticClass:"team-block-component-inner-copy",class:{reverse:t.cReverse}},[i("fade-on-enter",[t._t("default")],2)],1)])])},r.staticRenderFns=[]},{"fullsite/partials/fade-on-enter.vue":31,"fullsite/partials/image-carousel.vue":33}],41:[function(t,e,i){!function(){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var t={props:{cPrevPage:{type:Object,default:null},cNextPage:{type:Object,default:null}}};i.default=t}(),e.exports.__esModule&&(e.exports=e.exports.default);var r="function"==typeof e.exports?e.exports.options:e.exports;r.render=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"breadcrumb-component"},[i("div",{staticClass:"breadcrumb-component-inner"},[i("div",{staticClass:"breadcrumb-component-inner-column"},[null!==t.cPrevPage?i("site-link",{staticClass:"breadcrumb-component-inner-column-link prev",attrs:{to:t.cPrevPage.path}},[i("div",{staticClass:"breadcrumb-component-inner-column-link-arrow"}),t._v(" "),i("div",{staticClass:"breadcrumb-component-inner-column-link-text"},[i("div",{staticClass:"breadcrumb-component-inner-column-link-text-subtitle",domProps:{innerHTML:t._s(t.cPrevPage.subtitle)}}),t._v(" "),i("div",{staticClass:"breadcrumb-component-inner-column-link-text-title",domProps:{innerHTML:t._s(t.cPrevPage.title)}})])]):t._e()],1),t._v(" "),i("div",{staticClass:"breadcrumb-component-inner-column"},[null!==t.cNextPage?i("site-link",{staticClass:"breadcrumb-component-inner-column-link next",attrs:{to:t.cNextPage.path}},[i("div",{staticClass:"breadcrumb-component-inner-column-link-text"},[i("div",{staticClass:"breadcrumb-component-inner-column-link-text-subtitle",domProps:{innerHTML:t._s(t.cNextPage.subtitle)}}),t._v(" "),i("div",{staticClass:"breadcrumb-component-inner-column-link-text-title",domProps:{innerHTML:t._s(t.cNextPage.title)}})]),t._v(" "),i("div",{staticClass:"breadcrumb-component-inner-column-link-arrow"})]):t._e()],1)])])},r.staticRenderFns=[]},{}],42:[function(t,e,i){!function(){"use strict";var e;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var r={components:{"footer-link":((e=t("fullsite/partials/footer-link.vue"))&&e.__esModule?e:{default:e}).default}};i.default=r}(),e.exports.__esModule&&(e.exports=e.exports.default);var r="function"==typeof e.exports?e.exports.options:e.exports;r.render=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("footer",{staticClass:"footer-component",class:{visible:t.$store.getters.getFooterVisible}},[i("div",{staticClass:"footer-component-container"},[i("nav",{staticClass:"footer-component-container-links",attrs:{"aria-label":"Footer navigation"}},t._l(t.$store.getters.getNavLinks,(function(e){return i("div",{staticClass:"footer-component-container-links-column"},[i("h1",[i("footer-link",{attrs:{"c-link":e.path}},[t._v(t._s(void 0!==e.altTitle?e.altTitle:e.title))])],1),t._v(" "),e.sublinks.length?i("ul",t._l(e.sublinks,(function(r){return i("li",[i("footer-link",{attrs:{"c-link":e.path+r.anchor}},[t._v(t._s(r.title))])],1)})),0):t._e()])})),0),t._v(" "),i("div",{staticClass:"footer-component-container-divider"}),t._v(" "),t._m(0)])])},r.staticRenderFns=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"footer-component-container-legal"},[i("span",{staticClass:"nowrap"},[t._v("Four Seasons")]),t._v(" Private Residences, Dubai at Jumeriah are not owned, developed or sold by "),i("span",{staticClass:"nowrap"},[t._v("Four Seasons")]),t._v(" Hotels Limited or its affiliates ("),i("span",{staticClass:"nowrap"},[t._v("Four Seasons")]),t._v("). The developer, Private Residences Dubai LLC, uses the "),i("span",{staticClass:"nowrap"},[t._v("Four Seasons")]),t._v(" trademarks and tradenames under a license from "),i("span",{staticClass:"nowrap"},[t._v("Four Seasons")]),t._v(" Hotels and Resorts B.V. The marks “"),i("span",{staticClass:"nowrap"},[t._v("FOUR SEASONS")]),t._v(",” “"),i("span",{staticClass:"nowrap"},[t._v("FOUR SEASONS")]),t._v(" HOTELS AND RESORTS,” any combination thereof and the Tree Design are registered trademarks of "),i("span",{staticClass:"nowrap"},[t._v("Four Seasons")]),t._v(" Hotels Limited in Canada and U.S.A. and of "),i("span",{staticClass:"nowrap"},[t._v("Four Seasons")]),t._v(" Hotels (Barbados) Ltd. elsewhere. Creative by "),i("a",{attrs:{href:"http://williamsnewyork.com",target:"_blank",rel:"noopener"}},[t._v("Williams New York")]),t._v(".\n ")])}]},{"fullsite/partials/footer-link.vue":32}],43:[function(t,e,i){!function(){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var t={data:function(){return{image:"",open:!1,timeout:void 0}},methods:{openModal:function(t,e){var i=this;clearTimeout(this.timeout),this.image=e,this.$nextTick((function(){i.open=!0}))},closeModal:function(){var t=this;clearTimeout(this.timeout),this.open=!1,this.timeout=setTimeout((function(){t.image=""}),300)},escapeCloseModal:function(t){27===t.keyCode&&this.closeModal()}},mounted:function(){$(document).on("keyup",this.escapeCloseModal),$(this.$el).on("open",this.openModal)},beforeDestroy:function(){$(document).off("keyup",this.escapeCloseModal),clearTimeout(this.timeout)}};i.default=t}(),e.exports.__esModule&&(e.exports=e.exports.default);var r="function"==typeof e.exports?e.exports.options:e.exports;r.render=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"image-expand-modal-component",class:{open:this.open},attrs:{id:"image-expand-modal"}},[e("div",{staticClass:"image-expand-modal-component-image",style:{backgroundImage:"url("+this.image+")"}}),this._v(" "),e("button",{staticClass:"image-expand-modal-component-close",on:{click:this.closeModal}},[this._v("\n\n Close\n ")])])},r.staticRenderFns=[]},{}],44:[function(t,e,i){!function(){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var t={props:{cVideo:{type:String},cVersion:{type:Number,default:1}}};i.default=t}(),e.exports.__esModule&&(e.exports=e.exports.default);var r="function"==typeof e.exports?e.exports.options:e.exports;r.render=function(){var t=this.$createElement,e=this._self._c||t;return e("section",{staticClass:"intro-video-component"},[e("video-source",{attrs:{"c-source":this.cVideo,"c-version":this.cVersion,"c-play-in-view":!0}}),this._v(" "),e("div",{staticClass:"flex-wrapper"},[e("div",{staticClass:"intro-video-component-copy"},[e("div",{staticClass:"intro-video-component-copy-inner"},[this._t("default")],2)])]),this._v(" "),this._t("after")],2)},r.staticRenderFns=[]},{}],45:[function(t,e,i){!function(){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e=n(t("mapbox-gl/dist/mapbox-gl.js")),r=n(t("imports/locations.js"));function n(t){return t&&t.__esModule?t:{default:t}}var o={data:function(){return{map:void 0,startingZoom:$(window).width()".concat(n.properties.name,"")+("Hero"!==n.properties.category?"

".concat(n.properties.category,"

"):"")+(n.properties.name!==n.properties.address?"

".concat(n.properties.address,"

"):"")).addTo(t.map)}))},initLocations:function(){var t=this;this.map.addSource("points-of-interest",{type:"geojson",data:this.locations}),this.locations.features.forEach((function(e){var i=e.properties.category,r=e.properties.icon;t.categories.hasOwnProperty(i)||(t.categories[i]=[]),-1===t.categories[i].indexOf(r)&&t.categories[i].push(r)})),Object.keys(this.categoryStyles).forEach((function(e){"image"===t.categoryStyles[e].type&&t.map.loadImage(t.categoryStyles[e].value,(function(i,r){if(i)throw i;t.map.addImage(e,r)}))})),Object.keys(this.categories).forEach((function(e){t.categories[e].forEach((function(e){"image"===t.categoryStyles[e].type?t.map.addLayer({id:e,source:"points-of-interest",filter:["==","icon",e],type:"symbol",layout:{"icon-image":e,"icon-size":{base:.55,stops:[[12,.2],[13,.55],[14,.55],[15,.55],[16,.55]]},"icon-allow-overlap":!0,"text-allow-overlap":!0}}):t.map.addLayer({id:e,source:"points-of-interest",filter:["==","icon",e],type:"circle",paint:{"circle-color":t.categoryStyles[e].value,"circle-opacity":.9,"circle-radius":{base:3,stops:[[13,3],[14,3],[15,8]]}}})}))})),this.initTooltips()},initMap:function(){e.default.accessToken="pk.eyJ1IjoiYmx1bmRxdWlzdCIsImEiOiJPWVlpS21JIn0.SthsZ9UWsM95dj9vWlUlSg",this.map=new e.default.Map({container:"mapbox-container",style:"mapbox://styles/blundquist/ckamz6v5b1hhc1kqc71w4r1z5",center:[this.lon,this.lat],minZoom:this.minZoom,maxZoom:this.maxZoom,pitch:0,zoom:this.startingZoom}),this.map.scrollZoom.disable(),this.map.doubleClickZoom.disable(),this.map.addControl(new e.default.NavigationControl,"bottom-left"),this.map.on("style.load",this.initLocations)}},mounted:function(){this.initMap()}};i.default=o}(),e.exports.__esModule&&(e.exports=e.exports.default);var r="function"==typeof e.exports?e.exports.options:e.exports;r.render=function(){var t=this.$createElement;this._self._c;return this._m(0)},r.staticRenderFns=[function(){var t=this.$createElement,e=this._self._c||t;return e("section",{staticClass:"location-map-component"},[e("div",{attrs:{id:"mapbox-container"}})])}]},{"imports/locations.js":48,"mapbox-gl/dist/mapbox-gl.js":6}],46:[function(t,e,i){!function(){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var t={data:function(){return{openNav:!1,scrolled:!1}},computed:{navLinksLeft:function(){return this.getLinks("left")},navLinksRight:function(){return this.getLinks("right")}},methods:{getLinks:function(t){return this.$store.getters.getNavLinks.filter((function(e){return e.side===t}))},linkPathToKey:function(t){return t.replace(/#/g,"HASH").replace(/[^a-zA-Z\-_]/g,"")},scrolledCheck:function(){this.scrolled=$(window).scrollTop()>=5},initScrolledCheck:function(){this.scrolledCheck(),this.$nextTick(this.scrolledCheck),$(window).on("scroll resize orientationchange",this.scrolledCheck)}},mounted:function(){this.initScrolledCheck()},watch:{$route:function(t,e){this.openNav=!1,this.scrolledCheck()}},beforeDestroy:function(){$(window).off("scroll resize orientationchange",this.scrolledCheck)}};i.default=t}(),e.exports.__esModule&&(e.exports=e.exports.default);var r="function"==typeof e.exports?e.exports.options:e.exports;r.render=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("nav",{staticClass:"navbar-component",attrs:{"aria-label":"Main site navigation"}},[i("div",{staticClass:"navbar-mobile-header",class:{scrolled:t.scrolled,open:t.openNav}},[i("button",{staticClass:"navbar-mobile-header-toggle",class:{open:t.openNav},attrs:{type:"button","aria-controls":"navlinks","aria-label":"Toggle Navigation","aria-expanded":t.openNav?"true":"false"},on:{click:function(e){t.openNav=!t.openNav}}},[i("span",{staticClass:"icon-bar"}),t._v(" "),i("span",{staticClass:"icon-bar"}),t._v(" "),i("span",{staticClass:"sr-only"},[t._v("Toggle navigation")])]),t._v(" "),i("site-link",{staticClass:"mobile-logo",attrs:{to:"/",exact:""}},[i("img",{class:{visible:!t.openNav},attrs:{src:"/img/logo-light.svg?version=1",alt:"Four Seasons Private Residences Dubai at Jumeirah | An H&H Development Project"}}),t._v(" "),i("img",{staticClass:"gold",class:{visible:t.openNav},attrs:{src:"/img/logo-gold.svg?version=1"}})])],1),t._v(" "),i("div",{staticClass:"navlinks",class:{open:t.openNav,scrolled:t.scrolled},attrs:{id:"navlinks","aria-expanded":t.openNav?"true":"false"}},[i("div",{staticClass:"navlinks-wrapper"},[i("div",{staticClass:"navlinks-wrapper-column"},[t._l(t.navLinksLeft,(function(e){return i("site-link",{key:t.linkPathToKey(e.path),staticClass:"navlink",attrs:{"aria-live":"polite","aria-atomic":"true",to:e.path}},[i("span",{staticClass:"navlink-inner"},[void 0!==e.altTitle?[i("span",{staticClass:"desktop-title"},[t._v(t._s(e.title))]),t._v(" "),i("span",{staticClass:"mobile-title"},[t._v(t._s(e.altTitle))])]:[t._v("\n "+t._s(e.title)+"\n ")],t._v(" "),t.$route.path===e.path?i("span",{staticClass:"sr-only"},[t._v("\n\n (Current Page)\n ")]):t._e()],2)])})),t._v(" "),i("div")],2),t._v(" "),i("site-link",{staticClass:"desktop-logo",attrs:{"aria-live":"polite","aria-atomic":"true",to:"/",exact:""}},[i("img",{attrs:{src:"/img/logo-light.svg?version=1",alt:"Four Seasons Private Residences Dubai at Jumeirah | An H&H Development Project"}})]),t._v(" "),i("div",{staticClass:"navlinks-wrapper-column"},[i("div"),t._v(" "),t._l(t.navLinksRight,(function(e){return i("site-link",{key:t.linkPathToKey(e.path),staticClass:"navlink",attrs:{"aria-live":"polite","aria-atomic":"true",to:e.path}},[i("span",{staticClass:"navlink-inner"},[void 0!==e.altTitle?[i("span",{staticClass:"desktop-title"},[t._v(t._s(e.title))]),t._v(" "),i("span",{staticClass:"mobile-title"},[t._v(t._s(e.altTitle))])]:[t._v("\n "+t._s(e.title)+"\n ")],t._v(" "),t.$route.path===e.path?i("span",{staticClass:"sr-only"},[t._v("\n\n (Current Page)\n ")]):t._e()],2)])}))],2)],1)])])},r.staticRenderFns=[]},{}],47:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var r={send:function(t,e){var i,r,n;"undefined"!=typeof ga&&("pageview"===t?(ga("set","page",e.page),ga("set","title",e.title),ga("send","pageview")):ga("send",t,e)),"undefined"!=typeof dataLayer&&("pageview"===t?dataLayer.push({event:"VirtualPageview",virtualPageURL:e.page,virtualPageTitle:e.title}):dataLayer.push((n=e,(r=t)in(i={})?Object.defineProperty(i,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[r]=n,i)))}};i.default=r},{}],48:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;i.default={styles:{hero:{type:"image",value:"/img/location/map-icons/hero.png?version=4"},"four-seasons":{type:"image",value:"/img/location/map-icons/four-seasons.png?version=1"}},geojson:{type:"FeatureCollection",features:[{type:"Feature",properties:{name:"Four Seasons Private Residences Dubai at Jumeirah",address:"",category:"Hero",icon:"hero"},geometry:{type:"Point",coordinates:[55.240549,25.194798]}},{type:"Feature",properties:{name:"Four Seasons Jumeirah",address:"",category:"Hero",icon:"four-seasons"},geometry:{type:"Point",coordinates:[55.241094,25.210085]}},{type:"Feature",properties:{name:"Four Seasons Hotel Dubai",address:"",category:"Hero",icon:"four-seasons"},geometry:{type:"Point",coordinates:[55.282405,25.2126426]}}]}}},{}],49:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;i.default={}},{}],50:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var r=p(t("mixins/base-page.js")),n=p(t("fullsite/sections/intro-video.vue")),o=p(t("fullsite/sections/breadcrumb.vue")),a=p(t("fullsite/partials/scroll-down.vue")),s=p(t("fullsite/partials/media-section.vue")),l=p(t("fullsite/partials/image-side-copy.vue")),u=p(t("fullsite/partials/centered-video.vue")),c=p(t("fullsite/partials/scroll-text-image.vue"));function p(t){return t&&t.__esModule?t:{default:t}}var h={mixins:[r.default],components:{"intro-video":n.default,breadcrumb:o.default,"scroll-down":a.default,"media-section":s.default,"image-side-copy":l.default,"centered-video":u.default,"scroll-text-image":c.default},data:function(){return{footerVisible:!0}},mounted:function(){this.$store.commit("setFooterVisible",this.footerVisible)}};i.default=h},{"fullsite/partials/centered-video.vue":30,"fullsite/partials/image-side-copy.vue":35,"fullsite/partials/media-section.vue":37,"fullsite/partials/scroll-down.vue":38,"fullsite/partials/scroll-text-image.vue":39,"fullsite/sections/breadcrumb.vue":41,"fullsite/sections/intro-video.vue":44,"mixins/base-page.js":49}],51:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;i.default={data:function(){return{logging:!1}},methods:{log:function(t){this.logging}}}},{}],52:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var r={methods:{routerPush:function(t){this.$store.getters.getSpaNavigation?this.$router.push(t):window.location.href=t}}};i.default=r},{}],53:[function(t,e,i){"use strict";var r=C(t("vue-router")),n=C(t("vue-resource")),o=C(t("vuex")),a=C(t("vue-matomo")),s=t("vuex-router-sync"),l=C(t("imports/analytics.js")),u=C(t("mixins/logging.js")),c=C(t("mixins/router-push.js")),p=C(t("fullsite/sections/nav.vue")),h=C(t("fullsite/sections/footer.vue")),f=C(t("fullsite/sections/image-expand-modal.vue")),d=C(t("fullsite/partials/image-expand-button.vue")),m=C(t("common/partials/site-link.vue")),v=C(t("common/partials/video-source.vue")),y=C(t("fullsite/pages/home.vue")),g=C(t("fullsite/pages/four-seasons-lifestyle.vue")),_=C(t("fullsite/pages/residences-and-villas.vue")),x=C(t("fullsite/pages/amenities.vue")),b=C(t("fullsite/pages/location.vue")),w=C(t("fullsite/pages/team.vue")),T=C(t("fullsite/pages/contact.vue")),S=C(t("fullsite/pages/thanks.vue")),E=C(t("fullsite/pages/error404.vue"));function C(t){return t&&t.__esModule?t:{default:t}}var k=t("vue/dist/vue.min.js");t("es6-object-assign/auto"),t("what-input");var A=t("viewport-units-buggyfill");k.use(r.default),k.use(n.default),k.use(o.default),k.http.headers.common["X-CSRF-TOKEN"]=document.querySelector("meta[name=_token]").getAttribute("value"),k.mixin(u.default),k.mixin(c.default),k.component("nav-section",p.default),k.component("footer-section",h.default),k.component("image-expand-modal",f.default),k.component("image-expand-button",d.default),k.component("site-link",m.default),k.component("video-source",v.default);var P=new r.default({mode:"history",linkActiveClass:"active",routes:[{path:"/",component:y.default},{path:"/four-seasons-lifestyle",component:g.default},{path:"/residences-and-villas",component:_.default},{path:"/amenities",component:x.default},{path:"/location",component:b.default},{path:"/team",component:w.default},{path:"/contact",component:T.default},{path:"/thanks",component:S.default},{path:"/*",component:E.default}],scrollBehavior:function(t,e,i){return t.hash?{selector:"[id='".concat(t.hash.slice(1),"']")}:{x:0,y:0}}});""!==env.matomoSiteNumber&&k.use(a.default,{host:"https://stats.williamsnewyork.com/",siteId:env.matomoSiteNumber,trackerFileName:"matomo",router:P,enableLinkTracking:!0,requireConsent:!1,trackInitialView:!0,debug:env.debug});var I=new o.default.Store({state:{siteName:env.siteName,firstLoad:!0,lastPath:"",spaNavigation:!0,footerVisible:!0,pageTransitionTimeout:void 0,navLinks:[{title:"Four Seasons Lifestyle",altTitle:"Four Seasons",path:"/four-seasons-lifestyle",side:"left",sublinks:[{title:"The Art of Service",anchor:"#the-art-of-service"},{title:"Property Management",anchor:"#property-management"},{title:"Four Seasons Dubai Collection",anchor:"#four-seasons-dubai-collection"}]},{title:"Residences and Villas",altTitle:"Residences & Villas",path:"/residences-and-villas",side:"left",sublinks:[{title:"The Residences",anchor:"#the-residences"},{title:"The Waterfront Villas",anchor:"#the-waterfront-villas"}]},{title:"Amenities",path:"/amenities",side:"right",sublinks:[{title:"The Lobby",anchor:"#the-lobby"},{title:"Private Pool",anchor:"#private-pool"},{title:"Private Fitness",anchor:"#private-fitness"},{title:"Private Spa",anchor:"#private-spa"},{title:"Children's Room",anchor:"#childrens-room"}]},{title:"Location",path:"/location",side:"right",sublinks:[{title:"Map",anchor:"#map"}]},{title:"Team",path:"/team",side:"right",sublinks:[{title:"H&H/Brightstart",anchor:"#h-and-h-brightstart"},{title:"Four Seasons",anchor:"#four-seasons"},{title:"Hopkins",anchor:"#hopkins"},{title:"Sybille de Margerie",anchor:"#sybille-de-margerie"}]},{title:"Contact",altTitle:"Register",path:"/contact",side:"right",sublinks:[]}],screenBreak:{screenXs:0,screenSm:576,screenMd:768,screenLg:992,screenXl:1200,screenXxl:1600},agentDetect:{isMobile:/Mobi/.test(navigator.userAgent),isMobileSafari:/iP(hone|ad|od);/.test(navigator.userAgent),isIE:!window.ActiveXObject&&"ActiveXObject"in window,isEdge:window.navigator.userAgent.indexOf("Edge")>-1,isChrome:/Chrome/.test(navigator.userAgent)}},getters:{getSiteName:function(t){return t.siteName},getFirstLoad:function(t){return t.firstLoad},getLastPath:function(t){return t.lastPath},getSpaNavigation:function(t){return t.spaNavigation},getFooterVisible:function(t){return t.footerVisible},getNavLinks:function(t){return t.navLinks},getScreenBreak:function(t){return t.screenBreak},getAgentDetect:function(t){return t.agentDetect}},mutations:{setFirstLoad:function(t,e){t.firstLoad=e},setLastPath:function(t,e){t.lastPath=e},setSpaNavigation:function(t,e){t.spaNavigation=e},setFooterVisible:function(t,e){t.footerVisible=e},setPageTransitionTimeout:function(t,e){clearTimeout(t.pageTransitionTimeout),t.pageTransitionTimeout=e}},actions:{}});(0,s.sync)(I,P),P.beforeEach((function(t,e,i){var r=t.path.replace(/\//,"").replace(/\/.*/,""),n=e.path.replace(/\//,"").replace(/\/.*/,""),o="page-".concat(r),a="page-".concat(n);t.path!==I.getters.getLastPath&&("/"===t.path?$("body").removeClass(a).addClass("page-home"):$("body").removeClass("page-home ".concat(a)).addClass(o),I.getters.getFirstLoad?((I.getters.getAgentDetect.isMobileSafari||I.getters.getAgentDetect.isChrome&&I.getters.getAgentDetect.isMobile)&&A.init({force:!0}),i()):TweenMax.to("#main-content",.25,{opacity:0,onComplete:i}))})),P.afterEach((function(t,e){var i=document.location.origin+t.path,r=t.path.replace(/^\//,""),n={title:["name","title"],description:["name","description"],keywords:["name","keywords"],"dc:title":["name","title"],"dc:description":["name","description"],"og:title":["property","title"],"og:description":["property","description"],"og:url":["property","url"],"twitter:title":["name","title"],"twitter:description":["name","description"]},o=function(t,e,i){var r=$("meta["+t+"="+e.replace(/:/,"\\:")+"]");r.length&&r.attr("content",i)};t.path!==I.getters.getLastPath&&(I.commit("setLastPath",t.path),$.ajax({type:"POST",url:"/api/meta"+env.apiToken,data:{path:""===r?"home":r}}).done((function(e){var r,a;for(var s in document.title=e.title,$("link[rel=canonical]").attr("href",i),n)if(n.hasOwnProperty(s)){switch((r=n[s])[1]){case"title":a=e.title;break;case"description":a=e.description;break;case"keywords":a=e.keywords;break;case"url":a=i;break;default:a=""}o(r[0],s,a)}l.default.send("pageview",{page:t.path,title:e.title})})),I.getters.getFirstLoad?(I.commit("setFirstLoad",!1),I.getters.getAgentDetect.isIE&&$("body").addClass("is-ie"),I.getters.getAgentDetect.isEdge&&$("body").addClass("is-edge"),I.getters.getAgentDetect.isMobileSafari&&$("body").addClass("is-mobile-safari"),I.getters.getAgentDetect.isMobile&&$("body").addClass("is-mobile")):k.nextTick((function(){I.commit("setPageTransitionTimeout",setTimeout((function(){TweenMax.to("#main-content",.25,{opacity:1})}),250))})))}));new k({router:P,store:I}).$mount("#app")},{"common/partials/site-link.vue":19,"common/partials/video-source.vue":20,"es6-object-assign/auto":3,"fullsite/pages/amenities.vue":21,"fullsite/pages/contact.vue":22,"fullsite/pages/error404.vue":23,"fullsite/pages/four-seasons-lifestyle.vue":24,"fullsite/pages/home.vue":25,"fullsite/pages/location.vue":26,"fullsite/pages/residences-and-villas.vue":27,"fullsite/pages/team.vue":28,"fullsite/pages/thanks.vue":29,"fullsite/partials/image-expand-button.vue":34,"fullsite/sections/footer.vue":42,"fullsite/sections/image-expand-modal.vue":43,"fullsite/sections/nav.vue":46,"imports/analytics.js":47,"mixins/logging.js":51,"mixins/router-push.js":52,"viewport-units-buggyfill":11,"vue-matomo":12,"vue-resource":13,"vue-router":14,"vue/dist/vue.min.js":15,vuex:17,"vuex-router-sync":16,"what-input":18}]},{},[53]);