vendor: 4,323 bytes, line 1
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[15555],{76064:function(t,r,n){var o=n(34406);!function(e,r){t.exports=r(n(2784),n(28316))}(0,((t,r)=>(()=>{var n,i,a={86111:function(t,e,r){var n,o,i;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(73796)],n=function(t,e){"use strict";function r(){r=function(){return t};var t={},e=Object.prototype,o=e.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,a=Object.create(o.prototype),s=new j(n||[]);return i(a,"_invoke",{value:O(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var h={};function d(){}function m(){}function y(){}var v={};l(v,s,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(A([])));b&&b!==e&&o.call(b,s)&&(v=b);var _=y.prototype=d.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function r(i,a,s,u){var c=f(t[i],t,a);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==n(p)&&o.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,s,u)}),(function(t){r("throw",t,s,u)})):e.resolve(p).then((function(t){l.value=t,s(l)}),(function(t){return r("throw",t,s,u)}))}u(c.arg)}var a;i(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function O(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function A(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:C}}function C(){return{value:void 0,done:!0}}return m.prototype=y,i(_,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:m,configurable:!0}),m.displayName=l(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,c,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},x(w.prototype),l(w.prototype,u,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Prom
vendor: 5,016 bytes, line 1
1ise);var a=new w(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(_),l(_,c,"Generator"),l(_,s,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=A,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,v(n.key),n)}}function a(t,e,r){return e&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}function c(t){var e=h();return function(){var r,o=m(t);if(e){var i=m(this).constructor;r=Reflect.construct(o,arguments,i)}else r=o.apply(this,arguments);return function(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return l(t)}(this,r)}}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t){var e="function"==typeof Map?new Map:void 0;return p=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return f(t,arguments,m(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,t)},p(t)}function f(t,e,r){return f=h()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&d(o,r.prototype),o},f.apply(null,arguments)}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}
1function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function y(t,e,r){return(e=v(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function v(t){var e=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e);if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===n(e)?e:String(e)}var g;Object.defineProperty(t,"__esModule",{value:!0}),t.PlanError=t.NetworkError=void 0,t.mapExceptions=function(t){return x.apply(this,arguments)},e=(g=e)&&g.__esModule?g:{default:g};var b=function(t){u(r,t);var e=c(r);function r(){var t;s(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return y(l(t=e.call.apply(e,[this].concat(o))),"message","Ein Netzwerkfehler ist aufgetreten"),t}return a(r)}(p(Error));t.NetworkError=b;var _=function(t){u(n,t);var r=c(n);function n(){var t;s(this,n);for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return y(l(t=r.call.apply(r,[this].concat(o))),"message","Die Route konnte nicht erstellt werden"),t}return a(n,null,[{key:"fromErrors",value:function(t){var r=new n,o={"not-found":function(t){return(0,e.default)("Der Punkt ".concat(t.point_index," auf dieser Strecke konnte nicht gefunden werden."))},"distance-exceeded":function(){return(0,e.default)("Die gew\xe4hlte Strecke ist zu lang. Bitte plane diese Strecke in k\xfcrzeren Teilabschnitten.")},"no-connection":function(){return(0,e.default)("Es konnte keine Verbindung zwischen den gew\xe4hlten Punkten hergestellt werden.")}};return r.errors=t||[],r.translatedErrors=r.errors.filter((function(t){return t.type})).map((function(t){return o[t.type]?o[t.type](t):(0,e.default)("Unbekannter Fehler")})),r}}]),n}(p(Error));function x(){return(t=r().mark((function t(e){var n,o,i,a;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e();case 3:return t.abrupt("return",t.sent);case 6:if(t.prev=6,t.t0=t.catch(0),"Failed to fetch"!==t.t0.message){t.next=10;break}throw new b;case 10:if("route-generation-failed"!==(null===t.t0||void 0===t.t0||null===(n=t.t0.response)||void 0===n||null===(o=n.body)||void 0===o?void 0:o.type)){t.next=12;break}throw _.fromErrors(null===t.t0||void 0===t.t0||null===(i=t.t0.response)||void 0===i||null===(a=i.body)||void 0===a?void 0:a.errors);case 12:throw t.t0;case 13:case"end":return t.stop()}}),t,null,[[0,6]])})),x=function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,"next",t)}function u(t){o(a,n,i,s,u,"throw",t)}s(void 0)}))}).apply(this,arguments);var t}t.PlanError=_},void 0===(i=n.apply(e,o))||(t.exports=i)},37166:function(t,e){var r,n;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,r=function(t){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function r(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(void 0,i=function(t,r){if("object"!==e(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,r);
vendor: 5,304 bytes, line 1
1if("object"!==e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o.key,"string"),"symbol"===e(i)?i:String(i)),o)}var i}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.longitude=e,this.latitude=r,n?(this.display=n,this.meta=o):this.display=e+","+r}return e=t,n=[{key:"fromLongitudeLatitude",value:function(e,r){return new t(e,r)}},{key:"fromLongitudeLatitudeDisplayMeta",value:function(e,r,n,o){return new t(e,r,n,o)}}],null&&r(e.prototype,null),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t;var e,n}();t.default=n},void 0===(n=r.apply(e,[e]))||(t.exports=n)},3558:function(t,e,r){var n,o,i;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(80517),r(86111)],n=function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){o=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,a=Object.create(o.prototype),s=new j(n||[]);return i(a,"_invoke",{value:O(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var h={};function d(){}function m(){}function y(){}var v={};l(v,s,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(A([])));b&&b!==e&&r.call(b,s)&&(v=b);var _=y.prototype=d.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(i,a,s,u){var c=f(t[i],t,a);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==n(p)&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){o("next",t,s,u)}),(function(t){o("throw",t,s,u)})):e.resolve(p).then((function(t){l.value=t,s(l)}),(function(t){return o("throw",t,s,u)}))}u(c.arg)}var a;i(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function O(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function A(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return m.prototype=y,i(_,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:m,configurable:!0}),m.displayName=l(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,c,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},x(w.prototype),l(w.prototype,u,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Prom
vendor: 5,863 bytes, line 1
1ise);var a=new w(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(_),l(_,c,"Generator"),l(_,s,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=A,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function i(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,u,"next",t)}function u(t){i(a,n,o,s,u,"throw",t)}s(void 0)}))}}function s(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e);if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o.key,"string"),"symbol"===n(i)?i:String(i)),o)}var i}var u;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e=(u=e)&&u.__esModule?u:{default:u};var c=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.swaggerClient=e}return n=t,i=[{key:"fromViewport",value:(g=a(o().mark((function t(e){var n,i,a,s=this,u=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=u.length>1&&void 0!==u[1]?u[1]:null,i={left_lng:e.topLeft.longitude,top_lat:e.topLeft.latitude,right_lng:e.bottomRight.longitude,bottom_lat:e.bottomRight.latitude},n&&(i.types=n.join(",")),t.next=5,(0,r.mapExceptions)((function(){return s.swaggerClient.apis.points_of_interest.withinViewport(i)}));case 5:return a=t.sent,t.abrupt("return",a.body.data);case 7:case"end":return t.stop()}}),t)}))),function(t){return g.apply(this,arguments)})},{key:"queryToGeolocation",value:(v=a(o().mark((function t(e){var n,i,a,s,u=this;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.query,i=e.types,a={query:n},t.next=4,(0,r.mapExceptions)((function(){return u.swaggerClient.apis.geocode.forward(u.appendTypesIfDefined(a,i))}));case 4:return s=t.sent,t.abrupt("return",s.body.data);case 6:case"end":return t.stop()}}),t)}))),function(t){return v.apply(this,arguments)})},{key:"geolocationToDescription",value:(y=a(o().mark((function t(e){var n,i,a,s=this;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.longitude,i=e.latitude,t.next=3,(0,r.mapExceptions)((function(){return s.swaggerClient.apis.geocode.reverse({longitude:n,latitude:i})}));case 3:return a=t.sent,t.abrupt("return",a.body.data);case 5:case"end":return t.stop()}}),t)}))),function(t){return y.apply(this,arguments)})},{key:"queryToGeolocationAroundPoint",value:(m=a(o().mark((function t(e){var n,i,a,s,u,c=this;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.query,i=e.around,a=e.types,s={query:n,around:[i.longitude,i.latitude].join(",")},t.next=4,(0,r.mapExceptions)((function(){return c.swaggerClient.apis.geocode.around(c.appendTypesIfDefined(s,a))}));case 4:return u=t.sent,t.abrupt("return",u.body.data);case 6:case"end":return t.stop()}}),t)}))),function(t){return m.apply(this,arguments)})},{key:"planTour",value:(d=a(o().mark((function t(e){var n,i=this;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,r.mapExceptions)((function(){return i.swaggerClient.apis.tour.plan({data:{stops:e}})}
1));case 2:return n=t.sent,t.abrupt("return",n.body.data);case 4:case"end":return t.stop()}}),t)}))),function(t){return d.apply(this,arguments)})},{key:"findTour",value:(h=a(o().mark((function t(e){var n,i,a=this;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.id,t.next=3,(0,r.mapExceptions)((function(){return a.swaggerClient.apis.tour.getTour({id:n})}));case 3:return i=t.sent,t.abrupt("return",i.body);case 5:case"end":return t.stop()}}),t)}))),function(t){return h.apply(this,arguments)})},{key:"toursFromGpx",value:(f=a(o().mark((function t(e){var n,i,a=this;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.gpx,t.next=3,(0,r.mapExceptions)((function(){return a.swaggerClient.apis.tour.fromGpx({gpx:n})}));case 3:return i=t.sent,t.abrupt("return",i.body.data);case 5:case"end":return t.stop()}}),t)}))),function(t){return f.apply(this,arguments)})},{key:"gpxForTour",value:(p=a(o().mark((function t(e){var r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.id,t.prev=1,t.next=4,this.swaggerClient.apis.tour.getGpxTour({id:r},{requestInterceptor:function(t){throw window.open(t.url,"_blank"),new Error("Stop request from happening")}});case 4:t.sent,t.next=9;break;case 7:t.prev=7,t.t0=t.catch(1);case 9:case"end":return t.stop()}}),t,this,[[1,7]])}))),function(t){return p.apply(this,arguments)})},{key:"saveTour",value:(l=a(o().mark((function t(e){var n,i,a,s=this;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.tour,i=e.user,n.relatedUser=i,n.heading=n.heading||"",n.description=n.description||"",t.next=6,(0,r.mapExceptions)((function(){return s.swaggerClient.apis.tour.save({data:{tour:n}})}));case 6:return a=t.sent,console.log("respons::",a),t.abrupt("return",a.body.data._id);case 9:case"end":return t.stop()}}),t)}))),function(t){return l.apply(this,arguments)})},{key:"appendTypesIfDefined",value:function(t,e){return e&&(t.types=this.filterToFilterString(e)),t}},{key:"filterToFilterString",value:function(t){if(void 0!==t)return t.length||t.size?t.join(","):t}}],u=[{key:"fromUrl",value:(c=a(o().mark((function r(n){var i;return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,new e.default({url:n});case 2:return i=r.sent,r.abrupt("return",new t(i));case 4:case"end":return r.stop()}}),r)}))),function(t){return c.apply(this,arguments)})}],i&&s(n.prototype,i),u&&s(n,u),Object.defineProperty(n,"prototype",{writable:!1}),t;var n,i,u,c,l,p,f,h,d,m,y,v,g}();t.default=c},void 0===(i=n.apply(e,o))||(t.exports=i)},30980:function(t,e,r){var n,o,i;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(37166)],void 0===(i="function"==typeof(n=function(t,e){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function n(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}var o;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e=(o=e)&&o.__esModule?o:{default:o};var i=function(){function t(e,r){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.topLeft=e,this.bottomRight=r}return r=t,o=[{key:"fromLeftTopRightBottom",value:function(r,n,o,i){return new t(new e.default(r,n),new e.default(o,i))}}],null&&n(r.prototype,null),o&&n(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t;var r,o}();t.default=i})?n.apply(e,o):n)||(t.exports=i)},55579:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(37166),r(30980),r(96655),r(84798),r(84252),r(2477),r(6669),r(83139),r(12739)],void 0===(i="function"==typeof(n=function(t,e,n,o,i,s,u,c,l,p){"use strict";function f(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(f=function(t){return t?r:e})(t)}function h(t){return t&&t.__esModule?t:{default:t}}
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Coordinate",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"CreateMap",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"ElevationProfile",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"Error",{enumerable:!0,get:function(){return l.Error}}),Object.defineProperty(t,"PointOfInterest",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"RummageMap",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"ShowMap",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"Viewport",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"getPoi",{enumerable:!0,get:function(){return c.getPoi}}),e=h(e),n=h(n),o=h(o),i=h(i),s=h(s),u=h(u),c=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=f(e);if(r&&r.has(t))return r.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var s=o?Object.getOwnPropertyDescriptor(t,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=t[i]}return n.default=t,r&&r.set(t,n),n}(c),(p=h(p)).default.workerClass=new Worker(new URL(r.p+r.u(565),r.b))})?n.apply(e,o):n)||(t.exports=i)},43983:function(t,e,r){var n,o,i;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(73796)],void 0===(i="function"==typeof(n=function(t,e){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===r(e)?e:String(e)}var i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e=(i=e)&&i.__esModule?i:{default:i};var a=function(){function t(){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),function(t,e,r){(e=o(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(this,"attributes",{})}return r=t,a=[{key:"fromName",value:function(e){var r=new t;return r.name=e,r}}],(i=[{key:"country",value:function(t){return this.attributes.country=t,this}},{key:"city",value:function(t){return this.attributes.city=t,this}},{key:"postcode",value:function(t){return this.attributes.postcode=t,this}},{key:"toString",value:function(){return this.withCityOrPostcode(this.name)}},{key:"withCityOrPostcode",value:function(t){var r=this.attributes,n=r.city,o=r.postcode;return n===t?t+" "+o||(0,e.default)("Stadt"):n?t+" "+n:o?t+" "+o:t}}])&&n(r.prototype,i),a&&n(r,a),Object.defineProperty(r,"prototype",{writable:!1}),t;var r,i,a}();t.default=a})?n.apply(e,o):n)||(t.exports=i)},28022:function(t,e){var r,n;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,void 0===(n="function"==typeof(r=function(t){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function r(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(void 0,i=function(t,r){if("object"!==e(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,r);
1if("object"!==e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o.key,"string"),"symbol"===e(i)?i:String(i)),o)}var i}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return e=t,o=[{key:"fromPropsRoute",value:function(e,r){var n=new t;return n.jumpBounds=e.jumpBounds,n.route=r,n}}],(n=[{key:"boundToIfNew",value:function(t){this.route||this.boundTo(t)}},{key:"boundTo",value:function(t){this.jumpBounds(t.topLeft,t.bottomRight)}}])&&r(e.prototype,n),o&&r(e,o),Object.defineProperty(e,"prototype",{writable:!1}),t;var e,n,o}();t.default=n})?r.apply(e,[e]):r)||(t.exports=n)},18494:function(t,e){var r,n;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,void 0===(n="function"==typeof(r=function(t){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function r(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(void 0,i=function(t,r){if("object"!==e(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,r);
1if("object"!==e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o.key,"string"),"symbol"===e(i)?i:String(i)),o)}var i}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return e=t,o=[{key:"fromTagArray",value:function(e){var r=new t;return r.tags=e,r}}],(n=[{key:"include",value:function(t){this.tags.includes(t)||this.tags.push(t)}},{key:"remove",value:function(t){for(var e;-1!==(e=this.firstIndex(t));)this.tags.splice(e,1)}},{key:"firstIndex",value:function(t){return this.tags.findIndex((function(e){return e===t}))}}])&&r(e.prototype,n),o&&r(e,o),Object.defineProperty(e,"prototype",{writable:!1}),t;var e,n,o}();t.default=n})?r.apply(e,[e]):r)||(t.exports=n)},94249:function(t,e,r){var n,o,i;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(35369),r(21614),r(43983)],n=function(t,e,r,n){"use strict";function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function s(){s=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function p(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new j(o||[]);return n(a,"_invoke",{value:O(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var h={};function d(){}function m(){}function y(){}var v={};l(v,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(A([])));b&&b!==e&&r.call(b,a)&&(v=b);var _=y.prototype=d.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(n,a,s,u){var c=f(t[n],t,a);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==o(p)&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){i("next",t,s,u)}),(function(t){i("throw",t,s,u)})):e.resolve(p).then((function(t){l.value=t,s(l)}),(function(t){return i("throw",t,s,u)}))}u(c.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){i(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function O(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);
vendor: 5,570 bytes, line 1
1if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function A(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return m.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:m,configurable:!0}),m.displayName=l(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,c,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},x(w.prototype),l(w.prototype,u,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(_),l(_,c,"Generator"),l(_,a,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=A,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function u(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){u(i,n,o,a,s,"next",t)}function s(t){u(i,n,o,a,s,"throw",t)}a(void 0)}))}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,g(n.key),n)}}function f(t,e,r){return e&&p(t.prototype,e),r&&p(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}
1function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=y(t);if(e){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function v(t,e,r){return(e=g(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function g(t){var e=function(t,e){if("object"!==o(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===o(e)?e:String(e)}var b;Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Waypoint=void 0,n=(b=n)&&b.__esModule?b:{default:b};var _=function(t){h(u,t);var e,o,a=m(u);function u(){return l(this,u),a.apply(this,arguments)}return f(u,[{key:"longitudeLatitude",value:function(){return{longitude:this.longitude,latitude:this.latitude}}},{key:"updateLongitudeLatitude",value:function(t,e){return this.set("longitude",t).set("latitude",e)}},{key:"generateId",value:function(){return this.set("id",(0,r.v4)())}},{key:"isIncomplete",value:function(){return!this.isComplete()}},{key:"isComplete",value:function(){return this.complete}},{key:"isStart",value:function(){return this.type===u.TYPE_START}},{key:"asStart",value:function(){return this.set("type",u.TYPE_START)}},{key:"isEnd",value:function(){return this.type===u.TYPE_END}},{key:"asEnd",value:function(){return this.set("type",u.TYPE_END)}},{key:"isIntermediate",value:function(){return this.type===u.TYPE_INTERMEDIATE}},{key:"asIntermediate",value:function(){return this.set("type",u.TYPE_INTERMEDIATE)}},{key:"reverseGeocode",value:(o=c(s().mark((function t(e){var r,n,o,i,a=arguments;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=(a.length>1&&void 0!==a[1]?a[1]:{}).onError,n=void 0===r?function(){}:r,t.prev=1,t.next=4,this._reverseGeocode(e);case 4:return o=t.sent,t.abrupt("return",this._updateFromHit(o));case 8:return t.prev=8,t.t0=t.catch(1),console.log(t.t0.message),n(t.t0),i=this.longitude+","+this.latitude,t.abrupt("return",this.set("name",i));case 14:case"end":return t.stop()}}),t,this,[[1,8]])}))),function(t){return o.apply(this,arguments)})},{key:"_reverseGeocode",value:(e=c(s().mark((function t(e){var r;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.geolocationToDescription({longitude:this.longitude,latitude:this.latitude});case 2:if((r=t.sent).length){t.next=5;break}throw new Error("no geolocation found for point "+this.longitude+","+this.latitude);case 5:return t.abrupt("return",r[0]);case 6:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"_updateFromHit",value:function(t){var e=i(t.center.coordinates,2),r=e[0],o=e[1],a=n.default.fromName(t.meta.name).city(t.meta.city).postcode(t.meta.postcode).country(t.meta.country);return this.set("name",a.toString()).set("longitude",r).set("latitude",o).set("meta",t.meta)}}],[{key:"placeholder",value:function(){return(new u).set("complete",!1).generateId()}},{key:"fromTourWaypoint",value:function(t){var e=t.longitude,r=t.latitude,n=t.display,o=t.meta;return this.fromLongitudeLatitudeNameMeta(e,r,n,o)}},{key:"fromLongitudeLatitudeName",value:function(t,e,r){return(new u).set("longitude",t).set("latitude",e).set("name",r).generateId()}},{key:"fromLongitudeLatitudeNameMeta",value:function(t,e,r,n){return(new u).set("longitude",t).set("latitude",e).set("name",r).set("meta",n).generateId()}},{key:"fromLongitudeLatitude",value:function(t,e){return(new u).set("longitude",t).set("latitude",e).set("name",t+","+e).generateId()}}]),u}((0,e.Record)({id:"",longitude:0,latitude:0,complete:!0,name:"",meta:{},type:0}));t.Waypoint=_,v(_,"TYPE_UNSET",0),v(_,"TYPE_START",1),v(_,"TYPE_INTERMEDIATE",2),v(_,"TYPE_END",3);var x=function(t){h(n,t);var r=m(n);function n(){return l(this,n),r.apply(this,arguments)}return f(n,[{key:"getWaypointByIndex",value:function(t){return this.list().get(t)}},{key:"snapTo",value:function(t){if(t.size){var e=this,r=t.first();e=this.start?e.setStart(this.start.updateLongitudeLatitude(r.longitude,r.latitude)):e.setStart(_.fromLongitudeLatitude(r.longitude,r.latitude));var n=t.last();return e=this.end?e.setEnd(this.end.updateLongitudeLatitude(n.longitude,n.latitude)):e.setEnd(_.fromLongitudeLatitude(n.longitude,n.latitude)),t.slice(1,-1).reduce((function(t,e,r){var n=e.longitude,o=e.latitude;if(t.intermediate.size>r){var i=t.intermediate;i=i.update(r,(function(t){return t.updateLongitudeLatitude(n,o)})),t=t.set("intermediate",i)}else t=t.addIntermediate(_.fromLongitudeLatitude(n,o));return t}),e)}}},{key:"move",value:function(t,e){if(t===e)return this;var r=this.list(),o=r.get(t),i=(r.get(e),r.remove(t).insert(e,o));return(new n).setStart(i.first().asStart()).set("intermediate",i.slice(1,-1).map((function(t){return t.asIntermediate()}))).setEnd(i.last().asEnd())}},{key:"isComplete",value:function(){return null!==this.start&&null!==this.end}},{key:"setWaypoint",value:function(t,e){return this.isStartIndex(t)?this.setStart(e):this.isEndIndex(t)?this.setEnd(e):this.setIntermediate(this.waypointIndexToIntermediateIndex(t),e)}},{key:"addIntermediateWaypoint",value:function(t){var e=this.intermediate.push(t.asIntermediate());return this.set("intermediate",e)}},{key:"setStart",value:function(t){return this.set("start",t.asStart())}},{key:"setIntermediate",value:function(t,e){var r=this.intermediate.set(t,e.asIntermediate());return this.set("intermediate",r)}},{key:"setEnd",value:function(t){return this.set("end",t.asEnd())}},{key:"insertAfter",value:function(t,e){if(this.isStartIndex(t))return this.set("intermediate",this.intermediate.unshift(e));if(this.isIntermediateIndex(t)){var r=this.waypointIndexToIntermediateIndex(t);return this.set("intermediate",this.intermediate.insert(r+1,e))}if(this.isEndIndex(t)){var n=this.intermediate.push(this.end);return this.set("intermediate",n).set("end",e)}}},{key:"removeWaypoint",value:function(t){return 0===t&&this.start?this.removeStart():t===this.lastIndex()&&this.end?this.removeEnd():this.removeIntermediate(this.waypointIndexToIntermediateIndex(t))}},{key:"removeStart",value:function(){return this.start?this.set("start",null):this}},{key:"removeStartAndFallBack",value:function(){return this.start?this.intermediate.size>0?this.set("start",this.intermediate.first().asStart()).set("intermediate",this.intermediate.shift()):this.set("start",this.end).set("end",null):this}},{key:"removeEnd",value:function(){return this.set("end",null)}},{key:"removeIntermediate",value:function(t){return this.set("intermediate",this.intermediate.delete(t))}}
1,{key:"waypointIndexToIntermediateIndex",value:function(t){return this.start?t-1:t}},{key:"isStartIndex",value:function(t){return 0===t}},{key:"isEndIndex",value:function(t){return t===this.lastIndex()}},{key:"isIntermediateIndex",value:function(t){return t>0&&t<this.lastIndex()}},{key:"lastIndex",value:function(){return this.size()-1}},{key:"size",value:function(){var t=this.intermediate.size;return this.start&&++t,this.end&&++t,t}},{key:"list",value:function(){var t=this.intermediate;return this.start&&(t=t.unshift(this.start)),this.end&&(t=t.push(this.end)),t}}],[{key:"fromTourWaypoints",value:function(t){var r=new e.List(t);return(new n).setStart(_.fromTourWaypoint(r.first())).set("intermediate",r.slice(1,-1).map((function(t){return _.fromTourWaypoint(t).asIntermediate()}))).setEnd(_.fromTourWaypoint(r.last()))}}]),n}((0,e.Record)({start:null,intermediate:(0,e.List)(),end:null}));t.default=x},void 0===(i=n.apply(e,o))||(t.exports=i)},23270:function(t,e){var r,n;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,r=function(t){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function r(){r=function(){return t};var t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,a=Object.create(o.prototype),s=new j(n||[]);return i(a,"_invoke",{value:O(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var h={};function d(){}function m(){}function y(){}var v={};l(v,s,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(A([])));b&&b!==n&&o.call(b,s)&&(v=b);var _=y.prototype=d.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,r){function n(i,a,s,u){var c=f(t[i],t,a);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==e(p)&&o.call(p,"__await")?r.resolve(p.__await).then((function(t){n("next",t,s,u)}),(function(t){n("throw",t,s,u)})):r.resolve(p).then((function(t){l.value=t,s(l)}),(function(t){return n("throw",t,s,u)}))}u(c.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return a=a?a.then(o,o):o()}})}function O(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function A(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:C}}function C(){return{value:void 0,done:!0}}return m.prototype=y,i(_,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:m,configurable:!0}),m.displayName=l(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,c,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},x(w.prototype),l(w.prototype,u,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Prom
vendor: 4,075 bytes, line 1
1ise);var a=new w(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(_),l(_,c,"Generator"),l(_,s,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=A,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function n(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function o(){return(t=r().mark((function t(e,n){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,new Promise((function(t){e.setState(n,(function(){t()}))}));case 2:case"end":return t.stop()}}),t)})),o=function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function s(t){n(a,o,i,s,u,"next",t)}function u(t){n(a,o,i,s,u,"throw",t)}s(void 0)}))}).apply(this,arguments);var t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t,e){return o.apply(this,arguments)}},void 0===(n=r.apply(e,[e]))||(t.exports=n)},82416:function(t,e,r){var n,o,i;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(52606)],void 0===(i="function"==typeof(n=function(t,e){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}
1finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||o(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,c(n.key),n)}}function u(t,e,r){return e&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t){var e=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===r(e)?e:String(e)}var l;Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.PointsOfInterestClusteredByType=void 0,e=(l=e)&&l.__esModule?l:{default:l};var p=function(){function t(){a(this,t)}return u(t,[{key:"pointsOfInterest",get:function(){return this._allPointsOfInterest||(this._allPointsOfInterest=this.cluster
1s.reduce((function(t,e){return t.concat(e.pointsOfInterest)}),[])),this._allPointsOfInterest}},{key:"clusters",get:function(){var t=this;return this.poiTypes.map((function(e){return f.forPointsOfInterestTypeProject(t._pointsOfInterest,e,t.project)}))}},{key:"poiTypes",get:function(){return Object.keys(this._pointsOfInterest.reduce((function(t,e){return t[e.type]=!0,t}),{}))}}],[{key:"fromPointsOfInterestProject",value:function(e,r){var o=new t;return o._pointsOfInterest=e,o.project=function(t){var e=n(t,2),o=e[0],i=e[1],a=r([i,o]);return[a.x,a.y]},o}}]),t}();t.PointsOfInterestClusteredByType=p;var f=function(){function t(){a(this,t),function(t,e,r){(e=c(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(this,"geojsonCoordinateCenter",(function(t){return{types:"Point",coordinates:(e=t.reduce((function(t,e){var r=function(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||o(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.location.coordinates);return t.map((function(t,e){return t+((null==r?void 0:r[e])||0)}))}),[0,0]),e.map((function(e){return e/t.length})))};var e}))}return u(t,[{key:"pointsOfInterest",get:function(){var t=this;return this.clusters.map((function(e){return e.isCluster?{id:e.pointsOfInterest.map((function(t){return t._id})).join("-"),location:t.geojsonCoordinateCenter(e.pointsOfInterest),type:"cluster_"+t.type,contained_points_of_interest:e.pointsOfInterest}:e.pointsOfInterest[0]}))}},{key:"clusters",get:function(){var t=this;return(new e.default.OPTICS).run(this.projectedPoiCoordinates,30,2).map((function(e){return h.fromClusterPointsOfInterest(e,t._pointsOfInterest)}))}},{key:"projectedPoiCoordinates",get:function(){var t=this;return this._pointsOfInterest.map((function(t){return t.location.coordinates})).map((function(e){return t.project(e)}))}}],[{key:"forPointsOfInterestTypeProject",value:function(e,r,n){var o=new t;return o._pointsOfInterest=e.filter((function(t){return t.type===r})),o.type=r,o.project=n,o}}]),t}(),h=function(){function t(){a(this,t)}return u(t,[{key:"isCluster",get:function(){return this._pointsOfInterestIndices.length>1}},{key:"pointsOfInterest",get:function(){var t=this;return this._pointsOfInterestIndices.map((function(e){return t._pointsOfInterest[e]}))}}],[{key:"fromClusterPointsOfInterest",value:function(e,r){var n=new t;return n._pointsOfInterestIndices=e,n._pointsOfInterest=r,n}}]),t}();t.default=h})?n.apply(e,o):n)||(t.exports=i)},60344:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(35369),r(73796)],n=function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==a(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key,"string"),"symbol"===a(o)?o:String(o)),n)}var o}function i(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}
1function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var c;Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.HoursAndMinutes=void 0,r=(c=r)&&c.__esModule?c:{default:c};var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(o,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=u(t);if(e){var o=u(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}(o);function o(){return n(this,o),e.apply(this,arguments)}return i(o,[{key:"circaHours",value:function(){return this.minutes<30?this.hours:this.hours+1}},{key:"format",value:function(){var t=[];return this.hours&&t.push(this.hours+" "+(0,r.default)("Stunde|Stunden",this.hours)),this.minutes&&t.push(this.minutes+" "+(0,r.default)("Minuten")),t.join(" ")}}],[{key:"fromHoursMinutes",value:function(t,e){return(new o).set("hours",t).set("minutes",e)}}]),o}((0,e.Record)({hours:0,minutes:0}));t.HoursAndMinutes=l;var p=function(){function t(){n(this,t)}return i(t,[{key:"milisecondsToHoursAndMinutes",value:function(t){if(!t)return l.fromHoursMinutes(0,0);var e=Math.trunc(t/1e3),r=Math.trunc(e/60),n=Math.trunc(r/60),o=r%60;return l.fromHoursMinutes(n,o)}},{key:"metersToKilometers",value:function(t){return void 0===t?null:Math.floor(t/1e3)}}],[{key:"make",value:function(){return new t}}]),t}();t.default=p},void 0===(i=n.apply(e,o))||(t.exports=i)},73796:function(t,e){var r,n;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,r=function(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=function(){return t.split("|")};return(r>1?(e=n())[e.length-1]:n()[0]).replace("%s",r)}},void 0===(n=r.apply(e,[e]))||(t.exports=n)},82765:function(t,e,r){var n,o,i;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(73941)],void 0===(i="function"==typeof(n=function(t,e,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e=(n=e)&&n.__esModule?n:{default:n};t.default=function(t){var e=t.flagName,n=t.defaultEnable,o=void 0===n||n,i=t.children,a=(0,r.useConfig)()[e];return void 0===a&&(a=o),a?i:null}})?n.apply(e,o):n)||(t.exports=i)},96655:function(t,e,r){var n,o,i;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(69e3),r(81350),r(39528),r(73796),r(89151),r(60344),r(51219),r(38192),r(13912),r(60010),r(82765),r(18494),r(23904),r(11637),r(59308)],n=function(t,e,r,n,o,i,a,s,u,c,l,p,f,h,d,m,y){"use strict";function v(t){return t&&t.__esModule?t:{default:t}}function g(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(g=function(t){return t?r:e})(t)}function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function _(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function x(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
vendor: 1,500 bytes, line 1
1e%2?_(Object(r),!0).forEach((function(e){A(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function w(){return w=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},w.apply(this,arguments)}function O(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,C(n.key),n)}}function E(t,e){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},E(t,e)}function S(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=j(t);if(e){var o=j(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===b(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return P(t)}(this,r)}}function P(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}
1function j(t){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},j(t)}function A(t,e,r){return(e=C(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function C(t){var e=function(t,e){if("object"!==b(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===b(e)?e:String(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==b(t)&&"function"!=typeof t)return{default:t};var r=g(e);if(r&&r.has(t))return r.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var a=o?Object.getOwnPropertyDescriptor(t,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=t[i]}return n.default=t,r&&r.set(t,n),n}(e),r=v(r),n=v(n),o=v(o),i=v(i),s=v(s),u=v(u),l=v(l),f=v(f),h=v(h),m=v(m);var T=function(t){return e.default.createElement("svg",t,e.default.createElement("path",{d:"M16 1C7.7 1 1 7.7 1 16s6.7 15 15 15 15-6.7 15-15S24.3 1 16 1zm0 6.7c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5-2.5-1.1-2.5-2.5 1.1-2.5 2.5-2.5zM19.4 23c0 .4-.3.7-.7.7h-5.3c-.4 0-.7-.3-.7-.7v-1.5c0-.4.3-.7.7-.7h.7V17h-.7c-.4 0-.7-.3-.7-.7v-1.5c0-.4.3-.7.7-.7h3.9c.4 0 .7.3.7.7v6h.7c.4 0 .7.3.7.7V23z"}))};T.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"};var k=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&E(t,e)}(_,t);var v,g,b=S(_);function _(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,_);for(var n=arguments.length,o=new Array(n),h=0;h<n;h++)o[h]=arguments[h];return A(P(t=b.call.apply(b,[this].concat(o))),"state",{heading:"",description:"",headingGenerated:!1,descriptionGenerated:!1,isPrivate:void 0,relatedContent:null}),A(P(t),"heading",l.default.fromNameComponent("heading",P(t))),A(P(t),"description",l.default.fromNameComponent("description",P(t))),A(P(t),"headingGenerated",l.default.fromNameComponent("headingGenerated",P(t))),A(P(t),"descriptionGenerated",l.default.fromNameComponent("descriptionGenerated",P(t))),A(P(t),"isPrivate",l.default.fromNameComponent("isPrivate",P(t))),A(P(t),"relatedContent",l.default.fromNameComponent("relatedContent",P(t))),A(P(t),"renderMap",(function(n){var o=n.tour,s=t.props,l=t.state,h=l.heading,v=l.description;return l.isPrivate,e.default.createElement(y.NavigationState,{tour:o,modifyTourForSave:t.modifyTourForSave},e.default.createElement(r.default,w({},s,{classNames:"map-extended",onLoaded:function(t){if(o){var e=o.boundingBox,r=e.topLeft,n=e.bottomRight;t.jumpBounds(r,n)}}}),e.default.createElement(a.Navigation,{tour:o,onTourPlanned:t.onTourPlanned,debug:s.debug||!1},(function(r){return!r&&e.default.createElement(c.MapPoiZoomLimiter,null,(function(){return e.default.createElement(u.default,{onTourPlanned:t.onTourPlanned})}))}))),e.default.createElement("div",{className:"v-A_-maincol v-A_-maincol--mto-map lg:col-span-2 relative z-10 bg-skin-white background-color"},e.default.createElement(d.Sidecol,null,e.default.createElement("div",{className:"mto-form background-color"},e.default.createElement(f.default,{flagName:"relatedContent",defaultEnable:!1},e.default.createElement(p.FormItemCheckbox,{htmlFor:"mto-related-content"},(0,i.default)("Verkn\xfcpfter Artikel"),e.default.createElement("input",{className:"mto-form__input",value:t.relatedContent.get(),onChange:t.relatedContent.setFromEvent,name:"mto-related-content",id:"mto-related-content"}))),e.default.createElement(p.FormItem,{htmlFor:"mto-heading"},(0,i.default)("\xdcberschrift"),e.default.createElement("input",{className:"mto-form__input background-color text-color",value:h,onChange:t.updateHeading,name:"mto-heading",id:"mto-heading"})),e.default.createElement(p.FormItem,{htmlFor:"mto-description"},(0,i.default)("Beschreibung"),e.default.createElement("textarea",{className:"mto-form__textarea background-color text-color",value:v,onCh
1ange:t.updateDescription,name:"mto-description",id:"mto-description"})),e.default.createElement("div",{style:{float:"right"}},e.default.createElement(m.default,null)),e.default.createElement(f.default,{flagName:"privateSetting"},e.default.createElement("div",{className:"mto-form__item-checkbox background-color text-color"},e.default.createElement(p.FormItem,{htmlFor:"mto-private"},(0,i.default)("Privat"),e.default.createElement("input",{type:"checkbox",className:"mto-form__checkbox lool test-color",value:t.isPrivate.get(),onChange:t.isPrivate.checkFromEvent,name:"mto-private",id:"mto-private"})),t.isPrivate.get()&&e.default.createElement("div",{className:"mto-form__item-info"},e.default.createElement(T,{className:"mto-form__info-icon text-color"})," ",(0,i.default)("Private Touren k\xf6nnen nicht geteilt werden."))))))))})),A(P(t),"updateHeading",(function(e){t.setState(x(x({},t.heading.updateObject(e.target.value)),t.headingGenerated.updateObject(!1)))})),A(P(t),"updateDescription",(function(e){t.setState(x(x({},t.description.updateObject(e.target.value)),t.descriptionGenerated.updateObject(!1)))})),A(P(t),"modifyTourForSave",(function(e){return e.tour.heading=t.state.heading,e.tour.description=t.state.description,t.syncRelatedContent(e.tour),t.syncPrivateTag(e.tour),e})),A(P(t),"tourLoaded",(function(e){var r=e.tour;t.setState(x(x(x(x({},t.isPrivate.updateObject(r.tags&&r.tags.includes("private"))),t.relatedContent.updateObject(r.relatedContent&&r.relatedContent.id)),t.heading.updateObject(r.heading)),t.description.updateObject(r.description)))})),A(P(t),"onTourPlanned",(function(e){var r=e.waypoints[0].display,n=e.waypoints[e.waypoints.length-1].display,o=[],i=s.default.make().milisecondsToHoursAndMinutes(e.timeInMs).format();e.waypoints.map((function(t,r){0!=r&&r!=e.waypoints.length-1&&o.push(t.display)})),t.setState(x(x({},!t.headingGenerated.get()&&t.heading.get()?{}:x(x({},t.heading.updateObject("Von ".concat(r," nach ").concat(n))),t.headingGenerated.updateObject(!0))),function(){if(!t.descriptionGenerated.get()&&t.description.get())return{};var e="Von ".concat(r," nach ").concat(n," in ").concat(i);return o&&o.length>0&&o.map((function(t,r){0==r?1==o.length?e+=" mit Zwischenstopp ".concat(t,"."):e+=" mit Zwischenstopp ".concat(t,","):r==o.length-1?e+=" und ".concat(t,"."):r==o.length-2?e+=" ".concat(t," "):e+=" ".concat(t,",")})),x(x({},t.description.updateObject(e)),t.descriptionGenerated.updateObject(!0))}()))})),t}return v=_,(g=[{key:"render",value:function(){var t=this.props;return e.default.createElement(o.default,t,e.default.createElement(n.default,{id:t.id,onLoaded:this.tourLoaded},this.renderMap))}},{key:"syncRelatedContent",value:function(t){var e=this.relatedContent.get();e?t.relatedContent={id:e,type:this.props.relatedContentType}:delete t.relatedContent}},{key:"syncPrivateTag",value:function(t){var e=this.isPrivate.get();if(void 0!==e){var r=h.default.fromTagArray(t.tags);e?r.include("private"):r.remove("private")}}}])&&O(v.prototype,g),Object.defineProperty(v,"prototype",{writable:!1}),_}(e.default.Component);t.default=k},void 0===(i=n.apply(e,o))||(t.exports=i)},67901:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(73796),r(73941)],void 0===(i="function"==typeof(n=function(t,e,r,n){"use strict";function o(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(o=function(t){return t?r:e})(t)}var i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var o=t.id,i=(0,n.useConfig)(),a=(0,e.useCallback)((function(){i.onEditRequested&&i.onEditRequested({id:o})}),[i,o]);return e.default.createElement("span",{className:"mto-button mto-button--red mto-button--big mto-button--map-edit",onClick:a},e.default.createElement(s,null),e.default.createElement("span",{className:"mto-button__text"},(0,r.default)("Bearbeiten")))},e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=o(e);if(r&&r.has(t))return r.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var u=i?Object.getOwnPropertyDescriptor(t,s):null;u&&(u.get||u.set)?Object.defineProperty(n,s,u):n[s]=t[s]}return n.default=t,r&&r.set(t,n),n}(e),r=(i=r)&&i.__esModule?i:{default:i};var s=function(t){return e.default.createElement("svg",t,e.default.createElement("path",{d:"m18.2 5.8 8 8L8.8 31.2l-7.1.8c-1 .1-1.8-.7-1.7-1.7l.8-7.1L18.2 5.8zm12.9-1.2L27.3.8c-1.2-1.2-3.1-1.2-4.2 0l-3.5 3.5 8 8 3.5-3.5c1.2-1.1 1.2-3 0-4.2z"}))};s.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"
1currentColor"}})?n.apply(e,o):n)||(t.exports=i)},2477:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(30402)],void 0===(i="function"==typeof(n=function(t,e,r){"use strict";function n(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(n=function(t){return t?r:e})(t)}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var n=t.data,i=t.color,a=void 0===i?"#c43a31":i,s=t.heightLabel,u=void 0===s?"H\xf6henmeter":s,c=t.distanceLabel,l=void 0===c?"Gefahrene Kilometer":c,p=t.fontSize,f=void 0===p?15:p,h=t.fontColor,d=void 0===h?"#000000":h,m=t.fontFamily,y=void 0===m?"'Fira Sans', Arial, sans-serif":m,v=o((0,e.useState)("linear"),2),g=v[0];return v[1],e.default.createElement("div",{className:"background-color text-color"},e.default.createElement(e.default.Fragment,null,e.default.createElement(r.VictoryChart,{theme:r.VictoryTheme.material,padding:{top:10,bottom:60,left:10,right:90},minDomain:{x:0,y:0},animate:{duration:1500},width:500,containerComponent:e.default.createElement(r.VictoryContainer,{style:{pointerEvents:"auto",userSelect:"auto",touchAction:"auto"}})},e.default.createElement(r.VictoryAxis,{dependentAxis:!0,label:u,style:{axisLabel:{padding:60,fontSize:f,fill:d,fontFamily:y},tickLabels:{fontSize:f,fill:d,fontFamily:y}},orientation:"right",tickFormat:function(t){return"".concat(t," m")}}),e.default.createElement(r.VictoryAxis,{label:l,style:{axisLabel:{padding:40,fontSize:f,fill:d,fontFamily:y},tickLabels:{fontSize:f,fill:d,fontFamily:y}},tickFormat:function(t){return"".concat(Math.round(t/1e3)," km")}}),e.default.createElement(r.VictoryLine,{style:{data:{stroke:a},parent:{border:"1px solid #ccc"}},interpolation:g,data:n,x:"distance",y:"elevation"}))))},e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=n(e);if(r&&r.has(t))return r.get(t);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var u=i?Object.getOwnPropertyDescriptor(t,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=t[s]}return o.default=t,r&&r.set(t,o),o}(e)})?n.apply(e,o):n)||(t.exports=i)},10731:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(73796)],void 0===(i="function"==typeof(n=function(t,e,r){"use strict";function n(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(n=function(t){return t?r:e})(t)}var o;
vendor: 4,213 bytes, line 1
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=n(e);if(r&&r.has(t))return r.get(t);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var u=i?Object.getOwnPropertyDescriptor(t,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=t[s]}return o.default=t,r&&r.set(t,o),o}(e),r=(o=r)&&o.__esModule?o:{default:o};var i=function(t){return e.default.createElement("svg",t,e.default.createElement("path",{d:"M7.5 2.5.1 9.9c-.2.2-.2.4 0 .6l1.4 1.4c.2.2.4.2.6 0l7.4-7.4 1.1 1.1c.5.5 1.4.2 1.4-.6V.8c0-.4-.4-.8-.8-.8H7c-.8 0-1.1.9-.6 1.4l1.1 1.1z"}))};i.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",fill:"currentColor"};t.default=function(t){var n=t.onClick;return e.default.createElement("span",{className:"mto-button mto-button--red mto-button--big mto-button--map-enable",onClick:n},e.default.createElement(i,null),e.default.createElement("span",{className:"mto-button__text"},(0,r.default)("Karte vergr\xf6ssern")))}})?n.apply(e,o):n)||(t.exports=i)},83139:function(t,r,n){var o,i,a;function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[r,n(73941),n(8156),n(73796)],o=function(t,r,n,o){"use strict";function i(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(i=function(t){return t?r:e})(t)}function a(){a=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function p(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new j(o||[]);return n(a,"_invoke",{value:O(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var h={};function d(){}function m(){}function y(){}var v={};l(v,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(A([])));b&&b!==e&&r.call(b,i)&&(v=b);var _=y.prototype=d.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,u){var c=f(t[n],t,i);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==s(p)&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){o("next",t,a,u)}),(function(t){o("throw",t,a,u)})):e.resolve(p).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,u)}))}u(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function O(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=f(n,t.iterator,e.arg);
vendor: 4,556 bytes, line 1
1if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function A(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return m.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:m,configurable:!0}),m.displayName=l(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,c,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},x(w.prototype),l(w.prototype,u,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(_),l(_,c,"Generator"),l(_,i,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=A,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function u(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){u(i,n,o,a,s,"next",t)}function s(t){u(i,n,o,a,s,"throw",t)}a(void 0)}))}}function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},l.apply(this,arguments)}function p(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function f(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==s(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===s(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var d;Object.defineProperty(t,"__esModule",{value:!0}),t.Error=v,t.ErrorProvider=function(t){var e=t.children,r=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,n.useState)(null),2),o=r[0],i=r[1],a=(0,n.useCallback)((function(t,e){return i(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?p(Object(r),!0).forEach((function(e){f(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({title:t,message:e},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}))})),s=(0,n.useCallback)((function(){return i(null)}));return n.default.createElement(y.Provider,{value:{error:o,displayError:a}},o&&n.default.createElement(v,l({},o,{onClose:s})),e)},t.useError=g,t.withErrors=function(t){return function(e){var r,o=g();return n.default.createElement(t,l({},e,o),null!==(r=e.children)&&void 0!==r?r:null)}},n=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==s(t)&&"function"!=typeof t)return{default:t};var r=i(e);if(r&&r.has(t))return r.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var u=o?Object.getOwnPropertyDescriptor(t,a):null;u&&(u.get||u.set)?Object.defineProperty(n,a,u):n[a]=t[a]}return n.default=t,r&&r.set(t,n),n}(n),o=(d=o)&&d.__esModule?d:{default:d};var m=function(t){return n.default.createElement("svg",t,n.default.createElement("path",{d:"M16 1C7.7 1 1 7.7 1 16s6.7 15 15 15 15-6.7 15-15S24.3 1 16 1zm0 6.7c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5-2.5-1.1-2.5-2.5 1.1-2.5 2.5-2.5zM19.4 23c0 .4-.3.7-.7.7h-5.3c-.4 0-.7-.3-.7-.7v-1.5c0-.4.3-.7.7-.7h.7V17h-.7c-.4 0-.7-.3-.7-.7v-1.5c0-.4.3-.7.7-.7h3.9c.4 0 .7.3.7.7v6h.7c.4 0 .7.3.7.7V23z"}))};m.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"};var y=n.default.createContext();function v(t){var e=t.title,r=t.message,i=t.content,a=void 0===i?null:i,s=t.button,u=void 0===s?{}:s,c=t.children,l=t.onClose,p=void 0!==u.action?function(){return u.action({close:l})}:l;return n.default.createElement("div",{className:"modal-backdrop"},n.default.createElement("div",{className:"modal-content error"},n.default.createElement("a",{onClick:l},n.default.createElement("div",{className:"icon-close-white"})),n.default.createElement("div",{class:"mto-error__title"},e),n.default.createElement("div",{class:"mto-error__content"},n.default.createElement("div",null,n.default.createElement(m,{className:"mto-error__info-icon"}),r),c&&n.default.createElement("div",null,c),a,n.default.createElement("a",{className:"mto-button mto-error__button mto-button--big mto-button--red",onClick:p},u.text||(0,o.default)("Schlie\xdfen")))))}function g(){var t=(0,r.useConfig)(),o=(0,n.useContext)(y).displayError,i=(0,n.useCallback)(c(a().mark((function r(){return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!t.onError){r.next=3;break}return t.onError(b(e)),r.abrupt("return");case 3:case"end":return r.stop()}}),r)}))),[t.onError]),s=(0,n.useCallback)(function(){var e=c(a().mark((function e(r){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r();case 3:e.next=12;break;case 5:if(e.prev=5,e.t0=e.catch(0),console.log("error",b(e.t0)),!t.onError){e.next=11;break}return t.onError(b(e.t0)),e.abrupt("return");case 11:throw e.t0;case 12:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t){return e.apply(this,arguments)}}(),[t.onError]);return{onError:i,catchErrors:s,displayError:o}}function b(t){var e;return null!==(e=t.response)&&void 0!==e&&e.data?JSON.parse(t.response.data):t}},void 0===(a=o.apply(r,i))||(t.exports=a)},60010:function(t,e,r){var n,o,i;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(73796),r(94184)],void 0===(i="function"==typeof(n=function(t,e,r,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function s(t){var r=t.children;return e.default.createElement("div",{className:"mto-form__item background-color"},r)}
1function u(t){var r=t.htmlFor,o=t.children,a=t.extraClasses,s=void 0===a?[]:a;return e.default.createElement("label",{className:n.default.apply(void 0,["mto-form__label"].concat(i(s))),htmlFor:r},o)}Object.defineProperty(t,"__esModule",{value:!0}),t.FormItem=function(t){var r=t.htmlFor,n=t.children;return e.default.createElement(s,null,e.default.createElement(u,{htmlFor:r},n[0]),n[1])},t.FormItemCheckbox=function(t){var r=t.htmlFor,n=t.children;return e.default.createElement(s,null,n[1],e.default.createElement(u,{htmlFor:r,extraClasses:["mto-form__label--checkbox"]},n[0]))},e=o(e),r=o(r),n=o(n)})?n.apply(e,o):n)||(t.exports=i)},33786:function(t,e,r){var n,o,i;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(45697),r(8156),r(85136),r(12739)],n=function(t,e,r,n,o){"use strict";function i(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(i=function(t){return t?r:e})(t)}function a(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==s(t)&&"function"!=typeof t)return{default:t};var r=i(e);if(r&&r.has(t))return r.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var u=o?Object.getOwnPropertyDescriptor(t,a):null;u&&(u.get||u.set)?Object.defineProperty(n,a,u):n[a]=t[a]}return n.default=t,r&&r.set(t,n),n}function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function p(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==s(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===s(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var f;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e=a(e),r=a(r),o=(f=o)&&f.__esModule?f:{default:f};var h={className:e.string,style:e.object,container:e.object,label:e.string};function d(t){var e=(0,n.useMap)().current,o=(0,r.useMemo)((function(){return function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){p(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({position:"absolute"},t.style)}),[t.style]),i=u((0,r.useState)(!1),2),a=i[0],s=i[1],c=t.className,f=t.label,h=a?"shrink":"fullscreen";(0,r.useEffect)((function(){var t=e.getContainer(),r=function(e){s(document.fullscreenElement===t)};return t.addEventListener("fullscreenchange",r),function(){return t.removeEventListener("fullscreenchange",r)}}));var d=function(){if(a)document.exitFullscreen();else{var t=e.getContainer();(t.requestFullscreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullscreen).call(t)}};return r.createElement("div",{style:o,className:c},r.createElement("div",{className:"mapboxgl-ctrl mapboxgl-ctrl-group"},r.createElement("button",{key:h,className:"mapboxgl-ctrl-icon mapboxgl-ctrl-".concat(h),type:"button",title:f,onClick:function(){t.onClick?t.onClick(d):d()}},r.createElement("span",{className:"mapboxgl-ctrl-icon","aria-hidden":"true"}))))}d.propTypes=h,d.defaultProps={className:"",container:null,label:"Toggle fullscreen"};var m=r.memo(d);t.default=m},void 0===(i=n.apply(e,o))||(t.exports=i)},86647:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(33786),r(73941)],n=function(t,e,r,n){"use strict";function o(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(o=function(t){return t?r:e})(t)}function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i.apply(this,arguments)}var s;Object.defineProperty(t,"__esModule",{value:!0}),t.FullscreenControlConfigControlled=function(t){var o=(0,n.useConfig)();return e.createElement(r.default,i({},t,{onClick:function(t){o.canUseFullscreen&&!o.canUseFullscreen()||t()}}))},e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=o(e);if(r&&r.has(t))return r.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var u=i?Object.getOwnPropertyDescriptor(t,s):null;u&&(u.get||u.set)?Object.defineProperty(n,s,u):n[s]=t[s]}return n.default=t,r&&r.set(t,n),n}(e),r=(s=r)&&s.__esModule?s:{default:s}},void 0===(i=n.apply(e,o))||(t.exports=i)},63675:function(t,e,r){var n,o,i;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(95760),r(96932),r(30845),r(43983),r(96486),r(73796),r(94184),r(83139),r(86111)],n=function(t,e,r,n,o,i,a,s,u,c,l){"use strict";function p(t){return t&&t.__esModule?t:{default:t}}function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function h(){return h=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},h.apply(this,arguments)}function d(t){return function(t){if(Array.isArray(t))return v(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||y(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||y(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t,e){if(t){if("string"==typeof t)return v(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(t,e):void 0}}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function g(){g=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function c(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),s=new j(o||[]);return n(a,"_invoke",{value:O(t,r,s)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var p={};function h(){}function d(){}function m(){}var y={};u(y,i,(function(){return this}));var v=Object.getPrototypeOf,b=v&&v(v(A([])));b&&b!==e&&r.call(b,i)&&(y=b);var _=m.prototype=h.prototype=Object.create(y);function x(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,s){var u=l(t[n],t,i);if("throw"!==u.type){var c=u.arg,p=c.value;return p&&"object"==f(p)&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(p).then((function(t){c.value=t,a(c)}),(function(t){return o("throw",t,a,s)}))}s(u.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function O(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(t,e,r);
vendor: 5,089 bytes, line 1
1if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,p;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function A(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=m,n(_,"constructor",{value:m,configurable:!0}),n(m,"constructor",{value:d,configurable:!0}),d.displayName=u(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,s,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},x(w.prototype),u(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(_),u(_,s,"Generator"),u(_,i,(function(){return this})),u(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=A,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}function b(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function _(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){b(i,n,o,a,s,"next",t)}function s(t){b(i,n,o,a,s,"throw",t)}a(void 0)}))}}function x(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,j(n.key),n)}}
1function w(t,e){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},w(t,e)}function O(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=S(t);if(e){var o=S(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return E(t)}(this,r)}}function E(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function S(t){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},S(t)}function P(t,e,r){return(e=j(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function j(t){var e=function(t,e){if("object"!==f(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===f(e)?e:String(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e=p(e),r=p(r),n=p(n),o=p(o),i=p(i),a=p(a),s=p(s),u=p(u);var A=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&w(t,e)}(f,t);var n,c,p=O(f);function f(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),P(E(e=p.call(this,t)),"state",{currentOptions:null}),P(E(e),"valuePropToAsyncSelectValue",(0,o.default)((function(t,e){return t?{label:t.name,value:t.name}:null}))),P(E(e),"propToSpreadObject",(0,o.default)((function(t,e){return t?P({},e,t):{}}))),P(E(e),"loadOptionsWithoutReturningPromise",(function(){var t;(t=e).loadOptions.apply(t,arguments)})),P(E(e),"loadOptions",function(){var t=_(g().mark((function t(r,n){var o,i;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r&&!(r.length<3)){t.next=2;break}return t.abrupt("return",[]);case 2:return o=function(){var t=_(g().mark((function t(){var n,o,i;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.props,o=n.around,i=n.types,!o){t.next=7;break}return t.next=4,e.props.api.queryToGeolocationAroundPoint({query:r,around:o,types:i});case 4:case 9:return t.abrupt("return",t.sent);case 7:return t.next=9,e.props.api.queryToGeolocation({query:r,types:i});case 10:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),i=function(){var t=_(g().mark((function t(){return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o();case 2:return t.abrupt("return",t.sent.map((function(t){return{label:e.nameFromHit(t),value:e.nameFromHit(t),hit:t}})));case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),t.prev=4,t.t0=n,t.next=8,i();case 8:return t.t1=t.sent,t.next=11,(0,t.t0)(t.t1);case 11:t.next=19;break;case 13:if(t.prev=13,t.t2=t.catch(4),!(t.t2 instanceof l.NetworkError)){t.next=18;break}return e.props.displayError((0,s.default)("Verbindungsfehler"),(0,s.default)("Es gab einen Netzwerkfehler bei der Abfrage f\xfcr ".concat(r))),t.abrupt("return");case 18:e.props.onError(t.t2);case 19:e.triggerRerender();case 20:case"end":return t.stop()}}
1),t,null,[[4,13]])})));return function(e,r){return t.apply(this,arguments)}}()),P(E(e),"onSelect",(function(t){if(t){var r=t.hit,n=(r.meta,r.center),o=r.boundingBox;r&&e.props.onSelect({longitude:n.coordinates[0],latitude:n.coordinates[1],name:e.nameFromHit(r),meta:r.meta,boundingBox:e.boundingBoxToLongitudeLatitudeCoordinates(o)})}else e.props.clear&&e.props.clear()})),P(E(e),"boundingBoxToLongitudeLatitudeCoordinates",(function(t){if(t)return{topLeft:e.arrayCoordinateToLongitudeLatitude(t.topLeft),bottomRight:e.arrayCoordinateToLongitudeLatitude(t.bottomRight)}})),P(E(e),"arrayCoordinateToLongitudeLatitude",(function(t){var e=m(t,2);return{longitude:e[0],latitude:e[1]}})),e.debouncedLoadOptions=a.default.debounce(e.loadOptionsWithoutReturningPromise,300),e}return n=f,(c=[{key:"render",value:function(){var t=this.propToSpreadObject(this.valuePropToAsyncSelectValue(this.props.value),"value"),n=this.propToSpreadObject(this.props.placeholder,"placeholder"),o={};this.props.clear&&(o.isClearable=!0);var i=this.props.classNames||[];return e.default.createElement(r.default,h({},t,n,o,{noOptionsMessage:function(){return null},cacheOptions:this.state.currentOptions,components:{DropdownIndicator:this.null,IndicatorSeparator:this.null},defaultOptions:[],loadOptions:this.debouncedLoadOptions,onChange:this.onSelect,className:u.default.apply(void 0,["react-select-container"].concat(d(i))),classNamePrefix:"react-select"}))}},{key:"null",value:function(){return null}},{key:"triggerRerender",value:function(t){this.setState({currentOptions:t})}},{key:"nameFromHit",value:function(t){return i.default.fromName(t.meta.name).city(t.meta.city).postcode(t.meta.postcode).country(t.meta.country).toString()}}])&&x(n.prototype,c),Object.defineProperty(n,"prototype",{writable:!1}),f}(e.default.Component),C=(0,c.withErrors)((0,n.default)(A));t.default=C},void 0===(i=n.apply(e,o))||(t.exports=i)},14903:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(73941),r(73796),r(96932),r(8156),r(83139)],n=function(t,e,r,n,o,i){"use strict";function s(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(s=function(t){return t?r:e})(t)}function u(){u=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function p(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new j(o||[]);return n(a,"_invoke",{value:O(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var h={};function d(){}function m(){}function y(){}var v={};l(v,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(A([])));b&&b!==e&&r.call(b,i)&&(v=b);var _=y.prototype=d.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,s,u){var c=f(t[n],t,i);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==a(p)&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){o("next",t,s,u)}),(function(t){o("throw",t,s,u)})):e.resolve(p).then((function(t){l.value=t,s(l)}),(function(t){return o("throw",t,s,u)}))}u(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function O(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);
vendor: 5,085 bytes, line 1
1if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function A(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return m.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:m,configurable:!0}),m.displayName=l(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,c,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},x(w.prototype),l(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(_),l(_,c,"Generator"),l(_,i,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=A,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function c(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}
1finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return p(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var f;Object.defineProperty(t,"__esModule",{value:!0}),t.GpxUpload=function(t){var a=t.onToursPlanned,s=(0,n.useApi)(),p=l((0,o.useState)(!1),2),f=p[0],d=p[1],m=l((0,o.useState)(null),2),y=m[0],v=m[1],g=(0,i.useError)().displayError;if(!(0,e.useConfig)().allowGpxUpload)return null;var b=function(){var t,e=(t=u().mark((function t(){var e,n,o,i;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,s.toursFromGpx({gpx:y});case 3:e=t.sent,t.next=11;break;case 6:throw t.prev=6,t.t0=t.catch(0),d(!1),g((0,r.default)("Fehler beim Mapmatching"),(0,r.default)("Fehler w\xe4hren dem mapmatching der GPX Datei: %s",(null===t.t0||void 0===t.t0||null===(n=t.t0.response)||void 0===n||null===(o=n.body)||void 0===o||null===(i=o.error)||void 0===i?void 0:i.message)||t.t0.message)),t.t0;case 11:if(a){t.next=14;break}return console.log("missing onToursPlanned prop!"),t.abrupt("return");case 14:return t.next=16,a(e);case 16:d(!1);case 17:case"end":return t.stop()}}),t,null,[[0,6]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){c(i,n,o,a,s,"next",t)}function s(t){c(i,n,o,a,s,"throw",t)}a(void 0)}))});return function(){return e.apply(this,arguments)}}();return o.default.createElement(o.default.Fragment,null,o.default.createElement("span",{className:"mto-button mto-button--red mto-button--big mto-button--map-gpx",onClick:function(){return d(!0)}},o.default.createElement(h,null),o.default.createElement("span",{className:"mto-button__text"},(0,r.default)("GPX Upload"))),f&&o.default.createElement("div",{className:"modal-backdrop"},o.default.createElement("div",{className:"modal-content"},o.default.createElement("a",{onClick:function(){return d(!1)}},o.default.createElement("div",{className:"icon-close-white"})),o.default.createElement("input",{name:"gpx-file",type:"file",onChange:function(t){return v(t.target.files[0])}}),o.default.createElement("a",{className:"mto-button mto-button--red mto-button--big",onClick:b},(0,r.default)("Hochladen")))))},r=(f=r)&&f.__esModule?f:{default:f},o=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=s(e);if(r&&r.has(t))return r.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var u=o?Object.getOwnPropertyDescriptor(t,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=t[i]}return n.default=t,r&&r.set(t,n),n}(o);var h=function(t){return o.default.createElement("svg",t,o.default.createElement("path",{d:"M15.4 6.8h-2.9v13.4c0 .5-.4.8-.8.8h-.9c-.5 0-.8-.4-.8-.8V6.8H6.9c-.7 0-1.1-.9-.6-1.4L10.5.3c.3-.3.9-.3 1.2 0l4.3 5c.5.5.1 1.5-.6 1.5zM25.7 26.7l-4.2 5.1c-.3.3-.9.3-1.2 0L16 26.7c-.5-.5-.2-1.4.6-1.4h2.9V11.8c0-.5.4-.8.8-.8h.9c.5 0 .8.4.8.8v13.4h2.9c.9 0 1.3 1 .8 1.5z"}))};h.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"}},void 0===(i=n.apply(e,o))||(t.exports=i)},29205:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(73796),r(96932),r(73941),r(59308)],n=function(t,e,r,n,o,i){"use strict";function s(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(s=function(t){return t?r:e})(t)}function u(){u=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function p(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new j(o||[]);return n(a,"_invoke",{value:O(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var h={};function d(){}function m(){}function y(){}var v={};l(v,i,(function(){return this}));
vendor: 6,140 bytes, line 1
1var g=Object.getPrototypeOf,b=g&&g(g(A([])));b&&b!==e&&r.call(b,i)&&(v=b);var _=y.prototype=d.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,s,u){var c=f(t[n],t,i);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==a(p)&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){o("next",t,s,u)}),(function(t){o("throw",t,s,u)})):e.resolve(p).then((function(t){l.value=t,s(l)}),(function(t){return o("throw",t,s,u)}))}u(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function O(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function A(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return m.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:m,configurable:!0}),m.displayName=l(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,c,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},x(w.prototype),l(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(_),l(_,c,"Generator"),l(_,i,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=A,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function c(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){c(i,n,o,a,s,"next",t)}function s(t){c(i,n,o,a,s,"throw",t)}a(void 0)}))}}var p;
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var a,s=(0,i.useNavigationState)().tourId,c=(0,n.useApi)(),p=(0,o.useConfig)(),h=(0,e.useCallback)(l(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!p.onGpxExport){t.next=3;break}return t.next=3,p.onGpxExport({id:s});case 3:return t.next=5,c.gpxForTour({id:s});case 5:case"end":return t.stop()}}),t)}))),[c,s,p.onGpxExport]);return s&&(null===(a=p.allowGpxExport)||void 0===a||a)?e.default.createElement("span",{className:"mto-button mto-button--red mto-button--big mto-button--map-gpx",onClick:h},e.default.createElement(f,null),e.default.createElement("span",{className:"mto-button__text"},(0,r.default)("GPX Export"))):null},e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=s(e);if(r&&r.has(t))return r.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var u=o?Object.getOwnPropertyDescriptor(t,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=t[i]}return n.default=t,r&&r.set(t,n),n}(e),r=(p=r)&&p.__esModule?p:{default:p};var f=function(t){return e.default.createElement("svg",t,e.default.createElement("path",{d:"m18.2 5.8 8 8L8.8 31.2l-7.1.8c-1 .1-1.8-.7-1.7-1.7l.8-7.1L18.2 5.8zm12.9-1.2L27.3.8c-1.2-1.2-3.1-1.2-4.2 0l-3.5 3.5 8 8 3.5-3.5c1.2-1.1 1.2-3 0-4.2z"}))};f.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"}},void 0===(i=n.apply(e,o))||(t.exports=i)},43821:function(t,e,r){var n,o,i;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156)],void 0===(i="function"==typeof(n=function(t,e){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Loading=function(){return e.default.createElement("svg",{className:"mto-spinner",viewBox:"0 0 50 50"},e.default.createElement("circle",{className:"mto-spinner-path",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"5"}))},e=(r=e)&&r.__esModule?r:{default:r}})?n.apply(e,o):n)||(t.exports=i)},82555:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(85136),r(94184),r(47571)],n=function(t,e,r,n,o){"use strict";function i(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(i=function(t){return t?r:e})(t)}function s(){return s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},s.apply(this,arguments)}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var l;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var i=u((0,e.useState)(!1),2),a=i[0],c=i[1],l=t.className,p=t.longitude,f=t.latitude,h=(t.description,t.children),d=t.symbol,m=(0,o.useMapEvents)(),y=function e(r){var n,o;null==r||null===(n=r.preventDefault)||void 0===n||n.call(r),null==r||null===(o=r.stopPropagation)||void 0===o||o.call(r);var i=t.onClose,s=a;c(!1),s&&i&&i({closePopup:e})};return(0,e.useEffect)((function(){return m.onClick(y),function(){return m.removeOnClick(y)}}),[y]),e.default.createElement(e.default.Fragment,null,e.default.createElement(r.Marker,s({},t,{anchor:"bottom",onClick:function(e){var r,n;null==e||null===(r=e.preventDefault)||void 0===r||r.call(e),null==e||null===(n=e.stopPropagation)||void 0===n||n.call(e),t.onClick?t.onClick(t,m):function(){var e=t.onOpen,r=t.onClose,n=!a;c(n),n&&e&&e({closePopup:y}),!n&&r&&r({closePopup:y})}()}}),d),a&&e.default.createElement(r.Popup,{latitude:f,longitude:p,offset:[0,-32],maxWidth:500,className:(0,n.default)("popup",l),closeButton:!1,closeOnClick:!1,onClose:y,anchor:"bottom"},e.default.createElement("div",null,h({close:y}))))},e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=i(e);if(r&&r.has(t))return r.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var u=o?Object.getOwnPropertyDescriptor(t,s):null;u&&(u.get||u.set)?Object.defineProperty(n,s,u):n[s]=t[s]}return n.default=t,r&&r.set(t,n),n}
1(e),n=(l=n)&&l.__esModule?l:{default:l}},void 0===(i=n.apply(e,o))||(t.exports=i)},69e3:function(t,e,r){var n,o,i;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(86647),r(85136),r(35369),r(82765),r(47571),r(12739),r(94184)],n=function(t,e,r,n,o,i,a,s,u){"use strict";function c(t){return t&&t.__esModule?t:{default:t}}function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(l=function(t){return t?r:e})(t)}function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach((function(e){b(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function d(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,_(n.key),n)}}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=g(t);if(e){var o=g(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===p(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return v(t)}(this,r)}}function v(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}function b(t,e,r){return(e=_(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _(t){var e=function(t,e){if("object"!==p(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===p(e)?e:String(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==p(t)&&"function"!=typeof t)return{default:t};var r=l(e);if(r&&r.has(t))return r.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var a=o?Object.getOwnPropertyDescriptor(t,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=t[i]}return n.default=t,r&&r.set(t,n),n}(e),n=c(n),i=c(i),s=c(s),u=c(u);var x={longitude:10.419444,latitude:51.166389,zoom:5.2},w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}(l,t);var o,s,c=y(l);function l(t){var o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),b(v(o=c.call(this,t)),"jumpTo",(function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;o.map.flyTo({center:[t,e],zoom:r})})),b(v(o),"jumpBounds",(function(t,e){o.map.fitBounds([[t.longitude,e.latitude],[e.longitude,t.latitude]],{padding:80})})),b(v(o),"setBounds",(function(t,e){o.map.fitBounds([[t.longitude,e.latitude],[e.longitude,t.latitude]],{padding:80,animate:!1})}
1)),b(v(o),"onClick",(function(t){var e;if(t.preventDefault(),!t.rightButton){var r=[t.lngLat.lng,t.lngLat.lat],n=r[0],i=r[1];if("string"==typeof t.originalEvent.target.className&&null!==(e=t.originalEvent.target.className)&&void 0!==e&&e.includes("mapboxgl-canvas"))return t.originalEvent.stopPropagation(),o.clickReceivers.forEach((function(e){return e(h(h({},t),{},{longitude:n,latitude:i}))})),!1}})),b(v(o),"onContextMenu",(function(t){var e,r,n,i;t.preventDefault();var a=[t.lngLat.lng,t.lngLat.lat],s=a[0],u=a[1];if(null!==(e=t.originalEvent.target)&&void 0!==e&&null!==(r=e.className)&&void 0!==r&&r.includes&&null!==(n=t.originalEvent.target)&&void 0!==n&&null!==(i=n.className)&&void 0!==i&&i.includes("mapboxgl-canvas"))return t.originalEvent.stopPropagation(),o.contextMenuReceivers.forEach((function(e){return e(h(h({},t),{},{longitude:s,latitude:u}))})),!1})),b(v(o),"registerClickReceiver",(function(t){o.clickReceivers.includes(t)||o.clickReceivers.push(t)})),b(v(o),"removeClickReceiver",(function(t){var e=o.clickReceivers.indexOf(t);-1!==e&&o.clickReceivers.splice(e,1)})),b(v(o),"registerContextMenu",(function(t){o.contextMenuReceivers.includes(t)||o.contextMenuReceivers.push(t)})),b(v(o),"removeContextMenu",(function(t){var e=o.contextMenuReceivers.indexOf(t);-1!==e&&o.contextMenuReceivers.splice(e,1)})),b(v(o),"onLoad",(function(t){var e=o.props.onLoaded;e&&e(v(o),t.target)})),b(v(o),"renderReactMapGl",(function(){var t=o.props.disableFullscreen,s=void 0!==o.props.inactive&&o.props.inactive;return e.createElement(n.default,{initialViewState:x,className:"map-component",doubleClickZoom:!s,ref:o.mapRef,touchZoom:!s,touchRotate:!s,keyboard:!s,scrollZoom:!s,dragPan:!s,dragRotate:!1,onContextMenu:o.onContextMenu,onLoad:o.onLoad,onClick:o.onClick,mapStyle:"https://maps.promobil.de/styles/6eb3236c-e4e7-44cb-ad2e-093a1c7881d1/style.json"},e.createElement(a.ProvideMapEvents,{mapEvents:o.mapEvents},o.props.children,!t&&e.createElement(i.default,{flagName:"enableFullscreen"},e.createElement(r.FullscreenControlConfigControlled,{className:"mapbox-control-button",style:{right:15,bottom:15},label:"Vollbild umschalten"}))))})),o.contextMenuReceivers=[],o.clickReceivers=[],o.mapRef=e.createRef(),o.containerRef=e.createRef(),o.mapEvents={jumpTo:o.jumpTo,setBounds:o.setBounds,jumpBounds:o.jumpBounds,onClick:o.registerClickReceiver,removeOnClick:o.removeClickReceiver,onContextMenu:o.registerContextMenu,removeOnContextMenu:o.removeContextMenu},o}return o=l,(s=[{key:"componentDidMount",value:function(){var t=this;this.resizeObserver=new ResizeObserver((function(){var e;return null===(e=t.map)||void 0===e?void 0:e.resize()})),this.resizeObserver.observe(this.containerRef.current)}},{key:"componentWillUnmount",value:function(){this.resizeObserver.unobserve(this.containerRef.current)}},{key:"map",get:function(){return this.mapRef.current}},{key:"render",value:function(){return e.createElement("div",{className:(0,u.default)("map-container",this.props.classNames),ref:this.containerRef,style:{width:"100%",height:"100%"}},this.renderReactMapGl(),e.createElement("div",{className:"map-container-meta"},e.createElement("span",null,"Powered by ",e.createElement("a",{href:"https://kurviger.com",target:"_blank"},"Kurviger"))))}}])&&d(o.prototype,s),Object.defineProperty(o,"prototype",{writable:!1}),l}(e.Component);t.default=w},void 0===(i=n.apply(e,o))||(t.exports=i)},39528:function(t,e,r){var n,o,i;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(83139),r(96932),r(73941)],void 0===(i="function"==typeof(n=function(t,e,r,n,o){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var i=t.apiUrl,a=(t.config,t.children);return e.default.createElement(r.ErrorProvider,null,e.default.createElement(n.ProvideApi,{apiUrl:i},e.default.createElement(o.ProvideConfig,{config:t},a)))},e=(i=e)&&i.__esModule?i:{default:i}})?n.apply(e,o):n)||(t.exports=i)},40904:function(t,e,r){var n,o,i;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(85136)],void 0===(i="function"==typeof(n=function(t,e,r){"use strict";var n;
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var n={type:"FeatureCollection",features:t.boxes.map((function(t){return function(t){var e=t._southWest,r=t._northEast;return{type:"Feature",properties:{},geometry:{type:"LineString",coordinates:[[e.lng,e.lat],[r.lng,e.lat],[r.lng,r.lat],[e.lng,r.lat],[e.lng,e.lat]]}}}(t)}))};return e.default.createElement(r.Source,{id:"bounding-boxes",type:"geojson",data:n},e.default.createElement(r.Layer,{type:"line",source:"bounding-boxes",layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":"#888","line-width":8}}))},e=(n=e)&&n.__esModule?n:{default:n}})?n.apply(e,o):n)||(t.exports=i)},11637:function(t,e,r){var n,o,i;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(73796),r(59308)],void 0===(i="function"==typeof(n=function(t,e,r,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var t=(0,n.useNavigationState)(),o=t.tour,i=t.onSave;return o?e.default.createElement("div",{className:"mto-tourplaner__button"},e.default.createElement("a",{className:"mto-button mto-button--big mto-button--red",onClick:i},(0,r.default)("Speichern"))):null},e=o(e),r=o(r)})?n.apply(e,o):n)||(t.exports=i)},87910:function(t,e,r){var n,o,i;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(73796),r(82765),r(73941)],void 0===(i="function"==typeof(n=function(t,e,r,n,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var n=t.tour,i=(0,o.useConfig)().frontendLinkForTour;return i?e.default.createElement("div",{className:"mto-tourplaner__button"},e.default.createElement("a",{className:"mto-button mto-button--big mto-button--green",href:i(n)},(0,r.default)("Anzeigen"))):null},e=i(e),r=i(r)})?n.apply(e,o):n)||(t.exports=i)},89151:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(28022),r(71430),r(60395),r(29032),r(37166),r(33762),r(72376),r(53905),r(35369),r(60534),r(94184),r(94249),r(96932),r(47571),r(73941),r(83139),r(59308),r(87910),r(23270),r(21856),r(73796),r(87437),r(86111),r(14903)],n=function(t,e,r,n,o,i,s,u,c,l,p,f,h,d,m,y,v,g,b,_,x,w,O,E,S,P){"use strict";function j(t){return t&&t.__esModule?t:{default:t}}function A(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(A=function(t){return t?r:e})(t)}function C(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=A(e);if(r&&r.has(t))return r.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var s=o?Object.getOwnPropertyDescriptor(t,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=t[i]}return n.default=t,r&&r.set(t,n),n}function T(){T=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),s=new P(o||[]);return n(a,"_invoke",{value:w(t,r,s)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var f={};function h(){}function d(){}function m(){}var y={};c(y,i,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(j([])));g&&g!==e&&r.call(g,i)&&(y=g);var b=m.prototype=h.prototype=Object.create(y);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function o(n,i,s,u){var c=p(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==a(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,s,u)}),(function(t){o("throw",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return o("throw",t,s,u)}))}u(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function w(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=p(t,e,r);
vendor: 5,280 bytes, line 1
1if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function O(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=p(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return d.prototype=m,n(b,"constructor",{value:m,configurable:!0}),n(m,"constructor",{value:d,configurable:!0}),d.displayName=c(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},_(x.prototype),c(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(b),c(b,u,"Generator"),c(b,i,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=j,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function k(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function M(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){k(i,n,o,a,s,"next",t)}function s(t){k(i,n,o,a,s,"throw",t)}a(void 0)}))}}function I(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}
1finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return D(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?D(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),t.Navigation=function(t){var o=(0,b.useNavigationState)(),i=o.waypoints,a=o.setWaypoints,h=o.tour,v=o.saving,x=o.setTour,j=(o.setSaving,o.previousTourId),A=I((0,e.useState)(null),2),C=A[0],k=A[1],D=I((0,e.useState)(null),2),L=D[0],R=D[1],z=(0,m.useApi)(),N=(0,y.useMapEvents)(),F=(0,g.useError)(),B=F.displayError,V=F.onError,U=!!C||!!L,q=(0,e.useCallback)((function(){k(null),R(null)}),[]),$=(0,e.useCallback)((function(){U&&q()}),[U]),G=(0,e.useCallback)((function(t){var e=t.longitude,r=t.latitude;U&&q(),k(d.Waypoint.fromLongitudeLatitudeName(e,r,""))}),[U,q]);(0,e.useEffect)((function(){return N.onClick($),N.onContextMenu(G),function(){N.removeOnClick($),N.removeOnContextMenu(G)}}),[$,G]);var W=function(t,e){J(i.setWaypoint(t,e))},Z=function(t){return J(i.setStart(t)),i.setStart(t)},H=function(t,e){J(i.addIntermediateWaypoint(t),e)},K=function(t){J(i.removeWaypoint(t))},Y=function(t){return J(i.setEnd(t)),i.setEnd(t)};(0,e.useEffect)((function(){q()}),[i]);var X=function(t,e){e.isComplete()||N.jumpTo(t.longitude,t.latitude,w.CityVisibleZoom)},J=function(){var t=M(T().mark((function t(r){var n,o,i,u=arguments;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=(u.length>1&&void 0!==u[1]?u[1]:{}).afterPlanning,r.isComplete()){t.next=5;break}return x(null),a(r),t.abrupt("return");case 5:return o=r.list().filter((function(t){return t.isComplete()})).map((function(t){var e=t.longitude,r=t.latitude,n=t.name,o=t.meta;return s.default.fromLongitudeLatitudeDisplayMeta(e,r,n,o)})),t.prev=6,t.next=9,z.planTour(o);case 9:return i=t.sent,t.next=12,et(i,r);case 12:return t.next=14,null==n?void 0:n();case 14:t.next=26;break;case 16:if(t.prev=16,t.t0=t.catch(6),!(t.t0 instanceof S.NetworkError)){t.next=21;break}return B((0,O.default)("Netzwerkfehler"),(0,O.default)("Beim planen der Route ist ein Netzwerkfehler aufgetreten."),{button:{text:(0,O.default)("Erneut versuchen"),action:function(t){(0,t.close)(),J(r)}}}),t.abrupt("return");case 21:if(!(t.t0 instanceof S.PlanError)){t.next=24;break}return B((0,O.default)("Fehler bei der Planung"),(0,O.default)("Die Route konnte nicht erfolgreich geplant werden"),{button:{text:(0,O.default)("Schlie\xdfen"),action:function(t){return(0,t.close)()}},content:e.default.createElement("ul",null,t.t0.translatedErrors.map((function(t,r){return e.default.createElement("li",{key:r},t)})))}),t.abrupt("return");case 24:throw V(t.t0),t.t0;case 26:case"end":return t.stop()}}),t,null,[[6,16]])})));return function(e){return t.apply(this,arguments)}}(),Q=function(){var t=M(T().mark((function t(e){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,tt(e,d.default.fromTourWaypoints(e[0].waypoints));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),tt=function(){var t=M(T().mark((function t(e){var n,o=arguments;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:i,t.next=3,rt(e,n,(function(t){r.default.fromPropsRoute(N,h).boundTo(t.boundingBox)}));case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),et=function(){var t=M(T().mark((function t(e){var n,o=arguments;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:i,t.next=3,rt(e,n,(function(t){r.default.fromPropsRoute(N,h).boundToIfNew(t.boundingBox)}
1));case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),rt=function(){var e=M(T().mark((function e(r){var n,o,s,u,c=arguments;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=c.length>1&&void 0!==c[1]?c[1]:i,o=c.length>2?c[2]:void 0,s=(0,E.handleGastationPointsOfInterest)(r[0]),x(s),a(n.snapTo((0,p.List)(s.waypoints))),o(s),!(u=t.onTourPlanned)){e.next=10;break}return e.next=10,u(s);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),nt=t.debug,ot=t.viewport,it=t.children;return e.default.createElement(e.default.Fragment,null,e.default.createElement(n.default,{setStart:function(t){X(t,Z(t))},setEnd:function(t){X(t,Y(t))},waypoints:i,tour:h,viewport:ot,setWaypoint:W,removeWaypoint:K,moveWaypoint:function(t,e){J(i.move(t,e))},insertWaypointAfter:function(t){var e=d.Waypoint.placeholder();J(i.insertAfter(t,e))},saving:v},j()&&e.default.createElement(_.default,{tour:h})),e.default.createElement(f.default,{waypoints:i.list(),setPoint:W,selectPoint:function(t){k(null),R({index:t,point:i.getWaypointByIndex(t)})}}),e.default.createElement(u.default,{debug:nt,tour:h,addIntermediate:H,onTourPlanned:t.onTourPlanned}),e.default.createElement(P.GpxUpload,{onToursPlanned:Q}),e.default.createElement(l.default,{waypoint:L,onRemove:K}),e.default.createElement(c.default,{point:C,onStart:Z,onIntermediate:H,onEnd:Y}
1),it&&it(h))},e=C(e),r=j(r),n=j(n),o=j(o),i=j(i),s=j(s),u=j(u),c=j(c),l=j(l),f=j(f),h=j(h),d=C(d),_=j(_),x=C(x),O=j(O)},void 0===(i=n.apply(e,o))||(t.exports=i)},71430:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(85136),r(63675),r(73796),r(60344),r(99025),r(73355),r(94184),r(11637),r(94249)],n=function(t,e,r,n,o,i,s,u,c,l,p){"use strict";function f(t){return t&&t.__esModule?t:{default:t}}function h(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(h=function(t){return t?r:e})(t)}function d(){return d=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},d.apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){t.start,t.end;var r=t.tour,a=t.viewport,f=(t.borderless,t.children),h=t.waypoints,b=(0,e.useCallback)((function(e){var r=e.longitude,n=e.latitude,o=e.name,i=e.meta;t.setStart(p.Waypoint.fromLongitudeLatitudeNameMeta(r,n,o,i))}),[t.setStart]),_=(0,e.useCallback)((function(){t.removeWaypoint(0)}),[t.removeWaypoint]),x=(0,e.useCallback)((function(e){var r=e.longitude,n=e.latitude,o=e.name,i=e.meta;t.setEnd(p.Waypoint.fromLongitudeLatitudeNameMeta(r,n,o,i))}),[t.setEnd]),w=(0,e.useCallback)((function(){t.removeWaypoint(h.lastIndex())}),[h,t.removeWaypoint]),O=i.default.make(),E=(0,e.useCallback)((function(r){return e.default.createElement(u.default,d({},t,{onClose:r}))}),[t]);return e.default.createElement("div",{className:(0,c.default)("mto-tourplaner-header",{"mto-tourplaner-header--route":r})},e.default.createElement("div",{className:"mto-tourplaner__select"},e.default.createElement("div",{className:"mto-tourplaner__select-icon"},e.default.createElement(m,null)),e.default.createElement("div",{className:(0,c.default)("route route-start",{"route--true":r})},e.default.createElement(n.default,{onSelect:b,placeholder:(0,o.default)("Start w\xe4hlen"),clear:_,value:t.waypoints.start,around:a}))),r&&e.default.createElement(s.default,null,E),e.default.createElement("div",{className:"mto-tourplaner__select"},e.default.createElement("div",{className:(0,c.default)("route route-end",{"route--true":r})},e.default.createElement(n.default,{onSelect:x,placeholder:(0,o.default)("Ziel w\xe4hlen"),clear:w,value:t.waypoints.end,around:a})),e.default.createElement("div",{className:"mto-tourplaner__select-icon"},e.default.createElement(y,null))),r&&e.default.createElement(e.default.Fragment,null,e.default.createElement("div",{className:"mto-tourplaner__meta"},e.default.createElement("div",{className:"route route-info route-distance mto-tourplaner__meta-item"},e.default.createElement("div",{className:"mto-tourplaner__meta-label"},(0,o.default)("Strecke")),e.default.createElement("div",{className:"mto-tourplaner__meta-info"},O.metersToKilometers(null==r?void 0:r.distanceInMeters)," km")),e.default.createElement("div",{className:"route route-info route-duration mto-tourplaner__meta-item"},e.default.createElement("div",{className:"mto-tourplaner__meta-label"},(0,o.default)("Fahrdauer")),e.default.createElement("div",{className:"mto-tourplaner__meta-info"},O.milisecondsToHoursAndMinutes(null==r?void 0:r.timeInMs).format())),e.default.createElement("div",{className:"route route-info route-ascend-descend mto-tourplaner__meta-item"},e.default.createElement("div",{className:"mto-tourplaner__meta-label"},(0,o.default)("H\xf6henmeter")),e.default.createElement("div",{className:"mto-tourplaner__meta-info"},e.default.createElement(v,{className:"meta-icon"}),Math.floor(null==r?void 0:r.ascendInMeters)," m / ",e.default.createElement(g,{className:"meta-icon"}),Math.floor(null==r?void 0:r.descendInMeters)," m"))),f,e.default.createElement(l.default,null)))},e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=h(e);if(r&&r.has(t))return r.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var s=o?Object.getOwnPropertyDescriptor(t,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=t[i]}return n.default=t,r&&r.set(t,n),n}(e),n=f(n),o=f(o),i=f(i),s=f(s),u=f(u),c=f(c),l=f(l);var m=function(t){return e.default.createElement("svg",t,e.default.createElement("path",{d:"M15.999 8.408 4.586 17.817a.238.238 0 0 1-.01.059.31.31 0 0 0-.01.059v9.527c0 .344.126.642.378.893.251.251.549.378.893.378h7.622v-7.622h5.082v7.622h7.622c.344 0 .642-.126.893-.378a1.22 1.22 0 0 0 .378-.893v-9.528a.27.27 0 0 0-.02-.118L15.999 8.408z"}),e.default.createElement("path",{d:"m31.778 15.673-4.346-3.613V3.962a.616.616 0 0 0-.179-.457.614.614 0 0 0-.456-.178h-3.811a.618.618 0 0 0-.457.178.618.618 0 0 0-.178.457v3.87l-4.843-4.05c-.423-.343-.926-.515-1.508-.515s-1.085.172-1.509.516L.22 15.673c-.132.106-.205.248-.218.426s.033.334.139.466l1.23 1.469a.674.674 0 0 0 .417.218.734.734 0 0 0 .477-.139L15.999 6.662l13.735 11.453a.613.613 0 0 0 .417.138h.06a.677.677 0 0 0 .417-.218l1.23-1.469a.64.64 0 0 0 .138-.467.574.574 0 0 0-.218-.426z"}))};m.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"
1currentColor"};var y=function(t){return e.default.createElement("svg",t,e.default.createElement("path",{d:"M15 11.9v4.3c1.6.4 3.1 1 4.6 1.4v-4.3c-1.7-.4-3.1-1-4.6-1.4zm13.9-7.7c-2.1 1-4.8 2-7.3 2-3.3 0-6.1-2.2-10.3-2.2-1.6 0-3 .3-4.3.8.2-.5.3-.9.2-1.5C7.1 1.5 5.7.1 3.9 0 1.9-.1.3 1.5.3 3.5c0 1.2.6 2.2 1.5 2.9v24.1c0 .8.7 1.5 1.5 1.5h1c.8 0 1.5-.7 1.5-1.5v-5.9c1.8-.8 4-1.4 7.1-1.4 3.3 0 6.1 2.2 10.3 2.2 3 0 5.4-1 7.7-2.6.5-.4.9-1 .9-1.6V6c0-1.5-1.6-2.4-2.9-1.8zM10.4 20.3c-1.6.2-3.1.5-4.6 1V17c1.6-.6 3-.9 4.6-1.1v4.4zm18.4-8.4c-1.5.6-2.9 1.2-4.6 1.5v4.4c1.5-.2 3.2-.7 4.6-1.6v4.4c-1.6 1-3 1.5-4.6 1.7v-4.5c-1.7.2-3 .1-4.6-.3v4.2c-1.5-.5-3-1-4.6-1.3v-4.3c-1.2-.3-2.5-.4-4.6-.2v-4.4c-1.4.2-2.8.6-4.6 1.3V8.4c2-.7 3.1-1.2 4.6-1.4v4.5c1.7-.2 3-.1 4.6.4V7.7c1.5.5 2.9 1 4.6 1.3v4.3c1.5.3 3 .4 4.6.2V8.9c1.7-.3 3.3-.8 4.6-1.4v4.4z"}))};y.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"};var v=function(t){return e.default.createElement("svg",t,e.default.createElement("path",{d:"M7.5 2.5.1 9.9c-.2.2-.2.4 0 .6l1.4 1.4c.2.2.4.2.6 0l7.4-7.4 1.1 1.1c.5.5 1.4.2 1.4-.6V.8c0-.4-.4-.8-.8-.8H7c-.8 0-1.1.9-.6 1.4l1.1 1.1z"}))};v.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",fill:"currentColor"};var g=function(t){return e.default.createElement("svg",t,e.default.createElement("path",{d:"M9.5 7.5 2.1.1c-.2-.1-.4-.1-.6 0L.1 1.5c-.1.2-.1.4 0 .6l7.4 7.4-1.1 1.1c-.5.5-.2 1.4.6 1.4h4.2c.5 0 .8-.4.8-.8V7c0-.7-.9-1.1-1.4-.6L9.5 7.5z"}))};g.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",fill:"currentColor"}},void 0===(i=n.apply(e,o))||(t.exports=i)},99025:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(73796),r(83530),r(94184),r(47571),r(73355)],void 0===(i="function"==typeof(n=function(t,e,r,n,o,i,s){"use strict";function u(t){return t&&t.__esModule?t:{default:t}}function c(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(c=function(t){return t?r:e})(t)}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=c(e);if(r&&r.has(t))return r.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var s=o?Object.getOwnPropertyDescriptor(t,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=t[i]}return n.default=t,r&&r.set(t,n),n}(e),r=u(r),o=u(o),i=u(i),s=u(s);var p=function(t){return e.default.createElement("svg",t,e.default.createElement("circle",{cx:"16",cy:"4",r:"4"}),e.default.createElement("circle",{cx:"16",cy:"28",r:"4"}),e.default.createElement("circle",{cx:"16",cy:"16",r:"4"}))};p.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"};var f=(0,i.default)((function(t){var r=t.mapEvents,n=t.children,i=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}
1(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,e.useState)(!1),2),a=i[0],s=i[1],u=(0,e.useCallback)((function(){s(!a)}),[a]),c=(0,e.useCallback)((function(){s(!1)}),[]);return(0,e.useEffect)((function(){r.onClick(c),r.onContextMenu(c)})),e.default.createElement(e.default.Fragment,null,e.default.createElement("div",{className:"mto-tourplaner__options"},e.default.createElement("div",{className:"mto-tourplaner__options-title"},"Optionen")," ",e.default.createElement("div",{id:"menuPopup",className:"mto-tourplaner__option-icon-wrapper",onClick:u},e.default.createElement(p,{className:(0,o.default)("mto-tourplaner__option-icon",{"icon-active":a})}))),a&&n(c))}));t.default=f})?n.apply(e,o):n)||(t.exports=i)},73355:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(73796),r(83530),r(94184),r(26098),r(41239)],n=function(t,e,r,n,o,i,s){"use strict";function u(t){return t&&t.__esModule?t:{default:t}}function c(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(c=function(t){return t?r:e})(t)}function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},l.apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var a=t.waypoints,u=t.onClose,c=t.setWaypoint,h=void 0===c?function(){}:c,d=t.removeWaypoint,m=void 0===d?function(){}:d,y=t.insertWaypointAfter,v=void 0===y?function(){}:y,g=t.moveWaypoint,b=void 0===g?function(){}:g,_=(0,e.useCallback)((function(t){if(t.destination){var e=t.source.index,r=t.destination.index;b(e,r)}})),x=(0,e.useMemo)((function(){return a.list()}),[a]),w=(0,e.useCallback)((function(t,r){return e.default.createElement("div",l({},t.droppableProps,{ref:t.innerRef,className:(0,o.default)("nav-list",{"receiving-drag":r.isDraggingOver})}),x.map((function(t,r){var a;return e.default.createElement(s.Highlight,{highlightUntil:null==t||null===(a=t.meta)||void 0===a?void 0:a.highlightUntil},(function(a){return e.default.createElement(n.Draggable,{key:t.id,draggableId:t.id,index:r},(function(n,s){return e.default.createElement("div",l({ref:n.innerRef},n.draggableProps,n.dragHandleProps,{className:(0,o.default)("nav-list__item",{dragging:s.isDragging||a})}),e.default.createElement(i.default,{waypoint:t,index:r,lastIndex:x.size-1,onSet:h,onRemove:m,onPlus:function(){return v(r)}}))}))}))})),t.placeholder)}),[a]),O=(0,e.useCallback)((function(){u&&u()}),[u]);return e.default.createElement("div",{className:"nav-popup"},e.default.createElement("div",{className:"nav-popup__close",onClick:O},e.default.createElement(p,null)),e.default.createElement("div",{className:"nav-popup__header"},e.default.createElement(f,{className:"nav-popup__header-icon"}),(0,r.default)("Zwischenstops")),e.default.createElement(n.DragDropContext,{onDragEnd:_},e.default.createElement(n.Droppable,{droppableId:"droppable"},w)))},e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=c(e);if(r&&r.has(t))return r.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var s=o?Object.getOwnPropertyDescriptor(t,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=t[i]}return n.default=t,r&&r.set(t,n),n}(e),r=u(r),o=u(o),i=u(i);var p=function(t){return e.default.createElement("svg",t,e.default.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 0 1 1.414 0L10 8.586l4.293-4.293a1 1 0 1 1 1.414 1.414L11.414 10l4.293 4.293a1 1 0 0 1-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 0 1-1.414-1.414L8.586 10 4.293 5.707a1 1 0 0 1 0-1.414z",clipRule:"evenodd"}))};p.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"};var f=function(t){return e.default.createElement("svg",t,e.default.createElement("path",{d:"M14.8 31.4C5.7 18.2 4 16.8 4 12 4 5.4 9.4 0 16 0s12 5.4 12 12c0 4.8-1.7 6.2-10.8 19.4-.6.8-1.8.8-2.4 0zM16 17c2.8 0 5-2.2 5-5s-2.2-5-5-5-5 2.2-5 5 2.2 5 5 5z"}))};f.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"
1currentColor"}},void 0===(i=n.apply(e,o))||(t.exports=i)},59308:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(18494),r(23270),r(73941),r(83139),r(94249),r(96932),r(86111)],n=function(t,e,r,n,o,i,s,u,c){"use strict";function l(t){return t&&t.__esModule?t:{default:t}}function p(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(p=function(t){return t?r:e})(t)}function f(){f=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new j(o||[]);return n(a,"_invoke",{value:O(t,r,s)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function d(){}function m(){}function y(){}var v={};c(v,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(A([])));b&&b!==e&&r.call(b,i)&&(v=b);var _=y.prototype=d.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,s,u){var c=p(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==a(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,s,u)}),(function(t){o("throw",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return o("throw",t,s,u)}))}u(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function O(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=p(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=p(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function A(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return m.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:m,configurable:!0}),m.displayName=c(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,c(t,u,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},x(w.prototype),c(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Prom
vendor: 4,457 bytes, line 1
1ise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(_),c(_,u,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=A,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function h(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function d(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){h(i,n,o,a,s,"next",t)}function s(t){h(i,n,o,a,s,"throw",t)}a(void 0)}))}}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return y(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function v(t){var e="function"==typeof Map?new Map:void 0;return v=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return g(t,arguments,x(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_(n,t)},v(t)}
1function g(t,e,r){return g=b()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&_(o,r.prototype),o},g.apply(null,arguments)}function b(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function _(t,e){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_(t,e)}function x(t){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},x(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidUserException=void 0,t.NavigationState=function(t){var n=(0,i.useError)().displayError,a=t.children,l=t.modifyTourForSave,p=void 0===l?function(t){return t}:l,h=m((0,e.useState)(new s.default),2),y=h[0],v=h[1],g=m((0,e.useState)(null),2),b=g[0],_=g[1],x=m((0,e.useState)(!1),2),E=x[0],S=x[1],P=m((0,e.useState)(null),2),j=P[0],A=P[1],C=(0,o.useConfig)(),T=(0,u.useApi)();(0,e.useEffect)((function(){t.tour&&(_(t.tour._id),A(t.tour),v(s.default.fromTourWaypoints(t.tour.waypoints)))}),[t.tour]);var k=(0,e.useCallback)((function(){return t.tourId||b}),[b,t.tourId]),M=(0,e.useCallback)(function(){var t=d(f().mark((function t(e){var r;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return S(!0),t.next=3,e();case 3:return r=t.sent,S(!1),t.abrupt("return",r);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),I=(0,e.useCallback)((function(t){var e=[];if(t.id||e.push("Missing id"),t.system||e.push("Missing system"),e.length>0)throw new w(e.join(", "))})),D=(0,e.useCallback)(function(){var t=d(f().mark((function t(e,o){var i,a,s,u,l;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("saveuser!!"),o&&I(o),e.tags||(e.tags=[]),i=new r.default.fromTagArray(e.tags),((null==C?void 0:C.mandatoryTags)||[]).forEach((function(t){return i.include(t)})),a=function(t,e){e&&(s(t)||t.tags.push(e))},s=function(t){var e=["editorial","user"];return-1!==t.tags.findIndex((function(t){return e.includes(t)}))},a(e,(null==C?void 0:C.environmentTag)||"user"),u=p({tour:e,user:o}),k()&&(u.tour._id=k()),t.prev=10,console.log("saveuser1!!"),t.next=14,T.saveTour(u);case 14:l=t.sent,console.log("id::",l),t.next=24;break;case 18:if(t.prev=18,t.t0=t.catch(10),!(t.t0 instanceof c.NetworkError)){t.next=23;break}return n("Netzwerkfehler","Es gab einen Netzwerkfehler beim Speichern der Tour. Bitte versuch es noch einmal."),t.abrupt("return");case 23:throw t.t0;case 24:return _(l),C.onSaved&&C.onSaved({tour:e}),t.abrupt("return",l);case 27:case"end":return t.stop()}}),t,null,[[10,18]])})));return function(e,r){return t.apply(this,arguments)}}(),[I,p,k(),T,n,_,null==C?void 0:C.mandatoryTags,null==C?void 0:C.onSaved]),L=(0,e.useCallback)(d(f().mark((function t(){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!E){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,M(d(f().mark((function t(){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(C.onSaveRequested){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,C.onSaveRequested({saveWithUser:function(){var t=d(f().mark((function t(e){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,D(j,e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),saveWithoutUser:function(){var t=d(f().mark((function t(){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,D(j,null);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()});case 4:case"end":return t.stop()}}),t)}))));case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)}))),[C.onSaveRequested,D]),R=(0,e.useMemo)((function(){return{waypoints:y,saving:E,tour:j,tourId:b,setTour:A,setSaving:S,setTourId:_,setWaypoints:v,previousTourId:k,onSave:L}}),[E,j,b,A,S,_,v,k,L]);return e.createElement(O.Provider,{value:R},a)},t.useNavigationState=function(){return e.useContext(O)},e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=p(e);if(r&&r.has(t))return r.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var s=o?Object.getOwnPropertyDescriptor(t,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=t[i]}return n.default=t,r&&r.set(t,n),n}(e),r=l(r),s=l(s);var w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_(t,e)}(n,t);var e,r=function(t){var e=b();return function(){var r,n=x(t);if(e){var o=x(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}(n);function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),r.apply(this,arguments)}return e=n,Object.defineProperty(e,"prototype",{writable:!1}),e}(v(Error));t.InvalidUserException=w;var O=e.createContext({waypoints:new s.default,tourId:null,saving:!1,tour:null,setTour:function(t){},setTourId:function(t){},setWaypoints:function(t){},setSaving:function(t){},previousTourId:function(){return null},onSave:function(){}})},void 0===(i=n.apply(e,o))||(t.exports=i)},72376:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(85136),r(73796),r(96932),r(34652),r(83139),r(73941)],n=function(t,e,r,n,o,i,s,u){"use strict";function c(t){return t&&t.__esModule?t:{default:t}}function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(l=function(t){return t?r:e})(t)}function p(){p=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new j(o||[]);return n(a,"_invoke",{value:O(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function d(){}function m(){}function y(){}var v={};c(v,i,(function(){return this}));
vendor: 6,134 bytes, line 1
1var g=Object.getPrototypeOf,b=g&&g(g(A([])));b&&b!==e&&r.call(b,i)&&(v=b);var _=y.prototype=d.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,s,u){var c=f(t[n],t,i);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==a(p)&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){o("next",t,s,u)}),(function(t){o("throw",t,s,u)})):e.resolve(p).then((function(t){l.value=t,s(l)}),(function(t){return o("throw",t,s,u)}))}u(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function O(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function A(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return m.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:m,configurable:!0}),m.displayName=c(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,c(t,u,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},x(w.prototype),c(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(_),c(_,u,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=A,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function f(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function h(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){f(i,n,o,a,s,"next",t)}function s(t){f(i,n,o,a,s,"throw",t)}a(void 0)}))}}
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=l(e);if(r&&r.has(t))return r.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var s=o?Object.getOwnPropertyDescriptor(t,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=t[i]}return n.default=t,r&&r.set(t,n),n}(e),n=c(n),o=c(o),i=c(i);var d=(0,o.default)((function(t){var r=t.api,o=t.point,a=(t.onClose,t.onStart),u=t.onEnd,c=t.onIntermediate,l=(0,s.useError)().onError,f=function(){var t=h(p().mark((function t(e){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.reverseGeocode(r,{onError:l});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),d=(0,e.useCallback)(function(){var t=h(p().mark((function t(e){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v(e),t.t0=a,t.next=4,f(o);case 4:t.t1=t.sent,(0,t.t0)(t.t1);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[a,o]),m=(0,e.useCallback)(function(){var t=h(p().mark((function t(e){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v(e),t.t0=c,t.next=4,f(o);case 4:t.t1=t.sent,(0,t.t0)(t.t1);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[c,o]),y=(0,e.useCallback)(function(){var t=h(p().mark((function t(e){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v(e),t.t0=u,t.next=4,f(o);case 4:t.t1=t.sent,(0,t.t0)(t.t1);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[u,o]),v=function(t){t.preventDefault(),t.stopPropagation()};return e.default.createElement(i.default,t,e.default.createElement("ul",{className:"mto-action-menu__list"},e.default.createElement("li",{className:"mto-action-menu__list-item mto-action-menu__list-item--start"},e.default.createElement("div",{onClick:d},(0,n.default)("Setze als Start"))),e.default.createElement("li",{className:"mto-action-menu__list-item mto-action-menu__list-item--intermediate"},e.default.createElement("div",{onClick:m},(0,n.default)("Setze als Zwischenziel"))),e.default.createElement("li",{className:"mto-action-menu__list-item mto-action-menu__list-item--end"},e.default.createElement("div",{onClick:y},(0,n.default)("Setze als Ziel")))))}));t.default=d},void 0===(i=n.apply(e,o))||(t.exports=i)},34652:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(85136),r(73796)],void 0===(i="function"==typeof(n=function(t,e,r,n){"use strict";function o(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(o=function(t){return t?r:e})(t)}var i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=o(e);if(r&&r.has(t))return r.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var u=i?Object.getOwnPropertyDescriptor(t,s):null;u&&(u.get||u.set)?Object.defineProperty(n,s,u):n[s]=t[s]}return n.default=t,r&&r.set(t,n),n}(e),n=(i=n)&&i.__esModule?i:{default:i};t.default=function(t){var n=t.point,o=t.children,i=t.onClose;return n?e.default.createElement(r.Popup,{latitude:n.latitude,longitude:n.longitude,className:"popup",captureClick:!0,closeButton:!1,closeOnClick:!0,onClose:i,anchor:"left"},e.default.createElement("div",{className:"mto-action-menu"},o)):null}})?n.apply(e,o):n)||(t.exports=i)},29032:function(t,e,r){var n,o,i;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156)],void 0===(i="function"==typeof(n=function(t,e){"use strict";var r;
vendor: 5,254 bytes, line 1
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var r=t.index;return e.default.createElement("div",null,e.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},e.default.createElement("path",{fill:"#00A4D3",d:"M14.8,31.4C5.7,18.2,4,16.8,4,12C4,5.4,9.4,0,16,0s12,5.4,12,12c0,4.8-1.7,6.2-10.8,19.416.6,32.2,15.4,32.2,14.8,31.4L14.8,31.4z"}),e.default.createElement("circle",{fill:"#ffffff",cx:"16",cy:"12",r:"10.039"}),e.default.createElement("text",{transform:"matrix(1 0 0 1 12.2297 16)",style:{fontSize:"12px",fontFamily:'"Arial", sans-serif',color:"#000000"}},function(t){return t+1}(r))))},e=(r=e)&&r.__esModule?r:{default:r}})?n.apply(e,o):n)||(t.exports=i)},54746:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(85136),r(96932),r(94249)],n=function(t,e,r,n,o){"use strict";function i(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(i=function(t){return t?r:e})(t)}function s(){s=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function p(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new j(o||[]);return n(a,"_invoke",{value:O(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var h={};function d(){}function m(){}function y(){}var v={};l(v,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(A([])));b&&b!==e&&r.call(b,i)&&(v=b);var _=y.prototype=d.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,s,u){var c=f(t[n],t,i);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==a(p)&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){o("next",t,s,u)}),(function(t){o("throw",t,s,u)})):e.resolve(p).then((function(t){l.value=t,s(l)}),(function(t){return o("throw",t,s,u)}))}u(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function O(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function A(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return m.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:m,configurable:!0}),m.displayName=l(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,c,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},x(w.prototype),l(w.prototype,u,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Prom
1ise);var a=new w(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(_),l(_,c,"Generator"),l(_,i,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=A,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function u(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=i(e);if(r&&r.has(t))return r.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var u=o?Object.getOwnPropertyDescriptor(t,s):null;u&&(u.get||u.set)?Object.defineProperty(n,s,u):n[s]=t[s]}return n.default=t,r&&r.set(t,n),n}(e);t.default=function(t){var i=t.point,a=t.children,c=t.size,l=void 0===c?32:c,p=t.onMoved,f=t.draggable,h=void 0===f||f,d=t.onClick,m=(0,n.useApi)();if(!i)return null;var y=i.longitudeLatitude(),v=y.longitude,g=y.latitude,b=(0,e.useCallback)(function(){var t,e=(t=s().mark((function t(e){var r,n,i,a,u;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.lngLat,n=[r.lng,r.lat],i=n[0],a=n[1],u=o.Waypoint.fromLongitudeLatitudeName(i,a,""),t.t0=p,t.next=6,u.reverseGeocode(m);case 6:t.t1=t.sent,(0,t.t0)(t.t1);case 8:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){u(i,n,o,a,s,"next",t)}function s(t){u(i,n,o,a,s,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}(),[i,p]),_=(0,e.useCallback)((function(){d(i)}),[i,d]);return e.default.createElement(r.Marker,{longitude:v,anchor:"bottom",latitude:g,draggable:h,onDragEnd:b,onClick:_},e.default.createElement("div",{style:{width:l,height:l},onClick:_},a))}},void 0===(i=n.apply(e,o))||(t.exports=i)},53905:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(73796),r(96932),r(34652)],n=function(t,e,r,n,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function s(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(s=function(t){return t?r:e})(t)}function u(){return u=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},u.apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=s(e);if(r&&r.has(t))return r.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var u=o?Object.getOwnPropertyDescriptor(t,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=t[i]}return n.default=t,r&&r.set(t,n),n}(e),r=i(r),n=i(n),o=i(o);t.default=function(t){var n=t.waypoint,i=t.onRemove;return e.default.createElement(o.default,u({},t,{point:null==n?void 0:n.point}),e.default.createElement("ul",{className:"mto-action-menu__list"},e.default.createElement("li",{className:"mto-action-menu__list-item"},e.default.createElement("div",{onClick:function(){i(n.index,n.point)}},(0,r.default)("Pin l\xf6schen")))))}},void 0===(i=n.apply(e,o))||(t.exports=i)},60395:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(54746)],n=function(t,e,r){"use strict";function n(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(n=function(t){return t?r:e})(t)}function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},o.apply(this,arguments)}var i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var n=t.index,i=t.onMoved,a=t.onClick,s=(0,e.useCallback)((function(t){i(n,t)}),[i,n]),u=(0,e.useCallback)((function(t){a(n,t)}),[a,n]);return e.default.createElement(r.default,o({},t,{onMoved:s,onClick:u}),t.children)},e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=n(e);if(r&&r.has(t))return r.get(t);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var u=i?Object.getOwnPropertyDescriptor(t,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=t[s]}return o.default=t,r&&r.set(t,o),o}(e),r=(i=r)&&i.__esModule?i:{default:i}},void 0===(i=n.apply(e,o))||(t.exports=i)},41239:function(t,e,r){var n,o,i;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156)],n=function(t,e){"use strict";function r(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(r=function(t){return t?n:e})(t)}function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e);if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===n(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}
1Object.defineProperty(t,"__esModule",{value:!0}),t.Highlight=function(t){var r=t.children,n=t.highlightUntil,i=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t),u=o((0,e.useState)(!1),2),c=u[0],l=u[1];return delete i.highlightUntil,(0,e.useEffect)((function(){var t=function(){return n-Date.now()};n&&t()>0&&(l(!0),setTimeout((function(){return l(!1)}),t()))}),[n]),r(c)},e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!=typeof t)return{default:t};var o=r(e);if(o&&o.has(t))return o.get(t);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var u=a?Object.getOwnPropertyDescriptor(t,s):null;u&&(u.get||u.set)?Object.defineProperty(i,s,u):i[s]=t[s]}return i.default=t,o&&o.set(t,i),i}(e)},void 0===(i=n.apply(e,o))||(t.exports=i)},26098:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(63675),r(94249)],void 0===(i="function"==typeof(n=function(t,e,r,n){"use strict";function o(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(o=function(t){return t?r:e})(t)}var i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var o=t.index,i=t.waypoint,a=t.lastIndex,f=t.onPlus,h=o+1;o===a&&(h=e.default.createElement(p,null)),0===o&&(h=e.default.createElement(l,null));var d=(0,e.useCallback)((function(e){var r=e.longitude,i=e.latitude,a=e.name,s=e.meta;return t.onSet(o,n.Waypoint.fromLongitudeLatitudeNameMeta(r,i,a,s))}),[t.onSet,o]),m=(0,e.useCallback)((function(){return t.onRemove(o)}),[t.onRemove,o]);return e.default.createElement(e.default.Fragment,null,e.default.createElement("div",{className:"nav-list__sort"},e.default.createElement(s,null)),e.default.createElement("div",{className:"nav-list__text"},e.default.createElement("div",{className:"nav-list__index"},e.default.createElement("b",null,h)),e.default.createElement("div",{className:"nav-list__location"},e.default.createElement(r.default,{classNames:["borderless"],notClearable:!0,onSelect:d,value:i}))),e.default.createElement("div",{className:"nav-list__remove",onClick:m},e.default.createElement(u,null)),e.default.createElement("div",{className:"nav-list__separator"},e.default.createElement("div",{className:"nav-list__separator-icon"},e.default.createElement(c,{onClick:f}))))},e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=o(e);if(r&&r.has(t))return r.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var u=i?Object.getOwnPropertyDescriptor(t,s):null;u&&(u.get||u.set)?Object.defineProperty(n,s,u):n[s]=t[s]}return n.default=t,r&&r.set(t,n),n}(e),r=(i=r)&&i.__esModule?i:{default:i};var s=function(t){return e.default.createElement("svg",t,e.default.createElement("path",{d:"M31.271 13H.729A.731.731 0 0 1 0 12.271v-.543c0-.4.328-.728.729-.728h30.543c.4 0 .728.328.728.729v.543a.73.73 0 0 1-.729.728zM31.271 21H.729A.731.731 0 0 1 0 20.271v-.543c0-.4.328-.728.729-.728h30.543c.4 0 .728.328.728.729v.543a.73.73 0 0 1-.729.728z"}))};s.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"};var u=function(t){return e.default.createElement("svg",t,e.default.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 0 1 1.414 0L10 8.586l4.293-4.293a1 1 0 1 1 1.414 1.414L11.414 10l4.293 4.293a1 1 0 0 1-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 0 1-1.414-1.414L8.586 10 4.293 5.707a1 1 0 0 1 0-1.414z",clipRule:"evenodd"}))};u.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"};var c=function(t){return e.default.createElement("svg",t,e.default.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm1-11a1 1 0 1 0-2 0v2H7a1 1 0 1 0 0 2h2v2a1 1 0 1 0 2 0v-2h2a1 1 0 1 0 0-2h-2V7z",clipRule:"evenodd"}))};c.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"};var l=function(t){return e.default.createElement("svg",t,e.default.createElement("path",{d:"M15.999 8.408 4.586 17.817a.238.238 0 0 1-.01.059.31.31 0 0 0-.01.059v9.527c0 .344.126.642.378.893.251.251.549.378.893.378h7.622v-7.622h5.082v7.622h7.622c.344 0 .642-.126.893-.378a1.22 1.22 0 0 0 .378-.893v-9.528a.27.27 0 0 0-.02-.118L15.999 8.408z"}),e.default.createElement("path",{d:"m31.778 15.673-4.346-3.613V3.962a.616.616 0 0 0-.179-.457.614.614 0 0 0-.456-.178h-3.811a.618.618 0 0 0-.457.178.618.618 0 0 0-.178.457v3.87l-4.843-4.05c-.423-.343-.926-.515-1.508-.515s-1.085.172-1.509.516L.22 15.673c-.132.106-.205.248-.218.426s.033.334.139.466l1.23 1.469a.674.674 0 0 0 .417.218.734.734 0 0 0 .477-.139L15.999 6.662l13.735 11.453a.613.613 0 0 0 .417.138h.06a.677.677 0 0 0 .417-.218l1.23-1.469a.64.64 0 0 0 .138-.467.574.574 0 0 0-.218-.426z"}))};l.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"
1currentColor"};var p=function(t){return e.default.createElement("svg",t,e.default.createElement("path",{d:"M15 11.9v4.3c1.6.4 3.1 1 4.6 1.4v-4.3c-1.7-.4-3.1-1-4.6-1.4zm13.9-7.7c-2.1 1-4.8 2-7.3 2-3.3 0-6.1-2.2-10.3-2.2-1.6 0-3 .3-4.3.8.2-.5.3-.9.2-1.5C7.1 1.5 5.7.1 3.9 0 1.9-.1.3 1.5.3 3.5c0 1.2.6 2.2 1.5 2.9v24.1c0 .8.7 1.5 1.5 1.5h1c.8 0 1.5-.7 1.5-1.5v-5.9c1.8-.8 4-1.4 7.1-1.4 3.3 0 6.1 2.2 10.3 2.2 3 0 5.4-1 7.7-2.6.5-.4.9-1 .9-1.6V6c0-1.5-1.6-2.4-2.9-1.8zM10.4 20.3c-1.6.2-3.1.5-4.6 1V17c1.6-.6 3-.9 4.6-1.1v4.4zm18.4-8.4c-1.5.6-2.9 1.2-4.6 1.5v4.4c1.5-.2 3.2-.7 4.6-1.6v4.4c-1.6 1-3 1.5-4.6 1.7v-4.5c-1.7.2-3 .1-4.6-.3v4.2c-1.5-.5-3-1-4.6-1.3v-4.3c-1.2-.3-2.5-.4-4.6-.2v-4.4c-1.4.2-2.8.6-4.6 1.3V8.4c2-.7 3.1-1.2 4.6-1.4v4.5c1.7-.2 3-.1 4.6.4V7.7c1.5.5 2.9 1 4.6 1.3v4.3c1.5.3 3 .4 4.6.2V8.9c1.7-.3 3.3-.8 4.6-1.4v4.4z"}))};p.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"}})?n.apply(e,o):n)||(t.exports=i)},41528:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(60534),r(94249)],n=function(t,e,r,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(i=function(t){return t?r:e})(t)}function s(){return s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},s.apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var o=t.waypoints,i=(t.setPoint,t.selectPoint,(0,e.useMemo)((function(){return n.default.fromTourWaypoints(o).list()}),[o]));return e.default.createElement(r.default,s({},t,{waypoints:i,draggable:!1}))},e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=i(e);if(r&&r.has(t))return r.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var u=o?Object.getOwnPropertyDescriptor(t,s):null;u&&(u.get||u.set)?Object.defineProperty(n,s,u):n[s]=t[s]}return n.default=t,r&&r.set(t,n),n}(e),r=o(r),n=o(n)},void 0===(i=n.apply(e,o))||(t.exports=i)},33762:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(85136),r(40904),r(54746),r(94177),r(87193),r(29205),r(38192),r(82416),r(47571),r(23705)],n=function(t,e,r,n,o,i,s,u,c,l,p,f){"use strict";function h(t){return t&&t.__esModule?t:{default:t}}function d(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(d=function(t){return t?r:e})(t)}function m(){return m=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},m.apply(this,arguments)}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return v(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(t,e):void 0}}
1(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var o=(0,r.useMap)().current,a=t.debug,p=t.tour,h=t.onTourPlanned,d=t.addIntermediate,v=void 0===t.showPointsOfInterest||t.showPointsOfInterest,g=y((0,e.useState)([]),2),b=g[0],_=g[1],x=(0,f.useBounds)();if((0,e.useEffect)((function(){if(null!=p&&p.points_of_interest){var t=l.PointsOfInterestClusteredByType.fromPointsOfInterestProject(null==p?void 0:p.points_of_interest,o.project).pointsOfInterest;t&&t.length&&t.forEach((function(t){t.onTourPlanned=h})),_(t)}}),[null==p?void 0:p.points_of_interest,h,o,x]),!p)return null;var w={type:"Feature",properties:{},geometry:p.route.points};return e.default.createElement(e.default.Fragment,null,e.default.createElement(r.Source,{id:"route",type:"geojson",data:w},e.default.createElement(r.Layer,{type:"line",source:"route",layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":"#888","line-width":8}})),e.default.createElement(u.default,null),a&&e.default.createElement(n.default,{boxes:p.boxes}),e.default.createElement(c.MapPoiZoomLimiter,null,(function(){return v&&e.default.createElement(i.default,{pointsOfInterest:b},(function(t){var r=t.onOpen,n=t.onClose;return b.map((function(t){return e.default.createElement(s.default,m({addIntermediate:d,key:t._id},t,{onOpen:r,onClose:n}))}))}))})))},e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=d(e);if(r&&r.has(t))return r.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var s=o?Object.getOwnPropertyDescriptor(t,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=t[i]}return n.default=t,r&&r.set(t,n),n}(e),n=h(n),o=h(o),i=h(i),s=h(s),u=h(u)},void 0===(i=n.apply(e,o))||(t.exports=i)},60534:function(t,e,r){var n,o,i;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(60395),r(29032)],void 0===(i="function"==typeof(n=function(t,e,r,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var o=t.waypoints,s=t.draggable,u=void 0===s||s,c=t.setPoint,l=void 0===c?function(){}:c,p=t.selectPoint,f=void 0===p?function(){}:p;return o.map((function(t,o){return e.default.createElement(r.default,{key:(null==t?void 0:t.id)||o,draggable:u,index:o,point:t,onMoved:l,onClick:f},t.isStart()&&e.default.createElement(i,null),t.isEnd()&&e.default.createElement(a,null),t.isIntermediate()&&e.default.createElement(n.default,{index:o}))}))},e=o(e),r=o(r),n=o(n);var i=function(t){return e.default.createElement("svg",t,e.default.createElement("path",{fill:"#4CD864",d:"M14.8 31.4C5.7 18.2 4 16.8 4 12 4 5.4 9.4 0 16 0s12 5.4 12 12c0 4.8-1.7 6.2-10.8 19.4-.6.8-1.8.8-2.4 0z"}),e.default.createElement("circle",{fill:"#fff",cx:"16",cy:"12",r:"10.039"}),e.default.createElement("path",{d:"m16 8.904-4.301 3.546a.079.079 0 0 1-.004.022l-.004.022v3.59c0 .13.047.242.142.337a.46.46 0 0 0 .337.142h2.872v-2.872h1.915v2.872h2.872a.46.46 0 0 0 .337-.142.458.458 0 0 0 .142-.337v-3.591a.095.095 0 0 0-.008-.044L16 8.904z"}),e.default.createElement("path",{d:"m21.946 11.641-1.638-1.362V7.228a.232.232 0 0 0-.067-.172.23.23 0 0 0-.172-.067h-1.436c-.07 0-.127.022-.172.067s-.067.102-.067.172v1.458L16.569 7.16A.878.878 0 0 0 16 6.966a.88.88 0 0 0-.569.194l-5.378 4.481c-.05.04-.077.093-.082.161s.012.126.052.176l.464.554c.04.045.092.072.157.082.06.005.12-.012.18-.052L16 8.246l5.176 4.316c.04.035.092.052.157.052h.023a.253.253 0 0 0 .157-.082l.464-.554a.243.243 0 0 0 .052-.176.219.219 0 0 0-.083-.161z"}))};i.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"};var a=function(t){return e.default.createElement("svg",t,e.default.createElement("path",{fill:"#F07370",d:"M14.8 31.4C5.7 18.2 4 16.8 4 12 4 5.4 9.4 0 16 0s12 5.4 12 12c0 4.8-1.7 6.2-10.8 19.4-.6.8-1.8.8-2.4 0z"}),e.default.createElement("circle",{fill:"#fff",cx:"16",cy:"12",r:"10.039"}),e.default.createElement("path",{fill:"#00000",d:"M15.813 10.543v1.529c.569.142 1.102.356 1.636.498v-1.529c-.605-.143-1.102-.356-1.636-.498zm4.943-2.739c-.746.356-1.707.712-2.596.712-1.174 0-2.169-.782-3.663-.782-.569 0-1.067.107-1.529.285.071-.178.107-.32.071-.533a1.235 1.235 0 0 0-1.174-1.
1174c-.711-.036-1.28.533-1.28 1.245 0 .427.213.782.533 1.031v8.571c0 .285.249.533.533.533h.356a.546.546 0 0 0 .533-.533v-2.098c.64-.285 1.423-.498 2.525-.498 1.174 0 2.169.782 3.663.782 1.067 0 1.92-.356 2.738-.925.178-.142.32-.356.32-.569V8.444c.002-.533-.567-.853-1.03-.64zm-6.579 5.726a8.364 8.364 0 0 0-1.636.356v-1.529a6.853 6.853 0 0 1 1.636-.391v1.564zm6.544-2.987c-.533.213-1.031.427-1.636.533v1.565c.533-.071 1.138-.249 1.636-.569v1.565c-.569.356-1.067.533-1.636.605v-1.6a4.19 4.19 0 0 1-1.636-.107v1.494c-.533-.178-1.067-.356-1.636-.462v-1.529c-.427-.107-.889-.142-1.636-.071V10.4c-.498.071-.996.213-1.636.462V9.298c.711-.249 1.102-.427 1.636-.498v1.6c.605-.071 1.067-.036 1.636.142V9.049c.533.178 1.031.356 1.636.462v1.529a5.015 5.015 0 0 0 1.636.071V9.476a6.827 6.827 0 0 0 1.636-.498v1.565z"}))};a.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"}})?n.apply(e,o):n)||(t.exports=i)},51219:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(85136),r(35369),r(94177),r(87193),r(96486),r(96932),r(30980),r(87437),r(47571),r(23705),r(76353),r(82416)],n=function(t,e,r,n,o,i,s,u,c,l,p,f,h,d){"use strict";function m(t){return t&&t.__esModule?t:{default:t}}function y(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(y=function(t){return t?r:e})(t)}function v(){return v=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},v.apply(this,arguments)}function g(t){return function(t){if(Array.isArray(t))return O(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||w(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(){b=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),s=new j(o||[]);return n(a,"_invoke",{value:O(t,r,s)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var f={};function h(){}function d(){}function m(){}var y={};c(y,i,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(A([])));g&&g!==e&&r.call(g,i)&&(y=g);var _=m.prototype=h.prototype=Object.create(y);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,s,u){var c=p(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==a(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,s,u)}),(function(t){o("throw",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return o("throw",t,s,u)}))}u(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function O(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=p(t,e,r);
vendor: 5,085 bytes, line 1
1if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=p(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function A(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=m,n(_,"constructor",{value:m,configurable:!0}),n(m,"constructor",{value:d,configurable:!0}),d.displayName=c(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},x(w.prototype),c(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(_),c(_,u,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=A,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function _(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function x(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}
1finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||w(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,e){if(t){if("string"==typeof t)return O(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?O(t,e):void 0}}function O(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=y(e);if(r&&r.has(t))return r.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var s=o?Object.getOwnPropertyDescriptor(t,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=t[i]}return n.default=t,r&&r.set(t,n),n}(e),o=m(o),i=m(i),s=m(s),c=m(c);t.default=function(t){var a=t.types,p=t.onPointsLoaded,h=t.onTourPlanned,m=(0,u.useApi)(),y=(0,r.useMap)().current,w=x((0,e.useState)(new n.List),2),O=w[0],E=w[1],S=(0,f.useBounds)();return(0,e.useEffect)((function(){if(S){var t=s.default.debounce(function(){var t,e=(t=b().mark((function t(e,r){var n,o,i;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=l.withCleanGasStations,t.next=3,m.fromViewport(c.default.fromLeftTopRightBottom(e.left,e.top,e.right,e.bottom),r);case 3:t.t1=t.sent,o=(0,t.t0)(t.t1),i=d.PointsOfInterestClusteredByType.fromPointsOfInterestProject(o,y.project),null!==(n=i.pointsOfInterest)&&void 0!==n&&n.length&&i.pointsOfInterest.forEach((function(t){t.onTourPlanned=h})),E(i.pointsOfInterest),p&&p({pointsOfInterest:i.pointsOfInterest});case 9:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){_(i,n,o,a,s,"next",t)}function s(t){_(i,n,o,a,s,"throw",t)}a(void 0)}))});return function(t,r){return e.apply(this,arguments)}}(),500);return t(S,a),function(){t.cancel()}}}),[null==S?void 0:S.left,null==S?void 0:S.top,null==S?void 0:S.bottom,null==S?void 0:S.right].concat(g(null!=a?a:[]))),e.default.createElement(e.default.Fragment,null,e.default.createElement(o.default,null,(function(t){var r=t.onOpen,n=t.onClose;return t.onTourPlanned,O.map((function(t){return e.default.createElement(i.default,v({key:t._id},t,{onOpen:r,onClose:n}))}))})))}},void 0===(i=n.apply(e,o))||(t.exports=i)},70712:function(t,e){var r,n;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,void 0===(n="function"==typeof(r=function(t){"use strict";function e(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),t.clusterClick=function(t,e){var r=t.contained_points_of_interest;(0,e.jumpBounds)(n(r),o(r))};var n=function(t){return{longitude:Math.min.apply(Math,e(t.map((function(t){return t.location.coordinates[0]})))),latitude:Math.min.apply(Math,e(t.map((function(t){return t.location.coordinates[1]}))))}},o=function(t){return{longitude:Math.max.apply(Math,e(t.map((function(t){return t.location.coordinates[0]})))),latitude:Math.max.apply(Math,e(t.map((function(t){return t.location.coordinates[1]}))))}}})?r.apply(e,[e]):r)||(t.exports=n)},87437:function(t,e,r){var n,o,i;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(73796),r(60344),r(73941),r(68565)],void 0===(i="function"==typeof(n=function(t,e,r,n,o,i){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e,r){return(e=d(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}
1finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,d(n.key),n)}}function h(t,e,r){return e&&f(t.prototype,e),r&&f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function d(t){var e=function(t,e){if("object"!==u(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===u(e)?e:String(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.GasStationPin=_,t.gasStationPoiType=void 0,t.handleGastationPointsOfInterest=function(t){return j(S(t))},t.isCheapest=b,t.withCleanGasStations=P,e=a(e),r=a(r),n=a(n);var m=function(t){return e.default.createElement("svg",t,e.default.createElement("path",{fill:"currentColor",className:"st0",d:"M14.8 31.4C5.7 18.2 4 16.8 4 12 4 5.4 9.4 0 16 0s12 5.4 12 12c0 4.8-1.7 6.2-10.8 19.4-.6.8-1.8.8-2.4 0z"}),e.default.createElement("circle",{fill:"#fff",className:"st1",cx:"16",cy:"12",r:"10"}),e.default.createElement("g",{fill:"currentColor"},e.default.createElement("path",{className:"st0",d:"M16.9 7.7h-3.7v2.5c0 .2.2.6.6.6h3.1c.2 0 .6-.2.6-.6V8.3c0-.2-.2-.6-.6-.6zm-.6 1v.9h-2.1v-.9h2.1z"}),e.default.createElement("path",{className:"st0",d:"m20.5 6.4-.8.8 1.5 1.4v5.8c0 .2-.1.3-.3.3-.2 0-.3-.1-.3-.3V12c0-.7-.7-1.3-1.3-1.3H19v-3c0-.7-.7-1.3-1.3-1.3l-4.8-.1c-.7 0-1.3.7-1.3 1.3v9h-.7v1h8.9v-1H19v-4.8h.3c.2 0 .3.1.3.3v2.4c0 .7.7 1.3 1.3 1.3.7 0 1.3-.7 1.3-1.3V8.1l-1.7-1.7zm-7.8 10.2v-9c0-.2.1-.3.2-.3h4.8c.2 0 .3.1.3.3v9h-5.3z"})))};m.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",xmlSpace:"preserve"};var y=function(t){return e.default.createElement("svg",t,e.default.createElement("defs",null,e.default.createElement("path",{id:"a",d:"M0 0h853.656v768H0z"})),e.default.createElement("clipPath",{id:"b"},e.default.createElement("use",{xlinkHref:"#a",overflow:"visible"})),e.default.createElement("path",{clipPath:"url(#b)",fill:"#F8C412",d:"M163.689 629.443c16.381-2.715 30.325-9.958 39.261-20.396 4.369-5.102 6.917-11.08 7.171-16.832.477-10.757-1.798-18.842-6.76-24.029-4.792-5.008-12.438-7.69-22.741-7.989a32.341 32.341 0 0 1-3.078 3.046c-7.871 6.742-17.892 9.957-26.655 12.214-17.642 4.543-34.558 6.832-50.425 6.832-3.363 0-6.68-.104-9.947-.311-5.28-.331-10.094-1.2-14.477-2.61-1.016 3.427-.093 8.483.77 12.234 3.002 13.014 11.95 24.982 23.941 32.015 20.064 11.759 53.247 7.433 62.94 5.826M282.791 493.038c-11.154-11.266-23.226-16.009-33.995-13.36-.11.026-.217.063-.327.091 3.771 4.811 7.271 10.614 10.282 17.758 12.801 30.381 7.475 54.753 5.273 62.22 5.362 7.151 22.986 33.383 15.925 60.852a81.18 81.18 0 0 1-1.487 5.085c2.072.013 4.11-.217 6.089-.704 10.766-2.65 19.259-12.455 23.913-27.609 4.885-15.911 4.897-35.562.032-55.333-4.866-19.771-13.995-37.174-25.705-49"}),e.default.createElement("path",{clipPath:"url(#b)",fill:"#F8C412",d:"M201.903 621.81c-9.766 8.022-22.496 13.597-36.833 15.972-5.922.982-15.805 2.269-26.876 2.269-9.958 0-20.871-1.053-30.745-4.292-.847 4.395-1.634 11.635.77 17.148 5.246 12.029 16.663 19.092 25.314 22.9 24.833 10.931 53.484 9.022 72.99-4.87 13.119-9.34 14.161-17.104 14.161-26.281 0-6.439-4.775-20.665-18.781-22.846"}),e.default.createElement("path",{clipPath:"url(#b)",d:"M288.794 487.092c-13.329-13.461-28.249-19.011-42.018-15.62-1.52.375-3.014.873-4.473 1.46-7.89-7.604-16.399-12.04-23.876-15.937-5.888-3.063-10.969-5.713-14.529-9.272-9.396-9.402-10.927-66.46-9.013-103.972.445-8.738-3.597-15.831-11.386-19.97-13.994-7.438-36.948-3.724-53.396 8.64-6.51 4.897-21.864 19.274-23.807 46.964-1.774 25.271 8.167 53.587 29.538 84.231-56.878 14.601-78.671 34.499-86.893 48.852-5.769 10.071-6.976 20.826-3.589 31.967 4.644 15.268 12.098 25.646 22.892 31.591-1.961 5.351-.992 11.737.331 17.474 3.514 15.236 13.943 29.222 27.902 37.404a50.399 50.399 0 0 0 3.011 1.613c-1.139 5.123-2.657 15.418.984 23.766 6.338 14.531 19.625 22.845 29.656 27.26 11.779 5.185 24.365 7.738 36.627 7.736 16.369 0 32.16-4.551 44.669-13.458 2.377-1.692 4.429-3.372 6.212-5.043.227.038.456.067.691.067.061 0 .122 0 .181-.003.5-.021 12.401-.592 25.9
113-7.285 10.154-5.029 22.802-14.414 30.782-31.581 1.141.112 2.276.17 3.406.17a33.22 33.22 0 0 0 7.959-.962c13.77-3.388 24.414-15.226 29.973-33.334 5.329-17.351 5.387-38.6.161-59.834-5.226-21.232-15.136-40.027-27.908-52.924M76.81 591.601c-.863-3.751-1.785-8.805-.77-12.233 4.383 1.41 9.197 2.278 14.477 2.61 3.267.206 6.583.309 9.947.309 15.868 0 32.783-2.287 50.425-6.83 8.763-2.255 18.783-5.472 26.655-12.215a32.573 32.573 0 0 0 3.079-3.045c10.301.297 17.947 2.98 22.739 7.989 4.961 5.188 7.237 13.274 6.759 24.029-.253 5.753-2.801 11.73-7.17 16.832-8.936 10.438-22.88 17.682-39.261 20.396-9.693 1.606-42.876 5.933-62.938-5.829-11.993-7.029-20.941-18.999-23.942-32.013m129.711 79.336c-19.506 13.892-48.154 15.801-72.989 4.87-8.652-3.809-20.066-10.873-25.313-22.899-2.405-5.515-1.618-12.755-.772-17.149 9.874 3.239 20.79 4.292 30.746 4.292 11.073 0 20.954-1.288 26.876-2.27 14.336-2.374 27.066-7.948 36.832-15.97 14.006 2.183 18.782 16.406 18.782 22.847.001 9.175-1.042 16.939-14.162 26.279m18.584-7.512c3.563-6.474 4.031-12.744 4.031-18.768 0-4.781-1.647-12.238-6.269-18.841-2.707-3.865-7.118-8.383-13.859-10.871.117-.136.246-.263.361-.4 5.591-6.529 8.856-14.325 9.195-21.956.582-13.15-2.479-23.325-9.097-30.244-5.44-5.689-13.238-9.113-23.234-10.225 3.3-6.062 5.363-12.938 5.363-18.92.003-11.221-5.466-27.324-20.889-35.778-25.986-14.243-62.58 2.646-88.702 19.317a4.226 4.226 0 1 0 4.548 7.124c43.838-27.985 67.75-25.796 80.091-19.03 11.402 6.251 16.502 18.75 16.5 28.366-.001 6.321-3.287 14.501-7.802 20.159l-.012.015c-1.04 1.302-2.145 2.469-3.287 3.449-6.558 5.618-15.44 8.436-23.264 10.449-20.521 5.283-39.943 7.395-57.733 6.271-20.018-1.261-31.264-10.702-37.608-31.567-2.723-8.947-1.794-17.223 2.835-25.305 10.854-18.949 41.954-35.404 87.569-46.337l.024-.005a4.251 4.251 0 0 0 1.512-.701l.005-.005c.225-.165.433-.352.621-.557.082-.09.141-.19.213-.284.093-.122.195-.24.274-.37.073-.119.122-.247.181-.369.06-.124.127-.241.175-.37.042-.114.063-.235.095-.354.039-.146.088-.288.11-.438.022-.132.019-.266.027-.4.008-.137.031-.272.023-.413a4.072 4.072 0 0 0-.112-.826v-.005a4.292 4.292 0 0 0-.712-1.532c-22.665-30.942-33.281-59.113-31.554-83.729 1.7-24.219 14.871-36.602 20.456-40.8 15.367-11.553 34.618-13.105 44.352-7.934 4.862 2.585 7.189 6.65 6.912 12.078-.197 3.84-4.617 94.274 11.475 110.374 4.479 4.481 10.367 7.55 16.601 10.798 12.694 6.612 27.083 14.109 36.44 36.315 13.739 32.606 4.493 58.017 4.401 58.258-.021.056-.026.114-.047.173a5.337 5.337 0 0 0-.105.386c-.032.146-.064.288-.081.435-.016.117-.019.236-.024.354-.005.156-.01.312.001.463.008.118.029.233.046.351.024.149.049.296.088.441.032.121.074.236.118.354.051.139.103.275.167.408.054.11.118.216.183.322.081.134.167.265.263.39.03.042.05.086.084.126.229.279 22.73 27.904 15.707 55.226a71.605 71.605 0 0 1-3.024 9.188c-.011.025-.019.052-.029.075-10.471 25.618-32.351 33.352-43.603 35.669m83.358-66.056c-4.654 15.154-13.146 24.959-23.913 27.61a24.778 24.778 0 0 1-6.089.704 81.676 81.676 0 0 0 1.487-5.088c7.062-27.467-10.563-53.698-15.925-60.85 2.202-7.467 7.527-31.841-5.273-62.218-3.011-7.146-6.51-12.949-10.282-17.76.11-.029.216-.064.327-.089 10.769-2.65 22.841 2.093 33.995 13.358 11.71 11.828 20.84 29.228 25.705 48.998 4.865 19.774 4.853 39.426-.032 55.335"}),e.default.createElement("path",{clipPath:"url(#b)",fill:"#F8C412",d:"M256.058 563.268c-.034-.038-.054-.084-.084-.126a3.915 3.915 0 0 1-.263-.39c-.064-.106-.129-.212-.181-.322a4.21 4.21 0 0 1-.169-.407c-.042-.119-.086-.234-.118-.354a4.505 4.505 0 0 1-.088-.443c-.017-.115-.038-.232-.046-.351-.011-.153-.006-.307-.001-.463.005-.119.008-.236.024-.354.017-.146.049-.287.081-.433.032-.131.064-.262.106-.389.019-.058.024-.116.045-.171.092-.244 9.338-25.652-4.401-58.257-9.357-22.208-23.746-29.705-36.44-36.317-6.234-3.248-12.122-6.316-16.601-10.797-16.092-16.101-11.672-106.535-11.475-110.377.277-5.427-2.048-9.49-6.912-12.075-9.734-5.172-28.984-3.619-44.352 7.932-5.584 4.2-18.755 16.581-20.456 40.802-1.727 24.615 8.889 52.785 31.554 83.729l.012.015a4.315 4.315 0 0 1 .7 1.515v.005c.064.272.104.549.112.825.007.14-.015.275-.023.414-.008.135-.005.269-.027.402-.022.148-.071.291-.11.437-.032.12-.053.239-.095.354-.047.129-.115.246-.175.368-.059.124-.108.253-.181.371-.08.13-.181.248-.274.371-.073.093-.131.193-.213.285-.188.205-.396.39-.621.555l-.005.007c-.23.167-.473.308-.721.425-.25.114-.513.209-.791.276l-.024.005c-45.615 10.932-76.715 27.386-87.569 46.337-4.63 8.079-5.558 16.355-2.835 25.303 6.344 20.863 17.591 30.307 37.608 31.567 17.79 1.123 37.212-.988 57.733-6.271 7.824-2.014 16.706-4.831 23.264-10.449 1.142-.98 2.248-2.147 3.287-3.449l.012-.015c4.515-5.658 7.8-13.838 7.802-20.159.001-9.615-5.098-22.115-16.5-28.3
166-12.34-6.766-36.253-8.955-80.091 19.032a4.388 4.388 0 0 1-.822.4c1.559-4.288 5.306-12.133 13.013-17.072a56.177 56.177 0 0 1 2.536-1.525c23.001-11.685 49.372-19.239 69.427-8.244 15.423 8.452 20.892 24.556 20.889 35.776 0 5.981-2.063 12.858-5.363 18.919 9.996 1.112 17.793 4.536 23.234 10.225 6.618 6.918 9.679 17.095 9.097 30.245-.339 7.629-3.604 15.429-9.195 21.955-.115.137-.244.266-.361.401 6.741 2.486 11.152 7.004 13.859 10.871 4.622 6.604 6.268 14.06 6.268 18.839 0 6.027-.467 12.296-4.03 18.768 11.252-2.314 33.132-10.049 43.606-35.667l.029-.075a71.673 71.673 0 0 0 3.024-9.189c7.021-27.32-15.481-54.947-15.709-55.224"}),e.default.createElement("path",{clipPath:"url(#b)",fill:"#2196F3",d:"M728.691 332.428c5.304 5.128 10.248 9.78 15.03 14.277 7.444 7 14.183 13.345 20.006 19.439.883-1.46 1.786-3.166 2.335-4.795 2.036-6.031 3.959-12.438 3.186-18.617-1.467-11.749-10.64-21.445-20.336-30.174-25.861-23.291-50.031-39.632-83.934-43.68a157.93 157.93 0 0 0-3.158-.34c-4.056 6.939-8.537 13.955-13.455 21.04 38.418 9.956 51.738 15.2 80.326 42.85"}),e.default.createElement("path",{clipPath:"url(#b)",fill:"#2196F3",d:"M468.749 729.911c40.255-3.804 174.188-16.785 207.508-24.063 27.083-5.915 31.016-23.064 37.53-51.478.861-3.755 1.751-7.64 2.744-11.687 8.774-35.781 46.636-173.685 58.712-213.849 8.234-27.386-2.188-42.13-25.089-64.362-3.753-3.641-7.828-7.479-12.222-11.612-4.804-4.516-9.771-9.188-15.116-14.357-12.02-11.625-21.037-19.031-30.637-24.531-6.504-.809-14.135.822-22.961 4.92-8.076 3.749-17.147 9.555-27.268 17.44-5.209 4.06-27.822 22.741-51.764 42.52-15.4 12.724-31.327 25.88-43.107 35.544-3.721 3.053-7.551 6.068-11.259 8.984-26.03 20.485-52.946 41.663-63.149 93.113-.778 3.928-1.438 7.165-2.028 10.061-4.257 20.861-4.909 24.068-20.832 144.537-.219 2.186-.495 4.591-.78 7.102-1.928 16.841-4.566 39.901 4.919 49.584a15.084 15.084 0 0 0 2.791 2.219c4.361.259 8.402.256 12.008-.085"}),e.default.createElement("path",{clipPath:"url(#b)",fill:"#F8C412",d:"M491.324 373.383c-4.986 9.057-13.182 17.511-24.017 24.414-23.248 14.813-50.288 17.604-68.889 7.107-3.709-2.093-5.715-5.356-7.657-8.511-2.389-3.882-4.645-7.548-10.343-9.786-7.519-2.954-13.368-1.643-19.961 2.782-1.454 4.888-1.759 9.817-.966 14.918 1.57 10.104 7.797 18.608 18.001 24.597 20.466 12.006 52.583 12.256 83.817.659 27.813-10.329 48.868-28.716 61.403-48.365-1.174.06-2.336.093-3.486.093-10.681 0-20.247-2.725-27.902-7.908"}),e.default.createElement("path",{clipPath:"url(#b)",fill:"#2196F3",d:"M639.31 302.047c-18.312 24.106-39.179 44.176-60.481 58.112-15.75 10.306-31.214 16.983-45.464 19.721a110.6 110.6 0 0 1-7.152 11.23c-14.895 20.6-36.901 37.069-61.962 46.375-16.191 6.016-32.695 9.01-47.977 9.01-16.384 0-31.364-3.442-43.057-10.303-12.468-7.313-20.1-17.892-22.074-30.589a42.295 42.295 0 0 1-.476-8.249 385.164 385.164 0 0 0-4.209 3.876c-4.836 4.505-10.205 9.486-16.377 14.104a43.051 43.051 0 0 1-4.4 3.129c-.124.083-.24.169-.364.251l-.017-.024a41.283 41.283 0 0 1-7.503 3.592c-7.192 16.277-9.762 34.17-9.916 59.433-.076 12.64 3.071 64.837 5.847 110.892 1.58 26.182 3.07 50.914 3.946 67.766 2.07 39.852 19.624 43.972 48.71 50.797 3.045.715 6.184 1.45 9.407 2.257 3.293.82 6.646 1.666 10.033 2.522 21.439 5.414 44.952 11.348 63.92 13.445-9.494-11.567-6.965-33.73-4.912-51.68.286-2.49.559-4.875.782-7.108 15.951-120.68 16.61-123.908 20.891-144.896.59-2.89 1.248-6.117 2.024-10.035 10.506-52.983 38.045-74.652 64.682-95.614 3.688-2.902 7.504-5.903 11.191-8.929 11.775-9.662 27.698-22.814 43.097-35.537 23.964-19.797 46.601-38.497 51.857-42.594 9.24-7.201 17.696-12.728 25.411-16.616 7.063-3.56 13.504-5.739 19.342-6.532-10.616-4.821-22.936-8.26-41.006-12.903-.734 1.005-1.456 2.01-2.207 3.018-.525.699-1.057 1.386-1.586 2.079"}),e.default.createElement("path",{clipPath:"url(#b)",fill:"#E5EEFC",d:"M527.825 372.218a80.78 80.78 0 0 0 10.266-2.124c28.55-7.816 63.186-32.267 93.784-72.233.749-.979 1.501-1.953 2.247-2.949.053-.073.104-.144.158-.215a344.485 344.485 0 0 0 2.696-3.675 353.519 353.519 0 0 0 2.639-3.688c4.675-6.608 8.917-13.079 12.729-19.39a281.925 281.925 0 0 0 4.796-8.256c45.332-81.175 20.044-134.937-22.476-137.545a75.986 75.986 0 0 0-4.617-.141c-63.759-.008-117.052 79.956-117.052 79.956s21.148-46.257-10.911-62.814c-2.759-1.423-6.15-2.175-10.032-2.175-21.936 0-59.463 24.014-85.929 86.366a279.636 279.636 0 0 0-3.337 8.235 89.99 89.99 0 0 1 8.793 4.444c23.376 13.517 40.569 27.891 53.14 42.196a154.766 154.766 0 0 1 2.847 3.334 147.77 147.77 0 0 1 2.736 3.389 141.223 141.223 0 0 1 3.58 4.797c4.583-10.382 13.572-22.255 13.572-22.255l-2.133 5.939c-.075.231-.151.446-.228.684a116.825 116.825 0 0 0-1.438 4.789 117.492 117.492 0 0 0-3.734 19.978 111.504 111.504 0 0 0-.306 3.618 172.206 172.206 0 0 0-.337 8.409 202.312 202.312 0 0 0-.009 4.834c.004.336.007.669.014 1.011.151 8.699 1.015 19.795 3.837 29.537 1.227 4.233 2.823 8.207 4.896 11.617a28.936 28.936 0 0 0 3.296 4.436l.028.031a22.868 22.868 0 0 0 2.396 2.304c.347.282.702.556 1.062.823 6.556 4.921 14.884 7.356 24.428 7.356 2.767 0 5.641-.216 8.599-.623m58.912-144.319a117.173 117.173 0 0 1 4.207-7.976c15.782 2.638 26.162 7.903 26.162 7.903s-5.842-10.006-19.943-17.456c10.038-13.647 21.259-21.087 28.49-17.622 9.92 4.752 8.576 28.192-2.997 52.357-7.228 15.088-16.734 26.889-25.271 32.469-2.271 1.486-4.474 2.522-6.546 3.071-2.614.69-5.024.606-7.103-.389a8.345 8.345 0 0 1-1.711-1.094c-1.392-1.142-2.479-2.756-3.277-4.753-3.801-9.493-.982
1-27.781 7.989-46.51m-124.333-11.943a96.103 96.103 0 0 1 3.391-6.429c12.721 2.127 21.086 6.37 21.086 6.37s-4.71-8.064-16.073-14.069c8.09-11 17.135-16.994 22.965-14.201 7.993 3.828 6.91 22.721-2.42 42.197-9.329 19.475-23.372 32.159-31.364 28.332-7.996-3.831-6.913-22.722 2.415-42.2"}),e.default.createElement("path",{clipPath:"url(#b)",fill:"#F8C412",d:"M466.217 320.061a194.773 194.773 0 0 0-2.663-3.434 171.954 171.954 0 0 0-2.754-3.397c-5.049-6.063-10.208-11.43-15.427-16.17a146.238 146.238 0 0 0-6.876-5.857c-15.729-12.55-31.854-19.766-47.241-23.45a110.65 110.65 0 0 0-4.137-.911 112.435 112.435 0 0 0-4.157-.758c-20.474-3.348-39.203-.813-53.336 3.069-7.65 2.099-13.954 4.592-18.458 6.757 11.888 11.445 21.812 25.341 28.803 40.593 7.445 16.248 11.102 33.125 10.89 48.758a92.017 92.017 0 0 1-.297 6.323 83.692 83.692 0 0 1-.864 6.906 75.201 75.201 0 0 1-2.583 10.689c2.075-1.827 4.163-3.556 6.283-5.117a61.123 61.123 0 0 1 1.917-1.361c3.524-2.385 7.171-4.246 11.056-5.258 5.188-1.351 10.803-1.189 17.138 1.299 8.325 3.271 11.719 8.789 14.449 13.225 1.568 2.546 2.804 4.558 4.611 5.577 18.101 10.217 43.275 3.908 60.196-6.875 10.302-6.564 17.863-14.569 22.013-22.959-8.896-10.056-12.368-26.148-13.514-40.647a201.075 201.075 0 0 0-5.049-7.002M326.409 399.207a45.272 45.272 0 0 1-5.014-.261 55.556 55.556 0 0 1-8.603-1.64c-18.452-5.008-38.645-19.616-53.794-40.798l-27.7 17.51c23 31.514 57.474 46.897 80.306 41.3.352-.088.712-.155 1.058-.253a33.101 33.101 0 0 0 4.725-1.719 34.164 34.164 0 0 0 3.36-1.746l.137-.084a34.142 34.142 0 0 0 4.393-3.13c.022-.02.044-.041.068-.061 3.148-2.653 5.935-5.937 8.311-9.8-.542.105-1.098.179-1.65.263a38.734 38.734 0 0 1-5.597.419"}),e.default.createElement("path",{clipPath:"url(#b)",fill:"#816916",d:"M336.563 393.079c1.537-3.349 2.766-6.908 3.699-10.628a70.978 70.978 0 0 0 1.496-7.852c2.233-16.779-.984-36.052-9.471-54.574-6.873-14.994-16.759-28.574-28.612-39.565-4.874-4.52-10.07-8.613-15.541-12.169-13.429-8.724-27.122-13.335-39.038-13.335-1.674 0-3.306.106-4.902.288-1.98.228-3.904.582-5.747 1.097a32.156 32.156 0 0 0-4.897 1.811l-.002-.003-.24.112s0 .002-.002.002c-7.748 3.663-14.056 10.417-18.426 19.824-9.398 20.233-7.871 48.87 3.984 74.738a122.501 122.501 0 0 0 12.435 21.195l27.699-17.511c15.148 21.183 35.344 35.791 53.795 40.799 2.92.791 5.794 1.34 8.601 1.64 1.7.18 3.372.27 5.014.261a38.891 38.891 0 0 0 5.598-.418c.551-.084 1.107-.157 1.65-.265a50.489 50.489 0 0 0 2.797-5.197c.04-.081.073-.167.11-.25"}),e.default.createElement("path",{clipPath:"url(#b)",d:"M607.424 60.214c5.724-2.508 11.602-4.655 17.605-6.264 6.006-1.576 12.104-2.778 18.253-3.134 6.138-.373 12.306.049 18.21 1.496 5.927 1.363 11.554 3.86 16.571 7.286a49.055 49.055 0 0 1 7.047 5.794c2.173 2.143 4.237 4.418 6.101 6.87 3.797 4.847 6.844 10.295 9.479 15.929 2.685 5.626 4.801 11.535 6.679 17.529l2.038-.556c.547-1.799.902-3.578 1.257-5.381.256-1.779.506-3.583.636-5.379.128-1.799.157-3.59.152-5.403-.002-.909-.071-1.799-.119-2.704a42.085 42.085 0 0 0-.208-2.717c-.401-3.605-1.05-7.247-2.116-10.833-.453-1.825-1.147-3.591-1.783-5.39-.764-1.754-1.455-3.563-2.394-5.282-1.731-3.51-3.943-6.884-6.49-10.105-2.556-3.205-5.51-6.248-8.864-8.898-6.639-5.373-14.732-9.338-23.034-11.296-8.308-2.013-16.703-2.175-24.481-1.037a71.579 71.579 0 0 0-21.607 6.799c-3.285 1.632-6.418 3.466-9.358 5.554-1.467 1.053-2.928 2.066-4.31 3.211-1.383 1.146-2.739 2.295-4.051 3.504-2.594 2.464-5.04 5.055-7.247 7.909-2.212 2.838-4.235 5.843-5.83 9.315l1.194 1.741a136.977 136.977 0 0 1 16.67-8.558M467.899 105.364c2.425-3.291 5.039-6.541 7.813-9.585 2.731-3.093 5.601-6.054 8.638-8.816 6.051-5.511 12.615-10.548 19.984-13.836 3.636-1.712 7.446-3.018 11.36-3.769 3.916-.772 7.92-.772 11.869-.366l1.483.183.742.092.729.168 2.925.667c.959.291 1.902.633 2.859.948.474.168.963.292 1.422.502l1.384.616c3.784 1.466 7.197 3.75 10.645 5.987l1.308-1.66c-.227-1.429-.611-2.739-1.026-4.077-.441-1.296-.901-2.633-1.558-3.79-.602-1.23-1.311-2.366-2.03-3.557-.339-.622-.79-1.102-1.21-1.644l-1.311-1.601c-1.763-2.146-3.966-3.904-6.266-5.628-1.191-.805-2.443-1.528-3.725-2.253l-.969-.522-1.008-.439a43.27 43.27 0 0 0-2.055-.837c-5.538-2.133-11.756-3.023-17.717-2.563-5.966.441-11.663 2.043-16.732 4.377a50.637 50.637 0 0 0-13.357 8.916c-3.806 3.52-7.003 7.46-9.537 11.75-1.277 2.137-2.4 4.347-3.312 6.676-.957 2.291-1.716 4.681-2.322 7.123-.572 2.47-1.002 4.984-1.167 7.613-.181 2.615-.165 5.3.351 8.207l1.79 1.118z"}),e.default.createElement("path",{clipPath:"url(#b)",fill:"#FBDC71",d:"M382.962 266.083a116.195 116.195 0 0 1 8.295 1.668c15.386 3.685 31.511 10.902 47.24 23.452 1.171.934 2.336 1.897 3.502 2.89 1.127.961 2.253 1.946 3.374 2.967 5.22 4.739 10.378 10.105 15.428 16.169a188.617 188.617 0 0 1 2.753 3.396c.891 1.123 1.78 2.265 2.663 3.436a202.894 202.894 0 0 1 5.049 7 164.336 164.336 0 0 1-.489-13.139c0-.838.044-1.715.11-2.604.081-2.081.197-5.481.331-10.448-.305-.478-.601-.961-.911-1.434a134.797 134.797 0 0 0-7.9-10.81 147.647 147.647 0 0 0-5.71-6.646c-14.926-16.392-32.975-29.184-49.351-38.652a80.446 80.446 0 0 0-7.514-3.817 88.941 88.941 0 0 0-3.893-1.626 96.11 96.11 0 0 0-3.968-1.449c-18.524-6.338-41.593-8.115-67.825-5.091-13.676 1.578-27.77 4.412-41.735 8.317a295.509 295.509 0 0 0-23.629 7.694c10.955 1.79 22.61 6.474 33.96 13.849 6.531 4.246 12.705 9.196 18.426 14.706 4.506-2.167 10.809-4.659 18.459-6.76 14.132-3.88 32.859-6.418 53.335-3.068"}),e.default.createElement("path",{clipPath:"url(#b)",fill:"#FAD97B",d:"m491.339 362.379.004-.021a.808.808
10 0 1-.03-.031.84.84 0 0 0 .026.052"}),e.default.createElement("path",{clipPath:"url(#b)",d:"M769.619 372.615c1.437-2.143 3.368-5.355 4.45-8.564 2.245-6.651 4.56-14.417 3.566-22.366-1.813-14.495-12.159-25.584-23.066-35.406-26.969-24.287-52.313-41.362-88.229-45.743 9.099-16.816 15.598-33.15 19.411-48.844 6.075-24.994 4.973-47.504-3.188-65.098-9.094-19.611-26.363-31.596-47.383-32.885a83.334 83.334 0 0 0-5.135-.158h-.012c-15.95 0-32.493 4.54-49.175 13.495-13 6.979-26.134 16.66-39.033 28.771a263.21 263.21 0 0 0-13.558 13.718c-.144-6.047-1.164-11.603-3.053-16.588-3.555-9.38-10.033-16.55-19.256-21.312-4.006-2.069-8.686-3.119-13.909-3.119-16.579 0-36.205 10.435-53.844 28.629-15.412 15.899-28.893 37.245-39.729 62.654a290.3 290.3 0 0 0-3.56 8.695c-48.269-16.579-117.092-1.409-165.323 22.174l.005.01c-9.444 4.535-17.251 12.794-22.386 23.849-10.568 22.754-9.085 53.339 3.965 81.818a130.343 130.343 0 0 0 11.196 19.666c9.706 14.069 22.069 26.119 36.065 34.943 14.551 9.172 29.665 13.992 43.176 13.992 2.037 0 4.027-.131 5.986-.351-5.672 15.178-8.026 32.543-8.175 57.065-.078 12.919 2.94 63.011 5.86 111.452 1.58 26.165 3.069 50.881 3.943 67.694 2.399 46.193 25.708 51.663 55.219 58.588 3.008.706 6.109 1.434 9.291 2.226 3.286.821 6.629 1.666 10.01 2.52 27.061 6.835 57.365 14.489 78.878 14.489 2.42 0 4.734-.098 6.915-.304 40.375-3.817 174.733-16.843 208.516-24.221 32.318-7.057 37.457-29.472 43.964-57.846.854-3.726 1.737-7.577 2.715-11.562 8.757-35.707 46.545-173.339 58.6-213.431 7.544-25.085 1.115-41.412-13.717-58.65m-20.705-60.056c9.692 8.73 18.867 18.426 20.335 30.174.772 6.179-1.15 12.586-3.186 18.617-.55 1.629-1.454 3.335-2.336 4.797-5.825-6.097-12.562-12.441-20.008-19.443-4.78-4.495-9.725-9.146-15.028-14.274-28.589-27.65-41.906-32.895-80.328-42.851a320.763 320.763 0 0 0 13.458-21.039c1.042.102 2.093.213 3.159.341 33.899 4.044 58.07 20.387 83.934 43.678m-342.792-89.224c26.467-62.352 63.994-86.368 85.93-86.368 3.882 0 7.273.752 10.031 2.175 32.061 16.557 10.912 62.816 10.912 62.816s53.291-79.965 117.05-79.957c1.531 0 3.077.047 4.621.141 42.518 2.608 67.804 56.37 22.473 137.545a249.201 249.201 0 0 1-2.341 4.112 288.762 288.762 0 0 1-2.454 4.144c-3.812 6.313-8.055 12.78-12.729 19.39a325.842 325.842 0 0 1-2.637 3.688 401.836 401.836 0 0 1-2.698 3.676c-.054.071-.104.142-.158.215-.744.999-1.496 1.97-2.247 2.948-30.599 39.967-65.234 64.417-93.784 72.234a80.708 80.708 0 0 1-10.266 2.124c-2.958.405-5.832.622-8.6.622-9.544 0-17.872-2.436-24.427-7.355a35.413 35.413 0 0 1-1.063-.823 22.57 22.57 0 0 1-2.393-2.303l-.001-.001-.004.021a.296.296 0 0 1-.024-.055 28.584 28.584 0 0 1-3.297-4.434c-2.074-3.41-3.671-7.383-4.897-11.617-2.824-9.741-3.686-20.838-3.836-29.537a175.183 175.183 0 0 1 .119-10.274c.073-1.797.157-3.166.212-3.981.083-1.228.188-2.431.306-3.617a117.297 117.297 0 0 1 3.736-19.979c.466-1.68.947-3.284 1.435-4.789.076-.236.154-.451.229-.682l2.135-5.94s-8.993 11.873-13.575 22.255a144.26 144.26 0 0 0-3.579-4.797 156.16 156.16 0 0 0-5.583-6.722c-12.573-14.307-29.766-28.681-53.141-42.197a89.673 89.673 0 0 0-8.794-4.444 286.864 286.864 0 0 1 3.339-8.234m113.104 157.956c1.15 0 2.313-.032 3.484-.094-12.533 19.648-33.589 38.037-61.401 48.364-31.234 11.599-63.351 11.348-83.816-.657-10.206-5.988-16.43-14.493-18.001-24.599-.792-5.099-.489-10.028.966-14.916 6.593-4.426 12.44-5.735 19.961-2.782 5.698 2.238 7.953 5.904 10.343 9.786 1.942 3.154 3.948 6.418 7.657 8.511 18.602 10.497 45.641 7.706 68.889-7.107 10.835-6.903 19.03-15.357 24.017-24.414 7.654 5.183 17.22 7.908 27.901 7.908M282.409 239.662c13.964-3.906 28.059-6.737 41.736-8.317 26.231-3.023 49.301-1.246 67.823 5.092a90.397 90.397 0 0 1 7.863 3.073 81.43 81.43 0 0 1 7.514 3.817c16.376 9.47 34.423 22.26 49.351 38.651a147.783 147.783 0 0 1 5.712 6.648 134.71 134.71 0 0 1 7.898 10.81c.309.472.606.955.911 1.433a929.393 929.393 0 0 1-.331 10.448 35.55 35.55 0 0 0-.112 2.604c-.007 4.053.124 8.515.489 13.141 1.146 14.5 4.622 30.592 13.516 40.649-4.149 8.389-11.709 16.394-22.013 22.958-16.92 10.783-42.095 17.09-60.194 6.875-1.809-1.02-3.046-3.031-4.613-5.579-2.729-4.432-6.125-9.951-14.45-13.223-6.334-2.489-11.95-2.649-17.138-1.297-3.885 1.01-7.531 2.87-11.054 5.256-.646.436-1.284.892-1.92 1.361-2.121 1.563-4.208 3.29-6.284 5.117a75.269 75.269 0 0 0 2.584-10.689c.378-2.265.669-4.566.866-6.906.172-2.082.266-4.191.294-6.323.213-15.634-3.442-32.51-10.887-48.756-6.994-15.254-16.917-29.15-28.805-40.595-5.723-5.51-11.895-10.46-18.428-14.704-11.349-7.377-23.005-12.06-33.961-13.849a296.132 296.132 0 0 1 23.633-7.695m-51.11 134.357a122.501 122.501 0 0 1-12.435-21.195c-11.855-25.868-13.382-54.505-3.983-74.738 4.371-9.407 10.677-16.164 18.425-19.824.002 0 .002-.002.002-.002l.24-.112.002.003a32.234 32.234 0 0 1 4.897-1.811c1.843-.515 3.767-.869 5.747-1.097a43.414 43.414 0 0 1 4.902-.288c11.916 0 25.61 4.61 39.038 13.335 5.471 3.557 10.667 7.65 15.541 12.169 11.854 10.992 21.739 24.571 28.612 39.565 8.487 18.522 11.704 37.795 9.471 54.574a71.023 71.023 0 0 1-1.496 7.852c-.934 3.72-2.162 7.277-3.699 10.628-.037.083-.071.169-.11.248a50.484 50.484 0 0 1-2.796 5.197c-2.377 3.865-5.164 7.148-8.312 9.802l-.069.061a34.449 34.449 0 0 1-4.392 3.131l-.139.083a33.092 33.092 0 0 1-3.36 1.744 32.756 32.756 0 0 1-4.723 1.721c-.345.098-.708.165-1.058.252-22.833 5.599-57.305-9.785-80.305-41.298m154.523 341.928c-3.387-.854-6.739-1.701-10.035-2.524-3.221-.803
1-6.359-1.54-9.407-2.256-29.083-6.824-46.638-10.944-48.709-50.796-.875-16.852-2.365-41.584-3.944-67.768-2.776-46.053-5.925-98.251-5.846-110.89.153-25.263 2.723-43.157 9.916-59.433a41.381 41.381 0 0 0 7.503-3.592l.016.024c.124-.082.241-.168.362-.251a43.376 43.376 0 0 0 4.401-3.129c6.173-4.617 11.54-9.599 16.375-14.104a436.62 436.62 0 0 1 4.212-3.876 42.446 42.446 0 0 0 .474 8.249c1.974 12.697 9.609 23.275 22.076 30.589 11.694 6.86 26.674 10.304 43.057 10.304 15.282 0 31.785-2.997 47.978-9.011 25.06-9.306 47.066-25.775 61.961-46.375a110.771 110.771 0 0 0 7.152-11.231c14.252-2.736 29.714-9.414 45.464-19.719 21.303-13.938 42.168-34.006 60.483-58.112.527-.696 1.061-1.381 1.583-2.082.752-1.009 1.473-2.011 2.209-3.017 18.07 4.644 30.388 8.081 41.004 12.903-5.838.794-12.278 2.973-19.342 6.531-7.715 3.888-16.171 9.417-25.411 16.618-5.257 4.097-27.894 22.796-51.858 42.595-15.397 12.721-31.32 25.873-43.096 35.535-3.688 3.023-7.502 6.027-11.189 8.929-26.637 20.96-54.178 42.631-64.684 95.614-.776 3.918-1.435 7.146-2.024 10.036-4.282 20.986-4.938 24.214-20.889 144.895a539.51 539.51 0 0 1-.784 7.108c-2.053 17.949-4.58 40.112 4.91 51.68-18.968-2.096-42.478-8.03-63.918-13.444m389.421-287.113c-12.076 40.168-49.938 178.069-58.712 213.851-.992 4.047-1.883 7.932-2.744 11.687-6.515 28.415-10.447 45.563-37.53 51.479-33.319 7.275-167.253 20.257-207.506 24.061-3.608.343-7.649.346-12.01.085a15.01 15.01 0 0 1-2.791-2.219c-9.485-9.684-6.847-32.745-4.921-49.584.287-2.511.563-4.916.78-7.102 15.925-120.469 16.577-123.676 20.834-144.535.591-2.896 1.25-6.135 2.028-10.063 10.203-51.45 37.119-72.63 63.15-93.113 3.707-2.916 7.537-5.932 11.258-8.984 11.78-9.664 27.707-22.82 43.107-35.543 23.941-19.78 46.555-38.463 51.764-42.521 10.12-7.885 19.191-13.689 27.268-17.439 8.826-4.096 16.457-5.73 22.961-4.921 9.6 5.502 18.617 12.908 30.637 24.532 5.345 5.168 10.313 9.84 15.114 14.356 4.396 4.136 8.471 7.972 12.224 11.612 22.901 22.233 33.324 36.977 25.089 64.361"}),e.default.createElement("path",{clipPath:"url(#b)",d:"M459.988 258.155c7.994 3.83 22.037-8.855 31.364-28.33 9.332-19.476 10.413-38.369 2.418-42.198-5.828-2.792-14.873 3.203-22.963 14.203 11.363 6.002 16.074 14.067 16.074 14.067s-8.366-4.242-21.085-6.37a95.196 95.196 0 0 0-3.393 6.43c-9.327 19.476-10.41 38.368-2.415 42.198M582.024 279.162a8.304 8.304 0 0 0 1.714 1.093c2.076.996 4.486 1.081 7.099.39 2.074-.548 4.274-1.584 6.548-3.069 8.537-5.581 18.044-17.383 25.27-32.47 11.577-24.165 12.919-47.605 3-52.357-7.232-3.465-18.455 3.975-28.491 17.622 14.1 7.45 19.943 17.456 19.943 17.456s-10.378-5.267-26.162-7.903a117.173 117.173 0 0 0-4.207 7.976c-8.972 18.729-11.792 37.016-7.991 46.51.799 1.996 1.889 3.611 3.277 4.752"}),e.default.createElement("path",{clipPath:"url(#b)",fill:"#BE4052",d:"M688.059 510.009c-8.454 1.768-16.612 4.88-24.296 8.879-7.706 3.97-15.044 8.64-22.157 13.618-7.095 5.016-14.035 10.267-20.707 15.829-13.379 11.05-25.9 23.251-36.373 37.11-5.242 6.914-10.077 14.145-14.278 21.742-4.215 7.591-7.874 15.481-10.998 23.593a.42.42 0 0 1-.805-.226l.011-.066c1.576-8.73 4.385-17.216 7.781-25.508l2.819-6.102c.975-2.019 2.056-3.982 3.086-5.986.988-2.029 2.219-3.904 3.386-5.827l1.766-2.88c.602-.952 1.248-1.871 1.869-2.809.398-.613.813-1.218 1.222-1.826-3.751-1.673-7.684-2.923-11.712-3.667-6.077-1.175-12.349-1.185-18.464-.263-6.125.926-12.087 2.801-17.751 5.325-5.667 2.522-11.048 5.682-16.104 9.282-10.179 7.136-18.967 16.174-26.388 26.16a134.03 134.03 0 0 0-10.073 15.729c-2.653 4.766-5.034 9.684-7.185 14.706a192.842 192.842 0 0 0 22.304 8.686c35.936 11.496 71.915 13.589 104.045 6.061 43.7-10.243 75.204-33.771 93.631-69.938 16.898-33.158 17.564-66.529 16.681-82.212a58.593 58.593 0 0 0-21.31.59"}),e.default.createElement("path",{clipPath:"url(#b)",d:"M717.562 505.394c-1.83-22.585-5.988-42.054-12.354-57.867-7.617-18.922-18.407-32.748-32.151-41.269a38.634 38.634 0 0 1 7.137-.635c1.445-.026 2.878.143 4.314.277 1.417.253 2.849.448 4.239.845.702.166 1.401.345 2.079.601.682.239 1.374.454 2.049.714 1.318.597 2.676 1.121 3.933 1.86 2.61 1.296 4.976 3.036 7.298 4.828l.693-.798a23.526 23.526 0 0 0-5.204-9.007c-1.154-1.346-2.526-2.468-3.941-3.596-.716-.547-1.491-1.005-2.262-1.489a16.344 16.344 0 0 0-2.408-1.309c-3.295-1.644-6.971-2.607-10.659-2.958-.461-.048-.926-.115-1.391-.139l-1.382-.014
1c-.919.012-1.858-.039-2.766.043-.912.063-1.825.176-2.73.283l-2.68.456c-7.067 1.532-13.314 4.954-18.29 9.431-2.483 2.267-4.679 4.791-6.497 7.604-1.79 2.839-3.331 5.848-4.083 9.39l.762.731c2.112-2.007 4.436-3.855 6.81-5.575a73.658 73.658 0 0 1 7.354-4.818 69.152 69.152 0 0 1 5.071-2.63c11.537 6.994 17.027 23.29 11.761 35.752-3.255 7.701-9.674 13.633-16.126 18.895-20.441 16.672-45.802 30.972-79.821 45.001-53.618 22.114-105.488 34.425-154.167 36.592-9.814.436-21.12.561-31.105-3.514-4.29-1.749-8.672-4.688-12.06-8.499-3.35-3.77-5.727-8.392-6.067-13.57a2.11 2.11 0 0 0-.176-.694 2.097 2.097 0 0 0-2.07-1.274c-.399.026-.76.167-1.064.38a4.12 4.12 0 0 0-1.024.241 4.226 4.226 0 0 0-2.408 5.471c13.813 35.521 27.158 66.978 50.62 92.184 19.115 20.537 45.272 36.527 75.642 46.241 22.648 7.246 45.348 10.893 67.2 10.893 14.226 0 28.092-1.548 41.348-4.653 46.236-10.837 79.622-35.843 99.233-74.326 19.19-37.664 18.522-75.54 17.343-90.079m-24.875 86.239c-18.427 36.166-49.929 59.694-93.632 69.938-32.129 7.528-68.108 5.436-104.044-6.061a193.197 193.197 0 0 1-22.304-8.684c2.148-5.024 4.531-9.942 7.186-14.708a133.728 133.728 0 0 1 10.072-15.729c7.421-9.984 16.209-19.024 26.388-26.162 5.057-3.599 10.438-6.76 16.106-9.279 5.66-2.525 11.626-4.402 17.749-5.326 6.115-.922 12.387-.912 18.462.263 4.029.744 7.962 1.994 11.713 3.667-.408.608-.822 1.213-1.221 1.826-.623.938-1.268 1.856-1.869 2.811l-1.766 2.877c-1.166 1.926-2.397 3.797-3.386 5.828-1.03 2.004-2.109 3.966-3.085 5.986l-2.82 6.1c-3.396 8.294-6.204 16.777-7.781 25.51l-.011.066a.42.42 0 0 0 .807.226 186.897 186.897 0 0 1 10.996-23.593c4.201-7.598 9.038-14.828 14.278-21.742 10.473-13.859 22.994-26.061 36.375-37.112 6.669-5.561 13.611-10.812 20.703-15.827 7.113-4.98 14.453-9.648 22.159-13.618 7.684-3.999 15.842-7.111 24.296-8.879a58.523 58.523 0 0 1 21.309-.587c.886 15.68.218 49.051-16.68 82.209"}))};y.defaultProps={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 853.656 768",xmlSpace:"preserve"};var v=function(t){return e.default.createElement("svg",t,e.default.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm1-11a1 1 0 1 0-2 0v2H7a1 1 0 1 0 0 2h2v2a1 1 0 1 0 2 0v-2h2a1 1 0 1 0 0-2h-2V7z",clipRule:"evenodd"}))};v.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"};var g={Symbol:_,Popup:function(t){(0,o.useConfig)(),t.close;var r,n,a,s,u,c,l,p,f,h,d=t.gas_station,m=(t.description,t.location,t.showAddClick),g=t.onAddClick,b=function(t){return null==t?void 0:t.toFixed(2)};return e.default.createElement("div",{className:"poi tour-poi"}," ",e.default.createElement("div",{className:"icon-close",onClick:t.close||void 0})," ",e.default.createElement("div",{className:"tour-poi__top"},e.default.createElement("div",null,e.default.createElement("p",{className:"tour-poi__name"},d.name),e.default.createElement("div",{className:"tour-poi__small-info"},d.distance&&e.default.createElement("div",null,e.default.createElement("span",null,"Entfernung: "),e.default.createElement("span",null,e.default.createElement("b",null,d.distance))),d.time_until&&e.default.createElement("div",null,e.default.createElement("span",null,"nach ca: "),e.default.createElement("span",null,e.default.createElement("b",null,d.time_until)))))),e.default.createElement("div",{className:"tour-poi__middle"},e.default.createElement("div",null,e.default.createElement("p",null,b(null==d||null===(r=d.prices)||void 0===r||null===(n=r.s95_e5)||void 0===n?void 0:n.price)," \u20ac"),e.default.createElement("small",null,"(E5) vor ",(f=null==d||null===(a=d.prices)||void 0===a||null===(s=a.s95_e5)||void 0===s?void 0:s.changedAt,(h=i.DateTime.fromISO(f).diffNow(["hours","minutes"])).hours?h.hours.toFixed()+" Stunden":h.minutes.toFixed()+" Minuten"))),e.default.createElement("div",null,(null==d||null===(u=d.prices)||void 0===u||null===(c=u.s95_e5)||void 0===c?void 0:c.fourWeekAverage)>0&&e.default.createElement(e.default.Fragment,null,e.default.createElement("p",null,"\xd8 ",b(null==d||null===(l=d.prices)||void 0===l||null===(p=l.s95_e5)||void 0===p?void 0:p.fourWeekAverage),"\u20ac"),e.default.createElement("small",null,"(E5) letzte 7 Tage"))),e.default.createElement("div",{className:"mehr-tanken"},e.default.createElement("small",null,"pr\xe4sentiert von:"),e.default.createElement("a",{href:"https://mehr-tanken.de",className:"mehr-tanken-logo"},e.default.createElement(y,null),e.default.createElement("span",null,"mehr-tanken.de")))),e.default.createElement("div",{className:"tour-poi__information"},e.default.createElement("div",{className:"tour-poi__information-text"},e.default.createElement("div",null,"Services"),e.default.createElement("div",null,e.default.createElement("span",null,d.services.join(" / ")))),e.default.createElement("div",{className:"tour-poi__information-text"},e.default.createElement("div",null,"\xd6ffnungszeiten"),x.fromArray(d.openHours).mapDayCollections((function(t){return e.default.createElement("p",{key:t.label},t.label,": ",t.openHours.map((function(t){return t.from+" - "+t.to})).join(", "))})))),m&&e.default.createElement("div",{className:"nav-list__separator-icon",onClick:function(){g()},style:{width:"250px",paddingTop:"10px",height:"18px"}},e.default.createElement(v,null)," Zur Route hinzuf\xfcgen"))},getNameMeta:function(t){var e=t.description,r=t.gas_station;return{name:e||"gas_station",meta:{country:r.country||"",name:e||"Gas Station",postcode:r.zip||"",state:r.city||"",type:{category:"place",subcategory:"gas_station"}}}},classNameBuilder:function(){return""}};function b(t){return t.cheapest}function _(t){var r=function(t){return e.default.createElement(m,{height:"32",width:"32",className:t})};return b(t.gas_station)?r("gas-station-cheapest"):r("gas-station-regular")}t.gasStationPoiType=g;var x=function(){function t(){p(this,t)}return h(t,[{key:"slots",get:function(){var t,e=this;return Object.keys(this.days).map((function(r){var n=e.days[r];return t&&n.matches(t)||(t=n),[n,t]})).reduce((function(t,e){var r=c(e,2),n=r[0],o=r[1];return t.hasOwnProperty(o.weekday)||(t[o.weekday]=new w),t[o.weekday].addDay(n),t}),{})}},{key:"mapDayCollections",value:function(t){var e=this;return Object.keys(this.slots).map((function(r){return t(e.slots[r])}))}}],[{key:"fromArray",value:function(e){var r=new t;return r.days=e.sort((function(t,e){return e.weekday-t.weekday})).reduce((function(t,e){var r=e.weekday,n=e.from,o=e.to,i=e.label;return t.hasOwnProperty(r)||(t[r]=O.fromWeekdayLabel(r,i)),t[r].addSlot(n,o),t}),{}),r}}]),t}(),w=function(){function t(){p(this,t),s(this,"days",[])}return h(t,[{key:"addDay",value:function(t){this.days.push(t)}},{key:"label",get:function(){var t;return 1===this.days.length?this.days[0].label:this.days[0].label+" bis "+(t=this.days,t[t.length-1]).label}},{key:"openHours",get:function(){return this.days[0].openHours}}]),t}(),O=function(){function t(){p(this,t),s(this,"openHours",[])}return h(t,[{key:"matches",value:function(t){return this.openHours.length==t.openHours.length&&!this.openHours.map((function(e,r){return[e,t.openHours[r]]})).some((function(t){var e,r,n=c(t,2),o=n[0];return r=n[1],(e=o).from!==r.from||e.to!==r.to}))}},{key:"addSlot",value:function(t,e){this.openHours.push({from:t,to:e}),this.sort()}},{key:"sort",value:function(){var t=function(t){return parseInt(t.replace(":",""))};this.openHours=this.openHours.sort((function(e,r){return t(e.from)-t(r.from)}))}}],[{key:"fromWeekdayLabel",value:function(e,r){var n=new t;return n.weekday=e,n.label=r,n}}]),t}(),E=function(t){var e;return null===(e=t.gas_station.prices.s95_e5)||void 0===e?void 0:e.price},S=function(t){return t.points_of_interest=P(t.points_of_interest),t};function P(t){return t.filter((function(t){return"gas_station"!==t.type||E(t)}))}var j=function(t){var e=t.points_of_interest.filter((function(t){return"gas_station"===t.type})).sort((function(t,e){return E(e)-E(t)})).reverse()[0];return void 0===e||(e.gas_station.cheapest=!0),t}})?n.apply(e,o):n)||(t.exports=i)},73131:function(t,e,r){var n,o,i;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(94184),r(87437),r(70712)],void 0===(i="function"==typeof(n=function(t,e,r,n,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}
1Object.defineProperty(t,"__esModule",{value:!0}),t.GasStationClusterPin=u,t.gasStationClusterPoiType=void 0,e=i(e),r=i(r);var a=function(t){return t.find((function(t){return(0,n.isCheapest)(t.gas_station)}))},s={onClick:o.clusterClick,Symbol:u,classNameBuilder:function(){return""}};function u(t){var n=t.contained_points_of_interest;return e.default.createElement("div",{className:(0,r.default)({"cluster-pin":!0,"gas-station-cheapest-cluster":a(n),"gas-station-regular-cluster":!a(n)})},e.default.createElement("span",{className:"cluster-text"},n.length))}t.gasStationClusterPoiType=s})?n.apply(e,o):n)||(t.exports=i)},73290:function(t,e,r){var n,o,i;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(94184),r(59308),r(94249),r(37166),r(96932),r(87437),r(35369),r(28022)],void 0===(i="function"==typeof(n=function(t,e,r,n,o,i,a,s,u,c){"use strict";function l(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.HotelPin=y,t.default=v,t.isPremium=t.hotelPoiType=void 0,e=l(e),r=l(r),i=l(i),c=l(c);var p=function(t){return e.default.createElement("svg",t,e.default.createElement("path",{fill:"currentColor",d:"M14.8 31.4C5.7 18.2 4 16.8 4 12 4 5.4 9.4 0 16 0s12 5.4 12 12c0 4.8-1.7 6.2-10.8 19.4-.6.8-1.8.8-2.4 0z"}),e.default.createElement("circle",{fill:"#fff",cx:"16",cy:"12",r:"10.039"}),e.default.createElement("path",{d:"M13.229 12c.847 0 1.539-.693 1.539-1.539s-.693-1.539-1.539-1.539c-.847 0-1.539.693-1.539 1.539S12.383 12 13.229 12zm6.773-2.463h-4.31a.331.331 0 0 0-.308.308v2.771h-4.31V8.614a.331.331 0 0 0-.308-.308h-.616a.331.331 0 0 0-.308.308v6.773c0 .154.154.308.308.308h.616a.331.331 0 0 0 .308-.308v-.924h9.851v.924c0 .154.154.308.308.308h.616a.331.331 0 0 0 .308-.308v-3.694a2.152 2.152 0 0 0-2.155-2.156z"}))};p.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"};var f=function(t){return e.default.createElement("svg",t,e.default.createElement("path",{fill:"currentColor",d:"M31.3 24.8 24 17.4c-1.4-1.4-3.6-1.7-5.3-.9L12 9.9V6L4 0 0 4l6 8h3.9l6.7 6.7c-.8 1.7-.6 3.9.9 5.3l7.3 7.3c.9.9 2.4.9 3.3 0l3.3-3.3c.8-.9.8-2.3-.1-3.2zM20.7 14.1c1.8 0 3.4.7 4.7 1.9l1.2 1.2c1-.4 1.9-1 2.7-1.8 2.3-2.3 3.1-5.6 2.4-8.5-.1-.6-.8-.8-1.3-.3l-4.6 4.6-4.2-.7-.7-4.2 4.6-4.6c.4-.4.2-1.1-.4-1.3-3-.7-6.2.1-8.5 2.4-1.8 1.6-2.6 4-2.6 6.3l5.1 5.1c.6-.1 1.1-.1 1.6-.1zm-6.5 5.1-3.5-3.5-9.5 9.5c-1.6 1.6-1.6 4.1 0 5.7 1.6 1.6 4.1 1.6 5.7 0l7.7-7.7c-.6-1.3-.7-2.7-.4-4zM4 29.5c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5z"}))};f.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"};var h=function(t){return e.default.createElement("svg",t,e.default.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm1-11a1 1 0 1 0-2 0v2H7a1 1 0 1 0 0 2h2v2a1 1 0 1 0 2 0v-2h2a1 1 0 1 0 0-2h-2V7z",clipRule:"evenodd"}))};h.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"};var d={Symbol:y,Popup:v,getNameMeta:function(t){var e=t.description,r=t.hotel;return{name:e||"Hotel",meta:{country:r.address.country||"",name:e||"Hotel",postcode:r.address.zip||"",state:r.address.city||"",type:{category:"place",subcategory:"hotel"}}}},classNameBuilder:function(t){var e=t.hotel;return e?m(e)?"popup-hotel-premiun":"popup-hotel":""}};t.hotelPoiType=d;var m=function(t){var e;return null==t||null===(e=t.tags)||void 0===e?void 0:e.includes("premium")};function y(t){var n=t.hotel;return e.default.createElement(p,{height:"32",width:"32",className:(0,r.default)({"hotel-pin":!m(n),"hotel-premium":m(n)})})}function v(t){var o=t.hotel,i=t.description,s=(t.location,t.symbol,t.onTourPlanned,t.showAddClick),u=t.onAddClick,c=((0,a.useApi)(),(0,n.useNavigationState)()),l=(c.waypoints,c.setWaypoints,c.tour,c.saving,c.setTour,c.setSaving,c.previousTourId,o.image,o.link);return e.default.createElement("div",{className:(0,r.default)("poi","hotel-poi",{premium:m(o)})},e.default.createElement("div",{className:"mto-hotel-card"},o&&o.image&&e.default.createElement("div",{className:"mto-hotel-card__img"},e.default.createElement("img",{className:"mto-hotel-card-image",src:o.image})),e.default.createElement("div",{className:"mto-hotel-card__content"},e.default.createElement("span",{className:"mto-hotel-card__name"},i),o.tags.includes("trockenraum")&&e.default.createElement("span",{className:"mto-hotel-card__meta"},"Trockenraum verf\xfcgbar"),o.tags.includes("schrauberecke")&&e.default.createElement("span",{className:"mto-hotel-card__meta"},e.default.createElement(f,{className:"mto-hotel-card__meta-icon"}
1),"Schrauberecke verf\xfcgbar")),e.default.createElement("div",{className:"mto-hotel-card__button"},e.default.createElement("a",{href:l,target:"_blank",className:"mto-button mto-button--red mto-button--big mto-button--arrow"},"Zum Hotel"),s&&e.default.createElement("div",{className:"nav-list__separator-icon",onClick:function(){u()},style:{width:"250px",paddingTop:"10px",height:"18px"}},e.default.createElement(h,null)," Zur Route hinzuf\xfcgen"))))}t.isPremium=m})?n.apply(e,o):n)||(t.exports=i)},74425:function(t,e,r){var n,o,i;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(94184),r(73290),r(70712)],void 0===(i="function"==typeof(n=function(t,e,r,n,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.HotelClusterPin=u,t.hotelClusterPoiType=void 0,e=i(e),r=i(r);var a=function(t){return t.find((function(t){return(0,n.isPremium)(t.hotel)}))},s={onClick:o.clusterClick,Symbol:u,classNameBuilder:function(t){var e=t.contained_points_of_interest;return 0===e.length?"":a(e)?"popup-hotel-premiun":"popup-hotel"}};function u(t){var n=t.contained_points_of_interest;return e.default.createElement("div",{className:(0,r.default)({"cluster-pin":!0,"premium-hotel-cluster":a(n),"regular-hotel-cluster":!a(n)})},e.default.createElement("span",{className:"cluster-text"},n.length))}t.hotelClusterPoiType=s})?n.apply(e,o):n)||(t.exports=i)},6669:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(73290),r(74425),r(64503),r(87437),r(72789),r(73131),r(94249),r(37166),r(35369),r(28022)],n=function(t,e,r,n,o,i,s,u,c,l,p,f){"use strict";function h(t){return t&&t.__esModule?t:{default:t}}function d(){return d=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},d.apply(this,arguments)}function m(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function y(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?m(Object(r),!0).forEach((function(e){v(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function v(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==a(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===a(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function b(){b=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),s=new j(o||[]);return n(a,"_invoke",{value:O(t,r,s)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var f={};function h(){}function d(){}function m(){}var y={};c(y,i,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(A([])));
vendor: 5,894 bytes, line 1
1g&&g!==e&&r.call(g,i)&&(y=g);var _=m.prototype=h.prototype=Object.create(y);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,s,u){var c=p(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==a(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,s,u)}),(function(t){o("throw",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return o("throw",t,s,u)}))}u(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function O(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=p(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=p(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function A(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=m,n(_,"constructor",{value:m,configurable:!0}),n(m,"constructor",{value:d,configurable:!0}),d.displayName=c(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},x(w.prototype),c(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(_),c(_,u,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=A,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function _(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){t.hotel,t.description;var r=t.location,n=(t.symbol,t.gas_station,t.type),o=t.addIntermediate,i=function(){var e,o;if(!r)return console.log("getWaypoint no location"),null;var i=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return g(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(r.coordinates,2),a=i[0],s=i[1],u=null===(e=O(n))||void 0===e||null===(o=e.getNameMeta)||void 0===o?void 0:o.call(e,t);return u?c.Waypoint.fromLongitudeLatitudeNameMeta(a,s,u.name,y(y({},u.meta),{},{highlightUntil:Date.now()+3e3})):(console.log("getWaypoint no nameMeta"),null)},a=w(n);return a?e.default.createElement(a,d({},t,{showAddClick:!!o,onAddClick:function(){var t,e,r=i();r?o(r,{afterPlanning:(t=b().mark((function t(){var e;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=document.getElementById("menuPopup")){t.next=3;break}return t.abrupt("return");case 3:e.click(),window.setTimeout((function(){e.click()}),3e3);case 5:case"end":return t.stop()}}),t)})),e=function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){_(i,n,o,a,s,"next",t)}function s(t){_(i,n,o,a,s,"throw",t)}a(void 0)}))},function(){return e.apply(this,arguments)})}):console.log("no newWayPoint")}})):null},t.getPoi=O,t.getPoiPopup=w,e=h(e),l=h(l),f=h(f);var x={hotel:r.hotelPoiType,tour:o.tourPoiType,cluster_tour:s.tourClusterPoiType,cluster_hotel:n.hotelClusterPoiType,gas_station:i.gasStationPoiType,cluster_gas_station:u.gasStationClusterPoiType};function w(t){return x[t]?x[t].Popup:null}function O(t){return x[t]||null}},void 0===(i=n.apply(e,o))||(t.exports=i)},87193:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(82555),r(6669)],n=function(t,e,r,n){"use strict";function o(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(o=function(t){return t?r:e})(t)}function i(t){return t&&t.__esModule?t:{default:t}}function s(){return s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},s.apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e=i(e),r=i(r),n=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=o(e);if(r&&r.has(t))return r.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var u=i?Object.getOwnPropertyDescriptor(t,s):null;u&&(u.get||u.set)?Object.defineProperty(n,s,u):n[s]=t[s]}return n.default=t,r&&r.set(t,n),n}(n);t.default=function(t){var o=t.type,i=t.description,a=t.location;if(t.onOpen,t.onClose,!(0,n.getPoi)(o))return null;var u=(0,n.getPoi)(o),c=u.Symbol,l=u.classNameBuilder,p=u.onClick;return c&&l&&a?e.default.createElement(r.default,s({key:i},t,{onClick:p,symbol:e.default.createElement(c,t),className:l(t),longitude:a.coordinates[0],latitude:a.coordinates[1]}),(function(r){return e.default.createElement(n.default,s({},t,r))})):null}},void 0===(i=n.apply(e,o))||(t.exports=i)},94177:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(87193)],void 0===(i="function"==typeof(n=function(t,e,r){"use strict";function n(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(n=function(t){return t?r:e})(t)}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}
1finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var s;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var r=t.children,n=(t.pointsOfInterest,o((0,e.useState)(null),2)),i=n[0],a=n[1];return r({onOpen:(0,e.useCallback)((function(t){i&&i.closePopup(),a(t)}),[i]),onClose:(0,e.useCallback)((function(t){a(null)}),[i])})},e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=n(e);if(r&&r.has(t))return r.get(t);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var u=i?Object.getOwnPropertyDescriptor(t,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=t[s]}return o.default=t,r&&r.set(t,o),o}(e),r=(s=r)&&s.__esModule?s:{default:s}})?n.apply(e,o):n)||(t.exports=i)},64503:function(t,e,r){var n,o,i;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(73796),r(60344),r(73941)],void 0===(i="function"==typeof(n=function(t,e,r,n,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.TourPin=u,t.tourPoiType=void 0,e=i(e),r=i(r),n=i(n);var a=function(t){return e.default.createElement("svg",t,e.default.createElement("path",{d:"M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z"}))};a.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"};var s={Symbol:u,Popup:function(t){var i=(0,o.useConfig)(),a=t.tour,s=t.description,u=(t.location,a.ascendInMeters),c=a.descendInMeters,l=a.timeInMs,p=a.distanceInMeters,f=n.default.make().milisecondsToHoursAndMinutes(l),h="/"+a._id;return i.makeTourUrl&&(h=i.makeTourUrl(a)),e.default.createElement("div",{className:"poi tour-poi"},e.default.createElement("div",{className:"mto-tour-card"},e.default.createElement("div",{className:"mto-tour-card__content"},e.default.createElement("div",{className:"mto-tour-card__name"},s),e.default.createElement("div",{className:"mto-tour-card__meta"},e.default.createElement("strong",null,(0,r.default)("Strecke")),": ",Math.round(p/1e3)," km"),e.default.createElement("div",{className:"mto-tour-card__meta"},e.default.createElement("strong",null,(0,r.default)("Fahrdauer")),": ",f.format()),e.default.createElement("div",{className:"mto-tour-card__meta"},e.default.createElement("strong",null,(0,r.default)("Auf-/Abstieg")),": ",Math.round(u)," m / ",Math.round(c)," m")),e.default.createElement("div",{className:"mto-tour-card__content"},e.default.createElement("a",{className:"mto-tour-card__link",href:h}," ",(0,r.default)("Tour ansehen")," "))))},classNameBuilder:function(){return""}};function u(t){return e.default.createElement(a,{height:"18",width:"18",style:{fill:"red"}})}t.tourPoiType=s})?n.apply(e,o):n)||(t.exports=i)},72789:function(t,e,r){var n,o,i;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(73796),r(60344),r(73941),r(70712)],void 0===(i="function"==typeof(n=function(t,e,r,n,o,i){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.TourClusterPin=u,t.tourClusterPoiType=void 0,e=a(e),r=a(r),n=a(n);var s={onClick:i.clusterClick,Symbol:u,classNameBuilder:function(){return""}};function u(t){var r=t.contained_points_of_interest;return e.default.createElement("div",{className:"cluster-pin",style:{backgroundColor:"red"}},e.default.createElement("span",{className:"cluster-text"},r.length))}t.tourClusterPoiType=s})?n.apply(e,o):n)||(t.exports=i)},84798:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(69e3),r(39528),r(73796),r(51219),r(71289),r(35232),r(94184),r(38192)],n=function(t,e,r,n,o,i,s,u,c,l){"use strict";function p(t){return t&&t.__esModule?t:{default:t}}function f(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(f=function(t){return t?r:e})(t)}function h(){return h=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},h.apply(this,arguments)}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var o=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return d(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,e.useState)(!1),2),a=o[0],p=o[1];return e.default.createElement(n.default,t,e.default.createElement("div",{className:(0,c.default)({"map-wrapper":!0,"map-wrapper--initial":!a})},e.default.createElement(r.default,h({},t,{inactive:!a}),a&&e.default.createElement(e.default.Fragment,null,e.default.createElement(l.GlobalPoiZoomLimiter,null,(function(){return e.default.createElement(i.default,{types:["tour"],onPointsLoaded:t.onPointsLoaded})})),e.default.createElement("a",{className:"region-back-button",onClick:function(){return p(!1)}},e.default.createElement(m,null)),e.default.createElement("div",{className:"region-selected"},e.default.createElement(u.default,null))),!a&&e.default.createElement(s.default,{onSelect:function(){console.log("onSelect"),p(!0)}}))))},e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=f(e);if(r&&r.has(t))return r.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var s=o?Object.getOwnPropertyDescriptor(t,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=t[i]}return n.default=t,r&&r.set(t,n),n}(e),r=p(r),n=p(n),o=p(o),i=p(i),s=p(s),u=p(u),c=p(c);var m=function(t){return e.default.createElement("svg",t,e.default.createElement("path",{d:"m23.464 31.746 1.431-1.431a.866.866 0 0 0 0-1.226L11.837 16 24.895 2.911a.866.866 0 0 0 0-1.226L23.464.254a.866.866 0 0 0-1.226 0L7.105 15.387a.866.866 0 0 0 0 1.226l15.133 15.133a.866.866 0 0 0 1.226 0z"}))};m.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"}},void 0===(i=n.apply(e,o))||(t.exports=i)},35232:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(63675),r(21856),r(73796),r(47571)],void 0===(i="function"==typeof(n=function(t,e,r,n,o,i){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}function u(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(u=function(t){return t?r:e})(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var a,s,u=(0,i.useMapEvents)(),c=null!==(a=t.jumpTo)&&void 0!==a?a:u.jumpTo,l=null!==(s=t.jumpBounds)&&void 0!==s?s:u.jumpBounds,p=(0,e.useCallback)((function(t){var e=t.longitude,r=t.latitude,o=t.boundingBox;o?l(o.topLeft,o.bottomRight):c(e,r,n.CityVisibleZoom)}),[l,c]);return e.default.createElement("div",{className:"test-text-color"},e.default.createElement(r.default,{placeholder:(0,o.default)("Wo soll es losgehen?"),types:["place:country","place:state","place:region","place:prov
1ice","place:county","place:municipality","place:city","place:town","place:village","place:hamlet"],onSelect:p}))},e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=u(e);if(r&&r.has(t))return r.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var s=o?Object.getOwnPropertyDescriptor(t,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=t[i]}return n.default=t,r&&r.set(t,n),n}(e),r=s(r),o=s(o)})?n.apply(e,o):n)||(t.exports=i)},71289:function(t,e,r){var n,o,i;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(73796),r(63675),r(35232),r(94184),r(47571)],n=function(t,e,r,n,o,i,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var n=t.onSelect,i=(0,a.useMapEvents)();return e.default.createElement("div",{className:"region-select background-color"},e.default.createElement("div",{className:"region-select__search"},e.default.createElement("span",{className:"region-select-label text-color"},"Region"),e.default.createElement(u,{className:"region-select-search-icon"}),e.default.createElement(o.default,{jumpTo:function(){i.jumpTo.apply(i,arguments),null==n||n()},jumpBounds:function(){i.jumpBounds.apply(i,arguments),null==n||n()}})),e.default.createElement("a",{className:"mto-button mto-button--big mto-button--red mto-button--round"},e.default.createElement(u,null),e.default.createElement("span",null,"Suche")),e.default.createElement("a",{className:"region-select__map-search",onClick:n},(0,r.default)("In Karte suchen")))},e=s(e),r=s(r),n=s(n),o=s(o),i=s(i);var u=function(t){return e.default.createElement("svg",t,e.default.createElement("path",{d:"m31.792 29.317-7.587-7.587a.74.74 0 0 0-.531-.219h-.825a12.963 12.963 0 0 0 3.162-8.5C26.011 5.83 20.193.012 13.012.012S.013 5.831.013 13.012s5.818 12.999 12.999 12.999a12.97 12.97 0 0 0 8.5-3.162v.825c0 .2.081.387.219.531l7.587 7.587a.75.75 0 0 0 1.062 0l1.412-1.412a.75.75 0 0 0 0-1.063zm-18.78-6.306c-5.525 0-10-4.475-10-10s4.475-10 10-10 10 4.475 10 10-4.475 10-10 10z"}))};u.defaultProps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"}},void 0===(i=n.apply(e,o))||(t.exports=i)},84252:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(69e3),r(39528),r(73796),r(33762),r(81350),r(67901),r(41528),r(10731),r(85136)],n=function(t,e,r,n,o,i,s,u,c,l,p){"use strict";function f(t){return t&&t.__esModule?t:{default:t}}function h(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(h=function(t){return t?r:e})(t)}function d(){return d=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},d.apply(this,arguments)}function m(){m=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),s=new j(o||[]);return n(a,"_invoke",{value:O(t,r,s)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var f={};function h(){}function d(){}function y(){}var v={};c(v,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(A([])));
vendor: 6,449 bytes, line 1
1b&&b!==e&&r.call(b,i)&&(v=b);var _=y.prototype=h.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,s,u){var c=p(t[n],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==a(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,s,u)}),(function(t){o("throw",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return o("throw",t,s,u)}))}u(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function O(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=p(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=p(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function A(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:d,configurable:!0}),d.displayName=c(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,c(t,u,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},x(w.prototype),c(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(_),c(_,u,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=A,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function y(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function v(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){y(i,n,o,a,s,"next",t)}function s(t){y(i,n,o,a,s,"throw",t)}a(void 0)}))}}function g(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}
1finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return b(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=h(e);if(r&&r.has(t))return r.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var s=o?Object.getOwnPropertyDescriptor(t,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=t[i]}return n.default=t,r&&r.set(t,n),n}(e),r=f(r),n=f(n),o=f(o),i=f(i),s=f(s),u=f(u),c=f(c),l=f(l);t.default=function(t){var o=(0,p.useMap)().current,a=t.id,f=t.onEnable,h=t.isEditable,y=g((0,e.useState)(t.hasOwnProperty("startStatic")),2),b=y[0],_=y[1],x=(0,e.useCallback)(v(m().mark((function t(){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!b){t.next=5;break}if(_(!1),!f){t.next=5;break}return t.next=5,f();case 5:case"end":return t.stop()}}),t)}))),[b,o]);return e.default.createElement(n.default,t,e.default.createElement(s.default,{id:a},(function(n){var o=n.tour;return e.default.createElement(r.default,d({},t,{disableFullscreen:b,inactive:b,onLoaded:function(t){var e=o.boundingBox,r=e.topLeft,n=e.bottomRight;t.setBounds(r,n)}}),e.default.createElement(e.default.Fragment,null,e.default.createElement(i.default,{tour:o,tourId:a,showPointsOfInterest:!b}),e.default.createElement(c.default,{waypoints:o.waypoints}),h&&e.default.createElement(u.default,{id:a}),b&&e.default.createElement(l.default,{onClick:x})))})))}},void 0===(i=n.apply(e,o))||(t.exports=i)},23904:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(73941)],void 0===(i="function"==typeof(n=function(t,e,r){"use strict";function n(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(n=function(t){return t?r:e})(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Sidecol=function(t){var n=t.children,o=(0,r.useConfig)();if(!o.sidecolHtml&&!o.sidecolElement)return n;var i=function(){var t;return null!==(t=o.sidecolWidth)&&void 0!==t?t:200};return e.createElement(e.Fragment,null,e.createElement("div",{className:"sidecol",style:{width:i()}},o.sidecolHtml&&e.createElement("div",{dangerouslySetInnerHTML:{__html:o.sidecolHtml}}),o.sidecolElement||null),e.createElement("div",{className:"maincol",style:{marginRight:i()+20}},n),e.createElement("div",{style:{clear:"both"}}))},e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=n(e);if(r&&r.has(t))return r.get(t);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var u=i?Object.getOwnPropertyDescriptor(t,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=t[s]}return o.default=t,r&&r.set(t,o),o}(e)})?n.apply(e,o):n)||(t.exports=i)},13912:function(t,e){var r,n;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,void 0===(n="function"==typeof(r=function(t){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function n(t,e,r){return(e=o(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t){var r=function(t,r){if("object"!==e(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,r);
vendor: 9,951 bytes, line 1
1if("object"!==e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===e(r)?r:String(r)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(){function t(){var e=this;(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),n(this,"get",(function(){return e.component.state[e.name]})),n(this,"checkFromEvent",(function(t){e.set(t.target.checked)})),n(this,"setFromEvent",(function(t){e.set(t.target.value)})),n(this,"set",(function(t,r){e.component.setState(e.updateObject(t),r)})),n(this,"updateObject",(function(t){return n({},e.name,t)}))}return e=t,o=[{key:"fromNameComponent",value:function(e,r){var n=new t;return n.name=e,n.component=r,n}}],null&&r(e.prototype,null),o&&r(e,o),Object.defineProperty(e,"prototype",{writable:!1}),t;var e,o}();t.default=i})?r.apply(e,[e]):r)||(t.exports=n)},81350:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(69e3),r(39528),r(73796),r(96932),r(33762),r(43821)],n=function(t,e,r,n,o,i,s,u){"use strict";function c(t){return t&&t.__esModule?t:{default:t}}function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(l=function(t){return t?r:e})(t)}function p(){p=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new j(o||[]);return n(a,"_invoke",{value:O(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function d(){}function m(){}function y(){}var v={};c(v,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(A([])));b&&b!==e&&r.call(b,i)&&(v=b);var _=y.prototype=d.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,s,u){var c=f(t[n],t,i);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==a(p)&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){o("next",t,s,u)}),(function(t){o("throw",t,s,u)})):e.resolve(p).then((function(t){l.value=t,s(l)}),(function(t){return o("throw",t,s,u)}))}u(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function O(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function A(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return m.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:m,configurable:!0}),m.displayName=c(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,c(t,u,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},x(w.prototype),c(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(_),c(_,u,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=A,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function f(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function h(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){f(i,n,o,a,s,"next",t)}function s(t){f(i,n,o,a,s,"throw",t)}a(void 0)}))}}function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return m(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function y(t){var r,n=t.retry,i=(t.id,t.error);return 404===(null==i||null===(r=i.response)||void 0===r?void 0:r.status)?e.default.createElement("div",{className:"error"},(0,o.default)("Die gew\xfcnschte Karte wurde nicht gefunden.")):e.default.createElement("div",{className:"error"},(0,o.default)("Beim abrufen der Karte ist ein Fehler aufgetreten"),e.default.createElement("button",{onClick:n},(0,o.default)("Erneut versuchen")))}
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=l(e);if(r&&r.has(t))return r.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var s=o?Object.getOwnPropertyDescriptor(t,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=t[i]}return n.default=t,r&&r.set(t,n),n}(e),r=c(r),n=c(n),o=c(o),s=c(s);t.default=function(t){var r=t.id,n=t.onLoaded,o=t.children,a=d((0,e.useState)(null),2),s=a[0],c=a[1],l=d((0,e.useState)(null),2),f=l[0],m=l[1],v=d((0,e.useState)(!0),2),g=v[0],b=v[1],_=(0,i.useApi)(),x=(0,e.useCallback)(h(p().mark((function t(){var e;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return b(!0),t.prev=1,t.next=4,_.findTour({id:r});case 4:e=t.sent,c(e),m(null),n&&n({tour:e}),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1),m(t.t0);case 13:return t.prev=13,b(!1),t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[1,10,13,16]])}))),[_,r,n]);return(0,e.useEffect)((function(){s||x()}),[r]),r?g?e.default.createElement(u.Loading,null):f?e.default.createElement(y,{retry:x,id:r,error:f}):s?o({tour:s}):null:o({tour:null})}},void 0===(i=n.apply(e,o))||(t.exports=i)},21856:function(t,e){var r,n;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,void 0===(n="function"==typeof(r=function(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CityVisibleZoom=void 0,t.CityVisibleZoom=11})?r.apply(e,[e]):r)||(t.exports=n)},38192:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(85136)],void 0===(i="function"==typeof(n=function(t,e,r){"use strict";function n(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(n=function(t){return t?r:e})(t)}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function s(t){var n=t.moreEquals,i=t.children,a=(0,r.useMap)().current,s=o((0,e.useState)(a.getZoom()>=n),2),u=s[0],c=s[1];return(0,e.useEffect)((function(){var t=function(t){var e=a.getZoom()>=n;e!=u&&c(e)};return a.on("zoom",t),function(){return a.off("zoom",t)}}),[u]),u?i():null}Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalPoiZoomLimiter=function(t){var r=t.children;return e.default.createElement(s,{moreEquals:8},r)},t.MapPoiZoomLimiter=function(t){var r=t.children;return e.default.createElement(s,{moreEquals:8},r)},t.ZoomLimiter=s,e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=n(e);if(r&&r.has(t))return r.get(t);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var u=i?Object.getOwnPropertyDescriptor(t,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=t[s]}return o.default=t,r&&r.set(t,o),o}(e)})?n.apply(e,o):n)||(t.exports=i)},96932:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(3558),r(43821),r(83139),r(73796)],n=function(t,e,r,n,o,i){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}function u(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(u=function(t){return t?r:e})(t)}function c(){return c=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];
vendor: 7,911 bytes, line 1
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},c.apply(this,arguments)}function l(){l=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function p(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),s=new j(o||[]);return n(a,"_invoke",{value:O(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var h={};function d(){}function m(){}function y(){}var v={};c(v,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(A([])));b&&b!==e&&r.call(b,i)&&(v=b);var _=y.prototype=d.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,s,u){var c=f(t[n],t,i);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==a(p)&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){o("next",t,s,u)}),(function(t){o("throw",t,s,u)})):e.resolve(p).then((function(t){l.value=t,s(l)}),(function(t){return o("throw",t,s,u)}))}u(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function O(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function A(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return m.prototype=y,n(_,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:m,configurable:!0}),m.displayName=c(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,c(t,u,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},x(w.prototype),c(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(_),c(_,u,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=A,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function p(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}Object.defineProperty(t,"__esModule",{value:!0}
1),t.ApiContext=void 0,t.ProvideApi=function(t){var a=t.apiUrl,s=t.children,u=f((0,e.useState)(null),2),c=u[0],h=u[1],m=f((0,e.useState)(!0),2),y=m[0],v=m[1],g=f((0,e.useState)(null),2),b=g[0],_=g[1],x=(0,o.useError)().displayError,w=function(){var t,e=(t=l().mark((function t(){var e;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v(!0),t.prev=1,t.next=4,r.default.fromUrl(a);case 4:e=t.sent,h(e),v(!1),_(null),t.next=16;break;case 10:t.prev=10,t.t0=t.catch(1),console.log("error loading api"),x((0,i.default)("Verbindungsfehler"),(0,i.default)("Beim laden der API ist ein Fehler aufgetreten"),{button:{text:(0,i.default)("Erneut versuchen"),action:function(t){(0,t.close)(),w()}}}),_(t.t0),v(!1);case 16:case"end":return t.stop()}}),t,null,[[1,10]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){p(i,n,o,a,s,"next",t)}function s(t){p(i,n,o,a,s,"throw",t)}a(void 0)}))});return function(){return e.apply(this,arguments)}}();return(0,e.useEffect)((function(){w(a)}),[a]),y?e.default.createElement(n.Loading,null):b?null:e.default.createElement(d.Provider,{value:c},s)},t.default=function(t){return function(r){return e.default.createElement(d.Consumer,null,(function(n){return e.default.createElement(t,c({},r,{api:n}))}))}},t.useApi=function(){return(0,e.useContext)(d)},e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=u(e);if(r&&r.has(t))return r.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var s=o?Object.getOwnPropertyDescriptor(t,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=t[i]}return n.default=t,r&&r.set(t,n),n}(e),r=s(r),i=s(i);var d=e.default.createContext(void 0);t.ApiContext=d},void 0===(i=n.apply(e,o))||(t.exports=i)},23705:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156),r(85136),r(96486)],void 0===(i="function"==typeof(n=function(t,e,r,n){"use strict";function o(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(o=function(t){return t?r:e})(t)}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var u;Object.defineProperty(t,"__esModule",{value:!0}),t.useBounds=function(){var t=(0,r.useMap)().current,o=i((0,e.useState)(null),2),a=o[0],s=o[1];return(0,e.useEffect)((function(){var e=n.default.debounce((function(){s({left:t.getBounds().getWest(),top:t.getBounds().getNorth(),right:t.getBounds().getEast(),bottom:t.getBounds().getSouth()})}),400);return t.on("zoom",e),t.on("dragend",e),function(){t.off("zoom",e),t.off("dragend",e)}})),a},e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var r=o(e);if(r&&r.has(t))return r.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var u=i?Object.getOwnPropertyDescriptor(t,s):null;u&&(u.get||u.set)?Object.defineProperty(n,s,u):n[s]=t[s]}return n.default=t,r&&r.set(t,n),n}
1(e),n=(u=n)&&u.__esModule?u:{default:u}})?n.apply(e,o):n)||(t.exports=i)},73941:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156)],void 0===(i="function"==typeof(n=function(t,e){"use strict";function r(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(r=function(t){return t?n:e})(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.ProvideConfig=function(t){var r=t.children,o=t.config;return e.default.createElement(n.Provider,{value:o},r)},t.useConfig=function(){return(0,e.useContext)(n)};var n=(e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var n=r(e);if(n&&n.has(t))return n.get(t);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var u=i?Object.getOwnPropertyDescriptor(t,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=t[s]}return o.default=t,n&&n.set(t,o),o}(e)).default.createContext({})})?n.apply(e,o):n)||(t.exports=i)},47571:function(t,e,r){var n,o,i;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,r(8156)],n=function(t,e){"use strict";function r(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(r=function(t){return t?n:e})(t)}function n(){return n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n.apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.MapEventsContext=void 0,t.ProvideMapEvents=function(t){var r=t.children,n=t.mapEvents;return e.default.createElement(o.Provider,{value:n},r)},t.default=function(t){return function(r){return e.default.createElement(o.Consumer,null,(function(o){return e.default.createElement(t,n({},r,{mapEvents:o}))}))}},t.useMapEvents=function(){return(0,e.useContext)(o)};var o=(e=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var n=r(e);if(n&&n.has(t))return n.get(t);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var u=i?Object.getOwnPropertyDescriptor(t,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=t[s]}return o.default=t,n&&n.set(t,o),o}(e)).default.createContext({});t.MapEventsContext=o},void 0===(i=n.apply(e,o))||(t.exports=i)},21924:(t,e,r)=>{"use strict";var n=r(40210),o=r(55559),i=o(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?o(r):r}},55559:(t,e,r)=>{"use strict";var n=r(58612),o=r(40210),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||n.call(a,i),u=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(t){c=null}t.exports=function(t){var e=s(n,a,arguments);return u&&c&&u(e,"length").configurable&&c(e,"length",{value:1+l(0,t.length-(arguments.length-1))}),e};var p=function(){return s(n,i,arguments)};c?c(t.exports,"apply",{value:p}):t.exports.apply=p},94184:(t,e)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var i=typeof r;if("string"===i||"number"===i)t.push(r);else if(Array.isArray(r)){if(r.length){var a=o.apply(null,r);a&&t.push(a)}}else if("object"===i){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){t.push(r.toString());continue}for(var s in r)n.call(r,s)&&r[s]&&t.push(s)}}}return t.join(" ")}t.exports?(o.default=o,t.exports=o):void 0===(r=function(){return o}.apply(e,[]))||(t.exports=r)}()},76489:(t,e)=>{"use strict";e.parse=function(t,e){if("string"!=typeof t)throw new TypeError("argument str must be a string");for(var r={},n=(e||{}).decode||o,i=0;i<t.length;){var s=t.indexOf("=",i);if(-1===s)break;var u=t.indexOf(";",i);if(-1===u)u=t.length;else if(u<s){i=t.lastIndexOf(";",s-1)+1;continue}var c=t.slice(i,s).trim();if(void 0===r[c]){var l=t.slice(s+1,u).trim();
134===l.charCodeAt(0)&&(l=l.slice(1,-1)),r[c]=a(l,n)}i=u+1}return r},e.serialize=function(t,e,o){var a=o||{},s=a.encode||i;if("function"!=typeof s)throw new TypeError("option encode is invalid");if(!n.test(t))throw new TypeError("argument name is invalid");var u=s(e);if(u&&!n.test(u))throw new TypeError("argument val is invalid");var c=t+"="+u;if(null!=a.maxAge){var l=a.maxAge-0;if(isNaN(l)||!isFinite(l))throw new TypeError("option maxAge is invalid");c+="; Max-Age="+Math.floor(l)}if(a.domain){if(!n.test(a.domain))throw new TypeError("option domain is invalid");c+="; Domain="+a.domain}if(a.path){if(!n.test(a.path))throw new TypeError("option path is invalid");c+="; Path="+a.path}if(a.expires){var p=a.expires;if(!function(t){return"[object Date]"===r.call(t)||t instanceof Date}(p)||isNaN(p.valueOf()))throw new TypeError("option expires is invalid");c+="; Expires="+p.toUTCString()}if(a.httpOnly&&(c+="; HttpOnly"),a.secure&&(c+="; Secure"),a.priority)switch("string"==typeof a.priority?a.priority.toLowerCase():a.priority){case"low":c+="; Priority=Low";break;case"medium":c+="; Priority=Medium";break;case"high":c+="; Priority=High";break;
1default:throw new TypeError("option priority is invalid")}if(a.sameSite)switch("string"==typeof a.sameSite?a.sameSite.toLowerCase():a.sameSite){case!0:c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"strict":c+="; SameSite=Strict";break;case"none":c+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return c};var r=Object.prototype.toString,n=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function o(t){return-1!==t.indexOf("%")?decodeURIComponent(t):t}function i(t){return encodeURIComponent(t)}function a(t,e){try{return e(t)}catch(e){return t}}},3688:(t,e,r)=>{var n=r(11955);t.exports=n},83838:(t,e,r)=>{var n=r(46279);t.exports=n},15684:(t,e,r)=>{var n=r(19373);t.exports=n},81331:(t,e,r)=>{var n=r(52759);t.exports=n},91254:(t,e,r)=>{var n=r(57396);t.exports=n},43536:(t,e,r)=>{var n=r(41910);t.exports=n},37331:(t,e,r)=>{var n=r(79427);t.exports=n},68522:(t,e,r)=>{var n=r(62857);t.exports=n},73151:(t,e,r)=>{var n=r(9534);t.exports=n},45012:(t,e,r)=>{var n=r(23059);t.exports=n},80281:(t,e,r)=>{var n=r(92547);r(43975),t.exports=n},40031:(t,e,r)=>{var n=r(46509);t.exports=n},17487:(t,e,r)=>{var n=r(35774);t.exports=n},62383:(t,e,r)=>{r(21501);var n=r(35703);t.exports=n("Array").filter},99324:(t,e,r)=>{r(2437);var n=r(35703);t.exports=n("Array").forEach},8700:(t,e,r)=>{r(99076);var n=r(35703);t.exports=n("Array").indexOf},9896:(t,e,r)=>{r(48528);var n=r(35703);t.exports=n("Array").push},2480:(t,e,r)=>{var n=r(7046),o=r(62383),i=Array.prototype;t.exports=function(t){var e=t.filter;return t===i||n(i,t)&&e===i.filter?o:e}},34570:(t,e,r)=>{var n=r(7046),o=r(8700),i=Array.prototype;t.exports=function(t){var e=t.indexOf;return t===i||n(i,t)&&e===i.indexOf?o:e}},93993:(t,e,r)=>{var n=r(7046),o=r(9896),i=Array.prototype;t.exports=function(t){var e=t.push;return t===i||n(i,t)&&e===i.push?o:e}},7702:(t,e,r)=>{r(74979);var n=r(54058).Object,o=t.exports=function(t,e){return n.defineProperties(t,e)};n.defineProperties.sham&&(o.sham=!0)},48171:(t,e,r)=>{r(86450);var n=r(54058).Object,o=t.exports=function(t,e,r){return n.defineProperty(t,e,r)};n.defineProperty.sham&&(o.sham=!0)},286:(t,e,r)=>{r(46924);var n=r(54058).Object,o=t.exports=function(t,e){return n.getOwnPropertyDescriptor(t,e)};n.getOwnPropertyDescriptor.sham&&(o.sham=!0)},92766:(t,e,r)=>{r(88482);var n=r(54058);t.exports=n.Object.getOwnPropertyDescriptors},30498:(t,e,r)=>{r(35824);var n=r(54058);t.exports=n.Object.getOwnPropertySymbols},48494:(t,e,r)=>{r(21724);var n=r(54058);t.exports=n.Object.keys},57473:(t,e,r)=>{r(85906),r(55967),r(35824),r(8555),r(52615),r(21732),r(35903),r(1825),r(28394),r(45915),r(61766),r(62737),r(89911),r(74315),r(63131),r(64714),r(70659),r(69120),r(79413),r(1502);var n=r(54058);t.exports=n.Symbol},24227:(t,e,r)=>{r(66274),r(55967),r(77971),r(1825);var n=r(11477);t.exports=n.f("iterator")},62978:(t,e,r)=>{r(18084),r(63131);var n=r(11477);t.exports=n.f("toPrimitive")},51675:(t,e,r)=>{var n=r(3688);t.exports=n},82507:(t,e,r)=>{var n=r(83838);t.exports=n},628:(t,e,r)=>{var n=r(15684);t.exports=n},34501:(t,e,r)=>{var n=r(81331);t.exports=n},18180:(t,e,r)=>{var n=r(91254);t.exports=n},80621:(t,e,r)=>{var n=r(43536);t.exports=n},48403:(t,e,r)=>{var n=r(37331);t.exports=n},82108:(t,e,r)=>{var n=r(68522);t.exports=n},14058:(t,e,r)=>{var n=r(73151);t.exports=n},92093:(t,e,r)=>{var n=r(45012);t.exports=n},52201:(t,e,r)=>{var n=r(80281);r(28783),r(22731),r(85605),r(65799),r(31943),r(46774),r(45414),r(80620),r(36172),t.exports=n},27398:(t,e,r)=>{var n=r(40031);t.exports=n},26189:(t,e,r)=>{var n=r(17487);t.exports=n},24883:(t,e,r)=>{var n=r(57475),o=r(69826),i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not a function")}},11851:(t,e,r)=>{var n=r(57475),o=String,i=TypeError;t.exports=function(t){if("object"==typeof t||n(t))return t;throw i("Can't set "+o(t)+" as a prototype")}},18479:t=>{t.exports=function(){}},96059:(t,e,r)=>{var n=r(10941),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not an object")}},56837:(t,e,r)=>{"use strict";
vendor: 5,026 bytes, line 1
1var n=r(3610).forEach,o=r(34194)("forEach");t.exports=o?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},31692:(t,e,r)=>{var n=r(74529),o=r(59413),i=r(10623),a=function(t){return function(e,r,a){var s,u=n(e),c=i(u),l=o(a,c);if(t&&r!=r){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},3610:(t,e,r)=>{var n=r(86843),o=r(95329),i=r(37026),a=r(89678),s=r(10623),u=r(64692),c=o([].push),l=function(t){var e=1==t,r=2==t,o=3==t,l=4==t,p=6==t,f=7==t,h=5==t||p;return function(d,m,y,v){for(var g,b,_=a(d),x=i(_),w=n(m,y),O=s(x),E=0,S=v||u,P=e?S(d,O):r||f?S(d,0):void 0;O>E;E++)if((h||E in x)&&(b=w(g=x[E],E,_),t))if(e)P[E]=b;else if(b)switch(t){case 3:return!0;case 5:return g;case 6:return E;case 2:c(P,g)}else switch(t){case 4:return!1;case 7:c(P,g)}return p?-1:o||l?l:P}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},50568:(t,e,r)=>{var n=r(95981),o=r(99813),i=r(53385),a=o("species");t.exports=function(t){return i>=51||!n((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},34194:(t,e,r)=>{"use strict";var n=r(95981);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){return 1},1)}))}},89779:(t,e,r)=>{"use strict";var n=r(55746),o=r(1052),i=TypeError,a=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(o(t)&&!a(t,"length").writable)throw i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},15790:(t,e,r)=>{var n=r(59413),o=r(10623),i=r(55449),a=Array,s=Math.max;t.exports=function(t,e,r){for(var u=o(t),c=n(e,u),l=n(void 0===r?u:r,u),p=a(s(l-c,0)),f=0;c<l;c++,f++)i(p,f,t[c]);return p.length=f,p}},93765:(t,e,r)=>{var n=r(95329);t.exports=n([].slice)},5693:(t,e,r)=>{var n=r(1052),o=r(24284),i=r(10941),a=r(99813)("species"),s=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,(o(e)&&(e===s||n(e.prototype))||i(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?s:e}},64692:(t,e,r)=>{var n=r(5693);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},82532:(t,e,r)=>{var n=r(95329),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},9697:(t,e,r)=>{var n=r(22885),o=r(57475),i=r(82532),a=r(99813)("toStringTag"),s=Object,u="Arguments"==i(function(){return arguments}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=s(t),a))?r:u?i(e):"Object"==(n=i(e))&&o(e.callee)?"Arguments":n}},64160:(t,e,r)=>{var n=r(95981);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},23538:t=>{t.exports=function(t,e){return{value:t,done:e}}},32029:(t,e,r)=>{var n=r(55746),o=r(65988),i=r(31887);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},31887:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},55449:(t,e,r)=>{"use strict";var n=r(83894),o=r(65988),i=r(31887);t.exports=function(t,e,r){var a=n(e);a in t?o.f(t,a,i(0,r)):t[a]=r}},29202:(t,e,r)=>{var n=r(65988);t.exports=function(t,e,r){return n.f(t,e,r)}},95929:(t,e,r)=>{var n=r(32029);t.exports=function(t,e,r,o){return o&&o.enumerable?t[e]=r:n(t,e,r),t}},75609:(t,e,r)=>{var n=r(21899),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},55746:(t,e,r)=>{var n=r(95981);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},76616:t=>{var e="object"==typeof document&&document.all,r=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:r}},61333:(t,e,r)=>{var n=r(21899),o=r(10941),i=n.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},66796:t=>{var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},63281:t=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},2861:t=>{t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},53385:(t,e,r)=>{var n,o,i=r(21899),a=r(2861),s=i.process,u=i.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(o=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>
1=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},35703:(t,e,r)=>{var n=r(54058);t.exports=function(t){return n[t+"Prototype"]}},56759:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},76887:(t,e,r)=>{"use strict";var n=r(21899),o=r(79730),i=r(97484),a=r(57475),s=r(49677).f,u=r(37252),c=r(54058),l=r(86843),p=r(32029),f=r(90953),h=function(t){var e=function(r,n,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,i)}return o(t,this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var r,o,d,m,y,v,g,b,_,x=t.target,w=t.global,O=t.stat,E=t.proto,S=w?n:O?n[x]:(n[x]||{}).prototype,P=w?c:c[x]||p(c,x,{})[x],j=P.prototype;for(m in e)o=!(r=u(w?m:x+(O?".":"#")+m,t.forced))&&S&&f(S,m),v=P[m],o&&(g=t.dontCallGetSet?(_=s(S,m))&&_.value:S[m]),y=o&&g?g:e[m],o&&typeof v==typeof y||(b=t.bind&&o?l(y,n):t.wrap&&o?h(y):E&&a(y)?i(y):y,(t.sham||y&&y.sham||v&&v.sham)&&p(b,"sham",!0),p(P,m,b),E&&(f(c,d=x+"Prototype")||p(c,d,{}),p(c[d],m,y),t.real&&j&&(r||!j[m])&&p(j,m,y)))}},95981:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},79730:(t,e,r)=>{var n=r(18285),o=Function.prototype,i=o.apply,a=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},86843:(t,e,r)=>{var n=r(97484),o=r(24883),i=r(18285),a=n(n.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?a(t,e):function(){return t.apply(e,arguments)}}},18285:(t,e,r)=>{var n=r(95981);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},78834:(t,e,r)=>{var n=r(18285),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},79417:(t,e,r)=>{var n=r(55746),o=r(90953),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=o(i,"name"),u=s&&"something"===function(){}.name,c=s&&(!n||n&&a(i,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},45526:(t,e,r)=>{var n=r(95329),o=r(24883);t.exports=function(t,e,r){try{return n(o(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},97484:(t,e,r)=>{var n=r(82532),o=r(95329);t.exports=function(t){if("Function"===n(t))return o(t)}},95329:(t,e,r)=>{var n=r(18285),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);t.exports=n?a:function(t){return function(){return i.apply(t,arguments)}}},626:(t,e,r)=>{var n=r(54058),o=r(21899),i=r(57475),a=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?a(n[t])||a(o[t]):n[t]&&n[t][e]||o[t]&&o[t][e]}},33323:(t,e,r)=>{var n=r(95329),o=r(1052),i=r(57475),a=r(82532),s=r(85803),u=n([].push);t.exports=function(t){if(i(t))return t;if(o(t)){for(var e=t.length,r=[],n=0;n<e;n++){var c=t[n];"string"==typeof c?u(r,c):"number"!=typeof c&&"Number"!=a(c)&&"String"!=a(c)||u(r,s(c))}var l=r.length,p=!0;return function(t,e){if(p)return p=!1,e;if(o(this))return e;for(var n=0;n<l;n++)if(r[n]===t)return e}}}},14229:(t,e,r)=>{var n=r(24883),o=r(82119);t.exports=function(t,e){var r=t[e];return o(r)?void 0:n(r)}},21899:function(t,e,r){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||this||Function("return this")()},90953:(t,e,r)=>{var n=r(95329),o=r(89678),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},27748:t=>{t.exports={}},15463:(t,e,r)=>{var n=r(626);t.exports=n("document","documentElement")},2840:(t,e,r)=>{var n=r(55746),o=r(95981),i=r(61333);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},37026:(t,e,r)=>{var n=r(95329),o=r(95981),i=r(82532),a=Object,s=n("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?s(t,""):a(t)}:a},81302:(t,e,r)=>{var n=r(95329),o=r(57475),i=r(63030),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},45402:(t,e,r)=>{var n,o,i,a=r(47093),s=r(21899),u=r(10941),c=r(32029),l=r(90953),p=r(63030),f=r(44262),h=r(27748),d="Ob
1ject already initialized",m=s.TypeError,y=s.WeakMap;if(a||p.state){var v=p.state||(p.state=new y);v.get=v.get,v.has=v.has,v.set=v.set,n=function(t,e){if(v.has(t))throw m(d);return e.facade=t,v.set(t,e),e},o=function(t){return v.get(t)||{}},i=function(t){return v.has(t)}}else{var g=f("state");h[g]=!0,n=function(t,e){if(l(t,g))throw m(d);return e.facade=t,c(t,g,e),e},o=function(t){return l(t,g)?t[g]:{}},i=function(t){return l(t,g)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!u(e)||(r=o(e)).type!==t)throw m("Incompatible receiver, "+t+" required");return r}}}},1052:(t,e,r)=>{var n=r(82532);t.exports=Array.isArray||function(t){return"Array"==n(t)}},57475:(t,e,r)=>{var n=r(76616),o=n.all;t.exports=n.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}:function(t){return"function"==typeof t}},24284:(t,e,r)=>{var n=r(95329),o=r(95981),i=r(57475),a=r(9697),s=r(626),u=r(81302),c=function(){},l=[],p=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,h=n(f.exec),d=!f.exec(c),m=function(t){if(!i(t))return!1;try{return p(c,l,t),!0}catch(t){return!1}},y=function(t){if(!i(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!h(f,u(t))}catch(t){return!0}};y.sham=!0,t.exports=!p||o((function(){var t;return m(m.call)||!m(Object)||!m((function(){t=!0}))||t}))?y:m},37252:(t,e,r)=>{var n=r(95981),o=r(57475),i=/#|\.prototype\./,a=function(t,e){var r=u[s(t)];return r==l||r!=c&&(o(e)?n(e):!!e)},s=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},82119:t=>{t.exports=function(t){return null==t}},10941:(t,e,r)=>{var n=r(57475),o=r(76616),i=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:n(t)||t===i}:function(t){return"object"==typeof t?null!==t:n(t)}},82529:t=>{t.exports=!0},56664:(t,e,r)=>{var n=r(626),o=r(57475),i=r(7046),a=r(32302),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return o(e)&&i(e.prototype,s(t))}},53847:(t,e,r)=>{"use strict";var n=r(35143).IteratorPrototype,o=r(29290),i=r(31887),a=r(90904),s=r(12077),u=function(){return this};t.exports=function(t,e,r,c){var l=e+" Iterator";return t.prototype=o(n,{next:i(+!c,r)}),a(t,l,!1,!0),s[l]=u,t}},75105:(t,e,r)=>{"use strict";var n=r(76887),o=r(78834),i=r(82529),a=r(79417),s=r(57475),u=r(53847),c=r(249),l=r(88929),p=r(90904),f=r(32029),h=r(95929),d=r(99813),m=r(12077),y=r(35143),v=a.PROPER,g=a.CONFIGURABLE,b=y.IteratorPrototype,_=y.BUGGY_SAFARI_ITERATORS,x=d("iterator"),w="keys",O="values",E="entries",S=function(){return this};t.exports=function(t,e,r,a,d,y,P){u(r,e,a);var j,A,C,T=function(t){if(t===d&&L)return L;if(!_&&t in I)return I[t];switch(t){case w:case O:case E:return function(){return new r(this,t)}}return function(){return new r(this)}},k=e+" Iterator",M=!1,I=t.prototype,D=I[x]||I["@@iterator"]||d&&I[d],L=!_&&D||T(d),R="Array"==e&&I.entries||D;if(R&&(j=c(R.call(new t)))!==Object.prototype&&j.next&&(i||c(j)===b||(l?l(j,b):s(j[x])||h(j,x,S)),p(j,k,!0,!0),i&&(m[k]=S)),v&&d==O&&D&&D.name!==O&&(!i&&g?f(I,"name",O):(M=!0,L=function(){return o(D,this)})),d)if(A={values:T(O),keys:y?L:T(w),entries:T(E)},P)for(C in A)(_||M||!(C in I))&&h(I,C,A[C]);else n({target:e,proto:!0,forced:_||M},A);return i&&!P||I[x]===L||h(I,x,L,{name:d}),m[e]=L,A}},35143:(t,e,r)=>{"use strict";var n,o,i,a=r(95981),s=r(57475),u=r(10941),c=r(29290),l=r(249),p=r(95929),f=r(99813),h=r(82529),d=f("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(n=o):m=!0),!u(n)||a((function(){var t={};return n[d].call(t)!==t}))?n={}:h&&(n=c(n)),s(n[d])||p(n,d,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},12077:t=>{t.exports={}},10623:(t,e,r)=>{var n=r(43057);t.exports=function(t){return n(t.length)}},35331:t=>{var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},29290:(t,e,r)=>{var n,o=r(96059),i=r(59938),a=r(56759),s=r(27748),u=r(15463),c=r(61333),l=r(44262),p="prototype",f="script",h=l("IE_PROTO"),d=function(){},m=function(t){return"<"+f+">"+t+"</"+f+">"},y=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e;v="undefined"!=typeof document?document.domain&&n?y(n):(e=c("iframe"),"java"+f+":",e.style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(m("document.F=Object")),t.close(),t.F):y(n);for(var r=a.length;r--;)delete v[p][a[r]];return v()};
vendor: 2,541 bytes, line 1
1s[h]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(d[p]=o(t),r=new d,d[p]=null,r[h]=t):r=v(),void 0===e?r:i.f(r,e)}},59938:(t,e,r)=>{var n=r(55746),o=r(83937),i=r(65988),a=r(96059),s=r(74529),u=r(14771);e.f=n&&!o?Object.defineProperties:function(t,e){a(t);for(var r,n=s(e),o=u(e),c=o.length,l=0;c>l;)i.f(t,r=o[l++],n[r]);return t}},65988:(t,e,r)=>{var n=r(55746),o=r(2840),i=r(83937),a=r(96059),s=r(83894),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",f="configurable",h="writable";e.f=n?i?function(t,e,r){if(a(t),e=s(e),a(r),"function"==typeof t&&"prototype"===e&&"value"in r&&h in r&&!r[h]){var n=l(t,e);n&&n[h]&&(t[e]=r.value,r={configurable:f in r?r[f]:n[f],enumerable:p in r?r[p]:n[p],writable:!1})}return c(t,e,r)}:c:function(t,e,r){if(a(t),e=s(e),a(r),o)try{return c(t,e,r)}catch(t){}if("get"in r||"set"in r)throw u("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},49677:(t,e,r)=>{var n=r(55746),o=r(78834),i=r(36760),a=r(31887),s=r(74529),u=r(83894),c=r(90953),l=r(2840),p=Object.getOwnPropertyDescriptor;e.f=n?p:function(t,e){if(t=s(t),e=u(e),l)try{return p(t,e)}catch(t){}if(c(t,e))return a(!o(i.f,t,e),t[e])}},684:(t,e,r)=>{var n=r(82532),o=r(74529),i=r(10946).f,a=r(15790),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"==n(t)?function(t){try{return i(t)}catch(t){return a(s)}}(t):i(o(t))}},10946:(t,e,r)=>{var n=r(55629),o=r(56759).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},87857:(t,e)=>{e.f=Object.getOwnPropertySymbols},249:(t,e,r)=>{var n=r(90953),o=r(57475),i=r(89678),a=r(44262),s=r(64160),u=a("IE_PROTO"),c=Object,l=c.prototype;t.exports=s?c.getPrototypeOf:function(t){var e=i(t);if(n(e,u))return e[u];var r=e.constructor;return o(r)&&e instanceof r?r.prototype:e instanceof c?l:null}},7046:(t,e,r)=>{var n=r(95329);t.exports=n({}.isPrototypeOf)},55629:(t,e,r)=>{var n=r(95329),o=r(90953),i=r(74529),a=r(31692).indexOf,s=r(27748),u=n([].push);t.exports=function(t,e){var r,n=i(t),c=0,l=[];for(r in n)!o(s,r)&&o(n,r)&&u(l,r);for(;e.length>c;)o(n,r=e[c++])&&(~a(l,r)||u(l,r));return l}},14771:(t,e,r)=>{var n=r(55629),o=r(56759);t.exports=Object.keys||function(t){return n(t,o)}},36760:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},88929:(t,e,r)=>{var n=r(45526),o=r(96059),i=r(11851);
vendor: 4,422 bytes, line 1
1t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return o(r),i(n),e?t(r,n):r.__proto__=n,r}}():void 0)},95623:(t,e,r)=>{"use strict";var n=r(22885),o=r(9697);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},39811:(t,e,r)=>{var n=r(78834),o=r(57475),i=r(10941),a=TypeError;t.exports=function(t,e){var r,s;if("string"===e&&o(r=t.toString)&&!i(s=n(r,t)))return s;if(o(r=t.valueOf)&&!i(s=n(r,t)))return s;if("string"!==e&&o(r=t.toString)&&!i(s=n(r,t)))return s;throw a("Can't convert object to primitive value")}},31136:(t,e,r)=>{var n=r(626),o=r(95329),i=r(10946),a=r(87857),s=r(96059),u=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(s(t)),r=a.f;return r?u(e,r(t)):e}},54058:t=>{t.exports={}},48219:(t,e,r)=>{var n=r(82119),o=TypeError;t.exports=function(t){if(n(t))throw o("Can't call method on "+t);return t}},90904:(t,e,r)=>{var n=r(22885),o=r(65988).f,i=r(32029),a=r(90953),s=r(95623),u=r(99813)("toStringTag");t.exports=function(t,e,r,c){if(t){var l=r?t:t.prototype;a(l,u)||o(l,u,{configurable:!0,value:e}),c&&!n&&i(l,"toString",s)}}},44262:(t,e,r)=>{var n=r(68726),o=r(99418),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},63030:(t,e,r)=>{var n=r(21899),o=r(75609),i="__core-js_shared__",a=n[i]||o(i,{});t.exports=a},68726:(t,e,r)=>{var n=r(82529),o=r(63030);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.2",mode:n?"pure":"global",copyright:"\xa9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"})},64620:(t,e,r)=>{var n=r(95329),o=r(62435),i=r(85803),a=r(48219),s=n("".charAt),u=n("".charCodeAt),c=n("".slice),l=function(t){return function(e,r){var n,l,p=i(a(e)),f=o(r),h=p.length;return f<0||f>=h?t?"":void 0:(n=u(p,f))<55296||n>56319||f+1===h||(l=u(p,f+1))<56320||l>57343?t?s(p,f):n:t?c(p,f,f+2):l-56320+(n-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},63405:(t,e,r)=>{var n=r(53385),o=r(95981),i=r(21899).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},29630:(t,e,r)=>{var n=r(78834),o=r(626),i=r(99813),a=r(95929);t.exports=function(){var t=o("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,s=i("toPrimitive");e&&!e[s]&&a(e,s,(function(t){return n(r,this)}),{arity:1})}},34680:(t,e,r)=>{var n=r(63405);t.exports=n&&!!Symbol.for&&!!Symbol.keyFor},59413:(t,e,r)=>{var n=r(62435),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},74529:(t,e,r)=>{var n=r(37026),o=r(48219);t.exports=function(t){return n(o(t))}},62435:(t,e,r)=>{var n=r(35331);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},43057:(t,e,r)=>{var n=r(62435),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},89678:(t,e,r)=>{var n=r(48219),o=Object;t.exports=function(t){return o(n(t))}},46935:(t,e,r)=>{var n=r(78834),o=r(10941),i=r(56664),a=r(14229),s=r(39811),u=r(99813),c=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var r,u=a(t,l);if(u){if(void 0===e&&(e="default"),r=n(u,t,e),!o(r)||i(r))return r;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},83894:(t,e,r)=>{var n=r(46935),o=r(56664);t.exports=function(t){var e=n(t,"string");return o(e)?e:e+""}},22885:(t,e,r)=>{var n={};n[r(99813)("toStringTag")]="z",t.exports="[object z]"===String(n)},85803:(t,e,r)=>{var n=r(9697),o=String;t.exports=function(t){if("Symbol"===n(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},69826:t=>{var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},99418:(t,e,r)=>{var n=r(95329),o=0,i=Math.random(),a=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},32302:(t,e,r)=>{var n=r(63405);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},83937:(t,e,r)=>{var n=r(55746),o=r(95981);t.exports=n&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},47093:(t,e,r)=>{var n=r(21899),o=r(57475),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},73464:(t,e,r)=>{var n=r(54058),o=r(90953),i=r(11477),a=r(65988).f;
vendor: 4,768 bytes, line 1
1t.exports=function(t){var e=n.Symbol||(n.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},11477:(t,e,r)=>{var n=r(99813);e.f=n},99813:(t,e,r)=>{var n=r(21899),o=r(68726),i=r(90953),a=r(99418),s=r(63405),u=r(32302),c=n.Symbol,l=o("wks"),p=u?c.for||c:c&&c.withoutSetter||a;t.exports=function(t){return i(l,t)||(l[t]=s&&i(c,t)?c[t]:p("Symbol."+t)),l[t]}},85906:(t,e,r)=>{"use strict";var n=r(76887),o=r(95981),i=r(1052),a=r(10941),s=r(89678),u=r(10623),c=r(66796),l=r(55449),p=r(64692),f=r(50568),h=r(99813),d=r(53385),m=h("isConcatSpreadable"),y=d>=51||!o((function(){var t=[];return t[m]=!1,t.concat()[0]!==t})),v=function(t){if(!a(t))return!1;var e=t[m];return void 0!==e?!!e:i(t)};n({target:"Array",proto:!0,arity:1,forced:!y||!f("concat")},{concat:function(t){var e,r,n,o,i,a=s(this),f=p(a,0),h=0;for(e=-1,n=arguments.length;e<n;e++)if(v(i=-1===e?a:arguments[e]))for(o=u(i),c(h+o),r=0;r<o;r++,h++)r in i&&l(f,h,i[r]);else c(h+1),l(f,h++,i);return f.length=h,f}})},21501:(t,e,r)=>{"use strict";var n=r(76887),o=r(3610).filter;n({target:"Array",proto:!0,forced:!r(50568)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},2437:(t,e,r)=>{"use strict";var n=r(76887),o=r(56837);n({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},99076:(t,e,r)=>{"use strict";var n=r(76887),o=r(97484),i=r(31692).indexOf,a=r(34194),s=o([].indexOf),u=!!s&&1/s([1],1,-0)<0;n({target:"Array",proto:!0,forced:u||!a("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return u?s(this,t,e)||0:i(this,t,e)}})},66274:(t,e,r)=>{"use strict";var n=r(74529),o=r(18479),i=r(12077),a=r(45402),s=r(65988).f,u=r(75105),c=r(23538),l=r(82529),p=r(55746),f="Array Iterator",h=a.set,d=a.getterFor(f);t.exports=u(Array,"Array",(function(t,e){h(this,{type:f,target:n(t),index:0,kind:e})}),(function(){var t=d(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,c(void 0,!0)):c("keys"==r?n:"values"==r?e[n]:[n,e[n]],!1)}),"values");var m=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&p&&"values"!==m.name)try{s(m,"name",{value:"values"})}catch(t){}},48528:(t,e,r)=>{"use strict";var n=r(76887),o=r(89678),i=r(10623),a=r(89779),s=r(66796);n({target:"Array",proto:!0,arity:1,forced:r(95981)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=o(this),r=i(e),n=arguments.length;s(r+n);for(var u=0;u<n;u++)e[r]=arguments[u],r++;return a(e,r),r}})},18084:()=>{},32619:(t,e,r)=>{var n=r(76887),o=r(626),i=r(79730),a=r(78834),s=r(95329),u=r(95981),c=r(57475),l=r(56664),p=r(93765),f=r(33323),h=r(63405),d=String,m=o("JSON","stringify"),y=s(/./.exec),v=s("".charAt),g=s("".charCodeAt),b=s("".replace),_=s(1..toString),x=/[\uD800-\uDFFF]/g,w=/^[\uD800-\uDBFF]$/,O=/^[\uDC00-\uDFFF]$/,E=!h||u((function(){var t=o("Symbol")();return"[null]"!=m([t])||"{}"!=m({a:t})||"{}"!=m(Object(t))})),S=u((function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")})),P=function(t,e){var r=p(arguments),n=f(e);if(c(n)||void 0!==t&&!l(t))return r[1]=function(t,e){if(c(n)&&(e=a(n,this,d(t),e)),!l(e))return e},i(m,null,r)},j=function(t,e,r){var n=v(r,e-1),o=v(r,e+1);return y(w,t)&&!y(O,o)||y(O,t)&&!y(w,n)?"\\u"+_(g(t,0),16):t};m&&n({target:"JSON",stat:!0,arity:3,forced:E||S},{stringify:function(t,e,r){var n=p(arguments),o=i(E?P:m,null,n);return S&&"string"==typeof o?b(o,x,j):o}})},69120:(t,e,r)=>{var n=r(21899);r(90904)(n.JSON,"JSON",!0)},79413:()=>{},74979:(t,e,r)=>{var n=r(76887),o=r(55746),i=r(59938).f;n({target:"Object",stat:!0,forced:Object.defineProperties!==i,sham:!o},{defineProperties:i})},86450:(t,e,r)=>{var n=r(76887),o=r(55746),i=r(65988).f;n({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!o},{defineProperty:i})},46924:(t,e,r)=>{var n=r(76887),o=r(95981),i=r(74529),a=r(49677).f,s=r(55746);n({target:"Object",stat:!0,forced:!s||o((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(i(t),e)}})},88482:(t,e,r)=>{var n=r(76887),o=r(55746),i=r(31136),a=r(74529),s=r(49677),u=r(55449);n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,r,n=a(t),o=s.f,c=i(n),l={},p=0;c.length>p;)void 0!==(r=o(n,e=c[p++]))&&u(l,e,r);return l}})},37144:(t,e,r)=>{var n=r(76887),o=r(63405),i=r(95981),a=r(87857),s=r(89678);n({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(s(t)):[]}})},21724:(t,e,r)=>{var n=r(76887),o=r(89678),i=r(14771);n({target:"Object",stat:!0,forced:r(95981)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},55967:()=>{},1502:()=>{},77971:(t,e,r)=>{"use strict";
vendor: 4,295 bytes, line 1
1var n=r(64620).charAt,o=r(85803),i=r(45402),a=r(75105),s=r(23538),u="String Iterator",c=i.set,l=i.getterFor(u);a(String,"String",(function(t){c(this,{type:u,string:o(t),index:0})}),(function(){var t,e=l(this),r=e.string,o=e.index;return o>=r.length?s(void 0,!0):(t=n(r,o),e.index+=t.length,s(t,!1))}))},8555:(t,e,r)=>{r(73464)("asyncIterator")},48616:(t,e,r)=>{"use strict";var n=r(76887),o=r(21899),i=r(78834),a=r(95329),s=r(82529),u=r(55746),c=r(63405),l=r(95981),p=r(90953),f=r(7046),h=r(96059),d=r(74529),m=r(83894),y=r(85803),v=r(31887),g=r(29290),b=r(14771),_=r(10946),x=r(684),w=r(87857),O=r(49677),E=r(65988),S=r(59938),P=r(36760),j=r(95929),A=r(29202),C=r(68726),T=r(44262),k=r(27748),M=r(99418),I=r(99813),D=r(11477),L=r(73464),R=r(29630),z=r(90904),N=r(45402),F=r(3610).forEach,B=T("hidden"),V="Symbol",U="prototype",q=N.set,$=N.getterFor(V),G=Object[U],W=o.Symbol,Z=W&&W[U],H=o.TypeError,K=o.QObject,Y=O.f,X=E.f,J=x.f,Q=P.f,tt=a([].push),et=C("symbols"),rt=C("op-symbols"),nt=C("wks"),ot=!K||!K[U]||!K[U].findChild,it=u&&l((function(){return 7!=g(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=Y(G,e);n&&delete G[e],X(t,e,r),n&&t!==G&&X(G,e,n)}:X,at=function(t,e){var r=et[t]=g(Z);return q(r,{type:V,tag:t,description:e}),u||(r.description=e),r},st=function(t,e,r){t===G&&st(rt,e,r),h(t);var n=m(e);return h(r),p(et,n)?(r.enumerable?(p(t,B)&&t[B][n]&&(t[B][n]=!1),r=g(r,{enumerable:v(0,!1)})):(p(t,B)||X(t,B,v(1,{})),t[B][n]=!0),it(t,n,r)):X(t,n,r)},ut=function(t,e){h(t);var r=d(e),n=b(r).concat(ft(r));return F(n,(function(e){u&&!i(ct,r,e)||st(t,e,r[e])})),t},ct=function(t){var e=m(t),r=i(Q,this,e);return!(this===G&&p(et,e)&&!p(rt,e))&&(!(r||!p(this,e)||!p(et,e)||p(this,B)&&this[B][e])||r)},lt=function(t,e){var r=d(t),n=m(e);if(r!==G||!p(et,n)||p(rt,n)){var o=Y(r,n);return!o||!p(et,n)||p(r,B)&&r[B][n]||(o.enumerable=!0),o}},pt=function(t){var e=J(d(t)),r=[];return F(e,(function(t){p(et,t)||p(k,t)||tt(r,t)})),r},ft=function(t){var e=t===G,r=J(e?rt:d(t)),n=[];return F(r,(function(t){!p(et,t)||e&&!p(G,t)||tt(n,et[t])})),n};c||(j(Z=(W=function(){if(f(Z,this))throw H("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,e=M(t),r=function(t){this===G&&i(r,rt,t),p(this,B)&&p(this[B],e)&&(this[B][e]=!1),it(this,e,v(1,t))};return u&&ot&&it(G,e,{configurable:!0,set:r}),at(e,t)})[U],"toString",(function(){return $(this).tag})),j(W,"withoutSetter",(function(t){return at(M(t),t)})),P.f=ct,E.f=st,S.f=ut,O.f=lt,_.f=x.f=pt,w.f=ft,D.f=function(t){return at(I(t),t)},u&&(A(Z,"description",{configurable:!0,get:function(){return $(this).description}}),s||j(G,"propertyIsEnumerable",ct,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:W}),F(b(nt),(function(t){L(t)})),n({target:V,stat:!0,forced:!c},{useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(t,e){return void 0===e?g(t):ut(g(t),e)},defineProperty:st,defineProperties:ut,getOwnPropertyDescriptor:lt}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:pt}),R(),z(W,V),k[B]=!0},52615:()=>{},64523:(t,e,r)=>{var n=r(76887),o=r(626),i=r(90953),a=r(85803),s=r(68726),u=r(34680),c=s("string-to-symbol-registry"),l=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=a(t);if(i(c,e))return c[e];var r=o("Symbol")(e);return c[e]=r,l[r]=e,r}})},21732:(t,e,r)=>{r(73464)("hasInstance")},35903:(t,e,r)=>{r(73464)("isConcatSpreadable")},1825:(t,e,r)=>{r(73464)("iterator")},35824:(t,e,r)=>{r(48616),r(64523),r(38608),r(32619),r(37144)},38608:(t,e,r)=>{var n=r(76887),o=r(90953),i=r(56664),a=r(69826),s=r(68726),u=r(34680),c=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{keyFor:function(t){if(!i(t))throw TypeError(a(t)+" is not a symbol");if(o(c,t))return c[t]}})},45915:(t,e,r)=>{r(73464)("matchAll")},28394:(t,e,r)=>{r(73464)("match")},61766:(t,e,r)=>{r(73464)("replace")},62737:(t,e,r)=>{r(73464)("search")},89911:(t,e,r)=>{r(73464)("species")},74315:(t,e,r)=>{r(73464)("split")},63131:(t,e,r)=>{var n=r(73464),o=r(29630);n("toPrimitive"),o()},64714:(t,e,r)=>{var n=r(626),o=r(73464),i=r(90904);o("toStringTag"),i(n("Symbol"),"Symbol")},70659:(t,e,r)=>{r(73464)("unscopables")}
vendor: 8,382 bytes, line 1
1,28783:(t,e,r)=>{r(73464)("asyncDispose")},43975:(t,e,r)=>{r(73464)("dispose")},22731:(t,e,r)=>{var n=r(76887),o=r(626),i=r(95329),a=o("Symbol"),s=a.keyFor,u=i(a.prototype.valueOf);n({target:"Symbol",stat:!0},{isRegistered:function(t){try{return void 0!==s(u(t))}catch(t){return!1}}})},85605:(t,e,r)=>{for(var n=r(76887),o=r(68726),i=r(626),a=r(95329),s=r(56664),u=r(99813),c=i("Symbol"),l=c.isWellKnown,p=i("Object","getOwnPropertyNames"),f=a(c.prototype.valueOf),h=o("wks"),d=0,m=p(c),y=m.length;d<y;d++)try{var v=m[d];s(c[v])&&u(v)}catch(t){}n({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(t){if(l&&l(t))return!0;try{for(var e=f(t),r=0,n=p(h),o=n.length;r<o;r++)if(h[n[r]]==e)return!0}catch(t){}return!1}})},65799:(t,e,r)=>{r(73464)("matcher")},31943:(t,e,r)=>{r(73464)("metadataKey")},45414:(t,e,r)=>{r(73464)("metadata")},46774:(t,e,r)=>{r(73464)("observable")},80620:(t,e,r)=>{r(73464)("patternMatch")},36172:(t,e,r)=>{r(73464)("replaceAll")},7634:(t,e,r)=>{r(66274);var n=r(63281),o=r(21899),i=r(9697),a=r(32029),s=r(12077),u=r(99813)("toStringTag");for(var c in n){var l=o[c],p=l&&l.prototype;p&&i(p)!==u&&a(p,u,c),s[c]=s.Array}},49216:(t,e,r)=>{var n=r(99324);t.exports=n},11955:(t,e,r)=>{var n=r(2480);t.exports=n},46279:(t,e,r)=>{r(7634);var n=r(9697),o=r(90953),i=r(7046),a=r(49216),s=Array.prototype,u={DOMTokenList:!0,NodeList:!0};t.exports=function(t){var e=t.forEach;return t===s||i(s,t)&&e===s.forEach||o(u,n(t))?a:e}},19373:(t,e,r)=>{var n=r(34570);t.exports=n},52759:(t,e,r)=>{var n=r(93993);t.exports=n},57396:(t,e,r)=>{var n=r(7702);t.exports=n},41910:(t,e,r)=>{var n=r(48171);t.exports=n},79427:(t,e,r)=>{var n=r(286);t.exports=n},62857:(t,e,r)=>{var n=r(92766);t.exports=n},9534:(t,e,r)=>{var n=r(30498);t.exports=n},23059:(t,e,r)=>{var n=r(48494);t.exports=n},92547:(t,e,r)=>{var n=r(57473);r(7634),t.exports=n},46509:(t,e,r)=>{var n=r(24227);r(7634),t.exports=n},35774:(t,e,r)=>{var n=r(62978);t.exports=n},31905:function(){!function(t){!function(e){var r="URLSearchParams"in t,n="Symbol"in t&&"iterator"in Symbol,o="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),i="FormData"in t,a="ArrayBuffer"in t;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(t){return t&&s.indexOf(Object.prototype.toString.call(t))>-1};function c(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function l(t){return"string"!=typeof t&&(t=String(t)),t}function p(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function f(t){this.map={},t instanceof f?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function h(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function d(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function m(t){var e=new FileReader,r=d(e);return e.readAsArrayBuffer(t),r}function y(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:r&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():a&&o&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=y(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(t)||u(t))?this._bodyArrayBuffer=y(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var t=h(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var t,e,r,n=h(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,r=d(e=new FileReader),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(t,e){t=c(t),e=l(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},f.prototype.delete=function(t){delete this.map[c(t)]},f.prototype.get=function(t){return t=c(t),this.has(t)?this.map[t]:null},f.prototype.has=function(t){return this.map.hasOwnProperty(c(t))},f.prototype.set=function(t,e){this.map[c(t)]=l(e)},f.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},f.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),p(t)},f.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),p(t)},f.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),p(t)},n&&(f.prototype[Symbol.iterator]=f.prototype.entries);var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(t,e){var r,n,o=(e=e||{}).body;if(t instanceof b){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new f(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new f(e.headers)),this.method=(n=(r=e.method||this.method||"GET").toUpperCase(),g.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function _(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function x(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new f(e.headers),this.url=e.url||"",this._initBody(t)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},v.call(b.prototype),v.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},x.error=function(){var t=new x(null,{status:0,statusText:""});return t.type="error",t};var w=[301,302,303,307,308];x.redirect=function(t,e){if(-1===w.indexOf(e))throw new RangeError("Invalid status code");return new x(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function O(t,r){return new Promise((function(n,i){var a=new b(t,r);
1if(a.signal&&a.signal.aborted)return i(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var t,e,r={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new f,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}})),e)};r.url="responseURL"in s?s.responseURL:r.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;n(new x(o,r))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",u)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}O.polyfill=!0,t.fetch||(t.fetch=O,t.Headers=f,t.Request=b,t.Response=x),e.Headers=f,e.Request=b,e.Response=x,e.fetch=O,Object.defineProperty(e,"__esModule",{value:!0})}({})}("undefined"!=typeof self?self:this)},9996:t=>{"use strict";var e=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===r}(t)}(t)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(t,e){return!1!==e.clone&&e.isMergeableObject(t)?s((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function o(t,e,r){return t.concat(e).map((function(t){return n(t,r)}))}function i(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}(t))}function a(t,e){try{return e in t}catch(t){return!1}}function s(t,r,u){(u=u||{}).arrayMerge=u.arrayMerge||o,u.isMergeableObject=u.isMergeableObject||e,u.cloneUnlessOtherwiseSpecified=n;var c=Array.isArray(r);return c===Array.isArray(t)?c?u.arrayMerge(t,r,u):function(t,e,r){var o={};return r.isMergeableObject(t)&&i(t).forEach((function(e){o[e]=n(t[e],r)})),i(e).forEach((function(i){(function(t,e){return a(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,i)||(a(t,i)&&r.isMergeableObject(e[i])?o[i]=function(t,e){if(!e.customMerge)return s;var r=e.customMerge(t);return"function"==typeof r?r:s}(i,r)(t[i],e[i],r):o[i]=n(e[i],r))})),o}(t,r,u):n(r,u)}s.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return s(t,r,e)}),{})};var u=s;t.exports=u},88030:function(t){t.exports=function(){"use strict";var t=Math.pow(2,-52),e=new Uint32Array(512),r=function(t){var e=t.length>>1;if(e>0&&"number"!=typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;var r=Math.max(2*e-5,0);this._triangles=new Uint32Array(3*r),this._halfedges=new Int32Array(3*r),this._hashSize=Math.ceil(Math.sqrt(e)),this._hullPrev=new Uint32Array(e),this._hullNext=new Uint32Array(e),this._hullTri=new Uint32Array(e),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(e),this._dists=new Float64Array(e),this.update()};function n(t,e,r,n){var o=t-r,i=e-n;return o*o+i*i}function o(t,e,r,n,o,i){var a=(n-e)*(o-t),s=(r-t)*(i-e);return Math.abs(a-s)>=33306690738754716e-32*Math.abs(a+s)?a-s:0}function i(t,e,r,n,i,a){return(o(i,a,t,e,r,n)||o(t,e,r,n,i,a)||o(r,n,i,a,t,e))<0}function a(t,e,r,n,o,i){var a=r-t,s=n-e,u=o-t,c=i-e,l=a*a+s*s,p=u*u+c*c,f=.5/(a*c-s*u),h=(c*l-s*p)*f,d=(a*p-u*l)*f;return h*h+d*d}function s(t,e,r,n){if(n-r<=20)for(var o=r+1;o<=n;o++){for(var i=t[o],a=e[i],c=o-1;c>=r&&e[t[c]]>a;)t[c+1]=t[c--];t[c+1]=i}else{var l=r+1,p=n;u(t,r+n>>1,l),e[t[r]]>e[t[n]]&&u(t,r,n),e[t[l]]>e[t[n]]&&u(t,l,n),e[t[r]]>e[t[l]]&&u(t,r,l);for(var f=t[l],h=e[f];;){do{l++}while(e[t[l]]<h);do{p--}while(e[t[p]]>h);if(p<l)break;u(t,l,p)}t[r+1]=t[p],t[p]=f,n-l+1>=p-r?(s(t,e,l,n),s(t,e,r,p-1)):(s(t,e,r,p-1),s(t,e,l,n))}}function u(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function c(t){return t[0]}function l(t){return t[1]}return r.from=function(t,e,n){void 0===e&&(e=c),void 0===n&&(n=l);for(var o=t.length,i=new Float64Array(2*o),a=0;a<o;a++){var s=t[a];i[2*a]=e(s),i[2*a+1]=n(s)}return new r(i)},r.prototype.update=function(){for(var e=this,r=e.coords,o=e._hullPrev,u=e._hullNext,c=e._hullTri,l=e._hullHash,p=r.length>>1,f=1/0,h=1/0,d=-1/0,m=-1/0,y=0;y<p;
1y++){var v=r[2*y],g=r[2*y+1];v<f&&(f=v),g<h&&(h=g),v>d&&(d=v),g>m&&(m=g),this._ids[y]=y}for(var b,_,x,w=(f+d)/2,O=(h+m)/2,E=1/0,S=0;S<p;S++){var P=n(w,O,r[2*S],r[2*S+1]);P<E&&(b=S,E=P)}var j=r[2*b],A=r[2*b+1];E=1/0;for(var C=0;C<p;C++)if(C!==b){var T=n(j,A,r[2*C],r[2*C+1]);T<E&&T>0&&(_=C,E=T)}for(var k=r[2*_],M=r[2*_+1],I=1/0,D=0;D<p;D++)if(D!==b&&D!==_){var L=a(j,A,k,M,r[2*D],r[2*D+1]);L<I&&(x=D,I=L)}var R=r[2*x],z=r[2*x+1];if(I===1/0){for(var N=0;N<p;N++)this._dists[N]=r[2*N]-r[0]||r[2*N+1]-r[1];s(this._ids,this._dists,0,p-1);for(var F=new Uint32Array(p),B=0,V=0,U=-1/0;V<p;V++){var q=this._ids[V];this._dists[q]>U&&(F[B++]=q,U=this._dists[q])}return this.hull=F.subarray(0,B),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(i(j,A,k,M,R,z)){var $=_,G=k,W=M;_=x,k=R,M=z,x=$,R=G,z=W}var Z=function(t,e,r,n,o,i){var a=r-t,s=n-e,u=o-t,c=i-e,l=a*a+s*s,p=u*u+c*c,f=.5/(a*c-s*u);return{x:t+(c*l-s*p)*f,y:e+(a*p-u*l)*f}}(j,A,k,M,R,z);this._cx=Z.x,this._cy=Z.y;for(var H=0;H<p;H++)this._dists[H]=n(r[2*H],r[2*H+1],Z.x,Z.y);s(this._ids,this._dists,0,p-1),this._hullStart=b;var K=3;u[b]=o[x]=_,u[_]=o[b]=x,u[x]=o[_]=b,c[b]=0,c[_]=1,c[x]=2,l.fill(-1),l[this._hashKey(j,A)]=b,l[this._hashKey(k,M)]=_,l[this._hashKey(R,z)]=x,this.trianglesLen=0,this._addTriangle(b,_,x,-1,-1,-1);for(var Y=0,X=void 0,J=void 0;Y<this._ids.length;Y++){var Q=this._ids[Y],tt=r[2*Q],et=r[2*Q+1];if(!(Y>0&&Math.abs(tt-X)<=t&&Math.abs(et-J)<=t)&&(X=tt,J=et,Q!==b&&Q!==_&&Q!==x)){for(var rt=0,nt=0,ot=this._hashKey(tt,et);nt<this._hashSize&&(-1===(rt=l[(ot+nt)%this._hashSize])||rt===u[rt]);nt++);for(var it=rt=o[rt],at=void 0;at=u[it],!i(tt,et,r[2*it],r[2*it+1],r[2*at],r[2*at+1]);)if((it=at)===rt){it=-1;break}if(-1!==it){var st=this._addTriangle(it,Q,u[it],-1,-1,c[it]);c[Q]=this._legalize(st+2),c[it]=st,K++;for(var ut=u[it];at=u[ut],i(tt,et,r[2*ut],r[2*ut+1],r[2*at],r[2*at+1]);)st=this._addTriangle(ut,Q,at,c[Q],-1,c[ut]),c[Q]=this._legalize(st+2),u[ut]=ut,K--,ut=at;if(it===rt)for(;i(tt,et,r[2*(at=o[it])],r[2*at+1],r[2*it],r[2*it+1]);)st=this._addTriangle(at,Q,it,-1,c[it],c[at]),this._legalize(st+2),c[at]=st,u[it]=it,K--,it=at;this._hullStart=o[Q]=it,u[it]=o[ut]=Q,u[Q]=ut,l[this._hashKey(tt,et)]=Q,l[this._hashKey(r[2*it],r[2*it+1])]=it}}}this.hull=new Uint32Array(K);for(var ct=0,lt=this._hullStart;ct<K;ct++)this.hull[ct]=lt,lt=u[lt];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)},r.prototype._hashKey=function(t,e){return Math.floor((r=t-this._cx,n=e-this._cy,o=r/(Math.abs(r)+Math.abs(n)),(n>0?3-o:1+o)/4*this._hashSize))%this._hashSize;var r,n,o},r.prototype._legalize=function(t){for(var r=this,n=r._triangles,o=r._halfedges,i=r.coords,a=0,s=0;;){var u=o[t],c=t-t%3;if(s=c+(t+2)%3,-1!==u){var l=u-u%3,p=c+(t+1)%3,f=l+(u+2)%3,h=n[s],d=n[t],m=n[p],y=n[f];if(_=i[2*h],x=i[2*h+1],w=i[2*d],O=i[2*d+1],E=i[2*m],S=i[2*m+1],void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,(A=_-(P=i[2*y]))*((k=O-(j=i[2*y+1]))*(L=(M=E-P)*M+(I=S-j)*I)-(D=(T=w-P)*T+k*k)*I)-(C=x-j)*(T*L-D*M)+(A*A+C*C)*(T*I-k*M)<0){n[t]=y,n[u]=h;var v=o[f];if(-1===v){var g=this._hullStart;do{if(this._hullTri[g]===f){this._hullTri[g]=t;break}g=this._hullPrev[g]}while(g!==this._hullStart)}this._link(t,v),this._link(u,o[s]),this._link(s,f);var b=l+(u+1)%3;a<e.length&&(e[a++]=b)}else{if(0===a)break;t=e[--a]}}else{if(0===a)break;t=e[--a]}}var _,x,w,O,E,S,P,j,A,C,T,k,M,I,D,L;return s},r.prototype._link=function(t,e){this._halfedges[t]=e,-1!==e&&(this._halfedges[e]=t)},r.prototype._addTriangle=function(t,e,r,n,o,i){var a=this.trianglesLen;return this._triangles[a]=t,this._triangles[a+1]=e,this._triangles[a+2]=r,this._link(a,n),this._link(a+1,o),this._link(a+2,i),this.trianglesLen+=3,a},r}()},33759:(t,e,r)=>{"use strict";e.Z=void 0;var n,o=(n=r(88030))&&n.__esModule?n:{default:n};function i(t){return t[0]}function a(t){return t[1]}function s(t,e,r){return[t+Math.sin(t+e)*r,e+Math.cos(t-e)*r]}var u=function(){function t(t){var e=new o.default(t);this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=e.coords,this._init(e)}var e=t.prototype;return e._init=function(t){var e=t,r=this.points;if(e.hull&&e.hull.length>2&&function(t){for(var e=t.triangles,r=t.coords,n=0;n<e.length;n+=3){var o=2*e[n],i=2*e[n+1],a=2*e[n+2];if((r[a]-r[o])*(r[i+1]-r[o+1])-(r[i]-r[o])*(r[a+1]-r[o+1])>1e-10)return!1}return!0}(e)){this.collinear=Int32Array.from({length:r.length/2},(function(t,e){return e})).sort((function(t,e){return r[2*t]-r[2*e]||r[2*t+1]-r[2*e+1]}));for(var n=this.collinear[0],i=this.collinear[this.collinear.length-1],a=[r[2*n],r[2*n+1],r[2*i],r[2*i+1]],u=1e-8*Math.sqrt(Math.pow(a[3]-a[1],2)+Math.pow(a[2]-a[0],2)),c=0,l=r.length/2;c<l;++c){var p=s(r[2*c],r[2*c+1],u);
1r[2*c]=p[0],r[2*c+1]=p[1]}t=new o.default(r)}for(var f=this.halfedges=t.halfedges,h=this.hull=t.hull,d=this.triangles=t.triangles,m=this.inedges.fill(-1),y=this._hullIndex.fill(-1),v=0,g=f.length;v<g;++v){var b=d[v%3==2?v-2:v+1];-1!==f[v]&&-1!==m[b]||(m[b]=v)}for(var _=0,x=h.length;_<x;++_)y[h[_]]=_;h.length<=2&&h.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=h[0],this.triangles[1]=h[1],this.triangles[2]=h[1],m[h[0]]=1,2===h.length&&(m[h[1]]=0))},e.neighbors=function(t){var e=[],r=this.inedges,n=this.hull,o=this._hullIndex,i=this.halfedges,a=this.triangles,s=r[t];if(-1===s)return e;var u=s,c=-1;do{if(c=a[u],e.push(c),a[u=u%3==2?u-2:u+1]!==t)break;if(-1===(u=i[u])){var l=n[(o[t]+1)%n.length];l!==c&&e.push(l);break}}while(u!==s);return e},e.find=function(t,e,r){if(void 0===r&&(r=0),(t=+t)!=t||(e=+e)!=e)return-1;for(var n,o=r;(n=this._step(r,t,e))>=0&&n!==r&&n!==o;)r=n;return n},e._step=function(t,e,r){var n=this.inedges,o=this.points;if(-1===n[t]||!o.length)return(t+1)%(o.length>>1);var i=t,a=Math.pow(e-o[2*t],2)+Math.pow(r-o[2*t+1],2),s=this.neighbors(t),u=Array.isArray(s),c=0;for(s=u?s:s[Symbol.iterator]();;){var l;if(u){if(c>=s.length)break;l=s[c++]}else{if((c=s.next()).done)break;l=c.value}var p=l,f=Math.pow(e-o[2*p],2)+Math.pow(r-o[2*p+1],2);f<a&&(a=f,i=p)}return i},t}();e.Z=u,u.from=function(t,e,r,n){return void 0===e&&(e=i),void 0===r&&(r=a),new u(function(t,e,r,n){for(var o=t.length,i=new Float64Array(2*o),a=0;a<o;++a){var s=t[a];i[2*a]=e.call(n,s,a,t),i[2*a+1]=r.call(n,s,a,t)}return i}(t,e,r,n))}},68317:t=>{function e(t,e,r,n){this.dataset=[],this.epsilon=1,this.minPts=2,this.distance=this._euclideanDistance,this.clusters=[],this.noise=[],this._visited=[],this._assigned=[],this._datasetLength=0,this._init(t,e,r,n)}e.prototype.run=function(t,e,r,n){this._init(t,e,r,n);for(var o=0;o<this._datasetLength;o++)if(1!==this._visited[o]){this._visited[o]=1;var i=this._regionQuery(o);if(i.length<this.minPts)this.noise.push(o);
1else{var a=this.clusters.length;this.clusters.push([]),this._addToCluster(o,a),this._expandCluster(a,i)}}return this.clusters},e.prototype._init=function(t,e,r,n){if(t){if(!(t instanceof Array))throw Error("Dataset must be of type array, "+typeof t+" given");this.dataset=t,this.clusters=[],this.noise=[],this._datasetLength=t.length,this._visited=new Array(this._datasetLength),this._assigned=new Array(this._datasetLength)}e&&(this.epsilon=e),r&&(this.minPts=r),n&&(this.distance=n)},e.prototype._expandCluster=function(t,e){for(var r=0;r<e.length;r++){var n=e[r];if(1!==this._visited[n]){this._visited[n]=1;var o=this._regionQuery(n);o.length>=this.minPts&&(e=this._mergeArrays(e,o))}1!==this._assigned[n]&&this._addToCluster(n,t)}},e.prototype._addToCluster=function(t,e){this.clusters[e].push(t),this._assigned[t]=1},e.prototype._regionQuery=function(t){for(var e=[],r=0;r<this._datasetLength;r++)this.distance(this.dataset[t],this.dataset[r])<this.epsilon&&e.push(r);return e},e.prototype._mergeArrays=function(t,e){for(var r=e.length,n=0;n<r;n++){var o=e[n];t.indexOf(o)<0&&t.push(o)}return t},e.prototype._euclideanDistance=function(t,e){for(var r=0,n=Math.min(t.length,e.length);n--;)r+=(t[n]-e[n])*(t[n]-e[n]);return Math.sqrt(r)},t.exports&&(t.exports=e)},63781:t=>{function e(t,e,r){this.k=3,this.dataset=[],this.assignments=[],this.centroids=[],this.init(t,e,r)}e.prototype.init=function(t,e,r){this.assignments=[],this.centroids=[],void 0!==t&&(this.dataset=t),void 0!==e&&(this.k=e),void 0!==r&&(this.distance=r)},e.prototype.run=function(t,e){this.init(t,e);for(var r=this.dataset.length,n=0;n<this.k;n++)this.centroids[n]=this.randomCentroid();for(var o=!0;o;){o=this.assign();for(var i=0;i<this.k;i++){for(var a=new Array(l),s=0,u=0;u<l;u++)a[u]=0;for(var c=0;c<r;c++){var l=this.dataset[c].length;if(i===this.assignments[c]){for(u=0;u<l;u++)a[u]+=this.dataset[c][u];s++}}if(s>0){for(u=0;u<l;u++)a[u]/=s;this.centroids[i]=a}else this.centroids[i]=this.randomCentroid(),o=!0}}return this.getClusters()},e.prototype.randomCentroid=function(){var t,e,r=this.dataset.length-1;do{e=Math.round(Math.random()*r),t=this.dataset[e]}while(this.centroids.indexOf(t)>=0);return t},e.prototype.assign=function(){for(var t,e=!1,r=this.dataset.length,n=0;n<r;n++)(t=this.argmin(this.dataset[n],this.centroids,this.distance))!=this.assignments[n]&&(this.assignments[n]=t,e=!0);return e},e.prototype.getClusters=function(){for(var t,e=new Array(this.k),r=0;r<this.assignments.length;r++)void 0===e[t=this.assignments[r]]&&(e[t]=[]),e[t].push(r);return e},e.prototype.argmin=function(t,e,r){for(var n,o=Number.MAX_VALUE,i=0,a=e.length,s=0;s<a;s++)(n=r(t,e[s]))<o&&(o=n,i=s);return i},e.prototype.distance=function(t,e){for(var r=0,n=Math.min(t.length,e.length);n--;){var o=t[n]-e[n];r+=o*o}return Math.sqrt(r)},t.exports&&(t.exports=e)},73763:(t,e,r)=>{if(t.exports)var n=r(57985);function o(t,e,r,n){this.epsilon=1,this.minPts=1,this.distance=this._euclideanDistance,this._reachability=[],this._processed=[],this._coreDistance=0,this._orderedList=[],this._init(t,e,r,n)}o.prototype.run=function(t,e,r,o){this._init(t,e,r,o);for(var i=0,a=this.dataset.length;i<a;i++)if(1!==this._processed[i]){this._processed[i]=1,this.clusters.push([i]);
1var s=this.clusters.length-1;this._orderedList.push(i);var u=new n(null,null,"asc"),c=this._regionQuery(i);void 0!==this._distanceToCore(i)&&(this._updateQueue(i,c,u),this._expandCluster(s,u))}return this.clusters},o.prototype.getReachabilityPlot=function(){for(var t=[],e=0,r=this._orderedList.length;e<r;e++){var n=this._orderedList[e],o=this._reachability[n];t.push([n,o])}return t},o.prototype._init=function(t,e,r,n){if(t){if(!(t instanceof Array))throw Error("Dataset must be of type array, "+typeof t+" given");this.dataset=t,this.clusters=[],this._reachability=new Array(this.dataset.length),this._processed=new Array(this.dataset.length),this._coreDistance=0,this._orderedList=[]}e&&(this.epsilon=e),r&&(this.minPts=r),n&&(this.distance=n)},o.prototype._updateQueue=function(t,e,r){var n=this;this._coreDistance=this._distanceToCore(t),e.forEach((function(e){if(void 0===n._processed[e]){var o=n.distance(n.dataset[t],n.dataset[e]),i=Math.max(n._coreDistance,o);void 0===n._reachability[e]?(n._reachability[e]=i,r.insert(e,i)):i<n._reachability[e]&&(n._reachability[e]=i,r.remove(e),r.insert(e,i))}}))},o.prototype._expandCluster=function(t,e){for(var r=e.getElements(),n=0,o=r.length;n<o;n++){var i=r[n];if(void 0===this._processed[i]){var a=this._regionQuery(i);this._processed[i]=1,this.clusters[t].push(i),this._orderedList.push(i),void 0!==this._distanceToCore(i)&&(this._updateQueue(i,a,e),this._expandCluster(t,e))}}},o.prototype._distanceToCore=function(t){for(var e=this.epsilon,r=0;r<e;r++)if(this._regionQuery(t,r).length>=this.minPts)return r},o.prototype._regionQuery=function(t,e){e=e||this.epsilon;for(var r=[],n=0,o=this.dataset.length;n<o;n++)this.distance(this.dataset[t],this.dataset[n])<e&&r.push(n);return r},o.prototype._euclideanDistance=function(t,e){for(var r=0,n=Math.min(t.length,e.length);n--;)r+=(t[n]-e[n])*(t[n]-e[n]);return Math.sqrt(r)},t.exports&&(t.exports=o)},57985:t=>{function e(t,e,r){this._queue=[],this._priorities=[],this._sorting="desc",this._init(t,e,r)}e.prototype.insert=function(t,e){for(var r=this._queue.length,n=r;n--;){var o=this._priorities[n];"desc"===this._sorting?e>o&&(r=n):e<o&&(r=n)}this._insertAt(t,e,r)},e.prototype.remove=function(t){for(var e=this._queue.length;e--;)if(t===this._queue[e]){this._queue.splice(e,1),this._priorities.splice(e,1);break}},e.prototype.forEach=function(t){this._queue.forEach(t)},e.prototype.getElements=function(){return this._queue},e.prototype.getElementPriority=function(t){return this._priorities[t]},e.prototype.getPriorities=function(){return this._priorities},e.prototype.getElementsWithPriorities=function(){for(var t=[],e=0,r=this._queue.length;e<r;e++)t.push([this._queue[e],this._priorities[e]]);return t},e.prototype._init=function(t,e,r){if(t&&e){if(this._queue=[],this._priorities=[],t.length!==e.length)throw new Error("Arrays must have the same length");for(var n=0;n<t.length;n++)this.insert(t[n],e[n])}r&&(this._sorting=r)},e.prototype._insertAt=function(t,e,r){this._queue.length===r?(this._queue.push(t),this._priorities.push(e)):(this._queue.splice(r,0,t),this._priorities.splice(r,0,e))},t.exports&&(t.exports=e)},52606:(t,e,r)=>{t.exports&&(t.exports={DBSCAN:r(68317),KMEANS:r(63781),OPTICS:r(73763),PriorityQueue:r(57985)})},17648:t=>{"use strict";var e=Array.prototype.slice,r=Object.prototype.toString;t.exports=function(t){var n=this;if("function"!=typeof n||"[object Function]"!==r.call(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var o,i=e.call(arguments,1),a=Math.max(0,n.length-i.length),s=[],u=0;u<a;u++)s.push("$"+u);if(o=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var r=n.apply(this,i.concat(e.call(arguments)));return Object(r)===r?r:this}return n.apply(t,i.concat(e.call(arguments)))})),n.prototype){var c=function(){};c.prototype=n.prototype,o.prototype=new c,c.prototype=null}return o}},58612:(t,e,r)=>{"use strict";var n=r(17648);t.exports=Function.prototype.bind||n},40210:(t,e,r)=>{"use strict";var n,o=SyntaxError,i=Function,a=TypeError,s=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(t){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(t){u=null}var c=function(){throw new a},l=u?function(){try{return c}catch(t){try{return u(arguments,"callee").get}catch(t){return c}}}():c,p=r(41405)(),f=r(28185)(),h=Object.getPrototypeOf||(f?function(t){return t.__proto__}:null),d={},m="undefined"!=typeof Uint8Array&&h?h(Uint8Array):n,y={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":p&&h?h([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
1IteratorPrototype%":p&&h?h(h([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p&&h?h((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p&&h?h((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p&&h?h(""[Symbol.iterator]()):n,"%Symbol%":p?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":m,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(h)try{null.error}catch(t){var v=h(h(t));y["%Error.prototype%"]=v}var g=function t(e){var r;if("%AsyncFunction%"===e)r=s("async function () {}");else if("%GeneratorFunction%"===e)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=s("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&h&&(r=h(o.prototype))}return y[e]=r,r},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},_=r(58612),x=r(17642),w=_.call(Function.call,Array.prototype.concat),O=_.call(Function.apply,Array.prototype.splice),E=_.call(Function.call,String.prototype.replace),S=_.call(Function.call,String.prototype.slice),P=_.call(Function.call,RegExp.prototype.exec),j=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,C=function(t,e){var r,n=t;if(x(b,n)&&(n="%"+(r=b[n])[0]+"%"),x(y,n)){var i=y[n];if(i===d&&(i=g(n)),void 0===i&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new a('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,t))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=S(t,0,1),r=S(t,-1);if("%"===e&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return E(t,j,(function(t,e,r,o){n[n.length]=r?E(o,A,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",i=C("%"+n+"%",e),s=i.name,c=i.value,l=!1,p=i.alias;p&&(n=p[0],O(r,w([0,1],p)));for(var f=1,h=!0;f<r.length;f+=1){var d=r[f],m=S(d,0,1),v=S(d,-1);if(('"'===m||"'"===m||"`"===m||'"'===v||"'"===v||"`"===v)&&m!==v)throw new o("property names with quotes must have matching quotes");if("constructor"!==d&&h||(l=!0),x(y,s="%"+(n+="."+d)+"%"))c=y[s];else if(null!=c){if(!(d in c)){if(!e)throw new a("base intrinsic for "+t+" exists, but the property is not available.");return}if(u&&f+1>=r.length){var g=u(c,d);c=(h=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:c[d]}else h=x(c,d),c=c[d];h&&!l&&(y[s]=c)}}return c}},28185:t=>{"use strict";var e={foo:{}},r=Object;t.exports=function(){return{__proto__:e}.foo===e.foo&&!({__proto__:null}instanceof r)}},41405:(t,e,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(55419);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},55419:t=>{"use strict";
vendor: 30,469 bytes, line 1
1t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},17642:(t,e,r)=>{"use strict";var n=r(58612);t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},8679:(t,e,r)=>{"use strict";var n=r(21296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(t){return n.isMemo(t)?a:s[t.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,d=Object.prototype;t.exports=function t(e,r,n){if("string"!=typeof r){if(d){var o=h(r);o&&o!==d&&t(e,o,n)}var a=l(r);p&&(a=a.concat(p(r)));for(var s=u(e),m=u(r),y=0;y<a.length;++y){var v=a[y];if(!(i[v]||n&&n[v]||m&&m[v]||s&&s[v])){var g=f(r,v);try{c(e,v,g)}catch(t){}}}}return e}},96103:(t,e)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,d=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function x(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case n:switch(t=t.type){case l:case p:case i:case s:case a:case h:return t;default:switch(t=t&&t.$$typeof){case c:case f:case y:case m:case u:return t;default:return e}}case o:return e}}}function w(t){return x(t)===p}e.AsyncMode=l,e.ConcurrentMode=p,e.ContextConsumer=c,e.ContextProvider=u,e.Element=n,e.ForwardRef=f,e.Fragment=i,e.Lazy=y,e.Memo=m,e.Portal=o,e.Profiler=s,e.StrictMode=a,e.Suspense=h,e.isAsyncMode=function(t){return w(t)||x(t)===l},e.isConcurrentMode=w,e.isContextConsumer=function(t){return x(t)===c},e.isContextProvider=function(t){return x(t)===u},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===n},e.isForwardRef=function(t){return x(t)===f},e.isFragment=function(t){return x(t)===i},e.isLazy=function(t){return x(t)===y},e.isMemo=function(t){return x(t)===m},e.isPortal=function(t){return x(t)===o},e.isProfiler=function(t){return x(t)===s},e.isStrictMode=function(t){return x(t)===a},e.isSuspense=function(t){return x(t)===h},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===i||t===p||t===s||t===a||t===h||t===d||"object"==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===m||t.$$typeof===u||t.$$typeof===c||t.$$typeof===f||t.$$typeof===g||t.$$typeof===b||t.$$typeof===_||t.$$typeof===v)},e.typeOf=x},21296:(t,e,r)=>{"use strict";t.exports=r(96103)},35369:(t,e,r)=>{"use strict";r.r(e),r.d(e,{Collection:()=>E,Iterable:()=>En,List:()=>or,Map:()=>De,OrderedMap:()=>gr,OrderedSet:()=>an,PairSorting:()=>pn,Range:()=>Ur,Record:()=>fn,Repeat:()=>bn,Seq:()=>Z,Set:()=>Lr,Stack:()=>Er,default:()=>Sn,fromJS:()=>_n,get:()=>oe,getIn:()=>qr,has:()=>ne,hasIn:()=>Gr,hash:()=>ht,is:()=>ct,isAssociative:()=>O,isCollection:()=>g,isImmutable:()=>M,isIndexed:()=>w,isKeyed:()=>_,isList:()=>nr,isMap:()=>at,isOrdered:()=>D,isOrderedMap:()=>st,isOrderedSet:()=>kr,isPlainObject:()=>te,isRecord:()=>k,isSeq:()=>C,isSet:()=>Tr,isStack:()=>Or,isValueObject:()=>ut,merge:()=>_e,mergeDeep:()=>we,mergeDeepWith:()=>Oe,mergeWith:()=>xe,remove:()=>ae,removeIn:()=>fe,set:()=>se,setIn:()=>le,update:()=>de,updateIn:()=>ue,version:()=>On});var n="delete",o=32,i=31,a={};function s(t){t&&(t.value=!0)}function u(){}function c(t){return void 0===t.size&&(t.size=t.__iterate(p)),t.size}function l(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||4294967295===r)return NaN;e=r}return e<0?c(t)+e:e}function p(){return!0}function f(t,e,r){return(0===t&&!y(t)||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&e>=r)}function h(t,e){return m(t,e,0)}function d(t,e){return m(t,e,e)}function m(t,e,r){return void 0===t?r:y(t)?e===1/0?e:0|Math.max(0,e+t):void 0===e||e===t?t:0|Math.min(e,t)}function y(t){return t<0||0===t&&1/t==-1/0}var v="@@__IMMUTABLE_ITERABLE__@@";function g(t){return Boolean(t&&t[v])}var b="@@__IMMUTABLE_KEYED__@@";function _(t){return Boolean(t&&t[b])}var x="@@__IMMUTABLE_INDEXED__@@";function w(t){return Boolean(t&&t[x])}function O(t){return _(t)||w(t)}var E=function(t){return g(t)?t:Z(t)},S=function(t){function e(t){return _(t)?t:H(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(E),P=function(t){function e(t){return w(t)?t:K(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(E),j=function(t){function e(t){return g(t)&&!O(t)?t:Y(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(E);E.Keyed=S,E.Indexed=P,E.Set=j;var A="@@__IMMUTABLE_SEQ__@@";function C(t){return Boolean(t&&t[A])}var T="@@__IMMUTABLE_RECORD__@@";function k(t){return Boolean(t&&t[T])}function M(t){return g(t)||k(t)}var I="@@__IMMUTABLE_ORDERED__@@";function D(t){return Boolean(t&&t[I])}var L="function"==typeof Symbol&&Symbol.iterator,R="@@iterator",z=L||R,N=function(t){this.next=t};function F(t,e,r,n){var o=0===t?e:1===t?r:[e,r];return n?n.value=o:n={value:o,done:!1},n}function B(){return{value:void 0,done:!0}}function V(t){return!!Array.isArray(t)||!!$(t)}function U(t){return t&&"function"==typeof t.next}function q(t){var e=$(t);return e&&e.call(t)}function $(t){var e=t&&(L&&t[L]||t[R]);if("function"==typeof e)return e}N.prototype.toString=function(){return"[Iterator]"},N.KEYS=0,N.VALUES=1,N.ENTRIES=2,N.prototype.inspect=N.prototype.toSource=function(){return this.toString()},N.prototype[z]=function(){return this};var G=Object.prototype.hasOwnProperty;function W(t){return!(!Array.isArray(t)&&"string"!=typeof t)||t&&"object"==typeof t&&Number.isInteger(t.length)&&t.length>=0&&(0===t.length?1===Object.keys(t).length:t.hasOwnProperty(t.length-1))}var Z=function(t){function e(t){return null==t?et():M(t)?t.toSeq():function(t){var e,r,n=ot(t);if(n)return(r=$(e=t))&&r===e.entries?n.fromEntrySeq():function(t){var e=$(t);return e&&e===t.keys}(t)?n.toSetSeq():n;if("object"==typeof t)return new J(t);throw new TypeError("Expected Array or collection object of values, or keyed object: "+t)}(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq {","}")},e.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},e.prototype.__iterate=function(t,e){var r=this._cache;if(r){for(var n=r.length,o=0;o!==n;){var i=r[e?n-++o:o++];if(!1===t(i[1],i[0],this))break}return o}return this.__iterateUncached(t,e)},e.prototype.__iterator=function(t,e){var r=this._cache;if(r){var n=r.length,o=0;return new N((function(){if(o===n)return{value:void 0,done:!0};var i=r[e?n-++o:o++];return F(t,i[0],i[1])}))}return this.__iteratorUncached(t,e)},e}(E),H=function(t){function e(t){return null==t?et().toKeyedSeq():g(t)?_(t)?t.toSeq():t.fromEntrySeq():k(t)?t.toSeq():rt(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toKeyedSeq=function(){return this},e}(Z),K=function(t){function e(t){return null==t?et():g(t)?_(t)?t.entrySeq():t.toIndexedSeq():k(t)?t.toSeq().entrySeq():nt(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toIndexedSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq [","]")},e}(Z),Y=function(t){function e(t){return(g(t)&&!O(t)?t:K(t)).toSetSeq()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toSetSeq=function(){return this},e}(Z);Z.isSeq=C,Z.Keyed=H,Z.Set=Y,Z.Indexed=K,Z.prototype[A]=!0;var X=function(t){function e(t){this._array=t,this.size=t.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this.has(t)?this._array[l(this,t)]:e},e.prototype.__iterate=function(t,e){for(var r=this._array,n=r.length,o=0;o!==n;){var i=e?n-++o:o++;if(!1===t(r[i],i,this))break}return o},e.prototype.__iterator=function(t,e){var r=this._array,n=r.length,o=0;return new N((function(){if(o===n)return{value:void 0,done:!0};var i=e?n-++o:o++;return F(t,i,r[i])}))},e}(K),J=function(t){function e(t){var e=Object.keys(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]);this._object=t,this._keys=e,this.size=e.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},e.prototype.has=function(t){return G.call(this._object,t)},e.prototype.__iterate=function(t,e){for(var r=this._object,n=this._keys,o=n.length,i=0;i!==o;){var a=n[e?o-++i:i++];if(!1===t(r[a],a,this))break}return i},e.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,o=n.length,i=0;return new N((function(){if(i===o)return{value:void 0,done:!0};var a=n[e?o-++i:i++];return F(t,a,r[a])}))},e}(H);J.prototype[I]=!0;var Q,tt=function(t){function e(t){this._collection=t,this.size=t.length||t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r=q(this._collection),n=0;if(U(r))for(var o;!(o=r.next()).done&&!1!==t(o.value,n++,this););return n},e.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=q(this._collection);if(!U(r))return new N(B);var n=0;return new N((function(){var e=r.next();return e.done?e:F(t,n++,e.value)}))},e}(K);function et(){return Q||(Q=new X([]))}function rt(t){var e=ot(t);if(e)return e.fromEntrySeq();if("object"==typeof t)return new J(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function nt(t){var e=ot(t);if(e)return e;throw new TypeError("Expected Array or collection object of values: "+t)}function ot(t){return W(t)?new X(t):V(t)?new tt(t):void 0}var it="@@__IMMUTABLE_MAP__@@";function at(t){return Boolean(t&&t[it])}function st(t){return at(t)&&D(t)}function ut(t){return Boolean(t&&"function"==typeof t.equals&&"function"==typeof t.hashCode)}function ct(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!!(ut(t)&&ut(e)&&t.equals(e))}var lt="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var r=65535&(t|=0),n=65535&(e|=0);return r*n+((t>>>16)*n+r*(e>>>16)<<16>>>0)|0};function pt(t){return t>>>1&1073741824|3221225471&t}var ft=Object.prototype.valueOf;function ht(t){if(null==t)return dt(t);if("function"==typeof t.hashCode)return pt(t.hashCode(t));var e,r,n,o=(e=t).valueOf!==ft&&"function"==typeof e.valueOf?e.valueOf(e):e;if(null==o)return dt(o);switch(typeof o){case"boolean":return o?1108378657:1108378656;case"number":return function(t){if(t!=t||t===1/0)return 0;var e=0|t;for(e!==t&&(e^=4294967295*t);t>4294967295;)e^=t/=4294967295;return pt(e)}(o);case"string":return o.length>Et?(void 0===(n=jt[r=o])&&(n=mt(r),Pt===St&&(Pt=0,jt={}),Pt++,jt[r]=n),n):mt(o);case"object":case"function":return function(t){var e;if(_t&&void 0!==(e=bt.get(t)))return e;if(void 0!==(e=t[Ot]))return e;if(!vt){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Ot]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=gt(),_t)bt.set(t,e);else{if(void 0!==yt&&!1===yt(t))throw new Error("Non-extensible objects are not allowed as keys.");if(vt)Object.defineProperty(t,Ot,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Ot]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Ot]=e}}return e}(o);case"symbol":return function(t){var e=xt[t];return void 0!==e||(e=gt(),xt[t]=e),e}(o);default:if("function"==typeof o.toString)return mt(o.toString());throw new Error("Value type "+typeof o+" cannot be hashed.")}}function dt(t){return null===t?1108378658:1108378659}function mt(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return pt(e)}var yt=Object.isExtensible,vt=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}();function gt(){var t=++wt;return 1073741824&wt&&(wt=0),t}var bt,_t="function"==typeof WeakMap;_t&&(bt=new WeakMap);var xt=Object.create(null),wt=0,Ot="__immutablehash__";"function"==typeof Symbol&&(Ot=Symbol(Ot));var Et=16,St=255,Pt=0,jt={},At=function(t){function e(t,e){this._iter=t,this._useKeys=e,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this._iter.get(t,e)},e.prototype.has=function(t){return this._iter.has(t)},e.prototype.valueSeq=function(){return this._iter.valueSeq()},e.prototype.reverse=function(){var t=this,e=Dt(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},e.prototype.map=function(t,e){var r=this,n=It(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},e.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate((function(e,n){return t(e,n,r)}),e)},e.prototype.__iterator=function(t,e){return this._iter.__iterator(t,e)},e}(H);At.prototype[I]=!0;var Ct=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.includes=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(t,e){var r=this,n=0;return e&&c(this),this._iter.__iterate((function(o){return t(o,e?r.size-++n:n++,r)}),e)},e.prototype.__iterator=function(t,e){var r=this,n=this._iter.__iterator(1,e),o=0;return e&&c(this),new N((function(){var i=n.next();return i.done?i:F(t,e?r.size-++o:o++,i.value,i)}))},e}(K),Tt=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.has=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate((function(e){return t(e,e,r)}),e)},e.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e);return new N((function(){var e=r.next();return e.done?e:F(t,e.value,e.value,e)}))},e}(Y),kt=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.entrySeq=function(){return this._iter.toSeq()},e.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate((function(e){if(e){$t(e);var n=g(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}}),e)},e.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e);return new N((function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){$t(n);var o=g(n);return F(t,o?n.get(0):n[0],o?n.get(1):n[1],e)}}}))},e}(H);function Mt(t){var e=Wt(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=Zt,e.__iterateUncached=function(e,r){var n=this;return t.__iterate((function(t,r){return!1!==e(r,t,n)}),r)},e.__iteratorUncached=function(e,r){if(2===e){var n=t.__iterator(e,r);return new N((function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t}))}return t.__iterator(1===e?0:1,r)},e}function It(t,e,r){var n=Wt(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,o){var i=t.get(n,a);return i===a?o:e.call(r,i,n,t)},n.__iterateUncached=function(n,o){var i=this;return t.__iterate((function(t,o,a){return!1!==n(e.call(r,t,o,a),o,i)}),o)},n.__iteratorUncached=function(n,o){var i=t.__iterator(2,o);return new N((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return F(n,s,e.call(r,a[1],s,t),o)}))},n}function Dt(t,e){var r=this,n=Wt(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=Mt(t);return e.reverse=function(){return t.flip()},e}),n.get=function(r,n){return t.get(e?r:-1-r,n)},n.has=function(r){return t.has(e?r:-1-r)},n.includes=function(e){return t.includes(e)},n.cacheResult=Zt,n.__iterate=function(r,n){var o=this,i=0;return n&&c(t),t.__iterate((function(t,a){return r(t,e?a:n?o.size-++i:i++,o)}),!n)},n.__iterator=function(n,o){var i=0;o&&c(t);var a=t.__iterator(2,!o);return new N((function(){var t=a.next();if(t.done)return t;var s=t.value;return F(n,e?s[0]:o?r.size-++i:i++,s[1],t)}))},n}function Lt(t,e,r,n){var o=Wt(t);return n&&(o.has=function(n){var o=t.get(n,a);return o!==a&&!!e.call(r,o,n,t)},o.get=function(n,o){var i=t.get(n,a);return i!==a&&e.call(r,i,n,t)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return t.__iterate((function(t,i,u){if(e.call(r,t,i,u))return s++,o(t,n?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=t.__iterator(2,i),s=0;return new N((function(){for(;;){var i=a.next();if(i.done)return i;var u=i.value,c=u[0],l=u[1];if(e.call(r,l,c,t))return F(o,n?c:s++,l,i)}}))},o}function Rt(t,e,r,n){var o=t.size;if(f(e,r,o))return t;var i=h(e,o),a=d(r,o);if(i!=i||a!=a)return Rt(t.toSeq().cacheResult(),e,r,n);var s,u=a-i;u==u&&(s=u<0?0:u);var c=Wt(t);return c.size=0===s?s:t.size&&s||void 0,!n&&C(t)&&s>=0&&(c.get=function(e,r){return(e=l(this,e))>=0&&e<s?t.get(e+i,r):r}),c.__iterateUncached=function(e,r){var o=this;if(0===s)return 0;if(r)return this.cacheResult().__iterate(e,r);var a=0,u=!0,c=0;return t.__iterate((function(t,r){if(!u||!(u=a++<i))return c++,!1!==e(t,n?r:c-1,o)&&c!==s})),c},c.__iteratorUncached=function(e,r){if(0!==s&&r)return this.cacheResult().__iterator(e,r);if(0===s)return new N(B);var o=t.__iterator(e,r),a=0,u=0;return new N((function(){for(;a++<i;)o.next();if(++u>s)return{value:void 0,done:!0};var t=o.next();return n||1===e||t.done?t:F(e,u-1,0===e?void 0:t.value[1],t)}))},c}function zt(t,e,r,n){var o=Wt(t);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,u=0;return t.__iterate((function(t,i,c){if(!s||!(s=e.call(r,t,i,c)))return u++,o(t,n?i:u-1,a)})),u},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=t.__iterator(2,i),u=!0,c=0;return new N((function(){var t,i,l;do{if((t=s.next()).done)return n||1===o?t:F(o,c++,0===o?void 0:t.value[1],t);var p=t.value;i=p[0],l=p[1],u&&(u=e.call(r,l,i,a))}while(u);return 2===o?t:F(o,i,l,t)}))},o}function Nt(t,e,r){var n=Wt(t);return n.__iterateUncached=function(o,i){if(i)return this.cacheResult().__iterate(o,i);var a=0,s=!1;return function t(u,c){u.__iterate((function(i,u){return(!e||c<e)&&g(i)?t(i,c+1):(a++,!1===o(i,r?u:a-1,n)&&(s=!0)),!s}),i)}(t,0),a},n.__iteratorUncached=function(n,o){if(o)return this.cacheResult().__iterator(n,o);var i=t.__iterator(n,o),a=[],s=0;return new N((function(){for(;i;){var t=i.next();if(!1===t.done){var u=t.value;if(2===n&&(u=u[1]),e&&!(a.length<e)||!g(u))return r?t:F(n,s++,u,t);a.push(i),i=u.__iterator(n,o)}else i=a.pop()}return{value:void 0,done:!0}}))},n}function Ft(t,e,r){e||(e=Ht);var n=_(t),o=0,i=t.toSeq().map((function(e,n){return[n,e,o++,r?r(e,n,t):e]})).valueSeq().toArray();return i.sort((function(t,r){return e(t[3],r[3])||t[2]-r[2]})).forEach(n?function(t,e){i[e].length=2}:function(t,e){i[e]=t[1]}),n?H(i):w(t)?K(i):Y(i)}function Bt(t,e,r){if(e||(e=Ht),r){var n=t.toSeq().map((function(e,n){return[e,r(e,n,t)]})).reduce((function(t,r){return Vt(e,t[1],r[1])?r:t}));return n&&n[0]}return t.reduce((function(t,r){return Vt(e,t,r)?r:t}))}function Vt(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(null==r||r!=r)||n>0}function Ut(t,e,r,n){var o=Wt(t),i=new X(r).map((function(t){return t.size}));return o.size=n?i.max():i.min(),o.__iterate=function(t,e){for(var r,n=this.__iterator(1,e),o=0;!(r=n.next()).done&&!1!==t(r.value,o++,this););return o},o.__iteratorUncached=function(t,o){var i=r.map((function(t){return t=E(t),q(o?t.reverse():t)})),a=0,s=!1;return new N((function(){var r;return s||(r=i.map((function(t){return t.next()})),s=n?r.every((function(t){return t.done})):r.some((function(t){return t.done}))),s?{value:void 0,done:!0}:F(t,a++,e.apply(null,r.map((function(t){return t.value}))))}))},o}function qt(t,e){return t===e?t:C(t)?e:t.constructor(e)}function $t(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Gt(t){return _(t)?S:w(t)?P:j}function Wt(t){return Object.create((_(t)?H:w(t)?K:Y).prototype)}function Zt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Z.prototype.cacheResult.call(this)}function Ht(t,e){return void 0===t&&void 0===e?0:void 0===t?1:void 0===e?-1:t>e?1:t<e?-1:0}function Kt(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=new Array(r),o=0;o<r;o++)n[o]=t[o+e];return n}function Yt(t,e){if(!t)throw new Error(e)}function Xt(t){Yt(t!==1/0,"Cannot perform this action with an infinite size.")}function Jt(t){if(W(t)&&"string"!=typeof t)return t;if(D(t))return t.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+t)}Ct.prototype.cacheResult=At.prototype.cacheResult=Tt.prototype.cacheResult=kt.prototype.cacheResult=Zt;var Qt=Object.prototype.toString;function te(t){if(!t||"object"!=typeof t||"[object Object]"!==Qt.call(t))return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var r=e,n=Object.getPrototypeOf(e);null!==n;)r=n,n=Object.getPrototypeOf(r);return r===e}function ee(t){return"object"==typeof t&&(M(t)||Array.isArray(t)||te(t))}function re(t){try{return"string"==typeof t?JSON.stringify(t):String(t)}catch(e){return JSON.stringify(t)}}function ne(t,e){return M(t)?t.has(e):ee(t)&&G.call(t,e)}function oe(t,e,r){return M(t)?t.get(e,r):ne(t,e)?"function"==typeof t.get?t.get(e):t[e]:r}function ie(t){if(Array.isArray(t))return Kt(t);var e={};for(var r in t)G.call(t,r)&&(e[r]=t[r]);return e}function ae(t,e){if(!ee(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(M(t)){if(!t.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+t);return t.remove(e)}if(!G.call(t,e))return t;var r=ie(t);return Array.isArray(r)?r.splice(e,1):delete r[e],r}function se(t,e,r){if(!ee(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(M(t)){if(!t.set)throw new TypeError("Cannot update immutable value without .set() method: "+t);return t.set(e,r)}if(G.call(t,e)&&r===t[e])return t;var n=ie(t);return n[e]=r,n}function ue(t,e,r,n){n||(n=r,r=void 0);var o=ce(M(t),t,Jt(e),0,r,n);return o===a?r:o}function ce(t,e,r,n,o,i){var s=e===a;if(n===r.length){var u=s?o:e,c=i(u);return c===u?e:c}if(!s&&!ee(e))throw new TypeError("Cannot update within non-data-structure value in path ["+r.slice(0,n).map(re)+"]: "+e);var l=r[n],p=s?a:oe(e,l,a),f=ce(p===a?t:M(p),p,r,n+1,o,i);return f===p?e:f===a?ae(e,l):se(s?t?We():{}:e,l,f)}function le(t,e,r){return ue(t,e,a,(function(){return r}))}function pe(t,e){return le(this,t,e)}function fe(t,e){return ue(t,e,(function(){return a}))}function he(t){return fe(this,t)}function de(t,e,r,n){return ue(t,[e],r,n)}function me(t,e,r){return 1===arguments.length?t(this):de(this,t,e,r)}function ye(t,e,r){return ue(this,t,e,r)}function ve(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return be(this,t)}function ge(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];if("function"!=typeof t)throw new TypeError("Invalid merger function: "+t);return be(this,e,t)}function be(t,e,r){for(var n=[],o=0;o<e.length;o++){var i=S(e[o]);0!==i.size&&n.push(i)}return 0===n.length?t:0!==t.toSeq().size||t.__ownerID||1!==n.length?t.withMutations((function(t){for(var e=r?function(e,n){de(t,n,a,(function(t){return t===a?e:r(t,e,n)}))}:function(e,r){t.set(r,e)},o=0;o<n.length;o++)n[o].forEach(e)})):t.constructor(n[0])}function _e(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return Se(t,e)}function xe(t,e){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return Se(e,r,t)}function we(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return Ee(t,e)}function Oe(t,e){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return Ee(e,r,t)}function Ee(t,e,r){return Se(t,e,function(t){return function e(r,n,o){return ee(r)&&ee(n)&&(i=n,a=Z(r),s=Z(i),w(a)===w(s)&&_(a)===_(s))?Se(r,[n],e):t?t(r,n,o):n;var i,a,s}}(r))}function Se(t,e,r){if(!ee(t))throw new TypeError("Cannot merge into non-data-structure value: "+t);if(M(t))return"function"==typeof r&&t.mergeWith?t.mergeWith.apply(t,[r].concat(e)):t.merge?t.merge.apply(t,e):t.concat.apply(t,e);for(var n=Array.isArray(t),o=t,i=n?P:S,a=n?function(e){o===t&&(o=ie(o)),o.push(e)}:function(e,n){var i=G.call(o,n),a=i&&r?r(o[n],e,n):e;i&&a===o[n]||(o===t&&(o=ie(o)),o[n]=a)},s=0;s<e.length;s++)i(e[s]).forEach(a);return o}function Pe(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Ee(this,t)}function je(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return Ee(this,e,t)}function Ae(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return ue(this,t,We(),(function(t){return Se(t,e)}))}function Ce(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return ue(this,t,We(),(function(t){return Ee(t,e)}))}function Te(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this}function ke(){return this.__ownerID?this:this.__ensureOwner(new u)}function Me(){return this.__ensureOwner()}function Ie(){return this.__altered}var De=function(t){function e(e){return null==e?We():at(e)&&!D(e)?e:We().withMutations((function(r){var n=t(e);Xt(n.size),n.forEach((function(t,e){return r.set(e,t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return We().withMutations((function(e){for(var r=0;r<t.length;r+=2){if(r+1>=t.length)throw new Error("Missing value for key: "+t[r]);e.set(t[r],t[r+1])}}))},e.prototype.toString=function(){return this.__toString("Map {","}")},e.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},e.prototype.set=function(t,e){return Ze(this,t,e)},e.prototype.remove=function(t){return Ze(this,t,a)},e.prototype.deleteAll=function(t){var e=E(t);return 0===e.size?this:this.withMutations((function(t){e.forEach((function(e){return t.remove(e)}))}))},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):We()},e.prototype.sort=function(t){return gr(Ft(this,t))},e.prototype.sortBy=function(t,e){return gr(Ft(this,e,t))},e.prototype.map=function(t,e){var r=this;return this.withMutations((function(n){n.forEach((function(o,i){n.set(i,t.call(e,o,i,r))}))}))},e.prototype.__iterator=function(t,e){return new Ue(this,t,e)},e.prototype.__iterate=function(t,e){var r=this,n=0;return this._root&&this._root.iterate((function(e){return n++,t(e[1],e[0],r)}),e),n},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ge(this.size,this._root,t,this.__hash):0===this.size?We():(this.__ownerID=t,this.__altered=!1,this)},e}(S);De.isMap=at;var Le=De.prototype;Le[it]=!0,Le[n]=Le.remove,Le.removeAll=Le.deleteAll,Le.setIn=pe,Le.removeIn=Le.deleteIn=he,Le.update=me,Le.updateIn=ye,Le.merge=Le.concat=ve,Le.mergeWith=ge,Le.mergeDeep=Pe,Le.mergeDeepWith=je,Le.mergeIn=Ae,Le.mergeDeepIn=Ce,Le.withMutations=Te,Le.wasAltered=Ie,Le.asImmutable=Me,Le["@@transducer/init"]=Le.asMutable=ke,Le["@@transducer/step"]=function(t,e){return t.set(e[0],e[1])},Le["@@transducer/result"]=function(t){return t.asImmutable()};var Re=function(t,e){this.ownerID=t,this.entries=e};Re.prototype.get=function(t,e,r,n){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ct(r,o[i][0]))return o[i][1];return n},Re.prototype.update=function(t,e,r,n,o,i,c){for(var l=o===a,p=this.entries,f=0,h=p.length;f<h&&!ct(n,p[f][0]);f++);var d=f<h;if(d?p[f][1]===o:l)return this;if(s(c),(l||!d)&&s(i),!l||1!==p.length){if(!d&&!l&&p.length>=Qe)return function(t,e,r,n){t||(t=new u);for(var o=new Be(t,ht(r),[r,n]),i=0;i<e.length;i++){var a=e[i];o=o.update(t,0,void 0,a[0],a[1])}return o}(t,p,n,o);var m=t&&t===this.ownerID,y=m?p:Kt(p);
vendor: 4,412 bytes, line 1
1return d?l?f===h-1?y.pop():y[f]=y.pop():y[f]=[n,o]:y.push([n,o]),m?(this.entries=y,this):new Re(t,y)}};var ze=function(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r};ze.prototype.get=function(t,e,r,n){void 0===e&&(e=ht(r));var o=1<<((0===t?e:e>>>t)&i),a=this.bitmap;return 0==(a&o)?n:this.nodes[Xe(a&o-1)].get(t+5,e,r,n)},ze.prototype.update=function(t,e,r,n,s,u,c){void 0===r&&(r=ht(n));var l=(0===e?r:r>>>e)&i,p=1<<l,f=this.bitmap,h=0!=(f&p);if(!h&&s===a)return this;var d=Xe(f&p-1),m=this.nodes,y=h?m[d]:void 0,v=He(y,t,e+5,r,n,s,u,c);if(v===y)return this;if(!h&&v&&m.length>=tr)return function(t,e,r,n,i){for(var a=0,s=new Array(o),u=0;0!==r;u++,r>>>=1)s[u]=1&r?e[a++]:void 0;return s[n]=i,new Ne(t,a+1,s)}(t,m,f,l,v);if(h&&!v&&2===m.length&&Ke(m[1^d]))return m[1^d];if(h&&v&&1===m.length&&Ke(v))return v;var g=t&&t===this.ownerID,b=h?v?f:f^p:f|p,_=h?v?Je(m,d,v,g):function(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var o=new Array(n),i=0,a=0;a<n;a++)a===e&&(i=1),o[a]=t[a+i];return o}(m,d,g):function(t,e,r,n){var o=t.length+1;if(n&&e+1===o)return t[e]=r,t;for(var i=new Array(o),a=0,s=0;s<o;s++)s===e?(i[s]=r,a=-1):i[s]=t[s+a];return i}(m,d,v,g);return g?(this.bitmap=b,this.nodes=_,this):new ze(t,b,_)};var Ne=function(t,e,r){this.ownerID=t,this.count=e,this.nodes=r};Ne.prototype.get=function(t,e,r,n){void 0===e&&(e=ht(r));var o=(0===t?e:e>>>t)&i,a=this.nodes[o];return a?a.get(t+5,e,r,n):n},Ne.prototype.update=function(t,e,r,n,o,s,u){void 0===r&&(r=ht(n));var c=(0===e?r:r>>>e)&i,l=o===a,p=this.nodes,f=p[c];if(l&&!f)return this;var h=He(f,t,e+5,r,n,o,s,u);if(h===f)return this;var d=this.count;if(f){if(!h&&--d<er)return function(t,e,r,n){for(var o=0,i=0,a=new Array(r),s=0,u=1,c=e.length;s<c;s++,u<<=1){var l=e[s];void 0!==l&&s!==n&&(o|=u,a[i++]=l)}return new ze(t,o,a)}(t,p,d,c)}else d++;var m=t&&t===this.ownerID,y=Je(p,c,h,m);return m?(this.count=d,this.nodes=y,this):new Ne(t,d,y)};var Fe=function(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r};Fe.prototype.get=function(t,e,r,n){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ct(r,o[i][0]))return o[i][1];return n},Fe.prototype.update=function(t,e,r,n,o,i,u){void 0===r&&(r=ht(n));var c=o===a;if(r!==this.keyHash)return c?this:(s(u),s(i),Ye(this,t,e,r,[n,o]));for(var l=this.entries,p=0,f=l.length;p<f&&!ct(n,l[p][0]);p++);var h=p<f;if(h?l[p][1]===o:c)return this;if(s(u),(c||!h)&&s(i),c&&2===f)return new Be(t,this.keyHash,l[1^p]);var d=t&&t===this.ownerID,m=d?l:Kt(l);return h?c?p===f-1?m.pop():m[p]=m.pop():m[p]=[n,o]:m.push([n,o]),d?(this.entries=m,this):new Fe(t,this.keyHash,m)};var Be=function(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r};Be.prototype.get=function(t,e,r,n){return ct(r,this.entry[0])?this.entry[1]:n},Be.prototype.update=function(t,e,r,n,o,i,u){var c=o===a,l=ct(n,this.entry[0]);return(l?o===this.entry[1]:c)?this:(s(u),c?void s(i):l?t&&t===this.ownerID?(this.entry[1]=o,this):new Be(t,this.keyHash,[n,o]):(s(i),Ye(this,t,e,ht(n),[n,o])))},Re.prototype.iterate=Fe.prototype.iterate=function(t,e){for(var r=this.entries,n=0,o=r.length-1;n<=o;n++)if(!1===t(r[e?o-n:n]))return!1},ze.prototype.iterate=Ne.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,o=r.length-1;n<=o;n++){var i=r[e?o-n:n];if(i&&!1===i.iterate(t,e))return!1}},Be.prototype.iterate=function(t,e){return t(this.entry)};var Ve,Ue=function(t){function e(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&$e(t._root)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var r=e.node,n=e.index++,o=void 0;if(r.entry){if(0===n)return qe(t,r.entry)}else if(r.entries){if(n<=(o=r.entries.length-1))return qe(t,r.entries[this._reverse?o-n:n])}else if(n<=(o=r.nodes.length-1)){var i=r.nodes[this._reverse?o-n:n];if(i){if(i.entry)return qe(t,i.entry);e=this._stack=$e(i,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}},e}(N);function qe(t,e){return F(t,e[0],e[1])}function $e(t,e){return{node:t,index:0,__prev:e}}function Ge(t,e,r,n){var o=Object.create(Le);return o.size=t,o._root=e,o.__ownerID=r,o.__hash=n,o.__altered=!1,o}function We(){return Ve||(Ve=Ge(0))}function Ze(t,e,r){var n,o;if(t._root){var i={value:!1},s={value:!1};if(n=He(t._root,t.__ownerID,0,void 0,e,r,i,s),!s.value)return t;o=t.size+(i.value?r===a?-1:1:0)}else{if(r===a)return t;o=1,n=new Re(t.__ownerID,[[e,r]])}
vendor: 19,940 bytes, line 1
1return t.__ownerID?(t.size=o,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?Ge(o,n):We()}function He(t,e,r,n,o,i,u,c){return t?t.update(e,r,n,o,i,u,c):i===a?t:(s(c),s(u),new Be(e,n,[o,i]))}function Ke(t){return t.constructor===Be||t.constructor===Fe}function Ye(t,e,r,n,o){if(t.keyHash===n)return new Fe(e,n,[t.entry,o]);var a,s=(0===r?t.keyHash:t.keyHash>>>r)&i,u=(0===r?n:n>>>r)&i,c=s===u?[Ye(t,e,r+5,n,o)]:(a=new Be(e,n,o),s<u?[t,a]:[a,t]);return new ze(e,1<<s|1<<u,c)}function Xe(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,127&(t+=t>>8)+(t>>16)}function Je(t,e,r,n){var o=n?t:Kt(t);return o[e]=r,o}var Qe=8,tr=16,er=8,rr="@@__IMMUTABLE_LIST__@@";function nr(t){return Boolean(t&&t[rr])}var or=function(t){function e(e){var r=pr();if(null==e)return r;if(nr(e))return e;var n=t(e),i=n.size;return 0===i?r:(Xt(i),i>0&&i<o?lr(0,i,5,null,new ar(n.toArray())):r.withMutations((function(t){t.setSize(i),n.forEach((function(e,r){return t.set(r,e)}))})))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("List [","]")},e.prototype.get=function(t,e){if((t=l(this,t))>=0&&t<this.size){var r=dr(this,t+=this._origin);return r&&r.array[t&i]}return e},e.prototype.set=function(t,e){return function(t,e,r){if((e=l(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations((function(t){e<0?mr(t,e).set(0,r):mr(t,0,e+1).set(e,r)}));e+=t._origin;var n=t._tail,o=t._root,i={value:!1};return e>=yr(t._capacity)?n=fr(n,t.__ownerID,0,e,r,i):o=fr(o,t.__ownerID,t._level,e,r,i),i.value?t.__ownerID?(t._root=o,t._tail=n,t.__hash=void 0,t.__altered=!0,t):lr(t._origin,t._capacity,t._level,o,n):t}(this,t,e)},e.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},e.prototype.insert=function(t,e){return this.splice(t,0,e)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):pr()},e.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations((function(r){mr(r,0,e+t.length);for(var n=0;n<t.length;n++)r.set(e+n,t[n])}))},e.prototype.pop=function(){return mr(this,0,-1)},e.prototype.unshift=function(){var t=arguments;return this.withMutations((function(e){mr(e,-t.length);for(var r=0;r<t.length;r++)e.set(r,t[r])}))},e.prototype.shift=function(){return mr(this,1)},e.prototype.concat=function(){for(var e=arguments,r=[],n=0;n<arguments.length;n++){var o=e[n],i=t("string"!=typeof o&&V(o)?o:[o]);0!==i.size&&r.push(i)}return 0===r.length?this:0!==this.size||this.__ownerID||1!==r.length?this.withMutations((function(t){r.forEach((function(e){return e.forEach((function(e){return t.push(e)}))}))})):this.constructor(r[0])},e.prototype.setSize=function(t){return mr(this,0,t)},e.prototype.map=function(t,e){var r=this;return this.withMutations((function(n){for(var o=0;o<r.size;o++)n.set(o,t.call(e,n.get(o),o,r))}))},e.prototype.slice=function(t,e){var r=this.size;return f(t,e,r)?this:mr(this,h(t,r),d(e,r))},e.prototype.__iterator=function(t,e){var r=e?this.size:0,n=cr(this,e);return new N((function(){var o=n();return o===ur?{value:void 0,done:!0}:F(t,e?--r:r++,o)}))},e.prototype.__iterate=function(t,e){for(var r,n=e?this.size:0,o=cr(this,e);(r=o())!==ur&&!1!==t(r,e?--n:n++,this););return n},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?lr(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):0===this.size?pr():(this.__ownerID=t,this.__altered=!1,this)},e}(P);or.isList=nr;var ir=or.prototype;ir[rr]=!0,ir[n]=ir.remove,ir.merge=ir.concat,ir.setIn=pe,ir.deleteIn=ir.removeIn=he,ir.update=me,ir.updateIn=ye,ir.mergeIn=Ae,ir.mergeDeepIn=Ce,ir.withMutations=Te,ir.wasAltered=Ie,ir.asImmutable=Me,ir["@@transducer/init"]=ir.asMutable=ke,ir["@@transducer/step"]=function(t,e){return t.push(e)},ir["@@transducer/result"]=function(t){return t.asImmutable()};var ar=function(t,e){this.array=t,this.ownerID=e};ar.prototype.removeBefore=function(t,e,r){if(r===e?1<<e:0===this.array.length)return this;var n=r>>>e&i;if(n>=this.array.length)return new ar([],t);var o,a=0===n;if(e>0){var s=this.array[n];if((o=s&&s.removeBefore(t,e-5,r))===s&&a)return this}if(a&&!o)return this;var u=hr(this,t);if(!a)for(var c=0;c<n;c++)u.array[c]=void 0;return o&&(u.array[n]=o),u},ar.prototype.removeAfter=function(t,e,r){if(r===(e?1<<e:0)||0===this.array.length)return this;var n,o=r-1>>>e&i;if(o>=this.array.length)return this;if(e>0){var a=this.array[o];if((n=a&&a.removeAfter(t,e-5,r))===a&&o===this.array.length-1)return this}var s=hr(this,t);return s.array.splice(o+1),n&&(s.array[o]=n),s};var sr,ur={};function cr(t,e){var r=t._origin,n=t._capacity,i=yr(n),a=t._tail;return function t(s,u,c){return 0===u?function(t,s){var u=s===i?a&&a.array:t&&t.array,c=s>r?0:r-s,l=n-s;return l>o&&(l=o),function(){if(c===l)return ur;var t=e?--l:c++;return u&&u[t]}}(s,c):function(i,a,s){var u,c=i&&i.array,l=s>r?0:r-s>>a,p=1+(n-s>>a);return p>o&&(p=o),function(){for(;;){if(u){var r=u();if(r!==ur)return r;u=null}if(l===p)return ur;var n=e?--p:l++;u=t(c&&c[n],a-5,s+(n<<a))}}}(s,u,c)}(t._root,t._level,0)}function lr(t,e,r,n,o,i,a){var s=Object.create(ir);return s.size=e-t,s._origin=t,s._capacity=e,s._level=r,s._root=n,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function pr(){return sr||(sr=lr(0,0,5))}function fr(t,e,r,n,o,a){var u,c=n>>>r&i,l=t&&c<t.array.length;if(!l&&void 0===o)return t;if(r>0){var p=t&&t.array[c],f=fr(p,e,r-5,n,o,a);return f===p?t:((u=hr(t,e)).array[c]=f,u)}return l&&t.array[c]===o?t:(a&&s(a),u=hr(t,e),void 0===o&&c===u.array.length-1?u.array.pop():u.array[c]=o,u)}function hr(t,e){return e&&t&&e===t.ownerID?t:new ar(t?t.array.slice():[],e)}function dr(t,e){if(e>=yr(t._capacity))return t._tail;if(e<1<<t._level+5){for(var r=t._root,n=t._level;r&&n>0;)r=r.array[e>>>n&i],n-=5;return r}}function mr(t,e,r){void 0!==e&&(e|=0),void 0!==r&&(r|=0);var n=t.__ownerID||new u,o=t._origin,a=t._capacity,s=o+e,c=void 0===r?a:r<0?a+r:o+r;if(s===o&&c===a)return t;if(s>=c)return t.clear();for(var l=t._level,p=t._root,f=0;s+f<0;)p=new ar(p&&p.array.length?[void 0,p]:[],n),f+=1<<(l+=5);f&&(s+=f,o+=f,c+=f,a+=f);for(var h=yr(a),d=yr(c);d>=1<<l+5;)p=new ar(p&&p.array.length?[p]:[],n),l+=5;var m=t._tail,y=d<h?dr(t,c-1):d>h?new ar([],n):m;if(m&&d>h&&s<a&&m.array.length){for(var v=p=hr(p,n),g=l;g>5;g-=5){var b=h>>>g&i;v=v.array[b]=hr(v.array[b],n)}v.array[h>>>5&i]=m}if(c<a&&(y=y&&y.removeAfter(n,0,c)),s>=d)s-=d,c-=d,l=5,p=null,y=y&&y.removeBefore(n,0,s);else if(s>o||d<h){for(f=0;p;){var _=s>>>l&i;if(_!==d>>>l&i)break;_&&(f+=(1<<l)*_),l-=5,p=p.array[_]}p&&s>o&&(p=p.removeBefore(n,l,s-f)),p&&d<h&&(p=p.removeAfter(n,l,d-f)),f&&(s-=f,c-=f)}return t.__ownerID?(t.size=c-s,t._origin=s,t._capacity=c,t._level=l,t._root=p,t._tail=y,t.__hash=void 0,t.__altered=!0,t):lr(s,c,l,p,y)}function yr(t){return t<o?0:t-1>>>5<<5}var vr,gr=function(t){function e(t){return null==t?_r():st(t)?t:_r().withMutations((function(e){var r=S(t);Xt(r.size),r.forEach((function(t,r){return e.set(r,t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("OrderedMap {","}")},e.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):_r()},e.prototype.set=function(t,e){return xr(this,t,e)},e.prototype.remove=function(t){return xr(this,t,a)},e.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate((function(e){return e&&t(e[1],e[0],r)}),e)},e.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?br(e,r,t,this.__hash):0===this.size?_r():(this.__ownerID=t,this.__altered=!1,this._map=e,this._list=r,this)},e}(De);function br(t,e,r,n){var o=Object.create(gr.prototype);return o.size=t?t.size:0,o._map=t,o._list=e,o.__ownerID=r,o.__hash=n,o.__altered=!1,o}function _r(){return vr||(vr=br(We(),pr()))}function xr(t,e,r){var n,i,s=t._map,u=t._list,c=s.get(e),l=void 0!==c;if(r===a){if(!l)return t;u.size>=o&&u.size>=2*s.size?(n=(i=u.filter((function(t,e){return void 0!==t&&c!==e}))).toKeyedSeq().map((function(t){return t[0]})).flip().toMap(),t.__ownerID&&(n.__ownerID=i.__ownerID=t.__ownerID)):(n=s.remove(e),i=c===u.size-1?u.pop():u.set(c,void 0))}else if(l){if(r===u.get(c)[1])return t;n=s,i=u.set(c,[e,r])}else n=s.set(e,u.size),i=u.set(u.size,[e,r]);return t.__ownerID?(t.size=n.size,t._map=n,t._list=i,t.__hash=void 0,t.__altered=!0,t):br(n,i)}gr.isOrderedMap=st,gr.prototype[I]=!0,gr.prototype[n]=gr.prototype.remove;var wr="@@__IMMUTABLE_STACK__@@";function Or(t){return Boolean(t&&t[wr])}var Er=function(t){function e(t){return null==t?Ar():Or(t)?t:Ar().pushAll(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("Stack [","]")},e.prototype.get=function(t,e){var r=this._head;for(t=l(this,t);r&&t--;)r=r.next;return r?r.value:e},e.prototype.peek=function(){return this._head&&this._head.value},e.prototype.push=function(){var t=arguments;if(0===arguments.length)return this;for(var e=this.size+arguments.length,r=this._head,n=arguments.length-1;n>=0;n--)r={value:t[n],next:r};return this.__ownerID?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):jr(e,r)},e.prototype.pushAll=function(e){if(0===(e=t(e)).size)return this;if(0===this.size&&Or(e))return e;Xt(e.size);var r=this.size,n=this._head;return e.__iterate((function(t){r++,n={value:t,next:n}}),!0),this.__ownerID?(this.size=r,this._head=n,this.__hash=void 0,this.__altered=!0,this):jr(r,n)},e.prototype.pop=function(){return this.slice(1)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Ar()},e.prototype.slice=function(e,r){if(f(e,r,this.size))return this;var n=h(e,this.size);if(d(r,this.size)!==this.size)return t.prototype.slice.call(this,e,r);for(var o=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):jr(o,i)},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?jr(this.size,this._head,t,this.__hash):0===this.size?Ar():(this.__ownerID=t,this.__altered=!1,this)},e.prototype.__iterate=function(t,e){var r=this;if(e)return new X(this.toArray()).__iterate((function(e,n){return t(e,n,r)}),e);for(var n=0,o=this._head;o&&!1!==t(o.value,n++,this);)o=o.next;return n},e.prototype.__iterator=function(t,e){if(e)return new X(this.toArray()).__iterator(t,e);var r=0,n=this._head;return new N((function(){if(n){var e=n.value;return n=n.next,F(t,r++,e)}return{value:void 0,done:!0}}))},e}(P);Er.isStack=Or;var Sr,Pr=Er.prototype;function jr(t,e,r,n){var o=Object.create(Pr);return o.size=t,o._head=e,o.__ownerID=r,o.__hash=n,o.__altered=!1,o}function Ar(){return Sr||(Sr=jr(0))}Pr[wr]=!0,Pr.shift=Pr.pop,Pr.unshift=Pr.push,Pr.unshiftAll=Pr.pushAll,Pr.withMutations=Te,Pr.wasAltered=Ie,Pr.asImmutable=Me,Pr["@@transducer/init"]=Pr.asMutable=ke,Pr["@@transducer/step"]=function(t,e){return t.unshift(e)},Pr["@@transducer/result"]=function(t){return t.asImmutable()};var Cr="@@__IMMUTABLE_SET__@@";function Tr(t){return Boolean(t&&t[Cr])}function kr(t){return Tr(t)&&D(t)}function Mr(t,e){if(t===e)return!0;if(!g(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||_(t)!==_(e)||w(t)!==w(e)||D(t)!==D(e))return!1;if(0===t.size&&0===e.size)return!0;var r=!O(t);if(D(t)){var n=t.entries();return e.every((function(t,e){var o=n.next().value;return o&&ct(o[1],t)&&(r||ct(o[0],e))}))&&n.next().done}var o=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{o=!0;var i=t;t=e,e=i}var s=!0,u=e.__iterate((function(e,n){if(r?!t.has(e):o?!ct(e,t.get(n,a)):!ct(t.get(n,a),e))return s=!1,!1}));return s&&t.size===u}function Ir(t,e){var r=function(r){t.prototype[r]=e[r]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}function Dr(t){if(!t||"object"!=typeof t)return t;if(!g(t)){if(!ee(t))return t;t=Z(t)}if(_(t)){var e={};return t.__iterate((function(t,r){e[r]=Dr(t)})),e}var r=[];return t.__iterate((function(t){r.push(Dr(t))})),r}var Lr=function(t){function e(e){return null==e?Br():Tr(e)&&!D(e)?e:Br().withMutations((function(r){var n=t(e);Xt(n.size),n.forEach((function(t){return r.add(t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(S(t).keySeq())},e.intersect=function(t){return(t=E(t).toArray()).length?zr.intersect.apply(e(t.pop()),t):Br()},e.union=function(t){return(t=E(t).toArray()).length?zr.union.apply(e(t.pop()),t):Br()},e.prototype.toString=function(){return this.__toString("Set {","}")},e.prototype.has=function(t){return this._map.has(t)},e.prototype.add=function(t){return Nr(this,this._map.set(t,t))},e.prototype.remove=function(t){return Nr(this,this._map.remove(t))},e.prototype.clear=function(){return Nr(this,this._map.clear())},e.prototype.map=function(t,e){var r=this,n=!1,o=Nr(this,this._map.mapEntries((function(o){var i=o[1],a=t.call(e,i,i,r);return a!==i&&(n=!0),[a,a]}),e));return n?o:this},e.prototype.union=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return 0===(e=e.filter((function(t){return 0!==t.size}))).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations((function(r){for(var n=0;n<e.length;n++)"string"==typeof e[n]?r.add(e[n]):t(e[n]).forEach((function(t){return r.add(t)}))})):this.constructor(e[0])},e.prototype.intersect=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];if(0===e.length)return this;e=e.map((function(e){return t(e)}));var n=[];return this.forEach((function(t){e.every((function(e){return e.includes(t)}))||n.push(t)})),this.withMutations((function(t){n.forEach((function(e){t.remove(e)}))}))},e.prototype.subtract=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];if(0===e.length)return this;e=e.map((function(e){return t(e)}));var n=[];return this.forEach((function(t){e.some((function(e){return e.includes(t)}))&&n.push(t)})),this.withMutations((function(t){n.forEach((function(e){t.remove(e)}))}))},e.prototype.sort=function(t){return an(Ft(this,t))},e.prototype.sortBy=function(t,e){return an(Ft(this,e,t))},e.prototype.wasAltered=function(){return this._map.wasAltered()},e.prototype.__iterate=function(t,e){var r=this;return this._map.__iterate((function(e){return t(e,e,r)}),e)},e.prototype.__iterator=function(t,e){return this._map.__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):0===this.size?this.__empty():(this.__ownerID=t,this._map=e,this)},e}(j);Lr.isSet=Tr;var Rr,zr=Lr.prototype;function Nr(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function Fr(t,e){var r=Object.create(zr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function Br(){return Rr||(Rr=Fr(We()))}zr[Cr]=!0,zr[n]=zr.remove,zr.merge=zr.concat=zr.union,zr.withMutations=Te,zr.asImmutable=Me,zr["@@transducer/init"]=zr.asMutable=ke,zr["@@transducer/step"]=function(t,e){return t.add(e)},zr["@@transducer/result"]=function(t){return t.asImmutable()},zr.__empty=Br,zr.__make=Fr;var Vr,Ur=function(t){function e(t,r,n){if(!(this instanceof e))return new e(t,r,n);if(Yt(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===r&&(r=1/0),n=void 0===n?1:Math.abs(n),r<t&&(n=-n),this._start=t,this._end=r,this._step=n,this.size=Math.max(0,Math.ceil((r-t)/n-1)+1),0===this.size){if(Vr)return Vr;Vr=this}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},e.prototype.get=function(t,e){return this.has(t)?this._start+l(this,t)*this._step:e},e.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},e.prototype.slice=function(t,r){return f(t,r,this.size)?this:(t=h(t,this.size),(r=d(r,this.size))<=t?new e(0,0):new e(this.get(t,this._end),this.get(r,this._end),this._step))},e.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var r=e/this._step;if(r>=0&&r<this.size)return r}return-1},e.prototype.lastIndexOf=function(t){return this.indexOf(t)},e.prototype.__iterate=function(t,e){for(var r=this.size,n=this._step,o=e?this._start+(r-1)*n:this._start,i=0;i!==r&&!1!==t(o,e?r-++i:i++,this);)o+=e?-n:n;return i},e.prototype.__iterator=function(t,e){var r=this.size,n=this._step,o=e?this._start+(r-1)*n:this._start,i=0;return new N((function(){if(i===r)return{value:void 0,done:!0};var a=o;return o+=e?-n:n,F(t,e?r-++i:i++,a)}))},e.prototype.equals=function(t){return t instanceof e?this._start===t._start&&this._end===t._end&&this._step===t._step:Mr(this,t)},e}(K);function qr(t,e,r){for(var n=Jt(e),o=0;o!==n.length;)if((t=oe(t,n[o++],a))===a)return r;return t}function $r(t,e){return qr(this,t,e)}function Gr(t,e){return qr(t,e,a)!==a}function Wr(){Xt(this.size);var t={};return this.__iterate((function(e,r){t[r]=e})),t}E.isIterable=g,E.isKeyed=_,E.isIndexed=w,E.isAssociative=O,E.isOrdered=D,E.Iterator=N,Ir(E,{toArray:function(){Xt(this.size);var t=new Array(this.size||0),e=_(this),r=0;return this.__iterate((function(n,o){t[r++]=e?[o,n]:n})),t},toIndexedSeq:function(){return new Ct(this)},toJS:function(){return Dr(this)},toKeyedSeq:function(){return new At(this,!0)},toMap:function(){return De(this.toKeyedSeq())},toObject:Wr,toOrderedMap:function(){return gr(this.toKeyedSeq())},toOrderedSet:function(){return an(_(this)?this.valueSeq():this)},toSet:function(){return Lr(_(this)?this.valueSeq():this)},toSetSeq:function(){return new Tt(this)},toSeq:function(){return w(this)?this.toIndexedSeq():_(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Er(_(this)?this.valueSeq():this)},toList:function(){return or(_(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return qt(this,function(t,e){var r=_(t),n=[t].concat(e).map((function(t){return g(t)?r&&(t=S(t)):t=r?rt(t):nt(Array.isArray(t)?t:[t]),t})).filter((function(t){return 0!==t.size}));if(0===n.length)return t;if(1===n.length){var o=n[0];if(o===t||r&&_(o)||w(t)&&w(o))return o}var i=new X(n);return r?i=i.toKeyedSeq():w(t)||(i=i.toSetSeq()),(i=i.flatten(!0)).size=n.reduce((function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}}),0),i}(this,t))},includes:function(t){return this.some((function(e){return ct(e,t)}))},entries:function(){return this.__iterator(2)},every:function(t,e){Xt(this.size);var r=!0;return this.__iterate((function(n,o,i){if(!t.call(e,n,o,i))return r=!1,!1})),r},filter:function(t,e){return qt(this,Lt(this,t,e,!0))},partition:function(t,e){return function(t,e,r){var n=_(t),o=[[],[]];t.__iterate((function(i,a){o[e.call(r,i,a,t)?1:0].push(n?[a,i]:i)}));var i=Gt(t);return o.map((function(e){return qt(t,i(e))}))}(this,t,e)},find:function(t,e,r){var n=this.findEntry(t,e);
vendor: 1,381 bytes, line 1
1return n?n[1]:r},forEach:function(t,e){return Xt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Xt(this.size),t=void 0!==t?""+t:",";var e="",r=!0;return this.__iterate((function(n){r?r=!1:e+=t,e+=null!=n?n.toString():""})),e},keys:function(){return this.__iterator(0)},map:function(t,e){return qt(this,It(this,t,e))},reduce:function(t,e,r){return Xr(this,t,e,r,arguments.length<2,!1)},reduceRight:function(t,e,r){return Xr(this,t,e,r,arguments.length<2,!0)},reverse:function(){return qt(this,Dt(this,!0))},slice:function(t,e){return qt(this,Rt(this,t,e,!0))},some:function(t,e){return!this.every(tn(t),e)},sort:function(t){return qt(this,Ft(this,t))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(t,e){return c(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,r){var n=De().asMutable();return t.__iterate((function(o,i){n.update(e.call(r,o,i,t),0,(function(t){return t+1}))})),n.asImmutable()}(this,t,e)},equals:function(t){return Mr(this,t)},entrySeq:function(){var t=this;if(t._cache)return new X(t._cache);var e=t.toSeq().map(Qr).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(tn(t),e)},findEntry:function(t,e,r){var n=r;
vendor: 10,910 bytes, line 1
1return this.__iterate((function(r,o,i){if(t.call(e,r,o,i))return n=[o,r],!1})),n},findKey:function(t,e){var r=this.findEntry(t,e);return r&&r[0]},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},findLastEntry:function(t,e,r){return this.toKeyedSeq().reverse().findEntry(t,e,r)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(t){return this.find(p,null,t)},flatMap:function(t,e){return qt(this,function(t,e,r){var n=Gt(t);return t.toSeq().map((function(o,i){return n(e.call(r,o,i,t))})).flatten(!0)}(this,t,e))},flatten:function(t){return qt(this,Nt(this,t,!0))},fromEntrySeq:function(){return new kt(this)},get:function(t,e){return this.find((function(e,r){return ct(r,t)}),void 0,e)},getIn:$r,groupBy:function(t,e){return function(t,e,r){var n=_(t),o=(D(t)?gr():De()).asMutable();t.__iterate((function(i,a){o.update(e.call(r,i,a,t),(function(t){return(t=t||[]).push(n?[a,i]:i),t}))}));var i=Gt(t);return o.map((function(e){return qt(t,i(e))})).asImmutable()}(this,t,e)},has:function(t){return this.get(t,a)!==a},hasIn:function(t){return Gr(this,t)},isSubset:function(t){return t="function"==typeof t.includes?t:E(t),this.every((function(e){return t.includes(e)}))},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:E(t)).isSubset(this)},keyOf:function(t){return this.findKey((function(e){return ct(e,t)}))},keySeq:function(){return this.toSeq().map(Jr).toIndexedSeq()},last:function(t){return this.toSeq().reverse().first(t)},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return Bt(this,t)},maxBy:function(t,e){return Bt(this,e,t)},min:function(t){return Bt(this,t?en(t):nn)},minBy:function(t,e){return Bt(this,e?en(e):nn,t)},rest:function(){return this.slice(1)},skip:function(t){return 0===t?this:this.slice(Math.max(0,t))},skipLast:function(t){return 0===t?this:this.slice(0,-Math.max(0,t))},skipWhile:function(t,e){return qt(this,zt(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(tn(t),e)},sortBy:function(t,e){return qt(this,Ft(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return this.slice(-Math.max(0,t))},takeWhile:function(t,e){return qt(this,function(t,e,r){var n=Wt(t);return n.__iterateUncached=function(n,o){var i=this;if(o)return this.cacheResult().__iterate(n,o);var a=0;return t.__iterate((function(t,o,s){return e.call(r,t,o,s)&&++a&&n(t,o,i)})),a},n.__iteratorUncached=function(n,o){var i=this;if(o)return this.cacheResult().__iterator(n,o);var a=t.__iterator(2,o),s=!0;return new N((function(){if(!s)return{value:void 0,done:!0};var t=a.next();if(t.done)return t;var o=t.value,u=o[0],c=o[1];return e.call(r,c,u,i)?2===n?t:F(n,u,c,t):(s=!1,{value:void 0,done:!0})}))},n}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(tn(t),e)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=D(t),r=_(t),n=e?1:0;return function(t,e){return e=lt(e,3432918353),e=lt(e<<15|e>>>-15,461845907),e=lt(e<<13|e>>>-13,5),e=lt((e=(e+3864292196|0)^t)^e>>>16,2246822507),pt((e=lt(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(r?e?function(t,e){n=31*n+on(ht(t),ht(e))|0}:function(t,e){n=n+on(ht(t),ht(e))|0}:e?function(t){n=31*n+ht(t)|0}:function(t){n=n+ht(t)|0}),n)}(this))}});var Zr=E.prototype;Zr[v]=!0,Zr[z]=Zr.values,Zr.toJSON=Zr.toArray,Zr.__toStringMapper=re,Zr.inspect=Zr.toSource=function(){return this.toString()},Zr.chain=Zr.flatMap,Zr.contains=Zr.includes,Ir(S,{flip:function(){return qt(this,Mt(this))},mapEntries:function(t,e){var r=this,n=0;return qt(this,this.toSeq().map((function(o,i){return t.call(e,[i,o],n++,r)})).fromEntrySeq())},mapKeys:function(t,e){var r=this;return qt(this,this.toSeq().flip().map((function(n,o){return t.call(e,n,o,r)})).flip())}});var Hr=S.prototype;Hr[b]=!0,Hr[z]=Zr.entries,Hr.toJSON=Wr,Hr.__toStringMapper=function(t,e){return re(e)+": "+re(t)},Ir(P,{toKeyedSeq:function(){return new At(this,!1)},filter:function(t,e){return qt(this,Lt(this,t,e,!1))},findIndex:function(t,e){var r=this.findEntry(t,e);return r?r[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return qt(this,Dt(this,!1))},slice:function(t,e){return qt(this,Rt(this,t,e,!1))},splice:function(t,e){var r=arguments.length;if(e=Math.max(e||0,0),0===r||2===r&&!e)return this;t=h(t,t<0?this.count():this.size);var n=this.slice(0,t);return qt(this,1===r?n:n.concat(Kt(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var r=this.findLastEntry(t,e);return r?r[0]:-1},first:function(t){return this.get(0,t)},flatten:function(t){return qt(this,Nt(this,t,!1))},get:function(t,e){return(t=l(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find((function(e,r){return r===t}),void 0,e)},has:function(t){return(t=l(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return qt(this,function(t,e){var r=Wt(t);return r.size=t.size&&2*t.size-1,r.__iterateUncached=function(r,n){var o=this,i=0;return t.__iterate((function(t){return(!i||!1!==r(e,i++,o))&&!1!==r(t,i++,o)}),n),i},r.__iteratorUncached=function(r,n){var o,i=t.__iterator(1,n),a=0;return new N((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?F(r,a++,e):F(r,a++,o.value,o)}))},r}(this,t))},interleave:function(){var t=[this].concat(Kt(arguments)),e=Ut(this.toSeq(),K.of,t),r=e.flatten(!0);return e.size&&(r.size=e.size*t.length),qt(this,r)},keySeq:function(){return Ur(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,e){return qt(this,zt(this,t,e,!1))},zip:function(){return qt(this,Ut(this,rn,[this].concat(Kt(arguments))))},zipAll:function(){return qt(this,Ut(this,rn,[this].concat(Kt(arguments)),!0))},zipWith:function(t){var e=Kt(arguments);return e[0]=this,qt(this,Ut(this,t,e))}});var Kr=P.prototype;Kr[x]=!0,Kr[I]=!0,Ir(j,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}});var Yr=j.prototype;function Xr(t,e,r,n,o,i){return Xt(t.size),t.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)}),i),r}function Jr(t,e){return e}function Qr(t,e){return[e,t]}function tn(t){return function(){return!t.apply(this,arguments)}}function en(t){return function(){return-t.apply(this,arguments)}}function rn(){return Kt(arguments)}function nn(t,e){return t<e?1:t>e?-1:0}function on(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}Yr.has=Zr.includes,Yr.contains=Yr.includes,Yr.keys=Yr.values,Ir(H,Hr),Ir(K,Kr),Ir(Y,Yr);var an=function(t){function e(t){return null==t?ln():kr(t)?t:ln().withMutations((function(e){var r=j(t);Xt(r.size),r.forEach((function(t){return e.add(t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(S(t).keySeq())},e.prototype.toString=function(){return this.__toString("OrderedSet {","}")},e}(Lr);an.isOrderedSet=kr;var sn,un=an.prototype;function cn(t,e){var r=Object.create(un);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function ln(){return sn||(sn=cn(_r()))}un[I]=!0,un.zip=Kr.zip,un.zipWith=Kr.zipWith,un.zipAll=Kr.zipAll,un.__empty=ln,un.__make=cn;var pn={LeftThenRight:-1,RightThenLeft:1},fn=function(t,e){var r;!function(t){if(k(t))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(M(t))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===t||"object"!=typeof t)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(t);var n=function(i){var a=this;if(i instanceof n)return i;if(!(this instanceof n))return new n(i);if(!r){r=!0;var s=Object.keys(t),u=o._indices={};o._name=e,o._keys=s,o._defaultValues=t;for(var c=0;c<s.length;c++){var l=s[c];u[l]=c,o[l]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+mn(this)+' with property "'+l+'" since that property name is part of the Record API.'):vn(o,l)}}return this.__ownerID=void 0,this._values=or().withMutations((function(t){t.setSize(a._keys.length),S(i).forEach((function(e,r){t.set(a._indices[r],e===a._defaultValues[r]?void 0:e)}))})),this},o=n.prototype=Object.create(hn);return o.constructor=n,e&&(n.displayName=e),n};fn.prototype.toString=function(){for(var t,e=mn(this)+" { ",r=this._keys,n=0,o=r.length;n!==o;n++)e+=(n?", ":"")+(t=r[n])+": "+re(this.get(t));return e+" }"},fn.prototype.equals=function(t){return this===t||k(t)&&yn(this).equals(yn(t))},fn.prototype.hashCode=function(){return yn(this).hashCode()},fn.prototype.has=function(t){return this._indices.hasOwnProperty(t)},fn.prototype.get=function(t,e){if(!this.has(t))return e;var r=this._indices[t],n=this._values.get(r);return void 0===n?this._defaultValues[t]:n},fn.prototype.set=function(t,e){if(this.has(t)){var r=this._values.set(this._indices[t],e===this._defaultValues[t]?void 0:e);if(r!==this._values&&!this.__ownerID)return dn(this,r)}return this},fn.prototype.remove=function(t){return this.set(t)},fn.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:dn(this,t)},fn.prototype.wasAltered=function(){return this._values.wasAltered()},fn.prototype.toSeq=function(){return yn(this)},fn.prototype.toJS=function(){return Dr(this)},fn.prototype.entries=function(){return this.__iterator(2)},fn.prototype.__iterator=function(t,e){return yn(this).__iterator(t,e)},fn.prototype.__iterate=function(t,e){return yn(this).__iterate(t,e)},fn.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._values.__ensureOwner(t);return t?dn(this,e,t):(this.__ownerID=t,this._values=e,this)},fn.isRecord=k,fn.getDescriptiveName=mn;var hn=fn.prototype;function dn(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._values=e,n.__ownerID=r,n}function mn(t){return t.constructor.displayName||t.constructor.name||"Record"}function yn(t){return rt(t._keys.map((function(e){return[e,t.get(e)]})))}function vn(t,e){try{Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){Yt(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}catch(t){}}hn[T]=!0,hn[n]=hn.remove,hn.deleteIn=hn.removeIn=he,hn.getIn=$r,hn.hasIn=Zr.hasIn,hn.merge=ve,hn.mergeWith=ge,hn.mergeIn=Ae,hn.mergeDeep=Pe,hn.mergeDeepWith=je,hn.mergeDeepIn=Ce,hn.setIn=pe,hn.update=me,hn.updateIn=ye,hn.withMutations=Te,hn.asMutable=ke,hn.asImmutable=Me,hn[z]=hn.entries,hn.toJSON=hn.toObject=Zr.toObject,hn.inspect=hn.toSource=function(){return this.toString()};var gn,bn=function(t){function e(t,r){if(!(this instanceof e))return new e(t,r);
1if(this._value=t,this.size=void 0===r?1/0:Math.max(0,r),0===this.size){if(gn)return gn;gn=this}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},e.prototype.get=function(t,e){return this.has(t)?this._value:e},e.prototype.includes=function(t){return ct(this._value,t)},e.prototype.slice=function(t,r){var n=this.size;return f(t,r,n)?this:new e(this._value,d(r,n)-h(t,n))},e.prototype.reverse=function(){return this},e.prototype.indexOf=function(t){return ct(this._value,t)?0:-1},e.prototype.lastIndexOf=function(t){return ct(this._value,t)?this.size:-1},e.prototype.__iterate=function(t,e){for(var r=this.size,n=0;n!==r&&!1!==t(this._value,e?r-++n:n++,this););return n},e.prototype.__iterator=function(t,e){var r=this,n=this.size,o=0;return new N((function(){return o===n?{value:void 0,done:!0}:F(t,e?n-++o:o++,r._value)}))},e.prototype.equals=function(t){return t instanceof e?ct(this._value,t._value):Mr(t)},e}(K);function _n(t,e){return xn([],e||wn,t,"",e&&e.length>2?[]:void 0,{"":t})}function xn(t,e,r,n,o,i){if("string"!=typeof r&&!M(r)&&(W(r)||V(r)||te(r))){if(~t.indexOf(r))throw new TypeError("Cannot convert circular structure to Immutable");t.push(r),o&&""!==n&&o.push(n);var a=e.call(i,n,Z(r).map((function(n,i){return xn(t,e,n,i,o,r)})),o&&o.slice());return t.pop(),o&&o.pop(),a}return r}function wn(t,e){return w(e)?e.toList():_(e)?e.toMap():e.toSet()}var On="4.3.0",En=E;const Sn={version:On,Collection:E,Iterable:E,Seq:Z,Map:De,OrderedMap:gr,List:or,Stack:Er,Set:Lr,OrderedSet:an,PairSorting:pn,Record:fn,Range:Ur,Repeat:bn,is:ct,fromJS:_n,hash:ht,isImmutable:M,isCollection:g,isKeyed:_,isIndexed:w,isAssociative:O,isOrdered:D,isValueObject:ut,isPlainObject:te,isSeq:C,isList:nr,isMap:at,isOrderedMap:st,isStack:Or,isSet:Tr,isOrderedSet:kr,isRecord:k,get:oe,getIn:qr,has:ne,hasIn:Gr,merge:_e,mergeDeep:we,mergeWith:xe,mergeDeepWith:Oe,remove:ae,removeIn:fe,set:se,setIn:le,update:de,updateIn:ue}},64530:(t,e)=>{function r(t,e){var r=[],n=[];return null==e&&(e=function(t,e){return r[0]===e?"[Circular ~]":"[Circular ~."+n.slice(0,r.indexOf(e)).join(".")+"]"}),function(o,i){if(r.length>0){var a=r.indexOf(this);~a?r.splice(a+1):r.push(this),~a?n.splice(a,1/0,o):n.push(o),~r.indexOf(i)&&(i=e.call(this,o,i))}else r.push(i);return null==t?i:t.call(this,o,i)}}(t.exports=function(t,e,n,o){return JSON.stringify(t,r(e,o),n)}).getSerialize=r},18552:(t,e,r)=>{var n=r(10852)(r(55639),"DataView");t.exports=n},1989:(t,e,r)=>{var n=r(51789),o=r(80401),i=r(57667),a=r(21327),s=r(81866);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,t.exports=u},96425:(t,e,r)=>{var n=r(3118),o=r(9435);function i(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}i.prototype=n(o.prototype),i.prototype.constructor=i,t.exports=i},38407:(t,e,r)=>{var n=r(27040),o=r(14125),i=r(82117),a=r(67518),s=r(54705);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,t.exports=u},7548:(t,e,r)=>{var n=r(3118),o=r(9435);function i(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}i.prototype=n(o.prototype),i.prototype.constructor=i,t.exports=i},57071:(t,e,r)=>{var n=r(10852)(r(55639),"Map");t.exports=n},83369:(t,e,r)=>{var n=r(24785),o=r(11285),i=r(96e3),a=r(49916),s=r(95265);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,t.exports=u},53818:(t,e,r)=>{var n=r(10852)(r(55639),"Promise");t.exports=n},58525:(t,e,r)=>{var n=r(10852)(r(55639),"Set");t.exports=n},88668:(t,e,r)=>{var n=r(83369),o=r(90619),i=r(72385);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},46384:(t,e,r)=>{var n=r(38407),o=r(37465),i=r(63779),a=r(67599),s=r(44758),u=r(34309);function c(t){var e=this.__data__=new n(t);this.size=e.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,t.exports=c},62705:(t,e,r)=>{var n=r(55639).Symbol;t.exports=n},11149:(t,e,r)=>{var n=r(55639).Uint8Array;t.exports=n},70577:(t,e,r)=>{var n=r(10852)(r(55639),"WeakMap");t.exports=n},96874:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},44174:t=>{t.exports=function(t,e,r,n){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];e(n,a,r(a),t)}return n}},34963:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}},47443:(t,e,r)=>{var n=r(42118);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},1196:t=>{t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}},14636:(t,e,r)=>{var n=r(22545),o=r(35694),i=r(1469),a=r(44144),s=r(65776),u=r(36719),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),l=!r&&o(t),p=!r&&!l&&a(t),f=!r&&!l&&!p&&u(t),h=r||l||p||f,d=h?n(t.length,String):[],m=d.length;for(var y in t)!e&&!c.call(t,y)||h&&("length"==y||p&&("offset"==y||"parent"==y)||f&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,m))||d.push(y);return d}},29932:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},62488:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},62663:t=>{t.exports=function(t,e,r,n){var o=-1,i=null==t?0:t.length;for(n&&i&&(r=t[++o]);++o<i;)r=e(r,t[o],o,t);return r}},82908:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},44286:t=>{t.exports=function(t){return t.split("")}},34865:(t,e,r)=>{var n=r(89465),o=r(77813),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var a=t[e];i.call(t,e)&&o(a,r)&&(void 0!==r||e in t)||n(t,e,r)}},18470:(t,e,r)=>{var n=r(77813);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},81119:(t,e,r)=>{var n=r(89881);t.exports=function(t,e,r,o){return n(t,(function(t,n,i){e(o,t,r(t),i)})),o}},89465:(t,e,r)=>{var n=r(38777);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},26484:(t,e,r)=>{var n=r(27361);t.exports=function(t,e){for(var r=-1,o=e.length,i=Array(o),a=null==t;++r<o;)i[r]=a?void 0:n(t,e[r]);return i}},3118:(t,e,r)=>{var n=r(13218),o=Object.create,i=function(){function t(){}return function(e){if(!n(e))return{};if(o)return o(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();t.exports=i},38845:t=>{t.exports=function(t,e,r){if("function"!=typeof t)throw new TypeError("Expected a function");return setTimeout((function(){t.apply(void 0,r)}),e)}},20731:(t,e,r)=>{var n=r(88668),o=r(47443),i=r(1196),a=r(29932),s=r(7518),u=r(74757);t.exports=function(t,e,r,c){var l=-1,p=o,f=!0,h=t.length,d=[],m=e.length;
vendor: 2,333 bytes, line 1
1if(!h)return d;r&&(e=a(e,s(r))),c?(p=i,f=!1):e.length>=200&&(p=u,f=!1,e=new n(e));t:for(;++l<h;){var y=t[l],v=null==r?y:r(y);if(y=c||0!==y?y:0,f&&v==v){for(var g=m;g--;)if(e[g]===v)continue t;d.push(y)}else p(e,v,c)||d.push(y)}return d}},89881:(t,e,r)=>{var n=r(47816),o=r(99291)(n);t.exports=o},41848:t=>{t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},21078:(t,e,r)=>{var n=r(62488),o=r(37285);t.exports=function t(e,r,i,a,s){var u=-1,c=e.length;for(i||(i=o),s||(s=[]);++u<c;){var l=e[u];r>0&&i(l)?r>1?t(l,r-1,i,a,s):n(s,l):a||(s[s.length]=l)}return s}},28483:(t,e,r)=>{var n=r(25063)();t.exports=n},47816:(t,e,r)=>{var n=r(28483),o=r(3674);t.exports=function(t,e){return t&&n(t,e,o)}},97786:(t,e,r)=>{var n=r(71811),o=r(40327);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},68866:(t,e,r)=>{var n=r(62488),o=r(1469);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},44239:(t,e,r)=>{var n=r(62705),o=r(89607),i=r(2333),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},13:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},42118:(t,e,r)=>{var n=r(41848),o=r(62722),i=r(42351);t.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},78975:(t,e,r)=>{var n=r(47816);t.exports=function(t,e,r,o){return n(t,(function(t,n,i){e(o,r(t),n,i)})),o}},9454:(t,e,r)=>{var n=r(44239),o=r(37005);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},41761:(t,e,r)=>{var n=r(44239),o=r(37005);t.exports=function(t){return o(t)&&"[object Date]"==n(t)}},90939:(t,e,r)=>{var n=r(2492),o=r(37005);t.exports=function t(e,r,i,a,s){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,a,t,s))}},2492:(t,e,r)=>{var n=r(46384),o=r(67114),i=r(18351),a=r(16096),s=r(98882),u=r(1469),c=r(44144),l=r(36719),p="[object Arguments]",f="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,m,y,v){var g=u(t),b=u(e),_=g?f:s(t),x=b?f:s(e),w=(_=_==p?h:_)==h,O=(x=x==p?h:x)==h,E=_==x;if(E&&c(t)){if(!c(e))return!1;g=!0,w=!1}if(E&&!w)return v||(v=new n),g||l(t)?o(t,e,r,m,y,v):i(t,e,_,r,m,y,v);if(!(1&r)){var S=w&&d.call(t,"__wrapped__"),P=O&&d.call(e,"__wrapped__");
vendor: 4,695 bytes, line 1
1if(S||P){var j=S?t.value():t,A=P?e.value():e;return v||(v=new n),y(j,A,r,m,v)}}return!!E&&(v||(v=new n),a(t,e,r,m,y,v))}},2958:(t,e,r)=>{var n=r(46384),o=r(90939);t.exports=function(t,e,r,i){var a=r.length,s=a,u=!i;if(null==t)return!s;for(t=Object(t);a--;){var c=r[a];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<s;){var l=(c=r[a])[0],p=t[l],f=c[1];if(u&&c[2]){if(void 0===p&&!(l in t))return!1}else{var h=new n;if(i)var d=i(p,f,l,t,e,h);if(!(void 0===d?o(f,p,3,i,h):d))return!1}}return!0}},62722:t=>{t.exports=function(t){return t!=t}},28458:(t,e,r)=>{var n=r(23560),o=r(15346),i=r(13218),a=r(80346),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,p=c.hasOwnProperty,f=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?f:s).test(a(t))}},23933:(t,e,r)=>{var n=r(44239),o=r(37005);t.exports=function(t){return o(t)&&"[object RegExp]"==n(t)}},38749:(t,e,r)=>{var n=r(44239),o=r(41780),i=r(37005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[n(t)]}},67206:(t,e,r)=>{var n=r(91573),o=r(16432),i=r(6557),a=r(1469),s=r(39601);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):s(t)}},280:(t,e,r)=>{var n=r(25726),o=r(86916),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},10313:(t,e,r)=>{var n=r(13218),o=r(25726),i=r(33498),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=o(t),r=[];for(var s in t)("constructor"!=s||!e&&a.call(t,s))&&r.push(s);return r}},9435:t=>{t.exports=function(){}},69199:(t,e,r)=>{var n=r(89881),o=r(98612);t.exports=function(t,e){var r=-1,i=o(t)?Array(t.length):[];return n(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}},91573:(t,e,r)=>{var n=r(2958),o=r(1499),i=r(42634);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},16432:(t,e,r)=>{var n=r(90939),o=r(27361),i=r(79095),a=r(15403),s=r(89162),u=r(42634),c=r(40327);t.exports=function(t,e){return a(t)&&s(e)?u(c(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,3)}}},82689:(t,e,r)=>{var n=r(29932),o=r(97786),i=r(67206),a=r(69199),s=r(71131),u=r(7518),c=r(85022),l=r(6557),p=r(1469);t.exports=function(t,e,r){e=e.length?n(e,(function(t){return p(t)?function(e){return o(e,1===t.length?t[0]:t)}:t})):[l];var f=-1;e=n(e,u(i));var h=a(t,(function(t,r,o){return{criteria:n(e,(function(e){return e(t)})),index:++f,value:t}}));return s(h,(function(t,e){return c(t,e,r)}))}},25970:(t,e,r)=>{var n=r(63012),o=r(79095);t.exports=function(t,e){return n(t,e,(function(e,r){return o(t,r)}))}},63012:(t,e,r)=>{var n=r(97786),o=r(10611),i=r(71811);t.exports=function(t,e,r){for(var a=-1,s=e.length,u={};++a<s;){var c=e[a],l=n(t,c);r(l,c)&&o(u,i(c,t),l)}return u}},40371:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},79152:(t,e,r)=>{var n=r(97786);t.exports=function(t){return function(e){return n(e,t)}}},40098:t=>{var e=Math.ceil,r=Math.max;t.exports=function(t,n,o,i){for(var a=-1,s=r(e((n-t)/(o||1)),0),u=Array(s);s--;)u[i?s:++a]=t,t+=o;return u}},5976:(t,e,r)=>{var n=r(6557),o=r(45357),i=r(30061);t.exports=function(t,e){return i(o(t,e,n),t+"")}},10611:(t,e,r)=>{var n=r(34865),o=r(71811),i=r(65776),a=r(13218),s=r(40327);t.exports=function(t,e,r,u){if(!a(t))return t;for(var c=-1,l=(e=o(e,t)).length,p=l-1,f=t;null!=f&&++c<l;){var h=s(e[c]),d=r;if("__proto__"===h||"constructor"===h||"prototype"===h)return t;if(c!=p){var m=f[h];void 0===(d=u?u(m,h,f):void 0)&&(d=a(m)?m:i(e[c+1])?[]:{})}n(f,h,d),f=f[h]}return t}},56560:(t,e,r)=>{var n=r(75703),o=r(38777),i=r(6557),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=a},5076:(t,e,r)=>{var n=r(89881);t.exports=function(t,e){var r;return n(t,(function(t,n,o){return!(r=e(t,n,o))})),!!r}},71131:t=>{t.exports=function(t,e){var r=t.length;for(t.sort(e);
vendor: 4,298 bytes, line 1
1r--;)t[r]=t[r].value;return t}},93680:(t,e,r)=>{var n=r(77813);t.exports=function(t,e){for(var r=-1,o=t.length,i=0,a=[];++r<o;){var s=t[r],u=e?e(s):s;if(!r||!n(u,c)){var c=u;a[i++]=0===s?0:s}}return a}},67762:t=>{t.exports=function(t,e){for(var r,n=-1,o=t.length;++n<o;){var i=e(t[n]);void 0!==i&&(r=void 0===r?i:r+i)}return r}},22545:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},48969:(t,e,r)=>{var n=r(29932);t.exports=function(t,e){return n(e,(function(e){return[e,t[e]]}))}},80531:(t,e,r)=>{var n=r(62705),o=r(29932),i=r(1469),a=r(33448),s=n?n.prototype:void 0,u=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return u?u.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},27561:(t,e,r)=>{var n=r(67990),o=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(o,""):t}},7518:t=>{t.exports=function(t){return function(e){return t(e)}}},45652:(t,e,r)=>{var n=r(88668),o=r(47443),i=r(1196),a=r(74757),s=r(23593),u=r(21814);t.exports=function(t,e,r){var c=-1,l=o,p=t.length,f=!0,h=[],d=h;if(r)f=!1,l=i;else if(p>=200){var m=e?null:s(t);if(m)return u(m);f=!1,l=a,d=new n}else d=e?[]:h;t:for(;++c<p;){var y=t[c],v=e?e(y):y;if(y=r||0!==y?y:0,f&&v==v){for(var g=d.length;g--;)if(d[g]===v)continue t;e&&d.push(v),h.push(y)}else l(d,v,r)||(d!==h&&d.push(v),h.push(y))}return h}},47415:(t,e,r)=>{var n=r(29932);t.exports=function(t,e){return n(e,(function(e){return t[e]}))}},78923:(t,e,r)=>{var n=r(96425),o=r(62488),i=r(62663);t.exports=function(t,e){var r=t;return r instanceof n&&(r=r.value()),i(e,(function(t,e){return e.func.apply(e.thisArg,o([t],e.args))}),r)}},74757:t=>{t.exports=function(t,e){return t.has(e)}},54290:(t,e,r)=>{var n=r(6557);t.exports=function(t){return"function"==typeof t?t:n}},71811:(t,e,r)=>{var n=r(1469),o=r(15403),i=r(55514),a=r(79833);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},26393:(t,e,r)=>{var n=r(33448);t.exports=function(t,e){if(t!==e){var r=void 0!==t,o=null===t,i=t==t,a=n(t),s=void 0!==e,u=null===e,c=e==e,l=n(e);if(!u&&!l&&!a&&t>e||a&&s&&c&&!u&&!l||o&&s&&c||!r&&c||!i)return 1;if(!o&&!a&&!l&&t<e||l&&r&&i&&!o&&!a||u&&r&&i||!s&&i||!c)return-1}return 0}},85022:(t,e,r)=>{var n=r(26393);t.exports=function(t,e,r){for(var o=-1,i=t.criteria,a=e.criteria,s=i.length,u=r.length;++o<s;){var c=n(i[o],a[o]);if(c)return o>=u?c:c*("desc"==r[o]?-1:1)}return t.index-e.index}},278:t=>{t.exports=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}},98363:(t,e,r)=>{var n=r(34865),o=r(89465);t.exports=function(t,e,r,i){var a=!r;r||(r={});for(var s=-1,u=e.length;++s<u;){var c=e[s],l=i?i(r[c],t[c],c,r,t):void 0;void 0===l&&(l=t[c]),a?o(r,c,l):n(r,c,l)}return r}},14429:(t,e,r)=>{var n=r(55639)["__core-js_shared__"];t.exports=n},55189:(t,e,r)=>{var n=r(44174),o=r(81119),i=r(67206),a=r(1469);t.exports=function(t,e){return function(r,s){var u=a(r)?n:o,c=e?e():{};return u(r,t,i(s,2),c)}}},21463:(t,e,r)=>{var n=r(5976),o=r(16612);t.exports=function(t){return n((function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(r[0],r[1],s)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var u=r[n];u&&t(e,u,n,a)}return e}))}},99291:(t,e,r)=>{var n=r(98612);t.exports=function(t,e){return function(r,o){if(null==r)return r;if(!n(r))return t(r,o);for(var i=r.length,a=e?i:-1,s=Object(r);(e?a--:++a<i)&&!1!==o(s[a],a,s););return r}}},25063:t=>{t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),s=a.length;s--;){var u=a[t?s:++o];if(!1===r(i[u],u,i))break}return e}}},67740:(t,e,r)=>{var n=r(67206),o=r(98612),i=r(3674);t.exports=function(t){return function(e,r,a){var s=Object(e);if(!o(e)){var u=n(r,3);e=i(e),r=function(t){return u(s[t],t,s)}}var c=t(e,r,a);return c>-1?s[u?e[c]:c]:void 0}}},23468:(t,e,r)=>{var n=r(7548),o=r(99021),i=r(66833),a=r(97658),s=r(1469),u=r(86528);t.exports=function(t){return o((function(e){var r=e.length,o=r,c=n.prototype.thru;for(t&&e.reverse();o--;){var l=e[o];if("function"!=typeof l)throw new TypeError("Expected a function");if(c&&!p&&"wrapper"==a(l))var p=new n([],!0)}for(o=p?o:r;++o<r;){l=e[o];var f=a(l),h="wrapper"==f?i(l):void 0;p=h&&u(h[0])&&424==h[1]&&!h[4].length&&1==h[9]?p[a(h[0])].apply(
1p,h[3]):1==l.length&&u(l)?p[f]():p.thru(l)}return function(){var t=arguments,n=t[0];if(p&&1==t.length&&s(n))return p.plant(n).value();for(var o=0,i=r?e[o].apply(this,t):n;++o<r;)i=e[o].call(this,i);return i}}))}},17779:(t,e,r)=>{var n=r(78975);t.exports=function(t,e){return function(r,o){return n(r,t,e(o),{})}}},47445:(t,e,r)=>{var n=r(40098),o=r(16612),i=r(18601);t.exports=function(t){return function(e,r,a){return a&&"number"!=typeof a&&o(e,r,a)&&(r=a=void 0),e=i(e),void 0===r?(r=e,e=0):r=i(r),a=void 0===a?e<r?1:-1:i(a),n(e,r,a,t)}}},23593:(t,e,r)=>{var n=r(58525),o=r(50308),i=r(21814),a=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o;t.exports=a},13866:(t,e,r)=>{var n=r(48969),o=r(98882),i=r(68776),a=r(99294);t.exports=function(t){return function(e){var r=o(e);return"[object Map]"==r?i(e):"[object Set]"==r?a(e):n(e,t(e))}}},38777:(t,e,r)=>{var n=r(10852),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},67114:(t,e,r)=>{var n=r(88668),o=r(82908),i=r(74757);t.exports=function(t,e,r,a,s,u){var c=1&r,l=t.length,p=e.length;if(l!=p&&!(c&&p>l))return!1;var f=u.get(t),h=u.get(e);if(f&&h)return f==e&&h==t;var d=-1,m=!0,y=2&r?new n:void 0;for(u.set(t,e),u.set(e,t);++d<l;){var v=t[d],g=e[d];if(a)var b=c?a(g,v,d,e,t,u):a(v,g,d,t,e,u);if(void 0!==b){if(b)continue;m=!1;break}if(y){if(!o(e,(function(t,e){if(!i(y,e)&&(v===t||s(v,t,r,a,u)))return y.push(e)}))){m=!1;break}}else if(v!==g&&!s(v,g,r,a,u)){m=!1;break}}return u.delete(t),u.delete(e),m}},18351:(t,e,r)=>{var n=r(62705),o=r(11149),i=r(77813),a=r(67114),s=r(68776),u=r(21814),c=n?n.prototype:void 0,l=c?c.valueOf
vendor: 6,106 bytes, line 1
1:void 0;t.exports=function(t,e,r,n,c,p,f){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!p(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=s;case"[object Set]":var d=1&n;if(h||(h=u),t.size!=e.size&&!d)return!1;var m=f.get(t);if(m)return m==e;n|=2,f.set(t,e);var y=a(h(t),h(e),n,c,p,f);return f.delete(t),y;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},16096:(t,e,r)=>{var n=r(58234),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,s){var u=1&r,c=n(t),l=c.length;if(l!=n(e).length&&!u)return!1;for(var p=l;p--;){var f=c[p];if(!(u?f in e:o.call(e,f)))return!1}var h=s.get(t),d=s.get(e);if(h&&d)return h==e&&d==t;var m=!0;s.set(t,e),s.set(e,t);for(var y=u;++p<l;){var v=t[f=c[p]],g=e[f];if(i)var b=u?i(g,v,f,e,t,s):i(v,g,f,t,e,s);if(!(void 0===b?v===g||a(v,g,r,i,s):b)){m=!1;break}y||(y="constructor"==f)}if(m&&!y){var _=t.constructor,x=e.constructor;_==x||!("constructor"in t)||!("constructor"in e)||"function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x||(m=!1)}return s.delete(t),s.delete(e),m}},99021:(t,e,r)=>{var n=r(85564),o=r(45357),i=r(30061);t.exports=function(t){return i(o(t,void 0,n),t+"")}},31957:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},58234:(t,e,r)=>{var n=r(68866),o=r(99551),i=r(3674);t.exports=function(t){return n(t,i,o)}},46904:(t,e,r)=>{var n=r(68866),o=r(51442),i=r(81704);t.exports=function(t){return n(t,i,o)}},66833:(t,e,r)=>{var n=r(89250),o=r(50308),i=n?function(t){return n.get(t)}:o;t.exports=i},97658:(t,e,r)=>{var n=r(52060),o=Object.prototype.hasOwnProperty;t.exports=function(t){for(var e=t.name+"",r=n[e],i=o.call(n,e)?r.length:0;i--;){var a=r[i],s=a.func;if(null==s||s==t)return a.name}return e}},45050:(t,e,r)=>{var n=r(37019);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},1499:(t,e,r)=>{var n=r(89162),o=r(3674);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],a=t[i];e[r]=[i,a,n(a)]}return e}},10852:(t,e,r)=>{var n=r(28458),o=r(47801);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},85924:(t,e,r)=>{var n=r(5569)(Object.getPrototypeOf,Object);t.exports=n},89607:(t,e,r)=>{var n=r(62705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,s),r=t[s];try{t[s]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[s]=r:delete t[s]),o}},99551:(t,e,r)=>{var n=r(34963),o=r(70479),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(e){return i.call(t,e)})))}:o;t.exports=s},51442:(t,e,r)=>{var n=r(62488),o=r(85924),i=r(99551),a=r(70479),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,i(t)),t=o(t);return e}:a;t.exports=s},98882:(t,e,r)=>{var n=r(18552),o=r(57071),i=r(53818),a=r(58525),s=r(70577),u=r(44239),c=r(80346),l="[object Map]",p="[object Promise]",f="[object Set]",h="[object WeakMap]",d="[object DataView]",m=c(n),y=c(o),v=c(i),g=c(a),b=c(s),_=u;(n&&_(new n(new ArrayBuffer(1)))!=d||o&&_(new o)!=l||i&&_(i.resolve())!=p||a&&_(new a)!=f||s&&_(new s)!=h)&&(_=function(t){var e=u(t),r="[object Object]"==e?t.constructor:void 0,n=r?c(r):"";if(n)switch(n){case m:return d;case y:return l;case v:return p;case g:return f;case b:return h}return e}),t.exports=_},47801:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},222:(t,e,r)=>{var n=r(71811),o=r(35694),i=r(1469),a=r(65776),s=r(41780),u=r(40327);t.exports=function(t,e,r){for(var c=-1,l=(e=n(e,t)).length,p=!1;++c<l;){var f=u(e[c]);if(!(p=null!=t&&r(t,f)))break;t=t[f]}return p||++c!=l?p:!!(l=null==t?0:t.length)&&s(l)&&a(f,l)&&(i(t)||o(t))}},62689:t=>{var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},51789:(t,e,r)=>{var n=r(94536);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},80401:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},57667:(t,e,r)=>{var n=r(94536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},21327:(t,e,r)=>{var n=r(94536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},81866:(t,e,r)=>{var n=r(94536);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},37285:(t,e,r)=>{var n=r(62705),o=r(35694),i=r(1469),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},65776:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},16612:(t,e,r)=>{var n=r(77813),o=r(98612),i=r(65776),a=r(13218);t.exports=function(t,e,r){if(!a(r))return!1;var s=typeof e;return!!("number"==s?o(r)&&i(e,r.length):"string"==s&&e in r)&&n(r[e],t)}},15403:(t,e,r)=>{var n=r(1469),o=r(33448),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},37019:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},86528:(t,e,r)=>{var n=r(96425),o=r(66833),i=r(97658),a=r(8111);t.exports=function(t){var e=i(t),r=a[e];if("function"!=typeof r||!(e in n.prototype))return!1;if(t===r)return!0;var s=o(r);return!!s&&t===s[0]}},15346:(t,e,r)=>{var n,o=r(14429),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(sr
1c)_1."+n:"";t.exports=function(t){return!!i&&i in t}},25726:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},89162:(t,e,r)=>{var n=r(13218);t.exports=function(t){return t==t&&!n(t)}},80059:t=>{t.exports=function(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}},27040:t=>{t.exports=function(){this.__data__=[],this.size=0}},14125:(t,e,r)=>{var n=r(18470),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},82117:(t,e,r)=>{var n=r(18470);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},67518:(t,e,r)=>{var n=r(18470);t.exports=function(t){return n(this.__data__,t)>-1}},54705:(t,e,r)=>{var n=r(18470);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},24785:(t,e,r)=>{var n=r(1989),o=r(38407),i=r(57071);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},11285:(t,e,r)=>{var n=r(45050);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},96e3:(t,e,r)=>{var n=r(45050);t.exports=function(t){return n(this,t).get(t)}},49916:(t,e,r)=>{var n=r(45050);t.exports=function(t){return n(this,t).has(t)}},95265:(t,e,r)=>{var n=r(45050);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},68776:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},42634:t=>{t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},24523:(t,e,r)=>{var n=r(88306);t.exports=function(t){var e=n(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}},89250:(t,e,r)=>{var n=r(70577),o=n&&new n;t.exports=o},94536:(t,e,r)=>{var n=r(10852)(Object,"create");t.exports=n},86916:(t,e,r)=>{var n=r(5569)(Object.keys,Object);t.exports=n},33498:t=>{t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},31167:(t,e,r)=>{t=r.nmd(t);var n=r(31957),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},45357:(t,e,r)=>{var n=r(96874),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,s=o(i.length-e,0),u=Array(s);++a<s;)u[a]=i[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=i[a];return c[e]=r(u),n(t,this,c)}}},52060:t=>{t.exports={}},55639:(t,e,r)=>{var n=r(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},90619:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},72385:t=>{t.exports=function(t){return this.__data__.has(t)}},21814:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},99294:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=[t,t]})),r}},30061:(t,e,r)=>{var n=r(56560),o=r(21275)(n);t.exports=o},21275:t=>{var e=Date.now;t.exports=function(t){var r=0,n=0;return function(){var o=e(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},37465:(t,e,r)=>{var n=r(38407);t.exports=function(){this.__data__=new n,this.size=0}},63779:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},67599:t=>{t.exports=function(t){return this.__data__.get(t)}},44758:t=>{t.exports=function(t){return this.__data__.has(t)}},34309:(t,e,r)=>{var n=r(38407),o=r(57071),i=r(83369);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(t,e),this.size=r.size,this}},42351:t=>{t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}},83140:(t,e,r)=>{var n=r(44286),o=r(62689),i=r(676);t.exports=function(t){return o(t)?i(t):n(t)}},55514:(t,e,r)=>{var n=r(24523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));t.exports=a},40327:(t,e,r)=>{var n=r(33448);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},80346:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},67990:t=>{var e=/\s/;t.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},676:t=>{var e="\\ud800-\\udfff",r="["+e+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+e+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+n+"|"+o+")?",c="[\\ufe0e\\ufe0f]?",l=c+u+"(?:\\u200d(?:"+[i,a,s].join("|")+")"+c+u+")*",p="(?:"+[i+n+"?",n,a,s,r].join("|")+")",f=RegExp(o+"(?="+o+")|"+p+l,"g");t.exports=function(t){return t.match(f)||[]}},21913:(t,e,r)=>{var n=r(96425),o=r(7548),i=r(278);t.exports=function(t){if(t instanceof n)return t.clone();var e=new o(t.__wrapped__,t.__chain__);return e.__actions__=i(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}},28583:(t,e,r)=>{var n=r(34865),o=r(98363),i=r(21463),a=r(98612),s=r(25726),u=r(3674),c=Object.prototype.hasOwnProperty,l=i((function(t,e){if(s(e)||a(e))o(e,u(e),t);else for(var r in e)c.call(e,r)&&n(t,r,e[r])}));t.exports=l},31263:(t,e,r)=>{var n=r(8111);t.exports=function(t){var e=n(t);return e.__chain__=!0,e}},49663:(t,e,r)=>{var n=r(7548);t.exports=function(){return new n(this.value(),this.__chain__)}},75703:t=>{t.exports=function(t){return function(){return t}}},23279:(t,e,r)=>{var n=r(13218),o=r(7771),i=r(14841),a=Math.max,s=Math.min;t.exports=function(t,e,r){var u,c,l,p,f,h,d=0,m=!1,y=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function g(e){var r=u,n=c;return u=c=void 0,d=e,p=t.apply(n,r)}function b(t){var r=t-h;return void 0===h||r>=e||r<0||y&&t-d>=l}function _(){var t=o();if(b(t))return x(t);f=setTimeout(_,function(t){var r=e-(t-h);
1return y?s(r,l-(t-d)):r}(t))}function x(t){return f=void 0,v&&u?g(t):(u=c=void 0,p)}function w(){var t=o(),r=b(t);if(u=arguments,c=this,h=t,r){if(void 0===f)return function(t){return d=t,f=setTimeout(_,e),m?g(t):p}(h);if(y)return clearTimeout(f),f=setTimeout(_,e),g(h)}return void 0===f&&(f=setTimeout(_,e)),p}return e=i(e)||0,n(r)&&(m=!!r.leading,l=(y="maxWait"in r)?a(i(r.maxWait)||0,e):l,v="trailing"in r?!!r.trailing:v),w.cancel=function(){void 0!==f&&clearTimeout(f),d=0,u=h=c=f=void 0},w.flush=function(){return void 0===f?p:x(o())},w}},91747:(t,e,r)=>{var n=r(5976),o=r(77813),i=r(16612),a=r(81704),s=Object.prototype,u=s.hasOwnProperty,c=n((function(t,e){t=Object(t);var r=-1,n=e.length,c=n>2?e[2]:void 0;for(c&&i(e[0],e[1],c)&&(n=1);++r<n;)for(var l=e[r],p=a(l),f=-1,h=p.length;++f<h;){var d=p[f],m=t[d];(void 0===m||o(m,s[d])&&!u.call(t,d))&&(t[d]=l[d])}return t}));t.exports=c},98066:(t,e,r)=>{var n=r(38845),o=r(5976),i=r(14841),a=o((function(t,e,r){return n(t,i(e)||0,r)}));t.exports=a},91966:(t,e,r)=>{var n=r(20731),o=r(21078),i=r(5976),a=r(29246),s=i((function(t,e){return a(t)?n(t,o(e,1,a,!0)):[]}));t.exports=s},77813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},13311:(t,e,r)=>{var n=r(67740)(r(30998));t.exports=n},30998:(t,e,r)=>{var n=r(41848),o=r(67206),i=r(40554),a=Math.max;t.exports=function(t,e,r){var s=null==t?0:t.length;if(!s)return-1;var u=null==r?0:i(r);return u<0&&(u=a(s+u,0)),n(t,o(e,3),u)}},85564:(t,e,r)=>{var n=r(21078);t.exports=function(t){return null!=t&&t.length?n(t,1):[]}},59242:(t,e,r)=>{var n=r(23468)();t.exports=n},2525:(t,e,r)=>{var n=r(47816),o=r(54290);t.exports=function(t,e){return t&&n(t,o(e))}},17204:t=>{t.exports=function(t){for(var e=-1,r=null==t?0:t.length,n={};++e<r;){var o=t[e];n[o[0]]=o[1]}return n}},27361:(t,e,r)=>{var n=r(97786);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},7739:(t,e,r)=>{var n=r(89465),o=r(55189),i=Object.prototype.hasOwnProperty,a=o((function(t,e,r){i.call(t,r)?t[r].push(e):n(t,r,[e])}));t.exports=a},79095:(t,e,r)=>{var n=r(13),o=r(222);t.exports=function(t,e){return null!=t&&o(t,e,n)}},6557:t=>{t.exports=function(t){return t}},64721:(t,e,r)=>{var n=r(42118),o=r(98612),i=r(47037),a=r(40554),s=r(52628),u=Math.max;t.exports=function(t,e,r,c){t=o(t)?t:s(t),r=r&&!c?a(r):0;var l=t.length;return r<0&&(r=u(l+r,0)),i(t)?r<=l&&t.indexOf(e,r)>-1:!!l&&n(t,e,r)>-1}},63137:(t,e,r)=>{var n=r(75703),o=r(17779),i=r(6557),a=Object.prototype.toString,s=o((function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=a.call(e)),t[e]=r}),n(i));t.exports=s},35694:(t,e,r)=>{var n=r(9454),o=r(37005),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},1469:t=>{var e=Array.isArray;t.exports=e},98612:(t,e,r)=>{var n=r(23560),o=r(41780);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},29246:(t,e,r)=>{var n=r(98612),o=r(37005);t.exports=function(t){return o(t)&&n(t)}},51584:(t,e,r)=>{var n=r(44239),o=r(37005);t.exports=function(t){return!0===t||!1===t||o(t)&&"[object Boolean]"==n(t)}},44144:(t,e,r)=>{t=r.nmd(t);var n=r(55639),o=r(95062),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,s=a&&a.exports===i?n.Buffer:void 0,u=(s?s.isBuffer:void 0)||o;t.exports=u},47960:(t,e,r)=>{var n=r(41761),o=r(7518),i=r(31167),a=i&&i.isDate,s=a?o(a):n;t.exports=s},41609:(t,e,r)=>{var n=r(280),o=r(98882),i=r(35694),a=r(1469),s=r(98612),u=r(44144),c=r(25726),l=r(36719),p=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(s(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||u(t)||l(t)||i(t)))return!t.length;var e=o(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(c(t))return!n(t).length;for(var r in t)if(p.call(t,r))return!1;return!0}},18446:(t,e,r)=>{var n=r(90939);t.exports=function(t,e){return n(t,e)}},23560:(t,e,r)=>{var n=r(44239),o=r(13218);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},41780:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7654:(t,e,r)=>{var n=r(81763);t.exports=function(t){return n(t)&&t!=+t}},14293:t=>{t.exports=function(t){return null==t}},45220:t=>{t.exports=function(t){return null===t}},81763:(t,e,r)=>{var n=r(44239),o=r(37005);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==n(t)}},13218:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},37005:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},68630:(t,e,r)=>{var n=r(44239),o=r(85924),i=r(37005),a=Function.prototype,s=Object.prototype,u=a.toString,c=s.hasOwnProperty,l=u.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=n(t))return!1;var e=o(t);if(null===e)return!0;var r=c.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==l}},96347:(t,e,r)=>
1{var n=r(23933),o=r(7518),i=r(31167),a=i&&i.isRegExp,s=a?o(a):n;t.exports=s},47037:(t,e,r)=>{var n=r(44239),o=r(1469),i=r(37005);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==n(t)}},33448:(t,e,r)=>{var n=r(44239),o=r(37005);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},36719:(t,e,r)=>{var n=r(38749),o=r(7518),i=r(31167),a=i&&i.isTypedArray,s=a?o(a):n;t.exports=s},52353:t=>{t.exports=function(t){return void 0===t}},3674:(t,e,r)=>{var n=r(14636),o=r(280),i=r(98612);t.exports=function(t){return i(t)?n(t):o(t)}},81704:(t,e,r)=>{var n=r(14636),o=r(10313),i=r(98612);t.exports=function(t){return i(t)?n(t,!0):o(t)}},10928:t=>{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},96486:function(t,e,r){var n;t=r.nmd(t),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",u=32,c=128,l=1/0,p=9007199254740991,f=NaN,h=4294967295,d=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],m="[object Arguments]",y="[object Array]",v="[object Boolean]",g="[object Date]",b="[object Error]",_="[object Function]",x="[object GeneratorFunction]",w="[object Map]",O="[object Number]",E="[object Object]",S="[object Promise]",P="[object RegExp]",j="[object Set]",A="[object String]",C="[object Symbol]",T="[object WeakMap]",k="[object ArrayBuffer]",M="[object DataView]",I="[object Float32Array]",D="[object Float64Array]",L="[object Int8Array]",R="[object Int16Array]",z="[object Int32Array]",N="[object Uint8Array]",F="[object Uint8ClampedArray]",B="[object Uint16Array]",V="[object Uint32Array]",U=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,Z=RegExp(G.source),H=RegExp(W.source),K=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,rt=RegExp(et.source),nt=/^\s+/,ot=/\s/,it=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,at=/\{\n\/\* \[wrapped with (.+)\] \*/,st=/,? & /,ut=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ct=/[()=,{}\[\]\/\s]/,lt=/\\(\\)?/g,pt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ft=/\w*$/,ht=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,mt=/^\[object .+?Constructor\]$/,yt=/^0o[0-7]+$/i,vt=/^(?:0|[1-9]\d*)$/,gt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 6,043 bytes, line 1
17f]/g,bt=/($^)/,_t=/['\n\r\u2028\u2029\\]/g,xt="\\ud800-\\udfff",wt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ot="\\u2700-\\u27bf",Et="a-z\\xdf-\\xf6\\xf8-\\xff",St="A-Z\\xc0-\\xd6\\xd8-\\xde",Pt="\\ufe0e\\ufe0f",jt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",At="["+xt+"]",Ct="["+jt+"]",Tt="["+wt+"]",kt="\\d+",Mt="["+Ot+"]",It="["+Et+"]",Dt="[^"+xt+jt+kt+Ot+Et+St+"]",Lt="\\ud83c[\\udffb-\\udfff]",Rt="[^"+xt+"]",zt="(?:\\ud83c[\\udde6-\\uddff]){2}",Nt="[\\ud800-\\udbff][\\udc00-\\udfff]",Ft="["+St+"]",Bt="\\u200d",Vt="(?:"+It+"|"+Dt+")",Ut="(?:"+Ft+"|"+Dt+")",qt="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",$t="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Gt="(?:"+Tt+"|"+Lt+")?",Wt="["+Pt+"]?",Zt=Wt+Gt+"(?:"+Bt+"(?:"+[Rt,zt,Nt].join("|")+")"+Wt+Gt+")*",Ht="(?:"+[Mt,zt,Nt].join("|")+")"+Zt,Kt="(?:"+[Rt+Tt+"?",Tt,zt,Nt,At].join("|")+")",Yt=RegExp("['\u2019]","g"),Xt=RegExp(Tt,"g"),Jt=RegExp(Lt+"(?="+Lt+")|"+Kt+Zt,"g"),Qt=RegExp([Ft+"?"+It+"+"+qt+"(?="+[Ct,Ft,"$"].join("|")+")",Ut+"+"+$t+"(?="+[Ct,Ft+Vt,"$"].join("|")+")",Ft+"?"+Vt+"+"+qt,Ft+"+"+$t,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",kt,Ht].join("|"),"g"),te=RegExp("["+Bt+xt+wt+Pt+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,re=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ne=-1,oe={};oe[I]=oe[D]=oe[L]=oe[R]=oe[z]=oe[N]=oe[F]=oe[B]=oe[V]=!0,oe[m]=oe[y]=oe[k]=oe[v]=oe[M]=oe[g]=oe[b]=oe[_]=oe[w]=oe[O]=oe[E]=oe[P]=oe[j]=oe[A]=oe[T]=!1;var ie={};ie[m]=ie[y]=ie[k]=ie[M]=ie[v]=ie[g]=ie[I]=ie[D]=ie[L]=ie[R]=ie[z]=ie[w]=ie[O]=ie[E]=ie[P]=ie[j]=ie[A]=ie[C]=ie[N]=ie[F]=ie[B]=ie[V]=!0,ie[b]=ie[_]=ie[T]=!1;var ae={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},se=parseFloat,ue=parseInt,ce="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,le="object"==typeof self&&self&&self.Object===Object&&self,pe=ce||le||Function("return this")(),fe=e&&!e.nodeType&&e,he=fe&&t&&!t.nodeType&&t,de=he&&he.exports===fe,me=de&&ce.process,ye=function(){try{return he&&he.require&&he.require("util").types||me&&me.binding&&me.binding("util")}catch(t){}}(),ve=ye&&ye.isArrayBuffer,ge=ye&&ye.isDate,be=ye&&ye.isMap,_e=ye&&ye.isRegExp,xe=ye&&ye.isSet,we=ye&&ye.isTypedArray;function Oe(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function Ee(t,e,r,n){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];e(n,a,r(a),t)}return n}function Se(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}function Pe(t,e){for(var r=null==t?0:t.length;r--&&!1!==e(t[r],r,t););return t}function je(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}function Ae(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}function Ce(t,e){return!(null==t||!t.length)&&Fe(t,e,0)>-1}function Te(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}function ke(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}function Me(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}function Ie(t,e,r,n){var o=-1,i=null==t?0:t.length;for(n&&i&&(r=t[++o]);++o<i;)r=e(r,t[o],o,t);return r}function De(t,e,r,n){var o=null==t?0:t.length;for(n&&o&&(r=t[--o]);o--;)r=e(r,t[o],o,t);return r}function Le(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}var Re=qe("length");function ze(t,e,r){var n;return r(t,(function(t,r,o){if(e(t,r,o))return n=r,!1})),n}function Ne(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}function Fe(t,e,r){return e==e?function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}(t,e,r):Ne(t,Ve,r)}function Be(t,e,r,n){for(var o=r-1,i=t.length;++o<i;)if(n(t[o],e))return o;return-1}function Ve(t){return t!=t}function Ue(t,e){var r=null==t?0:t.length;return r?We(t,e)/r:f}function qe(t){return function(e){return null==e?o:e[t]}}function $e(t){return function(e){return null==t?o:t[e]}}function Ge(t,e,r,n,o){return o(t,(function(t,o,i){r=n?(n=!1,t):e(r,t,o,i)})),r}function We(t,e){for(var r,n=-1,i=t.length;++n<i;){var a=e(t[n]);a!==o&&(r=r===o?a:r+a)}return r}function Ze(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function He(t){return t?t.slice(0,lr(t)+1).replace(nt,""):t}function Ke(t){return function(e){return t(e)}}function Ye(t,e){return ke(e,(function(e){return t[e]}))}function Xe(t,e){return t.has(e)}function Je(t,e){for(var r=-1,n=t.length;++r<n&&Fe(e,t[r],0)>-1;);return r}function Qe(t,e){for(var r=t.length;r--&&Fe(e,t[r],0)>-1;);return r}var tr=$e({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"
1c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),er=$e({"&":"&","<":"<",">":">",'"':""","'":"'"});function rr(t){return"\\"+ae[t]}function nr(t){return te.test(t)}function or(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function ir(t,e){return function(r){return t(e(r))}}function ar(t,e){for(var r=-1,n=t.length,o=0,i=[];++r<n;){var a=t[r];a!==e&&a!==s||(t[r]=s,i[o++]=r)}return i}function sr(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}function ur(t){return nr(t)?function(t){for(var e=Jt.lastIndex=0;Jt.test(t);)++e;return e}(t):Re(t)}function cr(t){return nr(t)?function(t){return t.match(Jt)||[]}(t):function(t){return t.split("")}(t)}function lr(t){for(var e=t.length;e--&&ot.test(t.charAt(e)););return e}var pr=$e({"&":"&","<":"<",">":">",""":'"',"'":"'"}),fr=function t(e){var r,n=(e=null==e?pe:fr.defaults(pe.Object(),e,fr.pick(pe,re))).Array,ot=e.Date,xt=e.Error,wt=e.Function,Ot=e.Math,Et=e.Object,St=e.RegExp,Pt=e.String,jt=e.TypeError,At=n.prototype,Ct=wt.prototype,Tt=Et.prototype,kt=e["__core-js_shared__"],Mt=Ct.toString,It=Tt.hasOwnProperty,Dt=0,Lt=(r=/[^.]+$/.exec(kt&&kt.keys&&kt.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Rt=Tt.toString,zt=Mt.call(Et),Nt=pe._,Ft=St("^"+
vendor: 9,750 bytes, line 1
1Mt.call(It).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bt=de?e.Buffer:o,Vt=e.Symbol,Ut=e.Uint8Array,qt=Bt?Bt.allocUnsafe:o,$t=ir(Et.getPrototypeOf,Et),Gt=Et.create,Wt=Tt.propertyIsEnumerable,Zt=At.splice,Ht=Vt?Vt.isConcatSpreadable:o,Kt=Vt?Vt.iterator:o,Jt=Vt?Vt.toStringTag:o,te=function(){try{var t=ui(Et,"defineProperty");return t({},"",{}),t}catch(t){}}(),ae=e.clearTimeout!==pe.clearTimeout&&e.clearTimeout,ce=ot&&ot.now!==pe.Date.now&&ot.now,le=e.setTimeout!==pe.setTimeout&&e.setTimeout,fe=Ot.ceil,he=Ot.floor,me=Et.getOwnPropertySymbols,ye=Bt?Bt.isBuffer:o,Re=e.isFinite,$e=At.join,hr=ir(Et.keys,Et),dr=Ot.max,mr=Ot.min,yr=ot.now,vr=e.parseInt,gr=Ot.random,br=At.reverse,_r=ui(e,"DataView"),xr=ui(e,"Map"),wr=ui(e,"Promise"),Or=ui(e,"Set"),Er=ui(e,"WeakMap"),Sr=ui(Et,"create"),Pr=Er&&new Er,jr={},Ar=Ri(_r),Cr=Ri(xr),Tr=Ri(wr),kr=Ri(Or),Mr=Ri(Er),Ir=Vt?Vt.prototype:o,Dr=Ir?Ir.valueOf:o,Lr=Ir?Ir.toString:o;function Rr(t){if(Qa(t)&&!Ua(t)&&!(t instanceof Br)){if(t instanceof Fr)return t;if(It.call(t,"__wrapped__"))return zi(t)}return new Fr(t)}var zr=function(){function t(){}return function(e){if(!Ja(e))return{};if(Gt)return Gt(e);t.prototype=e;var r=new t;return t.prototype=o,r}}();function Nr(){}function Fr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=o}function Br(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Vr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Ur(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function qr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function $r(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new qr;++e<r;)this.add(t[e])}function Gr(t){var e=this.__data__=new Ur(t);this.size=e.size}function Wr(t,e){var r=Ua(t),n=!r&&Va(t),o=!r&&!n&&Wa(t),i=!r&&!n&&!o&&ss(t),a=r||n||o||i,s=a?Ze(t.length,Pt):[],u=s.length;for(var c in t)!e&&!It.call(t,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||mi(c,u))||s.push(c);return s}function Zr(t){var e=t.length;return e?t[$n(0,e-1)]:o}function Hr(t,e){return ki(Po(t),nn(e,0,t.length))}function Kr(t){return ki(Po(t))}function Yr(t,e,r){(r!==o&&!Na(t[e],r)||r===o&&!(e in t))&&en(t,e,r)}function Xr(t,e,r){var n=t[e];It.call(t,e)&&Na(n,r)&&(r!==o||e in t)||en(t,e,r)}function Jr(t,e){for(var r=t.length;r--;)if(Na(t[r][0],e))return r;return-1}function Qr(t,e,r,n){return cn(t,(function(t,o,i){e(n,t,r(t),i)})),n}function tn(t,e){return t&&jo(e,Cs(e),t)}function en(t,e,r){"__proto__"==e&&te?te(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function rn(t,e){for(var r=-1,i=e.length,a=n(i),s=null==t;++r<i;)a[r]=s?o:Es(t,e[r]);return a}function nn(t,e,r){return t==t&&(r!==o&&(t=t<=r?t:r),e!==o&&(t=t>=e?t:e)),t}function on(t,e,r,n,i,a){var s,u=1&e,c=2&e,l=4&e;if(r&&(s=i?r(t,n,i,a):r(t)),s!==o)return s;if(!Ja(t))return t;var p=Ua(t);if(p){if(s=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&It.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!u)return Po(t,s)}else{var f=pi(t),h=f==_||f==x;if(Wa(t))return _o(t,u);if(f==E||f==m||h&&!i){if(s=c||h?{}:hi(t),!u)return c?function(t,e){return jo(t,li(t),e)}(t,function(t,e){return t&&jo(e,Ts(e),t)}(s,t)):function(t,e){return jo(t,ci(t),e)}(t,tn(s,t))}else{if(!ie[f])return i?t:{};s=function(t,e,r){var n,o=t.constructor;switch(e){case k:return xo(t);case v:case g:return new o(+t);case M:return function(t,e){var r=e?xo(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case I:case D:case L:case R:case z:case N:case F:case B:case V:return wo(t,r);case w:return new o;case O:case A:return new o(t);case P:return function(t){var e=new t.constructor(t.source,ft.exec(t));return e.lastIndex=t.lastIndex,e}(t);case j:return new o;case C:return n=t,Dr?Et(Dr.call(n)):{}}}(t,f,u)}}a||(a=new Gr);var d=a.get(t);if(d)return d;a.set(t,s),os(t)?t.forEach((function(n){s.add(on(n,e,r,n,t,a))})):ts(t)&&t.forEach((function(n,o){s.set(o,on(n,e,r,o,t,a))}));var y=p?o:(l?c?ei:ti:c?Ts:Cs)(t);return Se(y||t,(function(n,o){y&&(n=t[o=n]),Xr(s,o,on(n,e,r,o,t,a))})),s}function an(t,e,r){var n=r.length;if(null==t)return!n;for(t=Et(t);n--;){var i=r[n],a=e[i],s=t[i];if(s===o&&!(i in t)||!a(s))return!1}return!0}function sn(t,e,r){if("function"!=typeof t)throw new jt(i);return ji((function(){t.apply(o,r)}),e)}function un(t,e,r,n){var o=-1,i=Ce,a=!0,s=t.length,u=[],c=e.length;if(!s)return u;r&&(e=ke(e,Ke(r))),n?(i=Te,a=!1):e.length>=200&&(i=Xe,a=!1,e=new $r(e));t:for(;++o<s;){var l=t[o],p=null==r?l:r(l);if(l=n||0!==l?l:0,a&&p==p){for(var f=c;f--;)if(e[f]===p)continue t;u.push(l)}else i(e,p,n)||u.push(l)}return u}Rr.templateSettings={escape:K,evaluate:Y,interpolate:X,variable:"",imports:{_:Rr}},Rr.prototype=Nr.prototype,Rr.prototype.constructor=Rr,Fr.prototype=zr(Nr.prototype),Fr.prototype.constructor=Fr,Br.prototype=zr(Nr.prototype),Br.prototype.constructor=Br,Vr.prototype.clear=function(){this.__data__=Sr?Sr(null):{},this.size=0},Vr.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Vr.prototype.get=function(t){var e=this.__data__;if(Sr){var r=e[t];return r===a?o:r}return It.call(e,t)?e[t]:o},Vr.prototype.has=function(t){var e=this.__data__;return Sr?e[t]!==o:It.call(e,t)},Vr.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Sr&&e===o?a:e,this},Ur.prototype.clear=function(){this.__data__=[],this.size=0},Ur.prototype.delete=function(t){var e=this.__data__,r=Jr(e,t);return!(r<0||(r==e.length-1?e.pop():Zt.call(e,r,1),--this.size,0))},Ur.prototype.get=function(t){var e=this.__data__,r=Jr(e,t);return r<0?o:e[r][1]},Ur.prototype.has=function(t){return Jr(this.__data__,t)>-1},Ur.prototype.set=function(t,e){var r=this.__data__,n=Jr(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},qr.prototype.clear=function(){this.size=0,this.__data__={hash:new Vr,map:new(xr||Ur),string:new Vr}},qr.prototype.delete=function(t){var e=ai(this,t).delete(t);return this.size-=e?1:0,e},qr.prototype.get=function(t){return ai(this,t).get(t)},qr.prototype.has=function(t){return ai(this,t).has(t)},qr.prototype.set=function(t,e){var r=ai(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},$r.prototype.add=$r.prototype.push=function(t){return this.__data__.set(t,a),this},$r.prototype.has=function(t){return this.__data__.has(t)},Gr.prototype.clear=function(){this.__data__=new Ur,this.size=0},Gr.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Gr.prototype.get=function(t){return this.__data__.get(t)},Gr.prototype.has=function(t){return this.__data__.has(t)},Gr.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Ur){var n=r.__data__;if(!xr||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new qr(n)}return r.set(t,e),this.size=r.size,this};var cn=To(vn),ln=To(gn,!0);function pn(t,e){var r=!0;return cn(t,(function(t,n,o){return r=!!e(t,n,o)})),r}function fn(t,e,r){for(var n=-1,i=t.length;++n<i;){var a=t[n],s=e(a);if(null!=s&&(u===o?s==s&&!as(s):r(s,u)))var u=s,c=a}return c}function hn(t,e){var r=[];return cn(t,(function(t,n,o){e(t,n,o)&&r.push(t)})),r}function dn(t,e,r,n,o){var i=-1,a=t.length;for(r||(r=di),o||(o=[]);++i<a;){var s=t[i];e>0&&r(s)?e>1?dn(s,e-1,r,n,o):Me(o,s):n||(o[o.length]=s)}return o}var mn=ko(),yn=ko(!0);function vn(t,e){return t&&mn(t,e,Cs)}function gn(t,e){return t&&yn(t,e,Cs)}function bn(t,e){return Ae(e,(function(e){return Ka(t[e])}))}function _n(t,e){for(var r=0,n=(e=yo(e,t)).length;null!=t&&r<n;)t=t[Li(e[r++])];return r&&r==n?t:o}function xn(t,e,r){var n=e(t);return Ua(t)?n:Me(n,r(t))}function wn(t){return null==t?t===o?"[object Undefined]":"[object Null]":Jt&&Jt in Et(t)?function(t){var e=It.call(t,Jt),r=t[Jt];try{t[Jt]=o;var n=!0}catch(t){}var i=Rt.call(t);return n&&(e?t[Jt]=r:delete t[Jt]),i}(t):function(t){return Rt.call(t)}(t)}function On(t,e){return t>e}function En(t,e){return null!=t&&It.call(t,e)}function Sn(t,e){return null!=t&&e in Et(t)}function Pn(t,e,r){for(var i=r?Te:Ce,a=t[0].length,s=t.length,u=s,c=n(s),l=1/0,p=[];u--;){var f=t[u];u&&e&&(f=ke(f,Ke(e))),l=mr(f.length,l),c[u]=!r&&(e||a>=120&&f.length>=120)?new $r(u&&f):o}f=t[0];var h=-1,d=c[0];t:for(;++h<a&&p.length<l;){var m=f[h],y=e?e(m):m;if(m=r||0!==m?m:0,!(d?Xe(d,y):i(p,y,r))){for(u=s;--u;){var v=c[u];if(!(v?Xe(v,y):i(t[u],y,r)))continue t}d&&d.push(y),p.push(m)}}return p}function jn(t,e,r){var n=null==(t=Ei(t,e=yo(e,t)))?t:t[Li(Hi(e))];return null==n?o:Oe(n,t,r)}function An(t){return Qa(t)&&wn(t)==m}function Cn(t,e,r,n,i){return t===e||(null==t||null==e||!Qa(t)&&!Qa(e)?t!=t&&e!=e:function(t,e,r,n,i,a){var s=Ua(t),u=Ua(e),c=s?y:pi(t),l=u?y:pi(e),p=(c=c==m?E:c)==E,f=(l=l==m?E:l)==E,h=c==l;if(h&&Wa(t)){if(!Wa(e))return!1;s=!0,p=!1}if(h&&!p)return a||(a=new Gr),s||ss(t)?Jo(t,e,r,n,i,a):function(t,e,r,n,o,i,a){switch(r){case M:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case k:return!(t.byteLength!=e.byteLength||!i(new Ut(t),new Ut(e)));case v:case g:case O:return Na(+t,+e);case b:return t.name==e.name&&t.message==e.message;case P:case A:return t==e+"";case w:var s=or;case j:var u=1&n;if(s||(s=sr),t.size!=e.size&&!u)return!1;var c=a.get(t);if(c)return c==e;n|=2,a.set(t,e);var l=Jo(s(t),s(e),n,o,i,a);return a.delete(t),l;case C:if(Dr)return Dr.call(t)==Dr.call(e)}return!1}(t,e,c,r,n,i,a);if(!(1&r)){var d=p&&It.call(t,"__wrapped__"),_=f&&It.call(e,"__wrapped__");
vendor: 4,634 bytes, line 1
1if(d||_){var x=d?t.value():t,S=_?e.value():e;return a||(a=new Gr),i(x,S,r,n,a)}}return!!h&&(a||(a=new Gr),function(t,e,r,n,i,a){var s=1&r,u=ti(t),c=u.length;if(c!=ti(e).length&&!s)return!1;for(var l=c;l--;){var p=u[l];if(!(s?p in e:It.call(e,p)))return!1}var f=a.get(t),h=a.get(e);if(f&&h)return f==e&&h==t;var d=!0;a.set(t,e),a.set(e,t);for(var m=s;++l<c;){var y=t[p=u[l]],v=e[p];if(n)var g=s?n(v,y,p,e,t,a):n(y,v,p,t,e,a);if(!(g===o?y===v||i(y,v,r,n,a):g)){d=!1;break}m||(m="constructor"==p)}if(d&&!m){var b=t.constructor,_=e.constructor;b==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(d=!1)}return a.delete(t),a.delete(e),d}(t,e,r,n,i,a))}(t,e,r,n,Cn,i))}function Tn(t,e,r,n){var i=r.length,a=i,s=!n;if(null==t)return!a;for(t=Et(t);i--;){var u=r[i];if(s&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++i<a;){var c=(u=r[i])[0],l=t[c],p=u[1];if(s&&u[2]){if(l===o&&!(c in t))return!1}else{var f=new Gr;if(n)var h=n(l,p,c,t,e,f);if(!(h===o?Cn(p,l,3,n,f):h))return!1}}return!0}function kn(t){return!(!Ja(t)||(e=t,Lt&&Lt in e))&&(Ka(t)?Ft:mt).test(Ri(t));var e}function Mn(t){return"function"==typeof t?t:null==t?eu:"object"==typeof t?Ua(t)?zn(t[0],t[1]):Rn(t):lu(t)}function In(t){if(!_i(t))return hr(t);var e=[];for(var r in Et(t))It.call(t,r)&&"constructor"!=r&&e.push(r);return e}function Dn(t,e){return t<e}function Ln(t,e){var r=-1,o=$a(t)?n(t.length):[];return cn(t,(function(t,n,i){o[++r]=e(t,n,i)})),o}function Rn(t){var e=si(t);return 1==e.length&&e[0][2]?wi(e[0][0],e[0][1]):function(r){return r===t||Tn(r,t,e)}}function zn(t,e){return vi(t)&&xi(e)?wi(Li(t),e):function(r){var n=Es(r,t);return n===o&&n===e?Ss(r,t):Cn(e,n,3)}}function Nn(t,e,r,n,i){t!==e&&mn(e,(function(a,s){if(i||(i=new Gr),Ja(a))!function(t,e,r,n,i,a,s){var u=Si(t,r),c=Si(e,r),l=s.get(c);if(l)Yr(t,r,l);else{var p=a?a(u,c,r+"",t,e,s):o,f=p===o;if(f){var h=Ua(c),d=!h&&Wa(c),m=!h&&!d&&ss(c);p=c,h||d||m?Ua(u)?p=u:Ga(u)?p=Po(u):d?(f=!1,p=_o(c,!0)):m?(f=!1,p=wo(c,!0)):p=[]:rs(c)||Va(c)?(p=u,Va(u)?p=ms(u):Ja(u)&&!Ka(u)||(p=hi(c))):f=!1}f&&(s.set(c,p),i(p,c,n,a,s),s.delete(c)),Yr(t,r,p)}}(t,e,s,r,Nn,n,i);else{var u=n?n(Si(t,s),a,s+"",t,e,i):o;u===o&&(u=a),Yr(t,s,u)}}),Ts)}function Fn(t,e){var r=t.length;if(r)return mi(e+=e<0?r:0,r)?t[e]:o}function Bn(t,e,r){e=e.length?ke(e,(function(t){return Ua(t)?function(e){return _n(e,1===t.length?t[0]:t)}:t})):[eu];var n=-1;e=ke(e,Ke(ii()));var o=Ln(t,(function(t,r,o){var i=ke(e,(function(e){return e(t)}));return{criteria:i,index:++n,value:t}}));return function(t,e){var n=t.length;for(t.sort((function(t,e){return function(t,e,r){for(var n=-1,o=t.criteria,i=e.criteria,a=o.length,s=r.length;++n<a;){var u=Oo(o[n],i[n]);if(u)return n>=s?u:u*("desc"==r[n]?-1:1)}return t.index-e.index}(t,e,r)}));n--;)t[n]=t[n].value;return t}(o)}function Vn(t,e,r){for(var n=-1,o=e.length,i={};++n<o;){var a=e[n],s=_n(t,a);r(s,a)&&Kn(i,yo(a,t),s)}return i}function Un(t,e,r,n){var o=n?Be:Fe,i=-1,a=e.length,s=t;for(t===e&&(e=Po(e)),r&&(s=ke(t,Ke(r)));++i<a;)for(var u=0,c=e[i],l=r?r(c):c;(u=o(s,l,u,n))>-1;)s!==t&&Zt.call(s,u,1),Zt.call(t,u,1);return t}function qn(t,e){for(var r=t?e.length:0,n=r-1;r--;){var o=e[r];if(r==n||o!==i){var i=o;mi(o)?Zt.call(t,o,1):so(t,o)}}return t}function $n(t,e){return t+he(gr()*(e-t+1))}function Gn(t,e){var r="";if(!t||e<1||e>p)return r;do{e%2&&(r+=t),(e=he(e/2))&&(t+=t)}while(e);return r}function Wn(t,e){return Ai(Oi(t,e,eu),t+"")}function Zn(t){return Zr(Ns(t))}function Hn(t,e){var r=Ns(t);return ki(r,nn(e,0,r.length))}function Kn(t,e,r,n){if(!Ja(t))return t;for(var i=-1,a=(e=yo(e,t)).length,s=a-1,u=t;null!=u&&++i<a;){var c=Li(e[i]),l=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(i!=s){var p=u[c];(l=n?n(p,c,u):o)===o&&(l=Ja(p)?p:mi(e[i+1])?[]:{})}Xr(u,c,l),u=u[c]}return t}var Yn=Pr?function(t,e){return Pr.set(t,e),t}:eu,Xn=te?function(t,e){return te(t,"toString",{configurable:!0,enumerable:!1,value:Js(e),writable:!0})}:eu;function Jn(t){return ki(Ns(t))}function Qn(t,e,r){var o=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var a=n(i);++o<i;)a[o]=t[o+e];return a}function to(t,e){var r;return cn(t,(function(t,n,o){return!(r=e(t,n,o))})),!!r}function eo(t,e,r){var n=0,o=null==t?n:t.length;if("number"==typeof e&&e==e&&o<=2147483647){for(;n<o;){var i=n+o>>>1,a=t[i];null!==a&&!as(a)&&(r?a<=e:a<e)?n=i+1:o=i}return o}return ro(t,e,eu,r)}function ro(t,e,r,n){var i=0,a=null==t?0:t.length;if(0===a)return 0;for(var s=(e=r(e))!=e,u=null===e,c=as(e),l=e===o;i<a;){var p=he((i+a)/2),f=r(t[p]),h=f!==o,d=null===f,m=f==f,y=as(f);if(s)var v=n||m;
vendor: 4,686 bytes, line 1
1else v=l?m&&(n||h):u?m&&h&&(n||!d):c?m&&h&&!d&&(n||!y):!d&&!y&&(n?f<=e:f<e);v?i=p+1:a=p}return mr(a,4294967294)}function no(t,e){for(var r=-1,n=t.length,o=0,i=[];++r<n;){var a=t[r],s=e?e(a):a;if(!r||!Na(s,u)){var u=s;i[o++]=0===a?0:a}}return i}function oo(t){return"number"==typeof t?t:as(t)?f:+t}function io(t){if("string"==typeof t)return t;if(Ua(t))return ke(t,io)+"";if(as(t))return Lr?Lr.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ao(t,e,r){var n=-1,o=Ce,i=t.length,a=!0,s=[],u=s;if(r)a=!1,o=Te;else if(i>=200){var c=e?null:Wo(t);if(c)return sr(c);a=!1,o=Xe,u=new $r}else u=e?[]:s;t:for(;++n<i;){var l=t[n],p=e?e(l):l;if(l=r||0!==l?l:0,a&&p==p){for(var f=u.length;f--;)if(u[f]===p)continue t;e&&u.push(p),s.push(l)}else o(u,p,r)||(u!==s&&u.push(p),s.push(l))}return s}function so(t,e){return null==(t=Ei(t,e=yo(e,t)))||delete t[Li(Hi(e))]}function uo(t,e,r,n){return Kn(t,e,r(_n(t,e)),n)}function co(t,e,r,n){for(var o=t.length,i=n?o:-1;(n?i--:++i<o)&&e(t[i],i,t););return r?Qn(t,n?0:i,n?i+1:o):Qn(t,n?i+1:0,n?o:i)}function lo(t,e){var r=t;return r instanceof Br&&(r=r.value()),Ie(e,(function(t,e){return e.func.apply(e.thisArg,Me([t],e.args))}),r)}function po(t,e,r){var o=t.length;if(o<2)return o?ao(t[0]):[];for(var i=-1,a=n(o);++i<o;)for(var s=t[i],u=-1;++u<o;)u!=i&&(a[i]=un(a[i]||s,t[u],e,r));return ao(dn(a,1),e,r)}function fo(t,e,r){for(var n=-1,i=t.length,a=e.length,s={};++n<i;){var u=n<a?e[n]:o;r(s,t[n],u)}return s}function ho(t){return Ga(t)?t:[]}function mo(t){return"function"==typeof t?t:eu}function yo(t,e){return Ua(t)?t:vi(t,e)?[t]:Di(ys(t))}var vo=Wn;function go(t,e,r){var n=t.length;return r=r===o?n:r,!e&&r>=n?t:Qn(t,e,r)}var bo=ae||function(t){return pe.clearTimeout(t)};function _o(t,e){if(e)return t.slice();var r=t.length,n=qt?qt(r):new t.constructor(r);return t.copy(n),n}function xo(t){var e=new t.constructor(t.byteLength);return new Ut(e).set(new Ut(t)),e}function wo(t,e){var r=e?xo(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function Oo(t,e){if(t!==e){var r=t!==o,n=null===t,i=t==t,a=as(t),s=e!==o,u=null===e,c=e==e,l=as(e);if(!u&&!l&&!a&&t>e||a&&s&&c&&!u&&!l||n&&s&&c||!r&&c||!i)return 1;if(!n&&!a&&!l&&t<e||l&&r&&i&&!n&&!a||u&&r&&i||!s&&i||!c)return-1}return 0}function Eo(t,e,r,o){for(var i=-1,a=t.length,s=r.length,u=-1,c=e.length,l=dr(a-s,0),p=n(c+l),f=!o;++u<c;)p[u]=e[u];for(;++i<s;)(f||i<a)&&(p[r[i]]=t[i]);for(;l--;)p[u++]=t[i++];return p}function So(t,e,r,o){for(var i=-1,a=t.length,s=-1,u=r.length,c=-1,l=e.length,p=dr(a-u,0),f=n(p+l),h=!o;++i<p;)f[i]=t[i];for(var d=i;++c<l;)f[d+c]=e[c];for(;++s<u;)(h||i<a)&&(f[d+r[s]]=t[i++]);return f}function Po(t,e){var r=-1,o=t.length;for(e||(e=n(o));++r<o;)e[r]=t[r];return e}function jo(t,e,r,n){var i=!r;r||(r={});for(var a=-1,s=e.length;++a<s;){var u=e[a],c=n?n(r[u],t[u],u,r,t):o;c===o&&(c=t[u]),i?en(r,u,c):Xr(r,u,c)}return r}function Ao(t,e){return function(r,n){var o=Ua(r)?Ee:Qr,i=e?e():{};return o(r,t,ii(n,2),i)}}function Co(t){return Wn((function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:o,s=i>2?r[2]:o;for(a=t.length>3&&"function"==typeof a?(i--,a):o,s&&yi(r[0],r[1],s)&&(a=i<3?o:a,i=1),e=Et(e);++n<i;){var u=r[n];u&&t(e,u,n,a)}return e}))}function To(t,e){return function(r,n){if(null==r)return r;if(!$a(r))return t(r,n);for(var o=r.length,i=e?o:-1,a=Et(r);(e?i--:++i<o)&&!1!==n(a[i],i,a););return r}}function ko(t){return function(e,r,n){for(var o=-1,i=Et(e),a=n(e),s=a.length;s--;){var u=a[t?s:++o];if(!1===r(i[u],u,i))break}return e}}function Mo(t){return function(e){var r=nr(e=ys(e))?cr(e):o,n=r?r[0]:e.charAt(0),i=r?go(r,1).join(""):e.slice(1);return n[t]()+i}}function Io(t){return function(e){return Ie(Ks(Vs(e).replace(Yt,"")),t,"")}}function Do(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var r=zr(t.prototype),n=t.apply(r,e);return Ja(n)?n:r}}function Lo(t){return function(e,r,n){var i=Et(e);if(!$a(e)){var a=ii(r,3);e=Cs(e),r=function(t){return a(i[t],t,i)}}var s=t(e,r,n);return s>-1?i[a?e[s]:s]:o}}function Ro(t){return Qo((function(e){var r=e.length,n=r,a=Fr.prototype.thru;for(t&&e.reverse();n--;){var s=e[n];if("function"!=typeof s)throw new jt(i);if(a&&!u&&"wrapper"==ni(s))var u=new Fr([],!0)}for(n=u?n:r;++n<r;){var c=ni(s=e[n]),l="wrapper"==c?ri(s):o;u=l&&gi(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[ni(l[0])].apply(u,l[3]):1==s.length&&gi(s)?u[c]():u.thru(s)}return function(){var t=arguments,n=t[0];
vendor: 4,837 bytes, line 1
1if(u&&1==t.length&&Ua(n))return u.plant(n).value();for(var o=0,i=r?e[o].apply(this,t):n;++o<r;)i=e[o].call(this,i);return i}}))}function zo(t,e,r,i,a,s,u,l,p,f){var h=e&c,d=1&e,m=2&e,y=24&e,v=512&e,g=m?o:Do(t);return function c(){for(var b=arguments.length,_=n(b),x=b;x--;)_[x]=arguments[x];if(y)var w=oi(c),O=function(t,e){for(var r=t.length,n=0;r--;)t[r]===e&&++n;return n}(_,w);if(i&&(_=Eo(_,i,a,y)),s&&(_=So(_,s,u,y)),b-=O,y&&b<f){var E=ar(_,w);return $o(t,e,zo,c.placeholder,r,_,E,l,p,f-b)}var S=d?r:this,P=m?S[t]:t;return b=_.length,l?_=function(t,e){for(var r=t.length,n=mr(e.length,r),i=Po(t);n--;){var a=e[n];t[n]=mi(a,r)?i[a]:o}return t}(_,l):v&&b>1&&_.reverse(),h&&p<b&&(_.length=p),this&&this!==pe&&this instanceof c&&(P=g||Do(P)),P.apply(S,_)}}function No(t,e){return function(r,n){return function(t,e,r,n){return vn(t,(function(t,o,i){e(n,r(t),o,i)})),n}(r,t,e(n),{})}}function Fo(t,e){return function(r,n){var i;if(r===o&&n===o)return e;if(r!==o&&(i=r),n!==o){if(i===o)return n;"string"==typeof r||"string"==typeof n?(r=io(r),n=io(n)):(r=oo(r),n=oo(n)),i=t(r,n)}return i}}function Bo(t){return Qo((function(e){return e=ke(e,Ke(ii())),Wn((function(r){var n=this;return t(e,(function(t){return Oe(t,n,r)}))}))}))}function Vo(t,e){var r=(e=e===o?" ":io(e)).length;if(r<2)return r?Gn(e,t):e;var n=Gn(e,fe(t/ur(e)));return nr(e)?go(cr(n),0,t).join(""):n.slice(0,t)}function Uo(t){return function(e,r,i){return i&&"number"!=typeof i&&yi(e,r,i)&&(r=i=o),e=ps(e),r===o?(r=e,e=0):r=ps(r),function(t,e,r,o){for(var i=-1,a=dr(fe((e-t)/(r||1)),0),s=n(a);a--;)s[o?a:++i]=t,t+=r;return s}(e,r,i=i===o?e<r?1:-1:ps(i),t)}}function qo(t){return function(e,r){return"string"==typeof e&&"string"==typeof r||(e=ds(e),r=ds(r)),t(e,r)}}function $o(t,e,r,n,i,a,s,c,l,p){var f=8&e;e|=f?u:64,4&(e&=~(f?64:u))||(e&=-4);var h=[t,e,i,f?a:o,f?s:o,f?o:a,f?o:s,c,l,p],d=r.apply(o,h);return gi(t)&&Pi(d,h),d.placeholder=n,Ci(d,t,e)}function Go(t){var e=Ot[t];return function(t,r){if(t=ds(t),(r=null==r?0:mr(fs(r),292))&&Re(t)){var n=(ys(t)+"e").split("e");return+((n=(ys(e(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return e(t)}}var Wo=Or&&1/sr(new Or([,-0]))[1]==l?function(t){return new Or(t)}:au;function Zo(t){return function(e){var r=pi(e);return r==w?or(e):r==j?function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=[t,t]})),r}(e):function(t,e){return ke(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Ho(t,e,r,a,l,p,f,h){var d=2&e;if(!d&&"function"!=typeof t)throw new jt(i);var m=a?a.length:0;if(m||(e&=-97,a=l=o),f=f===o?f:dr(fs(f),0),h=h===o?h:fs(h),m-=l?l.length:0,64&e){var y=a,v=l;a=l=o}var g=d?o:ri(t),b=[t,e,r,a,l,y,v,p,f,h];if(g&&function(t,e){var r=t[1],n=e[1],o=r|n,i=o<131,a=n==c&&8==r||n==c&&256==r&&t[7].length<=e[8]||384==n&&e[7].length<=e[8]&&8==r;if(!i&&!a)return t;1&n&&(t[2]=e[2],o|=1&r?0:4);var u=e[3];if(u){var l=t[3];t[3]=l?Eo(l,u,e[4]):u,t[4]=l?ar(t[3],s):e[4]}(u=e[5])&&(l=t[5],t[5]=l?So(l,u,e[6]):u,t[6]=l?ar(t[5],s):e[6]),(u=e[7])&&(t[7]=u),n&c&&(t[8]=null==t[8]?e[8]:mr(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=o}(b,g),t=b[0],e=b[1],r=b[2],a=b[3],l=b[4],!(h=b[9]=b[9]===o?d?0:t.length:dr(b[9]-m,0))&&24&e&&(e&=-25),e&&1!=e)_=8==e||16==e?function(t,e,r){var i=Do(t);return function a(){for(var s=arguments.length,u=n(s),c=s,l=oi(a);c--;)u[c]=arguments[c];var p=s<3&&u[0]!==l&&u[s-1]!==l?[]:ar(u,l);return(s-=p.length)<r?$o(t,e,zo,a.placeholder,o,u,p,o,o,r-s):Oe(this&&this!==pe&&this instanceof a?i:t,this,u)}}(t,e,h):e!=u&&33!=e||l.length?zo.apply(o,b):function(t,e,r,o){var i=1&e,a=Do(t);return function e(){for(var s=-1,u=arguments.length,c=-1,l=o.length,p=n(l+u),f=this&&this!==pe&&this instanceof e?a:t;++c<l;)p[c]=o[c];for(;u--;)p[c++]=arguments[++s];return Oe(f,i?r:this,p)}}(t,e,r,a);else var _=function(t,e,r){var n=1&e,o=Do(t);return function e(){return(this&&this!==pe&&this instanceof e?o:t).apply(n?r:this,arguments)}}(t,e,r);return Ci((g?Yn:Pi)(_,b),t,e)}function Ko(t,e,r,n){return t===o||Na(t,Tt[r])&&!It.call(n,r)?e:t}function Yo(t,e,r,n,i,a){return Ja(t)&&Ja(e)&&(a.set(e,t),Nn(t,e,o,Yo,a),a.delete(e)),t}function Xo(t){return rs(t)?o:t}function Jo(t,e,r,n,i,a){var s=1&r,u=t.length,c=e.length;if(u!=c&&!(s&&c>u))return!1;var l=a.get(t),p=a.get(e);if(l&&p)return l==e&&p==t;var f=-1,h=!0,d=2&r?new $r:o;for(a.set(t,e),a.set(e,t);++f<u;){var m=t[f],y=e[f];if(n)var v=s?n(y,m,f,e,t,a):n(m,y,f,t,e,a);if(v!==o){if(v)continue;h=!1;break}if(d){if(!Le(e,(function(t,e){if(!Xe(d,e)&&(m===t||i(m,t,r,n,a)))return d.push(e)}))){h=!1;break}}else if(m!==y&&!i(m,y,r,n,a)){h=!1;break}}return a.delete(t),a.delete(e),h}function Qo(t){return Ai(Oi(t,o,qi),t+"")}function ti(t){return xn(t,Cs,ci)}function ei(t){return xn(t,Ts,li)}var ri=Pr?function(t){return Pr.get(t)}:au;function ni(t){for(var e=t.name+"",r=jr[e],n=It.call(jr,e)?r.length:0;n--;){var o=r[n],i=o.func;
vendor: 8,427 bytes, line 1
1if(null==i||i==t)return o.name}return e}function oi(t){return(It.call(Rr,"placeholder")?Rr:t).placeholder}function ii(){var t=Rr.iteratee||ru;return t=t===ru?Mn:t,arguments.length?t(arguments[0],arguments[1]):t}function ai(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function si(t){for(var e=Cs(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,xi(o)]}return e}function ui(t,e){var r=function(t,e){return null==t?o:t[e]}(t,e);return kn(r)?r:o}var ci=me?function(t){return null==t?[]:(t=Et(t),Ae(me(t),(function(e){return Wt.call(t,e)})))}:hu,li=me?function(t){for(var e=[];t;)Me(e,ci(t)),t=$t(t);return e}:hu,pi=wn;function fi(t,e,r){for(var n=-1,o=(e=yo(e,t)).length,i=!1;++n<o;){var a=Li(e[n]);if(!(i=null!=t&&r(t,a)))break;t=t[a]}return i||++n!=o?i:!!(o=null==t?0:t.length)&&Xa(o)&&mi(a,o)&&(Ua(t)||Va(t))}function hi(t){return"function"!=typeof t.constructor||_i(t)?{}:zr($t(t))}function di(t){return Ua(t)||Va(t)||!!(Ht&&t&&t[Ht])}function mi(t,e){var r=typeof t;return!!(e=null==e?p:e)&&("number"==r||"symbol"!=r&&vt.test(t))&&t>-1&&t%1==0&&t<e}function yi(t,e,r){if(!Ja(r))return!1;var n=typeof e;return!!("number"==n?$a(r)&&mi(e,r.length):"string"==n&&e in r)&&Na(r[e],t)}function vi(t,e){if(Ua(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!as(t))||Q.test(t)||!J.test(t)||null!=e&&t in Et(e)}function gi(t){var e=ni(t),r=Rr[e];if("function"!=typeof r||!(e in Br.prototype))return!1;if(t===r)return!0;var n=ri(r);return!!n&&t===n[0]}(_r&&pi(new _r(new ArrayBuffer(1)))!=M||xr&&pi(new xr)!=w||wr&&pi(wr.resolve())!=S||Or&&pi(new Or)!=j||Er&&pi(new Er)!=T)&&(pi=function(t){var e=wn(t),r=e==E?t.constructor:o,n=r?Ri(r):"";if(n)switch(n){case Ar:return M;case Cr:return w;case Tr:return S;case kr:return j;case Mr:return T}return e});var bi=kt?Ka:du;function _i(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Tt)}function xi(t){return t==t&&!Ja(t)}function wi(t,e){return function(r){return null!=r&&r[t]===e&&(e!==o||t in Et(r))}}function Oi(t,e,r){return e=dr(e===o?t.length-1:e,0),function(){for(var o=arguments,i=-1,a=dr(o.length-e,0),s=n(a);++i<a;)s[i]=o[e+i];i=-1;for(var u=n(e+1);++i<e;)u[i]=o[i];return u[e]=r(s),Oe(t,this,u)}}function Ei(t,e){return e.length<2?t:_n(t,Qn(e,0,-1))}function Si(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Pi=Ti(Yn),ji=le||function(t,e){return pe.setTimeout(t,e)},Ai=Ti(Xn);function Ci(t,e,r){var n=e+"";return Ai(t,function(t,e){var r=e.length;if(!r)return t;var n=r-1;return e[n]=(r>1?"& ":"")+e[n],e=e.join(r>2?", ":" "),t.replace(it,"{\n/* [wrapped with "+e+"] */\n")}(n,function(t,e){return Se(d,(function(r){var n="_."+r[0];e&r[1]&&!Ce(t,n)&&t.push(n)})),t.sort()}(function(t){var e=t.match(at);return e?e[1].split(st):[]}(n),r)))}function Ti(t){var e=0,r=0;return function(){var n=yr(),i=16-(n-r);if(r=n,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(o,arguments)}}function ki(t,e){var r=-1,n=t.length,i=n-1;for(e=e===o?n:e;++r<e;){var a=$n(r,i),s=t[a];t[a]=t[r],t[r]=s}return t.length=e,t}var Mi,Ii,Di=(Mi=Ma((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(tt,(function(t,r,n,o){e.push(n?o.replace(lt,"$1"):r||t)})),e}),(function(t){return 500===Ii.size&&Ii.clear(),t})),Ii=Mi.cache,Mi);function Li(t){if("string"==typeof t||as(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Ri(t){if(null!=t){try{return Mt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function zi(t){if(t instanceof Br)return t.clone();var e=new Fr(t.__wrapped__,t.__chain__);return e.__actions__=Po(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Ni=Wn((function(t,e){return Ga(t)?un(t,dn(e,1,Ga,!0)):[]})),Fi=Wn((function(t,e){var r=Hi(e);return Ga(r)&&(r=o),Ga(t)?un(t,dn(e,1,Ga,!0),ii(r,2)):[]})),Bi=Wn((function(t,e){var r=Hi(e);return Ga(r)&&(r=o),Ga(t)?un(t,dn(e,1,Ga,!0),o,r):[]}));function Vi(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var o=null==r?0:fs(r);return o<0&&(o=dr(n+o,0)),Ne(t,ii(e,3),o)}function Ui(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=n-1;return r!==o&&(i=fs(r),i=r<0?dr(n+i,0):mr(i,n-1)),Ne(t,ii(e,3),i,!0)}function qi(t){return null!=t&&t.length?dn(t,1):[]}function $i(t){return t&&t.length?t[0]:o}var Gi=Wn((function(t){var e=ke(t,ho);return e.length&&e[0]===t[0]?Pn(e):[]})),Wi=Wn((function(t){var e=Hi(t),r=ke(t,ho);return e===Hi(r)?e=o:r.pop(),r.length&&r[0]===t[0]?Pn(r,ii(e,2)):[]})),Zi=Wn((function(t){var e=Hi(t),r=ke(t,ho);return(e="function"==typeof e?e:o)&&r.pop(),r.length&&r[0]===t[0]?Pn(r,o,e):[]}));function Hi(t){var e=null==t?0:t.length;return e?t[e-1]:o}var Ki=Wn(Yi);function Yi(t,e){return t&&t.length&&e&&e.length?Un(t,e):t}var Xi=Qo((function(t,e){var r=null==t?0:t.length,n=rn(t,e);return qn(t,ke(e,(function(t){return mi(t,r)?+t:t})).sort(Oo)),n}));function Ji(t){return null==t?t:br.call(t)}var Qi=Wn((function(t){return ao(dn(t,1,Ga,!0))})),ta=Wn((function(t){var e=Hi(t);return Ga(e)&&(e=o),ao(dn(t,1,Ga,!0),ii(e,2))})),ea=Wn((function(t){var e=Hi(t);return e="function"==typeof e?e:o,ao(dn(t,1,Ga,!0),o,e)}));function ra(t){if(!t||!t.length)return[];var e=0;return t=Ae(t,(function(t){if(Ga(t))return e=dr(t.length,e),!0})),Ze(e,(function(e){return ke(t,qe(e))}))}function na(t,e){if(!t||!t.length)return[];var r=ra(t);return null==e?r:ke(r,(function(t){return Oe(e,o,t)}))}var oa=Wn((function(t,e){return Ga(t)?un(t,e):[]})),ia=Wn((function(t){return po(Ae(t,Ga))})),aa=Wn((function(t){var e=Hi(t);return Ga(e)&&(e=o),po(Ae(t,Ga),ii(e,2))})),sa=Wn((function(t){var e=Hi(t);return e="function"==typeof e?e:o,po(Ae(t,Ga),o,e)})),ua=Wn(ra),ca=Wn((function(t){var e=t.length,r=e>1?t[e-1]:o;return r="function"==typeof r?(t.pop(),r):o,na(t,r)}));function la(t){var e=Rr(t);return e.__chain__=!0,e}function pa(t,e){return e(t)}var fa=Qo((function(t){var e=t.length,r=e?t[0]:0,n=this.__wrapped__,i=function(e){return rn(e,t)};return!(e>1||this.__actions__.length)&&n instanceof Br&&mi(r)?((n=n.slice(r,+r+(e?1:0))).__actions__.push({func:pa,args:[i],thisArg:o}),new Fr(n,this.__chain__).thru((function(t){return e&&!t.length&&t.push(o),t}))):this.thru(i)})),ha=Ao((function(t,e,r){It.call(t,r)?++t[r]:en(t,r,1)})),da=Lo(Vi),ma=Lo(Ui);function ya(t,e){return(Ua(t)?Se:cn)(t,ii(e,3))}function va(t,e){return(Ua(t)?Pe:ln)(t,ii(e,3))}var ga=Ao((function(t,e,r){It.call(t,r)?t[r].push(e):en(t,r,[e])})),ba=Wn((function(t,e,r){var o=-1,i="function"==typeof e,a=$a(t)?n(t.length):[];return cn(t,(function(t){a[++o]=i?Oe(e,t,r):jn(t,e,r)})),a})),_a=Ao((function(t,e,r){en(t,r,e)}));function xa(t,e){return(Ua(t)?ke:Ln)(t,ii(e,3))}var wa=Ao((function(t,e,r){t[r?0:1].push(e)}),(function(){return[[],[]]})),Oa=Wn((function(t,e){if(null==t)return[];var r=e.length;return r>1&&yi(t,e[0],e[1])?e=[]:r>2&&yi(e[0],e[1],e[2])&&(e=[e[0]]),Bn(t,dn(e,1),[])})),Ea=ce||function(){return pe.Date.now()};function Sa(t,e,r){return e=r?o:e,e=t&&null==e?t.length:e,Ho(t,c,o,o,o,o,e)}function Pa(t,e){var r;if("function"!=typeof e)throw new jt(i);return t=fs(t),function(){return--t>0&&(r=e.apply(this,arguments)),t<=1&&(e=o),r}}var ja=Wn((function(t,e,r){var n=1;if(r.length){var o=ar(r,oi(ja));n|=u}return Ho(t,n,e,r,o)})),Aa=Wn((function(t,e,r){var n=3;if(r.length){var o=ar(r,oi(Aa));n|=u}return Ho(e,n,t,r,o)}));function Ca(t,e,r){var n,a,s,u,c,l,p=0,f=!1,h=!1,d=!0;if("function"!=typeof t)throw new jt(i);function m(e){var r=n,i=a;return n=a=o,p=e,u=t.apply(i,r)}function y(t){var r=t-l;return l===o||r>=e||r<0||h&&t-p>=s}function v(){var t=Ea();if(y(t))return g(t);c=ji(v,function(t){var r=e-(t-l);return h?mr(r,s-(t-p)):r}(t))}function g(t){return c=o,d&&n?m(t):(n=a=o,u)}function b(){var t=Ea(),r=y(t);if(n=arguments,a=this,l=t,r){if(c===o)return function(t){return p=t,c=ji(v,e),f?m(t):u}(l);if(h)return bo(c),c=ji(v,e),m(l)}return c===o&&(c=ji(v,e)),u}return e=ds(e)||0,Ja(r)&&(f=!!r.leading,s=(h="maxWait"in r)?dr(ds(r.maxWait)||0,e):s,d="trailing"in r?!!r.trailing:d),b.cancel=function(){c!==o&&bo(c),p=0,n=l=a=c=o},b.flush=function(){return c===o?u:g(Ea())},b}var Ta=Wn((function(t,e){return sn(t,1,e)})),ka=Wn((function(t,e,r){return sn(t,ds(e)||0,r)}));function Ma(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new jt(i);var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);
vendor: 4,361 bytes, line 1
1var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Ma.Cache||qr),r}function Ia(t){if("function"!=typeof t)throw new jt(i);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ma.Cache=qr;var Da=vo((function(t,e){var r=(e=1==e.length&&Ua(e[0])?ke(e[0],Ke(ii())):ke(dn(e,1),Ke(ii()))).length;return Wn((function(n){for(var o=-1,i=mr(n.length,r);++o<i;)n[o]=e[o].call(this,n[o]);return Oe(t,this,n)}))})),La=Wn((function(t,e){var r=ar(e,oi(La));return Ho(t,u,o,e,r)})),Ra=Wn((function(t,e){var r=ar(e,oi(Ra));return Ho(t,64,o,e,r)})),za=Qo((function(t,e){return Ho(t,256,o,o,o,e)}));function Na(t,e){return t===e||t!=t&&e!=e}var Fa=qo(On),Ba=qo((function(t,e){return t>=e})),Va=An(function(){return arguments}())?An:function(t){return Qa(t)&&It.call(t,"callee")&&!Wt.call(t,"callee")},Ua=n.isArray,qa=ve?Ke(ve):function(t){return Qa(t)&&wn(t)==k};function $a(t){return null!=t&&Xa(t.length)&&!Ka(t)}function Ga(t){return Qa(t)&&$a(t)}var Wa=ye||du,Za=ge?Ke(ge):function(t){return Qa(t)&&wn(t)==g};function Ha(t){if(!Qa(t))return!1;var e=wn(t);return e==b||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!rs(t)}function Ka(t){if(!Ja(t))return!1;var e=wn(t);return e==_||e==x||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ya(t){return"number"==typeof t&&t==fs(t)}function Xa(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=p}function Ja(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Qa(t){return null!=t&&"object"==typeof t}var ts=be?Ke(be):function(t){return Qa(t)&&pi(t)==w};function es(t){return"number"==typeof t||Qa(t)&&wn(t)==O}function rs(t){if(!Qa(t)||wn(t)!=E)return!1;var e=$t(t);if(null===e)return!0;var r=It.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Mt.call(r)==zt}var ns=_e?Ke(_e):function(t){return Qa(t)&&wn(t)==P},os=xe?Ke(xe):function(t){return Qa(t)&&pi(t)==j};function is(t){return"string"==typeof t||!Ua(t)&&Qa(t)&&wn(t)==A}function as(t){return"symbol"==typeof t||Qa(t)&&wn(t)==C}var ss=we?Ke(we):function(t){return Qa(t)&&Xa(t.length)&&!!oe[wn(t)]},us=qo(Dn),cs=qo((function(t,e){return t<=e}));function ls(t){if(!t)return[];if($a(t))return is(t)?cr(t):Po(t);if(Kt&&t[Kt])return function(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}(t[Kt]());var e=pi(t);return(e==w?or:e==j?sr:Ns)(t)}function ps(t){return t?(t=ds(t))===l||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function fs(t){var e=ps(t),r=e%1;return e==e?r?e-r:e:0}function hs(t){return t?nn(fs(t),0,h):0}function ds(t){if("number"==typeof t)return t;if(as(t))return f;if(Ja(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ja(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=He(t);var r=dt.test(t);return r||yt.test(t)?ue(t.slice(2),r?2:8):ht.test(t)?f:+t}function ms(t){return jo(t,Ts(t))}function ys(t){return null==t?"":io(t)}var vs=Co((function(t,e){if(_i(e)||$a(e))jo(e,Cs(e),t);else for(var r in e)It.call(e,r)&&Xr(t,r,e[r])})),gs=Co((function(t,e){jo(e,Ts(e),t)})),bs=Co((function(t,e,r,n){jo(e,Ts(e),t,n)})),_s=Co((function(t,e,r,n){jo(e,Cs(e),t,n)})),xs=Qo(rn),ws=Wn((function(t,e){t=Et(t);var r=-1,n=e.length,i=n>2?e[2]:o;for(i&&yi(e[0],e[1],i)&&(n=1);++r<n;)for(var a=e[r],s=Ts(a),u=-1,c=s.length;++u<c;){var l=s[u],p=t[l];(p===o||Na(p,Tt[l])&&!It.call(t,l))&&(t[l]=a[l])}return t})),Os=Wn((function(t){return t.push(o,Yo),Oe(Ms,o,t)}));function Es(t,e,r){var n=null==t?o:_n(t,e);return n===o?r:n}function Ss(t,e){return null!=t&&fi(t,e,Sn)}var Ps=No((function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=Rt.call(e)),t[e]=r}),Js(eu)),js=No((function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=Rt.call(e)),It.call(t,e)?t[e].push(r):t[e]=[r]}),ii),As=Wn(jn);function Cs(t){return $a(t)?Wr(t):In(t)}function Ts(t){return $a(t)?Wr(t,!0):function(t){if(!Ja(t))return function(t){var e=[];if(null!=t)for(var r in Et(t))e.push(r);return e}(t);var e=_i(t),r=[];for(var n in t)("constructor"!=n||!e&&It.call(t,n))&&r.push(n);return r}(t)}var ks=Co((function(t,e,r){Nn(t,e,r)})),Ms=Co((function(t,e,r,n){Nn(t,e,r,n)})),Is=Qo((function(t,e){var r={};if(null==t)return r;var n=!1;e=ke(e,(function(e){return e=yo(e,t),n||(n=e.length>1),e}
vendor: 4,784 bytes, line 1
1)),jo(t,ei(t),r),n&&(r=on(r,7,Xo));for(var o=e.length;o--;)so(r,e[o]);return r})),Ds=Qo((function(t,e){return null==t?{}:function(t,e){return Vn(t,e,(function(e,r){return Ss(t,r)}))}(t,e)}));function Ls(t,e){if(null==t)return{};var r=ke(ei(t),(function(t){return[t]}));return e=ii(e),Vn(t,r,(function(t,r){return e(t,r[0])}))}var Rs=Zo(Cs),zs=Zo(Ts);function Ns(t){return null==t?[]:Ye(t,Cs(t))}var Fs=Io((function(t,e,r){return e=e.toLowerCase(),t+(r?Bs(e):e)}));function Bs(t){return Hs(ys(t).toLowerCase())}function Vs(t){return(t=ys(t))&&t.replace(gt,tr).replace(Xt,"")}var Us=Io((function(t,e,r){return t+(r?"-":"")+e.toLowerCase()})),qs=Io((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()})),$s=Mo("toLowerCase"),Gs=Io((function(t,e,r){return t+(r?"_":"")+e.toLowerCase()})),Ws=Io((function(t,e,r){return t+(r?" ":"")+Hs(e)})),Zs=Io((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),Hs=Mo("toUpperCase");function Ks(t,e,r){return t=ys(t),(e=r?o:e)===o?function(t){return ee.test(t)}(t)?function(t){return t.match(Qt)||[]}(t):function(t){return t.match(ut)||[]}(t):t.match(e)||[]}var Ys=Wn((function(t,e){try{return Oe(t,o,e)}catch(t){return Ha(t)?t:new xt(t)}})),Xs=Qo((function(t,e){return Se(e,(function(e){e=Li(e),en(t,e,ja(t[e],t))})),t}));function Js(t){return function(){return t}}var Qs=Ro(),tu=Ro(!0);function eu(t){return t}function ru(t){return Mn("function"==typeof t?t:on(t,1))}var nu=Wn((function(t,e){return function(r){return jn(r,t,e)}})),ou=Wn((function(t,e){return function(r){return jn(t,r,e)}}));function iu(t,e,r){var n=Cs(e),o=bn(e,n);null!=r||Ja(e)&&(o.length||!n.length)||(r=e,e=t,t=this,o=bn(e,Cs(e)));var i=!(Ja(r)&&"chain"in r&&!r.chain),a=Ka(t);return Se(o,(function(r){var n=e[r];t[r]=n,a&&(t.prototype[r]=function(){var e=this.__chain__;if(i||e){var r=t(this.__wrapped__);return(r.__actions__=Po(this.__actions__)).push({func:n,args:arguments,thisArg:t}),r.__chain__=e,r}return n.apply(t,Me([this.value()],arguments))})})),t}function au(){}var su=Bo(ke),uu=Bo(je),cu=Bo(Le);function lu(t){return vi(t)?qe(Li(t)):function(t){return function(e){return _n(e,t)}}(t)}var pu=Uo(),fu=Uo(!0);function hu(){return[]}function du(){return!1}var mu,yu=Fo((function(t,e){return t+e}),0),vu=Go("ceil"),gu=Fo((function(t,e){return t/e}),1),bu=Go("floor"),_u=Fo((function(t,e){return t*e}),1),xu=Go("round"),wu=Fo((function(t,e){return t-e}),0);return Rr.after=function(t,e){if("function"!=typeof e)throw new jt(i);return t=fs(t),function(){if(--t<1)return e.apply(this,arguments)}},Rr.ary=Sa,Rr.assign=vs,Rr.assignIn=gs,Rr.assignInWith=bs,Rr.assignWith=_s,Rr.at=xs,Rr.before=Pa,Rr.bind=ja,Rr.bindAll=Xs,Rr.bindKey=Aa,Rr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ua(t)?t:[t]},Rr.chain=la,Rr.chunk=function(t,e,r){e=(r?yi(t,e,r):e===o)?1:dr(fs(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var a=0,s=0,u=n(fe(i/e));a<i;)u[s++]=Qn(t,a,a+=e);return u},Rr.compact=function(t){for(var e=-1,r=null==t?0:t.length,n=0,o=[];++e<r;){var i=t[e];i&&(o[n++]=i)}return o},Rr.concat=function(){var t=arguments.length;if(!t)return[];for(var e=n(t-1),r=arguments[0],o=t;o--;)e[o-1]=arguments[o];return Me(Ua(r)?Po(r):[r],dn(e,1))},Rr.cond=function(t){var e=null==t?0:t.length,r=ii();return t=e?ke(t,(function(t){if("function"!=typeof t[1])throw new jt(i);return[r(t[0]),t[1]]})):[],Wn((function(r){for(var n=-1;++n<e;){var o=t[n];if(Oe(o[0],this,r))return Oe(o[1],this,r)}}))},Rr.conforms=function(t){return function(t){var e=Cs(t);return function(r){return an(r,t,e)}}(on(t,1))},Rr.constant=Js,Rr.countBy=ha,Rr.create=function(t,e){var r=zr(t);return null==e?r:tn(r,e)},Rr.curry=function t(e,r,n){var i=Ho(e,8,o,o,o,o,o,r=n?o:r);return i.placeholder=t.placeholder,i},Rr.curryRight=function t(e,r,n){var i=Ho(e,16,o,o,o,o,o,r=n?o:r);return i.placeholder=t.placeholder,i},Rr.debounce=Ca,Rr.defaults=ws,Rr.defaultsDeep=Os,Rr.defer=Ta,Rr.delay=ka,Rr.difference=Ni,Rr.differenceBy=Fi,Rr.differenceWith=Bi,Rr.drop=function(t,e,r){var n=null==t?0:t.length;return n?Qn(t,(e=r||e===o?1:fs(e))<0?0:e,n):[]},Rr.dropRight=function(t,e,r){var n=null==t?0:t.length;return n?Qn(t,0,(e=n-(e=r||e===o?1:fs(e)))<0?0:e):[]},Rr.dropRightWhile=function(t,e){return t&&t.length?co(t,ii(e,3),!0,!0):[]},Rr.dropWhile=function(t,e){return t&&t.length?co(t,ii(e,3),!0):[]},Rr.fill=function(t,e,r,n){var i=null==t?0:t.length;return i?(r&&"number"!=typeof r&&yi(t,e,r)&&(r=0,n=i),function(t,e,r,n){var i=t.length;for((r=fs(r))<0&&(r=-r>i?0:i+r),(n=n===o||n>i?i:fs(n))<0&&(n+=i),n=r>n?0:hs(n);r<n;)t[r++]=e;return t}(t,e,r,n)):[]},Rr.filter=function(t,e){return(Ua(t)?Ae:hn)(t,ii(e,3))},Rr.flatMap=function(t,e){return dn(xa(t,e),1)},Rr.flatMapDeep=function(t,e){return dn(xa(t,e),l)},Rr.flatMapDepth=function(t,e,r){return r=r===o?1:fs(r),dn(xa(t,e),r)}
vendor: 12,605 bytes, line 1
1,Rr.flatten=qi,Rr.flattenDeep=function(t){return null!=t&&t.length?dn(t,l):[]},Rr.flattenDepth=function(t,e){return null!=t&&t.length?dn(t,e=e===o?1:fs(e)):[]},Rr.flip=function(t){return Ho(t,512)},Rr.flow=Qs,Rr.flowRight=tu,Rr.fromPairs=function(t){for(var e=-1,r=null==t?0:t.length,n={};++e<r;){var o=t[e];n[o[0]]=o[1]}return n},Rr.functions=function(t){return null==t?[]:bn(t,Cs(t))},Rr.functionsIn=function(t){return null==t?[]:bn(t,Ts(t))},Rr.groupBy=ga,Rr.initial=function(t){return null!=t&&t.length?Qn(t,0,-1):[]},Rr.intersection=Gi,Rr.intersectionBy=Wi,Rr.intersectionWith=Zi,Rr.invert=Ps,Rr.invertBy=js,Rr.invokeMap=ba,Rr.iteratee=ru,Rr.keyBy=_a,Rr.keys=Cs,Rr.keysIn=Ts,Rr.map=xa,Rr.mapKeys=function(t,e){var r={};return e=ii(e,3),vn(t,(function(t,n,o){en(r,e(t,n,o),t)})),r},Rr.mapValues=function(t,e){var r={};return e=ii(e,3),vn(t,(function(t,n,o){en(r,n,e(t,n,o))})),r},Rr.matches=function(t){return Rn(on(t,1))},Rr.matchesProperty=function(t,e){return zn(t,on(e,1))},Rr.memoize=Ma,Rr.merge=ks,Rr.mergeWith=Ms,Rr.method=nu,Rr.methodOf=ou,Rr.mixin=iu,Rr.negate=Ia,Rr.nthArg=function(t){return t=fs(t),Wn((function(e){return Fn(e,t)}))},Rr.omit=Is,Rr.omitBy=function(t,e){return Ls(t,Ia(ii(e)))},Rr.once=function(t){return Pa(2,t)},Rr.orderBy=function(t,e,r,n){return null==t?[]:(Ua(e)||(e=null==e?[]:[e]),Ua(r=n?o:r)||(r=null==r?[]:[r]),Bn(t,e,r))},Rr.over=su,Rr.overArgs=Da,Rr.overEvery=uu,Rr.overSome=cu,Rr.partial=La,Rr.partialRight=Ra,Rr.partition=wa,Rr.pick=Ds,Rr.pickBy=Ls,Rr.property=lu,Rr.propertyOf=function(t){return function(e){return null==t?o:_n(t,e)}},Rr.pull=Ki,Rr.pullAll=Yi,Rr.pullAllBy=function(t,e,r){return t&&t.length&&e&&e.length?Un(t,e,ii(r,2)):t},Rr.pullAllWith=function(t,e,r){return t&&t.length&&e&&e.length?Un(t,e,o,r):t},Rr.pullAt=Xi,Rr.range=pu,Rr.rangeRight=fu,Rr.rearg=za,Rr.reject=function(t,e){return(Ua(t)?Ae:hn)(t,Ia(ii(e,3)))},Rr.remove=function(t,e){var r=[];if(!t||!t.length)return r;var n=-1,o=[],i=t.length;for(e=ii(e,3);++n<i;){var a=t[n];e(a,n,t)&&(r.push(a),o.push(n))}return qn(t,o),r},Rr.rest=function(t,e){if("function"!=typeof t)throw new jt(i);return Wn(t,e=e===o?e:fs(e))},Rr.reverse=Ji,Rr.sampleSize=function(t,e,r){return e=(r?yi(t,e,r):e===o)?1:fs(e),(Ua(t)?Hr:Hn)(t,e)},Rr.set=function(t,e,r){return null==t?t:Kn(t,e,r)},Rr.setWith=function(t,e,r,n){return n="function"==typeof n?n:o,null==t?t:Kn(t,e,r,n)},Rr.shuffle=function(t){return(Ua(t)?Kr:Jn)(t)},Rr.slice=function(t,e,r){var n=null==t?0:t.length;return n?(r&&"number"!=typeof r&&yi(t,e,r)?(e=0,r=n):(e=null==e?0:fs(e),r=r===o?n:fs(r)),Qn(t,e,r)):[]},Rr.sortBy=Oa,Rr.sortedUniq=function(t){return t&&t.length?no(t):[]},Rr.sortedUniqBy=function(t,e){return t&&t.length?no(t,ii(e,2)):[]},Rr.split=function(t,e,r){return r&&"number"!=typeof r&&yi(t,e,r)&&(e=r=o),(r=r===o?h:r>>>0)?(t=ys(t))&&("string"==typeof e||null!=e&&!ns(e))&&!(e=io(e))&&nr(t)?go(cr(t),0,r):t.split(e,r):[]},Rr.spread=function(t,e){if("function"!=typeof t)throw new jt(i);return e=null==e?0:dr(fs(e),0),Wn((function(r){var n=r[e],o=go(r,0,e);return n&&Me(o,n),Oe(t,this,o)}))},Rr.tail=function(t){var e=null==t?0:t.length;return e?Qn(t,1,e):[]},Rr.take=function(t,e,r){return t&&t.length?Qn(t,0,(e=r||e===o?1:fs(e))<0?0:e):[]},Rr.takeRight=function(t,e,r){var n=null==t?0:t.length;return n?Qn(t,(e=n-(e=r||e===o?1:fs(e)))<0?0:e,n):[]},Rr.takeRightWhile=function(t,e){return t&&t.length?co(t,ii(e,3),!1,!0):[]},Rr.takeWhile=function(t,e){return t&&t.length?co(t,ii(e,3)):[]},Rr.tap=function(t,e){return e(t),t},Rr.throttle=function(t,e,r){var n=!0,o=!0;if("function"!=typeof t)throw new jt(i);return Ja(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Ca(t,e,{leading:n,maxWait:e,trailing:o})},Rr.thru=pa,Rr.toArray=ls,Rr.toPairs=Rs,Rr.toPairsIn=zs,Rr.toPath=function(t){return Ua(t)?ke(t,Li):as(t)?[t]:Po(Di(ys(t)))},Rr.toPlainObject=ms,Rr.transform=function(t,e,r){var n=Ua(t),o=n||Wa(t)||ss(t);if(e=ii(e,4),null==r){var i=t&&t.constructor;r=o?n?new i:[]:Ja(t)&&Ka(i)?zr($t(t)):{}}return(o?Se:vn)(t,(function(t,n,o){return e(r,t,n,o)})),r},Rr.unary=function(t){return Sa(t,1)},Rr.union=Qi,Rr.unionBy=ta,Rr.unionWith=ea,Rr.uniq=function(t){return t&&t.length?ao(t):[]},Rr.uniqBy=function(t,e){return t&&t.length?ao(t,ii(e,2)):[]},Rr.uniqWith=function(t,e){return e="function"==typeof e?e:o,t&&t.length?ao(t,o,e):[]},Rr.unset=function(t,e){return null==t||so(t,e)},Rr.unzip=ra,Rr.unzipWith=na,Rr.update=function(t,e,r){return null==t?t:uo(t,e,mo(r))},Rr.updateWith=function(t,e,r,n){return n="function"==typeof n?n:o,null==t?t:uo(t,e,mo(r),n)},Rr.values=Ns,Rr.valuesIn=function(t){return null==t?[]:Ye(t,Ts(t))},Rr.without=oa,Rr.words=Ks,Rr.wrap=function(t,e){return La(mo(e),t)},Rr.xor=ia,Rr.xorBy=aa,Rr.xorWith=sa,Rr.zip=ua,Rr.zipObject=function(t,e){return fo(t||[],e||[],Xr)},Rr.zipObjectDeep=function(t,e){return fo(t||[],e||[],Kn)},Rr.zipWith=ca,Rr.entries=Rs,Rr.entriesIn=zs,Rr.extend=gs,Rr.extendWith=bs,iu(Rr,Rr),Rr.add=yu,Rr.attempt=Ys,Rr.camelCase=Fs,Rr.capitalize=Bs,Rr.ceil=vu,Rr.clamp=function(t,e,r){return r===o&&(r=e,e=o),r!==o&&(r=(r=ds(r))==r?r:0),e!==o&&(e=(e=ds(e))==e?e:0),nn(ds(t),e,r)},Rr.clone=function(t){return on(t,4)},Rr.cloneDeep=function(t){return on(t,5)},Rr.cloneDeepWith=function(t,e){return on(t,5,e="function"==typeof e?e:o)},Rr.cloneWith=function(t,e){return on(t,4,e="function"==typeof e?e:o)},Rr.conformsTo=function(t,e){return null==e||an(t,e,Cs(e))},Rr.deburr=Vs,Rr.defaultTo=function(t,e){return null==t||t!=t?e:t},Rr.divide=gu,Rr.endsWith=function(t,e,r){t=ys(t),e=io(e);var n=t.length,i=r=r===o?n:nn(fs(r),0,n);return(r-=e.length)>=0&&t.slice(r,i)==e},Rr.eq=Na,Rr.escape=function(t){return(t=ys(t))&&H.test(t)?t.replace(W,er):t},Rr.escapeRegExp=function(t){return(t=ys(t))&&rt.test(t)?t.replace(et,"\\$&"):t},Rr.every=function(t,e,r){var n=Ua(t)?je:pn;return r&&yi(t,e,r)&&(e=o),n(t,ii(e,3))},Rr.find=da,Rr.findIndex=Vi,Rr.findKey=function(t,e){return ze(t,ii(e,3),vn)},Rr.findLast=ma,Rr.findLastIndex=Ui,Rr.findLastKey=function(t,e){return ze(t,ii(e,3),gn)},Rr.floor=bu,Rr.forEach=ya,Rr.forEachRight=va,Rr.forIn=function(t,e){return null==t?t:mn(t,ii(e,3),Ts)},Rr.forInRight=function(t,e){return null==t?t:yn(t,ii(e,3),Ts)},Rr.forOwn=function(t,e){return t&&vn(t,ii(e,3))},Rr.forOwnRight=function(t,e){return t&&gn(t,ii(e,3))},Rr.get=Es,Rr.gt=Fa,Rr.gte=Ba,Rr.has=function(t,e){return null!=t&&fi(t,e,En)},Rr.hasIn=Ss,Rr.head=$i,Rr.identity=eu,Rr.includes=function(t,e,r,n){t=$a(t)?t:Ns(t),r=r&&!n?fs(r):0;var o=t.length;return r<0&&(r=dr(o+r,0)),is(t)?r<=o&&t.indexOf(e,r)>-1:!!o&&Fe(t,e,r)>-1},Rr.indexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var o=null==r?0:fs(r);return o<0&&(o=dr(n+o,0)),Fe(t,e,o)},Rr.inRange=function(t,e,r){return e=ps(e),r===o?(r=e,e=0):r=ps(r),function(t,e,r){return t>=mr(e,r)&&t<dr(e,r)}(t=ds(t),e,r)},Rr.invoke=As,Rr.isArguments=Va,Rr.isArray=Ua,Rr.isArrayBuffer=qa,Rr.isArrayLike=$a,Rr.isArrayLikeObject=Ga,Rr.isBoolean=function(t){return!0===t||!1===t||Qa(t)&&wn(t)==v},Rr.isBuffer=Wa,Rr.isDate=Za,Rr.isElement=function(t){return Qa(t)&&1===t.nodeType&&!rs(t)},Rr.isEmpty=function(t){if(null==t)return!0;if($a(t)&&(Ua(t)||"string"==typeof t||"function"==typeof t.splice||Wa(t)||ss(t)||Va(t)))return!t.length;var e=pi(t);if(e==w||e==j)return!t.size;if(_i(t))return!In(t).length;for(var r in t)if(It.call(t,r))return!1;return!0},Rr.isEqual=function(t,e){return Cn(t,e)},Rr.isEqualWith=function(t,e,r){var n=(r="function"==typeof r?r:o)?r(t,e):o;return n===o?Cn(t,e,o,r):!!n},Rr.isError=Ha,Rr.isFinite=function(t){return"number"==typeof t&&Re(t)},Rr.isFunction=Ka,Rr.isInteger=Ya,Rr.isLength=Xa,Rr.isMap=ts,Rr.isMatch=function(t,e){return t===e||Tn(t,e,si(e))},Rr.isMatchWith=function(t,e,r){return r="function"==typeof r?r:o,Tn(t,e,si(e),r)},Rr.isNaN=function(t){return es(t)&&t!=+t},Rr.isNative=function(t){if(bi(t))throw new xt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return kn(t)},Rr.isNil=function(t){return null==t},Rr.isNull=function(t){return null===t},Rr.isNumber=es,Rr.isObject=Ja,Rr.isObjectLike=Qa,Rr.isPlainObject=rs,Rr.isRegExp=ns,Rr.isSafeInteger=function(t){return Ya(t)&&t>=-9007199254740991&&t<=p},Rr.isSet=os,Rr.isString=is,Rr.isSymbol=as,Rr.isTypedArray=ss,Rr.isUndefined=function(t){return t===o},Rr.isWeakMap=function(t){return Qa(t)&&pi(t)==T},Rr.isWeakSet=function(t){return Qa(t)&&"[object WeakSet]"==wn(t)},Rr.join=function(t,e){return null==t?"":$e.call(t,e)},Rr.kebabCase=Us,Rr.last=Hi,Rr.lastIndexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=n;return r!==o&&(i=(i=fs(r))<0?dr(n+i,0):mr(i,n-1)),e==e?function(t,e,r){for(var n=r+1;n--;)if(t[n]===e)return n;return n}(t,e,i):Ne(t,Ve,i,!0)},Rr.lowerCase=qs,Rr.lowerFirst=$s,Rr.lt=us,Rr.lte=cs,Rr.max=function(t){return t&&t.length?fn(t,eu,On):o},Rr.maxBy=function(t,e){return t&&t.length?fn(t,ii(e,2),On):o},Rr.mean=function(t){return Ue(t,eu)},Rr.meanBy=function(t,e){return Ue(t,ii(e,2))},Rr.min=function(t){return t&&t.length?fn(t,eu,Dn):o},Rr.minBy=function(t,e){return t&&t.length?fn(t,ii(e,2),Dn):o},Rr.stubArray=hu,Rr.stubFalse=du,Rr.stubObject=function(){return{}},Rr.stubString=function(){return""},Rr.stubTrue=function(){return!0},Rr.multiply=_u,Rr.nth=function(t,e){return t&&t.length?Fn(t,fs(e)):o},Rr.noConflict=function(){return pe._===this&&(pe._=Nt),this},Rr.noop=au,Rr.now=Ea,Rr.pad=function(t,e,r){t=ys(t);var n=(e=fs(e))?ur(t):0;if(!e||n>=e)return t;var o=(e-n)/2;return Vo(he(o),r)+t+Vo(fe(o),r)},Rr.padEnd=function(t,e,r){t=ys(t);var n=(e=fs(e))?ur(t):0;return e&&n<e?t+Vo(e-n,r):t},Rr.padStart=function(t,e,r){t=ys(t);var n=(e=fs(e))?ur(t):0;return e&&n<e?Vo(e-n,r)+t:t},Rr.parseInt=function(t,e,r){return r||null==e?e=0:e&&(e=+e),vr(ys(t).replace(nt,""),e||0)},Rr.random=function(t,e,r){if(r&&"boolean"!=typeof r&&yi(t,e,r)&&(e=r=o),r===o&&("boolean"==typeof e?(r=e,e=o):"boolean"==typeof t&&(r=t,t=o)),t===o&&e===o?(t=0,e=1):(t=ps(t),e===o?(e=t,t=0):e=ps(e)),t>e){var n=t;t=e,e=n}if(r||t%1||e%1){var i=gr();return mr(t+i*(e-t+se("1e-"+((i+"").length-1))),e)}return $n(t,e)},Rr.reduce=function(t,e,r){var n=Ua(t)?Ie:Ge,o=arguments.length<3;return n(t,ii(e,4),r,o,cn)},Rr.reduceRight=function(t,e,r){var n=Ua(t)?De:Ge,o=arguments.length<3;return n(t,ii(e,4),r,o,ln)},Rr.repeat=function(t,e,r){return e=(r?yi(t,e,r):e===o)?1:fs(e),Gn(ys(t),e)},Rr.replace=function(){var t=arguments,e=ys(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Rr.result=function(t,e,r){var n=-1,i=(e=yo(e,t)).length;for(i||(i=1,t=o);++n<i;){var a=null==t?o:t[Li(e[n])];a===o&&(n=i,a=r),t=Ka(a)?a.call(t):a}return t},Rr.round=xu,Rr.runInContext=t,Rr.sample=function(t){return(Ua(t)?Zr:Zn)(t)},Rr.size=function(t){if(null==t)return 0;if($a(t))return is(t)?ur(t):t.length;var e=pi(t);return e==w||e==j?t.size:In(t).length},Rr.snakeCase=Gs,Rr.some=function(t,e,r){var n=Ua(t)?Le:to;return r&&yi(t,e,r)&&(e=o),n(t,ii(e,3))},Rr.sortedIndex=function(t,e){return eo(t,e)},Rr.sortedIndexBy=function(t,e,r){return ro(t,e,ii(r,2))},Rr.sortedIndexOf=function(t,e){var r=null==t?0:t.length;if(r){var n=eo(t,e);if(n<r&&Na(t[n],e))return n}return-1},Rr.sortedLastIndex=function(t,e){return eo(t,e,!0)},Rr.sortedLastIndexBy=function(t,e,r){return ro(t,e,ii(r,2),!0)},Rr.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var r=eo(t,e,!0)-1;if(Na(t[r],e))return r}return-1},Rr.startCase=Ws,Rr.startsWith=function(t,e,r){return t=ys(t),r=null==r?0:nn(fs(r),0,t.length),e=io(e),t.slice(r,r+e.length)==e},Rr.subtract=wu,Rr.sum=function(t){return t&&t.length?We(t,eu):0},Rr.sumBy=function(t,e){return t&&t.length?We(t,ii(e,2)):0},Rr.template=function(t,e,r){var n=Rr.templateSettings;r&&yi(t,e,r)&&(e=o),t=ys(t),e=bs({},e,n,Ko);var i,a,s=bs({},e.imports,n.imports,Ko),u=Cs(s),c=Ye(s,u),l=0,p=e.interpolate||bt,f="__p += '",h=St((e.escape||bt).source+"|"+p.source+"|"+(p===X?pt:bt).source+"|"+(e.evaluate||bt).source+"|$","g"),d="//# sourceURL="+(It.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ne+"]")+"\n";t.replace(h,(function(e,r,n,o,s,u){return n||(n=o),f+=t.slice(l,u).replace(_t,rr),r&&(i=!0,f+="' +\n__e("+r+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),n&&(f+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),l=u+e.length,e})),f+="';\n";var m=It.call(e,"variable")&&e.variable;if(m){if(ct.test(m))throw new xt("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(U,""):f).replace(q,"$1").replace($,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";
1\n")+f+"return __p\n}";var y=Ys((function(){return wt(u,d+"return "+f).apply(o,c)}));if(y.source=f,Ha(y))throw y;return y},Rr.times=function(t,e){if((t=fs(t))<1||t>p)return[];var r=h,n=mr(t,h);e=ii(e),t-=h;for(var o=Ze(n,e);++r<t;)e(r);return o},Rr.toFinite=ps,Rr.toInteger=fs,Rr.toLength=hs,Rr.toLower=function(t){return ys(t).toLowerCase()},Rr.toNumber=ds,Rr.toSafeInteger=function(t){return t?nn(fs(t),-9007199254740991,p):0===t?t:0},Rr.toString=ys,Rr.toUpper=function(t){return ys(t).toUpperCase()},Rr.trim=function(t,e,r){if((t=ys(t))&&(r||e===o))return He(t);if(!t||!(e=io(e)))return t;var n=cr(t),i=cr(e);return go(n,Je(n,i),Qe(n,i)+1).join("")},Rr.trimEnd=function(t,e,r){if((t=ys(t))&&(r||e===o))return t.slice(0,lr(t)+1);if(!t||!(e=io(e)))return t;var n=cr(t);return go(n,0,Qe(n,cr(e))+1).join("")},Rr.trimStart=function(t,e,r){if((t=ys(t))&&(r||e===o))return t.replace(nt,"");if(!t||!(e=io(e)))return t;var n=cr(t);return go(n,Je(n,cr(e))).join("")},Rr.truncate=function(t,e){var r=30,n="...";if(Ja(e)){var i="separator"in e?e.separator:i;r="length"in e?fs(e.length):r,n="omission"in e?io(e.omission):n}var a=(t=ys(t)).length;if(nr(t)){var s=cr(t);a=s.length}if(r>=a)return t;var u=r-ur(n);if(u<1)return n;var c=s?go(s,0,u).join(""):t.slice(0,u);if(i===o)return c+n;if(s&&(u+=c.length-u),ns(i)){if(t.slice(u).search(i)){var l,p=c;for(i.global||(i=St(i.source,ys(ft.exec(i))+"g")),i.lastIndex=0;l=i.exec(p);)var f=l.index;c=c.slice(0,f===o?u:f)}}else if(t.indexOf(io(i),u)!=u){var h=c.lastIndexOf(i);h>-1&&(c=c.slice(0,h))}return c+n},Rr.unescape=function(t){return(t=ys(t))&&Z.test(t)?t.replace(G,pr):t},Rr.uniqueId=function(t){var e=++Dt;return ys(t)+e},Rr.upperCase=Zs,Rr.upperFirst=Hs,Rr.each=ya,Rr.eachRight=va,Rr.first=$i,iu(Rr,(mu={},vn(Rr,(function(t,e){It.call(Rr.prototype,e)||(mu[e]=t)})),mu),{chain:!1}),Rr.VERSION="4.17.21",Se(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Rr[t].placeholder=Rr})),Se(["drop","take"],(function(t,e){Br.prototype[t]=function(r){r=r===o?1:dr(fs(r),0);var n=this.__filtered__&&!e?new Br(this):this.clone();return n.__filtered__?n.__takeCount__=mr(r,n.__takeCount__):n.__views__.push({size:mr(r,h),type:t+(n.__dir__<0?"Right":"")}),n},Br.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Se(["filter","map","takeWhile"],(function(t,e){var r=e+1,n=1==r||3==r;Br.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ii(t,3),type:r}),e.__filtered__=e.__filtered__||n,e}})),Se(["head","last"],(function(t,e){var r="take"+(e?"Right":"");Br.prototype[t]=function(){return this[r](1).value()[0]}})),Se(["initial","tail"],(function(t,e){var r="drop"+(e?"":"Right");Br.prototype[t]=function(){return this.__filtered__?new Br(this):this[r](1)}})),Br.prototype.compact=function(){return this.filter(eu)},Br.prototype.find=function(t){return this.filter(t).head()},Br.prototype.findLast=function(t){return this.reverse().find(t)},Br.prototype.invokeMap=Wn((function(t,e){return"function"==typeof t?new Br(this):this.map((function(r){return jn(r,t,e)}))})),Br.prototype.reject=function(t){return this.filter(Ia(ii(t)))},Br.prototype.slice=function(t,e){t=fs(t);var r=this;return r.__filtered__&&(t>0||e<0)?new Br(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),e!==o&&(r=(e=fs(e))<0?r.dropRight(-e):r.take(e-t)),r)},Br.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Br.prototype.toArray=function(){return this.take(h)},vn(Br.prototype,(function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),n=/^(?:head|last)$/.test(e),i=Rr[n?"take"+("last"==e?"Right":""):e],a=n||/^find/.test(e);i&&(Rr.prototype[e]=function(){var e=this.__wrapped__,s=n?[1]:arguments,u=e instanceof Br,c=s[0],l=u||Ua(e),p=function(t){var e=i.apply(Rr,Me([t],s));return n&&f?e[0]:e};l&&r&&"function"==typeof c&&1!=c.length&&(u=l=!1);var f=this.__chain__,h=!!this.__actions__.length,d=a&&!f,m=u&&!h;if(!a&&l){e=m?e:new Br(this);var y=t.apply(e,s);return y.__actions__.push({func:pa,args:[p],thisArg:o}),new Fr(y,f)}
vendor: 3,076 bytes, line 1
1return d&&m?t.apply(this,s):(y=this.thru(p),d?n?y.value()[0]:y.value():y)})})),Se(["pop","push","shift","sort","splice","unshift"],(function(t){var e=At[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);Rr.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var o=this.value();return e.apply(Ua(o)?o:[],t)}return this[r]((function(r){return e.apply(Ua(r)?r:[],t)}))}})),vn(Br.prototype,(function(t,e){var r=Rr[e];if(r){var n=r.name+"";It.call(jr,n)||(jr[n]=[]),jr[n].push({name:e,func:r})}})),jr[zo(o,2).name]=[{name:"wrapper",func:o}],Br.prototype.clone=function(){var t=new Br(this.__wrapped__);return t.__actions__=Po(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Po(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Po(this.__views__),t},Br.prototype.reverse=function(){if(this.__filtered__){var t=new Br(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Br.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,r=Ua(t),n=e<0,o=r?t.length:0,i=function(t,e,r){for(var n=-1,o=r.length;++n<o;){var i=r[n],a=i.size;switch(i.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=mr(e,t+a);break;case"takeRight":t=dr(t,e-a)}}return{start:t,end:e}}(0,o,this.__views__),a=i.start,s=i.end,u=s-a,c=n?s:a-1,l=this.__iteratees__,p=l.length,f=0,h=mr(u,this.__takeCount__);if(!r||!n&&o==u&&h==u)return lo(t,this.__actions__);var d=[];t:for(;u--&&f<h;){for(var m=-1,y=t[c+=e];++m<p;){var v=l[m],g=v.iteratee,b=v.type,_=g(y);if(2==b)y=_;else if(!_){if(1==b)continue t;break t}}d[f++]=y}return d},Rr.prototype.at=fa,Rr.prototype.chain=function(){return la(this)},Rr.prototype.commit=function(){return new Fr(this.value(),this.__chain__)},Rr.prototype.next=function(){this.__values__===o&&(this.__values__=ls(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?o:this.__values__[this.__index__++]}},Rr.prototype.plant=function(t){for(var e,r=this;r instanceof Nr;){var n=zi(r);n.__index__=0,n.__values__=o,e?i.__wrapped__=n:e=n;var i=n;r=r.__wrapped__}return i.__wrapped__=t,e},Rr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Br){var e=t;return this.__actions__.length&&(e=new Br(this)),(e=e.reverse()).__actions__.push({func:pa,args:[Ji],thisArg:o}),new Fr(e,this.__chain__)}return this.thru(Ji)},Rr.prototype.toJSON=Rr.prototype.valueOf=Rr.prototype.value=function(){return lo(this.__wrapped__,this.__actions__)},Rr.prototype.first=Rr.prototype.head,Kt&&(Rr.prototype[Kt]=function(){return this}),Rr}();pe._=fr,(n=function(){return fr}.call(e,r,e,t))===o||(t.exports=n)}.call(this)},66604:(t,e,r)=>{var n=r(89465),o=r(47816),i=r(67206);t.exports=function(t,e){var r={};return e=i(e,3),o(t,(function(t,o,i){n(r,o,e(t,o,i))})),r}},88306:(t,e,r)=>{var n=r(83369);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);
1var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},94885:t=>{t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},8506:(t,e,r)=>{var n=r(1581);t.exports=function(){void 0===this.__values__&&(this.__values__=n(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}}},50308:t=>{t.exports=function(){}},7771:(t,e,r)=>{var n=r(55639);t.exports=function(){return n.Date.now()}},14176:(t,e,r)=>{var n=r(67206),o=r(94885),i=r(35937);t.exports=function(t,e){return i(t,o(n(e)))}},75472:(t,e,r)=>{var n=r(82689),o=r(1469);t.exports=function(t,e,r,i){return null==t?[]:(o(e)||(e=null==e?[]:[e]),o(r=i?void 0:r)||(r=null==r?[]:[r]),n(t,e,r))}},78718:(t,e,r)=>{var n=r(25970),o=r(99021)((function(t,e){return null==t?{}:n(t,e)}));t.exports=o},35937:(t,e,r)=>{var n=r(29932),o=r(67206),i=r(63012),a=r(46904);t.exports=function(t,e){if(null==t)return{};var r=n(a(t),(function(t){return[t]}));return e=o(e),i(t,r,(function(t,r){return e(t,r[0])}))}},99270:(t,e,r)=>{var n=r(9435),o=r(21913);t.exports=function(t){for(var e,r=this;r instanceof n;){var i=o(r);i.__index__=0,i.__values__=void 0,e?a.__wrapped__=i:e=i;var a=i;r=r.__wrapped__}return a.__wrapped__=t,e}},39601:(t,e,r)=>{var n=r(40371),o=r(79152),i=r(15403),a=r(40327);t.exports=function(t){return i(t)?n(a(t)):o(t)}},96026:(t,e,r)=>{var n=r(47445)();t.exports=n},31351:t=>{var e=Array.prototype.reverse;t.exports=function(t){return null==t?t:e.call(t)}},76353:(t,e,r)=>{t.exports={at:r(8192),chain:r(31263),commit:r(49663),lodash:r(8111),next:r(8506),plant:r(99270),reverse:r(38879),tap:r(81962),thru:r(64313),toIterator:r(94827),toJSON:r(16710),value:r(76339),valueOf:r(51574),wrapperChain:r(25177)}},59704:(t,e,r)=>{var n=r(82908),o=r(67206),i=r(5076),a=r(1469),s=r(16612);t.exports=function(t,e,r){var u=a(t)?n:i;return r&&s(t,e,r)&&(e=void 0),u(t,o(e,3))}},97520:(t,e,r)=>{var n=r(93680);t.exports=function(t){return t&&t.length?n(t):[]}},70479:t=>{t.exports=function(){return[]}},95062:t=>{t.exports=function(){return!1}},12297:(t,e,r)=>{var n=r(67762),o=r(6557);t.exports=function(t){return t&&t.length?n(t,o):0}},81962:t=>{t.exports=function(t,e){return e(t),t}},23493:(t,e,r)=>{var n=r(23279),o=r(13218);t.exports=function(t,e,r){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(t,e,{leading:i,maxWait:e,trailing:a})}},64313:t=>{t.exports=function(t,e){return e(t)}},1581:(t,e,r)=>{var n=r(62705),o=r(278),i=r(98882),a=r(98612),s=r(47037),u=r(80059),c=r(68776),l=r(21814),p=r(83140),f=r(52628),h=n?n.iterator:void 0;t.exports=function(t){if(!t)return[];if(a(t))return s(t)?p(t):o(t);if(h&&t[h])return u(t[h]());var e=i(t);return("[object Map]"==e?c:"[object Set]"==e?l:f)(t)}},18601:(t,e,r)=>{var n=r(14841);t.exports=function(t){return t?1/0===(t=n(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},40554:(t,e,r)=>{var n=r(18601);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},94827:t=>{t.exports=function(){return this}},16710:(t,e,r)=>{t.exports=r(76339)},14841:(t,e,r)=>{var n=r(27561),o=r(13218),i=r(33448),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var r=s.test(t);return r||u.test(t)?c(t.slice(2),r?2:8):a.test(t)?NaN:+t}},93220:(t,e,r)=>{var n=r(13866)(r(3674));t.exports=n},79833:(t,e,r)=>{var n=r(80531);t.exports=function(t){return null==t?"":n(t)}},44908:(t,e,r)=>{var n=r(45652);t.exports=function(t){return t&&t.length?n(t):[]}},45578:(t,e,r)=>{var n=r(67206),o=r(45652);t.exports=function(t,e){return t&&t.length?o(t,n(e,2)):[]}},73955:(t,e,r)=>{var n=r(79833),o=0;t.exports=function(t){var e=++o;return n(t)+e}},51574:(t,e,r)=>{t.exports=r(76339)},52628:(t,e,r)=>{var n=r(47415),o=r(3674);t.exports=function(t){return null==t?[]:n(t,o(t))}},82569:(t,e,r)=>{var n=r(20731),o=r(5976),i=r(29246),a=o((function(t,e){return i(t)?n(t,e):[]}));t.exports=a},8192:(t,e,r)=>{var n=r(96425),o=r(7548),i=r(26484),a=r(99021),s=r(65776),u=r(64313),c=a((function(t){var e=t.length,r=e?t[0]:0,a=this.__wrapped__,c=function(e){return i(e,t)};return!(e>1||this.__actions__.length)&&a instanceof n&&s(r)?((a=a.slice(r,+r+(e?1:0))).__actions__.push({func:u,args:[c],thisArg:void 0}),new o(a,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(c)}));t.exports=c},25177:(t,e,r)=>{var n=r(31263);t.exports=function(){return n(this)}},8111:(t,e,r)=>{var n=r(96425),o=r(7548),i=r(9435),a=r(1469),s=r(37005),u=r(21913),c=Object.prototype.hasOwnProperty;function l(t){if(s(t)&&!a(t)&&!(t instanceof n)){if(t instanceof o)return t;if(c.call(t,"__wrapped__"))return u(t)}return new o(t)}l.prototype=i.prototype,l.prototype.constructor=l,t.exports=l},38879:(t,e,r)=>{var n=r(96425),o=r(7548),i=r(31351),a=r(64313);t.exports=function(){var t=this.__wrapped__;if(t instanceof n){var e=t;return this.__actions__.length&&(e=new n(this)),(e=e.reverse()).__actions__.push({func:a,args:[i],thisArg:void 0}),new o(e,this.__chain__)}return this.thru(i)}},76339:(t,e,r)=>{var n=r(78923);t.exports=function(){return n(this.__wrapped__,this.__actions__)}},68565:(t,e)=>{"use strict";
vendor: 5,500 bytes, line 1
1Object.defineProperty(e,"__esModule",{value:!0});class r extends Error{}class n extends r{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class o extends r{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class i extends r{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class a extends r{}class s extends r{constructor(t){super(`Invalid unit ${t}`)}}class u extends r{}class c extends r{constructor(){super("Zone is an abstract class")}}const l="numeric",p="short",f="long",h={year:l,month:l,day:l},d={year:l,month:p,day:l},m={year:l,month:p,day:l,weekday:p},y={year:l,month:f,day:l},v={year:l,month:f,day:l,weekday:f},g={hour:l,minute:l},b={hour:l,minute:l,second:l},_={hour:l,minute:l,second:l,timeZoneName:p},x={hour:l,minute:l,second:l,timeZoneName:f},w={hour:l,minute:l,hourCycle:"h23"},O={hour:l,minute:l,second:l,hourCycle:"h23"},E={hour:l,minute:l,second:l,hourCycle:"h23",timeZoneName:p},S={hour:l,minute:l,second:l,hourCycle:"h23",timeZoneName:f},P={year:l,month:l,day:l,hour:l,minute:l},j={year:l,month:l,day:l,hour:l,minute:l,second:l},A={year:l,month:p,day:l,hour:l,minute:l},C={year:l,month:p,day:l,hour:l,minute:l,second:l},T={year:l,month:p,day:l,weekday:p,hour:l,minute:l},k={year:l,month:f,day:l,hour:l,minute:l,timeZoneName:p},M={year:l,month:f,day:l,hour:l,minute:l,second:l,timeZoneName:p},I={year:l,month:f,day:l,weekday:f,hour:l,minute:l,timeZoneName:f},D={year:l,month:f,day:l,weekday:f,hour:l,minute:l,second:l,timeZoneName:f};class L{get type(){throw new c}get name(){throw new c}get ianaName(){return this.name}get isUniversal(){throw new c}offsetName(t,e){throw new c}formatOffset(t,e){throw new c}offset(t){throw new c}equals(t){throw new c}get isValid(){throw new c}}let R=null;class z extends L{static get instance(){return null===R&&(R=new z),R}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:e,locale:r}){return Ct(t,e,r)}formatOffset(t,e){return It(this.offset(t),e)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return"system"===t.type}get isValid(){return!0}}let N={};const F={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let B={};class V extends L{static create(t){return B[t]||(B[t]=new V(t)),B[t]}static resetCache(){B={},N={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(t){return!1}}constructor(t){super(),this.zoneName=t,this.valid=V.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:e,locale:r}){return Ct(t,e,r,this.name)}formatOffset(t,e){return It(this.offset(t),e)}offset(t){const e=new Date(t);if(isNaN(e))return NaN;const r=(n=this.name,N[n]||(N[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),N[n]);var n;let[o,i,a,s,u,c,l]=r.formatToParts?function(t,e){const r=t.formatToParts(e),n=[];for(let o=0;o<r.length;o++){const{type:t,value:e}=r[o],i=F[t];"era"===t?n[i]=e:pt(i)||(n[i]=parseInt(e,10))}return n}(r,e):function(t,e){const r=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,o,i,a,s,u,c,l]=n;return[a,o,i,s,u,c,l]}(r,e);"BC"===s&&(o=1-Math.abs(o));let p=+e;const f=p%1e3;return p-=f>=0?f:1e3+f,(Pt({year:o,month:i,day:a,hour:24===u?0:u,minute:c,second:l,millisecond:0})-p)/6e4}equals(t){return"iana"===t.type&&t.name===this.name}get isValid(){return this.valid}}let U={},q={};function $(t,e={}){const r=JSON.stringify([t,e]);let n=q[r];return n||(n=new Intl.DateTimeFormat(t,e),q[r]=n),n}let G={},W={},Z=null;function H(t,e,r,n,o){const i=t.listingMode(r);return"error"===i?null:"en"===i?n(e):o(e)}class K{constructor(t,e,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:n,floor:o,...i}=r;if(!e||Object.keys(i).length>0){const e={useGrouping:!1,...r};r.padTo>0&&(e.minimumIntegerDigits=r.padTo),this.inf=function(t,e={}){const r=JSON.stringify([t,e]);let n=G[r];return n||(n=new Intl.NumberFormat(t,e),G[r]=n),n}(t,e)}}format(t){if(this.inf){const e=this.floor?Math.floor(t):t;return this.inf.format(e)}return gt(this.floor?Math.floor(t):wt(t,3),this.padTo)}}class Y{constructor(t,e,r){let n;if(this.opts=r,this.originalZone=void 0,this.opts.timeZone)this.dt=t;else if("fixed"===t.zone.type){const e=t.offset/60*-1,r=e>=0?`Etc/GMT+${e}`:`Etc/GMT${e}`;0!==t.offset&&V.create(r).valid?(n=r,this.dt=t):(n="UTC",this.dt=0===t.offset?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else"system"===t.zone.type?this.dt=t:"iana"===t.zone.type?(this.dt=t,n=t.zone.name):(n="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const o={...this.opts};o.timeZone=o.timeZone||n,this.dtf=$(e,o)}format(){return this.originalZone?this.formatToParts().map((({value:t})=>t)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map((t=>{if("timeZoneName"===t.type){const e=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:e}}return t})):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class X{constructor(t,e,r){this.opts={style:"long",...r},!e&&dt()&&(this.rtf=function(t,e={}){const{base:r,...n}=e,o=JSON.stringify([t,n]);let i=W[o];
vendor: 6,359 bytes, line 1
1return i||(i=new Intl.RelativeTimeFormat(t,e),W[o]=i),i}(t,r))}format(t,e){return this.rtf?this.rtf.format(t,e):function(t,e,r="always",n=!1){const o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===r&&i){const r="days"===t;switch(e){case 1:return r?"tomorrow":`next ${o[t][0]}`;case-1:return r?"yesterday":`last ${o[t][0]}`;case 0:return r?"today":`this ${o[t][0]}`}}const a=Object.is(e,-0)||e<0,s=Math.abs(e),u=1===s,c=o[t],l=n?u?c[1]:c[2]||c[1]:u?o[t][0]:t;return a?`${s} ${l} ago`:`in ${s} ${l}`}(e,t,this.opts.numeric,"long"!==this.opts.style)}formatToParts(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]}}class J{static fromOpts(t){return J.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,e,r,n=!1){const o=t||lt.defaultLocale,i=o||(n?"en-US":Z||(Z=(new Intl.DateTimeFormat).resolvedOptions().locale,Z)),a=e||lt.defaultNumberingSystem,s=r||lt.defaultOutputCalendar;return new J(i,a,s,o)}static resetCache(){Z=null,q={},G={},W={}}static fromObject({locale:t,numberingSystem:e,outputCalendar:r}={}){return J.create(t,e,r)}constructor(t,e,r,n){const[o,i,a]=function(t){const e=t.indexOf("-x-");-1!==e&&(t=t.substring(0,e));const r=t.indexOf("-u-");if(-1===r)return[t];{let e,n;try{e=$(t).resolvedOptions(),n=t}catch(o){const a=t.substring(0,r);e=$(a).resolvedOptions(),n=a}const{numberingSystem:i,calendar:a}=e;return[n,i,a]}}(t);this.locale=o,this.numberingSystem=e||i||null,this.outputCalendar=r||a||null,this.intl=function(t,e,r){return r||e?(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`),t):t}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}get fastNumbers(){var t;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(t=this).numberingSystem||"latn"===t.numberingSystem)&&("latn"===t.numberingSystem||!t.locale||t.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),e=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t&&e?"en":"intl"}clone(t){return t&&0!==Object.getOwnPropertyNames(t).length?J.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,e=!1,r=!0){return H(this,t,r,Nt,(()=>{const r=e?{month:t,day:"numeric"}:{month:t},n=e?"format":"standalone";return this.monthsCache[n][t]||(this.monthsCache[n][t]=function(t){const e=[];for(let r=1;r<=12;r++){const n=Kr.utc(2016,r,1);e.push(t(n))}return e}((t=>this.extract(t,r,"month")))),this.monthsCache[n][t]}))}weekdays(t,e=!1,r=!0){return H(this,t,r,Ut,(()=>{const r=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},n=e?"format":"standalone";return this.weekdaysCache[n][t]||(this.weekdaysCache[n][t]=function(t){const e=[];for(let r=1;r<=7;r++){const n=Kr.utc(2016,11,13+r);e.push(t(n))}return e}((t=>this.extract(t,r,"weekday")))),this.weekdaysCache[n][t]}))}meridiems(t=!0){return H(this,void 0,t,(()=>qt),(()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Kr.utc(2016,11,13,9),Kr.utc(2016,11,13,19)].map((e=>this.extract(e,t,"dayperiod")))}return this.meridiemCache}))}eras(t,e=!0){return H(this,t,e,Zt,(()=>{const e={era:t};return this.eraCache[t]||(this.eraCache[t]=[Kr.utc(-40,1,1),Kr.utc(2017,1,1)].map((t=>this.extract(t,e,"era")))),this.eraCache[t]}))}extract(t,e,r){const n=this.dtFormatter(t,e).formatToParts().find((t=>t.type.toLowerCase()===r));return n?n.value:null}numberFormatter(t={}){return new K(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,e={}){return new Y(t,this.intl,e)}relFormatter(t={}){return new X(this.intl,this.isEnglish(),t)}listFormatter(t={}){return function(t,e={}){const r=JSON.stringify([t,e]);let n=U[r];return n||(n=new Intl.ListFormat(t,e),U[r]=n),n}(this.intl,t)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}let Q=null;class tt extends L{static get utcInstance(){return null===Q&&(Q=new tt(0)),Q}static instance(t){return 0===t?tt.utcInstance:new tt(t)}static parseSpecifier(t){if(t){const e=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new tt(Tt(e[1],e[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${It(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${It(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,e){return It(this.fixed,e)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return"fixed"===t.type&&t.fixed===this.fixed}get isValid(){return!0}}class et extends L{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function rt(t,e){if(pt(t)||null===t)return e;if(t instanceof L)return t;if("string"==typeof t){const r=t.toLowerCase();return"default"===r?e:"local"===r||"system"===r?z.instance:"utc"===r||"gmt"===r?tt.utcInstance:tt.parseSpecifier(r)||V.create(t)}return ft(t)?tt.instance(t):"object"==typeof t&&t.offset&&"number"==typeof t.offset?t:new et(t)}let nt,ot=()=>Date.now(),it="system",at=null,st=null,ut=null,ct=60;class lt{static get now(){return ot}static set now(t){ot=t}static set defaultZone(t){it=t}static get defaultZone(){return rt(it,z.instance)}static get defaultLocale(){return at}static set defaultLocale(t){at=t}static get defaultNumberingSystem(){return st}static set defaultNumberingSystem(t){st=t}
vendor: 4,173 bytes, line 1
1static get defaultOutputCalendar(){return ut}static set defaultOutputCalendar(t){ut=t}static get twoDigitCutoffYear(){return ct}static set twoDigitCutoffYear(t){ct=t%100}static get throwOnInvalid(){return nt}static set throwOnInvalid(t){nt=t}static resetCaches(){J.resetCache(),V.resetCache()}}function pt(t){return void 0===t}function ft(t){return"number"==typeof t}function ht(t){return"number"==typeof t&&t%1==0}function dt(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function mt(t,e,r){if(0!==t.length)return t.reduce(((t,n)=>{const o=[e(n),n];return t&&r(t[0],o[0])===t[0]?t:o}),null)[1]}function yt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function vt(t,e,r){return ht(t)&&t>=e&&t<=r}function gt(t,e=2){let r;return r=t<0?"-"+(""+-t).padStart(e,"0"):(""+t).padStart(e,"0"),r}function bt(t){return pt(t)||null===t||""===t?void 0:parseInt(t,10)}function _t(t){return pt(t)||null===t||""===t?void 0:parseFloat(t)}function xt(t){if(!pt(t)&&null!==t&&""!==t){const e=1e3*parseFloat("0."+t);return Math.floor(e)}}function wt(t,e,r=!1){const n=10**e;return(r?Math.trunc:Math.round)(t*n)/n}function Ot(t){return t%4==0&&(t%100!=0||t%400==0)}function Et(t){return Ot(t)?366:365}function St(t,e){const r=(n=e-1)-12*Math.floor(n/12)+1;var n;return 2===r?Ot(t+(e-r)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function Pt(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function jt(t){const e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,r=t-1,n=(r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400))%7;return 4===e||3===n?53:52}function At(t){return t>99?t:t>lt.twoDigitCutoffYear?1900+t:2e3+t}function Ct(t,e,r,n=null){const o=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);const a={timeZoneName:e,...i},s=new Intl.DateTimeFormat(r,a).formatToParts(o).find((t=>"timezonename"===t.type.toLowerCase()));return s?s.value:null}function Tt(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);const n=parseInt(e,10)||0;return 60*r+(r<0||Object.is(r,-0)?-n:n)}function kt(t){const e=Number(t);if("boolean"==typeof t||""===t||Number.isNaN(e))throw new u(`Invalid unit value ${t}`);return e}function Mt(t,e){const r={};for(const n in t)if(yt(t,n)){const o=t[n];if(null==o)continue;r[e(n)]=kt(o)}return r}function It(t,e){const r=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),o=t>=0?"+":"-";switch(e){case"short":return`${o}${gt(r,2)}:${gt(n,2)}`;case"narrow":return`${o}${r}${n>0?`:${n}`:""}`;case"techie":return`${o}${gt(r,2)}${gt(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Dt(t){return function(t,e){return["hour","minute","second","millisecond"].reduce(((e,r)=>(e[r]=t[r],e)),{})}(t)}const Lt=["January","February","March","April","May","June","July","August","September","October","November","December"],Rt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],zt=["J","F","M","A","M","J","J","A","S","O","N","D"];function Nt(t){switch(t){case"narrow":return[...zt];case"short":return[...Rt];case"long":return[...Lt];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Ft=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Bt=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Vt=["M","T","W","T","F","S","S"];function Ut(t){switch(t){case"narrow":return[...Vt];case"short":return[...Bt];case"long":return[...Ft];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const qt=["AM","PM"],$t=["Before Christ","Anno Domini"],Gt=["BC","AD"],Wt=["B","A"];function Zt(t){switch(t){case"narrow":return[...Wt];case"short":return[...Gt];case"long":return[...$t];default:return null}}function Ht(t,e){let r="";for(const n of t)n.literal?r+=n.val:r+=e(n.val);return r}const Kt={D:h,DD:d,DDD:y,DDDD:v,t:g,tt:b,ttt:_,tttt:x,T:w,TT:O,TTT:E,TTTT:S,f:P,ff:A,fff:k,ffff
vendor: 10,145 bytes, line 1
1:I,F:j,FF:C,FFF:M,FFFF:D};class Yt{static create(t,e={}){return new Yt(t,e)}static parseFormat(t){let e=null,r="",n=!1;const o=[];for(let i=0;i<t.length;i++){const a=t.charAt(i);"'"===a?(r.length>0&&o.push({literal:n||/^\s+$/.test(r),val:r}),e=null,r="",n=!n):n||a===e?r+=a:(r.length>0&&o.push({literal:/^\s+$/.test(r),val:r}),r=a,e=a)}return r.length>0&&o.push({literal:n||/^\s+$/.test(r),val:r}),o}static macroTokenToFormatOpts(t){return Kt[t]}constructor(t,e){this.opts=e,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,e){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...e}).format()}formatDateTime(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e}).format()}formatDateTimeParts(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e}).formatToParts()}formatInterval(t,e={}){return this.loc.dtFormatter(t.start,{...this.opts,...e}).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e}).resolvedOptions()}num(t,e=0){if(this.opts.forceSimple)return gt(t,e);const r={...this.opts};return e>0&&(r.padTo=e),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,e){const r="en"===this.loc.listingMode(),n=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,o=(e,r)=>this.loc.extract(t,e,r),i=e=>t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):"",a=(e,n)=>r?function(t,e){return Nt(e)[t.month-1]}(t,e):o(n?{month:e}:{month:e,day:"numeric"},"month"),s=(e,n)=>r?function(t,e){return Ut(e)[t.weekday-1]}(t,e):o(n?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday"),u=e=>{const r=Yt.macroTokenToFormatOpts(e);return r?this.formatWithSystemDefault(t,r):e},c=e=>r?function(t,e){return Zt(e)[t.year<0?0:1]}(t,e):o({era:e},"era");return Ht(Yt.parseFormat(e),(e=>{switch(e){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12==0?12:t.hour%12);case"hh":return this.num(t.hour%12==0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return r?function(t){return qt[t.hour<12?0:1]}(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return n?o({day:"numeric"},"day"):this.num(t.day);case"dd":return n?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":case"E":return this.num(t.weekday);case"ccc":return s("short",!0);case"cccc":return s("long",!0);case"ccccc":return s("narrow",!0);case"EEE":return s("short",!1);case"EEEE":return s("long",!1);case"EEEEE":return s("narrow",!1);case"L":return n?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return n?o({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return n?o({month:"numeric"},"month"):this.num(t.month);case"MM":return n?o({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return n?o({year:"numeric"},"year"):this.num(t.year);case"yy":return n?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return n?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return n?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return u(e)}}))}formatDurationFromString(t,e){const r=t=>{switch(t[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},n=Yt.parseFormat(e),o=n.reduce(((t,{literal:e,val:r})=>e?t:t.concat(r)),[]);return Ht(n,(t=>e=>{const n=r(e);return n?this.num(t.get(n),e.length):e})(t.shiftTo(...o.map(r).filter((t=>t)))))}}class Xt{constructor(t,e){this.reason=t,this.explanation=e}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Jt=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Qt(...t){const e=t.reduce(((t,e)=>t+e.source),"");return RegExp(`^${e}$`)}function te(...t){return e=>t.reduce((([t,r,n],o)=>{const[i,a,s]=o(e,n);return[{...t,...i},a||r,s]}),[{},null,1]).slice(0,2)}function ee(t,...e){if(null==t)return[null,null];for(const[r,n]of e){const e=r.exec(t);if(e)return n(e)}return[null,null]}function re(...t){return(e,r)=>{const n={};let o;for(o=0;o<t.length;o++)n[t[o]]=bt(e[r+o]);return[n,null,r+o]}}const ne=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,oe=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,ie=RegExp(`${oe.source}(?:${ne.source}?(?:\\[(${Jt.source})\\])?)?`),ae=RegExp(`(?:T${ie.source})?`),se=re("weekYear","weekNumber","weekDay"),ue=re("year","ordinal"),ce=RegExp(`${oe.source} ?(?:${ne.source}|(${Jt.source}))?`),le=RegExp(`(?: ${ce.source})?`);function pe(t,e,r){const n=t[e];return pt(n)?r:bt(n)}function fe(t,e){return[{hours:pe(t,e,0),minutes:pe(t,e+1,0),seconds:pe(t,e+2,0),milliseconds:xt(t[e+3])},null,e+4]}function he(t,e){const r=!t[e]&&!t[e+1],n=Tt(t[e+1],t[e+2]);return[{},r?null:tt.instance(n),e+3]}function de(t,e){return[{},t[e]?V.create(t[e]):null,e+1]}const me=RegExp(`^T?${oe.source}$`),ye=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function ve(t){const[e,r,n,o,i,a,s,u,c]=t,l="-"===e[0],p=u&&"-"===u[0],f=(t,e=!1)=>void 0!==t&&(e||t&&l)?-t:t;return[{years:f(_t(r)),months:f(_t(n)),weeks:f(_t(o)),days:f(_t(i)),hours:f(_t(a)),minutes:f(_t(s)),seconds:f(_t(u),"-0"===u),milliseconds:f(xt(c),p)}]}const ge={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function be(t,e,r,n,o,i,a){const s={year:2===e.length?At(bt(e)):bt(e),month:Rt.indexOf(r)+1,day:bt(n),hour:bt(o),minute:bt(i)};return a&&(s.second=bt(a)),t&&(s.weekday=t.length>3?Ft.indexOf(t)+1:Bt.indexOf(t)+1),s}const _e=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function xe(t){const[,e,r,n,o,i,a,s,u,c,l,p]=t,f=be(e,o,n,r,i,a,s);let h;return h=u?ge[u]:c?0:Tt(l,p),[f,new tt(h)]}const we=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Oe=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Ee=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Se(t){const[,e,r,n,o,i,a,s]=t;return[be(e,o,n,r,i,a,s),tt.utcInstance]}function Pe(t){const[,e,r,n,o,i,a,s]=t;return[be(e,s,r,n,o,i,a),tt.utcInstance]}const je=Qt(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,ae),Ae=Qt(/(\d{4})-?W(\d\d)(?:-?(\d))?/,ae),Ce=Qt(/(\d{4})-?(\d{3})/,ae),Te=Qt(ie),ke=te((function(t,e){return[{year:pe(t,e),month:pe(t,e+1,1),day:pe(t,e+2,1)},null,e+3]}),fe,he,de),Me=te(se,fe,he,de),Ie=te(ue,fe,he,de),De=te(fe,he,de),Le=te(fe),Re=Qt(/(\d{4})-(\d\d)-(\d\d)/,le),ze=Qt(ce),Ne=te(fe,he,de),Fe={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Be={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...Fe},Ve={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...Fe},Ue=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],qe=Ue.slice(0).reverse();function $e(t,e,r=!1){const n={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new We(n)}function Ge(t,e,r,n,o){const i=t[o][r],a=e[r]/i,s=Math.sign(a)!==Math.sign(n[o])&&0!==n[o]&&Math.abs(a)<=1?function(t){return t<0?Math.floor(t):Math.ceil(t)}(a):Math.trunc(a);n[o]+=s,e[r]-=s*i}class We{constructor(t){const e="longterm"===t.conversionAccuracy||!1;let r=e?Ve:Be;t.matrix&&(r=t.matrix),this.values=t.values,this.loc=t.loc||J.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invali
vendor: 6,314 bytes, line 1
1d||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(t,e){return We.fromObject({milliseconds:t},e)}static fromObject(t,e={}){if(null==t||"object"!=typeof t)throw new u("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new We({values:Mt(t,We.normalizeUnit),loc:J.fromObject(e),conversionAccuracy:e.conversionAccuracy,matrix:e.matrix})}static fromDurationLike(t){if(ft(t))return We.fromMillis(t);if(We.isDuration(t))return t;if("object"==typeof t)return We.fromObject(t);throw new u(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,e){const[r]=function(t){return ee(t,[ye,ve])}(t);return r?We.fromObject(r,e):We.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,e){const[r]=function(t){return ee(t,[me,Le])}(t);return r?We.fromObject(r,e):We.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,e=null){if(!t)throw new u("need to specify a reason the Duration is invalid");const r=t instanceof Xt?t:new Xt(t,e);if(lt.throwOnInvalid)throw new i(r);return new We({invalid:r})}static normalizeUnit(t){const e={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t?t.toLowerCase():t];if(!e)throw new s(t);return e}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,e={}){const r={...e,floor:!1!==e.round&&!1!==e.floor};return this.isValid?Yt.create(this.loc,r).formatDurationFromString(this,t):"Invalid Duration"}toHuman(t={}){const e=Ue.map((e=>{const r=this.values[e];return pt(r)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:e.slice(0,-1)}).format(r)})).filter((t=>t));return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(e)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=wt(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const e=this.toMillis();if(e<0||e>=864e5)return null;t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t};const r=this.shiftTo("hours","minutes","seconds","milliseconds");let n="basic"===t.format?"hhmm":"hh:mm";t.suppressSeconds&&0===r.seconds&&0===r.milliseconds||(n+="basic"===t.format?"ss":":ss",t.suppressMilliseconds&&0===r.milliseconds||(n+=".SSS"));let o=r.toFormat(n);return t.includePrefix&&(o="T"+o),o}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const e=We.fromDurationLike(t),r={};for(const n of Ue)(yt(e.values,n)||yt(this.values,n))&&(r[n]=e.get(n)+this.get(n));return $e(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const e=We.fromDurationLike(t);return this.plus(e.negate())}mapUnits(t){if(!this.isValid)return this;const e={};for(const r of Object.keys(this.values))e[r]=kt(t(this.values[r],r));return $e(this,{values:e},!0)}get(t){return this[We.normalizeUnit(t)]}set(t){return this.isValid?$e(this,{values:{...this.values,...Mt(t,We.normalizeUnit)}}):this}reconfigure({locale:t,numberingSystem:e,conversionAccuracy:r,matrix:n}={}){return $e(this,{loc:this.loc.clone({locale:t,numberingSystem:e}),matrix:n,conversionAccuracy:r})}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return function(t,e){qe.reduce(((r,n)=>pt(e[n])?r:(r&&Ge(t,e,r,e,n),n)),null)}(this.matrix,t),$e(this,{values:t},!0)}rescale(){return this.isValid?$e(this,{values:function(t){const e={};for(const[r,n]of Object.entries(t))0!==n&&(e[r]=n);return e}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...t){if(!this.isValid)return this;if(0===t.length)return this;t=t.map((t=>We.normalizeUnit(t)));const e={},r={},n=this.toObject();let o;for(const i of Ue)if(t.indexOf(i)>=0){o=i;let t=0;for(const e in r)t+=this.matrix[e][i]*r[e],r[e]=0;ft(n[i])&&(t+=n[i]);const a=Math.trunc(t);e[i]=a,r[i]=(1e3*t-1e3*a)/1e3;for(const r in n)Ue.indexOf(r)>Ue.indexOf(i)&&Ge(this.matrix,n,r,e,i)}else ft(n[i])&&(r[i]=n[i]);for(const i in r)0!==r[i]&&(e[o]+=i===o?r[i]:r[i]/this.matrix[o][i]);return $e(this,{values:e},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const e of Object.keys(this.values))t[e]=0===this.values[e]?0:-this.values[e];return $e(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid)return!1;if(!this.loc.equals(t.loc))return!1;for(const n of Ue)if(e=this.values[n],r=t.values[n],!(void 0===e||0===e?void 0===r||0===r:e===r))return!1;var e,r;return!0}}const Ze="Invalid Interval";class He{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invali
vendor: 4,436 bytes, line 1
1d||null,this.isLuxonInterval=!0}static invalid(t,e=null){if(!t)throw new u("need to specify a reason the Interval is invalid");const r=t instanceof Xt?t:new Xt(t,e);if(lt.throwOnInvalid)throw new o(r);return new He({invalid:r})}static fromDateTimes(t,e){const r=Yr(t),n=Yr(e),o=function(t,e){return t&&t.isValid?e&&e.isValid?e<t?He.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null:He.invalid("missing or invalid end"):He.invalid("missing or invalid start")}(r,n);return null==o?new He({start:r,end:n}):o}static after(t,e){const r=We.fromDurationLike(e),n=Yr(t);return He.fromDateTimes(n,n.plus(r))}static before(t,e){const r=We.fromDurationLike(e),n=Yr(t);return He.fromDateTimes(n.minus(r),n)}static fromISO(t,e){const[r,n]=(t||"").split("/",2);if(r&&n){let t,o,i,a;try{t=Kr.fromISO(r,e),o=t.isValid}catch(n){o=!1}try{i=Kr.fromISO(n,e),a=i.isValid}catch(n){a=!1}if(o&&a)return He.fromDateTimes(t,i);if(o){const r=We.fromISO(n,e);if(r.isValid)return He.after(t,r)}else if(a){const t=We.fromISO(r,e);if(t.isValid)return He.before(i,t)}}return He.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;const e=this.start.startOf(t),r=this.end.startOf(t);return Math.floor(r.diff(e,t).get(t))+(r.valueOf()!==this.end.valueOf())}hasSame(t){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,t))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return!!this.isValid&&this.s>t}isBefore(t){return!!this.isValid&&this.e<=t}contains(t){return!!this.isValid&&this.s<=t&&this.e>t}set({start:t,end:e}={}){return this.isValid?He.fromDateTimes(t||this.s,e||this.e):this}splitAt(...t){if(!this.isValid)return[];const e=t.map(Yr).filter((t=>this.contains(t))).sort(),r=[];let{s:n}=this,o=0;for(;n<this.e;){const t=e[o]||this.e,i=+t>+this.e?this.e:t;r.push(He.fromDateTimes(n,i)),n=i,o+=1}return r}splitBy(t){const e=We.fromDurationLike(t);if(!this.isValid||!e.isValid||0===e.as("milliseconds"))return[];let r,{s:n}=this,o=1;const i=[];for(;n<this.e;){const t=this.start.plus(e.mapUnits((t=>t*o)));r=+t>+this.e?this.e:t,i.push(He.fromDateTimes(n,r)),n=r,o+=1}return i}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return!!this.isValid&&+this.e==+t.s}abutsEnd(t){return!!this.isValid&&+t.e==+this.s}engulfs(t){return!!this.isValid&&this.s<=t.s&&this.e>=t.e}equals(t){return!(!this.isValid||!t.isValid)&&this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const e=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return e>=r?null:He.fromDateTimes(e,r)}union(t){if(!this.isValid)return this;const e=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return He.fromDateTimes(e,r)}static merge(t){const[e,r]=t.sort(((t,e)=>t.s-e.s)).reduce((([t,e],r)=>e?e.overlaps(r)||e.abutsStart(r)?[t,e.union(r)]:[t.concat([e]),r]:[t,r]),[[],null]);return r&&e.push(r),e}static xor(t){let e=null,r=0;const n=[],o=t.map((t=>[{time:t.s,type:"s"},{time:t.e,type:"e"}])),i=Array.prototype.concat(...o).sort(((t,e)=>t.time-e.time));for(const a of i)r+="s"===a.type?1:-1,1===r?e=a.time:(e&&+e!=+a.time&&n.push(He.fromDateTimes(e,a.time)),e=null);return He.merge(n)}difference(...t){return He.xor([this].concat(t)).map((t=>this.intersection(t))).filter((t=>t&&!t.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:Ze}toLocaleString(t=h,e={}){return this.isValid?Yt.create(this.s.loc.clone(e),t).formatInterval(this):Ze}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Ze}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Ze}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Ze}toFormat(t,{separator:e=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${e}${this.e.toFormat(t)}`:Ze}toDuration(t,e){return this.isValid?this.e.diff(this.s,t,e):We.invali
vendor: 5,253 bytes, line 1
1d(this.invalidReason)}mapEndpoints(t){return He.fromDateTimes(t(this.s),t(this.e))}}class Ke{static hasDST(t=lt.defaultZone){const e=Kr.now().setZone(t).set({month:12});return!t.isUniversal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(t){return V.isValidZone(t)}static normalizeZone(t){return rt(t,lt.defaultZone)}static months(t="long",{locale:e=null,numberingSystem:r=null,locObj:n=null,outputCalendar:o="gregory"}={}){return(n||J.create(e,r,o)).months(t)}static monthsFormat(t="long",{locale:e=null,numberingSystem:r=null,locObj:n=null,outputCalendar:o="gregory"}={}){return(n||J.create(e,r,o)).months(t,!0)}static weekdays(t="long",{locale:e=null,numberingSystem:r=null,locObj:n=null}={}){return(n||J.create(e,r,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:e=null,numberingSystem:r=null,locObj:n=null}={}){return(n||J.create(e,r,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return J.create(t).meridiems()}static eras(t="short",{locale:e=null}={}){return J.create(e,null,"gregory").eras(t)}static features(){return{relative:dt()}}}function Ye(t,e){const r=t=>t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(e)-r(t);return Math.floor(We.fromMillis(n).as("days"))}const Xe={arab:"[\u0660-\u0669]",arabext:"[\u06f0-\u06f9]",bali:"[\u1b50-\u1b59]",beng:"[\u09e6-\u09ef]",deva:"[\u0966-\u096f]",fullwide:"[\uff10-\uff19]",gujr:"[\u0ae6-\u0aef]",hanidec:"[\u3007|\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d]",khmr:"[\u17e0-\u17e9]",knda:"[\u0ce6-\u0cef]",laoo:"[\u0ed0-\u0ed9]",limb:"[\u1946-\u194f]",mlym:"[\u0d66-\u0d6f]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0b66-\u0b6f]",tamldec:"[\u0be6-\u0bef]",telu:"[\u0c66-\u0c6f]",thai:"[\u0e50-\u0e59]",tibt:"[\u0f20-\u0f29]",latn:"\\d"},Je={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Qe=Xe.hanidec.replace(/[\[|\]]/g,"").split("");function tr({numberingSystem:t},e=""){return new RegExp(`${Xe[t||"latn"]}${e}`)}function er(t,e=(t=>t)){return{regex:t,deser:([t])=>e(function(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r<t.length;r++){const n=t.charCodeAt(r);if(-1!==t[r].search(Xe.hanidec))e+=Qe.indexOf(t[r]);else for(const t in Je){const[r,o]=Je[t];n>=r&&n<=o&&(e+=n-r)}}return parseInt(e,10)}return e}(t))}}const rr=`[ ${String.fromCharCode(160)}]`,nr=new RegExp(rr,"g");function or(t){return t.replace(/\./g,"\\.?").replace(nr,rr)}function ir(t){return t.replace(/\./g,"").replace(nr," ").toLowerCase()}function ar(t,e){return null===t?null:{regex:RegExp(t.map(or).join("|")),deser:([r])=>t.findIndex((t=>ir(r)===ir(t)))+e}}function sr(t,e){return{regex:t,deser:([,t,e])=>Tt(t,e),groups:e}}function ur(t){return{regex:t,deser:([t])=>t}}const cr={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let lr=null;function pr(t,e){return Array.prototype.concat(...t.map((t=>function(t,e){if(t.literal)return t;const r=hr(Yt.macroTokenToFormatOpts(t.val),e);return null==r||r.includes(void 0)?t:r}(t,e))))}function fr(t,e,r){const n=pr(Yt.parseFormat(r),t),o=n.map((e=>function(t,e){const r=tr(e),n=tr(e,"{2}"),o=tr(e,"{3}"),i=tr(e,"{4}"),a=tr(e,"{6}"),s=tr(e,"{1,2}"),u=tr(e,"{1,3}"),c=tr(e,"{1,6}"),l=tr(e,"{1,9}"),p=tr(e,"{2,4}"),f=tr(e,"{4,6}"),h=t=>{return{regex:RegExp((e=t.val,e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([t])=>t,literal:!0};var e},d=(d=>{if(t.literal)return h(d);switch(d.val){case"G":return ar(e.eras("short",!1),0);case"GG":return ar(e.eras("long",!1),0);case"y":return er(c);case"yy":case"kk":return er(p,At);case"yyyy":case"kkkk":return er(i);case"yyyyy":return er(f);case"yyyyyy":return er(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return er(s);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return er(n);case"MMM":return ar(e.months("short",!0,!1),1);case"MMMM":return ar(e.months("long",!0,!1),1);case"LLL":return ar(e.months("short",!1,!1),1);case"LLLL":return ar(e.months("long",!1,!1),1);case"o":case"S":return er(u);case"ooo":case"SSS":return er(o);case"u":return ur(l);case"uu":return ur(s);case"uuu":case"E":case"c":return er(r);case"a":return ar(e.meridiems(),0);case"EEE":return ar(e.weekdays("short",!1,!1),1);case"EEEE":return ar(e.weekdays("long",!1,!1),1);case"ccc":return ar(e.weekdays("short",!0,!1),1);case"cccc":return ar(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return sr(new RegExp(`([+-]${s.source})(?::(${n.source}))?`),2);case"ZZZ":return sr(new RegExp(`([+-]${s.source})(${n.source})?`),2);case"z":return ur(/[a-z_+-/]{1,256}?/i);case" ":return ur(/[^\S\n\r]/);default:return h(d)}})(t)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return d.token=t,d}(e,t))),i=o.find((t=>
vendor: 4,637 bytes, line 1
1t.invalidReason));if(i)return{input:e,tokens:n,invalidReason:i.invalidReason};{const[t,r]=function(t){return[`^${t.map((t=>t.regex)).reduce(((t,e)=>`${t}(${e.source})`),"")}$`,t]}(o),i=RegExp(t,"i"),[s,u]=function(t,e,r){const n=t.match(e);if(n){const t={};let e=1;for(const o in r)if(yt(r,o)){const i=r[o],a=i.groups?i.groups+1:1;!i.literal&&i.token&&(t[i.token.val[0]]=i.deser(n.slice(e,e+a))),e+=a}return[n,t]}return[n,{}]}(e,i,r),[c,l,p]=u?function(t){let e,r=null;return pt(t.z)||(r=V.create(t.z)),pt(t.Z)||(r||(r=new tt(t.Z)),e=t.Z),pt(t.q)||(t.M=3*(t.q-1)+1),pt(t.h)||(t.h<12&&1===t.a?t.h+=12:12===t.h&&0===t.a&&(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),pt(t.u)||(t.S=xt(t.u)),[Object.keys(t).reduce(((e,r)=>{const n=(t=>{switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(r);return n&&(e[n]=t[r]),e}),{}),r,e]}(u):[null,null,void 0];if(yt(u,"a")&&yt(u,"H"))throw new a("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:n,regex:i,rawMatches:s,matches:u,result:c,zone:l,specificOffset:p}}}function hr(t,e){return t?Yt.create(e,t).formatDateTimeParts((lr||(lr=Kr.fromMillis(1555555555555)),lr)).map((e=>function(t,e){const{type:r,value:n}=t;if("literal"===r){const t=/^\s+$/.test(n);return{literal:!t,val:t?" ":n}}const o=e[r];let i=cr[r];if("object"==typeof i&&(i=i[o]),i)return{literal:!1,val:i}}(e,t))):null}const dr=[0,31,59,90,120,151,181,212,243,273,304,334],mr=[0,31,60,91,121,152,182,213,244,274,305,335];function yr(t,e){return new Xt("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function vr(t,e,r){const n=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const o=n.getUTCDay();return 0===o?7:o}function gr(t,e,r){return r+(Ot(t)?mr:dr)[e-1]}function br(t,e){const r=Ot(t)?mr:dr,n=r.findIndex((t=>t<e));return{month:n+1,day:e-r[n]}}function _r(t){const{year:e,month:r,day:n}=t,o=gr(e,r,n),i=vr(e,r,n);let a,s=Math.floor((o-i+10)/7);return s<1?(a=e-1,s=jt(a)):s>jt(e)?(a=e+1,s=1):a=e,{weekYear:a,weekNumber:s,weekday:i,...Dt(t)}}function xr(t){const{weekYear:e,weekNumber:r,weekday:n}=t,o=vr(e,1,4),i=Et(e);let a,s=7*r+n-o-3;s<1?(a=e-1,s+=Et(a)):s>i?(a=e+1,s-=Et(e)):a=e;const{month:u,day:c}=br(a,s);return{year:a,month:u,day:c,...Dt(t)}}function wr(t){const{year:e,month:r,day:n}=t;return{year:e,ordinal:gr(e,r,n),...Dt(t)}}function Or(t){const{year:e,ordinal:r}=t,{month:n,day:o}=br(e,r);return{year:e,month:n,day:o,...Dt(t)}}function Er(t){const e=ht(t.year),r=vt(t.month,1,12),n=vt(t.day,1,St(t.year,t.month));return e?r?!n&&yr("day",t.day):yr("month",t.month):yr("year",t.year)}function Sr(t){const{hour:e,minute:r,second:n,millisecond:o}=t,i=vt(e,0,23)||24===e&&0===r&&0===n&&0===o,a=vt(r,0,59),s=vt(n,0,59),u=vt(o,0,999);return i?a?s?!u&&yr("millisecond",o):yr("second",n):yr("minute",r):yr("hour",e)}const Pr="Invalid DateTime",jr=864e13;function Ar(t){return new Xt("unsupported zone",`the zone "${t.name}" is not supported`)}function Cr(t){return null===t.weekData&&(t.weekData=_r(t.c)),t.weekData}function Tr(t,e){const r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Kr({...r,...e,old:r})}function kr(t,e,r){let n=t-60*e*1e3;const o=r.offset(n);if(e===o)return[n,e];n-=60*(o-e)*1e3;const i=r.offset(n);return o===i?[n,o]:[t-60*Math.min(o,i)*1e3,Math.max(o,i)]}function Mr(t,e){const r=new Date(t+=60*e*1e3);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function Ir(t,e,r){return kr(Pt(t),e,r)}function Dr(t,e){const r=t.o,n=t.c.year+Math.trunc(e.years),o=t.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),i={...t.c,year:n,month:o,day:Math.min(t.c.day,St(n,o))+Math.trunc(e.days)+7*Math.trunc(e.weeks)},a=We.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),s=Pt(i);let[u,c]=kr(s,r,t.zone);return 0!==a&&(u+=a,c=t.zone.offset(u)),{ts:u,o:c}}function Lr(t,e,r,n,o,i){const{setZone:a,zone:s}=r;if(t&&0!==Object.keys(t).length||e){const n=e||s,o=Kr.fromObject(t,{...r,zone:n,specificOffset:i});return a?o:o.setZone(s)}
vendor: 4,149 bytes, line 1
1return Kr.invalid(new Xt("unparsable",`the input "${o}" can't be parsed as ${n}`))}function Rr(t,e,r=!0){return t.isValid?Yt.create(J.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function zr(t,e){const r=t.c.year>9999||t.c.year<0;let n="";return r&&t.c.year>=0&&(n+="+"),n+=gt(t.c.year,r?6:4),e?(n+="-",n+=gt(t.c.month),n+="-",n+=gt(t.c.day)):(n+=gt(t.c.month),n+=gt(t.c.day)),n}function Nr(t,e,r,n,o,i){let a=gt(t.c.hour);return e?(a+=":",a+=gt(t.c.minute),0===t.c.second&&r||(a+=":")):a+=gt(t.c.minute),0===t.c.second&&r||(a+=gt(t.c.second),0===t.c.millisecond&&n||(a+=".",a+=gt(t.c.millisecond,3))),o&&(t.isOffsetFixed&&0===t.offset&&!i?a+="Z":t.o<0?(a+="-",a+=gt(Math.trunc(-t.o/60)),a+=":",a+=gt(Math.trunc(-t.o%60))):(a+="+",a+=gt(Math.trunc(t.o/60)),a+=":",a+=gt(Math.trunc(t.o%60)))),i&&(a+="["+t.zone.ianaName+"]"),a}const Fr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Br={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Vr={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Ur=["year","month","day","hour","minute","second","millisecond"],qr=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],$r=["year","ordinal","hour","minute","second","millisecond"];function Gr(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new s(t);return e}function Wr(t,e){const r=rt(e.zone,lt.defaultZone),n=J.fromObject(e),o=lt.now();let i,a;if(pt(t.year))i=o;else{for(const r of Ur)pt(t[r])&&(t[r]=Fr[r]);const e=Er(t)||Sr(t);if(e)return Kr.invalid(e);const n=r.offset(o);[i,a]=Ir(t,n,r)}return new Kr({ts:i,zone:r,loc:n,o:a})}function Zr(t,e,r){const n=!!pt(r.round)||r.round,o=(t,o)=>(t=wt(t,n||r.calendary?0:2,!0),e.loc.clone(r).relFormatter(r).format(t,o)),i=n=>r.calendary?e.hasSame(t,n)?0:e.startOf(n).diff(t.startOf(n),n).get(n):e.diff(t,n).get(n);if(r.unit)return o(i(r.unit),r.unit);for(const a of r.units){const t=i(a);if(Math.abs(t)>=1)return o(t,a)}return o(t>e?-0:0,r.units[r.units.length-1])}function Hr(t){let e,r={};return t.length>0&&"object"==typeof t[t.length-1]?(r=t[t.length-1],e=Array.from(t).slice(0,t.length-1)):e=Array.from(t),[r,e]}class Kr{constructor(t){const e=t.zone||lt.defaultZone;let r=t.invalid||(Number.isNaN(t.ts)?new Xt("invalid input"):null)||(e.isValid?null:Ar(e));this.ts=pt(t.ts)?lt.now():t.ts;let n=null,o=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e))[n,o]=[t.old.c,t.old.o];else{const t=e.offset(this.ts);n=Mr(this.ts,t),r=Number.isNaN(n.year)?new Xt("invalid input"):null,n=r?null:n,o=r?null:t}this._zone=e,this.loc=t.loc||J.create(),this.invalid=r,this.weekData=null,this.c=n,this.o=o,this.isLuxonDateTime=!0}static now(){return new Kr({})}static local(){const[t,e]=Hr(arguments),[r,n,o,i,a,s,u]=e;return Wr({year:r,month:n,day:o,hour:i,minute:a,second:s,millisecond:u},t)}static utc(){const[t,e]=Hr(arguments),[r,n,o,i,a,s,u]=e;return t.zone=tt.utcInstance,Wr({year:r,month:n,day:o,hour:i,minute:a,second:s,millisecond:u},t)}static fromJSDate(t,e={}){const r=(n=t,"[object Date]"===Object.prototype.toString.call(n)?t.valueOf():NaN);var n;if(Number.isNaN(r))return Kr.invalid("invalid input");const o=rt(e.zone,lt.defaultZone);return o.isValid?new Kr({ts:r,zone:o,loc:J.fromObject(e)}):Kr.invalid(Ar(o))}static fromMillis(t,e={}){if(ft(t))return t<-jr||t>jr?Kr.invalid("Timestamp out of range"):new Kr({ts:t,zone:rt(e.zone,lt.defaultZone),loc:J.fromObject(e)});throw new u(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,e={}){if(ft(t))return new Kr({ts:1e3*t,zone:rt(e.zone,lt.defaultZone),loc:J.fromObject(e)});throw new u("fromSeconds requires a numerical input")}static fromObject(t,e={}){t=t||{};const r=rt(e.zone,lt.defaultZone);
vendor: 2,886 bytes, line 1
1if(!r.isValid)return Kr.invalid(Ar(r));const n=lt.now(),o=pt(e.specificOffset)?r.offset(n):e.specificOffset,i=Mt(t,Gr),s=!pt(i.ordinal),u=!pt(i.year),c=!pt(i.month)||!pt(i.day),l=u||c,p=i.weekYear||i.weekNumber,f=J.fromObject(e);if((l||s)&&p)throw new a("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&s)throw new a("Can't mix ordinal dates with month/day");const h=p||i.weekday&&!l;let d,m,y=Mr(n,o);h?(d=qr,m=Br,y=_r(y)):s?(d=$r,m=Vr,y=wr(y)):(d=Ur,m=Fr);let v=!1;for(const a of d)pt(i[a])?i[a]=v?m[a]:y[a]:v=!0;const g=h?function(t){const e=ht(t.weekYear),r=vt(t.weekNumber,1,jt(t.weekYear)),n=vt(t.weekday,1,7);return e?r?!n&&yr("weekday",t.weekday):yr("week",t.week):yr("weekYear",t.weekYear)}(i):s?function(t){const e=ht(t.year),r=vt(t.ordinal,1,Et(t.year));return e?!r&&yr("ordinal",t.ordinal):yr("year",t.year)}(i):Er(i),b=g||Sr(i);if(b)return Kr.invalid(b);const _=h?xr(i):s?Or(i):i,[x,w]=Ir(_,o,r),O=new Kr({ts:x,zone:r,o:w,loc:f});return i.weekday&&l&&t.weekday!==O.weekday?Kr.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${O.toISO()}`):O}static fromISO(t,e={}){const[r,n]=function(t){return ee(t,[je,ke],[Ae,Me],[Ce,Ie],[Te,De])}(t);return Lr(r,n,e,"ISO 8601",t)}static fromRFC2822(t,e={}){const[r,n]=function(t){return ee(function(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t),[_e,xe])}(t);return Lr(r,n,e,"RFC 2822",t)}static fromHTTP(t,e={}){const[r,n]=function(t){return ee(t,[we,Se],[Oe,Se],[Ee,Pe])}(t);return Lr(r,n,e,"HTTP",e)}static fromFormat(t,e,r={}){if(pt(t)||pt(e))throw new u("fromFormat requires an input string and a format");const{locale:n=null,numberingSystem:o=null}=r,i=J.fromOpts({locale:n,numberingSystem:o,defaultToEN:!0}),[a,s,c,l]=function(t,e,r){const{result:n,zone:o,specificOffset:i,invalidReason:a}=fr(t,e,r);return[n,o,i,a]}(i,t,e);return l?Kr.invalid(l):Lr(a,s,r,`format ${e}`,t,c)}static fromString(t,e,r={}){return Kr.fromFormat(t,e,r)}static fromSQL(t,e={}){const[r,n]=function(t){return ee(t,[Re,ke],[ze,Ne])}(t);return Lr(r,n,e,"SQL",t)}static invalid(t,e=null){if(!t)throw new u("need to specify a reason the DateTime is invalid");const r=t instanceof Xt?t:new Xt(t,e);if(lt.throwOnInvalid)throw new n(r);return new Kr({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,e={}){const r=hr(t,J.fromObject(e));return r?r.map((t=>t?t.val:null)).join(""):null}static expandFormat(t,e={}){return pr(Yt.parseFormat(t),J.fromObject(e)).map((t=>t.val)).join("")}get(t){return this[t]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}
vendor: 4,429 bytes, line 1
1get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Cr(this).weekYear:NaN}get weekNumber(){return this.isValid?Cr(this).weekNumber:NaN}get weekday(){return this.isValid?Cr(this).weekday:NaN}get ordinal(){return this.isValid?wr(this.c).ordinal:NaN}get monthShort(){return this.isValid?Ke.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Ke.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Ke.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Ke.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}get isInLeapYear(){return Ot(this.year)}get daysInMonth(){return St(this.year,this.month)}get daysInYear(){return this.isValid?Et(this.year):NaN}get weeksInWeekYear(){return this.isValid?jt(this.weekYear):NaN}resolvedLocaleOptions(t={}){const{locale:e,numberingSystem:r,calendar:n}=Yt.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e,numberingSystem:r,outputCalendar:n}}toUTC(t=0,e={}){return this.setZone(tt.instance(t),e)}toLocal(){return this.setZone(lt.defaultZone)}setZone(t,{keepLocalTime:e=!1,keepCalendarTime:r=!1}={}){if((t=rt(t,lt.defaultZone)).equals(this.zone))return this;if(t.isValid){let n=this.ts;if(e||r){const e=t.offset(this.ts),r=this.toObject();[n]=Ir(r,e,t)}return Tr(this,{ts:n,zone:t})}return Kr.invalid(Ar(t))}reconfigure({locale:t,numberingSystem:e,outputCalendar:r}={}){return Tr(this,{loc:this.loc.clone({locale:t,numberingSystem:e,outputCalendar:r})})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const e=Mt(t,Gr),r=!pt(e.weekYear)||!pt(e.weekNumber)||!pt(e.weekday),n=!pt(e.ordinal),o=!pt(e.year),i=!pt(e.month)||!pt(e.day),s=o||i,u=e.weekYear||e.weekNumber;if((s||n)&&u)throw new a("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(i&&n)throw new a("Can't mix ordinal dates with month/day");let c;r?c=xr({..._r(this.c),...e}):pt(e.ordinal)?(c={...this.toObject(),...e},pt(e.day)&&(c.day=Math.min(St(c.year,c.month),c.day))):c=Or({...wr(this.c),...e});const[l,p]=Ir(c,this.o,this.zone);return Tr(this,{ts:l,o:p})}plus(t){return this.isValid?Tr(this,Dr(this,We.fromDurationLike(t))):this}minus(t){return this.isValid?Tr(this,Dr(this,We.fromDurationLike(t).negate())):this}startOf(t){if(!this.isValid)return this;const e={},r=We.normalizeUnit(t);switch(r){case"years":e.month=1;case"quarters":case"months":e.day=1;case"weeks":case"days":e.hour=0;case"hours":e.minute=0;case"minutes":e.second=0;case"seconds":e.millisecond=0}if("weeks"===r&&(e.weekday=1),"quarters"===r){const t=Math.ceil(this.month/3);e.month=3*(t-1)+1}return this.set(e)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,e={}){return this.isValid?Yt.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):Pr}toLocaleString(t=h,e={}){return this.isValid?Yt.create(this.loc.clone(e),t).formatDateTime(this):Pr}toLocaleParts(t={}){return this.isValid?Yt.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:e=!1,suppressMilliseconds:r=!1,includeOffset:n=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;const i="extended"===t;let a=zr(this,i);return a+="T",a+=Nr(this,i,e,r,n,o),a}toISODate({format:t="extended"}={}){return this.isValid?zr(this,"extended"===t):null}toISOWeekDate(){return Rr(this,"kkkk-'W'WW-c")}
1toISOTime({suppressMilliseconds:t=!1,suppressSeconds:e=!1,includeOffset:r=!0,includePrefix:n=!1,extendedZone:o=!1,format:i="extended"}={}){return this.isValid?(n?"T":"")+Nr(this,"extended"===i,e,t,r,o):null}toRFC2822(){return Rr(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Rr(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?zr(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:e=!1,includeOffsetSpace:r=!0}={}){let n="HH:mm:ss.SSS";return(e||t)&&(r&&(n+=" "),e?n+="z":t&&(n+="ZZ")),Rr(this,n,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Pr}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const e={...this.c};return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,e="milliseconds",r={}){if(!this.isValid||!t.isValid)return We.invalid("created by diffing an invalid DateTime");const n={locale:this.locale,numberingSystem:this.numberingSystem,...r},o=(s=e,Array.isArray(s)?s:[s]).map(We.normalizeUnit),i=t.valueOf()>this.valueOf(),a=function(t,e,r,n){let[o,i,a,s]=function(t,e,r){const n=[["years",(t,e)=>e.year-t.year],["quarters",(t,e)=>e.quarter-t.quarter+4*(e.year-t.year)],["months",(t,e)=>e.month-t.month+12*(e.year-t.year)],["weeks",(t,e)=>{const r=Ye(t,e);return(r-r%7)/7}],["days",Ye]],o={},i=t;let a,s;for(const[u,c]of n)r.indexOf(u)>=0&&(a=u,o[u]=c(t,e),s=i.plus(o),s>e?(o[u]--,t=i.plus(o)):t=s);return[t,o,s,a]}(t,e,r);const u=e-o,c=r.filter((t=>["hours","minutes","seconds","milliseconds"].indexOf(t)>=0));0===c.length&&(a<e&&(a=o.plus({[s]:1})),a!==o&&(i[s]=(i[s]||0)+u/(a-o)));const l=We.fromObject(i,n);return c.length>0?We.fromMillis(u,n).shiftTo(...c).plus(l):l}(i?this:t,i?t:this,o,n);var s;return i?a.negate():a}diffNow(t="milliseconds",e={}){return this.diff(Kr.now(),t,e)}until(t){return this.isValid?He.fromDateTimes(this,t):this}hasSame(t,e){if(!this.isValid)return!1;const r=t.valueOf(),n=this.setZone(t.zone,{keepLocalTime:!0});return n.startOf(e)<=r&&r<=n.endOf(e)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const e=t.base||Kr.fromObject({},{zone:this.zone}),r=t.padding?this<e?-t.padding:t.padding:0;let n=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(n=t.unit,o=void 0),Zr(e,this.plus(r),{...t,numeric:"always",units:n,unit:o})}toRelativeCalendar(t={}){return this.isValid?Zr(t.base||Kr.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(Kr.isDateTime))throw new u("min requires all arguments be DateTimes");return mt(t,(t=>t.valueOf()),Math.min)}static max(...t){if(!t.every(Kr.isDateTime))throw new u("max requires all arguments be DateTimes");return mt(t,(t=>t.valueOf()),Math.max)}static fromFormatExplain(t,e,r={}){const{locale:n=null,numberingSystem:o=null}=r;return fr(J.fromOpts({locale:n,numberingSystem:o,defaultToEN:!0}),t,e)}static fromStringExplain(t,e,r={}){return Kr.fromFormatExplain(t,e,r)}static get DATE_SHORT(){return h}static get DATE_MED(){return d}static get DATE_MED_WITH_WEEKDAY(){return m}static get DATE_FULL(){return y}static get DATE_HUGE(){return v}static get TIME_SIMPLE(){return g}static get TIME_WITH_SECONDS(){return b}static get TIME_WITH_SHORT_OFFSET(){return _}static get TIME_WITH_LONG_OFFSET(){return x}static get TIME_24_SIMPLE(){return w}static get TIME_24_WITH_SECONDS(){return O}static get TIME_24_WITH_SHORT_OFFSET(){return E}static get TIME_24_WITH_LONG_OFFSET(){return S}static get DATETIME_SHORT(){return P}static get DATETIME_SHORT_WITH_SECONDS(){return j}static get DATETIME_MED(){return A}static get DATETIME_MED_WITH_SECONDS(){return C}static get DATETIME_MED_WITH_WEEKDAY(){return T}static get DATETIME_FULL(){return k}static get DATETIME_FULL_WITH_SECONDS(){return M}static get DATETIME_HUGE(){return I}static get DATETIME_HUGE_WITH_SECONDS(){return D}}function Yr(t){if(Kr.isDateTime(t))return t;if(t&&t.valueOf&&ft(t.valueOf()))return Kr.fromJSDate(t);if(t&&"object"==typeof t)return Kr.fromObject(t);throw new u(`Unknown datetime argument: ${t}, of type ${typeof t}`)}e.DateTime=Kr,e.Duration=We,e.FixedOffsetZone=tt,e.IANAZone=V,e.Info=Ke,e.Interval=He,e.InvalidZone=et,e.Settings=lt,e.SystemZone=z,e.VERSION="3.3.0",e.Zone=L},12739:function(t){t.exports=function(){"use strict";var t,e,r;function n(n,o){if(t)if(e){var i="var sharedChunk = {}; ("+t+")(sharedChunk); ("+e+")(sharedChunk);",a={};t(a),r=o(a),"undefined"!=typeof window&&(r.workerUrl=window.URL.createObjectURL(new Blob([i],{type:"text/javascript"})))}else e=o;else t=o}return n(0,(function(t){function e(t,e){return t(e={exports:{}},e.exports),e.exports}var r=n;function n(t,e,r,n){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=n,this.p2x=r,this.p2y=n}n.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},n.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},n.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},n.prototype.solveCurveX=function(t,e){var r,n,o,i,a;for(void 0===e&&(e=1e-6),o=t,a=0;a<8;a++){if(i=this.sampleCurveX(o)-t,Math.abs(i)<e)return o;var s=this.sampleCurveDerivativeX(o);if(Math.abs(s)<1e-6)break;o-=i/s}if((o=t)<(r=0))return r;if(o>(n=1))return n;for(;r<n;){if(i=this.sampleCurveX(o),Math.abs(i-t)<e)return o;t>i?r=o:n=o,o=.5*(n-r)+r}return o},n.prototype.solve=function(t,e){return this.sampleCurveY(this.solve
vendor: 14,041 bytes, line 1
1CurveX(t,e))};var o=i;function i(t,e){this.x=t,this.y=e}i.prototype={clone:function(){return new i(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,r=t.y-this.y;return e*e+r*r},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),r=Math.sin(t),n=r*this.x+e*this.y;return this.x=e*this.x-r*this.y,this.y=n,this},_rotateAround:function(t,e){var r=Math.cos(t),n=Math.sin(t),o=e.y+n*(this.x-e.x)+r*(this.y-e.y);return this.x=e.x+r*(this.x-e.x)-n*(this.y-e.y),this.y=o,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},i.convert=function(t){return t instanceof i?t:Array.isArray(t)?new i(t[0],t[1]):t};var a="undefined"!=typeof self?self:{},s=Math.pow(2,53)-1;function u(t,e,n,o){var i=new r(t,e,n,o);return function(t){return i.solve(t)}}var c=u(.25,.1,.25,1);function l(t,e,r){return Math.min(r,Math.max(e,t))}function p(t,e,r){var n=r-e,o=((t-e)%n+n)%n+e;return o===e?r:o}function f(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];for(var n=0,o=e;n<o.length;n+=1){var i=o[n];for(var a in i)t[a]=i[a]}return t}var h=1;function d(){return h++}function m(){return function t(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function y(t){return!!t&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)}function v(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 b(t,e,r){var n={};for(var o in t)n[o]=e.call(r||this,t[o],o,t);return n}function _(t,e,r){var n={};for(var o in t)e.call(r||this,t[o],o,t)&&(n[o]=t[o]);return n}function x(t){return Array.isArray(t)?t.map(x):"object"==typeof t&&t?b(t,x):t}var w={};function O(t){w[t]||("undefined"!=typeof console&&console.warn(t),w[t]=!0)}function E(t,e,r){return(r.y-t.y)*(e.x-t.x)>(e.y-t.y)*(r.x-t.x)}function S(t){for(var e=0,r=0,n=t.length,o=n-1,i=void 0,a=void 0;r<n;o=r++)e+=((a=t[o]).x-(i=t[r]).x)*(i.y+a.y);return e}function P(){return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope}function j(t){var e={};if(t.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(function(t,r,n,o){var i=n||o;return e[r]=!i||i.toLowerCase(),""})),e["max-age"]){var r=parseInt(e["max-age"],10);isNaN(r)?delete e["max-age"]:e["max-age"]=r}return e}var A=null;function C(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 T(t){try{var e=a[t];return e.setItem("_mapbox_test_",1),e.removeItem("_mapbox_test_"),!0}catch(t){return!1}}var k,M,I,D,L=a.performance&&a.performance.now?a.performance.now.bind(a.performance):Date.now.bind(Date),R=a.requestAnimationFrame||a.mozRequestAnimationFrame||a.webkitRequestAnimationFrame||a.msRequestAnimationFrame,z=a.cancelAnimationFrame||a.mozCancelAnimationFrame||a.webkitCancelAnimationFrame||a.msCancelAnimationFrame,N={now:L,frame:function(t){var e=R(t);return{cancel:function(){return z(e)}}},getImageData:function(t,e){void 0===e&&(e=0);var r=a.document.createElement("canvas"),n=r.getContext("2d");if(!n)throw new Error("failed to create canvas 2d context");return r.width=t.width,r.height=t.height,n.drawImage(t,0,0,t.width,t.height),n.getImageData(-e,-e,t.width+2*e,t.height+2*e)},resolveURL:function(t){return k||(k=a.document.createElement("a")),k.href=t,k.href},hardwareConcurrency:a.navigator&&a.navigator.hardwareConcurrency||4,get devicePixelRatio(){return a.devicePixelRatio},get prefersReducedMotion(){return!!a.matchMedia&&(null==M&&(M=a.matchMedia("(prefers-reduced-motion: reduce)")),M.matches)}},F={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,REGISTERED_PROTOCOLS:{}},B={supported:!1,testSupport:function(t){!V&&D&&(U?q(t):I=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,D),t.isContextLost())return;B.supported=!0}catch(t){}t.deleteTexture(e),V=!0}a.document&&((D=a.document.createElement("img")).onload=function(){I&&q(I),I=null,U=!0},D.onerror=function(){V=!0,I=null},D.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var $="01",G=function(t,e){this._transformRequestFn=t,this._customAccessToken=e,this._createSkuToken()};function W(t){return 0===t.indexOf("mapbox:")}G.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},G.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},G.prototype.transformRequest=function(t,e){return this._transformRequestFn&&this._transformRequestFn(t,e)||{url:t}},G.prototype.normalizeStyleURL=function(t,e){if(!W(t))return t;var r=Y(t);return r.path="/styles/v1"+r.path,this._makeAPIURL(r,this._customAccessToken||e)},G.prototype.normalizeGlyphsURL=function(t,e){if(!W(t))return t;var r=Y(t);return r.path="/fonts/v1"+r.path,this._makeAPIURL(r,this._customAccessToken||e)},G.prototype.normalizeSourceURL=function(t,e){if(!W(t))return t;var r=Y(t);return r.path="/v4/"+r.authority+".json",r.params.push("secure"),this._makeAPIURL(r,this._customAccessToken||e)},G.prototype.normalizeSpriteURL=function(t,e,r,n){var o=Y(t);return W(t)?(o.path="/styles/v1"+o.path+"/sprite"+e+r,this._makeAPIURL(o,this._customAccessToken||n)):(o.path+=""+e+r,X(o))},G.prototype.normalizeTileURL=function(t,e){if(this._isSkuTokenExpired()&&this._createSkuToken(),t&&!W(t))return t;var r=Y(t);r.path=r.path.replace(/(\.(png|jpg)\d*)(?=$)/,(N.devicePixelRatio>=2||512===e?"@2x":"")+(B.supported?".webp":"$1")),r.path=r.path.replace(/^.+\/v4\//,"/"),r.path="/v4"+r.path;var n=this._customAccessToken||function(t){for(var e=0,r=t;e<r.length;e+=1){var n=r[e].match(/^access_token=(.*)$/);if(n)return n[1]}return null}(r.params)||F.ACCESS_TOKEN;return F.REQUIRE_ACCESS_TOKEN&&n&&this._skuToken&&r.params.push("sku="+this._skuToken),this._makeAPIURL(r,n)},G.prototype.canonicalizeTileURL=function(t,e){var r=Y(t);if(!r.path.match(/(^\/v4\/)/)||!r.path.match(/\.[\w]+$/))return t;var n="mapbox://tiles/";n+=r.path.replace("/v4/","");var o=r.params;return e&&(o=o.filter((function(t){return!t.match(/^access_token=/)}))),o.length&&(n+="?"+o.join("&")),n},G.prototype.canonicalizeTileset=function(t,e){for(var r=!!e&&W(e),n=[],o=0,i=t.tiles||[];o<i.length;o+=1){var a=i[o];H(a)?n.push(this.canonicalizeTileURL(a,r)):n.push(a)}return n},G.prototype._makeAPIURL=function(t,e){var r="See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes",n=Y(F.API_URL);if(t.protocol=n.protocol,t.authority=n.authority,"http"===t.protocol){var o=t.params.indexOf("secure");o>=0&&t.params.splice(o,1)}if("/"!==n.path&&(t.path=""+n.path+t.path),!F.REQUIRE_ACCESS_TOKEN)return X(t);if(!(e=e||F.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+r);if("s"===e[0])throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+r);return t.params=t.params.filter((function(t){return-1===t.indexOf("access_token")})),t.params.push("access_token="+e),X(t)},G.prototype.setTransformRequest=function(t){this._transformRequestFn=t};var Z=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function H(t){return Z.test(t)}var K=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function Y(t){var e=t.match(K);if(!e)throw new Error("Unable to parse URL object");return{protocol:e[1],authority:e[2],path:e[3]||"/",params:e[4]?e[4].split("&"):[]}}function X(t){var e=t.params.length?"?"+t.params.join("&"):"";return t.protocol+"://"+t.authority+t.path+e}function J(t){if(!t)return null;var e=t.split(".");if(!e||3!==e.length)return null;try{return JSON.parse(decodeURIComponent(a.atob(e[1]).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join("")))}catch(t){return null}}var Q=function(t){this.type=t,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};Q.prototype.getStorageKey=function(t){var e,r=J(F.ACCESS_TOKEN);return e=r&&r.u?a.btoa(encodeURIComponent(r.u).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode(Number("0x"+e))}))):F.ACCESS_TOKEN||"",t?"mapbox.eventData."+t+":"+e:"mapbox.eventData:"+e},Q.prototype.fetchEventData=function(){var t=T("localStorage"),e=this.getStorageKey(),r=this.getStorageKey("uuid");if(t)try{var n=a.localStorage.getItem(e);n&&(this.eventData=JSON.parse(n));var o=a.localStorage.getItem(r);o&&(this.anonId=o)}catch(t){O("Unable to read from LocalStorage")}},Q.prototype.saveEventData=function(){var t=T("localStorage"),e=this.getStorageKey(),r=this.getStorageKey("uuid");if(t)try{a.localStorage.setItem(r,this.anonId),Object.keys(this.eventData).length>=1&&a.localStorage.setItem(e,JSON.stringify(this.eventData))}catch(t){O("Unable to write to LocalStorage")}},Q.prototype.processRequests=function(t){},Q.prototype.postEvent=function(t,e,r,n){var o=this;if(F.EVENTS_URL){var i=Y(F.EVENTS_URL);i.params.push("access_token="+(n||F.ACCESS_TOKEN||""));var a={event:this.type,created:new Date(t).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.15.3",skuId:$,userId:this.anonId},s=e?f(a,e):a,u={url:X(i),headers:{"Content-Type":"text/plain"},body:JSON.stringify([s])};this.pendingRequest=wt(u,(function(t){o.pendingRequest=null,r(t),o.saveEventData(),o.processRequests(n)}))}},Q.prototype.queueRequest=function(t,e){this.queue.push(t),this.processRequests(e)};var tt,et,rt=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,r,n){this.skuToken=r,(F.EVENTS_URL&&n||F.ACCESS_TOKEN&&Array.isArray(t)&&t.some((function(t){return W(t)||H(t)})))&&this.queueRequest({id:e,timestamp:Date.now()},n)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&&0!==this.queue.length){var r=this.queue.shift(),n=r.id,o=r.timestamp;n&&this.success[n]||(this.anonId||this.fetchEventData(),y(this.anonId)||(this.anonId=m()),this.postEvent(o,{skuToken:this.skuToken},(function(t){t||n&&(e.success[n]=!0)}),t))}},e}(Q),nt=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){F.EVENTS_URL&&F.ACCESS_TOKEN&&Array.isArray(t)&&t.some((function(t){return W(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 r=J(F.ACCESS_TOKEN),n=r?r.u:F.ACCESS_TOKEN,o=n!==this.eventData.tokenU;y(this.anonId)||(this.anonId=m(),o=!0);var i=this.queue.shift();if(this.eventData.lastSuccess){var a=new Date(this.eventData.lastSuccess),s=new Date(i),u=(i-this.eventData.lastSuccess)/864e5;o=o||u>=1||u<-1||a.getDate()!==s.getDate()}else o=!0;if(!o)return this.processRequests();this.postEvent(i,{"enabled.telemetry":!1},(function(t){t||(e.eventData.lastSuccess=i,e.eventData.tokenU=n)}),t)}},e}(Q)),ot=nt.postTurnstileEvent.bind(nt),it=new rt,at=it.postMapLoadEvent.bind(it),st=500,ut=50;function ct(){a.caches&&!tt&&(tt=a.caches.open("mapbox-tiles"))}function lt(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}var pt,ft=1/0;function ht(){return null==pt&&(pt=a.OffscreenCanvas&&new a.OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof a.createImageBitmap),pt}var dt={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(dt);var mt=function(t){function e(e,r,n){401===r&&H(n)&&(e+=": you may have provided an invali
1d Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),t.call(this,e),this.status=r,this.url=n,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),yt=P()?function(){return self.worker&&self.worker.referrer}:function(){return("blob:"===a.location.protocol?a.parent:a).location.href};function vt(t,e){var r,n=new a.AbortController,o=new a.Request(t.url,{method:t.method||"GET",body:t.body,credentials:t.credentials,headers:t.headers,referrer:yt(),signal:n.signal}),i=!1,s=!1,u=(r=o.url).indexOf("sku=")>0&&H(r);"json"===t.type&&o.headers.set("Accept","application/json");var c=function(r,n,i){if(!s){if(r&&"SecurityError"!==r.message&&O(r),n&&i)return l(n);var c=Date.now();a.fetch(o).then((function(r){if(r.ok){var n=u?r.clone():null;return l(r,n,c)}return e(new mt(r.statusText,r.status,t.url))})).catch((function(t){20!==t.code&&e(new Error(t.message))}))}},l=function(r,n,u){("arrayBuffer"===t.type?r.arrayBuffer():"json"===t.type?r.json():r.text()).then((function(t){s||(n&&u&&function(t,e,r){if(ct(),tt){var n={status:e.status,statusText:e.statusText,headers:new a.Headers};e.headers.forEach((function(t,e){return n.headers.set(e,t)}));var o=j(e.headers.get("Cache-Control")||"");o["no-store"]||(o["max-age"]&&n.headers.set("Expires",new Date(r+1e3*o["max-age"]).toUTCString()),new Date(n.headers.get("Expires")).getTime()-r<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 r=new a.Response(e,n);ct(),tt&&tt.then((function(e){return e.put(lt(t.url),r)})).catch((function(t){return O(t.message)}))})))}}(o,n,u),i=!0,e(null,t,r.headers.get("Cache-Control"),r.headers.get("Expires")))})).catch((function(t){s||e(new Error(t.message))}))};return u?function(t,e){if(ct(),!tt)return e(null);var r=lt(t.url);tt.then((function(t){t.match(r).then((function(n){var o=function(t){if(!t)return!1;var e=new Date(t.headers.get("Expires")||0),r=j(t.headers.get("Cache-Control")||"");return e>Date.now()&&!r["no-cache"]}(n);t.delete(r),o&&t.put(r,n.clone()),e(null,n,o)})).catch(e)})).catch(e)}(o,c):c(null,null),{cancel:function(){s=!0,i||n.abort()}}}var gt,bt,_t=function(t,e){if(/:\/\//.test(t.url)&&!/^https?:|^file:/.test(t.url)){if(P()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",t,e);if(!P()){var r=t.url.substring(0,t.url.indexOf("://"));return(F.REGISTERED_PROTOCOLS[r]||vt)(t,e)}}if(!(/^file:/.test(n=t.url)||/^file:/.test(yt())&&!/^\w+:/.test(n))){if(a.fetch&&a.Request&&a.AbortController&&a.Request.prototype.hasOwnProperty("signal"))return vt(t,e);if(P()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",t,e,void 0,!0)}var n;return function(t,e){var r=new a.XMLHttpRequest;for(var n in r.open(t.method||"GET",t.url,!0),"arrayBuffer"===t.type&&(r.responseType="arraybuffer"),t.headers)r.setRequestHeader(n,t.headers[n]);return"json"===t.type&&(r.responseType="text",r.setRequestHeader("Accept","application/json")),r.withCredentials="include"===t.credentials,r.onerror=function(){e(new Error(r.statusText))},r.onload=function(){if((r.status>=200&&r.status<300||0===r.status)&&null!==r.response){var n=r.response;if("json"===t.type)try{n=JSON.parse(r.response)}catch(t){return e(t)}e(null,n,r.getResponseHeader("Cache-Control"),r.getResponseHeader("Expires"))}else e(new mt(r.statusText,r.status,t.url))},r.send(t.body),{cancel:function(){return r.abort()}}}(t,e)},xt=function(t,e){return _t(f(t,{type:"arrayBuffer"}),e)},wt=function(t,e){return _t(f(t,{method:"POST"}),e)},Ot="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";gt=[],bt=0;var Et=function(t,e){if(B.supported&&(t.headers||(t.headers={}),t.headers.accept="image/webp,*/*"),bt>=F.MAX_PARALLEL_IMAGE_REQUESTS){var r={requestParameters:t,callback:e,cancelled:!1,cancel:function(){this.cancelled=!0}};return gt.push(r),r}bt++;var n=!1,o=function(){if(!n)for(n=!0,bt--;gt.length&&bt<F.MAX_PARALLEL_IMAGE_REQUESTS;){var t=gt.shift();t.cancelled||(t.cancel=Et(t.requestParameters,t.callback).cancel)}},i=xt(t,(function(t,r,n,i){o(),t?e(t):r&&(ht()?function(t,e){var r=new a.Blob([new Uint8Array(t)],{type:"image/png"});a.createImageBitmap(r).then((function(t){e(null,t)})).catch((function(t){e(new Error("Could not load image because of "+t.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))}))}(r,e):function(t,e,r,n){var o=new a.Image,i=a.URL;o.onload=function(){e(null,o),i.revokeObjectURL(o.src),o.onload=null,a.requestAnimationFrame((function(){o.src=Ot}))},o.onerror=function(){return e(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var s=new a.Blob([new Uint8Array(t)],{type:"image/png"});o.cacheControl=r,o.expires=n,o.src=t.byteLength?i.createObjectURL(s):Ot}(r,e,n,i))}));return{cancel:function(){i.cancel(),o()}}};function St(t,e,r){r[t]&&-1!==r[t].indexOf(e)||(r[t]=r[t]||[],r[t].push(e))}function Pt(t,e,r){if(r&&r[t]){var n=r[t].indexOf(e);-1!==n&&r[t].splice(n,1)}}var jt=function(t,e){void 0===e&&(e={}),f(this,e),this.type=t},At=function(t){function e(e,r){void 0===r&&(r={}),t.call(this,"error",f({error:e},r))}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(jt),Ct=function(){};Ct.prototype.on=function(t,e){return this._listeners=this._listeners||{},St(t,e,this._listeners),this},Ct.prototype.off=function(t,e){return Pt(t,e,this._listeners),Pt(t,e,this._oneTimeListeners),this},Ct.prototype.once=function(t,e){return this._oneTimeListeners=this._oneTimeListeners||{},St(t,e,this._oneTimeListeners),this},Ct.prototype.fire=function(t,e){"string"==typeof t&&(t=new jt(t,e||{}));var r=t.type;if(this.listens(r)){t.target=this;for(var n=0,o=this._listeners&&this._listeners[r]?this._listeners[r].slice():[];n<o.length;n+=1)o[n].call(this,t);for(var i=0,a=this._oneTimeListeners&&this._oneTimeListeners[r]?this._oneTimeListeners[r].slice():[];i<a.length;i+=1){var s=a[i];Pt(r,s,this._oneTimeListeners),s.call(this,t)}var u=this._eventedParent;u&&(f(t,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),u.fire(t))}else t instanceof At&&console.error(t.error);return this},Ct.prototype.listens=function(t){return this._listeners&&this._listeners[t]&&this._listeners[t].length>0||this._oneTimeListeners&&this._oneTimeListeners[t]&&this._oneTimeListeners[t].length>0||this._eventedParent&&this._eventedParent.listens(t)},Ct.prototype.setEventedParent=function(t,e){return this._eventedParent=t,this._eventedParentData=e,this};var T
vendor: 19,006 bytes, line 1
1t={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}
vendor: 9,823 bytes, line 1
1,"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}}
vendor: 30,037 bytes, line 1
1,kt=function(t,e,r,n){this.message=(t?t+": ":"")+r,n&&(this.identifier=n),null!=e&&e.__line__&&(this.line=e.__line__)};function Mt(t){var e=t.value;return e?[new kt(t.key,e,"constants have been deprecated as of v8")]:[]}function It(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];for(var n=0,o=e;n<o.length;n+=1){var i=o[n];for(var a in i)t[a]=i[a]}return t}function Dt(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function Lt(t){if(Array.isArray(t))return t.map(Lt);if(t instanceof Object&&!(t instanceof Number||t instanceof String||t instanceof Boolean)){var e={};for(var r in t)e[r]=Lt(t[r]);return e}return Dt(t)}var Rt=function(t){function e(e,r){t.call(this,r),this.message=r,this.key=e}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(Error),zt=function(t,e){void 0===e&&(e=[]),this.parent=t,this.bindings={};for(var r=0,n=e;r<n.length;r+=1){var o=n[r];this.bindings[o[0]]=o[1]}};zt.prototype.concat=function(t){return new zt(this,t)},zt.prototype.get=function(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(t+" not found in scope.")},zt.prototype.has=function(t){return!!this.bindings[t]||!!this.parent&&this.parent.has(t)};var Nt={kind:"null"},Ft={kind:"number"},Bt={kind:"string"},Vt={kind:"boolean"},Ut={kind:"color"},qt={kind:"object"},$t={kind:"value"},Gt={kind:"collator"},Wt={kind:"formatted"},Zt={kind:"resolvedImage"};function Ht(t,e){return{kind:"array",itemType:t,N:e}}function Kt(t){if("array"===t.kind){var e=Kt(t.itemType);return"number"==typeof t.N?"array<"+e+", "+t.N+">":"value"===t.itemType.kind?"array":"array<"+e+">"}return t.kind}var Yt=[Nt,Ft,Bt,Vt,Ut,Wt,qt,Ht($t),Zt];function Xt(t,e){if("error"===e.kind)return null;if("array"===t.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!Xt(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 r=0,n=Yt;r<n.length;r+=1)if(!Xt(n[r],e))return null}return"Expected "+Kt(t)+" but found "+Kt(e)+" instead."}function Jt(t,e){return e.some((function(e){return e.kind===t.kind}))}function Qt(t,e){return e.some((function(e){return"null"===e?null===t:"array"===e?Array.isArray(t):"object"===e?t&&!Array.isArray(t)&&"object"==typeof t:e===typeof t}))}var te=e((function(t,e){var r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function n(t){return(t=Math.round(t))<0?0:t>255?255:t}function o(t){return n("%"===t[t.length-1]?parseFloat(t)/100*255:parseInt(t))}function i(t){return(e="%"===t[t.length-1]?parseFloat(t)/100:parseFloat(t))<0?0:e>1?1:e;var e}function a(t,e,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?t+(e-t)*r*6:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}try{e.parseCSSColor=function(t){var e,s=t.replace(/ /g,"").toLowerCase();if(s in r)return r[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 u=s.indexOf("("),c=s.indexOf(")");if(-1!==u&&c+1===s.length){var l=s.substr(0,u),p=s.substr(u+1,c-(u+1)).split(","),f=1;switch(l){case"rgba":if(4!==p.length)return null;f=i(p.pop());case"rgb":return 3!==p.length?null:[o(p[0]),o(p[1]),o(p[2]),f];case"hsla":if(4!==p.length)return null;f=i(p.pop());case"hsl":if(3!==p.length)return null;var h=(parseFloat(p[0])%360+360)%360/360,d=i(p[1]),m=i(p[2]),y=m<=.5?m*(d+1):m+d-m*d,v=2*m-y;return[n(255*a(v,y,h+1/3)),n(255*a(v,y,h)),n(255*a(v,y,h-1/3)),f];default:return null}}return null}}catch(t){}})).parseCSSColor,ee=function(t,e,r,n){void 0===n&&(n=1),this.r=t,this.g=e,this.b=r,this.a=n};ee.parse=function(t){if(t){if(t instanceof ee)return t;if("string"==typeof t){var e=te(t);if(e)return new ee(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},ee.prototype.toString=function(){var t=this.toArray(),e=t[1],r=t[2],n=t[3];return"rgba("+Math.round(t[0])+","+Math.round(e)+","+Math.round(r)+","+n+")"},ee.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]},ee.black=new ee(0,0,0,1),ee.white=new ee(1,1,1,1),ee.transparent=new ee(0,0,0,0),ee.red=new ee(1,0,0,1);var re=function(t,e,r){this.sensitivity=t?e?"variant":"case":e?"accent":"base",this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};re.prototype.compare=function(t,e){return this.collator.compare(t,e)},re.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var ne=function(t,e,r,n,o){this.text=t,this.image=e,this.scale=r,this.fontStack=n,this.textColor=o},oe=function(t){this.sections=t};oe.fromString=function(t){return new oe([new ne(t,null,null,null,null)])},oe.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}))},oe.factory=function(t){return t instanceof oe?t:oe.fromString(t)},oe.prototype.toString=function(){return 0===this.sections.length?"":this.sections.map((function(t){return t.text})).join("")},oe.prototype.serialize=function(){for(var t=["format"],e=0,r=this.sections;e<r.length;e+=1){var n=r[e];if(n.image)t.push(["image",n.image.name]);else{t.push(n.text);var o={};n.fontStack&&(o["text-font"]=["literal",n.fontStack.split(",")]),n.scale&&(o["font-scale"]=n.scale),n.textColor&&(o["text-color"]=["rgba"].concat(n.textColor.toArray())),t.push(o)}}return t};var ie=function(t){this.name=t.name,this.available=t.available};function ae(t,e,r,n){return"number"==typeof t&&t>=0&&t<=255&&"number"==typeof e&&e>=0&&e<=255&&"number"==typeof r&&r>=0&&r<=255?void 0===n||"number"==typeof n&&n>=0&&n<=1?null:"Invalid rgba value ["+[t,e,r,n].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"==typeof n?[t,e,r,n]:[t,e,r]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function se(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 ee)return!0;if(t instanceof re)return!0;if(t instanceof oe)return!0;if(t instanceof ie)return!0;if(Array.isArray(t)){for(var e=0,r=t;e<r.length;e+=1)if(!se(r[e]))return!1;return!0}if("object"==typeof t){for(var n in t)if(!se(t[n]))return!1;return!0}return!1}function ue(t){if(null===t)return Nt;if("string"==typeof t)return Bt;if("boolean"==typeof t)return Vt;if("number"==typeof t)return Ft;if(t instanceof ee)return Ut;if(t instanceof re)return Gt;if(t instanceof oe)return Wt;if(t instanceof ie)return Zt;if(Array.isArray(t)){for(var e,r=t.length,n=0,o=t;n<o.length;n+=1){var i=ue(o[n]);if(e){if(e===i)continue;e=$t;break}e=i}return Ht(e||$t,r)}return qt}function ce(t){var e=typeof t;return null===t?"":"string"===e||"number"===e||"boolean"===e?String(t):t instanceof ee||t instanceof oe||t instanceof ie?t.toString():JSON.stringify(t)}ie.prototype.toString=function(){return this.name},ie.fromString=function(t){return t?new ie({name:t,available:!1}):null},ie.prototype.serialize=function(){return["image",this.name]};var le=function(t,e){this.type=t,this.value=e};le.parse=function(t,e){if(2!==t.length)return e.error("'literal' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(!se(t[1]))return e.error("invalid value");var r=t[1],n=ue(r),o=e.expectedType;return"array"!==n.kind||0!==n.N||!o||"array"!==o.kind||"number"==typeof o.N&&0!==o.N||(n=o),new le(n,r)},le.prototype.evaluate=function(){return this.value},le.prototype.eachChild=function(){},le.prototype.outputDefined=function(){return!0},le.prototype.serialize=function(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof ee?["rgba"].concat(this.value.toArray()):this.value instanceof oe?this.value.serialize():this.value};var pe=function(t){this.name="ExpressionEvaluationError",this.message=t};pe.prototype.toJSON=function(){return this.message};var fe={string:Bt,number:Ft,boolean:Vt,object:qt},he=function(t,e){this.type=t,this.args=e};he.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var r,n=1,o=t[0];if("array"===o){var i,a;if(t.length>2){var s=t[1];if("string"!=typeof s||!(s in fe)||"object"===s)return e.error('The item type argument of "array" must be one of string, number, boolean',1);i=fe[s],n++}else i=$t;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],n++}r=Ht(i,a)}else r=fe[o];for(var u=[];n<t.length;n++){var c=e.parse(t[n],n,$t);if(!c)return null;u.push(c)}return new he(r,u)},he.prototype.evaluate=function(t){for(var e=0;e<this.args.length;e++){var r=this.args[e].evaluate(t);if(!Xt(this.type,ue(r)))return r;if(e===this.args.length-1)throw new pe("Expected value to be of type "+Kt(this.type)+", but found "+Kt(ue(r))+" instead.")}return null},he.prototype.eachChild=function(t){this.args.forEach(t)},he.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},he.prototype.serialize=function(){var t=this.type,e=[t.kind];if("array"===t.kind){var r=t.itemType;if("string"===r.kind||"number"===r.kind||"boolean"===r.kind){e.push(r.kind);var n=t.N;("number"==typeof n||this.args.length>1)&&e.push(n)}}return e.concat(this.args.map((function(t){return t.serialize()})))};var de=function(t){this.type=Wt,this.sections=t};de.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var r=t[1];if(!Array.isArray(r)&&"object"==typeof r)return e.error("First argument must be an image or text section.");for(var n=[],o=!1,i=1;i<=t.length-1;++i){var a=t[i];if(o&&"object"==typeof a&&!Array.isArray(a)){o=!1;var s=null;if(a["font-scale"]&&!(s=e.parse(a["font-scale"],1,Ft)))return null;var u=null;if(a["text-font"]&&!(u=e.parse(a["text-font"],1,Ht(Bt))))return null;var c=null;if(a["text-color"]&&!(c=e.parse(a["text-color"],1,Ut)))return null;var l=n[n.length-1];l.scale=s,l.font=u,l.textColor=c}else{var p=e.parse(t[i],1,$t);if(!p)return null;var f=p.type.kind;if("string"!==f&&"value"!==f&&"null"!==f&&"resolvedImage"!==f)return e.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");o=!0,n.push({content:p,scale:null,font:null,textColor:null})}}return new de(n)},de.prototype.evaluate=function(t){return new oe(this.sections.map((function(e){var r=e.content.evaluate(t);return ue(r)===Zt?new ne("",r,null,null,null):new ne(ce(r),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(","):null,e.textColor?e.textColor.evaluate(t):null)})))},de.prototype.eachChild=function(t){for(var e=0,r=this.sections;e<r.length;e+=1){var n=r[e];t(n.content),n.scale&&t(n.scale),n.font&&t(n.font),n.textColor&&t(n.textColor)}},de.prototype.outputDefined=function(){return!1},de.prototype.serialize=function(){for(var t=["format"],e=0,r=this.sections;e<r.length;e+=1){var n=r[e];t.push(n.content.serialize());var o={};n.scale&&(o["font-scale"]=n.scale.serialize()),n.font&&(o["text-font"]=n.font.serialize()),n.textColor&&(o["text-color"]=n.textColor.serialize()),t.push(o)}return t};var me=function(t){this.type=Zt,this.input=t};me.parse=function(t,e){if(2!==t.length)return e.error("Expected two arguments.");var r=e.parse(t[1],1,Bt);return r?new me(r):e.error("No image name provided.")},me.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=ie.fromString(e);return r&&t.availableImages&&(r.available=t.availableImages.indexOf(e)>-1),r},me.prototype.eachChild=function(t){t(this.input)},me.prototype.outputDefined=function(){return!1},me.prototype.serialize=function(){return["image",this.input.serialize()]};var ye={"to-boolean":Vt,"to-color":Ut,"to-number":Ft,"to-string":Bt},ve=function(t,e){this.type=t,this.args=e};ve.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var r=t[0];if(("to-boolean"===r||"to-string"===r)&&2!==t.length)return e.error("Expected one argument.");for(var n=ye[r],o=[],i=1;i<t.length;i++){var a=e.parse(t[i],i,$t);if(!a)return null;o.push(a)}return new ve(n,o)},ve.prototype.evaluate=function(t){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(t));if("color"===this.type.kind){for(var e,r,n=0,o=this.args;n<o.length;n+=1){if(r=null,(e=o[n].evaluate(t))instanceof ee)return e;if("string"==typeof e){var i=t.parseColor(e);if(i)return i}else if(Array.isArray(e)&&!(r=e.length<3||e.length>4?"Invalid rbga value "+JSON.stringify(e)+": expected an array containing either three or four numeric values.":ae(e[0],e[1],e[2],e[3])))return new ee(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new pe(r||"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,u=this.args;s<u.length;s+=1){if(null===(a=u[s].evaluate(t)))return 0;var c=Number(a);if(!isNaN(c))return c}throw new pe("Could not convert "+JSON.stringify(a)+" to number.")}return"formatted"===this.type.kind?oe.fromString(ce(this.args[0].evaluate(t))):"resolvedImage"===this.type.kind?ie.fromString(ce(this.args[0].evaluate(t))):ce(this.args[0].evaluate(t))},ve.prototype.eachChild=function(t){this.args.forEach(t)},ve.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},ve.prototype.serialize=function(){if("formatted"===this.type.kind)return new de([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new me(this.args[0]).serialize();var t=["to-"+this.type.kind];return this.eachChild((function(e){t.push(e.serialize())})),t};var ge=["Unknown","Point","LineString","Polygon"],be=function(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null};be.prototype.id=function(){return this.feature&&"id"in this.feature?this.feature.id:null},be.prototype.geometryType=function(){return this.feature?"number"==typeof this.feature.type?ge[this.feature.type]:this.feature.type:null},be.prototype.geometry=function(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null},be.prototype.canonicalID=function(){return this.canonical},be.prototype.properties=function(){return this.feature&&this.feature.properties||{}},be.prototype.parseColor=function(t){var e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=ee.parse(t)),e};var _e=function(t,e,r,n){this.name=t,this.type=e,this._evaluate=r,this.args=n};_e.prototype.evaluate=function(t){return this._evaluate(t,this.args)},_e.prototype.eachChild=function(t){this.args.forEach(t)},_e.prototype.outputDefined=function(){return!1},_e.prototype.serialize=function(){return[this.name].concat(this.args.map((function(t){return t.serialize()})))},_e.parse=function(t,e){var r,n=t[0],o=_e.definitions[n];if(!o)return e.error('Unknown expression "'+n+'". If you wanted a literal array, use ["literal", [...]].',0);for(var i=Array.isArray(o)?o[0]:o.type,a=Array.isArray(o)?[[o[1],o[2]]]:o.overloads,s=a.filter((function(e){var r=e[0];return!Array.isArray(r)||r.length===t.length-1})),u=null,c=0,l=s;c<l.length;c+=1){var p=l[c],f=p[0],h=p[1];u=new Ue(e.registry,e.path,null,e.scope);for(var d=[],m=!1,y=1;y<t.length;y++){var v=t[y],g=Array.isArray(f)?f[y-1]:f.type,b=u.parse(v,1+d.length,g);if(!b){m=!0;break}d.push(b)}if(!m)if(Array.isArray(f)&&f.length!==d.length)u.error("Expected "+f.length+" arguments, but found "+d.length+" instead.");else{for(var _=0;_<d.length;_++){var x=Array.isArray(f)?f[_]:f.type,w=d[_];u.concat(_+1).checkSubtype(x,w.type)}if(0===u.errors.length)return new _e(n,i,h,d)}}if(1===s.length)(r=e.errors).push.apply(r,u.errors);else{for(var O=(s.length?s:a).map((function(t){var e;return e=t[0],Array.isArray(e)?"("+e.map(Kt).join(", ")+")":"("+Kt(e.type)+"...)"})).join(" | "),E=[],S=1;S<t.length;S++){var P=e.parse(t[S],1+E.length);if(!P)return null;E.push(Kt(P.type))}e.error("Expected arguments of type "+O+", but found ("+E.join(", ")+") instead.")}return null},_e.register=function(t,e){for(var r in _e.definitions=e,e)t[r]=_e};var xe=function(t,e,r){this.type=Gt,this.locale=r,this.caseSensitive=t,this.diacriticSensitive=e};function we(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function Oe(t,e){return!(t[0]<=e[0]||t[2]>=e[2]||t[1]<=e[1]||t[3]>=e[3])}function Ee(t,e){var r=(180+t[0])/360,n=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t[1]*Math.PI/360)))/360,o=Math.pow(2,e.z);return[Math.round(r*o*8192),Math.round(n*o*8192)]}function Se(t,e,r){return e[1]>t[1]!=r[1]>t[1]&&t[0]<(r[0]-e[0])*(t[1]-e[1])/(r[1]-e[1])+e[0]}function Pe(t,e){for(var r,n,o,i,a,s,u,c=!1,l=0,p=e.length;l<p;l++)for(var f=e[l],h=0,d=f.length;h<d-1;h++){if((i=(r=t)[0]-(n=f[h])[0])*(u=r[1]-(o=f[h+1])[1])-(s=r[0]-o[0])*(a=r[1]-n[1])==0&&i*s<=0&&a*u<=0)return!1;Se(t,f[h],f[h+1])&&(c=!c)}return c}function je(t,e){for(var r=0;r<e.length;r++)if(Pe(t,e[r]))return!0;return!1}function Ae(t,e,r,n){var o=n[0]-r[0],i=n[1]-r[1],a=(t[0]-r[0])*i-o*(t[1]-r[1]),s=(e[0]-r[0])*i-o*(e[1]-r[1]);return a>0&&s<0||a<0&&s>0}function Ce(t,e,r){for(var n=0,o=r;n<o.length;n+=1)for(var i=o[n],a=0;a<i.length-1;++a)if(0!=(p=[(l=i[a+1])[0]-(c=i[a])[0],l[1]-c[1]])[0]*(f=[(u=e)[0]-(s=t)[0],u[1]-s[1]])[1]-p[1]*f[0]&&Ae(s,u,c,l)&&Ae(c,l,s,u))return!0;var s,u,c,l,p,f;return!1}function Te(t,e){for(var r=0;r<t.length;++r)if(!Pe(t[r],e))return!1;for(var n=0;n<t.length-1;++n)if(Ce(t[n],t[n+1],e))return!1;return!0}function ke(t,e){for(var r=0;r<e.length;r++)if(Te(t,e[r]))return!0;return!1}function Me(t,e,r){for(var n=[],o=0;o<t.length;o++){for(var i=[],a=0;a<t[o].length;a++){var s=Ee(t[o][a],r);we(e,s),i.push(s)}n.push(i)}return n}function Ie(t,e,r){for(var n=[],o=0;o<t.length;o++){var i=Me(t[o],e,r);n.push(i)}return n}function De(t,e,r,n){if(t[0]<r[0]||t[0]>r[2]){var o=.5*n,i=t[0]-r[0]>o?-n:r[0]-t[0]>o?n:0;0===i&&(i=t[0]-r[2]>o?-n:r[2]-t[0]>o?n:0),t[0]+=i}we(e,t)}function Le(t,e,r,n){for(var o=8192*Math.pow(2,n.z),i=[8192*n.x,8192*n.y],a=[],s=0,u=t;s<u.length;s+=1)for(var c=0,l=u[s];c<l.length;c+=1){var p=l[c],f=[p.x+i[0],p.y+i[1]];De(f,e,r,o),a.push(f)}return a}function Re(t,e,r,n){for(var o,i=8192*Math.pow(2,n.z),a=[8192*n.x,8192*n.y],s=[],u=0,c=t;u<c.length;u+=1){for(var l=[],p=0,f=c[u];p<f.length;p+=1){var h=f[p],d=[h.x+a[0],h.y+a[1]];we(e,d),l.push(d)}s.push(l)}if(e[2]-e[0]<=i/2){(o=e)[0]=o[1]=1/0,o[2]=o[3]=-1/0;for(var m=0,y=s;m<y.length;m+=1)for(var v=0,g=y[m];v<g.length;v+=1)De(g[v],e,r,i)}return s}xe.parse=function(t,e){if(2!==t.length)return e.error("Expected one argument.");var r=t[1];if("object"!=typeof r||Array.isArray(r))return e.error("Collator options argument must be an object.");var n=e.parse(void 0!==r["case-sensitive"]&&r["case-sensitive"],1,Vt);if(!n)return null;var o=e.parse(void 0!==r["diacritic-sensitive"]&&r["diacritic-sensitive"],1,Vt);if(!o)return null;var i=null;return r.locale&&!(i=e.parse(r.locale,1,Bt))?null:new xe(n,o,i)},xe.prototype.evaluate=function(t){return new re(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)},xe.prototype.eachChild=function(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)},xe.prototype.outputDefined=function(){return!1},xe.prototype.serialize=function(){var t={};return t["case-sensitive"]=this.caseSensitive.serialize(),t["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(t.locale=this.locale.serialize()),["collator",t]};var ze=function(t,e){this.type=Vt,this.geojson=t,this.geometries=e};function Ne(t){if(t instanceof _e){if("get"===t.name&&1===t.args.length)return!1;if("feature-state"===t.name)return!1;if("has"===t.name&&1===t.args.length)return!1;if("properties"===t.name||"geometry-type"===t.name||"id"===t.name)return!1;if(/^filter-/.test(t.name))return!1}if(t instanceof ze)return!1;var e=!0;return t.eachChild((function(t){e&&!Ne(t)&&(e=!1)})),e}function Fe(t){if(t instanceof _e&&"feature-state"===t.name)return!1;var e=!0;return t.eachChild((function(t){e&&!Fe(t)&&(e=!1)})),e}function Be(t,e){if(t instanceof _e&&e.indexOf(t.name)>=0)return!1;var r=!0;return t.eachChild((function(t){r&&!Be(t,e)&&(r=!1)})),r}ze.parse=function(t,e){if(2!==t.length)return e.error("'within' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(se(t[1])){var r=t[1];if("FeatureCollection"===r.type)for(var n=0;n<r.features.length;++n){var o=r.features[n].geometry.type;if("Polygon"===o||"MultiPolygon"===o)return new ze(r,r.features[n].geometry)}else if("Feature"===r.type){var i=r.geometry.type;if("Polygon"===i||"MultiPolygon"===i)return new ze(r,r.geometry)}else if("Polygon"===r.type||"MultiPolygon"===r.type)return new ze(r,r)}return e.error("'within' expression requires valid geojson object that contains polygon geometry type.")},ze.prototype.evaluate=function(t){if(null!=t.geometry()&&null!=t.canonicalID()){if("Point"===t.geometryType())return function(t,e){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],o=t.canonicalID();if("Polygon"===e.type){var i=Me(e.coordinates,n,o),a=Le(t.geometry(),r,n,o);if(!Oe(r,n))return!1;for(var s=0,u=a;s<u.length;s+=1)if(!Pe(u[s],i))return!1}if("MultiPolygon"===e.type){var c=Ie(e.coordinates,n,o),l=Le(t.geometry(),r,n,o);if(!Oe(r,n))return!1;for(var p=0,f=l;p<f.length;p+=1)if(!je(f[p],c))return!1}return!0}(t,this.geometries);if("LineString"===t.geometryType())return function(t,e){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],o=t.canonicalID();if("Polygon"===e.type){var i=Me(e.coordinates,n,o),a=Re(t.geometry(),r,n,o);if(!Oe(r,n))return!1;for(var s=0,u=a;s<u.length;s+=1)if(!Te(u[s],i))return!1}if("MultiPolygon"===e.type){var c=Ie(e.coordinates,n,o),l=Re(t.geometry(),r,n,o);if(!Oe(r,n))return!1;for(var p=0,f=l;p<f.length;p+=1)if(!ke(f[p],c))return!1}return!0}(t,this.geometries)}return!1},ze.prototype.eachChild=function(){},ze.prototype.outputDefined=function(){return!0},ze.prototype.serialize=function(){return["within",this.geojson]};var Ve=function(t,e){this.type=e.type,this.name=t,this.boundExpression=e};Ve.parse=function(t,e){if(2!==t.length||"string"!=typeof t[1])return e.error("'var' expression requires exactly one string literal argument.");var r=t[1];return e.scope.has(r)?new Ve(r,e.scope.get(r)):e.error('Unknown variable "'+r+'". Make sure "'+r+'" has been bound in an enclosing "let" expression before using it.',1)},Ve.prototype.evaluate=function(t){return this.boundExpression.evaluate(t)},Ve.prototype.eachChild=function(){},Ve.prototype.outputDefined=function(){return!1},Ve.prototype.serialize=function(){return["var",this.name]};var Ue=function(t,e,r,n,o){void 0===e&&(e=[]),void 0===n&&(n=new zt),void 0===o&&(o=[]),this.registry=t,this.path=e,this.key=e.map((function(t){return"["+t+"]"})).join(""),this.scope=n,this.errors=o,this.expectedType=r};function qe(t,e){for(var r,n=t.length-1,o=0,i=n,a=0;o<=i;)if((r=t[a=Math.floor((o+i)/2)])<=e){if(a===n||e<t[a+1])return a;o=a+1}else{if(!(r>e))throw new pe("Input is not a number.");i=a-1}return 0}Ue.prototype.parse=function(t,e,r,n,o){return void 0===o&&(o={}),e?this.concat(e,r,n)._parse(t,o):this._parse(t,o)},Ue.prototype._parse=function(t,e){function r(t,e,r){return"assert"===r?new he(e,[t]):"coerce"===r?new ve(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 n=t[0];if("string"!=typeof n)return this.error("Expression name must be a string, but found "+typeof n+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var o=this.registry[n];if(o){var i=o.parse(t,this);if(!i)return null;if(this.expectedType){var a=this.expectedType,s=i.type;if("string"!==a.kind&&"number"!==a.kind&&"boolean"!==a.kind&&"object"!==a.kind&&"array"!==a.kind||"value"!==s.kind)if("color"!==a.kind&&"formatted"!==a.kind&&"resolvedImage"!==a.kind||"value"!==s.kind&&"string"!==s.kind){if(this.checkSubtype(a,s))return null}else i=r(i,a,e.typeAnnotation||"coerce");else i=r(i,a,e.typeAnnotation||"assert")}if(!(i instanceof le)&&"resolvedImage"!==i.type.kind&&function t(e){if(e instanceof Ve)return t(e.boundExpression);if(e instanceof _e&&"error"===e.name)return!1;if(e instanceof xe)return!1;if(e instanceof ze)return!1;var r=e instanceof ve||e instanceof he,n=!0;return e.eachChild((function(e){n=r?n&&t(e):n&&e instanceof le})),!!n&&Ne(e)&&Be(e,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(i)){var u=new be;try{i=new le(i.type,i.evaluate(u))}catch(t){return this.error(t.message),null}}return i}return this.error('Unknown expression "'+n+'". If you wanted a literal array, use ["literal", [...]].',0)}return this.error(void 0===t?"'undefined' value invalid. Use null instead.":"object"==typeof t?'Bare objects invalid. Use ["literal", {...}] instead.':"Expected an array, but found "+typeof t+" instead.")},Ue.prototype.concat=function(t,e,r){var n="number"==typeof t?this.path.concat(t):this.path,o=r?this.scope.concat(r):this.scope;return new Ue(this.registry,n,e||null,o,this.errors)},Ue.prototype.error=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];var n=""+this.key+e.map((function(t){return"["+t+"]"})).join("");this.errors.push(new Rt(n,t))},Ue.prototype.checkSubtype=function(t,e){var r=Xt(t,e);return r&&this.error(r),r};var $e=function(t,e,r){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var n=0,o=r;n<o.length;n+=1){var i=o[n],a=i[1];this.labels.push(i[0]),this.outputs.push(a)}};function Ge(t,e,r){return t*(1-r)+e*r}$e.parse=function(t,e){if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");var r=e.parse(t[1],1,Ft);if(!r)return null;var n=[],o=null;e.expectedType&&"value"!==e.expectedType.kind&&(o=e.expectedType);for(var i=1;i<t.length;i+=2){var a=1===i?-1/0:t[i],s=t[i+1],u=i,c=i+1;if("number"!=typeof a)return e.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not c
1omputed expressions) for the input values.',u);if(n.length&&n[n.length-1][0]>=a)return e.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',u);var l=e.parse(s,c,o);if(!l)return null;o=o||l.type,n.push([a,l])}return new $e(o,r,n)},$e.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n<=e[0])return r[0].evaluate(t);var o=e.length;return n>=e[o-1]?r[o-1].evaluate(t):r[qe(e,n)].evaluate(t)},$e.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e<r.length;e+=1)t(r[e])},$e.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},$e.prototype.serialize=function(){for(var t=["step",this.input.serialize()],e=0;e<this.labels.length;e++)e>0&&t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};var We=Object.freeze({__proto__:null,number:Ge,color:function(t,e,r){return new ee(Ge(t.r,e.r,r),Ge(t.g,e.g,r),Ge(t.b,e.b,r),Ge(t.a,e.a,r))},array:function(t,e,r){return t.map((function(t,n){return Ge(t,e[n],r)}))}}),Ze=6/29*3*(6/29),He=Math.PI/180,Ke=180/Math.PI;function Ye(t){return t>.008856451679035631?Math.pow(t,1/3):t/Ze+4/29}function Xe(t){return t>6/29?t*t*t:Ze*(t-4/29)}
vendor: 117,170 bytes, line 1
1function Je(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Qe(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function tr(t){var e=Qe(t.r),r=Qe(t.g),n=Qe(t.b),o=Ye((.4124564*e+.3575761*r+.1804375*n)/.95047),i=Ye((.2126729*e+.7151522*r+.072175*n)/1);return{l:116*i-16,a:500*(o-i),b:200*(i-Ye((.0193339*e+.119192*r+.9503041*n)/1.08883)),alpha:t.a}}function er(t){var e=(t.l+16)/116,r=isNaN(t.a)?e:e+t.a/500,n=isNaN(t.b)?e:e-t.b/200;return e=1*Xe(e),r=.95047*Xe(r),n=1.08883*Xe(n),new ee(Je(3.2404542*r-1.5371385*e-.4985314*n),Je(-.969266*r+1.8760108*e+.041556*n),Je(.0556434*r-.2040259*e+1.0572252*n),t.alpha)}function rr(t,e,r){var n=e-t;return t+r*(n>180||n<-180?n-360*Math.round(n/360):n)}var nr={forward:tr,reverse:er,interpolate:function(t,e,r){return{l:Ge(t.l,e.l,r),a:Ge(t.a,e.a,r),b:Ge(t.b,e.b,r),alpha:Ge(t.alpha,e.alpha,r)}}},or={forward:function(t){var e=tr(t),r=e.l,n=e.a,o=e.b,i=Math.atan2(o,n)*Ke;return{h:i<0?i+360:i,c:Math.sqrt(n*n+o*o),l:r,alpha:t.a}},reverse:function(t){var e=t.h*He,r=t.c;return er({l:t.l,a:Math.cos(e)*r,b:Math.sin(e)*r,alpha:t.alpha})},interpolate:function(t,e,r){return{h:rr(t.h,e.h,r),c:Ge(t.c,e.c,r),l:Ge(t.l,e.l,r),alpha:Ge(t.alpha,e.alpha,r)}}},ir=Object.freeze({__proto__:null,lab:nr,hcl:or}),ar=function(t,e,r,n,o){this.type=t,this.operator=e,this.interpolation=r,this.input=n,this.labels=[],this.outputs=[];for(var i=0,a=o;i<a.length;i+=1){var s=a[i],u=s[1];this.labels.push(s[0]),this.outputs.push(u)}};function sr(t,e,r,n){var o=n-r,i=t-r;return 0===o?0:1===e?i/o:(Math.pow(e,i)-1)/(Math.pow(e,o)-1)}ar.interpolationFactor=function(t,e,n,o){var i=0;if("exponential"===t.name)i=sr(e,t.base,n,o);else if("linear"===t.name)i=sr(e,1,n,o);else if("cubic-bezier"===t.name){var a=t.controlPoints;i=new r(a[0],a[1],a[2],a[3]).solve(sr(e,1,n,o))}return i},ar.parse=function(t,e){var r=t[0],n=t[1],o=t[2],i=t.slice(3);if(!Array.isArray(n)||0===n.length)return e.error("Expected an interpolation type expression.",1);if("linear"===n[0])n={name:"linear"};else if("exponential"===n[0]){var a=n[1];if("number"!=typeof a)return e.error("Exponential interpolation requires a numeric base.",1,1);n={name:"exponential",base:a}}else{if("cubic-bezier"!==n[0])return e.error("Unknown interpolation type "+String(n[0]),1,0);var s=n.slice(1);if(4!==s.length||s.some((function(t){return"number"!=typeof t||t<0||t>1})))return e.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);n={name:"cubic-bezier",controlPoints:s}}if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");if(!(o=e.parse(o,2,Ft)))return null;var u=[],c=null;"interpolate-hcl"===r||"interpolate-lab"===r?c=Ut:e.expectedType&&"value"!==e.expectedType.kind&&(c=e.expectedType);for(var l=0;l<i.length;l+=2){var p=i[l],f=i[l+1],h=l+3,d=l+4;if("number"!=typeof p)return e.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',h);if(u.length&&u[u.length-1][0]>=p)return e.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',h);var m=e.parse(f,d,c);if(!m)return null;c=c||m.type,u.push([p,m])}return"number"===c.kind||"color"===c.kind||"array"===c.kind&&"number"===c.itemType.kind&&"number"==typeof c.N?new ar(c,r,n,o,u):e.error("Type "+Kt(c)+" is not interpolatable.")},ar.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n<=e[0])return r[0].evaluate(t);var o=e.length;if(n>=e[o-1])return r[o-1].evaluate(t);var i=qe(e,n),a=ar.interpolationFactor(this.interpolation,n,e[i],e[i+1]),s=r[i].evaluate(t),u=r[i+1].evaluate(t);return"interpolate"===this.operator?We[this.type.kind.toLowerCase()](s,u,a):"interpolate-hcl"===this.operator?or.reverse(or.interpolate(or.forward(s),or.forward(u),a)):nr.reverse(nr.interpolate(nr.forward(s),nr.forward(u),a))},ar.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e<r.length;e+=1)t(r[e])},ar.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},ar.prototype.serialize=function(){var t;t="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);for(var e=[this.operator,t,this.input.serialize()],r=0;r<this.labels.length;r++)e.push(this.labels[r],this.outputs[r].serialize());return e};var ur=function(t,e){this.type=t,this.args=e};ur.parse=function(t,e){if(t.length<2)return e.error("Expectected at least one argument.");var r=null,n=e.expectedType;n&&"value"!==n.kind&&(r=n);for(var o=[],i=0,a=t.slice(1);i<a.length;i+=1){var s=e.parse(a[i],1+o.length,r,void 0,{typeAnnotation:"omit"});if(!s)return null;r=r||s.type,o.push(s)}var u=n&&o.some((function(t){return Xt(n,t.type)}));return new ur(u?$t:r,o)},ur.prototype.evaluate=function(t){for(var e,r=null,n=0,o=0,i=this.args;o<i.length&&(n++,(r=i[o].evaluate(t))&&r instanceof ie&&!r.available&&(e||(e=r.name),r=null,n===this.args.length&&(r=e)),null===r);o+=1);return r},ur.prototype.eachChild=function(t){this.args.forEach(t)},ur.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},ur.prototype.serialize=function(){var t=["coalesce"];return this.eachChild((function(e){t.push(e.serialize())})),t};var cr=function(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e};cr.prototype.evaluate=function(t){return this.result.evaluate(t)},cr.prototype.eachChild=function(t){for(var e=0,r=this.bindings;e<r.length;e+=1)t(r[e][1]);t(this.result)},cr.parse=function(t,e){if(t.length<4)return e.error("Expected at least 3 arguments, but found "+(t.length-1)+" instead.");for(var r=[],n=1;n<t.length-1;n+=2){var o=t[n];if("string"!=typeof o)return e.error("Expected string, but found "+typeof o+" instead.",n);if(/[^a-zA-Z0-9_]/.test(o))return e.error("Variable names must contain only alphanumeric characters or '_'.",n);var i=e.parse(t[n+1],n+1);if(!i)return null;r.push([o,i])}var a=e.parse(t[t.length-1],t.length-1,e.expectedType,r);return a?new cr(r,a):null},cr.prototype.outputDefined=function(){return this.result.outputDefined()},cr.prototype.serialize=function(){for(var t=["let"],e=0,r=this.bindings;e<r.length;e+=1){var n=r[e];t.push(n[0],n[1].serialize())}return t.push(this.result.serialize()),t};var lr=function(t,e,r){this.type=t,this.index=e,this.input=r};lr.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,Ft),n=e.parse(t[2],2,Ht(e.expectedType||$t));return r&&n?new lr(n.type.itemType,r,n):null},lr.prototype.evaluate=function(t){var e=this.index.evaluate(t),r=this.input.evaluate(t);if(e<0)throw new pe("Array index out of bounds: "+e+" < 0.");if(e>=r.length)throw new pe("Array index out of bounds: "+e+" > "+(r.length-1)+".");if(e!==Math.floor(e))throw new pe("Array index must be an integer, but found "+e+" instead.");return r[e]},lr.prototype.eachChild=function(t){t(this.index),t(this.input)},lr.prototype.outputDefined=function(){return!1},lr.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var pr=function(t,e){this.type=Vt,this.needle=t,this.haystack=e};pr.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,$t),n=e.parse(t[2],2,$t);return r&&n?Jt(r.type,[Vt,Bt,Ft,Nt,$t])?new pr(r,n):e.error("Expected first argument to be of type boolean, string, number or null, but found "+Kt(r.type)+" instead"):null},pr.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!r)return!1;if(!Qt(e,["boolean","string","number","null"]))throw new pe("Expected first argument to be of type boolean, string, number or null, but found "+Kt(ue(e))+" instead.");if(!Qt(r,["string","array"]))throw new pe("Expected second argument to be of type array or string, but found "+Kt(ue(r))+" instead.");return r.indexOf(e)>=0},pr.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},pr.prototype.outputDefined=function(){return!0},pr.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var fr=function(t,e,r){this.type=Ft,this.needle=t,this.haystack=e,this.fromIndex=r};fr.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 r=e.parse(t[1],1,$t),n=e.parse(t[2],2,$t);if(!r||!n)return null;if(!Jt(r.type,[Vt,Bt,Ft,Nt,$t]))return e.error("Expected first argument to be of type boolean, string, number or null, but found "+Kt(r.type)+" instead");if(4===t.length){var o=e.parse(t[3],3,Ft);return o?new fr(r,n,o):null}return new fr(r,n)},fr.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!Qt(e,["boolean","string","number","null"]))throw new pe("Expected first argument to be of type boolean, string, number or null, but found "+Kt(ue(e))+" instead.");if(!Qt(r,["string","array"]))throw new pe("Expected second argument to be of type array or string, but found "+Kt(ue(r))+" instead.");if(this.fromIndex){var n=this.fromIndex.evaluate(t);return r.indexOf(e,n)}return r.indexOf(e)},fr.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)},fr.prototype.outputDefined=function(){return!1},fr.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 hr=function(t,e,r,n,o,i){this.inputType=t,this.type=e,this.input=r,this.cases=n,this.outputs=o,this.otherwise=i};hr.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 r,n;e.expectedType&&"value"!==e.expectedType.kind&&(n=e.expectedType);for(var o={},i=[],a=2;a<t.length-1;a+=2){var s=t[a],u=t[a+1];Array.isArray(s)||(s=[s]);var c=e.concat(a);if(0===s.length)return c.error("Expected at least one branch label.");for(var l=0,p=s;l<p.length;l+=1){var f=p[l];if("number"!=typeof f&&"string"!=typeof f)return c.error("Branch labels must be numbers or strings.");if("number"==typeof f&&Math.abs(f)>Number.MAX_SAFE_INTEGER)return c.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof f&&Math.floor(f)!==f)return c.error("Numeric branch labels must be integer values.");if(r){if(c.checkSubtype(r,ue(f)))return null}else r=ue(f);if(void 0!==o[String(f)])return c.error("Branch labels must be unique.");o[String(f)]=i.length}var h=e.parse(u,a,n);if(!h)return null;n=n||h.type,i.push(h)}var d=e.parse(t[1],1,$t);if(!d)return null;var m=e.parse(t[t.length-1],t.length-1,n);return m?"value"!==d.type.kind&&e.concat(1).checkSubtype(r,d.type)?null:new hr(r,n,d,o,i,m):null},hr.prototype.evaluate=function(t){var e=this.input.evaluate(t);return(ue(e)===this.inputType&&this.outputs[this.cases[e]]||this.otherwise).evaluate(t)},hr.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},hr.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))&&this.otherwise.outputDefined()},hr.prototype.serialize=function(){for(var t=this,e=["match",this.input.serialize()],r=[],n={},o=0,i=Object.keys(this.cases).sort();o<i.length;o+=1){var a=i[o];void 0===(p=n[this.cases[a]])?(n[this.cases[a]]=r.length,r.push([this.cases[a],[a]])):r[p][1].push(a)}for(var s=function(e){return"number"===t.inputType.kind?Number(e):e},u=0,c=r;u<c.length;u+=1){var l=c[u],p=l[0],f=l[1];e.push(1===f.length?s(f[0]):f.map(s)),e.push(this.outputs[outputIndex$1].serialize())}return e.push(this.otherwise.serialize()),e};var dr=function(t,e,r){this.type=t,this.branches=e,this.otherwise=r};dr.parse=function(t,e){if(t.length<4)return e.error("Expected at least 3 arguments, but found only "+(t.length-1)+".");if(t.length%2!=0)return e.error("Expected an odd number of arguments.");var r;e.expectedType&&"value"!==e.expectedType.kind&&(r=e.expectedType);for(var n=[],o=1;o<t.length-1;o+=2){var i=e.parse(t[o],o,Vt);if(!i)return null;var a=e.parse(t[o+1],o+1,r);if(!a)return null;n.push([i,a]),r=r||a.type}var s=e.parse(t[t.length-1],t.length-1,r);return s?new dr(r,n,s):null},dr.prototype.evaluate=function(t){for(var e=0,r=this.branches;e<r.length;e+=1){var n=r[e],o=n[1];if(n[0].evaluate(t))return o.evaluate(t)}return this.otherwise.evaluate(t)},dr.prototype.eachChild=function(t){for(var e=0,r=this.branches;e<r.length;e+=1){var n=r[e],o=n[1];t(n[0]),t(o)}t(this.otherwise)},dr.prototype.outputDefined=function(){return this.branches.every((function(t){return t[1].outputDefined()}))&&this.otherwise.outputDefined()},dr.prototype.serialize=function(){var t=["case"];return this.eachChild((function(e){t.push(e.serialize())})),t};var mr=function(t,e,r,n){this.type=t,this.input=e,this.beginIndex=r,this.endIndex=n};function yr(t,e){return"=="===t||"!="===t?"boolean"===e.kind||"string"===e.kind||"number"===e.kind||"null"===e.kind||"value"===e.kind:"string"===e.kind||"number"===e.kind||"value"===e.kind}function vr(t,e,r,n){return 0===n.compare(e,r)}function gr(t,e,r){var n="=="!==t&&"!="!==t;return function(){function o(t,e,r){this.type=Vt,this.lhs=t,this.rhs=e,this.collator=r,this.hasUntypedArgument="value"===t.type.kind||"value"===e.type.kind}return o.parse=function(t,e){if(3!==t.length&&4!==t.length)return e.error("Expected two or three arguments.");var r=t[0],i=e.parse(t[1],1,$t);if(!i)return null;if(!yr(r,i.type))return e.concat(1).error('"'+r+"\" comparisons are not supported for type '"+Kt(i.type)+"'.");var a=e.parse(t[2],2,$t);if(!a)return null;if(!yr(r,a.type))return e.concat(2).error('"'+r+"\" comparisons are not supported for type '"+Kt(a.type)+"'.");if(i.type.kind!==a.type.kind&&"value"!==i.type.kind&&"value"!==a.type.kind)return e.error("Cannot compare types '"+Kt(i.type)+"' and '"+Kt(a.type)+"'.");n&&("value"===i.type.kind&&"value"!==a.type.kind?i=new he(a.type,[i]):"value"!==i.type.kind&&"value"===a.type.kind&&(a=new he(i.type,[a])));var s=null;if(4===t.length){if("string"!==i.type.kind&&"string"!==a.type.kind&&"value"!==i.type.kind&&"value"!==a.type.kind)return e.error("Cannot use collator to compare non-string types.");if(!(s=e.parse(t[3],3,Gt)))return null}return new o(i,a,s)},o.prototype.evaluate=function(o){var i=this.lhs.evaluate(o),a=this.rhs.evaluate(o);if(n&&this.hasUntypedArgument){var s=ue(i),u=ue(a);if(s.kind!==u.kind||"string"!==s.kind&&"number"!==s.kind)throw new pe('Expected arguments for "'+t+'" to be (string, string) or (number, number), but found ('+s.kind+", "+u.kind+") instead.")}if(this.collator&&!n&&this.hasUntypedArgument){var c=ue(i),l=ue(a);if("string"!==c.kind||"string"!==l.kind)return e(o,i,a)}return this.collator?r(o,i,a,this.collator.evaluate(o)):e(o,i,a)},o.prototype.eachChild=function(t){t(this.lhs),t(this.rhs),this.collator&&t(this.collator)},o.prototype.outputDefined=function(){return!0},o.prototype.serialize=function(){var e=[t];return this.eachChild((function(t){e.push(t.serialize())})),e},o}()}mr.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 r=e.parse(t[1],1,$t),n=e.parse(t[2],2,Ft);if(!r||!n)return null;if(!Jt(r.type,[Ht($t),Bt,$t]))return e.error("Expected first argument to be of type array or string, but found "+Kt(r.type)+" instead");if(4===t.length){var o=e.parse(t[3],3,Ft);return o?new mr(r.type,r,n,o):null}return new mr(r.type,r,n)},mr.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=this.beginIndex.evaluate(t);if(!Qt(e,["string","array"]))throw new pe("Expected first argument to be of type array or string, but found "+Kt(ue(e))+" instead.");if(this.endIndex){var n=this.endIndex.evaluate(t);return e.slice(r,n)}return e.slice(r)},mr.prototype.eachChild=function(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)},mr.prototype.outputDefined=function(){return!1},mr.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 br=gr("==",(function(t,e,r){return e===r}),vr),_r=gr("!=",(function(t,e,r){return e!==r}),(function(t,e,r,n){return!vr(0,e,r,n)})),xr=gr("<",(function(t,e,r){return e<r}),(function(t,e,r,n){return n.compare(e,r)<0})),wr=gr(">",(function(t,e,r){return e>r}),(function(t,e,r,n){return n.compare(e,r)>0})),Or=gr("<=",(function(t,e,r){return e<=r}),(function(t,e,r,n){return n.compare(e,r)<=0})),Er=gr(">=",(function(t,e,r){return e>=r}),(function(t,e,r,n){return n.compare(e,r)>=0})),Sr=function(t,e,r,n,o){this.type=Bt,this.number=t,this.locale=e,this.currency=r,this.minFractionDigits=n,this.maxFractionDigits=o};Sr.parse=function(t,e){if(3!==t.length)return e.error("Expected two arguments.");var r=e.parse(t[1],1,Ft);if(!r)return null;var n=t[2];if("object"!=typeof n||Array.isArray(n))return e.error("NumberFormat options argument must be an object.");var o=null;if(n.locale&&!(o=e.parse(n.locale,1,Bt)))return null;var i=null;if(n.currency&&!(i=e.parse(n.currency,1,Bt)))return null;var a=null;if(n["min-fraction-digits"]&&!(a=e.parse(n["min-fraction-digits"],1,Ft)))return null;var s=null;return n["max-fraction-digits"]&&!(s=e.parse(n["max-fraction-digits"],1,Ft))?null:new Sr(r,o,i,a,s)},Sr.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))},Sr.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)},Sr.prototype.outputDefined=function(){return!1},Sr.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 Pr=function(t){this.type=Ft,this.input=t};Pr.parse=function(t,e){if(2!==t.length)return e.error("Expected 1 argument, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1);return r?"array"!==r.type.kind&&"string"!==r.type.kind&&"value"!==r.type.kind?e.error("Expected argument of type string or array, but found "+Kt(r.type)+" instead."):new Pr(r):null},Pr.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 pe("Expected value to be of type string or array, but found "+Kt(ue(e))+" instead.")},Pr.prototype.eachChild=function(t){t(this.input)},Pr.prototype.outputDefined=function(){return!1},Pr.prototype.serialize=function(){var t=["length"];return this.eachChild((function(e){t.push(e.serialize())})),t};var jr={"==":br,"!=":_r,">":wr,"<":xr,">=":Er,"<=":Or,array:he,at:lr,boolean:he,case:dr,coalesce:ur,collator:xe,format:de,image:me,in:pr,"index-of":fr,interpolate:ar,"interpolate-hcl":ar,"interpolate-lab":ar,length:Pr,let:cr,literal:le,match:hr,number:he,"number-format":Sr,object:he,slice:mr,step:$e,string:he,"to-boolean":ve,"to-color":ve,"to-number":ve,"to-string":ve,var:Ve,within:ze};function Ar(t,e){var r=e[0],n=e[1],o=e[2],i=e[3];r=r.evaluate(t),n=n.evaluate(t),o=o.evaluate(t);var a=i?i.evaluate(t):1,s=ae(r,n,o,a);if(s)throw new pe(s);return new ee(r/255*a,n/255*a,o/255*a,a)}function Cr(t,e){return t in e}function Tr(t,e){var r=e[t];return void 0===r?null:r}function kr(t){return{type:t}}function Mr(t){return{result:"success",value:t}}function Ir(t){return{result:"error",value:t}}function Dr(t){return"data-driven"===t["property-type"]||"cross-faded-data-driven"===t["property-type"]}function Lr(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function Rr(t){return!!t.expression&&t.expression.interpolated}function zr(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":null===t?"null":typeof t}function Nr(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)}function Fr(t){return t}function Br(t,e,r){return void 0!==t?t:void 0!==e?e:void 0!==r?r:void 0}function Vr(t,e,r,n,o){return Br(typeof r===o?n[r]:void 0,t.default,e.default)}function Ur(t,e,r){if("number"!==zr(r))return Br(t.default,e.default);var n=t.stops.length;if(1===n)return t.stops[0][1];if(r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[n-1][0])return t.stops[n-1][1];var o=qe(t.stops.map((function(t){return t[0]})),r);return t.stops[o][1]}function qr(t,e,r){var n=void 0!==t.base?t.base:1;if("number"!==zr(r))return Br(t.default,e.default);var o=t.stops.length;if(1===o)return t.stops[0][1];if(r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[o-1][0])return t.stops[o-1][1];var i=qe(t.stops.map((function(t){return t[0]})),r),a=function(t,e,r,n){var o=n-r,i=t-r;return 0===o?0:1===e?i/o:(Math.pow(e,i)-1)/(Math.pow(e,o)-1)}(r,n,t.stops[i][0],t.stops[i+1][0]),s=t.stops[i][1],u=t.stops[i+1][1],c=We[e.type]||Fr;if(t.colorSpace&&"rgb"!==t.colorSpace){var l=ir[t.colorSpace];c=function(t,e){return l.reverse(l.interpolate(l.forward(t),l.forward(e),a))}}return"function"==typeof s.evaluate?{evaluate:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var r=s.evaluate.apply(void 0,t),n=u.evaluate.apply(void 0,t);if(void 0!==r&&void 0!==n)return c(r,n,a)}}:c(s,u,a)}function $r(t,e,r){return"color"===e.type?r=ee.parse(r):"formatted"===e.type?r=oe.fromString(r.toString()):"resolvedImage"===e.type?r=ie.fromString(r.toString()):zr(r)===e.type||"enum"===e.type&&e.values[r]||(r=void 0),Br(r,t.default,e.default)}_e.register(jr,{error:[{kind:"error"},[Bt],function(t,e){throw new pe(e[0].evaluate(t))}],typeof:[Bt,[$t],function(t,e){return Kt(ue(e[0].evaluate(t)))}],"to-rgba":[Ht(Ft,4),[Ut],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[Ut,[Ft,Ft,Ft],Ar],rgba:[Ut,[Ft,Ft,Ft,Ft],Ar],has:{type:Vt,overloads:[[[Bt],function(t,e){return Cr(e[0].evaluate(t),t.properties())}],[[Bt,qt],function(t,e){var r=e[1];return Cr(e[0].evaluate(t),r.evaluate(t))}]]},get:{type:$t,overloads:[[[Bt],function(t,e){return Tr(e[0].evaluate(t),t.properties())}],[[Bt,qt],function(t,e){var r=e[1];return Tr(e[0].evaluate(t),r.evaluate(t))}]]},"feature-state":[$t,[Bt],function(t,e){return Tr(e[0].evaluate(t),t.featureState||{})}],properties:[qt,[],function(t){return t.properties()}],"geometry-type":[Bt,[],function(t){return t.geometryType()}],id:[$t,[],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:[$t,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],"+":[Ft,kr(Ft),function(t,e){for(var r=0,n=0,o=e;n<o.length;n+=1)r+=o[n].evaluate(t);return r}],"*":[Ft,kr(Ft),function(t,e){for(var r=1,n=0,o=e;n<o.length;n+=1)r*=o[n].evaluate(t);return r}],"-":{type:Ft,overloads:[[[Ft,Ft],function(t,e){var r=e[1];return e[0].evaluate(t)-r.evaluate(t)}],[[Ft],function(t,e){return-e[0].evaluate(t)}]]},"/":[Ft,[Ft,Ft],function(t,e){var r=e[1];return e[0].evaluate(t)/r.evaluate(t)}],"%":[Ft,[Ft,Ft],function(t,e){var r=e[1];return e[0].evaluate(t)%r.evaluate(t)}],ln2:[Ft,[],function(){return Math.LN2}],pi:[Ft,[],function(){return Math.PI}],e:[Ft,[],function(){return Math.E}],"^":[Ft,[Ft,Ft],function(t,e){var r=e[1];return Math.pow(e[0].evaluate(t),r.evaluate(t))}],sqrt:[Ft,[Ft],function(t,e){return Math.sqrt(e[0].evaluate(t))}],log10:[Ft,[Ft],function(t,e){return Math.log(e[0].evaluate(t))/Math.LN10}],ln:[Ft,[Ft],function(t,e){return Math.log(e[0].evaluate(t))}],log2:[Ft,[Ft],function(t,e){return Math.log(e[0].evaluate(t))/Math.LN2}],sin:[Ft,[Ft],function(t,e){return Math.sin(e[0].evaluate(t))}],cos:[Ft,[Ft],function(t,e){return Math.cos(e[0].evaluate(t))}],tan:[Ft,[Ft],function(t,e){return Math.tan(e[0].evaluate(t))}],asin:[Ft,[Ft],function(t,e){return Math.asin(e[0].evaluate(t))}],acos:[Ft,[Ft],function(t,e){return Math.acos(e[0].evaluate(t))}],atan:[Ft,[Ft],function(t,e){return Math.atan(e[0].evaluate(t))}],min:[Ft,kr(Ft),function(t,e){return Math.min.apply(Math,e.map((function(e){return e.evaluate(t)})))}],max:[Ft,kr(Ft),function(t,e){return Math.max.apply(Math,e.map((function(e){return e.evaluate(t)})))}],abs:[Ft,[Ft],function(t,e){return Math.abs(e[0].evaluate(t))}],round:[Ft,[Ft],function(t,e){var r=e[0].evaluate(t);return r<0?-Math.round(-r):Math.round(r)}],floor:[Ft,[Ft],function(t,e){return Math.floor(e[0].evaluate(t))}],ceil:[Ft,[Ft],function(t,e){return Math.ceil(e[0].evaluate(t))}],"filter-==":[Vt,[Bt,$t],function(t,e){var r=e[0],n=e[1];return t.properties()[r.value]===n.value}],"filter-id-==":[Vt,[$t],function(t,e){var r=e[0];return t.id()===r.value}],"filter-type-==":[Vt,[Bt],function(t,e){var r=e[0];return t.geometryType()===r.value}],"filter-<":[Vt,[Bt,$t],function(t,e){var r=e[0],n=e[1],o=t.properties()[r.value],i=n.value;return typeof o==typeof i&&o<i}],"filter-id-<":[Vt,[$t],function(t,e){var r=e[0],n=t.id(),o=r.value;return typeof n==typeof o&&n<o}],"filter->":[Vt,[Bt,$t],function(t,e){var r=e[0],n=e[1],o=t.properties()[r.value],i=n.value;return typeof o==typeof i&&o>i}],"filter-id->":[Vt,[$t],function(t,e){var r=e[0],n=t.id(),o=r.value;return typeof n==typeof o&&n>o}],"filter-<=":[Vt,[Bt,$t],function(t,e){var r=e[0],n=e[1],o=t.properties()[r.value],i=n.value;return typeof o==typeof i&&o<=i}],"filter-id-<=":[Vt,[$t],function(t,e){var r=e[0],n=t.id(),o=r.value;return typeof n==typeof o&&n<=o}],"filter->=":[Vt,[Bt,$t],function(t,e){var r=e[0],n=e[1],o=t.properties()[r.value],i=n.value;return typeof o==typeof i&&o>=i}],"filter-id->=":[Vt,[$t],function(t,e){var r=e[0],n=t.id(),o=r.value;return typeof n==typeof o&&n>=o}],"filter-has":[Vt,[$t],function(t,e){return e[0].value in t.properties()}],"filter-has-id":[Vt,[],function(t){return null!==t.id()&&void 0!==t.id()}],"filter-type-in":[Vt,[Ht(Bt)],function(t,e){return e[0].value.indexOf(t.geometryType())>=0}],"filter-id-in":[Vt,[Ht($t)],function(t,e){return e[0].value.indexOf(t.id())>=0}],"filter-in-small":[Vt,[Bt,Ht($t)],function(t,e){var r=e[0];return e[1].value.indexOf(t.properties()[r.value])>=0}],"filter-in-large":[Vt,[Bt,Ht($t)],function(t,e){var r=e[0],n=e[1];return function(t,e,r,n){for(;r<=n;){var o=r+n>>1;if(e[o]===t)return!0;e[o]>t?n=o-1:r=o+1}return!1}(t.properties()[r.value],n.value,0,n.value.length-1)}],all:{type:Vt,overloads:[[[Vt,Vt],function(t,e){var r=e[1];return e[0].evaluate(t)&&r.evaluate(t)}],[kr(Vt),function(t,e){for(var r=0,n=e;r<n.length;r+=1)if(!n[r].evaluate(t))return!1;return!0}]]},any:{type:Vt,overloads:[[[Vt,Vt],function(t,e){var r=e[1];return e[0].evaluate(t)||r.evaluate(t)}],[kr(Vt),function(t,e){for(var r=0,n=e;r<n.length;r+=1)if(n[r].evaluate(t))return!0;return!1}]]},"!":[Vt,[Vt],function(t,e){return!e[0].evaluate(t)}],"is-supported-script":[Vt,[Bt],function(t,e){var r=t.globals&&t.globals.isSupportedScript;return!r||r(e[0].evaluate(t))}],upcase:[Bt,[Bt],function(t,e){return e[0].evaluate(t).toUpperCase()}],downcase:[Bt,[Bt],function(t,e){return e[0].evaluate(t).toLowerCase()}],concat:[Bt,kr($t),function(t,e){return e.map((function(e){return ce(e.evaluate(t))})).join("")}],"resolved-locale":[Bt,[Gt],function(t,e){return e[0].evaluate(t).resolvedLocale()}]});var Gr=function(t,e){this.expression=t,this._warningHistory={},this._evaluator=new be,this._defaultValue=e?function(t){return"color"===t.type&&Nr(t.default)?new ee(0,0,0,0):"color"===t.type?ee.parse(t.default)||null:void 0===t.default?null:t.default}(e):null,this._enumValues=e&&"enum"===e.type?e.values:null};function Wr(t){return Array.isArray(t)&&t.length>0&&"string"==typeof t[0]&&t[0]in jr}function Zr(t,e){var r=new Ue(jr,[],e?function(t){var e={color:Ut,string:Bt,number:Ft,enum:Bt,boolean:Vt,formatted:Wt,resolvedImage:Zt};return"array"===t.type?Ht(e[t.value]||$t,t.length):e[t.type]}(e):void 0),n=r.parse(t,void 0,void 0,void 0,e&&"string"===e.type?{typeAnnotation:"coerce"}:void 0);return n?Mr(new Gr(n,e)):Ir(r.errors)}Gr.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,o,i){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=r,this._evaluator.canonical=n,this._evaluator.availableImages=o||null,this._evaluator.formattedSection=i,this.expression.evaluate(this._evaluator)},Gr.prototype.evaluate=function(t,e,r,n,o,i){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=r||null,this._evaluator.canonical=n,this._evaluator.availableImages=o||null,this._evaluator.formattedSection=i||null;try{var a=this.expression.evaluate(this._evaluator);if(null==a||"number"==typeof a&&a!=a)return this._defaultValue;if(this._enumValues&&!(a in this._enumValues))throw new pe("Expected value to be one of "+Object.keys(this._enumValues).map((function(t){return JSON.stringify(t)})).join(", ")+", but found "+JSON.stringify(a)+" instead.");return a}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,"undefined"!=typeof console&&console.warn(t.message)),this._defaultValue}};var Hr=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent="constant"!==t&&!Fe(e.expression)};Hr.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,o,i){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,o,i)},Hr.prototype.evaluate=function(t,e,r,n,o,i){return this._styleExpression.evaluate(t,e,r,n,o,i)};var Kr=function(t,e,r,n){this.kind=t,this.zoomStops=r,this._styleExpression=e,this.isStateDependent="camera"!==t&&!Fe(e.expression),this.interpolationType=n};function Yr(t,e){if("error"===(t=Zr(t,e)).result)return t;var r=t.value.expression,n=Ne(r);if(!n&&!Dr(e))return Ir([new Rt("","data expressions not supported")]);var o=Be(r,["zoom"]);if(!o&&!Lr(e))return Ir([new Rt("","zoom expressions not supported")]);var i=function t(e){var r=null;if(e instanceof cr)r=t(e.result);else if(e instanceof ur)for(var n=0,o=e.args;n<o.length&&!(r=t(o[n]));n+=1);else(e instanceof $e||e instanceof ar)&&e.input instanceof _e&&"zoom"===e.input.name&&(r=e);return r instanceof Rt||e.eachChild((function(e){var n=t(e);n instanceof Rt?r=n:!r&&n?r=new Rt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):r&&n&&r!==n&&(r=new Rt("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),r}(r);return i||o?i instanceof Rt?Ir([i]):i instanceof ar&&!Rr(e)?Ir([new Rt("",'"interpolate" expressions cannot be used with this property')]):Mr(i?new Kr(n?"camera":"composite",t.value,i.labels,i instanceof ar?i.interpolation:void 0):new Hr(n?"constant":"source",t.value)):Ir([new Rt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}Kr.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,o,i){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,o,i)},Kr.prototype.evaluate=function(t,e,r,n,o,i){return this._styleExpression.evaluate(t,e,r,n,o,i)},Kr.prototype.interpolationFactor=function(t,e,r){return this.interpolationType?ar.interpolationFactor(this.interpolationType,t,e,r):0};var Xr=function(t,e){this._parameters=t,this._specification=e,It(this,function t(e,r){var n,o,i,a="color"===r.type,s=e.stops&&"object"==typeof e.stops[0][0],u=s||!(s||void 0!==e.property),c=e.type||(Rr(r)?"exponential":"interval");if(a&&((e=It({},e)).stops&&(e.stops=e.stops.map((function(t){return[t[0],ee.parse(t[1])]}))),e.default=ee.parse(e.default?e.default:r.default)),e.colorSpace&&"rgb"!==e.colorSpace&&!ir[e.colorSpace])throw new Error("Unknown color space: "+e.colorSpace);if("exponential"===c)n=qr;else if("interval"===c)n=Ur;else if("categorical"===c){n=Vr,o=Object.create(null);for(var l=0,p=e.stops;l<p.length;l+=1){var f=p[l];o[f[0]]=f[1]}i=typeof e.stops[0][0]}else{if("identity"!==c)throw new Error('Unknown function type "'+c+'"');n=$r}if(s){for(var h={},d=[],m=0;m<e.stops.length;m++){var y=e.stops[m],v=y[0].zoom;void 0===h[v]&&(h[v]={zoom:v,type:e.type,property:e.property,default:e.default,stops:[]},d.push(v)),h[v].stops.push([y[0].value,y[1]])}for(var g=[],b=0,_=d;b<_.length;b+=1){var x=_[b];g.push([h[x].zoom,t(h[x],r)])}var w={name:"linear"};return{kind:"composite",interpolationType:w,interpolationFactor:ar.interpolationFactor.bind(void 0,w),zoomStops:g.map((function(t){return t[0]})),evaluate:function(t,n){var o=t.zoom;return qr({stops:g,base:e.base},r,o).evaluate(o,n)}}}if(u){var O="exponential"===c?{name:"exponential",base:void 0!==e.base?e.base:1}:null;return{kind:"camera",interpolationType:O,interpolationFactor:ar.interpolationFactor.bind(void 0,O),zoomStops:e.stops.map((function(t){return t[0]})),evaluate:function(t){return n(e,r,t.zoom,o,i)}}}return{kind:"source",evaluate:function(t,a){var s=a&&a.properties?a.properties[e.property]:void 0;return void 0===s?Br(e.default,r.default):n(e,r,s,o,i)}}}(this._parameters,this._specification))};function Jr(t){var e=t.key,r=t.value,n=t.valueSpec||{},o=t.objectElementValidators||{},i=t.style,a=t.styleSpec,s=[],u=zr(r);if("object"!==u)return[new kt(e,r,"object expected, "+u+" found")];for(var c in r){var l=c.split(".")[0],p=n[l]||n["*"],f=void 0;if(o[l])f=o[l];else if(n[l])f=En;else if(o["*"])f=o["*"];else{if(!n["*"]){s.push(new kt(e,r[c],'unknown property "'+c+'"'));continue}f=En}s=s.concat(f({key:(e?e+".":e)+c,value:r[c],valueSpec:p,style:i,styleSpec:a,object:r,objectKey:c},r))}for(var h in n)o[h]||n[h].required&&void 0===n[h].default&&void 0===r[h]&&s.push(new kt(e,r,'missing required property "'+h+'"'));return s}function Qr(t){var e=t.value,r=t.valueSpec,n=t.style,o=t.styleSpec,i=t.key,a=t.arrayElementValidator||En;if("array"!==zr(e))return[new kt(i,e,"array expected, "+zr(e)+" found")];if(r.length&&e.length!==r.length)return[new kt(i,e,"array length "+r.length+" expected, length "+e.length+" found")];if(r["min-length"]&&e.length<r["min-length"])return[new kt(i,e,"array length at least "+r["min-length"]+" expected, length "+e.length+" found")];var s={type:r.value,values:r.values};o.$version<7&&(s.function=r.function),"object"===zr(r.value)&&(s=r.value);for(var u=[],c=0;c<e.length;c++)u=u.concat(a({array:e,arrayIndex:c,value:e[c],valueSpec:s,style:n,styleSpec:o,key:i+"["+c+"]"}));return u}function tn(t){var e=t.key,r=t.value,n=t.valueSpec,o=zr(r);return"number"===o&&r!=r&&(o="NaN"),"number"!==o?[new kt(e,r,"number expected, "+o+" found")]:"minimum"in n&&r<n.minimum?[new kt(e,r,r+" is less than the minimum value "+n.minimum)]:"maximum"in n&&r>n.maximum?[new kt(e,r,r+" is greater than the maximum value "+n.maximum)]:[]}function en(t){var e,r,n,o=t.valueSpec,i=Dt(t.value.type),a={},s="categorical"!==i&&void 0===t.value.property,u=!s,c="array"===zr(t.value.stops)&&"array"===zr(t.value.stops[0])&&"object"===zr(t.value.stops[0][0]),l=Jr({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if("identity"===i)return[new kt(t.key,t.value,'identity function may not have a "stops" property')];var e=[],r=t.value;return e=e.concat(Qr({key:t.key,value:r,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:p})),"array"===zr(r)&&0===r.length&&e.push(new kt(t.key,r,"array must have at least one stop")),e},default:function(t){return En({key:t.key,value:t.value,valueSpec:o,style:t.style,styleSpec:t.styleSpec})}}});return"identity"===i&&s&&l.push(new kt(t.key,t.value,'missing required property "property"')),"identity"===i||t.value.stops||l.push(new kt(t.key,t.value,'missing required property "stops"')),"exponential"===i&&t.valueSpec.expression&&!Rr(t.valueSpec)&&l.push(new kt(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(u&&!Dr(t.valueSpec)?l.push(new kt(t.key,t.value,"property functions not supported")):s&&!Lr(t.valueSpec)&&l.push(new kt(t.key,t.value,"zoom functions not supported"))),"categorical"!==i&&!c||void 0!==t.value.property||l.push(new kt(t.key,t.value,'"property" property is required')),l;function p(t){var e=[],i=t.value,s=t.key;if("array"!==zr(i))return[new kt(s,i,"array expected, "+zr(i)+" found")];if(2!==i.length)return[new kt(s,i,"array length 2 expected, length "+i.length+" found")];if(c){if("object"!==zr(i[0]))return[new kt(s,i,"object expected, "+zr(i[0])+" found")];if(void 0===i[0].zoom)return[new kt(s,i,"object stop key must have zoom")];if(void 0===i[0].value)return[new kt(s,i,"object stop key must have value")];if(n&&n>Dt(i[0].zoom))return[new kt(s,i[0].zoom,"stop zoom values must appear in ascending order")];Dt(i[0].zoom)!==n&&(n=Dt(i[0].zoom),r=void 0,a={}),e=e.concat(Jr({key:s+"[0]",value:i[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:tn,value:f}}))}else e=e.concat(f({key:s+"[0]",value:i[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},i));return Wr(Lt(i[1]))?e.concat([new kt(s+"[1]",i[1],"expressions are not allowed in function stops.")]):e.concat(En({key:s+"[1]",value:i[1],valueSpec:o,style:t.style,styleSpec:t.styleSpec}))}function f(t,n){var s=zr(t.value),u=Dt(t.value),c=null!==t.value?t.value:n;if(e){if(s!==e)return[new kt(t.key,c,s+" stop domain type must match previous stop domain type "+e)]}else e=s;if("number"!==s&&"string"!==s&&"boolean"!==s)return[new kt(t.key,c,"stop domain value must be a number, string, or boolean")];if("number"!==s&&"categorical"!==i){var l="number expected, "+s+" found";return Dr(o)&&void 0===i&&(l+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new kt(t.key,c,l)]}return"categorical"!==i||"number"!==s||isFinite(u)&&Math.floor(u)===u?"categorical"!==i&&"number"===s&&void 0!==r&&u<r?[new kt(t.key,c,"stop domain values must appear in ascending order")]:(r=u,"categorical"===i&&u in a?[new kt(t.key,c,"stop domain values must be unique")]:(a[u]=!0,[])):[new kt(t.key,c,"integer expected, found "+u)]}}function rn(t){var e=("property"===t.expressionContext?Yr:Zr)(Lt(t.value),t.valueSpec);if("error"===e.result)return e.value.map((function(e){return new kt(""+t.key+e.key,t.value,e.message)}));var r=e.value.expression||e.value._styleExpression.expression;if("property"===t.expressionContext&&"text-font"===t.propertyKey&&!r.outputDefined())return[new kt(t.key,t.value,'Invalid data expression for "'+t.propertyKey+'". Output values must be contained as literals within the expression.')];if("property"===t.expressionContext&&"layout"===t.propertyType&&!Fe(r))return[new kt(t.key,t.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===t.expressionContext&&!Fe(r))return[new kt(t.key,t.value,'"feature-state" data expressions are not supported with filters.')];if(t.expressionContext&&0===t.expressionContext.indexOf("cluster")){if(!Be(r,["zoom","feature-state"]))return[new kt(t.key,t.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===t.expressionContext&&!Ne(r))return[new kt(t.key,t.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function nn(t){var e=t.key,r=t.value,n=t.valueSpec,o=[];return Array.isArray(n.values)?-1===n.values.indexOf(Dt(r))&&o.push(new kt(e,r,"expected one of ["+n.values.join(", ")+"], "+JSON.stringify(r)+" found")):-1===Object.keys(n.values).indexOf(Dt(r))&&o.push(new kt(e,r,"expected one of ["+Object.keys(n.values).join(", ")+"], "+JSON.stringify(r)+" found")),o}function on(t){if(!0===t||!1===t)return!0;if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case"has":return t.length>=2&&"$id"!==t[1]&&"$type"!==t[1];case"in":return t.length>=3&&("string"!=typeof t[1]||Array.isArray(t[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(var e=0,r=t.slice(1);e<r.length;e+=1){var n=r[e];if(!on(n)&&"boolean"!=typeof n)return!1}return!0;default:return!0}}Xr.deserialize=function(t){return new Xr(t._parameters,t._specification)},Xr.serialize=function(t){return{_parameters:t._parameters,_specification:t._specification}};var an={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function sn(t){if(null==t)return{filter:function(){return!0},needGeometry:!1};on(t)||(t=cn(t));var e=Zr(t,an);if("error"===e.result)throw new Error(e.value.map((function(t){return t.key+": "+t.message})).join(", "));return{filter:function(t,r,n){return e.value.evaluate(t,r,{},n)},needGeometry:function t(e){if(!Array.isArray(e))return!1;if("within"===e[0])return!0;for(var r=1;r<e.length;r++)if(t(e[r]))return!0;return!1}(t)}}function un(t,e){return t<e?-1:t>e?1:0}function cn(t){if(!t)return!0;var e,r=t[0];return t.length<=1?"any"!==r:"=="===r?ln(t[1],t[2],"=="):"!="===r?hn(ln(t[1],t[2],"==")):"<"===r||">"===r||"<="===r||">="===r?ln(t[1],t[2],r):"any"===r?(e=t.slice(1),["any"].concat(e.map(cn))):"all"===r?["all"].concat(t.slice(1).map(cn)):"none"===r?["all"].concat(t.slice(1).map(cn).map(hn)):"in"===r?pn(t[1],t.slice(2)):"!in"===r?hn(pn(t[1],t.slice(2))):"has"===r?fn(t[1]):"!has"===r?hn(fn(t[1])):"within"!==r||t}function ln(t,e,r){switch(t){case"$type":return["filter-type-"+r,e];case"$id":return["filter-id-"+r,e];default:return["filter-"+r,t,e]}}function pn(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(un)]]:["filter-in-small",t,["literal",e]]}}function fn(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function hn(t){return["!",t]}function dn(t){return on(Lt(t.value))?rn(It({},t,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function t(e){var r=e.value,n=e.key;if("array"!==zr(r))return[new kt(n,r,"array expected, "+zr(r)+" found")];var o,i=e.styleSpec,a=[];if(r.length<1)return[new kt(n,r,"filter array must have at least 1 element")];switch(a=a.concat(nn({key:n+"[0]",value:r[0],valueSpec:i.filter_operator,style:e.style,styleSpec:e.styleSpec})),Dt(r[0])){case"<":case"<=":case">":case">=":r.length>=2&&"$type"===Dt(r[1])&&a.push(new kt(n,r,'"$type" cannot be use with operator "'+r[0]+'"'));case"==":case"!=":3!==r.length&&a.push(new kt(n,r,'filter array for operator "'+r[0]+'" must have 3 elements'));case"in":case"!in":r.length>=2&&"string"!==(o=zr(r[1]))&&a.push(new kt(n+"[1]",r[1],"string expected, "+o+" found"));for(var s=2;s<r.length;s++)o=zr(r[s]),"$type"===Dt(r[1])?a=a.concat(nn({key:n+"["+s+"]",value:r[s],valueSpec:i.geometry_type,style:e.style,styleSpec:e.styleSpec})):"string"!==o&&"number"!==o&&"boolean"!==o&&a.push(new kt(n+"["+s+"]",r[s],"string, number, or boolean expected, "+o+" found"));break;case"any":case"all":case"none":for(var u=1;u<r.length;u++)a=a.concat(t({key:n+"["+u+"]",value:r[u],style:e.style,styleSpec:e.styleSpec}));break;case"has":case"!has":o=zr(r[1]),2!==r.length?a.push(new kt(n,r,'filter array for "'+r[0]+'" operator must have 2 elements')):"string"!==o&&a.push(new kt(n+"[1]",r[1],"string expected, "+o+" found"));break;case"within":o=zr(r[1]),2!==r.length?a.push(new kt(n,r,'filter array for "'+r[0]+'" operator must have 2 elements')):"object"!==o&&a.push(new kt(n+"[1]",r[1],"object expected, "+o+" found"))}return a}(t)}function mn(t,e){var r=t.key,n=t.style,o=t.styleSpec,i=t.value,a=t.objectKey,s=o[e+"_"+t.layerType];if(!s)return[];var u=a.match(/^(.*)-transition$/);if("paint"===e&&u&&s[u[1]]&&s[u[1]].transition)return En({key:r,value:i,valueSpec:o.transition,style:n,styleSpec:o});var c,l=t.valueSpec||s[a];if(!l)return[new kt(r,i,'unknown property "'+a+'"')];if("string"===zr(i)&&Dr(l)&&!l.tokens&&(c=/^{([^}]+)}$/.exec(i)))return[new kt(r,i,'"'+a+'" does not support interpolation syntax\nUse an identity property function instead: `{ "type": "identity", "property": '+JSON.stringify(c[1])+" }`.")];var p=[];return"symbol"===t.layerType&&("text-field"===a&&n&&!n.glyphs&&p.push(new kt(r,i,'use of "text-field" requires a style "glyphs" property')),"text-font"===a&&Nr(Lt(i))&&"identity"===Dt(i.type)&&p.push(new kt(r,i,'"text-font" does not support identity functions'))),p.concat(En({key:t.key,value:i,valueSpec:l,style:n,styleSpec:o,expressionContext:"property",propertyType:e,propertyKey:a}))}function yn(t){return mn(t,"paint")}function vn(t){return mn(t,"layout")}function gn(t){var e=[],r=t.value,n=t.key,o=t.style,i=t.styleSpec;r.type||r.ref||e.push(new kt(n,r,'either "type" or "ref" is required'));var a,s=Dt(r.type),u=Dt(r.ref);if(r.id)for(var c=Dt(r.id),l=0;l<t.arrayIndex;l++){var p=o.layers[l];Dt(p.id)===c&&e.push(new kt(n,r.id,'duplicate layer id "'+r.id+'", previously used at line '+p.id.__line__))}if("ref"in r)["type","source","source-layer","filter","layout"].forEach((function(t){t in r&&e.push(new kt(n,r[t],'"'+t+'" is prohibited for ref layers'))})),o.layers.forEach((function(t){Dt(t.id)===u&&(a=t)})),a?a.ref?e.push(new kt(n,r.ref,"ref cannot reference another ref layer")):s=Dt(a.type):e.push(new kt(n,r.ref,'ref layer "'+u+'" not found'));else if("background"!==s)if(r.source){var f=o.sources&&o.sources[r.source],h=f&&Dt(f.type);f?"vector"===h&&"raster"===s?e.push(new kt(n,r.source,'layer "'+r.id+'" requires a raster source')):"raster"===h&&"raster"!==s?e.push(new kt(n,r.source,'layer "'+r.id+'" requires a vector source')):"vector"!==h||r["source-layer"]?"raster-dem"===h&&"hillshade"!==s?e.push(new kt(n,r.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==s||!r.paint||!r.paint["line-gradient"]||"geojson"===h&&f.lineMetrics||e.push(new kt(n,r,'layer "'+r.id+'" specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.')):e.push(new kt(n,r,'layer "'+r.id+'" must specify a "source-layer"')):e.push(new kt(n,r.source,'source "'+r.source+'" not found'))}else e.push(new kt(n,r,'missing required property "source"'));return e=e.concat(Jr({key:n,value:r,valueSpec:i.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(){return[]},type:function(){return En({key:n+".type",value:r.type,valueSpec:i.layer.type,style:t.style,styleSpec:t.styleSpec,object:r,objectKey:"type"})},filter:dn,layout:function(t){return Jr({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(t){return vn(It({layerType:s},t))}}})},paint:function(t){return Jr({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(t){return yn(It({layerType:s},t))}}})}}}))}function bn(t){var e=t.value,r=t.key,n=zr(e);return"string"!==n?[new kt(r,e,"string expected, "+n+" found")]:[]}var _n={promoteId:function(t){var e=t.key,r=t.value;if("string"===zr(r))return bn({key:e,value:r});var n=[];for(var o in r)n.push.apply(n,bn({key:e+"."+o,value:r[o]}));return n}};function xn(t){var e=t.value,r=t.key,n=t.styleSpec,o=t.style;if(!e.type)return[new kt(r,e,'"type" is required')];var i,a=Dt(e.type);switch(a){case"vector":case"raster":case"raster-dem":return Jr({key:r,value:e,valueSpec:n["source_"+a.replace("-","_")],style:t.style,styleSpec:n,objectElementValidators:_n});case"geojson":if(i=Jr({key:r,value:e,valueSpec:n.source_geojson,style:o,styleSpec:n,objectElementValidators:_n}),e.cluster)for(var s in e.clusterProperties){var u=e.clusterProperties[s],c=u[0],l="string"==typeof c?[c,["accumulated"],["get",s]]:c;i.push.apply(i,rn({key:r+"."+s+".map",value:u[1],expressionContext:"cluster-map"})),i.push.apply(i,rn({key:r+"."+s+".reduce",value:l,expressionContext:"cluster-reduce"}))}return i;case"video":return Jr({key:r,value:e,valueSpec:n.source_video,style:o,styleSpec:n});case"image":return Jr({key:r,value:e,valueSpec:n.source_image,style:o,styleSpec:n});case"canvas":return[new kt(r,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return nn({key:r+".type",value:e.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:o,styleSpec:n})}}function wn(t){var e=t.value,r=t.styleSpec,n=r.light,o=t.style,i=[],a=zr(e);if(void 0===e)return i;if("object"!==a)return i.concat([new kt("light",e,"object expected, "+a+" found")]);for(var s in e){var u=s.match(/^(.*)-transition$/);i=i.concat(u&&n[u[1]]&&n[u[1]].transition?En({key:s,value:e[s],valueSpec:r.transition,style:o,styleSpec:r}):n[s]?En({key:s,value:e[s],valueSpec:n[s],style:o,styleSpec:r}):[new kt(s,e[s],'unknown property "'+s+'"')])}return i}var On={"*":function(){return[]},array:Qr,boolean:function(t){var e=t.value,r=t.key,n=zr(e);return"boolean"!==n?[new kt(r,e,"boolean expected, "+n+" found")]:[]},number:tn,color:function(t){var e=t.key,r=t.value,n=zr(r);return"string"!==n?[new kt(e,r,"color expected, "+n+" found")]:null===te(r)?[new kt(e,r,'color expected, "'+r+'" found')]:[]},constants:Mt,enum:nn,filter:dn,function:en,layer:gn,object:Jr,source:xn,light:wn,string:bn,formatted:function(t){return 0===bn(t).length?[]:rn(t)},resolvedImage:function(t){return 0===bn(t).length?[]:rn(t)}};function En(t){var e=t.value,r=t.valueSpec,n=t.styleSpec;return r.expression&&Nr(Dt(e))?en(t):r.expression&&Wr(Lt(e))?rn(t):r.type&&On[r.type]?On[r.type](t):Jr(It({},t,{valueSpec:r.type?n[r.type]:r}))}function Sn(t){var e=t.value,r=t.key,n=bn(t);return n.length||(-1===e.indexOf("{fontstack}")&&n.push(new kt(r,e,'"glyphs" url must include a "{fontstack}" token')),-1===e.indexOf("{range}")&&n.push(new kt(r,e,'"glyphs" url must include a "{range}" token'))),n}function Pn(t,e){void 0===e&&(e=Tt);var r=[];return r=r.concat(En({key:"",value:t,valueSpec:e.$root,styleSpec:e,style:t,objectElementValidators:{glyphs:Sn,"*":function(){return[]}}})),t.constants&&(r=r.concat(Mt({key:"constants",value:t.constants,style:t,styleSpec:e}))),jn(r)}function jn(t){return[].concat(t).sort((function(t,e){return t.line-e.line}))}function An(t){return function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return jn(t.apply(this,e))}}Pn.source=An(xn),Pn.light=An(wn),Pn.layer=An(gn),Pn.filter=An(dn),Pn.paintProperty=An(yn),Pn.layoutProperty=An(vn);var Cn=Pn,Tn=Cn.light,kn=Cn.paintProperty,Mn=Cn.layoutProperty;function In(t,e){var r=!1;if(e&&e.length)for(var n=0,o=e;n<o.length;n+=1)t.fire(new At(new Error(o[n].message))),r=!0;return r}var Dn=Ln;function Ln(t,e,r){var n=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var o=new Int32Array(this.arrayBuffer);t=o[0],this.d=(e=o[1])+2*(r=o[2]);for(var i=0;i<this.d*this.d;i++){var a=o[3+i],s=o[3+i+1];n.push(a===s?null:o.subarray(a,s))}var u=o[3+n.length+1];this.keys=o.subarray(o[3+n.length],u),this.bboxes=o.subarray(u),this.insert=this._insertReadonly}else{this.d=e+2*r;for(var c=0;c<this.d*this.d;c++)n.push([]);this.keys=[],this.bboxes=[]}this.n=e,this.extent=t,this.padding=r,this.scale=e/t,this.uid=0;var l=r/e*t;this.min=-l,this.max=t+l}Ln.prototype.insert=function(t,e,r,n,o){this._forEachCell(e,r,n,o,this._insertCell,this.uid++),this.keys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(o)},Ln.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},Ln.prototype._insertCell=function(t,e,r,n,o,i){this.cells[o].push(i)},Ln.prototype.query=function(t,e,r,n,o){var i=this.min,a=this.max;if(t<=i&&e<=i&&a<=r&&a<=n&&!o)return Array.prototype.slice.call(this.keys);var s=[];return this._forEachCell(t,e,r,n,this._queryCell,s,{},o),s},Ln.prototype._queryCell=function(t,e,r,n,o,i,a,s){var u=this.cells[o];if(null!==u)for(var c=this.keys,l=this.bboxes,p=0;p<u.length;p++){var f=u[p];if(void 0===a[f]){var h=4*f;(s?s(l[h+0],l[h+1],l[h+2],l[h+3]):t<=l[h+2]&&e<=l[h+3]&&r>=l[h+0]&&n>=l[h+1])?(a[f]=!0,i.push(c[f])):a[f]=!1}}},Ln.prototype._forEachCell=function(t,e,r,n,o,i,a,s){for(var u=this._convertToCellCoord(t),c=this._convertToCellCoord(e),l=this._convertToCellCoord(r),p=this._convertToCellCoord(n),f=u;f<=l;f++)for(var h=c;h<=p;h++){var d=this.d*h+f;if((!s||s(this._convertFromCellCoord(f),this._convertFromCellCoord(h),this._convertFromCellCoord(f+1),this._convertFromCellCoord(h+1)))&&o.call(this,t,e,r,n,d,i,a,s))return}},Ln.prototype._convertFromCellCoord=function(t){return(t-this.padding)/this.scale},Ln.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},Ln.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=3+this.cells.length+1+1,r=0,n=0;n<this.cells.length;n++)r+=this.cells[n].length;var o=new Int32Array(e+r+this.keys.length+this.bboxes.length);o[0]=this.extent,o[1]=this.n,o[2]=this.padding;for(var i=e,a=0;a<t.length;a++){var s=t[a];o[3+a]=i,o.set(s,i),i+=s.length}return o[3+t.length]=i,o.set(this.keys,i),o[3+t.length+1]=i+=this.keys.length,o.set(this.bboxes,i),i+=this.bboxes.length,o.buffer};var Rn=a.ImageData,zn=a.ImageBitmap,Nn={};function Fn(t,e,r){void 0===r&&(r={}),Object.defineProperty(e,"_classRegistryKey",{value:t,writeable:!1}),Nn[t]={klass:e,omit:r.omit||[],shallow:r.shallow||[]}}for(var Bn in Fn("Object",Object),Dn.serialize=function(t,e){var r=t.toArrayBuffer();return e&&e.push(r),{buffer:r}},Dn.deserialize=function(t){return new Dn(t.buffer)},Fn("Grid",Dn),Fn("Color",ee),Fn("Error",Error),Fn("ResolvedImage",ie),Fn("StylePropertyFunction",Xr),Fn("StyleExpression",Gr,{omit:["_evaluator"]}),Fn("ZoomDependentExpression",Kr),Fn("ZoomConstantExpression",Hr),Fn("CompoundExpression",_e,{omit:["_evaluate"]}),jr)jr[Bn]._classRegistryKey||Fn("Expression_"+Bn,jr[Bn]);function Vn(t){return t&&"undefined"!=typeof ArrayBuffer&&(t instanceof ArrayBuffer||t.constructor&&"ArrayBuffer"===t.constructor.name)}function Un(t){return zn&&t instanceof zn}function qn(t,e){if(null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp)return t;if(Vn(t)||Un(t))return e&&e.push(t),t;if(ArrayBuffer.isView(t)){var r=t;return e&&e.push(r.buffer),r}if(t instanceof Rn)return e&&e.push(t.data.buffer),t;if(Array.isArray(t)){for(var n=[],o=0,i=t;o<i.length;o+=1)n.push(qn(i[o],e));return n}if("object"==typeof t){var a=t.constructor,s=a._classRegistryKey;if(!s)throw new Error("can't serialize object of unregistered class");var u=a.serialize?a.serialize(t,e):{};if(!a.serialize){for(var c in t)if(t.hasOwnProperty(c)&&!(Nn[s].omit.indexOf(c)>=0)){var l=t[c];u[c]=Nn[s].shallow.indexOf(c)>=0?l:qn(l,e)}t instanceof Error&&(u.message=t.message)}if(u.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==s&&(u.$name=s),u}throw new Error("can't serialize object of type "+typeof t)}function $n(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||Vn(t)||Un(t)||ArrayBuffer.isView(t)||t instanceof Rn)return t;if(Array.isArray(t))return t.map($n);if("object"==typeof t){var e=t.$name||"Object",r=Nn[e].klass;if(!r)throw new Error("can't deserialize unregistered class "+e);if(r.deserialize)return r.deserialize(t);for(var n=Object.create(r.prototype),o=0,i=Object.keys(t);o<i.length;o+=1){var a=i[o];if("$name"!==a){var s=t[a];n[a]=Nn[e].shallow.indexOf(a)>=0?s:$n(s)}}return n}throw new Error("can't deserialize object of type "+typeof t)}var Gn=function(){this.first=!0};Gn.prototype.update=function(t,e){var r=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=r,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=r,!0):(this.lastFloorZoom>r?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=e):this.lastFloorZoom<r&&(this.lastIntegerZoom=r,this.lastIntegerZoomTime=e),t!==this.lastZoom&&(this.lastZoom=t,this.lastFloorZoom=r,!0))};var Wn={"Latin-1 Supplement":function(t){return t>=128&&t<=255},Arabic:function(t){return t>=1536&&t<=1791},"Arabic Supplement":function(t){return t>=1872&&t<=1919},"Arabic Extended-A":function(t){return t>=2208&&t<=2303},"Hangul Jamo":function(t){return t>=4352&&t<=4607},"Unified Canadian Aboriginal Syllabics":function(t){return t>=5120&&t<=5759},Khmer:function(t){return t>=6016&&t<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(t){return t>=6320&&t<=6399},"General Punctuation":function(t){return t>=8192&&t<=8303},"Letterlike Symbols":function(t){return t>=8448&&t<=8527},"Number Forms":function(t){return t>=8528&&t<=8591},"Miscellaneous Technical":function(t){return t>=8960&&t<=9215},"Control Pictures":function(t){return t>=9216&&t<=9279},"Optical Character Recognition":function(t){return t>=9280&&t<=9311},"Enclosed Alphanumerics":function(t){return t>=9312&&t<=9471},"Geometric Shapes":function(t){return t>=9632&&t<=9727},"Miscellaneous Symbols":function(t){return t>=9728&&t<=9983},"Miscellaneous Symbols and Arrows":function(t){return t>=11008&&t<=11263},"CJK Radicals Supplement":function(t){return t>=11904&&t<=12031},"Kangxi Radicals":function(t){return t>=12032&&t<=12255},"Ideographic Description Characters":function(t){return t>=12272&&t<=12287},"CJK Symbols and Punctuation":function(t){return t>=12288&&t<=12351},Hiragana:function(t){return t>=12352&&t<=12447},Katakana:function(t){return t>=12448&&t<=12543},Bopomofo:function(t){return t>=12544&&t<=12591},"Hangul Compatibility Jamo":function(t){return t>=12592&&t<=12687},Kanbun:function(t){return t>=12688&&t<=12703},"Bopomofo Extended":function(t){return t>=12704&&t<=12735},"CJK Strokes":function(t){return t>=12736&&t<=12783},"Katakana Phonetic Extensions":function(t){return t>=12784&&t<=12799},"Enclosed CJK Letters and Months":function(t){return t>=12800&&t<=13055},"CJK Compatibility":function(t){return t>=13056&&t<=13311},"CJK Unified Ideographs Extension A":function(t){return t>=13312&&t<=19903},"Yijing Hexagram Symbols":function(t){return t>=19904&&t<=19967},"CJK Unified Ideographs":function(t){return t>=19968&&t<=40959},"Yi Syllables":function(t){return t>=40960&&t<=42127},"Yi Radicals":function(t){return t>=42128&&t<=42191},"Hangul Jamo Extended-A":function(t){return t>=43360&&t<=43391},"Hangul Syllables":function(t){return t>=44032&&t<=55215},"Hangul Jamo Extended-B":function(t){return t>=55216&&t<=55295},"Private Use Area":function(t){return t>=57344&&t<=63743},"CJK Compatibility Ideographs":function(t){return t>=63744&&t<=64255},"Arabic Presentation Forms-A":function(t){return t>=64336&&t<=65023},"Vertical Forms":function(t){return t>=65040&&t<=65055},"CJK Compatibility Forms":function(t){return t>=65072&&t<=65103},"Small Form Variants":function(t){return t>=65104&&t<=65135},"Arabic Presentation Forms-B":function(t){return t>=65136&&t<=65279},"Halfwidth and Fullwidth Forms":function(t){return t>=65280&&t<=65519}};function Zn(t){for(var e=0,r=t;e<r.length;e+=1)if(Hn(r[e].charCodeAt(0)))return!0;return!1}function Hn(t){return!(746!==t&&747!==t&&(t<4352||!(Wn["Bopomofo Extended"](t)||Wn.Bopomofo(t)||Wn["CJK Compatibility Forms"](t)&&!(t>=65097&&t<=65103)||Wn["CJK Compatibility Ideographs"](t)||Wn["CJK Compatibility"](t)||Wn["CJK Radicals Supplement"](t)||Wn["CJK Strokes"](t)||!(!Wn["CJK Symbols and Punctuation"](t)||t>=12296&&t<=12305||t>=12308&&t<=12319||12336===t)||Wn["CJK Unified Ideographs Extension A"](t)||Wn["CJK Unified Ideographs"](t)||Wn["Enclosed CJK Letters and Months"](t)||Wn["Hangul Compatibility Jamo"](t)||Wn["Hangul Jamo Extended-A"](t)||Wn["Hangul Jamo Extended-B"](t)||Wn["Hangul Jamo"](t)||Wn["Hangul Syllables"](t)||Wn.Hiragana(t)||Wn["Ideographic Description Characters"](t)||Wn.Kanbun(t)||Wn["Kangxi Radicals"](t)||Wn["Katakana Phonetic Extensions"](t)||Wn.Katakana(t)&&12540!==t||!(!Wn["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)||!(!Wn["Small Form Variants"](t)||t>=65112&&t<=65118||t>=65123&&t<=65126)||Wn["Unified Canadian Aboriginal Syllabics"](t)||Wn["Unified Canadian Aboriginal Syllabics Extended"](t)||Wn["Vertical Forms"](t)||Wn["Yijing Hexagram Symbols"](t)||Wn["Yi Syllables"](t)||Wn["Yi Radicals"](t))))}function Kn(t){return!(Hn(t)||function(t){return!!(Wn["Latin-1 Supplement"](t)&&(167===t||169===t||174===t||177===t||188===t||189===t||190===t||215===t||247===t)||Wn["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)||Wn["Letterlike Symbols"](t)||Wn["Number Forms"](t)||Wn["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)||Wn["Control Pictures"](t)&&9251!==t||Wn["Optical Character Recognition"](t)||Wn["Enclosed Alphanumerics"](t)||Wn["Geometric Shapes"](t)||Wn["Miscellaneous Symbols"](t)&&!(t>=9754&&t<=9759)||Wn["Miscellaneous Symbols and Arrows"](t)&&(t>=11026&&t<=11055||t>=11088&&t<=11097||t>=11192&&t<=11243)||Wn["CJK Symbols and Punctuation"](t)||Wn.Katakana(t)||Wn["Private Use Area"](t)||Wn["CJK Compatibility Forms"](t)||Wn["Small Form Variants"](t)||Wn["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 Yn(t){return t>=1424&&t<=2303||Wn["Arabic Presentation Forms-A"](t)||Wn["Arabic Presentation Forms-B"](t)}function Xn(t,e){return!(!e&&Yn(t)||t>=2304&&t<=3583||t>=3840&&t<=4255||Wn.Khmer(t))}function Jn(t){for(var e=0,r=t;e<r.length;e+=1)if(Yn(r[e].charCodeAt(0)))return!0;return!1}var Qn=null,to="unavailable",eo=null,ro=function(t){t&&"string"==typeof t&&t.indexOf("NetworkError")>-1&&(to="error"),Qn&&Qn(t)};function no(){oo.fire(new jt("pluginStateChange",{pluginStatus:to,pluginURL:eo}))}var oo=new Ct,io=function(){return to},ao=function(){if("deferred"!==to||!eo)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");to="loading",no(),eo&&xt({url:eo},(function(t){t?ro(t):(to="loaded",no())}))},so={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return"loaded"===to||null!=so.applyArabicShaping},isLoading:function(){return"loading"===to},setState:function(t){to=t.pluginStatus,eo=t.pluginURL},isParsed:function(){return null!=so.applyArabicShaping&&null!=so.processBidirectionalText&&null!=so.processStyledBidirectionalText},getPluginURL:function(){return eo}},uo=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 Gn,this.transition={})};uo.prototype.isSupportedScript=function(t){return function(t,e){for(var r=0,n=t;r<n.length;r+=1)if(!Xn(n[r].charCodeAt(0),e))return!1;return!0}(t,so.isLoaded())},uo.prototype.crossFadingFactor=function(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},uo.prototype.getCrossfadeParameters=function(){var t=this.zoom,e=t-Math.floor(t),r=this.crossFadingFactor();return t>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*e}};var co=function(t,e){this.property=t,this.value=e,this.expression=function(t,e){if(Nr(t))return new Xr(t,e);if(Wr(t)){var r=Yr(t,e);if("error"===r.result)throw new Error(r.value.map((function(t){return t.key+": "+t.message})).join(", "));return r.value}var n=t;return"string"==typeof t&&"color"===e.type&&(n=ee.parse(t)),{kind:"constant",evaluate:function(){return n}}}(void 0===e?t.specification.default:e,t.specification)};co.prototype.isDataDriven=function(){return"source"===this.expression.kind||"composite"===this.expression.kind},co.prototype.possiblyEvaluate=function(t,e,r){return this.property.possiblyEvaluate(this,t,e,r)};var lo=function(t){this.property=t,this.value=new co(t,void 0)};lo.prototype.transitioned=function(t,e){return new fo(this.property,this.value,e,f({},t.transition,this.transition),t.now)},lo.prototype.untransitioned=function(){return new fo(this.property,this.value,null,{},0)};var po=function(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)};po.prototype.getValue=function(t){return x(this._values[t].value.value)},po.prototype.setValue=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new lo(this._values[t].property)),this._values[t].value=new co(this._values[t].property,null===e?void 0:x(e))},po.prototype.getTransition=function(t){return x(this._values[t].transition)},po.prototype.setTransition=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new lo(this._values[t].property)),this._values[t].transition=x(e)||void 0},po.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);e<r.length;e+=1){var n=r[e],o=this.getValue(n);void 0!==o&&(t[n]=o);var i=this.getTransition(n);void 0!==i&&(t[n+"-transition"]=i)}return t},po.prototype.transitioned=function(t,e){for(var r=new ho(this._properties),n=0,o=Object.keys(this._values);n<o.length;n+=1){var i=o[n];r._values[i]=this._values[i].transitioned(t,e._values[i])}return r},po.prototype.untransitioned=function(){for(var t=new ho(this._properties),e=0,r=Object.keys(this._values);e<r.length;e+=1){var n=r[e];t._values[n]=this._values[n].untransitioned()}return t};var fo=function(t,e,r,n,o){this.property=t,this.value=e,this.begin=o+n.delay||0,this.end=this.begin+n.duration||0,t.specification.transition&&(n.delay||n.duration)&&(this.prior=r)};fo.prototype.possiblyEvaluate=function(t,e,r){var n=t.now||0,o=this.value.possiblyEvaluate(t,e,r),i=this.prior;if(i){if(n>this.end)return this.prior=null,o;if(this.value.isDataDriven())return this.prior=null,o;if(n<this.begin)return i.possiblyEvaluate(t,e,r);var a=(n-this.begin)/(this.end-this.begin);return this.property.interpolate(i.possiblyEvaluate(t,e,r),o,function(t){if(t<=0)return 0;if(t>=1)return 1;var e=t*t,r=e*t;return 4*(t<.5?r:3*(t-e)+r-.75)}(a))}return o};var ho=function(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)};ho.prototype.possiblyEvaluate=function(t,e,r){for(var n=new vo(this._properties),o=0,i=Object.keys(this._values);o<i.length;o+=1){var a=i[o];n._values[a]=this._values[a].possiblyEvaluate(t,e,r)}return n},ho.prototype.hasTransition=function(){for(var t=0,e=Object.keys(this._values);t<e.length;t+=1)if(this._values[e[t]].prior)return!0;return!1};var mo=function(t){this._properties=t,this._values=Object.create(t.defaultPropertyValues)};mo.prototype.getValue=function(t){return x(this._values[t].value)},mo.prototype.setValue=function(t,e){this._values[t]=new co(this._values[t].property,null===e?void 0:x(e))},mo.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);e<r.length;e+=1){var n=r[e],o=this.getValue(n);void 0!==o&&(t[n]=o)}return t},mo.prototype.possiblyEvaluate=function(t,e,r){for(var n=new vo(this._properties),o=0,i=Object.keys(this._values);o<i.length;o+=1){var a=i[o];n._values[a]=this._values[a].possiblyEvaluate(t,e,r)}return n};var yo=function(t,e,r){this.property=t,this.value=e,this.parameters=r};yo.prototype.isConstant=function(){return"constant"===this.value.kind},yo.prototype.constantOr=function(t){return"constant"===this.value.kind?this.value.value:t},yo.prototype.evaluate=function(t,e,r,n){return this.property.evaluate(this.value,this.parameters,t,e,r,n)};var vo=function(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues)};vo.prototype.get=function(t){return this._values[t]};var go=function(t){this.specification=t};go.prototype.possiblyEvaluate=function(t,e){return t.expression.evaluate(e)},go.prototype.interpolate=function(t,e,r){var n=We[this.specification.type];return n?n(t,e,r):t};var bo=function(t,e){this.specification=t,this.overrides=e};bo.prototype.possiblyEvaluate=function(t,e,r,n){return new yo(this,"constant"===t.expression.kind||"camera"===t.expression.kind?{kind:"constant",value:t.expression.evaluate(e,null,{},r,n)}:t.expression,e)},bo.prototype.interpolate=function(t,e,r){if("constant"!==t.value.kind||"constant"!==e.value.kind)return t;if(void 0===t.value.value||void 0===e.value.value)return new yo(this,{kind:"constant",value:void 0},t.parameters);var n=We[this.specification.type];return n?new yo(this,{kind:"constant",value:n(t.value.value,e.value.value,r)},t.parameters):t},bo.prototype.evaluate=function(t,e,r,n,o,i){return"constant"===t.kind?t.value:t.evaluate(e,r,n,o,i)};var _o=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.possiblyEvaluate=function(t,e,r,n){if(void 0===t.value)return new yo(this,{kind:"constant",value:void 0},e);if("constant"===t.expression.kind){var o=t.expression.evaluate(e,null,{},r,n),i="resolvedImage"===t.property.specification.type&&"string"!=typeof o?o.name:o,a=this._calculate(i,i,i,e);return new yo(this,{kind:"constant",value:a},e)}if("camera"===t.expression.kind){var s=this._calculate(t.expression.evaluate({zoom:e.zoom-1}),t.expression.evaluate({zoom:e.zoom}),t.expression.evaluate({zoom:e.zoom+1}),e);return new yo(this,{kind:"constant",value:s},e)}return new yo(this,t.expression,e)},e.prototype.evaluate=function(t,e,r,n,o,i){if("source"===t.kind){var a=t.evaluate(e,r,n,o,i);return this._calculate(a,a,a,e)}return"composite"===t.kind?this._calculate(t.evaluate({zoom:Math.floor(e.zoom)-1},r,n),t.evaluate({zoom:Math.floor(e.zoom)},r,n),t.evaluate({zoom:Math.floor(e.zoom)+1},r,n),e):t.value},e.prototype._calculate=function(t,e,r,n){return n.zoom>n.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}},e.prototype.interpolate=function(t){return t},e}(bo),xo=function(t){this.specification=t};xo.prototype.possiblyEvaluate=function(t,e,r,n){if(void 0!==t.value){if("constant"===t.expression.kind){var o=t.expression.evaluate(e,null,{},r,n);return this._calculate(o,o,o,e)}return this._calculate(t.expression.evaluate(new uo(Math.floor(e.zoom-1),e)),t.expression.evaluate(new uo(Math.floor(e.zoom),e)),t.expression.evaluate(new uo(Math.floor(e.zoom+1),e)),e)}},xo.prototype._calculate=function(t,e,r,n){return n.zoom>n.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}},xo.prototype.interpolate=function(t){return t};var wo=function(t){this.specification=t};wo.prototype.possiblyEvaluate=function(t,e,r,n){return!!t.expression.evaluate(e,null,{},r,n)},wo.prototype.interpolate=function(){return!1};var Oo=function(t){for(var e in this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],t){var r=t[e];r.specification.overridable&&this.overridableProperties.push(e);var n=this.defaultPropertyValues[e]=new co(r,void 0),o=this.defaultTransitionablePropertyValues[e]=new lo(r);this.defaultTransitioningPropertyValues[e]=o.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=n.possiblyEvaluate({})}};Fn("DataDrivenProperty",bo),Fn("DataConstantProperty",go),Fn("CrossFadedDataDrivenProperty",_o),Fn("CrossFadedProperty",xo),Fn("ColorRampProperty",wo);var Eo=function(t){function e(e,r){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.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),r.layout&&(this._unevaluatedLayout=new mo(r.layout)),r.paint)){for(var n in this._transitionablePaint=new po(r.paint),e.paint)this.setPaintProperty(n,e.paint[n],{validate:!1});for(var o in e.layout)this.setLayoutProperty(o,e.layout[o],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new vo(r.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,r){void 0===r&&(r={}),null!=e&&this._validate(Mn,"layers."+this.id+".layout."+t,t,e,r)||("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,-11)):this._transitionablePaint.getValue(t)},e.prototype.setPaintProperty=function(t,e,r){if(void 0===r&&(r={}),null!=e&&this._validate(kn,"layers."+this.id+".paint."+t,t,e,r))return!1;if(g(t,"-transition"))return this._transitionablePaint.setTransition(t.slice(0,-11),e||void 0),!1;var n=this._transitionablePaint._values[t],o="cross-faded-data-driven"===n.property.specification["property-type"],i=n.value.isDataDriven(),a=n.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);var s=this._transitionablePaint._values[t].value;return s.isDataDriven()||i||o||this._handleOverridablePaintPropertyUpdate(t,a,s)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){},e.prototype._handleOverridablePaintPropertyUpdate=function(t,e,r){return!1},e.prototype.isHidden=function(t){return!!(this.minzoom&&t<this.minzoom)||!!(this.maxzoom&&t>=this.maxzoom)||"none"===this.visibility},e.prototype.updateTransitions=function(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)},e.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},e.prototype.recalculate=function(t,e){t.getCrossfadeParameters&&(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,e)},e.prototype.serialize=function(){var t={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(t.layout=t.layout||{},t.layout.visibility=this.visibility),_(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,r,n,o){return void 0===o&&(o={}),(!o||!1!==o.validate)&&In(this,t.call(Cn,{key:e,layerType:this.type,objectKey:r,value:n,styleSpec:Tt,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 yo&&Dr(e.property.specification)&&("source"===e.value.kind||"composite"===e.value.kind)&&e.value.isStateDependent)return!0}return!1},e}(Ct),So={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Po=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},jo=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Ao(t,e){void 0===e&&(e=1);var r=0,n=0;return{members:t.map((function(t){var o=So[t.type].BYTES_PER_ELEMENT,i=r=Co(r,Math.max(e,o)),a=t.components||1;return n=Math.max(n,o),r+=o*a,{name:t.name,type:t.type,components:a,offset:i}})),size:Co(r,Math.max(n,e)),alignment:e}}function Co(t,e){return Math.ceil(t/e)*e}jo.serialize=function(t,e){return t._trim(),e&&(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}},jo.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},jo.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},jo.prototype.clear=function(){this.length=0},jo.prototype.resize=function(t){this.reserve(t),this.length=t},jo.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)}},jo.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};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._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.int16[n+0]=e,this.int16[n+1]=r,t},e}(jo);To.prototype.bytesPerElement=4,Fn("StructArrayLayout2i4",To);var ko=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,o){var i=4*t;return this.int16[i+0]=e,this.int16[i+1]=r,this.int16[i+2]=n,this.int16[i+3]=o,t},e}(jo);ko.prototype.bytesPerElement=8,Fn("StructArrayLayout4i8",ko);var Mo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,o,i){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,r,n,o,i)},e.prototype.emplace=function(t,e,r,n,o,i,a){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=o,this.int16[s+4]=i,this.int16[s+5]=a,t},e}(jo);Mo.prototype.bytesPerElement=12,Fn("StructArrayLayout2i4i12",Mo);var Io=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,o,i){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,r,n,o,i)},e.prototype.emplace=function(t,e,r,n,o,i,a){var s=4*t,u=8*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.uint8[u+4]=n,this.uint8[u+5]=o,this.uint8[u+6]=i,this.uint8[u+7]=a,t},e}(jo);Io.prototype.bytesPerElement=8,Fn("StructArrayLayout2i4ub8",Io);var Do=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.float32[n+0]=e,this.float32[n+1]=r,t},e}(jo);Do.prototype.bytesPerElement=8,Fn("StructArrayLayout2f8",Do);var Lo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,o,i,a,s,u,c){var l=this.length;return this.resize(l+1),this.emplace(l,t,e,r,n,o,i,a,s,u,c)},e.prototype.emplace=function(t,e,r,n,o,i,a,s,u,c,l){var p=10*t;return this.uint16[p+0]=e,this.uint16[p+1]=r,this.uint16[p+2]=n,this.uint16[p+3]=o,this.uint16[p+4]=i,this.uint16[p+5]=a,this.uint16[p+6]=s,this.uint16[p+7]=u,this.uint16[p+8]=c,this.uint16[p+9]=l,t},e}(jo);Lo.prototype.bytesPerElement=20,Fn("StructArrayLayout10ui20",Lo);var Ro=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,o,i,a,s,u,c,l,p){var f=this.length;return this.resize(f+1),this.emplace(f,t,e,r,n,o,i,a,s,u,c,l,p)},e.prototype.emplace=function(t,e,r,n,o,i,a,s,u,c,l,p,f){var h=12*t;return this.int16[h+0]=e,this.int16[h+1]=r,this.int16[h+2]=n,this.int16[h+3]=o,this.uint16[h+4]=i,this.uint16[h+5]=a,this.uint16[h+6]=s,this.uint16[h+7]=u,this.int16[h+8]=c,this.int16[h+9]=l,this.int16[h+10]=p,this.int16[h+11]=f,t},e}(jo);Ro.prototype.bytesPerElement=24,Fn("StructArrayLayout4i4ui4i24",Ro);var zo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var o=3*t;return this.float32[o+0]=e,this.float32[o+1]=r,this.float32[o+2]=n,t},e}(jo);zo.prototype.bytesPerElement=12,Fn("StructArrayLayout3f12",zo);var No=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.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}(jo);No.prototype.bytesPerElement=4,Fn("StructArrayLayout1ul4",No);var Fo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,o,i,a,s,u){var c=this.length;return this.resize(c+1),this.emplace(c,t,e,r,n,o,i,a,s,u)},e.prototype.emplace=function(t,e,r,n,o,i,a,s,u,c){var l=10*t,p=5*t;return this.int16[l+0]=e,this.int16[l+1]=r,this.int16[l+2]=n,this.int16[l+3]=o,this.int16[l+4]=i,this.int16[l+5]=a,this.uint32[p+3]=s,this.uint16[l+8]=u,this.uint16[l+9]=c,t},e}(jo);Fo.prototype.bytesPerElement=20,Fn("StructArrayLayout6i1ul2ui20",Fo);var Bo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,o,i){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,r,n,o,i)},e.prototype.emplace=function(t,e,r,n,o,i,a){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=o,this.int16[s+4]=i,this.int16[s+5]=a,t},e}(jo);Bo.prototype.bytesPerElement=12,Fn("StructArrayLayout2i2i2i12",Bo);var Vo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,o){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n,o)},e.prototype.emplace=function(t,e,r,n,o,i){var a=4*t,s=8*t;return this.float32[a+0]=e,this.float32[a+1]=r,this.float32[a+2]=n,this.int16[s+6]=o,this.int16[s+7]=i,t},e}(jo);Vo.prototype.bytesPerElement=16,Fn("StructArrayLayout2f1f2i16",Vo);var Uo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,o){var i=12*t,a=3*t;return this.uint8[i+0]=e,this.uint8[i+1]=r,this.float32[a+1]=n,this.float32[a+2]=o,t},e}(jo);Uo.prototype.bytesPerElement=12,Fn("StructArrayLayout2ub2f12",Uo);var qo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var o=3*t;return this.uint16[o+0]=e,this.uint16[o+1]=r,this.uint16[o+2]=n,t},e}(jo);qo.prototype.bytesPerElement=6,Fn("StructArrayLayout3ui6",qo);var $o=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.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,r,n,o,i,a,s,u,c,l,p,f,h,d,m,y){var v=this.length;return this.resize(v+1),this.emplace(v,t,e,r,n,o,i,a,s,u,c,l,p,f,h,d,m,y)},e.prototype.emplace=function(t,e,r,n,o,i,a,s,u,c,l,p,f,h,d,m,y,v){var g=24*t,b=12*t,_=48*t;return this.int16[g+0]=e,this.int16[g+1]=r,this.uint16[g+2]=n,this.uint16[g+3]=o,this.uint32[b+2]=i,this.uint32[b+3]=a,this.uint32[b+4]=s,this.uint16[g+10]=u,this.uint16[g+11]=c,this.uint16[g+12]=l,this.float32[b+7]=p,this.float32[b+8]=f,this.uint8[_+36]=h,this.uint8[_+37]=d,this.uint8[_+38]=m,this.uint32[b+10]=y,this.int16[g+22]=v,t},e}(jo);$o.prototype.bytesPerElement=48,Fn("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",$o);var Go=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,o,i,a,s,u,c,l,p,f,h,d,m,y,v,g,b,_,x,w,O,E,S,P,j){var A=this.length;return this.resize(A+1),this.emplace(A,t,e,r,n,o,i,a,s,u,c,l,p,f,h,d,m,y,v,g,b,_,x,w,O,E,S,P,j)},e.prototype.emplace=function(t,e,r,n,o,i,a,s,u,c,l,p,f,h,d,m,y,v,g,b,_,x,w,O,E,S,P,j,A){var C=34*t,T=17*t;return this.int16[C+0]=e,this.int16[C+1]=r,this.int16[C+2]=n,this.int16[C+3]=o,this.int16[C+4]=i,this.int16[C+5]=a,this.int16[C+6]=s,this.int16[C+7]=u,this.uint16[C+8]=c,this.uint16[C+9]=l,this.uint16[C+10]=p,this.uint16[C+11]=f,this.uint16[C+12]=h,this.uint16[C+13]=d,this.uint16[C+14]=m,this.uint16[C+15]=y,this.uint16[C+16]=v,this.uint16[C+17]=g,this.uint16[C+18]=b,this.uint16[C+19]=_,this.uint16[C+20]=x,this.uint16[C+21]=w,this.uint16[C+22]=O,this.uint32[T+12]=E,this.float32[T+13]=S,this.float32[T+14]=P,this.float32[T+15]=j,this.float32[T+16]=A,t},e}(jo);Go.prototype.bytesPerElement=68,Fn("StructArrayLayout8i15ui1ul4f68",Go);var Wo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.float32[1*t+0]=e,t},e}(jo);Wo.prototype.bytesPerElement=4,Fn("StructArrayLayout1f4",Wo);var Zo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var o=3*t;return this.int16[o+0]=e,this.int16[o+1]=r,this.int16[o+2]=n,t},e}(jo);Zo.prototype.bytesPerElement=6,Fn("StructArrayLayout3i6",Zo);var Ho=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var o=4*t;return this.uint32[2*t+0]=e,this.uint16[o+2]=r,this.uint16[o+3]=n,t},e}(jo);Ho.prototype.bytesPerElement=8,Fn("StructArrayLayout1ul2ui8",Ho);var Ko=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.uint16[n+0]=e,this.uint16[n+1]=r,t},e}(jo);Ko.prototype.bytesPerElement=4,Fn("StructArrayLayout2ui4",Ko);var Yo=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}(jo);Yo.prototype.bytesPerElement=2,Fn("StructArrayLayout1ui2",Yo);var Xo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,o){var i=4*t;return this.float32[i+0]=e,this.float32[i+1]=r,this.float32[i+2]=n,this.float32[i+3]=o,t},e}(jo);Xo.prototype.bytesPerElement=16,Fn("StructArrayLayout4f16",Xo);var Jo=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var r={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 r.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},r.x1.get=function(){return this._structArray.int16[this._pos2+2]},r.y1.get=function(){return this._structArray.int16[this._pos2+3]},r.x2.get=function(){return this._structArray.int16[this._pos2+4]},r.y2.get=function(){return this._structArray.int16[this._pos2+5]},r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.anchorPoint.get=function(){return new o(this.anchorPointX,this.anchorPointY)},Object.defineProperties(e.prototype,r),e}(Po);Jo.prototype.size=20;var Qo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.get=function(t){return new Jo(this,t)},e}(Fo);Fn("CollisionBoxArray",Qo);var ti=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var r={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 r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},r.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},r.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},r.segment.get=function(){return this._structArray.uint16[this._pos2+10]},r.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},r.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},r.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},r.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},r.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},r.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},r.placedOrientation.set=function(t){this._structArray.uint8[this._pos1+37]=t},r.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},r.hidden.set=function(t){this._structArray.uint8[this._pos1+38]=t},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},r.crossTileID.set=function(t){this._structArray.uint32[this._pos4+10]=t},r.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(e.prototype,r),e}(Po);ti.prototype.size=48;var ei=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 ti(this,t)},e}($o);Fn("PlacedSymbolArray",ei);var ri=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var r={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 r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},r.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},r.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},r.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},r.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},r.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},r.key.get=function(){return this._structArray.uint16[this._pos2+8]},r.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},r.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},r.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},r.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},r.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},r.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},r.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},r.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},r.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},r.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},r.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},r.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},r.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},r.crossTileID.set=function(t){this._structArray.uint32[this._pos4+12]=t},r.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},r.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},r.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},r.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(e.prototype,r),e}(Po);ri.prototype.size=68;var ni=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.get=function(t){return new ri(this,t)},e}(Go);Fn("SymbolInstanceArray",ni);var oi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getoffsetX=function(t){return this.float32[1*t+0]},e}(Wo);Fn("GlyphOffsetArray",oi);var ii=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getx=function(t){return this.int16[3*t+0]},e.prototype.gety=function(t){return this.int16[3*t+1]},e.prototype.gettileUnitDistanceFromAnchor=function(t){return this.int16[3*t+2]},e}(Zo);Fn("SymbolLineVertexArray",ii);var ai=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var r={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(e.prototype,r),e}(Po);ai.prototype.size=8;var si=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 ai(this,t)},e}(Ho);Fn("FeatureIndexArray",si);var ui=Ao([{name:"a_pos",components:2,type:"Int16"}],4).members,ci=function(t){void 0===t&&(t=[]),this.segments=t};function li(t,e){return 256*(t=l(Math.floor(t),0,255))+l(Math.floor(e),0,255)}ci.prototype.prepareSegment=function(t,e,r,n){var o=this.segments[this.segments.length-1];return t>ci.MAX_VERTEX_ARRAY_LENGTH&&O("Max vertices per segment is "+ci.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+t),(!o||o.vertexLength+t>ci.MAX_VERTEX_ARRAY_LENGTH||o.sortKey!==n)&&(o={vertexOffset:e.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0},void 0!==n&&(o.sortKey=n),this.segments.push(o)),o},ci.prototype.get=function(){return this.segments},ci.prototype.destroy=function(){for(var t=0,e=this.segments;t<e.length;t+=1){var r=e[t];for(var n in r.vaos)r.vaos[n].destroy()}},ci.simpleSegment=function(t,e,r,n){return new ci([{vertexOffset:t,primitiveOffset:e,vertexLength:r,primitiveLength:n,vaos:{},sortKey:0}])},ci.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Fn("SegmentVector",ci);var pi=Ao([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]),fi=e((function(t){t.exports=function(t,e){var r,n,o,i,a,s,u,c;for(n=t.length-(r=3&t.length),o=e,a=3432918353,s=461845907,c=0;c<n;)u=255&t.charCodeAt(c)|(255&t.charCodeAt(++c))<<8|(255&t.charCodeAt(++c))<<16|(255&t.charCodeAt(++c))<<24,++c,o=27492+(65535&(i=5*(65535&(o=(o^=u=(65535&(u=(u=(65535&u)*a+(((u>>>16)*a&65535)<<16)&4294967295)<<15|u>>>17))*s+(((u>>>16)*s&65535)<<16)&4294967295)<<13|o>>>19))+((5*(o>>>16)&65535)<<16)&4294967295))+((58964+(i>>>16)&65535)<<16);switch(u=0,r){case 3:u^=(255&t.charCodeAt(c+2))<<16;case 2:u^=(255&t.charCodeAt(c+1))<<8;case 1:o^=u=(65535&(u=(u=(65535&(u^=255&t.charCodeAt(c)))*a+(((u>>>16)*a&65535)<<16)&4294967295)<<15|u>>>17))*s+(((u>>>16)*s&65535)<<16)&4294967295}return o^=t.length,o=2246822507*(65535&(o^=o>>>16))+((2246822507*(o>>>16)&65535)<<16)&4294967295,o=3266489909*(65535&(o^=o>>>13))+((3266489909*(o>>>16)&65535)<<16)&4294967295,(o^=o>>>16)>>>0}})),hi=e((function(t){t.exports=function(t,e){for(var r,n=t.length,o=e^n,i=0;n>=4;)r=1540483477*(65535&(r=255&t.charCodeAt(i)|(255&t.charCodeAt(++i))<<8|(255&t.charCodeAt(++i))<<16|(255&t.charCodeAt(++i))<<24))+((1540483477*(r>>>16)&65535)<<16),o=1540483477*(65535&o)+((1540483477*(o>>>16)&65535)<<16)^(r=1540483477*(65535&(r^=r>>>24))+((1540483477*(r>>>16)&65535)<<16)),n-=4,++i;switch(n){case 3:o^=(255&t.charCodeAt(i+2))<<16;case 2:o^=(255&t.charCodeAt(i+1))<<8;case 1:o=1540483477*(65535&(o^=255&t.charCodeAt(i)))+((1540483477*(o>>>16)&65535)<<16)}return o=1540483477*(65535&(o^=o>>>13))+((1540483477*(o>>>16)&65535)<<16),(o^=o>>>15)>>>0}})),di=fi,mi=hi;di.murmur3=fi,di.murmur2=mi;var yi=function(){this.ids=[],this.positions=[],this.indexed=!1};yi.prototype.add=function(t,e,r,n){this.ids.push(gi(t)),this.positions.push(e,r,n)},yi.prototype.getPositions=function(t){for(var e=gi(t),r=0,n=this.ids.length-1;r<n;){var o=r+n>>1;this.ids[o]>=e?n=o:r=o+1}for(var i=[];this.ids[r]===e;)i.push({index:this.positions[3*r],start:this.positions[3*r+1],end:this.positions[3*r+2]}),r++;return i},yi.serialize=function(t,e){var r=new Float64Array(t.ids),n=new Uint32Array(t.positions);return function t(e,r,n,o){for(;n<o;){for(var i=e[n+o>>1],a=n-1,s=o+1;;){do{a++}while(e[a]<i);do{s--}while(e[s]>i);if(a>=s)break;bi(e,a,s),bi(r,3*a,3*s),bi(r,3*a+1,3*s+1),bi(r,3*a+2,3*s+2)}s-n<o-s?(t(e,r,n,s),n=s+1):(t(e,r,s+1,o),o=s)}}(r,n,0,r.length-1),e&&e.push(r.buffer,n.buffer),{ids:r,positions:n}},yi.deserialize=function(t){var e=new yi;return e.ids=t.ids,e.positions=t.positions,e.indexed=!0,e};var vi=Math.pow(2,53)-1;function gi(t){var e=+t;return!isNaN(e)&&e<=vi?e:di(String(t))}function bi(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}Fn("FeaturePositionMap",yi);var _i=function(t,e){this.gl=t.gl,this.location=e},xi=function(t){function e(e,r){t.call(this,e,r),this.current=0}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.set=function(t){this.current!==t&&(this.current=t,this.gl.uniform1i(this.location,t))},e}(_i),wi=function(t){function e(e,r){t.call(this,e,r),this.current=0}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.set=function(t){this.current!==t&&(this.current=t,this.gl.uniform1f(this.location,t))},e}(_i),Oi=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0]}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&&t[1]===this.current[1]||(this.current=t,this.gl.uniform2f(this.location,t[0],t[1]))},e}(_i),Ei=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0,0]}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&&t[1]===this.current[1]&&t[2]===this.current[2]||(this.current=t,this.gl.uniform3f(this.location,t[0],t[1],t[2]))},e}(_i),Si=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0,0,0]}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&&t[1]===this.current[1]&&t[2]===this.current[2]&&t[3]===this.current[3]||(this.current=t,this.gl.uniform4f(this.location,t[0],t[1],t[2],t[3]))},e}(_i),Pi=function(t){function e(e,r){t.call(this,e,r),this.current=ee.transparent}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.set=function(t){t.r===this.current.r&&t.g===this.current.g&&t.b===this.current.b&&t.a===this.current.a||(this.current=t,this.gl.uniform4f(this.location,t.r,t.g,t.b,t.a))},e}(_i),ji=new Float32Array(16),Ai=function(t){function e(e,r){t.call(this,e,r),this.current=ji}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.set=function(t){if(t[12]!==this.current[12]||t[0]!==this.current[0])return this.current=t,void this.gl.uniformMatrix4fv(this.location,!1,t);for(var e=1;e<16;e++)if(t[e]!==this.current[e]){this.current=t,this.gl.uniformMatrix4fv(this.location,!1,t);break}},e}(_i);function Ci(t){return[li(255*t.r,255*t.g),li(255*t.b,255*t.a)]}var Ti=function(t,e,r){this.value=t,this.uniformNames=e.map((function(t){return"u_"+t})),this.type=r};Ti.prototype.setUniform=function(t,e,r){t.set(r.constantOr(this.value))},Ti.prototype.getBinding=function(t,e,r){return"color"===this.type?new Pi(t,e):new wi(t,e)};var ki=function(t,e){this.uniformNames=e.map((function(t){return"u_"+t})),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1};ki.prototype.setConstantPatternPositions=function(t,e){this.pixelRatioFrom=e.pixelRatio,this.pixelRatioTo=t.pixelRatio,this.patternFrom=e.tlbr,this.patternTo=t.tlbr},ki.prototype.setUniform=function(t,e,r,n){var o="u_pattern_to"===n?this.patternTo:"u_pattern_from"===n?this.patternFrom:"u_pixel_ratio_to"===n?this.pixelRatioTo:"u_pixel_ratio_from"===n?this.pixelRatioFrom:null;o&&t.set(o)},ki.prototype.getBinding=function(t,e,r){return"u_pattern"===r.substr(0,9)?new Si(t,e):new wi(t,e)};var Mi=function(t,e,r,n){this.expression=t,this.type=r,this.maxValue=0,this.paintVertexAttributes=e.map((function(t){return{name:"a_"+t,type:"Float32",components:"color"===r?2:1,offset:0}})),this.paintVertexArray=new n};Mi.prototype.populatePaintArray=function(t,e,r,n,o){var i=this.paintVertexArray.length,a=this.expression.evaluate(new uo(0),e,{},n,[],o);this.paintVertexArray.resize(t),this._setPaintValue(i,t,a)},Mi.prototype.updatePaintArray=function(t,e,r,n){var o=this.expression.evaluate({zoom:0},r,n);this._setPaintValue(t,e,o)},Mi.prototype._setPaintValue=function(t,e,r){if("color"===this.type)for(var n=Ci(r),o=t;o<e;o++)this.paintVertexArray.emplace(o,n[0],n[1]);else{for(var i=t;i<e;i++)this.paintVertexArray.emplace(i,r);this.maxValue=Math.max(this.maxValue,Math.abs(r))}},Mi.prototype.upload=function(t){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},Mi.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()};var Ii=function(t,e,r,n,o,i){this.expression=t,this.uniformNames=e.map((function(t){return"u_"+t+"_t"})),this.type=r,this.useIntegerZoom=n,this.zoom=o,this.maxValue=0,this.paintVertexAttributes=e.map((function(t){return{name:"a_"+t,type:"Float32",components:"color"===r?4:2,offset:0}})),this.paintVertexArray=new i};Ii.prototype.populatePaintArray=function(t,e,r,n,o){var i=this.expression.evaluate(new uo(this.zoom),e,{},n,[],o),a=this.expression.evaluate(new uo(this.zoom+1),e,{},n,[],o),s=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValue(s,t,i,a)},Ii.prototype.updatePaintArray=function(t,e,r,n){var o=this.expression.evaluate({zoom:this.zoom},r,n),i=this.expression.evaluate({zoom:this.zoom+1},r,n);this._setPaintValue(t,e,o,i)},Ii.prototype._setPaintValue=function(t,e,r,n){if("color"===this.type)for(var o=Ci(r),i=Ci(n),a=t;a<e;a++)this.paintVertexArray.emplace(a,o[0],o[1],i[0],i[1]);else{for(var s=t;s<e;s++)this.paintVertexArray.emplace(s,r,n);this.maxValue=Math.max(this.maxValue,Math.abs(r),Math.abs(n))}},Ii.prototype.upload=function(t){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},Ii.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()},Ii.prototype.setUniform=function(t,e){var r=this.useIntegerZoom?Math.floor(e.zoom):e.zoom,n=l(this.expression.interpolationFactor(r,this.zoom,this.zoom+1),0,1);t.set(n)},Ii.prototype.getBinding=function(t,e,r){return new wi(t,e)};var Di=function(t,e,r,n,o,i){this.expression=t,this.type=e,this.useIntegerZoom=r,this.zoom=n,this.layerId=i,this.zoomInPaintVertexArray=new o,this.zoomOutPaintVertexArray=new o};Di.prototype.populatePaintArray=function(t,e,r){var n=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(t),this.zoomOutPaintVertexArray.resize(t),this._setPaintValues(n,t,e.patterns&&e.patterns[this.layerId],r)},Di.prototype.updatePaintArray=function(t,e,r,n,o){this._setPaintValues(t,e,r.patterns&&r.patterns[this.layerId],o)},Di.prototype._setPaintValues=function(t,e,r,n){if(n&&r){var o=n[r.min],i=n[r.mid],a=n[r.max];if(o&&i&&a)for(var s=t;s<e;s++)this.zoomInPaintVertexArray.emplace(s,i.tl[0],i.tl[1],i.br[0],i.br[1],o.tl[0],o.tl[1],o.br[0],o.br[1],i.pixelRatio,o.pixelRatio),this.zoomOutPaintVertexArray.emplace(s,i.tl[0],i.tl[1],i.br[0],i.br[1],a.tl[0],a.tl[1],a.br[0],a.br[1],i.pixelRatio,a.pixelRatio)}},Di.prototype.upload=function(t){this.zoomInPaintVertexArray&&this.zoomInPaintVertexArray.arrayBuffer&&this.zoomOutPaintVertexArray&&this.zoomOutPaintVertexArray.arrayBuffer&&(this.zoomInPaintVertexBuffer=t.createVertexBuffer(this.zoomInPaintVertexArray,pi.members,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=t.createVertexBuffer(this.zoomOutPaintVertexArray,pi.members,this.expression.isStateDependent))},Di.prototype.destroy=function(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy()};var Li=function(t,e,r){this.binders={},this._buffers=[];var n=[];for(var o in t.paint._values)if(r(o)){var i=t.paint.get(o);if(i instanceof yo&&Dr(i.property.specification)){var a=zi(o,t.type),s=i.value,u=i.property.specification.type,c=i.property.useIntegerZoom,l=i.property.specification["property-type"],p="cross-faded"===l||"cross-faded-data-driven"===l;if("constant"===s.kind)this.binders[o]=p?new ki(s.value,a):new Ti(s.value,a,u),n.push("/u_"+o);else if("source"===s.kind||p){var f=Ni(o,u,"source");this.binders[o]=p?new Di(s,u,c,e,f,t.id):new Mi(s,a,u,f),n.push("/a_"+o)}else{var h=Ni(o,u,"composite");this.binders[o]=new Ii(s,a,u,c,e,h),n.push("/z_"+o)}}}this.cacheKey=n.sort().join("")};Li.prototype.getMaxValue=function(t){var e=this.binders[t];return e instanceof Mi||e instanceof Ii?e.maxValue:0},Li.prototype.populatePaintArrays=function(t,e,r,n,o){for(var i in this.binders){var a=this.binders[i];(a instanceof Mi||a instanceof Ii||a instanceof Di)&&a.populatePaintArray(t,e,r,n,o)}},Li.prototype.setConstantPatternPositions=function(t,e){for(var r in this.binders){var n=this.binders[r];n instanceof ki&&n.setConstantPatternPositions(t,e)}},Li.prototype.updatePaintArrays=function(t,e,r,n,o){var i=!1;for(var a in t)for(var s=0,u=e.getPositions(a);s<u.length;s+=1){var c=u[s],l=r.feature(c.index);for(var p in this.binders){var f=this.binders[p];if((f instanceof Mi||f instanceof Ii||f instanceof Di)&&!0===f.expression.isStateDependent){var h=n.paint.get(p);f.expression=h.value,f.updatePaintArray(c.start,c.end,l,t[a],o),i=!0}}}return i},Li.prototype.defines=function(){var t=[];for(var e in this.binders){var r=this.binders[e];(r instanceof Ti||r instanceof ki)&&t.push.apply(t,r.uniformNames.map((function(t){return"#define HAS_UNIFORM_"+t})))}return t},Li.prototype.getBinderAttributes=function(){var t=[];for(var e in this.binders){var r=this.binders[e];if(r instanceof Mi||r instanceof Ii)for(var n=0;n<r.paintVertexAttributes.length;n++)t.push(r.paintVertexAttributes[n].name);else if(r instanceof Di)for(var o=0;o<pi.members.length;o++)t.push(pi.members[o].name)}return t},Li.prototype.getBinderUniforms=function(){var t=[];for(var e in this.binders){var r=this.binders[e];if(r instanceof Ti||r instanceof ki||r instanceof Ii)for(var n=0,o=r.uniformNames;n<o.length;n+=1)t.push(o[n])}return t},Li.prototype.getPaintVertexBuffers=function(){return this._buffers},Li.prototype.getUniforms=function(t,e){var r=[];for(var n in this.binders){var o=this.binders[n];if(o instanceof Ti||o instanceof ki||o instanceof Ii)for(var i=0,a=o.uniformNames;i<a.length;i+=1){var s=a[i];if(e[s]){var u=o.getBinding(t,e[s],s);r.push({name:s,property:n,binding:u})}}}return r},Li.prototype.setUniforms=function(t,e,r,n){for(var o=0,i=e;o<i.length;o+=1){var a=i[o],s=a.name,u=a.property;this.binders[u].setUniform(a.binding,n,r.get(u),s)}},Li.prototype.updatePaintBuffers=function(t){for(var e in this._buffers=[],this.binders){var r=this.binders[e];if(t&&r instanceof Di){var n=2===t.fromScale?r.zoomInPaintVertexBuffer:r.zoomOutPaintVertexBuffer;n&&this._buffers.push(n)}else(r instanceof Mi||r instanceof Ii)&&r.paintVertexBuffer&&this._buffers.push(r.paintVertexBuffer)}},Li.prototype.upload=function(t){for(var e in this.binders){var r=this.binders[e];(r instanceof Mi||r instanceof Ii||r instanceof Di)&&r.upload(t)}this.updatePaintBuffers()},Li.prototype.destroy=function(){for(var t in this.binders){var e=this.binders[t];(e instanceof Mi||e instanceof Ii||e instanceof Di)&&e.destroy()}};var Ri=function(t,e,r){void 0===r&&(r=function(){return!0}),this.programConfigurations={};for(var n=0,o=t;n<o.length;n+=1){var i=o[n];this.programConfigurations[i.id]=new Li(i,e,r)}this.needsUpload=!1,this._featureMap=new yi,this._bufferOffset=0};function zi(t,e){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["ga
1pwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[t]||[t.replace(e+"-","").replace(/-/g,"_")]}function Ni(t,e,r){var n={color:{source:Do,composite:Xo},number:{source:Wo,composite:Do}},o=function(t){return{"line-pattern":{source:Lo,composite:Lo},"fill-pattern":{source:Lo,composite:Lo},"fill-extrusion-pattern":{source:Lo,composite:Lo}}[t]}(t);return o&&o[r]||n[e][r]}Ri.prototype.populatePaintArrays=function(t,e,r,n,o,i){for(var a in this.programConfigurations)this.programConfigurations[a].populatePaintArrays(t,e,n,o,i);void 0!==e.id&&this._featureMap.add(e.id,r,this._bufferOffset,t),this._bufferOffset=t,this.needsUpload=!0},Ri.prototype.updatePaintArrays=function(t,e,r,n){for(var o=0,i=r;o<i.length;o+=1){var a=i[o];this.needsUpload=this.programConfigurations[a.id].updatePaintArrays(t,this._featureMap,e,a,n)||this.needsUpload}},Ri.prototype.get=function(t){return this.programConfigurations[t]},Ri.prototype.upload=function(t){if(this.needsUpload){for(var e in this.programConfigurations)this.programConfigurations[e].upload(t);this.needsUpload=!1}},Ri.prototype.destroy=function(){for(var t in this.programConfigurations)this.programConfigurations[t].destroy()},Fn("ConstantBinder",Ti),Fn("CrossFadedConstantBinder",ki),Fn("SourceExpressionBinder",Mi),Fn("CrossFadedCompositeBinder",Di),Fn("CompositeExpressionBinder",Ii),Fn("ProgramConfiguration",Li,{omit:["_buffers"]}),Fn("ProgramConfigurationSet",Ri);var Fi=Math.pow(2,14)-1,Bi=-Fi-1;function Vi(t){for(var e=8192/t.extent,r=t.loadGeometry(),n=0;n<r.length;n++)for(var o=r[n],i=0;i<o.length;i++){var a=o[i],s=Math.round(a.x*e),u=Math.round(a.y*e);a.x=l(s,Bi,Fi),a.y=l(u,Bi,Fi),(s<a.x||s>a.x+1||u<a.y||u>a.y+1)&&O("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return r}function Ui(t,e){return{type:t.type,id:t.id,properties:t.properties,geometry:e?Vi(t):[]}}function qi(t,e,r,n,o){t.emplaceBack(2*e+(n+1)/2,2*r+(o+1)/2)}var $i=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 To,this.indexArray=new qo,this.segments=new ci,this.programConfigurations=new Ri(t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function Gi(t,e){for(var r=0;r<t.length;r++)if(ta(e,t[r]))return!0;for(var n=0;n<e.length;n++)if(ta(t,e[n]))return!0;return!!Ki(t,e)}function Wi(t,e,r){return!!ta(t,e)||!!Xi(e,t,r)}function Zi(t,e){if(1===t.length)return Qi(e,t[0]);for(var r=0;r<e.length;r++)for(var n=e[r],o=0;o<n.length;o++)if(ta(t,n[o]))return!0;for(var i=0;i<t.length;i++)if(Qi(e,t[i]))return!0;for(var a=0;a<e.length;a++)if(Ki(t,e[a]))return!0;return!1}function Hi(t,e,r){if(t.length>1){if(Ki(t,e))return!0;for(var n=0;n<e.length;n++)if(Xi(e[n],t,r))return!0}for(var o=0;o<t.length;o++)if(Xi(t[o],e,r))return!0;return!1}function Ki(t,e){if(0===t.length||0===e.length)return!1;for(var r=0;r<t.length-1;r++)for(var n=t[r],o=t[r+1],i=0;i<e.length-1;i++)if(Yi(n,o,e[i],e[i+1]))return!0;return!1}function Yi(t,e,r,n){return E(t,r,n)!==E(e,r,n)&&E(t,e,r)!==E(t,e,n)}function Xi(t,e,r){var n=r*r;if(1===e.length)return t.distSqr(e[0])<n;for(var o=1;o<e.length;o++)if(Ji(t,e[o-1],e[o])<n)return!0;return!1}function Ji(t,e,r){var n=e.distSqr(r);if(0===n)return t.distSqr(e);var o=((t.x-e.x)*(r.x-e.x)+(t.y-e.y)*(r.y-e.y))/n;return t.distSqr(o<0?e:o>1?r:r.sub(e)._mult(o)._add(e))}function Qi(t,e){for(var r,n,o,i=!1,a=0;a<t.length;a++)for(var s=0,u=(r=t[a]).length-1;s<r.length;u=s++)(n=r[s]).y>e.y!=(o=r[u]).y>e.y&&e.x<(o.x-n.x)*(e.y-n.y)/(o.y-n.y)+n.x&&(i=!i);return i}function ta(t,e){for(var r=!1,n=0,o=t.length-1;n<t.length;o=n++){var i=t[n],a=t[o];i.y>e.y!=a.y>e.y&&e.x<(a.x-i.x)*(e.y-i.y)/(a.y-i.y)+i.x&&(r=!r)}return r}function ea(t,e,r){var n=r[0],o=r[2];if(t.x<n.x&&e.x<n.x||t.x>o.x&&e.x>o.x||t.y<n.y&&e.y<n.y||t.y>o.y&&e.y>o.y)return!1;var i=E(t,e,r[0]);return i!==E(t,e,r[1])||i!==E(t,e,r[2])||i!==E(t,e,r[3])}function ra(t,e,r){var n=e.paint.get(t).value;return"constant"===n.kind?n.value:r.programConfigurations.get(e.id).getMaxValue(t)}function na(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function oa(t,e,r,n,i){if(!e[0]&&!e[1])return t;var a=o.convert(e)._mult(i);"viewport"===r&&a._rotate(-n);for(var s=[],u=0;u<t.length;u++)s.push(t[u].sub(a));return s}$i.prototype.populate=function(t,e,r){var n=this.layers[0],o=[],i=null,a=!1;
vendor: 165,315 bytes, line 1
1"circle"===n.type&&(a=!(i=n.layout.get("circle-sort-key")).isConstant());for(var s=0,u=t;s<u.length;s+=1){var c=u[s],l=c.feature,p=c.id,f=c.index,h=c.sourceLayerIndex,d=this.layers[0]._featureFilter.needGeometry,m=Ui(l,d);if(this.layers[0]._featureFilter.filter(new uo(this.zoom),m,r)){var y=a?i.evaluate(m,{},r):void 0,v={id:p,properties:l.properties,type:l.type,sourceLayerIndex:h,index:f,geometry:d?m.geometry:Vi(l),patterns:{},sortKey:y};o.push(v)}}a&&o.sort((function(t,e){return t.sortKey-e.sortKey}));for(var g=0,b=o;g<b.length;g+=1){var _=b[g],x=_.geometry,w=_.index,O=_.sourceLayerIndex,E=t[w].feature;this.addFeature(_,x,w,r),e.featureIndex.insert(E,x,w,O,this.index)}},$i.prototype.update=function(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},$i.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},$i.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},$i.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,ui),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},$i.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},$i.prototype.addFeature=function(t,e,r,n){for(var o=0,i=e;o<i.length;o+=1)for(var a=0,s=i[o];a<s.length;a+=1){var u=s[a],c=u.x,l=u.y;if(!(c<0||c>=8192||l<0||l>=8192)){var p=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,t.sortKey),f=p.vertexLength;qi(this.layoutVertexArray,c,l,-1,-1),qi(this.layoutVertexArray,c,l,1,-1),qi(this.layoutVertexArray,c,l,1,1),qi(this.layoutVertexArray,c,l,-1,1),this.indexArray.emplaceBack(f,f+1,f+2),this.indexArray.emplaceBack(f,f+3,f+2),p.vertexLength+=4,p.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{},n)},Fn("CircleBucket",$i,{omit:["layers"]});var ia=new Oo({"circle-sort-key":new bo(Tt.layout_circle["circle-sort-key"])}),aa={paint:new Oo({"circle-radius":new bo(Tt.paint_circle["circle-radius"]),"circle-color":new bo(Tt.paint_circle["circle-color"]),"circle-blur":new bo(Tt.paint_circle["circle-blur"]),"circle-opacity":new bo(Tt.paint_circle["circle-opacity"]),"circle-translate":new go(Tt.paint_circle["circle-translate"]),"circle-translate-anchor":new go(Tt.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new go(Tt.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new go(Tt.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new bo(Tt.paint_circle["circle-stroke-width"]),"circle-stroke-color":new bo(Tt.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new bo(Tt.paint_circle["circle-stroke-opacity"])}),layout:ia},sa="undefined"!=typeof Float32Array?Float32Array:Array;function ua(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 ca(t,e,r){var n=e[0],o=e[1],i=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],p=e[8],f=e[9],h=e[10],d=e[11],m=e[12],y=e[13],v=e[14],g=e[15],b=r[0],_=r[1],x=r[2],w=r[3];return t[0]=b*n+_*s+x*p+w*m,t[1]=b*o+_*u+x*f+w*y,t[2]=b*i+_*c+x*h+w*v,t[3]=b*a+_*l+x*d+w*g,t[4]=(b=r[4])*n+(_=r[5])*s+(x=r[6])*p+(w=r[7])*m,t[5]=b*o+_*u+x*f+w*y,t[6]=b*i+_*c+x*h+w*v,t[7]=b*a+_*l+x*d+w*g,t[8]=(b=r[8])*n+(_=r[9])*s+(x=r[10])*p+(w=r[11])*m,t[9]=b*o+_*u+x*f+w*y,t[10]=b*i+_*c+x*h+w*v,t[11]=b*a+_*l+x*d+w*g,t[12]=(b=r[12])*n+(_=r[13])*s+(x=r[14])*p+(w=r[15])*m,t[13]=b*o+_*u+x*f+w*y,t[14]=b*i+_*c+x*h+w*v,t[15]=b*a+_*l+x*d+w*g,t}Math.hypot||(Math.hypot=function(){for(var t=arguments,e=0,r=arguments.length;r--;)e+=t[r]*t[r];return Math.sqrt(e)});var la,pa=ca;function fa(t,e,r){var n=e[0],o=e[1],i=e[2],a=e[3];return t[0]=r[0]*n+r[4]*o+r[8]*i+r[12]*a,t[1]=r[1]*n+r[5]*o+r[9]*i+r[13]*a,t[2]=r[2]*n+r[6]*o+r[10]*i+r[14]*a,t[3]=r[3]*n+r[7]*o+r[11]*i+r[15]*a,t}la=new sa(3),sa!=Float32Array&&(la[0]=0,la[1]=0,la[2]=0),function(){var t=new sa(4);sa!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0)}();var ha=(function(){var t=new sa(2);sa!=Float32Array&&(t[0]=0,t[1]=0)}(),function(t){function e(e){t.call(this,e,aa)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createBucket=function(t){return new $i(t)},e.prototype.queryRadius=function(t){var e=t;return ra("circle-radius",this,e)+ra("circle-stroke-width",this,e)+na(this.paint.get("circle-translate"))},e.prototype.queryIntersectsFeature=function(t,e,r,n,o,i,a,s){for(var u=oa(t,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),i.angle,a),c=this.paint.get("circle-radius").evaluate(e,r)+this.paint.get("circle-stroke-width").evaluate(e,r),l="map"===this.paint.get("circle-pitch-alignment"),p=l?u:function(t,e){return t.map((function(t){return da(t,e)}))}(u,s),f=l?c*a:c,h=0,d=n;h<d.length;h+=1)for(var m=0,y=d[h];m<y.length;m+=1){var v=y[m],g=l?v:da(v,s),b=f,_=fa([],[v.x,v.y,0,1],s);if("viewport"===this.paint.get("circle-pitch-scale")&&"map"===this.paint.get("circle-pitch-alignment")?b*=_[3]/i.cameraToCenterDistance:"map"===this.paint.get("circle-pitch-scale")&&"viewport"===this.paint.get("circle-pitch-alignment")&&(b*=i.cameraToCenterDistance/_[3]),Wi(p,g,b))return!0}return!1},e}(Eo));function da(t,e){var r=fa([],[t.x,t.y,0,1],e);return new o(r[0]/r[3],r[1]/r[3])}var ma=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}($i);function ya(t,e,r,n){var o=e.width,i=e.height;if(n){if(n instanceof Uint8ClampedArray)n=new Uint8Array(n.buffer);else if(n.length!==o*i*r)throw new RangeError("mismatched image size")}else n=new Uint8Array(o*i*r);return t.width=o,t.height=i,t.data=n,t}function va(t,e,r){var n=e.width,o=e.height;if(n!==t.width||o!==t.height){var i=ya({},{width:n,height:o},r);ga(t,i,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,n),height:Math.min(t.height,o)},r),t.width=n,t.height=o,t.data=i.data}}function ga(t,e,r,n,o,i){if(0===o.width||0===o.height)return e;if(o.width>t.width||o.height>t.height||r.x>t.width-o.width||r.y>t.height-o.height)throw new RangeError("out of range source coordinates for image copy");if(o.width>e.width||o.height>e.height||n.x>e.width-o.width||n.y>e.height-o.height)throw new RangeError("out of range destination coordinates for image copy");for(var a=t.data,s=e.data,u=0;u<o.height;u++)for(var c=((r.y+u)*t.width+r.x)*i,l=((n.y+u)*e.width+n.x)*i,p=0;p<o.width*i;p++)s[l+p]=a[c+p];return e}Fn("HeatmapBucket",ma,{omit:["layers"]});var ba=function(t,e){ya(this,t,1,e)};ba.prototype.resize=function(t){va(this,t,1)},ba.prototype.clone=function(){return new ba({width:this.width,height:this.height},new Uint8Array(this.data))},ba.copy=function(t,e,r,n,o){ga(t,e,r,n,o,1)};var _a=function(t,e){ya(this,t,4,e)};_a.prototype.resize=function(t){va(this,t,4)},_a.prototype.replace=function(t,e){e?this.data.set(t):this.data=t instanceof Uint8ClampedArray?new Uint8Array(t.buffer):t},_a.prototype.clone=function(){return new _a({width:this.width,height:this.height},new Uint8Array(this.data))},_a.copy=function(t,e,r,n,o){ga(t,e,r,n,o,4)},Fn("AlphaImage",ba),Fn("RGBAImage",_a);var xa={paint:new Oo({"heatmap-radius":new bo(Tt.paint_heatmap["heatmap-radius"]),"heatmap-weight":new bo(Tt.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new go(Tt.paint_heatmap["heatmap-intensity"]),"heatmap-color":new wo(Tt.paint_heatmap["heatmap-color"]),"heatmap-opacity":new go(Tt.paint_heatmap["heatmap-opacity"])})};function wa(t){var e={},r=t.resolution||256,n=t.clips?t.clips.length:1,o=t.image||new _a({width:r,height:n}),i=function(r,n,i){e[t.evaluationKey]=i;var a=t.expression.evaluate(e);o.data[r+n+0]=Math.floor(255*a.r/a.a),o.data[r+n+1]=Math.floor(255*a.g/a.a),o.data[r+n+2]=Math.floor(255*a.b/a.a),o.data[r+n+3]=Math.floor(255*a.a)};if(t.clips)for(var a=0,s=0;a<n;++a,s+=4*r)for(var u=0,c=0;u<r;u++,c+=4){var l=u/(r-1),p=t.clips[a];i(s,c,p.start*(1-l)+p.end*l)}else for(var f=0,h=0;f<r;f++,h+=4)i(0,h,f/(r-1));return o}var Oa=function(t){function e(e){t.call(this,e,xa),this._updateColorRamp()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createBucket=function(t){return new ma(t)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){"heatmap-color"===t&&this._updateColorRamp()},e.prototype._updateColorRamp=function(){this.colorRamp=wa({expression:this._transitionablePaint._values["heatmap-color"].value.expression,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null},e.prototype.resize=function(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility},e}(Eo),Ea={paint:new Oo({"hillshade-illumination-direction":new go(Tt.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new go(Tt.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new go(Tt.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new go(Tt.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new go(Tt.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new go(Tt.paint_hillshade["hillshade-accent-color"])})},Sa=function(t){function e(e){t.call(this,e,Ea)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility},e}(Eo),Pa=Ao([{name:"a_pos",components:2,type:"Int16"}],4).members,ja=Ca,Aa=Ca;function Ca(t,e,r){r=r||2;var n,o,i,a,s,u,c,l=e&&e.length,p=l?e[0]*r:t.length,f=Ta(t,0,p,r,!0),h=[];if(!f||f.next===f.prev)return h;if(l&&(f=function(t,e,r,n){var o,i,a,s=[];for(o=0,i=e.length;o<i;o++)(a=Ta(t,e[o]*n,o<i-1?e[o+1]*n:t.length,n,!1))===a.next&&(a.steiner=!0),s.push(Va(a));for(s.sort(za),o=0;o<s.length;o++)Na(s[o],r),r=ka(r,r.next);return r}(t,e,f,r)),t.length>80*r){n=i=t[0],o=a=t[1];for(var d=r;d<p;d+=r)(s=t[d])<n&&(n=s),(u=t[d+1])<o&&(o=u),s>i&&(i=s),u>a&&(a=u);c=0!==(c=Math.max(i-n,a-o))?1/c:0}return Ma(f,h,r,n,o,c),h}function Ta(t,e,r,n,o){var i,a;if(o===ts(t,e,r,n)>0)for(i=e;i<r;i+=n)a=Xa(i,t[i],t[i+1],a);else for(i=r-n;i>=e;i-=n)a=Xa(i,t[i],t[i+1],a);return a&&Ga(a,a.next)&&(Ja(a),a=a.next),a}function ka(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!Ga(n,n.next)&&0!==$a(n.prev,n,n.next))n=n.next;else{if(Ja(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function Ma(t,e,r,n,o,i,a){if(t){!a&&i&&function(t,e,r,n){var o=t;do{null===o.z&&(o.z=Ba(o.x,o.y,e,r,n)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==t);o.prevZ.nextZ=null,o.prevZ=null,function(t){var e,r,n,o,i,a,s,u,c=1;do{for(r=t,t=null,i=null,a=0;r;){for(a++,n=r,s=0,e=0;e<c&&(s++,n=n.nextZ);e++);for(u=c;s>0||u>0&&n;)0!==s&&(0===u||!n||r.z<=n.z)?(o=r,r=r.nextZ,s--):(o=n,n=n.nextZ,u--),i?i.nextZ=o:t=o,o.prevZ=i,i=o;r=n}i.nextZ=null,c*=2}while(a>1)}(o)}(t,n,o,i);for(var s,u,c=t;t.prev!==t.next;)if(s=t.prev,u=t.next,i?Da(t,n,o,i):Ia(t))e.push(s.i/r),e.push(t.i/r),e.push(u.i/r),Ja(t),t=u.next,c=u.next;else if((t=u)===c){a?1===a?Ma(t=La(ka(t),e,r),e,r,n,o,i,2):2===a&&Ra(t,e,r,n,o,i):Ma(ka(t),e,r,n,o,i,1);break}}}function Ia(t){var e=t.prev,r=t,n=t.next;if($a(e,r,n)>=0)return!1;for(var o=t.next.next;o!==t.prev;){if(Ua(e.x,e.y,r.x,r.y,n.x,n.y,o.x,o.y)&&$a(o.prev,o,o.next)>=0)return!1;o=o.next}return!0}function Da(t,e,r,n){var o=t.prev,i=t,a=t.next;if($a(o,i,a)>=0)return!1;for(var s=o.x>i.x?o.x>a.x?o.x:a.x:i.x>a.x?i.x:a.x,u=o.y>i.y?o.y>a.y?o.y:a.y:i.y>a.y?i.y:a.y,c=Ba(o.x<i.x?o.x<a.x?o.x:a.x:i.x<a.x?i.x:a.x,o.y<i.y?o.y<a.y?o.y:a.y:i.y<a.y?i.y:a.y,e,r,n),l=Ba(s,u,e,r,n),p=t.prevZ,f=t.nextZ;p&&p.z>=c&&f&&f.z<=l;){if(p!==t.prev&&p!==t.next&&Ua(o.x,o.y,i.x,i.y,a.x,a.y,p.x,p.y)&&$a(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,f!==t.prev&&f!==t.next&&Ua(o.x,o.y,i.x,i.y,a.x,a.y,f.x,f.y)&&$a(f.prev,f,f.next)>=0)return!1;f=f.nextZ}for(;p&&p.z>=c;){if(p!==t.prev&&p!==t.next&&Ua(o.x,o.y,i.x,i.y,a.x,a.y,p.x,p.y)&&$a(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;f&&f.z<=l;){if(f!==t.prev&&f!==t.next&&Ua(o.x,o.y,i.x,i.y,a.x,a.y,f.x,f.y)&&$a(f.prev,f,f.next)>=0)return!1;f=f.nextZ}return!0}function La(t,e,r){var n=t;do{var o=n.prev,i=n.next.next;!Ga(o,i)&&Wa(o,n,n.next,i)&&Ka(o,i)&&Ka(i,o)&&(e.push(o.i/r),e.push(n.i/r),e.push(i.i/r),Ja(n),Ja(n.next),n=t=i),n=n.next}while(n!==t);return ka(n)}function Ra(t,e,r,n,o,i){var a=t;do{for(var s=a.next.next;s!==a.prev;){if(a.i!==s.i&&qa(a,s)){var u=Ya(a,s);return a=ka(a,a.next),u=ka(u,u.next),Ma(a,e,r,n,o,i),void Ma(u,e,r,n,o,i)}s=s.next}a=a.next}while(a!==t)}function za(t,e){return t.x-e.x}function Na(t,e){if(e=function(t,e){var r,n=e,o=t.x,i=t.y,a=-1/0;do{if(i<=n.y&&i>=n.next.y&&n.next.y!==n.y){var s=n.x+(i-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s<=o&&s>a){if(a=s,s===o){if(i===n.y)return n;if(i===n.next.y)return n.next}r=n.x<n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(o===a)return r;var u,c=r,l=r.x,p=r.y,f=1/0;n=r;do{o>=n.x&&n.x>=l&&o!==n.x&&Ua(i<p?o:a,i,l,p,i<p?a:o,i,n.x,n.y)&&(u=Math.abs(i-n.y)/(o-n.x),Ka(n,t)&&(u<f||u===f&&(n.x>r.x||n.x===r.x&&Fa(r,n)))&&(r=n,f=u)),n=n.next}while(n!==c);return r}(t,e)){var r=Ya(e,t);ka(e,e.next),ka(r,r.next)}}function Fa(t,e){return $a(t.prev,t,e.prev)<0&&$a(e.next,t,t.next)<0}function Ba(t,e,r,n,o){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*o)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*o)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function Va(t){var e=t,r=t;do{(e.x<r.x||e.x===r.x&&e.y<r.y)&&(r=e),e=e.next}while(e!==t);return r}function Ua(t,e,r,n,o,i,a,s){return(o-a)*(e-s)-(t-a)*(i-s)>=0&&(t-a)*(n-s)-(r-a)*(e-s)>=0&&(r-a)*(i-s)-(o-a)*(n-s)>=0}function qa(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&Wa(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&&(Ka(t,e)&&Ka(e,t)&&function(t,e){var r=t,n=!1,o=(t.x+e.x)/2,i=(t.y+e.y)/2;do{r.y>i!=r.next.y>i&&r.next.y!==r.y&&o<(r.next.x-r.x)*(i-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next}while(r!==t);return n}(t,e)&&($a(t.prev,t,e.prev)||$a(t,e.prev,e))||Ga(t,e)&&$a(t.prev,t,t.next)>0&&$a(e.prev,e,e.next)>0)}function $a(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function Ga(t,e){return t.x===e.x&&t.y===e.y}function Wa(t,e,r,n){var o=Ha($a(t,e,r)),i=Ha($a(t,e,n)),a=Ha($a(r,n,t)),s=Ha($a(r,n,e));return o!==i&&a!==s||!(0!==o||!Za(t,r,e))||!(0!==i||!Za(t,n,e))||!(0!==a||!Za(r,t,n))||!(0!==s||!Za(r,e,n))}function Za(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function Ha(t){return t>0?1:t<0?-1:0}function Ka(t,e){return $a(t.prev,t,t.next)<0?$a(t,e,t.next)>=0&&$a(t,t.prev,e)>=0:$a(t,e,t.prev)<0||$a(t,t.next,e)<0}function Ya(t,e){var r=new Qa(t.i,t.x,t.y),n=new Qa(e.i,e.x,e.y),o=t.next,i=e.prev;return t.next=e,e.prev=t,r.next=o,o.prev=r,n.next=r,r.prev=n,i.next=n,n.prev=i,n}function Xa(t,e,r,n){var o=new Qa(t,e,r);return n?(o.next=n.next,o.prev=n,n.next.prev=o,n.next=o):(o.prev=o,o.next=o),o}function Ja(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 Qa(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function ts(t,e,r,n){for(var o=0,i=e,a=r-n;i<r;i+=n)o+=(t[a]-t[i])*(t[i+1]+t[a+1]),a=i;return o}function es(t,e,r,n,o){!function t(e,r,n,o,i){for(;o>n;){if(o-n>600){var a=o-n+1,s=r-n+1,u=Math.log(a),c=.5*Math.exp(2*u/3),l=.5*Math.sqrt(u*c*(a-c)/a)*(s-a/2<0?-1:1);t(e,r,Math.max(n,Math.floor(r-s*c/a+l)),Math.min(o,Math.floor(r+(a-s)*c/a+l)),i)}var p=e[r],f=n,h=o;for(rs(e,n,r),i(e[o],p)>0&&rs(e,n,o);f<h;){for(rs(e,f,h),f++,h--;i(e[f],p)<0;)f++;for(;i(e[h],p)>0;)h--}0===i(e[n],p)?rs(e,n,h):rs(e,++h,o),h<=r&&(n=h+1),r<=h&&(o=h-1)}}(t,e,r||0,n||t.length-1,o||ns)}function rs(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function ns(t,e){return t<e?-1:t>e?1:0}function os(t,e){var r=t.length;if(r<=1)return[t];for(var n,o,i=[],a=0;a<r;a++){var s=S(t[a]);0!==s&&(t[a].area=Math.abs(s),void 0===o&&(o=s<0),o===s<0?(n&&i.push(n),n=[t[a]]):n.push(t[a]))}if(n&&i.push(n),e>1)for(var u=0;u<i.length;u++)i[u].length<=e||(es(i[u],e,1,i[u].length-1,is),i[u]=i[u].slice(0,e));return i}function is(t,e){return e.area-t.area}function as(t,e,r){for(var n=r.patternDependencies,o=!1,i=0,a=e;i<a.length;i+=1){var s=a[i].paint.get(t+"-pattern");s.isConstant()||(o=!0);var u=s.constantOr(null);u&&(o=!0,n[u.to]=!0,n[u.from]=!0)}return o}function ss(t,e,r,n,o){for(var i=o.patternDependencies,a=0,s=e;a<s.length;a+=1){var u=s[a],c=u.paint.get(t+"-pattern").value;if("constant"!==c.kind){var l=c.evaluate({zoom:n-1},r,{},o.availableImages),p=c.evaluate({zoom:n},r,{},o.availableImages),f=c.evaluate({zoom:n+1},r,{},o.availableImages);p=p&&p.name?p.name:p,f=f&&f.name?f.name:f,i[l=l&&l.name?l.name:l]=!0,i[p]=!0,i[f]=!0,r.patterns[u.id]={min:l,mid:p,max:f}}}return r}Ca.deviation=function(t,e,r,n){var o=e&&e.length,i=Math.abs(ts(t,0,o?e[0]*r:t.length,r));if(o)for(var a=0,s=e.length;a<s;a++)i-=Math.abs(ts(t,e[a]*r,a<s-1?e[a+1]*r:t.length,r));var u=0;for(a=0;a<n.length;a+=3){var c=n[a]*r,l=n[a+1]*r,p=n[a+2]*r;u+=Math.abs((t[c]-t[p])*(t[l+1]-t[c+1])-(t[c]-t[l])*(t[p+1]-t[c+1]))}return 0===i&&0===u?0:Math.abs((u-i)/i)},Ca.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,o=0;o<t.length;o++){for(var i=0;i<t[o].length;i++)for(var a=0;a<e;a++)r.vertices.push(t[o][i][a]);o>0&&r.holes.push(n+=t[o-1].length)}return r},ja.default=Aa;var us=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 To,this.indexArray=new qo,this.indexArray2=new Ko,this.programConfigurations=new Ri(t.layers,t.zoom),this.segments=new ci,this.segments2=new ci,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};us.prototype.populate=function(t,e,r){this.hasPattern=as("fill",this.layers,e);for(var n=this.layers[0].layout.get("fill-sort-key"),o=!n.isConstant(),i=[],a=0,s=t;a<s.length;a+=1){var u=s[a],c=u.feature,l=u.id,p=u.index,f=u.sourceLayerIndex,h=this.layers[0]._featureFilter.needGeometry,d=Ui(c,h);if(this.layers[0]._featureFilter.filter(new uo(this.zoom),d,r)){var m=o?n.evaluate(d,{},r,e.availableImages):void 0,y={id:l,properties:c.properties,type:c.type,sourceLayerIndex:f,index:p,geometry:h?d.geometry:Vi(c),patterns:{},sortKey:m};i.push(y)}}o&&i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var v=0,g=i;v<g.length;v+=1){var b=g[v],_=b.geometry,x=b.index,w=b.sourceLayerIndex;if(this.hasPattern){var O=ss("fill",this.layers,b,this.zoom,e);this.patternFeatures.push(O)}else this.addFeature(b,_,x,r,{});e.featureIndex.insert(t[x].feature,_,x,w,this.index)}},us.prototype.update=function(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},us.prototype.addFeatures=function(t,e,r){for(var n=0,o=this.patternFeatures;n<o.length;n+=1){var i=o[n];this.addFeature(i,i.geometry,i.index,e,r)}},us.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},us.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},us.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Pa),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0},us.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())},us.prototype.addFeature=function(t,e,r,n,o){for(var i=0,a=os(e,500);i<a.length;i+=1){for(var s=a[i],u=0,c=0,l=s;c<l.length;c+=1)u+=l[c].length;for(var p=this.segments.prepareSegment(u,this.layoutVertexArray,this.indexArray),f=p.vertexLength,h=[],d=[],m=0,y=s;m<y.length;m+=1){var v=y[m];if(0!==v.length){v!==s[0]&&d.push(h.length/2);var g=this.segments2.prepareSegment(v.length,this.layoutVertexArray,this.indexArray2),b=g.vertexLength;this.layoutVertexArray.emplaceBack(v[0].x,v[0].y),this.indexArray2.emplaceBack(b+v.length-1,b),h.push(v[0].x),h.push(v[0].y);for(var _=1;_<v.length;_++)this.layoutVertexArray.emplaceBack(v[_].x,v[_].y),this.indexArray2.emplaceBack(b+_-1,b+_),h.push(v[_].x),h.push(v[_].y);g.vertexLength+=v.length,g.primitiveLength+=v.length}}for(var x=ja(h,d),w=0;w<x.length;w+=3)this.indexArray.emplaceBack(f+x[w],f+x[w+1],f+x[w+2]);p.vertexLength+=u,p.primitiveLength+=x.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,o,n)},Fn("FillBucket",us,{omit:["layers","patternFeatures"]});var cs=new Oo({"fill-sort-key":new bo(Tt.layout_fill["fill-sort-key"])}),ls={paint:new Oo({"fill-antialias":new go(Tt.paint_fill["fill-antialias"]),"fill-opacity":new bo(Tt.paint_fill["fill-opacity"]),"fill-color":new bo(Tt.paint_fill["fill-color"]),"fill-outline-color":new bo(Tt.paint_fill["fill-outline-color"]),"fill-translate":new go(Tt.paint_fill["fill-translate"]),"fill-translate-anchor":new go(Tt.paint_fill["fill-translate-anchor"]),"fill-pattern":new _o(Tt.paint_fill["fill-pattern"])}),layout:cs},ps=function(t){function e(e){t.call(this,e,ls)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.recalculate=function(e,r){t.prototype.recalculate.call(this,e,r);var n=this.paint._values["fill-outline-color"];"constant"===n.value.kind&&void 0===n.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])},e.prototype.createBucket=function(t){return new us(t)},e.prototype.queryRadius=function(){return na(this.paint.get("fill-translate"))},e.prototype.queryIntersectsFeature=function(t,e,r,n,o,i,a){return Zi(oa(t,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),i.angle,a),n)},e.prototype.isTileClipped=function(){return!0},e}(Eo),fs=Ao([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4).members,hs=ds;function ds(t,e,r,n,o){this.properties={},this.extent=r,this.type=0,this._pbf=t,this._geometry=-1,this._keys=n,this._values=o,t.readFields(ms,this,e)}function ms(t,e,r){1==t?e.id=r.readVarint():2==t?function(t,e){for(var r=t.readVarint()+t.pos;t.pos<r;){var n=e._keys[t.readVarint()],o=e._values[t.readVarint()];e.properties[n]=o}}(r,e):3==t?e.type=r.readVarint():4==t&&(e._geometry=r.pos)}function ys(t){for(var e,r,n=0,o=0,i=t.length,a=i-1;o<i;a=o++)n+=((r=t[a]).x-(e=t[o]).x)*(e.y+r.y);return n}ds.types=["Unknown","Point","LineString","Polygon"],ds.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var e,r=t.readVarint()+t.pos,n=1,i=0,a=0,s=0,u=[];t.pos<r;){if(i<=0){var c=t.readVarint();n=7&c,i=c>>3}if(i--,1===n||2===n)a+=t.readSVarint(),s+=t.readSVarint(),1===n&&(e&&u.push(e),e=[]),e.push(new o(a,s));else{if(7!==n)throw new Error("unknown command "+n);e&&e.push(e[0].clone())}}return e&&u.push(e),u},ds.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,r=1,n=0,o=0,i=0,a=1/0,s=-1/0,u=1/0,c=-1/0;t.pos<e;){if(n<=0){var l=t.readVarint();r=7&l,n=l>>3}if(n--,1===r||2===r)(o+=t.readSVarint())<a&&(a=o),o>s&&(s=o),(i+=t.readSVarint())<u&&(u=i),i>c&&(c=i);else if(7!==r)throw new Error("unknown command "+r)}return[a,u,s,c]},ds.prototype.toGeoJSON=function(t,e,r){var n,o,i=this.extent*Math.pow(2,r),a=this.extent*t,s=this.extent*e,u=this.loadGeometry(),c=ds.types[this.type];function l(t){for(var e=0;e<t.length;e++){var r=t[e];t[e]=[360*(r.x+a)/i-180,360/Math.PI*Math.atan(Math.exp((180-360*(r.y+s)/i)*Math.PI/180))-90]}}switch(this.type){case 1:var p=[];for(n=0;n<u.length;n++)p[n]=u[n][0];l(u=p);break;case 2:for(n=0;n<u.length;n++)l(u[n]);break;case 3:for(u=function(t){var e=t.length;if(e<=1)return[t];for(var r,n,o=[],i=0;i<e;i++){var a=ys(t[i]);0!==a&&(void 0===n&&(n=a<0),n===a<0?(r&&o.push(r),r=[t[i]]):r.push(t[i]))}return r&&o.push(r),o}(u),n=0;n<u.length;n++)for(o=0;o<u[n].length;o++)l(u[n][o])}1===u.length?u=u[0]:c="Multi"+c;var f={type:"Feature",geometry:{type:c,coordinates:u},properties:this.properties};return"id"in this&&(f.id=this.id),f};var vs=gs;function gs(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(bs,this,e),this.length=this._features.length}function bs(t,e,r){15===t?e.version=r.readVarint():1===t?e.name=r.readString():5===t?e.extent=r.readVarint():2===t?e._features.push(r.pos):3===t?e._keys.push(r.readString()):4===t&&e._values.push(function(t){for(var e=null,r=t.readVarint()+t.pos;t.pos<r;){var n=t.readVarint()>>3;e=1===n?t.readString():2===n?t.readFloat():3===n?t.readDouble():4===n?t.readVarint64():5===n?t.readVarint():6===n?t.readSVarint():7===n?t.readBoolean():null}return e}(r))}function _s(t,e,r){if(3===t){var n=new vs(r,r.readVarint()+r.pos);n.length&&(e[n.name]=n)}}gs.prototype.feature=function(t){if(t<0||t>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new hs(this._pbf,e,this.extent,this._keys,this._values)};var xs={VectorTile:function(t,e){this.layers=t.readFields(_s,{},e)},VectorTileFeature:hs,VectorTileLayer:vs},ws=xs.VectorTileFeature.types,Os=Math.pow(2,13);function Es(t,e,r,n,o,i,a,s){t.emplaceBack(e,r,2*Math.floor(n*Os)+a,o*Os*2,i*Os*2,Math.round(s))}var Ss=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Mo,this.indexArray=new qo,this.programConfigurations=new Ri(t.layers,t.zoom),this.segments=new ci,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function Ps(t,e){return t.x===e.x&&(t.x<0||t.x>8192)||t.y===e.y&&(t.y<0||t.y>8192)}Ss.prototype.populate=function(t,e,r){this.features=[],this.hasPattern=as("fill-extrusion",this.layers,e);for(var n=0,o=t;n<o.length;n+=1){var i=o[n],a=i.feature,s=i.id,u=i.index,c=i.sourceLayerIndex,l=this.layers[0]._featureFilter.needGeometry,p=Ui(a,l);if(this.layers[0]._featureFilter.filter(new uo(this.zoom),p,r)){var f={id:s,sourceLayerIndex:c,index:u,geometry:l?p.geometry:Vi(a),properties:a.properties,type:a.type,patterns:{}};this.hasPattern?this.features.push(ss("fill-extrusion",this.layers,f,this.zoom,e)):this.addFeature(f,f.geometry,u,r,{}),e.featureIndex.insert(a,f.geometry,u,c,this.index,!0)}}},Ss.prototype.addFeatures=function(t,e,r){for(var n=0,o=this.features;n<o.length;n+=1){var i=o[n];this.addFeature(i,i.geometry,i.index,e,r)}},Ss.prototype.update=function(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},Ss.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Ss.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Ss.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,fs),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Ss.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Ss.prototype.addFeature=function(t,e,r,n,o){for(var i=0,a=os(e,500);i<a.length;i+=1){for(var s=a[i],u=0,c=0,l=s;c<l.length;c+=1)u+=l[c].length;for(var p=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),f=0,h=s;f<h.length;f+=1){var d=h[f];if(0!==d.length&&!((M=d).every((function(t){return t.x<0}))||M.every((function(t){return t.x>8192}))||M.every((function(t){return t.y<0}))||M.every((function(t){return t.y>8192}))))for(var m=0,y=0;y<d.length;y++){var v=d[y];if(y>=1){var g=d[y-1];if(!Ps(v,g)){p.vertexLength+4>ci.MAX_VERTEX_ARRAY_LENGTH&&(p=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var b=v.sub(g)._perp()._unit(),_=g.dist(v);m+_>32768&&(m=0),Es(this.layoutVertexArray,v.x,v.y,b.x,b.y,0,0,m),Es(this.layoutVertexArray,v.x,v.y,b.x,b.y,0,1,m),Es(this.layoutVertexArray,g.x,g.y,b.x,b.y,0,0,m+=_),Es(this.layoutVertexArray,g.x,g.y,b.x,b.y,0,1,m);var x=p.vertexLength;this.indexArray.emplaceBack(x,x+2,x+1),this.indexArray.emplaceBack(x+1,x+2,x+3),p.vertexLength+=4,p.primitiveLength+=2}}}}if(p.vertexLength+u>ci.MAX_VERTEX_ARRAY_LENGTH&&(p=this.segments.prepareSegment(u,this.layoutVertexArray,this.indexArray)),"Polygon"===ws[t.type]){for(var w=[],O=[],E=p.vertexLength,S=0,P=s;S<P.length;S+=1){var j=P[S];if(0!==j.length){j!==s[0]&&O.push(w.length/2);for(var A=0;A<j.length;A++){var C=j[A];Es(this.layoutVertexArray,C.x,C.y,0,0,1,1,0),w.push(C.x),w.push(C.y)}}}for(var T=ja(w,O),k=0;k<T.length;k+=3)this.indexArray.emplaceBack(E+T[k],E+T[k+2],E+T[k+1]);p.primitiveLength+=T.length/3,p.vertexLength+=u}}var M;this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,o,n)},Fn("FillExtrusionBucket",Ss,{omit:["layers","features"]});var js={paint:new Oo({"fill-extrusion-opacity":new go(Tt["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new bo(Tt["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new go(Tt["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new go(Tt["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new _o(Tt["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new bo(Tt["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new bo(Tt["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new go(Tt["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})},As=function(t){function e(e){t.call(this,e,js)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createBucket=function(t){return new Ss(t)},e.prototype.queryRadius=function(){return na(this.paint.get("fill-extrusion-translate"))},e.prototype.is3D=function(){return!0},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a,s,u){var c=oa(t,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),a.angle,s),l=this.paint.get("fill-extrusion-height").evaluate(e,r),p=this.paint.get("fill-extrusion-base").evaluate(e,r),f=function(t,e,r,n){for(var i=[],a=0,s=t;a<s.length;a+=1){var u=s[a],c=[u.x,u.y,0,1];fa(c,c,e),i.push(new o(c[0]/c[3],c[1]/c[3]))}return i}(c,u),h=function(t,e,r,n){for(var i=[],a=[],s=n[8]*e,u=n[9]*e,c=n[10]*e,l=n[11]*e,p=n[8]*r,f=n[9]*r,h=n[10]*r,d=n[11]*r,m=0,y=t;m<y.length;m+=1){for(var v=[],g=[],b=0,_=y[m];b<_.length;b+=1){var x=_[b],w=x.x,O=x.y,E=n[0]*w+n[4]*O+n[12],S=n[1]*w+n[5]*O+n[13],P=n[2]*w+n[6]*O+n[14],j=n[3]*w+n[7]*O+n[15],A=P+c,C=j+l,T=E+p,k=S+f,M=P+h,I=j+d,D=new o((E+s)/C,(S+u)/C);D.z=A/C,v.push(D);var L=new o(T/I,k/I);L.z=M/I,g.push(L)}i.push(v),a.push(g)}return[i,a]}(n,p,l,u);return function(t,e,r){var n=1/0;Zi(r,e)&&(n=Ts(r,e[0]));for(var o=0;o<e.length;o++)for(var i=e[o],a=t[o],s=0;s<i.length-1;s++){var u=i[s],c=[u,i[s+1],a[s+1],a[s],u];Gi(r,c)&&(n=Math.min(n,Ts(r,c)))}return n!==1/0&&n}(h[0],h[1],f)},e}(Eo);function Cs(t,e){return t.x*e.x+t.y*e.y}function Ts(t,e){if(1===t.length){for(var r,n=0,o=e[n++];!r||o.equals(r);)if(!(r=e[n++]))return 1/0;for(;n<e.length;n++){var i=e[n],a=t[0],s=r.sub(o),u=i.sub(o),c=a.sub(o),l=Cs(s,s),p=Cs(s,u),f=Cs(u,u),h=Cs(c,s),d=Cs(c,u),m=l*f-p*p,y=(f*h-p*d)/m,v=(l*d-p*h)/m,g=o.z*(1-y-v)+r.z*y+i.z*v;if(isFinite(g))return g}return 1/0}for(var b=1/0,_=0,x=e;_<x.length;_+=1)b=Math.min(b,x[_].z);return b}var ks=Ao([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4).members,Ms=Ao([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]).members,Is=xs.VectorTileFeature.types,Ds=Math.cos(Math.PI/180*37.5),Ls=Math.pow(2,14)/.5,Rs=function(t){var e=this;this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach((function(t){e.gradients[t.id]={}})),this.layoutVertexArray=new Io,this.layoutVertexArray2=new Do,this.indexArray=new qo,this.programConfigurations=new Ri(t.layers,t.zoom),this.segments=new ci,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};Rs.prototype.populate=function(t,e,r){this.hasPattern=as("line",this.layers,e);for(var n=this.layers[0].layout.get("line-sort-key"),o=!n.isConstant(),i=[],a=0,s=t;a<s.length;a+=1){var u=s[a],c=u.feature,l=u.id,p=u.index,f=u.sourceLayerIndex,h=this.layers[0]._featureFilter.needGeometry,d=Ui(c,h);if(this.layers[0]._featureFilter.filter(new uo(this.zoom),d,r)){var m=o?n.evaluate(d,{},r):void 0,y={id:l,properties:c.properties,type:c.type,sourceLayerIndex:f,index:p,geometry:h?d.geometry:Vi(c),patterns:{},sortKey:m};i.push(y)}}o&&i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var v=0,g=i;v<g.length;v+=1){var b=g[v],_=b.geometry,x=b.index,w=b.sourceLayerIndex;if(this.hasPattern){var O=ss("line",this.layers,b,this.zoom,e);this.patternFeatures.push(O)}else this.addFeature(b,_,x,r,{});e.featureIndex.insert(t[x].feature,_,x,w,this.index)}},Rs.prototype.update=function(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},Rs.prototype.addFeatures=function(t,e,r){for(var n=0,o=this.patternFeatures;n<o.length;n+=1){var i=o[n];this.addFeature(i,i.geometry,i.index,e,r)}},Rs.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Rs.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Rs.prototype.upload=function(t){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=t.createVertexBuffer(this.layoutVertexArray2,Ms)),this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,ks),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Rs.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Rs.prototype.lineFeatureClips=function(t){if(t.properties&&t.properties.hasOwnProperty("mapbox_clip_start")&&t.properties.hasOwnProperty("mapbox_clip_end"))return{start:+t.properties.mapbox_clip_start,end:+t.properties.mapbox_clip_end}},Rs.prototype.addFeature=function(t,e,r,n,o){var i=this.layers[0].layout,a=i.get("line-join").evaluate(t,{}),s=i.get("line-cap"),u=i.get("line-miter-limit"),c=i.get("line-round-limit");this.lineClips=this.lineFeatureClips(t);for(var l=0,p=e;l<p.length;l+=1)this.addLine(p[l],t,a,s,u,c);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,o,n)},Rs.prototype.addLine=function(t,e,r,n,o,i){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(var a=0;a<t.length-1;a++)this.totalDistance+=t[a].dist(t[a+1]);this.updateScaledDistance(),this.maxLineLength=Math.max(this.maxLineLength,this.totalDistance)}for(var s="Polygon"===Is[e.type],u=t.length;u>=2&&t[u-1].equals(t[u-2]);)u--;for(var c=0;c<u-1&&t[c].equals(t[c+1]);)c++;if(!(u<(s?3:2))){"bevel"===r&&(o=1.05);var l,p=this.overscaling<=16?122880/(512*this.overscaling):0,f=this.segments.prepareSegment(10*u,this.layoutVertexArray,this.indexArray),h=void 0,d=void 0,m=void 0,y=void 0;this.e1=this.e2=-1,s&&(y=t[c].sub(l=t[u-2])._unit()._perp());for(var v=c;v<u;v++)if(!(d=v===u-1?s?t[c+1]:void 0:t[v+1])||!t[v].equals(d)){y&&(m=y),l&&(h=l),l=t[v],y=d?d.sub(l)._unit()._perp():m;var g=(m=m||y).add(y);0===g.x&&0===g.y||g._unit();var b=m.x*y.x+m.y*y.y,_=g.x*y.x+g.y*y.y,x=0!==_?1/_:1/0,w=2*Math.sqrt(2-2*_),O=_<Ds&&h&&d,E=m.x*y.y-m.y*y.x>0;if(O&&v>c){var S=l.dist(h);if(S>2*p){var P=l.sub(l.sub(h)._mult(p/S)._round());this.updateDistance(h,P),this.addCurrentVertex(P,m,0,0,f),h=P}}var j=h&&d,A=j?r:s?"butt":n;if(j&&"round"===A&&(x<i?A="miter":x<=2&&(A="fakeround")),"miter"===A&&x>o&&(A="bevel"),"bevel"===A&&(x>2&&(A="flipbevel"),x<o&&(A="miter")),h&&this.updateDistance(h,l),"miter"===A)g._mult(x),this.addCurrentVertex(l,g,0,0,f);else if("flipbevel"===A){if(x>100)g=y.mult(-1);else{var C=x*m.add(y).mag()/m.sub(y).mag();g._perp()._mult(C*(E?-1:1))}this.addCurrentVertex(l,g,0,0,f),this.addCurrentVertex(l,g.mult(-1),0,0,f)}else if("bevel"===A||"fakeround"===A){var T=-Math.sqrt(x*x-1),k=E?T:0,M=E?0:T;if(h&&this.addCurrentVertex(l,m,k,M,f),"fakeround"===A)for(var I=Math.round(180*w/Math.PI/20),D=1;D<I;D++){var L=D/I;if(.5!==L){var R=L-.5;L+=L*R*(L-1)*((1.0904+b*(b*(3.55645-1.43519*b)-3.2452))*R*R+(.848013+b*(.215638*b-1.06021)))}var z=y.sub(m)._mult(L)._add(m)._unit()._mult(E?-1:1);this.addHalfVertex(l,z.x,z.y,!1,E,0,f)}d&&this.addCurrentVertex(l,y,-k,-M,f)}else if("butt"===A)this.addCurrentVertex(l,g,0,0,f);else if("square"===A){var N=h?1:-1;this.addCurrentVertex(l,g,N,N,f)}else"round"===A&&(h&&(this.addCurrentVertex(l,m,0,0,f),this.addCurrentVertex(l,m,1,1,f,!0)),d&&(this.addCurrentVertex(l,y,-1,-1,f,!0),this.addCurrentVertex(l,y,0,0,f)));if(O&&v<u-1){var F=l.dist(d);if(F>2*p){var B=l.add(d.sub(l)._mult(p/F)._round());this.updateDistance(l,B),this.addCurrentVertex(B,y,0,0,f),l=B}}}}},Rs.prototype.addCurrentVertex=function(t,e,r,n,o,i){void 0===i&&(i=!1);var a=e.y*n-e.x,s=-e.y-e.x*n;this.addHalfVertex(t,e.x+e.y*r,e.y-e.x*r,i,!1,r,o),this.addHalfVertex(t,a,s,i,!0,-n,o),this.distance>Ls/2&&0===this.totalDistance&&(this.distance=0,this.addCurrentVertex(t,e,r,n,o,i))},Rs.prototype.addHalfVertex=function(t,e,r,n,o,i,a){var s=.5*(this.lineClips?this.scaledDistance*(Ls-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((t.x<<1)+(n?1:0),(t.y<<1)+(o?1:0),Math.round(63*e)+128,Math.round(63*r)+128,1+(0===i?0:i<0?-1:1)|(63&s)<<2,s>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);var u=a.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,u),a.primitiveLength++),o?this.e2=u:this.e1=u},Rs.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},Rs.prototype.updateDistance=function(t,e){this.distance+=t.dist(e),this.updateScaledDistance()},Fn("LineBucket",Rs,{omit:["layers","patternFeatures"]});var zs=new Oo({"line-cap":new go(Tt.layout_line["line-cap"]),"line-join":new bo(Tt.layout_line["line-join"]),"line-miter-limit":new go(Tt.layout_line["line-miter-limit"]),"line-round-limit":new go(Tt.layout_line["line-round-limit"]),"line-sort-key":new bo(Tt.layout_line["line-sort-key"])}),Ns={paint:new Oo({"line-opacity":new bo(Tt.paint_line["line-opacity"]),"line-color":new bo(Tt.paint_line["line-color"]),"line-translate":new go(Tt.paint_line["line-translate"]),"line-translate-anchor":new go(Tt.paint_line["line-translate-anchor"]),"line-width":new bo(Tt.paint_line["line-width"]),"line-gap-width":new bo(Tt.paint_line["line-gap-width"]),"line-offset":new bo(Tt.paint_line["line-offset"]),"line-blur":new bo(Tt.paint_line["line-blur"]),"line-dasharray":new xo(Tt.paint_line["line-dasharray"]),"line-pattern":new _o(Tt.paint_line["line-pattern"]),"line-gradient":new wo(Tt.paint_line["line-gradient"])}),layout:zs},Fs=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,r){return r=new uo(Math.floor(r.zoom),{now:r.now,fadeDuration:r.fadeDuration,zoomHistory:r.zoomHistory,transition:r.transition}),t.prototype.possiblyEvaluate.call(this,e,r)},e.prototype.evaluate=function(e,r,n,o){return r=f({},r,{zoom:Math.floor(r.zoom)}),t.prototype.evaluate.call(this,e,r,n,o)},e}(bo))(Ns.paint.properties["line-width"].specification);Fs.useIntegerZoom=!0;var Bs=function(t){function e(e){t.call(this,e,Ns),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 $e,this.gradientVersion=(this.gradientVersion+1)%s)},e.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},e.prototype.recalculate=function(e,r){t.prototype.recalculate.call(this,e,r),this.paint._values["line-floorwidth"]=Fs.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)},e.prototype.createBucket=function(t){return new Rs(t)},e.prototype.queryRadius=function(t){var e=t,r=Vs(ra("line-width",this,e),ra("line-gap-width",this,e)),n=ra("line-offset",this,e);return r/2+Math.abs(n)+na(this.paint.get("line-translate"))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a,s){var u=oa(t,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),a.angle,s),c=s/2*Vs(this.paint.get("line-width").evaluate(e,r),this.paint.get("line-gap-width").evaluate(e,r)),l=this.paint.get("line-offset").evaluate(e,r);return l&&(n=function(t,e){for(var r=[],n=new o(0,0),i=0;i<t.length;i++){for(var a=t[i],s=[],u=0;u<a.length;u++){var c=a[u],l=a[u+1],p=0===u?n:c.sub(a[u-1])._unit()._perp(),f=u===a.length-1?n:l.sub(c)._unit()._perp(),h=p._add(f)._unit();h._mult(1/(h.x*f.x+h.y*f.y)),s.push(h._mult(e)._add(c))}r.push(s)}return r}(n,l*s)),function(t,e,r){for(var n=0;n<e.length;n++){var o=e[n];if(t.length>=3)for(var i=0;i<o.length;i++)if(ta(t,o[i]))return!0;if(Hi(t,o,r))return!0}return!1}(u,n,c)},e.prototype.isTileClipped=function(){return!0},e}(Eo);function Vs(t,e){return e>0?e+2*t:t}var Us=Ao([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),qs=Ao([{name:"a_projected_pos",components:3,type:"Float32"}],4),$s=(Ao([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),Ao([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Gs=(Ao([{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"}]),Ao([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),Ws=Ao([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function Zs(t,e,r){return t.sections.forEach((function(t){t.text=function(t,e,r){var n=e.layout.get("text-transform").evaluate(r,{});return"uppercase"===n?t=t.toLocaleUpperCase():"lowercase"===n&&(t=t.toLocaleLowerCase()),so.applyArabicShaping&&(t=so.applyArabicShaping(t)),t}(t.text,e,r)})),t}Ao([{name:"triangle",components:3,type:"Uint16"}]),Ao([{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"}]),Ao([{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"}]),Ao([{type:"Float32",name:"offsetX"}]),Ao([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var Hs={"!":"\ufe15","#":"\uff03",$:"\uff04","%":"\uff05","&":"\uff06","(":"\ufe35",")":"\ufe36","*":"\uff0a","+":"\uff0b",",":"\ufe10","-":"\ufe32",".":"\u30fb","/":"\uff0f",":":"\ufe13",";":"\ufe14","<":"\ufe3f","=":"\uff1d",">":"\ufe40","?":"\ufe16","@":"\uff20","[":"\ufe47","\\":"\uff3c","]":"\ufe48","^":"\uff3e",_:"\ufe33","`":"\uff40","{":"\ufe37","|":"\u2015","}":"\ufe38","~":"\uff5e","\xa2":"\uffe0","\xa3":"\uffe1","\xa5":"\uffe5","\xa6":"\uffe4","\xac":"\uffe2","\xaf":"\uffe3","\u2013":"\ufe32","\u2014":"\ufe31","\u2018":"\ufe43","\u2019":"\ufe44","\u201c":"\ufe41","\u201d":"\ufe42","\u2026":"\ufe19","\u2027":"\u30fb","\u20a9":"\uffe6","\u3001":"\ufe11","\u3002":"\ufe12","\u3008":"\ufe3f","\u3009":"\ufe40","\u300a":"\ufe3d","\u300b":"\ufe3e","\u300c":"\ufe41","\u300d":"\ufe42","\u300e":"\ufe43","\u300f":"\ufe44","\u3010":"\ufe3b","\u3011":"\ufe3c","\u3014":"\ufe39","\u3015":"\ufe3a","\u3016":"\ufe17","\u3017":"\ufe18","\uff01":"\ufe15","\uff08":"\ufe35","\uff09":"\ufe36","\uff0c":"\ufe10","\uff0d":"\ufe32","\uff0e":"\u30fb","\uff1a":"\ufe13","\uff1b":"\ufe14","\uff1c":"\ufe3f","\uff1e":"\ufe40","\uff1f":"\ufe16","\uff3b":"\ufe47","\uff3d":"\ufe48","\uff3f":"\ufe33","\uff5b":"\ufe37","\uff5c":"\u2015","\uff5d":"\ufe38","\uff5f":"\ufe35","\uff60":"\ufe36","\uff61":"\ufe12","\uff62":"\ufe41","\uff63":"\ufe42"},Ks=function(t,e,r,n,o){var i,a,s=8*o-n-1,u=(1<<s)-1,c=u>>1,l=-7,p=r?o-1:0,f=r?-1:1,h=t[e+p];for(p+=f,i=h&(1<<-l)-1,h>>=-l,l+=s;l>0;i=256*i+t[e+p],p+=f,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=256*a+t[e+p],p+=f,l-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),i-=c}return(h?-1:1)*a*Math.pow(2,i-n)},Ys=function(t,e,r,n,o,i){var a,s,u,c=8*i-o-1,l=(1<<c)-1,p=l>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,d=n?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=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+p>=1?f/u:f*Math.pow(2,1-p))*u>=2&&(a++,u/=2),a+p>=l?(s=0,a=l):a+p>=1?(s=(e*u-1)*Math.pow(2,o),a+=p):(s=e*Math.pow(2,p-1)*Math.pow(2,o),a=0));o>=8;t[r+h]=255&s,h+=d,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;t[r+h]=255&a,h+=d,a/=256,c-=8);t[r+h-d]|=128*m},Xs=Js;function Js(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}Js.Varint=0,Js.Fixed64=1,Js.Bytes=2,Js.Fixed32=5;var Qs="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function tu(t){return t.type===Js.Bytes?t.readVarint()+t.pos:t.pos+1}function eu(t,e,r){return r?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function ru(t,e,r){var n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));r.realloc(n);for(var o=r.pos-1;o>=t;o--)r.buf[o+n]=r.buf[o]}function nu(t,e){for(var r=0;r<t.length;r++)e.writeVarint(t[r])}function ou(t,e){for(var r=0;r<t.length;r++)e.writeSVarint(t[r])}function iu(t,e){for(var r=0;r<t.length;r++)e.writeFloat(t[r])}function au(t,e){for(var r=0;r<t.length;r++)e.writeDouble(t[r])}function su(t,e){for(var r=0;r<t.length;r++)e.writeBoolean(t[r])}function uu(t,e){for(var r=0;r<t.length;r++)e.writeFixed32(t[r])}function cu(t,e){for(var r=0;r<t.length;r++)e.writeSFixed32(t[r])}function lu(t,e){for(var r=0;r<t.length;r++)e.writeFixed64(t[r])}function pu(t,e){for(var r=0;r<t.length;r++)e.writeSFixed64(t[r])}function fu(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+16777216*t[e+3]}function hu(t,e,r){t[r]=e,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24}function du(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}function mu(t,e,r){1===t&&r.readMessage(yu,e)}function yu(t,e,r){if(3===t){var n=r.readMessage(vu,{}),o=n.width,i=n.height,a=n.left,s=n.top,u=n.advance;e.push({id:n.id,bitmap:new ba({width:o+6,height:i+6},n.bitmap),metrics:{width:o,height:i,left:a,top:s,advance:u}})}}function vu(t,e,r){1===t?e.id=r.readVarint():2===t?e.bitmap=r.readBytes():3===t?e.width=r.readVarint():4===t?e.height=r.readVarint():5===t?e.left=r.readSVarint():6===t?e.top=r.readSVarint():7===t&&(e.advance=r.readVarint())}function gu(t){for(var e=0,r=0,n=0,o=t;n<o.length;n+=1){var i=o[n];e+=i.w*i.h,r=Math.max(r,i.w)}t.sort((function(t,e){return e.h-t.h}));for(var a=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),r),h:1/0}],s=0,u=0,c=0,l=t;c<l.length;c+=1)for(var p=l[c],f=a.length-1;f>=0;f--){var h=a[f];if(!(p.w>h.w||p.h>h.h)){if(p.x=h.x,p.y=h.y,u=Math.max(u,p.y+p.h),s=Math.max(s,p.x+p.w),p.w===h.w&&p.h===h.h){var d=a.pop();f<a.length&&(a[f]=d)}else p.h===h.h?(h.x+=p.w,h.w-=p.w):p.w===h.w?(h.y+=p.h,h.h-=p.h):(a.push({x:h.x+p.w,y:h.y,w:h.w-p.w,h:p.h}),h.y+=p.h,h.h-=p.h);break}}return{w:s,h:u,fill:e/(s*u)||0}}Js.prototype={destroy:function(){this.buf=null},readFields:function(t,e,r){for(r=r||this.length;this.pos<r;){var n=this.readVarint(),o=n>>3,i=this.pos;this.type=7&n,t(o,e,this),this.pos===i&&this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=fu(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=du(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=fu(this.buf,this.pos)+4294967296*fu(this.buf,this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=fu(this.buf,this.pos)+4294967296*du(this.buf,this.pos+4);return this.pos+=8,t},readFloat:function(){var t=Ks(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=Ks(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,r,n=this.buf;return e=127&(r=n[this.pos++]),r<128?e:(e|=(127&(r=n[this.pos++]))<<7,r<128?e:(e|=(127&(r=n[this.pos++]))<<14,r<128?e:(e|=(127&(r=n[this.pos++]))<<21,r<128?e:function(t,e,r){var n,o,i=r.buf;if(n=(112&(o=i[r.pos++]))>>4,o<128)return eu(t,n,e);if(n|=(127&(o=i[r.pos++]))<<3,o<128)return eu(t,n,e);if(n|=(127&(o=i[r.pos++]))<<10,o<128)return eu(t,n,e);if(n|=(127&(o=i[r.pos++]))<<17,o<128)return eu(t,n,e);if(n|=(127&(o=i[r.pos++]))<<24,o<128)return eu(t,n,e);if(n|=(1&(o=i[r.pos++]))<<31,o<128)return eu(t,n,e);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(r=n[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=12&&Qs?function(t,e,r){return Qs.decode(t.subarray(e,r))}(this.buf,e,t):function(t,e,r){for(var n="",o=e;o<r;){var i,a,s,u=t[o],c=null,l=u>239?4:u>223?3:u>191?2:1;if(o+l>r)break;1===l?u<128&&(c=u):2===l?128==(192&(i=t[o+1]))&&(c=(31&u)<<6|63&i)<=127&&(c=null):3===l?(a=t[o+2],128==(192&(i=t[o+1]))&&128==(192&a)&&((c=(15&u)<<12|(63&i)<<6|63&a)<=2047||c>=55296&&c<=57343)&&(c=null)):4===l&&(a=t[o+2],s=t[o+3],128==(192&(i=t[o+1]))&&128==(192&a)&&128==(192&s)&&((c=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s)<=65535||c>=1114112)&&(c=null)),null===c?(c=65533,l=1):c>65535&&(c-=65536,n+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),n+=String.fromCharCode(c),o+=l}return n}(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==Js.Bytes)return t.push(this.readVarint(e));var r=tu(this);for(t=t||[];this.pos<r;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==Js.Bytes)return t.push(this.readSVarint());var e=tu(this);for(t=t||[];this.pos<e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==Js.Bytes)return t.push(this.readBoolean());var e=tu(this);for(t=t||[];this.pos<e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==Js.Bytes)return t.push(this.readFloat());var e=tu(this);for(t=t||[];this.pos<e;)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==Js.Bytes)return t.push(this.readDouble());var e=tu(this);for(t=t||[];this.pos<e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==Js.Bytes)return t.push(this.readFixed32());var e=tu(this);for(t=t||[];this.pos<e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==Js.Bytes)return t.push(this.readSFixed32());var e=tu(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==Js.Bytes)return t.push(this.readFixed64());var e=tu(this);for(t=t||[];this.pos<e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==Js.Bytes)return t.push(this.readSFixed64());var e=tu(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&t;if(e===Js.Varint)for(;this.buf[this.pos++]>127;);else if(e===Js.Bytes)this.pos=this.readVarint()+this.pos;else if(e===Js.Fixed32)this.pos+=4;else{if(e!==Js.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e<this.pos+t;)e*=2;if(e!==this.length){var r=new Uint8Array(e);r.set(this.buf),this.buf=r,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),hu(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),hu(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),hu(this.buf,-1&t,this.pos),hu(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),hu(this.buf,-1&t,this.pos),hu(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(t){(t=+t||0)>268435455||t<0?function(t,e){var r,n;if(t>=0?(r=t%4294967296|0,n=t/4294967296|0):(n=~(-t/4294967296),4294967295^(r=~(-t%4294967296))?r=r+1|0:(r=0,n=n+1|0)),t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),function(t,e,r){r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,r.buf[r.pos]=127&(t>>>=7)}(r,0,e),function(t,e){var r=(7&t)<<4;e.buf[e.pos++]|=r|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t)))))}(n,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,r){for(var n,o,i=0;i<e.length;i++){if((n=e.charCodeAt(i))>55295&&n<57344){if(!o){n>56319||i+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):o=n;continue}if(n<56320){t[r++]=239,t[r++]=191,t[r++]=189,o=n;continue}n=o-55296<<10|n-56320|65536,o=null}else o&&(t[r++]=239,t[r++]=191,t[r++]=189,o=null);n<128?t[r++]=n:(n<2048?t[r++]=n>>6|192:(n<65536?t[r++]=n>>12|224:(t[r++]=n>>18|240,t[r++]=n>>12&63|128),t[r++]=n>>6&63|128),t[r++]=63&n|128)}return r}(this.buf,t,this.pos);var r=this.pos-e;r>=128&&ru(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeFloat:function(t){this.realloc(4),Ys(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),Ys(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 r=0;r<e;r++)this.buf[this.pos++]=t[r]},writeRawMessage:function(t,e){this.pos++;var r=this.pos;t(e,this);var n=this.pos-r;n>=128&&ru(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,r){this.writeTag(t,Js.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,nu,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,ou,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,su,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,iu,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,au,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,uu,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,cu,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,lu,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,pu,e)},writeBytesField:function(t,e){this.writeTag(t,Js.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,Js.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,Js.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,Js.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,Js.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,Js.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,Js.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,Js.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,Js.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,Js.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}};var bu=function(t,e){var r=e.pixelRatio,n=e.version,o=e.stretchX,i=e.stretchY,a=e.content;this.paddedRect=t,this.pixelRatio=r,this.stretchX=o,this.stretchY=i,this.content=a,this.version=n},_u={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};_u.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},_u.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},_u.tlbr.get=function(){return this.tl.concat(this.br)},_u.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(bu.prototype,_u);var xu=function(t,e){var r={},n={};this.haveRenderCallbacks=[];var o=[];this.addImages(t,r,o),this.addImages(e,n,o);var i=gu(o),a=new _a({width:i.w||1,height:i.h||1});for(var s in t){var u=t[s],c=r[s].paddedRect;_a.copy(u.data,a,{x:0,y:0},{x:c.x+1,y:c.y+1},u.data)}for(var l in e){var p=e[l],f=n[l].paddedRect,h=f.x+1,d=f.y+1,m=p.data.width,y=p.data.height;_a.copy(p.data,a,{x:0,y:0},{x:h,y:d},p.data),_a.copy(p.data,a,{x:0,y:y-1},{x:h,y:d-1},{width:m,height:1}),_a.copy(p.data,a,{x:0,y:0},{x:h,y:d+y},{width:m,height:1}),_a.copy(p.data,a,{x:m-1,y:0},{x:h-1,y:d},{width:1,height:y}),_a.copy(p.data,a,{x:0,y:0},{x:h+m,y:d},{width:1,height:y})}this.image=a,this.iconPositions=r,this.patternPositions=n};xu.prototype.addImages=function(t,e,r){for(var n in t){var o=t[n],i={x:0,y:0,w:o.data.width+2,h:o.data.height+2};r.push(i),e[n]=new bu(i,o),o.hasRenderCallback&&this.haveRenderCallbacks.push(n)}},xu.prototype.patchUpdatedImages=function(t,e){for(var r in t.dispatchRenderCallbacks(this.haveRenderCallbacks),t.updatedImages)this.patchUpdatedImage(this.iconPositions[r],t.getImage(r),e),this.patchUpdatedImage(this.patternPositions[r],t.getImage(r),e)},xu.prototype.patchUpdatedImage=function(t,e,r){if(t&&e&&t.version!==e.version){t.version=e.version;var n=t.tl;r.update(e.data,void 0,{x:n[0],y:n[1]})}},Fn("ImagePosition",bu),Fn("ImageAtlas",xu);var wu={horizontal:1,vertical:2,horizontalOnly:3},Ou=function(){this.scale=1,this.fontStack="",this.imageName=null};Ou.forText=function(t,e){var r=new Ou;return r.scale=t||1,r.fontStack=e,r},Ou.forImage=function(t){var e=new Ou;return e.imageName=t,e};var Eu=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function Su(t,e,r,n,o,i,a,s,u,c,l,p,f,h,d,m){var y,v=Eu.fromFeature(t,o);p===wu.vertical&&v.verticalizePunctuation();var g=so.processBidirectionalText,b=so.processStyledBidirectionalText;if(g&&1===v.sections.length){y=[];for(var _=0,x=g(v.toString(),Mu(v,c,i,e,n,h,d));_<x.length;_+=1){var w=x[_],O=new Eu;O.text=w,O.sections=v.sections;for(var E=0;E<w.length;E++)O.sectionIndex.push(0);y.push(O)}}else if(b){y=[];for(var S=0,P=b(v.text,v.sectionIndex,Mu(v,c,i,e,n,h,d));S<P.length;S+=1){var j=P[S],A=new Eu;A.text=j[0],A.sectionIndex=j[1],A.sections=v.sections,y.push(A)}}else y=function(t,e){for(var r=[],n=t.text,o=0,i=0,a=e;i<a.length;i+=1){var s=a[i];r.push(t.substring(o,s)),o=s}return o<n.length&&r.push(t.substring(o,n.length)),r}(v,Mu(v,c,i,e,n,h,d));var C=[],T={positionedLines:C,text:v.toString(),top:l[1],bottom:l[1],left:l[0],right:l[0],writingMode:p,iconsInText:!1,verticalizable:!1};return function(t,e,r,n,o,i,a,s,u,c,l,p){for(var f=0,h=-17,d=0,m=0,y="right"===s?1:"left"===s?0:.5,v=0,g=0,b=o;g<b.length;g+=1){var _=b[g];_.trim();var x=_.getMaxScale(),w=24*(x-1),O={positionedGlyphs:[],lineOffset:0};t.positionedLines[v]=O;var E=O.positionedGlyphs,S=0;if(_.length()){for(var P=0;P<_.length();P++){var j=_.getSection(P),A=_.getSectionIndex(P),C=_.getCharCode(P),T=0,k=null,M=null,I=null,D=24,L=!(u===wu.horizontal||!l&&!Hn(C)||l&&(Pu[C]||($=C,Wn.Arabic($)||Wn["Arabic Supplement"]($)||Wn["Arabic Extended-A"]($)||Wn["Arabic Presentation Forms-A"]($)||Wn["Arabic Presentation Forms-B"]($))));if(j.imageName){var R=n[j.imageName];if(!R)continue;I=j.imageName,t.iconsInText=t.iconsInText||!0,M=R.paddedRect;var z=R.displaySize;j.scale=24*j.scale/p,T=w+(24-z[1]*j.scale),D=(k={width:z[0],height:z[1],left:1,top:-3,advance:L?z[1]:z[0]}).advance;var N=L?z[0]*j.scale-24*x:z[1]*j.scale-24*x;N>0&&N>S&&(S=N)}else{var F=r[j.fontStack],B=F&&F[C];if(B&&B.rect)M=B.rect,k=B.metrics;else{var V=e[j.fontStack],U=V&&V[C];if(!U)continue;k=U.metrics}T=24*(x-j.scale)}L?(t.verticalizable=!0,E.push({glyph:C,imageName:I,x:f,y:h+T,vertical:L,scale:j.scale,fontStack:j.fontStack,sectionIndex:A,metrics:k,rect:M}),f+=D*j.scale+c):(E.push({glyph:C,imageName:I,x:f,y:h+T,vertical:L,scale:j.scale,fontStack:j.fontStack,sectionIndex:A,metrics:k,rect:M}),f+=k.advance*j.scale+c)}0!==E.length&&(d=Math.max(f-c,d),Du(E,0,E.length-1,y,S)),f=0;var q=i*x+S;O.lineOffset=Math.max(S,w),h+=q,m=Math.max(q,m),++v}else h+=i,++v}var $,G=h- -17,W=Iu(a),Z=W.horizontalAlign,H=W.verticalAlign;(function(t,e,r,n,o,i,a,s,u){var c,l=(e-r)*o;c=i!==a?-s*n- -17:(-n*u+.5)*a;for(var p=0,f=t;p<f.length;p+=1)for(var h=0,d=f[p].positionedGlyphs;h<d.length;h+=1){var m=d[h];m.x+=l,m.y+=c}})(t.positionedLines,y,Z,H,d,m,i,G,o.length),t.top+=-H*G,t.bottom=t.top+G,t.left+=-Z*d,t.right=t.left+d}(T,e,r,n,y,a,s,u,p,c,f,m),!function(t){for(var e=0,r=t;e<r.length;e+=1)if(0!==r[e].positionedGlyphs.length)return!1;return!0}(C)&&T}Eu.fromFeature=function(t,e){for(var r=new Eu,n=0;n<t.sections.length;n++){var o=t.sections[n];o.image?r.addImageSection(o):r.addTextSection(o,e)}return r},Eu.prototype.length=function(){return this.text.length},Eu.prototype.getSection=function(t){return this.sections[this.sectionIndex[t]]},Eu.prototype.getSectionIndex=function(t){return this.sectionIndex[t]},Eu.prototype.getCharCode=function(t){return this.text.charCodeAt(t)},Eu.prototype.verticalizePunctuation=function(){this.text=function(t){for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r+1)||null,o=t.charCodeAt(r-1)||null;e+=n&&Kn(n)&&!Hs[t[r+1]]||o&&Kn(o)&&!Hs[t[r-1]]||!Hs[t[r]]?t[r]:Hs[t[r]]}return e}(this.text)},Eu.prototype.trim=function(){for(var t=0,e=0;e<this.text.length&&Pu[this.text.charCodeAt(e)];e++)t++;for(var r=this.text.length,n=this.text.length-1;n>=0&&n>=t&&Pu[this.text.charCodeAt(n)];n--)r--;this.text=this.text.substring(t,r),this.sectionIndex=this.sectionIndex.slice(t,r)},Eu.prototype.substring=function(t,e){var r=new Eu;return r.text=this.text.substring(t,e),r.sectionIndex=this.sectionIndex.slice(t,e),r.sections=this.sections,r},Eu.prototype.toString=function(){return this.text},Eu.prototype.getMaxScale=function(){var t=this;return this.sectionIndex.reduce((function(e,r){return Math.max(e,t.sections[r].scale)}),0)},Eu.prototype.addTextSection=function(t,e){this.text+=t.text,this.sections.push(Ou.forText(t.scale,t.fontStack||e));for(var r=this.sections.length-1,n=0;n<t.text.length;++n)this.sectionIndex.push(r)},Eu.prototype.addImageSection=function(t){var e=t.image?t.image.name:"";if(0!==e.length){var r=this.getNextImageSectionCharCode();r?(this.text+=String.fromCharCode(r),this.sections.push(Ou.forImage(e)),this.sectionIndex.push(this.sections.length-1)):O("Reached maximum number of images 6401")}else O("Can't add FormattedSection with an empty image.")},Eu.prototype.getNextImageSectionCharCode=function(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var Pu={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},ju={};function Au(t,e,r,n,o,i){if(e.imageName){var a=n[e.imageName];return a?a.displaySize[0]*e.scale*24/i+o:0}var s=r[e.fontStack],u=s&&s[t];return u?u.metrics.advance*e.scale+o:0}function Cu(t,e,r,n){var o=Math.pow(t-e,2);return n?t<e?o/2:2*o:o+Math.abs(r)*r}function Tu(t,e,r){var n=0;return 10===t&&(n-=1e4),r&&(n+=150),40!==t&&65288!==t||(n+=50),41!==e&&65289!==e||(n+=50),n}function ku(t,e,r,n,o,i){for(var a=null,s=Cu(e,r,o,i),u=0,c=n;u<c.length;u+=1){var l=c[u],p=Cu(e-l.x,r,o,i)+l.badness;p<=s&&(a=l,s=p)}return{index:t,x:e,priorBreak:a,badness:s}}function Mu(t,e,r,n,o,i,a){if("point"!==i)return[];if(!t)return[];for(var s,u=[],c=function(t,e,r,n,o,i){for(var a=0,s=0;s<t.length();s++){var u=t.getSection(s);a+=Au(t.getCharCode(s),u,n,o,e,i)}return a/Math.max(1,Math.ceil(a/r))}(t,e,r,n,o,a),l=t.text.indexOf("\u200b")>=0,p=0,f=0;f<t.length();f++){var h=t.getSection(f),d=t.getCharCode(f);if(Pu[d]||(p+=Au(d,h,n,o,e,a)),f<t.length()-1){var m=!((s=d)<11904||!(Wn["Bopomofo Extended"](s)||Wn.Bopomofo(s)||Wn["CJK Compatibility Forms"](s)||Wn["CJK Compatibility Ideographs"](s)||Wn["CJK Compatibility"](s)||Wn["CJK Radicals Supplement"](s)||Wn["CJK Strokes"](s)||Wn["CJK Symbols and Punctuation"](s)||Wn["CJK Unified Ideographs Extension A"](s)||Wn["CJK Unified Ideographs"](s)||Wn["Enclosed CJK Letters and Months"](s)||Wn["Halfwidth and Fullwidth Forms"](s)||Wn.Hiragana(s)||Wn["Ideographic Description Characters"](s)||Wn["Kangxi Radicals"](s)||Wn["Katakana Phonetic Extensions"](s)||Wn.Katakana(s)||Wn["Vertical Forms"](s)||Wn["Yi Radicals"](s)||Wn["Yi Syllables"](s)));(ju[d]||m||h.imageName)&&u.push(ku(f+1,p,c,u,Tu(d,t.getCharCode(f+1),m&&l),!1))}}return function t(e){return e?t(e.priorBreak).concat(e.index):[]}(ku(t.length(),p,c,u,0,!0))}function Iu(t){var e=.5,r=.5;switch(t){case"right":case"top-right":case"bottom-right":e=1;break;case"left":case"top-left":case"bottom-left":e=0}switch(t){case"bottom":case"bottom-right":case"bottom-left":r=1;break;case"top":case"top-right":case"top-left":r=0}return{horizontalAlign:e,verticalAlign:r}}function Du(t,e,r,n,o){if(n||o)for(var i=t[r],a=(t[r].x+i.metrics.advance*i.scale)*n,s=e;s<=r;s++)t[s].x-=a,t[s].y+=o}function Lu(t,e,r,n,o,i){var a,s=t.image;if(s.content){var u=s.content,c=s.pixelRatio||1;a=[u[0]/c,u[1]/c,s.displaySize[0]-u[2]/c,s.displaySize[1]-u[3]/c]}var l,p,f,h,d=e.left*i,m=e.right*i;"width"===r||"both"===r?(h=o[0]+d-n[3],p=o[0]+m+n[1]):p=(h=o[0]+(d+m-s.displaySize[0])/2)+s.displaySize[0];var y=e.top*i,v=e.bottom*i;return"height"===r||"both"===r?(l=o[1]+y-n[0],f=o[1]+v+n[2]):f=(l=o[1]+(y+v-s.displaySize[1])/2)+s.displaySize[1],{image:s,top:l,right:p,bottom:f,left:h,collisionPadding:a}}ju[10]=!0,ju[32]=!0,ju[38]=!0,ju[40]=!0,ju[41]=!0,ju[43]=!0,ju[45]=!0,ju[47]=!0,ju[173]=!0,ju[183]=!0,ju[8203]=!0,ju[8208]=!0,ju[8211]=!0,ju[8231]=!0;var Ru=function(t){function e(e,r,n,o){t.call(this,e,r),this.angle=n,void 0!==o&&(this.segment=o)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.clone=function(){return new e(this.x,this.y,this.angle,this.segment)},e}(o);function zu(t,e){var r=e.expression;if("constant"===r.kind)return{kind:"constant",layoutSize:r.evaluate(new uo(t+1))};if("source"===r.kind)return{kind:"source"};for(var n=r.zoomStops,o=r.interpolationType,i=0;i<n.length&&n[i]<=t;)i++;for(var a=i=Math.max(0,i-1);a<n.length&&n[a]<t+1;)a++;a=Math.min(n.length-1,a);var s=n[i],u=n[a];return"composite"===r.kind?{kind:"composite",minZoom:s,maxZoom:u,interpolationType:o}:{kind:"camera",minZoom:s,maxZoom:u,minSize:r.evaluate(new uo(s)),maxSize:r.evaluate(new uo(u)),interpolationType:o}}function Nu(t,e,r){var n=e.uSize,o=r.lowerSize;return"source"===t.kind?o/128:"composite"===t.kind?Ge(o/128,r.upperSize/128,e.uSizeT):n}function Fu(t,e){var r=0,n=0;if("constant"===t.kind)n=t.layoutSize;else if("source"!==t.kind){var o=t.interpolationType,i=o?l(ar.interpolationFactor(o,e,t.minZoom,t.maxZoom),0,1):0;"camera"===t.kind?n=Ge(t.minSize,t.maxSize,i):r=i}return{uSizeT:r,uSize:n}}Fn("Anchor",Ru);var Bu=Object.freeze({__proto__:null,getSizeData:zu,evaluateSizeForFeature:Nu,evaluateSizeForZoom:Fu,SIZE_PACK_FACTOR:128});function Vu(t,e,r,n,o){if(void 0===e.segment)return!0;for(var i=e,a=e.segment+1,s=0;s>-r/2;){if(--a<0)return!1;s-=t[a].dist(i),i=t[a]}s+=t[a].dist(t[a+1]),a++;for(var u=[],c=0;s<r/2;){var l=t[a],p=t[a+1];if(!p)return!1;var f=t[a-1].angleTo(l)-l.angleTo(p);for(f=Math.abs((f+3*Math.PI)%(2*Math.PI)-Math.PI),u.push({distance:s,angleDelta:f}),c+=f;s-u[0].distance>n;)c-=u.shift().angleDelta;if(c>o)return!1;a++,s+=l.dist(p)}return!0}function Uu(t){for(var e=0,r=0;r<t.length-1;r++)e+=t[r].dist(t[r+1]);return e}function qu(t,e,r){return t?.6*e*r:0}function $u(t,e){return Math.max(t?t.right-t.left:0,e?e.right-e.left:0)}function Gu(t,e,r,n,o,i){for(var a=qu(r,o,i),s=$u(r,n)*i,u=0,c=Uu(t)/2,l=0;l<t.length-1;l++){var p=t[l],f=t[l+1],h=p.dist(f);if(u+h>c){var d=(c-u)/h,m=Ge(p.x,f.x,d),y=Ge(p.y,f.y,d),v=new Ru(m,y,f.angleTo(p),l);return v._round(),!a||Vu(t,v,s,a,e)?v:void 0}u+=h}}function Wu(t,e,r,n,o,i,a,s,u){var c=qu(n,i,a),l=$u(n,o),p=l*a,f=0===t[0].x||t[0].x===u||0===t[0].y||t[0].y===u;return e-p<e/4&&(e=p+e/4),function t(e,r,n,o,i,a,s,u,c){for(var l=a/2,p=Uu(e),f=0,h=r-n,d=[],m=0;m<e.length-1;m++){for(var y=e[m],v=e[m+1],g=y.dist(v),b=v.angleTo(y);h+n<f+g;){var _=((h+=n)-f)/g,x=Ge(y.x,v.x,_),w=Ge(y.y,v.y,_);if(x>=0&&x<c&&w>=0&&w<c&&h-l>=0&&h+l<=p){var O=new Ru(x,w,b,m);O._round(),o&&!Vu(e,O,a,o,i)||d.push(O)}}f+=g}return u||d.length||s||(d=t(e,f/2,n,o,i,a,s,!0,c)),d}(t,f?e/2*s%e:(l/2+2*i)*a*s%e,e,c,r,p,f,!1,u)}function Zu(t,e,r,n,i){for(var a=[],s=0;s<t.length;s++)for(var u=t[s],c=void 0,l=0;l<u.length-1;l++){var p=u[l],f=u[l+1];p.x<e&&f.x<e||(p.x<e?p=new o(e,p.y+(e-p.x)/(f.x-p.x)*(f.y-p.y))._round():f.x<e&&(f=new o(e,p.y+(e-p.x)/(f.x-p.x)*(f.y-p.y))._round()),p.y<r&&f.y<r||(p.y<r?p=new o(p.x+(r-p.y)/(f.y-p.y)*(f.x-p.x),r)._round():f.y<r&&(f=new o(p.x+(r-p.y)/(f.y-p.y)*(f.x-p.x),r)._round()),p.x>=n&&f.x>=n||(p.x>=n?p=new o(n,p.y+(n-p.x)/(f.x-p.x)*(f.y-p.y))._round():f.x>=n&&(f=new o(n,p.y+(n-p.x)/(f.x-p.x)*(f.y-p.y))._round()),p.y>=i&&f.y>=i||(p.y>=i?p=new o(p.x+(i-p.y)/(f.y-p.y)*(f.x-p.x),i)._round():f.y>=i&&(f=new o(p.x+(i-p.y)/(f.y-p.y)*(f.x-p.x),i)._round()),c&&p.equals(c[c.length-1])||a.push(c=[p]),c.push(f)))))}return a}function Hu(t,e,r,n){var i=[],a=t.image,s=a.pixelRatio,u=a.paddedRect.w-2,c=a.paddedRect.h-2,l=t.right-t.left,p=t.bottom-t.top,f=a.stretchX||[[0,u]],h=a.stretchY||[[0,c]],d=function(t,e){return t+e[1]-e[0]},m=f.reduce(d,0),y=h.reduce(d,0),v=u-m,g=c-y,b=0,_=m,x=0,w=y,O=0,E=v,S=0,P=g;if(a.content&&n){var j=a.content;b=Ku(f,0,j[0]),x=Ku(h,0,j[1]),_=Ku(f,j[0],j[2]),w=Ku(h,j[1],j[3]),O=j[0]-b,S=j[1]-x,E=j[2]-j[0]-_,P=j[3]-j[1]-w}var A=function(n,i,u,c){var f=Xu(n.stretch-b,_,l,t.left),h=Ju(n.fixed-O,E,n.stretch,m),d=Xu(i.stretch-x,w,p,t.top),v=Ju(i.fixed-S,P,i.stretch,y),g=Xu(u.stretch-b,_,l,t.left),j=Ju(u.fixed-O,E,u.stretch,m),A=Xu(c.stretch-x,w,p,t.top),C=Ju(c.fixed-S,P,c.stretch,y),T=new o(f,d),k=new o(g,d),M=new o(g,A),I=new o(f,A),D=new o(h/s,v/s),L=new o(j/s,C/s),R=e*Math.PI/180;if(R){var z=Math.sin(R),N=Math.cos(R),F=[N,-z,z,N];T._matMult(F),k._matMult(F),I._matMult(F),M._matMult(F)}var B=n.stretch+n.fixed,V=i.stretch+i.fixed;return{tl:T,tr:k,bl:I,br:M,tex:{x:a.paddedRect.x+1+B,y:a.paddedRect.y+1+V,w:u.stretch+u.fixed-B,h:c.stretch+c.fixed-V},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:D,pixelOffsetBR:L,minFontScaleX:E/s/l,minFontScaleY:P/s/p,isSDF:r}};if(n&&(a.stretchX||a.stretchY))for(var C=Yu(f,v,m),T=Yu(h,g,y),k=0;k<C.length-1;k++)for(var M=C[k],I=C[k+1],D=0;D<T.length-1;D++)i.push(A(M,T[D],I,T[D+1]));else i.push(A({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:u+1},{fixed:0,stretch:c+1}));return i}function Ku(t,e,r){for(var n=0,o=0,i=t;o<i.length;o+=1){var a=i[o];n+=Math.max(e,Math.min(r,a[1]))-Math.max(e,Math.min(r,a[0]))}return n}function Yu(t,e,r){for(var n=[{fixed:-1,stretch:0}],o=0,i=t;o<i.length;o+=1){var a=i[o],s=a[0],u=a[1],c=n[n.length-1];n.push({fixed:s-c.stretch,stretch:c.stretch}),n.push({fixed:s-c.stretch,stretch:c.stretch+(u-s)})}return n.push({fixed:e+1,stretch:r}),n}function Xu(t,e,r,n){return t/e*r+n}function Ju(t,e,r,n){return t-e*r/n}var Qu=function(t,e,r,n,i,a,s,u,c,l){if(this.boxStartIndex=t.length,c){var p=a.top,f=a.bottom,h=a.collisionPadding;h&&(p-=h[1],f+=h[3]);var d=f-p;d>0&&(d=Math.max(10,d),this.circleDiameter=d)}else{var m=a.top*s-u,y=a.bottom*s+u,v=a.left*s-u,g=a.right*s+u,b=a.collisionPadding;if(b&&(v-=b[0]*s,m-=b[1]*s,g+=b[2]*s,y+=b[3]*s),l){var _=new o(v,m),x=new o(g,m),w=new o(v,y),O=new o(g,y),E=l*Math.PI/180;_._rotate(E),x._rotate(E),w._rotate(E),O._rotate(E),v=Math.min(_.x,x.x,w.x,O.x),g=Math.max(_.x,x.x,w.x,O.x),m=Math.min(_.y,x.y,w.y,O.y),y=Math.max(_.y,x.y,w.y,O.y)}t.emplaceBack(e.x,e.y,v,m,g,y,r,n,i)}this.boxEndIndex=t.length},tc=function(t,e){if(void 0===t&&(t=[]),void 0===e&&(e=ec),this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(var r=(this.length>>1)-1;r>=0;r--)this._down(r)};function ec(t,e){return t<e?-1:t>e?1:0}function rc(t,e,r){void 0===e&&(e=1),void 0===r&&(r=!1);for(var n=1/0,i=1/0,a=-1/0,s=-1/0,u=t[0],c=0;c<u.length;c++){var l=u[c];(!c||l.x<n)&&(n=l.x),(!c||l.y<i)&&(i=l.y),(!c||l.x>a)&&(a=l.x),(!c||l.y>s)&&(s=l.y)}var p=Math.min(a-n,s-i),f=p/2,h=new tc([],nc);if(0===p)return new o(n,i);for(var d=n;d<a;d+=p)for(var m=i;m<s;m+=p)h.push(new oc(d+f,m+f,f,t));for(var y=function(t){for(var e=0,r=0,n=0,o=t[0],i=0,a=o.length,s=a-1;i<a;s=i++){var u=o[i],c=o[s],l=u.x*c.y-c.x*u.y;r+=(u.x+c.x)*l,n+=(u.y+c.y)*l,e+=3*l}return new oc(r/e,n/e,0,t)}(t),v=h.length;h.length;){var g=h.pop();(g.d>y.d||!y.d)&&(y=g,r&&console.log("found best %d after %d probes",Math.round(1e4*g.d)/1e4,v)),g.max-y.d<=e||(h.push(new oc(g.p.x-(f=g.h/2),g.p.y-f,f,t)),h.push(new oc(g.p.x+f,g.p.y-f,f,t)),h.push(new oc(g.p.x-f,g.p.y+f,f,t)),h.push(new oc(g.p.x+f,g.p.y+f,f,t)),v+=4)}return r&&(console.log("num probes: "+v),console.log("best distance: "+y.d)),y.p}function nc(t,e){return e.max-t.max}function oc(t,e,r,n){this.p=new o(t,e),this.h=r,this.d=function(t,e){for(var r=!1,n=1/0,o=0;o<e.length;o++)for(var i=e[o],a=0,s=i.length,u=s-1;a<s;u=a++){var c=i[a],l=i[u];c.y>t.y!=l.y>t.y&&t.x<(l.x-c.x)*(t.y-c.y)/(l.y-c.y)+c.x&&(r=!r),n=Math.min(n,Ji(t,c,l))}return(r?1:-1)*Math.sqrt(n)}(this.p,n),this.max=this.d+this.h*Math.SQRT2}tc.prototype.push=function(t){this.data.push(t),this.length++,this._up(this.length-1)},tc.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}},tc.prototype.peek=function(){return this.data[0]},tc.prototype._up=function(t){for(var e=this.data,r=this.compare,n=e[t];t>0;){var o=t-1>>1,i=e[o];if(r(n,i)>=0)break;e[t]=i,t=o}e[t]=n},tc.prototype._down=function(t){for(var e=this.data,r=this.compare,n=this.length>>1,o=e[t];t<n;){var i=1+(t<<1),a=e[i],s=i+1;if(s<this.length&&r(e[s],a)<0&&(i=s,a=e[s]),r(a,o)>=0)break;e[t]=a,t=i}e[t]=o};var ic=Number.POSITIVE_INFINITY;function ac(t,e){return e[1]!==ic?function(t,e,r){var n=0,o=0;switch(e=Math.abs(e),r=Math.abs(r),t){case"top-right":case"top-left":case"top":o=r-7;break;case"bottom-right":case"bottom-left":case"bottom":o=7-r}switch(t){case"top-right":case"bottom-right":case"right":n=-e;break;case"top-left":case"bottom-left":case"left":n=e}return[n,o]}(t,e[0],e[1]):function(t,e){var r=0,n=0;e<0&&(e=0);var o=e/Math.sqrt(2);switch(t){case"top-right":case"top-left":n=o-7;break;case"bottom-right":case"bottom-left":n=7-o;break;case"bottom":n=7-e;break;case"top":n=e-7}switch(t){case"top-right":case"bottom-right":r=-o;break;case"top-left":case"bottom-left":r=o;break;case"left":r=e;break;case"right":r=-e}return[r,n]}(t,e[0])}function sc(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 uc(t,e,r,n,i,a,s,u,c,l,p,f,h,d,m){var y=function(t,e,r,n,i,a,s,u){for(var c=n.layout.get("text-rotate").evaluate(a,{})*Math.PI/180,l=[],p=0,f=e.positionedLines;p<f.length;p+=1)for(var h=f[p],d=0,m=h.positionedGlyphs;d<m.length;d+=1){var y=m[d];if(y.rect){var v=y.rect||{},g=4,b=!0,_=1,x=0,w=(i||u)&&y.vertical,O=y.metrics.advance*y.scale/2;if(u&&e.verticalizable&&(x=h.lineOffset/2-(y.imageName?-(24-y.metrics.width*y.scale)/2:24*(y.scale-1))),y.imageName){var E=s[y.imageName];b=E.sdf,g=1/(_=E.pixelRatio)}var S=i?[y.x+O,y.y]:[0,0],P=i?[0,0]:[y.x+O+r[0],y.y+r[1]-x],j=[0,0];w&&(j=P,P=[0,0]);var A=(y.metrics.left-g)*y.scale-O+P[0],C=(-y.metrics.top-g)*y.scale+P[1],T=A+v.w*y.scale/_,k=C+v.h*y.scale/_,M=new o(A,C),I=new o(T,C),D=new o(A,k),L=new o(T,k);if(w){var R=new o(-O,O- -17),z=-Math.PI/2,N=12-O,F=new o(22-N,-(y.imageName?N:0)),B=new(Function.prototype.bind.apply(o,[null].concat(j)));M._rotateAround(z,R)._add(F)._add(B),I._rotateAround(z,R)._add(F)._add(B),D._rotateAround(z,R)._add(F)._add(B),L._rotateAround(z,R)._add(F)._add(B)}if(c){var V=Math.sin(c),U=Math.cos(c),q=[U,-V,V,U];M._matMult(q),I._matMult(q),D._matMult(q),L._matMult(q)}var $=new o(0,0),G=new o(0,0);l.push({tl:M,tr:I,bl:D,br:L,tex:v,writingMode:e.writingMode,glyphOffset:S,sectionIndex:y.sectionIndex,isSDF:b,pixelOffsetTL:$,pixelOffsetBR:G,minFontScaleX:0,minFontScaleY:0})}}return l}(0,r,u,i,a,s,n,t.allowVerticalPlacement),v=t.textSizeData,g=null;"source"===v.kind?(g=[128*i.layout.get("text-size").evaluate(s,{})])[0]>32640&&O(t.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'):"composite"===v.kind&&((g=[128*d.compositeTextSizes[0].evaluate(s,{},m),128*d.compositeTextSizes[1].evaluate(s,{},m)])[0]>32640||g[1]>32640)&&O(t.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'),t.addSymbols(t.text,y,g,u,a,s,l,e,c.lineStartIndex,c.lineLength,h,m);for(var b=0,_=p;b<_.length;b+=1)f[_[b]]=t.text.placedSymbolArray.length-1;return 4*y.length}function cc(t){for(var e in t)return t[e];return null}function lc(t,e,r,n){var o=t.compareText;if(e in o){for(var i=o[e],a=i.length-1;a>=0;a--)if(n.dist(i[a])<r)return!0}else o[e]=[];return o[e].push(n),!1}var pc=xs.VectorTileFeature.types,fc=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function hc(t,e,r,n,o,i,a,s,u,c,l,p,f){var h=s?Math.min(32640,Math.round(s[0])):0,d=s?Math.min(32640,Math.round(s[1])):0;t.emplaceBack(e,r,Math.round(32*n),Math.round(32*o),i,a,(h<<1)+(u?1:0),d,16*c,16*l,256*p,256*f)}function dc(t,e,r){t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r)}function mc(t){for(var e=0,r=t.sections;e<r.length;e+=1)if(Jn(r[e].text))return!0;return!1}var yc=function(t){this.layoutVertexArray=new Ro,this.indexArray=new qo,this.programConfigurations=t,this.segments=new ci,this.dynamicLayoutVertexArray=new zo,this.opacityVertexArray=new No,this.placedSymbolArray=new ei};yc.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length},yc.prototype.upload=function(t,e,r,n){this.isEmpty()||(r&&(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Us.members),this.indexBuffer=t.createIndexBuffer(this.indexArray,e),this.dynamicLayoutVertexBuffer=t.createVertexBuffer(this.dynamicLayoutVertexArray,qs.members,!0),this.opacityVertexBuffer=t.createVertexBuffer(this.opacityVertexArray,fc,!0),this.opacityVertexBuffer.itemSize=1),(r||n)&&this.programConfigurations.upload(t))},yc.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())},Fn("SymbolBuffers",yc);var vc=function(t,e,r){this.layoutVertexArray=new t,this.layoutAttributes=e,this.indexArray=new r,this.segments=new ci,this.collisionVertexArray=new Uo};vc.prototype.upload=function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=t.createVertexBuffer(this.collisionVertexArray,$s.members,!0)},vc.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())},Fn("CollisionBuffers",vc);var gc=function(t){this.collisionBoxArray=t.collisionBoxArray,this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=ua([]),this.placementViewportMatrix=ua([]);var e=this.layers[0]._unevaluatedLayout._values;this.textSizeData=zu(this.zoom,e["text-size"]),this.iconSizeData=zu(this.zoom,e["icon-size"]);var r=this.layers[0].layout,n=r.get("symbol-sort-key"),o=r.get("symbol-z-order");this.canOverlap=r.get("text-allow-overlap")||r.get("icon-allow-overlap")||r.get("text-ignore-placement")||r.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==o&&!n.isConstant(),this.sortFeaturesByY=("viewport-y"===o||"auto"===o&&!this.sortFeaturesByKey)&&this.canOverlap,"point"===r.get("symbol-placement")&&(this.writingModes=r.get("text-writing-mode").map((function(t){return wu[t]}))),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id})),this.sourceID=t.sourceID};gc.prototype.createArrays=function(){this.text=new yc(new Ri(this.layers,this.zoom,(function(t){return/^text/.test(t)}))),this.icon=new yc(new Ri(this.layers,this.zoom,(function(t){return/^icon/.test(t)}))),this.glyphOffsetArray=new oi,this.lineVertexArray=new ii,this.symbolInstances=new ni},gc.prototype.calculateGlyphDependencies=function(t,e,r,n,o){for(var i=0;i<t.length;i++)if(e[t.charCodeAt(i)]=!0,(r||n)&&o){var a=Hs[t.charAt(i)];a&&(e[a.charCodeAt(0)]=!0)}},gc.prototype.populate=function(t,e,r){var n=this.layers[0],o=n.layout,i=o.get("text-font"),a=o.get("text-field"),s=o.get("icon-image"),u=("constant"!==a.value.kind||a.value.value instanceof oe&&!a.value.value.isEmpty()||a.value.value.toString().length>0)&&("constant"!==i.value.kind||i.value.value.length>0),c="constant"!==s.value.kind||!!s.value.value||Object.keys(s.parameters).length>0,l=o.get("symbol-sort-key");if(this.features=[],u||c){for(var p=e.iconDependencies,f=e.glyphDependencies,h=e.availableImages,d=new uo(this.zoom),m=0,y=t;m<y.length;m+=1){var v=y[m],g=v.feature,b=v.id,_=v.index,x=v.sourceLayerIndex,w=n._featureFilter.needGeometry,O=Ui(g,w);if(n._featureFilter.filter(d,O,r)){w||(O.geometry=Vi(g));var E=void 0;if(u){var S=n.getValueAndResolveTokens("text-field",O,r,h),P=oe.factory(S);mc(P)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===io()||this.hasRTLText&&so.isParsed())&&(E=Zs(P,n,O))}var j=void 0;if(c){var A=n.getValueAndResolveTokens("icon-image",O,r,h);j=A instanceof ie?A:ie.fromString(A)}if(E||j){var C=this.sortFeaturesByKey?l.evaluate(O,{},r):void 0;if(this.features.push({id:b,text:E,icon:j,index:_,sourceLayerIndex:x,geometry:O.geometry,properties:g.properties,type:pc[g.type],sortKey:C}),j&&(p[j.name]=!0),E){var T=i.evaluate(O,{},r).join(","),k="map"===o.get("text-rotation-alignment")&&"point"!==o.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(wu.vertical)>=0;for(var M=0,I=E.sections;M<I.length;M+=1){var D=I[M];if(D.image)p[D.image.name]=!0;else{var L=Zn(E.toString()),R=D.fontStack||T,z=f[R]=f[R]||{};this.calculateGlyphDependencies(D.text,z,k,this.allowVerticalPlacement,L)}}}}}}"line"===o.get("symbol-placement")&&(this.features=function(t){var e={},r={},n=[],o=0;function i(e){n.push(t[e]),o++}function a(t,e,o){var i=r[t];return delete r[t],r[e]=i,n[i].geometry[0].pop(),n[i].geometry[0]=n[i].geometry[0].concat(o[0]),i}function s(t,r,o){var i=e[r];return delete e[r],e[t]=i,n[i].geometry[0].shift(),n[i].geometry[0]=o[0].concat(n[i].geometry[0]),i}function u(t,e,r){var n=r?e[0][e[0].length-1]:e[0][0];return t+":"+n.x+":"+n.y}for(var c=0;c<t.length;c++){var l=t[c],p=l.geometry,f=l.text?l.text.toString():null;if(f){var h=u(f,p),d=u(f,p,!0);if(h in r&&d in e&&r[h]!==e[d]){var m=s(h,d,p),y=a(h,d,n[m].geometry);delete e[h],delete r[d],r[u(f,n[y].geometry,!0)]=y,n[m].geometry=null}else h in r?a(h,d,p):d in e?s(h,d,p):(i(c),e[h]=o-1,r[d]=o-1)}else i(c)}return n.filter((function(t){return t.geometry}))}(this.features)),this.sortFeaturesByKey&&this.features.sort((function(t,e){return t.sortKey-e.sortKey}))}},gc.prototype.update=function(t,e,r){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(t,e,this.layers,r),this.icon.programConfigurations.updatePaintArrays(t,e,this.layers,r))},gc.prototype.isEmpty=function(){return 0===this.symbolInstances.length&&!this.hasRTLText},gc.prototype.uploadPending=function(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload},gc.prototype.upload=function(t){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(t),this.iconCollisionBox.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0},gc.prototype.destroyDebugData=function(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()},gc.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()},gc.prototype.addToLineVertexArray=function(t,e){var r=this.lineVertexArray.length;if(void 0!==t.segment){for(var n=t.dist(e[t.segment+1]),o=t.dist(e[t.segment]),i={},a=t.segment+1;a<e.length;a++)i[a]={x:e[a].x,y:e[a].y,tileUnitDistanceFromAnchor:n},a<e.length-1&&(n+=e[a+1].dist(e[a]));for(var s=t.segment||0;s>=0;s--)i[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:o},s>0&&(o+=e[s-1].dist(e[s]));for(var u=0;u<e.length;u++){var c=i[u];this.lineVertexArray.emplaceBack(c.x,c.y,c.tileUnitDistanceFromAnchor)}}return{lineStartIndex:r,lineLength:this.lineVertexArray.length-r}},gc.prototype.addSymbols=function(t,e,r,n,o,i,a,s,u,c,l,p){for(var f=t.indexArray,h=t.layoutVertexArray,d=t.segments.prepareSegment(4*e.length,h,f,this.canOverlap?i.sortKey:void 0),m=this.glyphOffsetArray.length,y=d.vertexLength,v=this.allowVerticalPlacement&&a===wu.vertical?Math.PI/2:0,g=i.text&&i.text.sections,b=0;b<e.length;b++){var _=e[b],x=_.tl,w=_.tr,O=_.bl,E=_.br,S=_.tex,P=_.pixelOffsetTL,j=_.pixelOffsetBR,A=_.minFontScaleX,C=_.minFontScaleY,T=_.glyphOffset,k=_.isSDF,M=_.sectionIndex,I=d.vertexLength,D=T[1];hc(h,s.x,s.y,x.x,D+x.y,S.x,S.y,r,k,P.x,P.y,A,C),hc(h,s.x,s.y,w.x,D+w.y,S.x+S.w,S.y,r,k,j.x,P.y,A,C),hc(h,s.x,s.y,O.x,D+O.y,S.x,S.y+S.h,r,k,P.x,j.y,A,C),hc(h,s.x,s.y,E.x,D+E.y,S.x+S.w,S.y+S.h,r,k,j.x,j.y,A,C),dc(t.dynamicLayoutVertexArray,s,v),f.emplaceBack(I,I+1,I+2),f.emplaceBack(I+1,I+2,I+3),d.vertexLength+=4,d.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(T[0]),b!==e.length-1&&M===e[b+1].sectionIndex||t.programConfigurations.populatePaintArrays(h.length,i,i.index,{},p,g&&g[M])}t.placedSymbolArray.emplaceBack(s.x,s.y,m,this.glyphOffsetArray.length-m,y,u,c,s.segment,r?r[0]:0,r?r[1]:0,n[0],n[1],a,0,!1,0,l)},gc.prototype._addCollisionDebugVertex=function(t,e,r,n,o,i){return e.emplaceBack(0,0),t.emplaceBack(r.x,r.y,n,o,Math.round(i.x),Math.round(i.y))},gc.prototype.addCollisionDebugVertices=function(t,e,r,n,i,a,s){var u=i.segments.prepareSegment(4,i.layoutVertexArray,i.indexArray),c=u.vertexLength,l=i.layoutVertexArray,p=i.collisionVertexArray,f=s.anchorX,h=s.anchorY;this._addCollisionDebugVertex(l,p,a,f,h,new o(t,e)),this._addCollisionDebugVertex(l,p,a,f,h,new o(r,e)),this._addCollisionDebugVertex(l,p,a,f,h,new o(r,n)),this._addCollisionDebugVertex(l,p,a,f,h,new o(t,n)),u.vertexLength+=4;var d=i.indexArray;d.emplaceBack(c,c+1),d.emplaceBack(c+1,c+2),d.emplaceBack(c+2,c+3),d.emplaceBack(c+3,c),u.primitiveLength+=4},gc.prototype.addDebugCollisionBoxes=function(t,e,r,n){for(var o=t;o<e;o++){var i=this.collisionBoxArray.get(o);this.addCollisionDebugVertices(i.x1,i.y1,i.x2,i.y2,n?this.textCollisionBox:this.iconCollisionBox,i.anchorPoint,r)}},gc.prototype.generateCollisionDebugBuffers=function(){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new vc(Bo,Gs.members,Ko),this.iconCollisionBox=new vc(Bo,Gs.members,Ko);for(var t=0;t<this.symbolInstances.length;t++){var e=this.symbolInstances.get(t);this.addDebugCollisionBoxes(e.textBoxStartIndex,e.textBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.verticalTextBoxStartIndex,e.verticalTextBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.iconBoxStartIndex,e.iconBoxEndIndex,e,!1),this.addDebugCollisionBoxes(e.verticalIconBoxStartIndex,e.verticalIconBoxEndIndex,e,!1)}},gc.prototype._deserializeCollisionBoxesForSymbol=function(t,e,r,n,o,i,a,s,u){for(var c={},l=e;l<r;l++){var p=t.get(l);c.textBox={x1:p.x1,y1:p.y1,x2:p.x2,y2:p.y2,anchorPointX:p.anchorPointX,anchorPointY:p.anchorPointY},c.textFeatureIndex=p.featureIndex;break}for(var f=n;f<o;f++){var h=t.get(f);c.verticalTextBox={x1:h.x1,y1:h.y1,x2:h.x2,y2:h.y2,anchorPointX:h.anchorPointX,anchorPointY:h.anchorPointY},c.verticalTextFeatureIndex=h.featureIndex;break}for(var d=i;d<a;d++){var m=t.get(d);c.iconBox={x1:m.x1,y1:m.y1,x2:m.x2,y2:m.y2,anchorPointX:m.anchorPointX,anchorPointY:m.anchorPointY},c.iconFeatureIndex=m.featureIndex;break}for(var y=s;y<u;y++){var v=t.get(y);c.verticalIconBox={x1:v.x1,y1:v.y1,x2:v.x2,y2:v.y2,anchorPointX:v.anchorPointX,anchorPointY:v.anchorPointY},c.verticalIconFeatureIndex=v.featureIndex;break}return c},gc.prototype.deserializeCollisionBoxes=function(t){this.collisionArrays=[];for(var e=0;e<this.symbolInstances.length;e++){var r=this.symbolInstances.get(e);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(t,r.textBoxStartIndex,r.textBoxEndIndex,r.verticalTextBoxStartIndex,r.verticalTextBoxEndIndex,r.iconBoxStartIndex,r.iconBoxEndIndex,r.verticalIconBoxStartIndex,r.verticalIconBoxEndIndex))}},gc.prototype.hasTextData=function(){return this.text.segments.get().length>0},gc.prototype.hasIconData=function(){return this.icon.segments.get().length>0},gc.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},gc.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},gc.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},gc.prototype.addIndicesForPlacedSymbol=function(t,e){for(var r=t.placedSymbolArray.get(e),n=r.vertexStartIndex+4*r.numGlyphs,o=r.vertexStartIndex;o<n;o+=4)t.indexArray.emplaceBack(o,o+1,o+2),t.indexArray.emplaceBack(o+1,o+2,o+3)},gc.prototype.getSortedSymbolIndexes=function(t){if(this.sortedAngle===t&&void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;for(var e=Math.sin(t),r=Math.cos(t),n=[],o=[],i=[],a=0;a<this.symbolInstances.length;++a){i.push(a);var s=this.symbolInstances.get(a);n.push(0|Math.round(e*s.anchorX+r*s.anchorY)),o.push(s.featureIndex)}return i.sort((function(t,e){return n[t]-n[e]||o[e]-o[t]})),i},gc.prototype.addToSortKeyRanges=function(t,e){var r=this.sortKeyRanges[this.sortKeyRanges.length-1];r&&r.sortKey===e?r.symbolInstanceEnd=t+1:this.sortKeyRanges.push({sortKey:e,symbolInstanceStart:t,symbolInstanceEnd:t+1})},gc.prototype.sortFeatures=function(t){var e=this;if(this.sortFeaturesByY&&this.sortedAngle!==t&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var r=0,n=this.symbolInstanceIndexes;r<n.length;r+=1){var o=this.symbolInstances.get(n[r]);this.featureSortOrder.push(o.featureIndex),[o.rightJustifiedTextSymbolIndex,o.centerJustifiedTextSymbolIndex,o.leftJustifiedTextSymbolIndex].forEach((function(t,r,n){t>=0&&n.indexOf(t)===r&&e.addIndicesForPlacedSymbol(e.text,t)})),o.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,o.verticalPlacedTextSymbolIndex),o.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,o.placedIconSymbolIndex),o.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,o.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Fn("SymbolBucket",gc,{omit:["layers","collisionBoxArray","features","compareText"]}),gc.MAX_GLYPHS=65535,gc.addDynamicAttributes=dc;var bc=new Oo({"symbol-placement":new go(Tt.layout_symbol["symbol-placement"]),"symbol-spacing":new go(Tt.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new go(Tt.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new bo(Tt.layout_symbol["symbol-sort-key"]),"symbol-z-order":new go(Tt.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new go(Tt.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new go(Tt.layout_symbol["icon-ignore-placement"]),"icon-optional":new go(Tt.layout_symbol["icon-optional"]),"icon-rotation-alignment":new go(Tt.layout_symbol["icon-rotation-alignment"]),"icon-size":new bo(Tt.layout_symbol["icon-size"]),"icon-text-fit":new go(Tt.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new go(Tt.layout_symbol["icon-text-fit-padding"]),"icon-image":new bo(Tt.layout_symbol["icon-image"]),"icon-rotate":new bo(Tt.layout_symbol["icon-rotate"]),"icon-padding":new go(Tt.layout_symbol["icon-padding"]),"icon-keep-upright":new go(Tt.layout_symbol["icon-keep-upright"]),"icon-offset":new bo(Tt.layout_symbol["icon-offset"]),"icon-anchor":new bo(Tt.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new go(Tt.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new go(Tt.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new go(Tt.layout_symbol["text-rotation-alignment"]),"text-field":new bo(Tt.layout_symbol["text-field"]),"text-font":new bo(Tt.layout_symbol["text-font"]),"text-size":new bo(Tt.layout_symbol["text-size"]),"text-max-width":new bo(Tt.layout_symbol["text-max-width"]),"text-line-height":new go(Tt.layout_symbol["text-line-height"]),"text-letter-spacing":new bo(Tt.layout_symbol["text-letter-spacing"]),"text-justify":new bo(Tt.layout_symbol["text-justify"]),"text-radial-offset":new bo(Tt.layout_symbol["text-radial-offset"]),"text-variable-anchor":new go(Tt.layout_symbol["text-variable-anchor"]),"text-anchor":new bo(Tt.layout_symbol["text-anchor"]),"text-max-angle":new go(Tt.layout_symbol["text-max-angle"]),"text-writing-mode":new go(Tt.layout_symbol["text-writing-mode"]),"text-rotate":new bo(Tt.layout_symbol["text-rotate"]),"text-padding":new go(Tt.layout_symbol["text-padding"]),"text-keep-upright":new go(Tt.layout_symbol["text-keep-upright"]),"text-transform":new bo(Tt.layout_symbol["text-transform"]),"text-offset":new bo(Tt.layout_symbol["text-offset"]),"text-allow-overlap":new go(Tt.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new go(Tt.layout_symbol["text-ignore-placement"]),"text-optional":new go(Tt.layout_symbol["text-optional"])}),_c={paint:new Oo({"icon-opacity":new bo(Tt.paint_symbol["icon-opacity"]),"icon-color":new bo(Tt.paint_symbol["icon-color"]),"icon-halo-color":new bo(Tt.paint_symbol["icon-halo-color"]),"icon-halo-width":new bo(Tt.paint_symbol["icon-halo-width"]),"icon-halo-blur":new bo(Tt.paint_symbol["icon-halo-blur"]),"icon-translate":new go(Tt.paint_symbol["icon-translate"]),"icon-translate-anchor":new go(Tt.paint_symbol["icon-translate-anchor"]),"text-opacity":new bo(Tt.paint_symbol["text-opacity"]),"text-color":new bo(Tt.paint_symbol["text-color"],{runtimeType:Ut,getOverride:function(t){return t.textColor},hasOverride:function(t){return!!t.textColor}}),"text-halo-color":new bo(Tt.paint_symbol["text-halo-color"]),"text-halo-width":new bo(Tt.paint_symbol["text-halo-width"]),"text-halo-blur":new bo(Tt.paint_symbol["text-halo-blur"]),"text-translate":new go(Tt.paint_symbol["text-translate"]),"text-translate-anchor":new go(Tt.paint_symbol["text-translate-anchor"])}),layout:bc},xc=function(t){this.type=t.property.overrides?t.property.overrides.runtimeType:Nt,this.defaultValue=t};xc.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},xc.prototype.eachChild=function(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)},xc.prototype.outputDefined=function(){return!1},xc.prototype.serialize=function(){return null},Fn("FormatSectionOverride",xc,{omit:["defaultValue"]});var wc=function(t){function e(e){t.call(this,e,_c)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.recalculate=function(e,r){if(t.prototype.recalculate.call(this,e,r),"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 n=this.layout.get("text-writing-mode");if(n){for(var o=[],i=0,a=n;i<a.length;i+=1){var s=a[i];o.indexOf(s)<0&&o.push(s)}this.layout._values["text-writing-mode"]=o}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()},e.prototype.getValueAndResolveTokens=function(t,e,r,n){var o=this.layout.get(t).evaluate(e,{},r,n),i=this._unevaluatedLayout._values[t];return i.isDataDriven()||Wr(i.value)||!o?o:function(t,e){return e.replace(/{([^{}]+)}/g,(function(e,r){return r in t?String(t[r]):""}))}(e.properties,o)},e.prototype.createBucket=function(t){return new gc(t)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype._setPaintOverrides=function(){for(var t=0,r=_c.paint.overridableProperties;t<r.length;t+=1){var n=r[t];if(e.hasPaintOverride(this.layout,n)){var o,i=this.paint.get(n),a=new xc(i),s=new Gr(a,i.property.specification);o="constant"===i.value.kind||"source"===i.value.kind?new Hr("source",s):new Kr("composite",s,i.value.zoomStops,i.value._interpolationType),this.paint._values[n]=new yo(i.property,o,i.parameters)}}},e.prototype._handleOverridablePaintPropertyUpdate=function(t,r,n){return!(!this.layout||r.isDataDriven()||n.isDataDriven())&&e.hasPaintOverride(this.layout,t)},e.hasPaintOverride=function(t,e){var r=t.get("text-field"),n=_c.paint.properties[e],o=!1,i=function(t){for(var e=0,r=t;e<r.length;e+=1)if(n.overrides&&n.overrides.hasOverride(r[e]))return void(o=!0)};if("constant"===r.value.kind&&r.value.value instanceof oe)i(r.value.value.sections);else if("source"===r.value.kind){var a=function(t){o||(t instanceof le&&ue(t.value)===Wt?i(t.value.sections):t instanceof de?i(t.sections):t.eachChild(a))},s=r.value;s._styleExpression&&a(s._styleExpression.expression)}return o},e}(Eo),Oc={paint:new Oo({"background-color":new go(Tt.paint_background["background-color"]),"background-pattern":new xo(Tt.paint_background["background-pattern"]),"background-opacity":new go(Tt.paint_background["background-opacity"])})},Ec=function(t){function e(e){t.call(this,e,Oc)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(Eo),Sc={paint:new Oo({"raster-opacity":new go(Tt.paint_raster["raster-opacity"]),"raster-hue-rotate":new go(Tt.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new go(Tt.paint_raster["raster-brightness-min"]),"raster-brightness-max":new go(Tt.paint_raster["raster-brightness-max"]),"raster-saturation":new go(Tt.paint_raster["raster-saturation"]),"raster-contrast":new go(Tt.paint_raster["raster-contrast"]),"raster-resampling":new go(Tt.paint_raster["raster-resampling"]),"raster-fade-duration":new go(Tt.paint_raster["raster-fade-duration"])})},Pc=function(t){function e(e){t.call(this,e,Sc)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(Eo),jc=function(t){function e(e){t.call(this,e,{}),this.implementation=e}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.is3D=function(){return"3d"===this.implementation.renderingMode},e.prototype.hasOffscreenPass=function(){return void 0!==this.implementation.prerender},e.prototype.recalculate=function(){},e.prototype.updateTransitions=function(){},e.prototype.hasTransition=function(){},e.prototype.serialize=function(){},e.prototype.onAdd=function(t){this.implementation.onAdd&&this.implementation.onAdd(t,t.painter.context.gl)},e.prototype.onRemove=function(t){this.implementation.onRemove&&this.implementation.onRemove(t,t.painter.context.gl)},e}(Eo),Ac={circle:ha,heatmap:Oa,hillshade:Sa,fill:ps,"fill-extrusion":As,line:Bs,symbol:wc,background:Ec,raster:Pc},Cc=a.HTMLImageElement,Tc=a.HTMLCanvasElement,kc=a.HTMLVideoElement,Mc=a.ImageData,Ic=a.ImageBitmap,Dc=function(t,e,r,n){this.context=t,this.format=r,this.texture=t.gl.createTexture(),this.update(e,n)};Dc.prototype.update=function(t,e,r){var n=t.width,o=t.height,i=!(this.size&&this.size[0]===n&&this.size[1]===o||r),a=this.context,s=a.gl;if(this.useMipmap=Boolean(e&&e.useMipmap),s.bindTexture(s.TEXTURE_2D,this.texture),a.pixelStoreUnpackFlipY.set(!1),a.pixelStoreUnpack.set(1),a.pixelStoreUnpackPremultiplyAlpha.set(this.format===s.RGBA&&(!e||!1!==e.premultiply)),i)this.size=[n,o],t instanceof Cc||t instanceof Tc||t instanceof kc||t instanceof Mc||Ic&&t instanceof Ic?s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,s.UNSIGNED_BYTE,t):s.texImage2D(s.TEXTURE_2D,0,this.format,n,o,0,this.format,s.UNSIGNED_BYTE,t.data);else{var u=r||{x:0,y:0},c=u.x,l=u.y;t instanceof Cc||t instanceof Tc||t instanceof kc||t instanceof Mc||Ic&&t instanceof Ic?s.texSubImage2D(s.TEXTURE_2D,0,c,l,s.RGBA,s.UNSIGNED_BYTE,t):s.texSubImage2D(s.TEXTURE_2D,0,c,l,n,o,s.RGBA,s.UNSIGNED_BYTE,t.data)}this.useMipmap&&this.isSizePowerOfTwo()&&s.generateMipmap(s.TEXTURE_2D)},Dc.prototype.bind=function(t,e,r){var n=this.context.gl;n.bindTexture(n.TEXTURE_2D,this.texture),r!==n.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(r=n.LINEAR),t!==this.filter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,t),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,r||t),this.filter=t),e!==this.wrap&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,e),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,e),this.wrap=e)},Dc.prototype.isSizePowerOfTwo=function(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0},Dc.prototype.destroy=function(){this.context.gl.deleteTexture(this.texture),this.texture=null};var Lc=function(t){var e=this;this._callback=t,this._triggered=!1,"undefined"!=typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=function(){e._triggered=!1,e._callback()})};Lc.prototype.trigger=function(){var t=this;this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout((function(){t._triggered=!1,t._callback()}),0))},Lc.prototype.remove=function(){delete this._channel,this._callback=function(){}};var Rc=function(t,e,r){this.target=t,this.parent=e,this.mapId=r,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},v(["receive","process"],this),this.invoker=new Lc(this.process),this.target.addEventListener("message",this.receive,!1),this.globalScope=P()?t:a};function zc(t,e,r){var n=2*Math.PI*6378137/256/Math.pow(2,r);return[t*n-2*Math.PI*6378137/2,e*n-2*Math.PI*6378137/2]}Rc.prototype.send=function(t,e,r,n,o){var i=this;void 0===o&&(o=!1);var a=Math.round(1e18*Math.random()).toString(36).substring(0,10);r&&(this.callbacks[a]=r);var s=C(this.globalScope)?void 0:[];return this.target.postMessage({id:a,type:t,hasCallback:!!r,targetMapId:n,mustQueue:o,sourceMapId:this.mapId,data:qn(e,s)},s),{cancel:function(){r&&delete i.callbacks[a],i.target.postMessage({id:a,type:"<cancel>",targetMapId:n,sourceMapId:i.mapId})}}},Rc.prototype.receive=function(t){var e=t.data,r=e.id;if(r&&(!e.targetMapId||this.mapId===e.targetMapId))if("<cancel>"===e.type){delete this.tasks[r];var n=this.cancelCallbacks[r];delete this.cancelCallbacks[r],n&&n()}else P()||e.mustQueue?(this.tasks[r]=e,this.taskQueue.push(r),this.invoker.trigger()):this.processTask(r,e)},Rc.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)}},Rc.prototype.processTask=function(t,e){var r=this;if("<response>"===e.type){var n=this.callbacks[t];delete this.callbacks[t],n&&(e.error?n($n(e.error)):n(null,$n(e.data)))}else{var o=!1,i=C(this.globalScope)?void 0:[],a=e.hasCallback?function(e,n){o=!0,delete r.cancelCallbacks[t],r.target.postMessage({id:t,type:"<response>",sourceMapId:r.mapId,error:e?qn(e):null,data:qn(n,i)},i)}:function(t){o=!0},s=null,u=$n(e.data);if(this.parent[e.type])s=this.parent[e.type](e.sourceMapId,u,a);else if(this.parent.getWorkerSource){var c=e.type.split(".");s=this.parent.getWorkerSource(e.sourceMapId,c[0],u.source)[c[1]](u,a)}else a(new Error("Could not find function "+e.type));!o&&s&&s.cancel&&(this.cancelCallbacks[t]=s.cancel)}},Rc.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var Nc=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]))};Nc.prototype.setNorthEast=function(t){return this._ne=t instanceof Fc?new Fc(t.lng,t.lat):Fc.convert(t),this},Nc.prototype.setSouthWest=function(t){return this._sw=t instanceof Fc?new Fc(t.lng,t.lat):Fc.convert(t),this},Nc.prototype.extend=function(t){var e,r,n=this._sw,o=this._ne;if(t instanceof Fc)e=t,r=t;else{if(!(t instanceof Nc))return Array.isArray(t)?4===t.length||t.every(Array.isArray)?this.extend(Nc.convert(t)):this.extend(Fc.convert(t)):this;if(r=t._ne,!(e=t._sw)||!r)return this}return n||o?(n.lng=Math.min(e.lng,n.lng),n.lat=Math.min(e.lat,n.lat),o.lng=Math.max(r.lng,o.lng),o.lat=Math.max(r.lat,o.lat)):(this._sw=new Fc(e.lng,e.lat),this._ne=new Fc(r.lng,r.lat)),this},Nc.prototype.getCenter=function(){return new Fc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Nc.prototype.getSouthWest=function(){return this._sw},Nc.prototype.getNorthEast=function(){return this._ne},Nc.prototype.getNorthWest=function(){return new Fc(this.getWest(),this.getNorth())},Nc.prototype.getSouthEast=function(){return new Fc(this.getEast(),this.getSouth())},Nc.prototype.getWest=function(){return this._sw.lng},Nc.prototype.getSouth=function(){return this._sw.lat},Nc.prototype.getEast=function(){return this._ne.lng},Nc.prototype.getNorth=function(){return this._ne.lat},Nc.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Nc.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Nc.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Nc.prototype.contains=function(t){var e=Fc.convert(t),r=e.lng,n=e.lat,o=this._sw.lng<=r&&r<=this._ne.lng;return this._sw.lng>this._ne.lng&&(o=this._sw.lng>=r&&r>=this._ne.lng),this._sw.lat<=n&&n<=this._ne.lat&&o},Nc.convert=function(t){return!t||t instanceof Nc?t:new Nc(t)};var Fc=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")};Fc.prototype.wrap=function(){return new Fc(p(this.lng,-180,180),this.lat)},Fc.prototype.toArray=function(){return[this.lng,this.lat]},Fc.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Fc.prototype.distanceTo=function(t){var e=Math.PI/180,r=this.lat*e,n=t.lat*e,o=Math.sin(r)*Math.sin(n)+Math.cos(r)*Math.cos(n)*Math.cos((t.lng-this.lng)*e);return 6371008.8*Math.acos(Math.min(o,1))},Fc.prototype.toBounds=function(t){void 0===t&&(t=0);var e=360*t/40075017,r=e/Math.cos(Math.PI/180*this.lat);return new Nc(new Fc(this.lng-r,this.lat-e),new Fc(this.lng+r,this.lat+e))},Fc.convert=function(t){if(t instanceof Fc)return t;if(Array.isArray(t)&&(2===t.length||3===t.length))return new Fc(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&"object"==typeof t&&null!==t)return new Fc(Number("lng"in t?t.lng:t.lon),Number(t.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")};var Bc=2*Math.PI*6371008.8;function Vc(t){return Bc*Math.cos(t*Math.PI/180)}function Uc(t){return(180+t)/360}function qc(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function $c(t,e){return t/Vc(e)}function Gc(t){return 360/Math.PI*Math.atan(Math.exp((180-360*t)*Math.PI/180))-90}var Wc=function(t,e,r){void 0===r&&(r=0),this.x=+t,this.y=+e,this.z=+r};Wc.fromLngLat=function(t,e){void 0===e&&(e=0);var r=Fc.convert(t);return new Wc(Uc(r.lng),qc(r.lat),$c(e,r.lat))},Wc.prototype.toLngLat=function(){return new Fc(360*this.x-180,Gc(this.y))},Wc.prototype.toAltitude=function(){return this.z*Vc(Gc(this.y))},Wc.prototype.meterInMercatorCoordinateUnits=function(){return 1/Bc*(t=Gc(this.y),1/Math.cos(t*Math.PI/180));var t};var Zc=function(t,e,r){this.z=t,this.x=e,this.y=r,this.key=Yc(0,t,t,e,r)};Zc.prototype.equals=function(t){return this.z===t.z&&this.x===t.x&&this.y===t.y},Zc.prototype.url=function(t,e){var r,n,o,i,a,s=(n=this.y,o=this.z,i=zc(256*(r=this.x),256*(n=Math.pow(2,o)-n-1),o),a=zc(256*(r+1),256*(n+1),o),i[0]+","+i[1]+","+a[0]+","+a[1]),u=function(t,e,r){for(var n,o="",i=t;i>0;i--)o+=(e&(n=1<<i-1)?1:0)+(r&n?2:0);return o}(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String("tms"===e?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",u).replace("{bbox-epsg-3857}",s)},Zc.prototype.getTilePoint=function(t){var e=Math.pow(2,this.z);return new o(8192*(t.x*e-this.x),8192*(t.y*e-this.y))},Zc.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var Hc=function(t,e){this.wrap=t,this.canonical=e,this.key=Yc(t,e.z,e.z,e.x,e.y)},Kc=function(t,e,r,n,o){this.overscaledZ=t,this.wrap=e,this.canonical=new Zc(r,+n,+o),this.key=Yc(e,t,r,n,o)};function Yc(t,e,r,n,o){(t*=2)<0&&(t=-1*t-1);var i=1<<r;return(i*i*t+i*o+n).toString(36)+r.toString(36)+e.toString(36)}Kc.prototype.equals=function(t){return this.overscaledZ===t.overscaledZ&&this.wrap===t.wrap&&this.canonical.equals(t.canonical)},Kc.prototype.scaledTo=function(t){var e=this.canonical.z-t;return t>this.canonical.z?new Kc(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Kc(t,this.wrap,t,this.canonical.x>>e,this.canonical.y>>e)},Kc.prototype.calculateScaledKey=function(t,e){var r=this.canonical.z-t;return t>this.canonical.z?Yc(this.wrap*+e,t,this.canonical.z,this.canonical.x,this.canonical.y):Yc(this.wrap*+e,t,t,this.canonical.x>>r,this.canonical.y>>r)},Kc.prototype.isChildOf=function(t){if(t.wrap!==this.wrap)return!1;var e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ<this.overscaledZ&&t.canonical.x===this.canonical.x>>e&&t.canonical.y===this.canonical.y>>e},Kc.prototype.children=function(t){if(this.overscaledZ>=t)return[new Kc(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var e=this.canonical.z+1,r=2*this.canonical.x,n=2*this.canonical.y;return[new Kc(e,this.wrap,e,r,n),new Kc(e,this.wrap,e,r+1,n),new Kc(e,this.wrap,e,r,n+1),new Kc(e,this.wrap,e,r+1,n+1)]},Kc.prototype.isLessThan=function(t){return this.wrap<t.wrap||!(this.wrap>t.wrap)&&(this.overscaledZ<t.overscaledZ||!(this.overscaledZ>t.overscaledZ)&&(this.canonical.x<t.canonical.x||!(this.canonical.x>t.canonical.x)&&this.canonical.y<t.canonical.y))},Kc.prototype.wrapped=function(){return new Kc(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},Kc.prototype.unwrapTo=function(t){return new Kc(this.overscaledZ,t,this.canonical.z,this.canonical.x,this.canonical.y)},Kc.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},Kc.prototype.toUnwrapped=function(){return new Hc(this.wrap,this.canonical)},Kc.prototype.toString=function(){return this.overscaledZ+"/"+this.canonical.x+"/"+this.canonical.y},Kc.prototype.getTilePoint=function(t){return this.canonical.getTilePoint(new Wc(t.x-this.wrap,t.y))},Fn("CanonicalTileID",Zc),Fn("OverscaledTileID",Kc,{omit:["posMatrix"]});var Xc=function(t,e,r){if(this.uid=t,e.height!==e.width)throw new RangeError("DEM tiles must be square");if(r&&"mapbox"!==r&&"terrarium"!==r)return O('"'+r+'" is not a valid encoding type. Valid types include "mapbox" and "terrarium".');this.stride=e.height;var n=this.dim=e.height-2;this.data=new Uint32Array(e.data.buffer),this.encoding=r||"mapbox";for(var o=0;o<n;o++)this.data[this._idx(-1,o)]=this.data[this._idx(0,o)],this.data[this._idx(n,o)]=this.data[this._idx(n-1,o)],this.data[this._idx(o,-1)]=this.data[this._idx(o,0)],this.data[this._idx(o,n)]=this.data[this._idx(o,n-1)];this.data[this._idx(-1,-1)]=this.data[this._idx(0,0)],this.data[this._idx(n,-1)]=this.data[this._idx(n-1,0)],this.data[this._idx(-1,n)]=this.data[this._idx(0,n-1)],this.data[this._idx(n,n)]=this.data[this._idx(n-1,n-1)]};Xc.prototype.get=function(t,e){var r=new Uint8Array(this.data.buffer),n=4*this._idx(t,e);return("terrarium"===this.encoding?this._unpackTerrarium:this._unpackMapbox)(r[n],r[n+1],r[n+2])},Xc.prototype.getUnpackVector=function(){return"terrarium"===this.encoding?[256,1,1/256,32768]:[6553.6,25.6,.1,1e4]},Xc.prototype._idx=function(t,e){if(t<-1||t>=this.dim+1||e<-1||e>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(e+1)*this.stride+(t+1)},Xc.prototype._unpackMapbox=function(t,e,r){return(256*t*256+256*e+r)/10-1e4},Xc.prototype._unpackTerrarium=function(t,e,r){return 256*t+e+r/256-32768},Xc.prototype.getPixels=function(){return new _a({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Xc.prototype.backfillBorder=function(t,e,r){if(this.dim!==t.dim)throw new Error("dem dimension mismatch");var n=e*this.dim,o=e*this.dim+this.dim,i=r*this.dim,a=r*this.dim+this.dim;switch(e){case-1:n=o-1;break;case 1:o=n+1}switch(r){case-1:i=a-1;break;case 1:a=i+1}for(var s=-e*this.dim,u=-r*this.dim,c=i;c<a;c++)for(var l=n;l<o;l++)this.data[this._idx(l,c)]=t.data[this._idx(l+s,c+u)]},Fn("DEMData",Xc);var Jc=function(t){this._stringToNumber={},this._numberToString=[];for(var e=0;e<t.length;e++){var r=t[e];this._stringToNumber[r]=e,this._numberToString[e]=r}};Jc.prototype.encode=function(t){return this._stringToNumber[t]},Jc.prototype.decode=function(t){return this._numberToString[t]};var Qc=function(t,e,r,n,o){this.type="Feature",this._vectorTileFeature=t,t._z=e,t._x=r,t._y=n,this.properties=t.properties,this.id=o},tl={geometry:{configurable:!0}};tl.geometry.get=function(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry},tl.geometry.set=function(t){this._geometry=t},Qc.prototype.toJSON=function(){var t={geometry:this.geometry};for(var e in this)"_geometry"!==e&&"_vectorTileFeature"!==e&&(t[e]=this[e]);return t},Object.defineProperties(Qc.prototype,tl);var el=function(){this.state={},this.stateChanges={},this.deletedStates={}};el.prototype.updateState=function(t,e,r){var n=String(e);if(this.stateChanges[t]=this.stateChanges[t]||{},this.stateChanges[t][n]=this.stateChanges[t][n]||{},f(this.stateChanges[t][n],r),null===this.deletedStates[t])for(var o in this.deletedStates[t]={},this.state[t])o!==n&&(this.deletedStates[t][o]=null);else if(this.deletedStates[t]&&null===this.deletedStates[t][n])for(var i in this.deletedStates[t][n]={},this.state[t][n])r[i]||(this.deletedStates[t][n][i]=null);else for(var a in r)this.deletedStates[t]&&this.deletedStates[t][n]&&null===this.deletedStates[t][n][a]&&delete this.deletedStates[t][n][a]},el.prototype.removeFeatureState=function(t,e,r){if(null!==this.deletedStates[t]){var n=String(e);if(this.deletedStates[t]=this.deletedStates[t]||{},r&&void 0!==e)null!==this.deletedStates[t][n]&&(this.deletedStates[t][n]=this.deletedStates[t][n]||{},this.deletedStates[t][n][r]=null);else if(void 0!==e)if(this.stateChanges[t]&&this.stateChanges[t][n])for(r in this.deletedStates[t][n]={},this.stateChanges[t][n])this.deletedStates[t][n][r]=null;else this.deletedStates[t][n]=null;else this.deletedStates[t]=null}},el.prototype.getState=function(t,e){var r=String(e),n=f({},(this.state[t]||{})[r],(this.stateChanges[t]||{})[r]);if(null===this.deletedStates[t])return{};if(this.deletedStates[t]){var o=this.deletedStates[t][e];if(null===o)return{};for(var i in o)delete n[i]}return n},el.prototype.initializeTileState=function(t,e){t.setFeatureState(this.state,e)},el.prototype.coalesceChanges=function(t,e){var r={};for(var n in this.stateChanges){this.state[n]=this.state[n]||{};var o={};for(var i in this.stateChanges[n])this.state[n][i]||(this.state[n][i]={}),f(this.state[n][i],this.stateChanges[n][i]),o[i]=this.state[n][i];r[n]=o}for(var a in this.deletedStates){this.state[a]=this.state[a]||{};var s={};if(null===this.deletedStates[a])for(var u in this.state[a])s[u]={},this.state[a][u]={};else for(var c in this.deletedStates[a]){if(null===this.deletedStates[a][c])this.state[a][c]={};else for(var l=0,p=Object.keys(this.deletedStates[a][c]);l<p.length;l+=1)delete this.state[a][c][p[l]];s[c]=this.state[a][c]}r[a]=r[a]||{},f(r[a],s)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(r).length)for(var h in t)t[h].setFeatureState(r,e)};var rl=function(t,e){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=new Dn(8192,16,0),this.grid3D=new Dn(8192,16,0),this.featureIndexArray=new si,this.promoteId=e};function nl(t,e,r,n,o){return b(t,(function(t,i){var a=e instanceof vo?e.get(i):null;return a&&a.evaluate?a.evaluate(r,n,o):a}))}function ol(t){for(var e=1/0,r=1/0,n=-1/0,o=-1/0,i=0,a=t;i<a.length;i+=1){var s=a[i];e=Math.min(e,s.x),r=Math.min(r,s.y),n=Math.max(n,s.x),o=Math.max(o,s.y)}return{minX:e,minY:r,maxX:n,maxY:o}}function il(t,e){return e-t}rl.prototype.insert=function(t,e,r,n,o,i){var a=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,n,o);for(var s=i?this.grid3D:this.grid,u=0;u<e.length;u++){for(var c=e[u],l=[1/0,1/0,-1/0,-1/0],p=0;p<c.length;p++){var f=c[p];l[0]=Math.min(l[0],f.x),l[1]=Math.min(l[1],f.y),l[2]=Math.max(l[2],f.x),l[3]=Math.max(l[3],f.y)}l[0]<8192&&l[1]<8192&&l[2]>=0&&l[3]>=0&&s.insert(a,l[0],l[1],l[2],l[3])}},rl.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new xs.VectorTile(new Xs(this.rawTileData)).layers,this.sourceLayerCoder=new Jc(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},rl.prototype.query=function(t,e,r,n){var i=this;this.loadVTLayers();for(var a=t.params||{},s=8192/t.tileSize/t.scale,u=sn(a.filter),c=t.queryGeometry,l=t.queryPadding*s,p=ol(c),f=this.grid.query(p.minX-l,p.minY-l,p.maxX+l,p.maxY+l),h=ol(t.cameraQueryGeometry),d=this.grid3D.query(h.minX-l,h.minY-l,h.maxX+l,h.maxY+l,(function(e,r,n,i){return function(t,e,r,n,i){for(var a=0,s=t;a<s.length;a+=1){var u=s[a];if(e<=u.x&&r<=u.y&&n>=u.x&&i>=u.y)return!0}var c=[new o(e,r),new o(e,i),new o(n,i),new o(n,r)];if(t.length>2)for(var l=0,p=c;l<p.length;l+=1)if(ta(t,p[l]))return!0;for(var f=0;f<t.length-1;f++)if(ea(t[f],t[f+1],c))return!0;return!1}(t.cameraQueryGeometry,e-l,r-l,n+l,i+l)})),m=0,y=d;m<y.length;m+=1)f.push(y[m]);f.sort(il);for(var v,g={},b=function(o){var l=f[o];if(l!==v){v=l;var p=i.featureIndexArray.get(l),h=null;i.loadMatchingFeature(g,p.bucketIndex,p.sourceLayerIndex,p.featureIndex,u,a.layers,a.availableImages,e,r,n,(function(e,r,n){return h||(h=Vi(e)),r.queryIntersectsFeature(c,e,n,h,i.z,t.transform,s,t.pixelPosMatrix)}))}},_=0;_<f.length;_++)b(_);return g},rl.prototype.loadMatchingFeature=function(t,e,r,n,o,i,a,s,u,c,l){var p=this.bucketLayerIDs[e];if(!i||function(t,e){for(var r=0;r<t.length;r++)if(e.indexOf(t[r])>=0)return!0;return!1}(i,p)){var h=this.sourceLayerCoder.decode(r),d=this.vtLayers[h].feature(n);if(o.needGeometry){var m=Ui(d,!0);if(!o.filter(new uo(this.tileID.overscaledZ),m,this.tileID.canonical))return}else if(!o.filter(new uo(this.tileID.overscaledZ),d))return;for(var y=this.getId(d,h),v=0;v<p.length;v++){var g=p[v];if(!(i&&i.indexOf(g)<0)){var b=s[g];if(b){var _={};void 0!==y&&c&&(_=c.getState(b.sourceLayer||"_geojsonTileLayer",y));var x=f({},u[g]);x.paint=nl(x.paint,b.paint,d,_,a),x.layout=nl(x.layout,b.layout,d,_,a);var w=!l||l(d,b,_);if(w){var O=new Qc(d,this.z,this.x,this.y,y);O.layer=x;var E=t[g];void 0===E&&(E=t[g]=[]),E.push({featureIndex:n,feature:O,intersectionZ:w})}}}}}},rl.prototype.lookupSymbolFeatures=function(t,e,r,n,o,i,a,s){var u={};this.loadVTLayers();for(var c=sn(o),l=0,p=t;l<p.length;l+=1)this.loadMatchingFeature(u,r,n,p[l],c,i,a,s,e);return u},rl.prototype.hasLayer=function(t){for(var e=0,r=this.bucketLayerIDs;e<r.length;e+=1)for(var n=0,o=r[e];n<o.length;n+=1)if(t===o[n])return!0;return!1},rl.prototype.getId=function(t,e){var r=t.id;return this.promoteId&&"boolean"==typeof(r=t.properties["string"==typeof this.promoteId?this.promoteId:this.promoteId[e]])&&(r=Number(r)),r},Fn("FeatureIndex",rl,{omit:["rawTileData","sourceLayerCoder"]});var al=function(t,e){this.tileID=t,this.uid=d(),this.uses=0,this.tileSize=e,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.expiredRequestCount=0,this.state="loading"};al.prototype.registerFadeDuration=function(t){var e=t+this.timeAdded;e<N.now()||this.fadeEndTime&&e<this.fadeEndTime||(this.fadeEndTime=e)},al.prototype.wasRequested=function(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state},al.prototype.loadVectorData=function(t,e,r){if(this.hasData()&&this.unloadVectorData(),this.state="loaded",t){for(var n in t.featureIndex&&(this.latestFeatureIndex=t.featureIndex,t.rawTileData?(this.latestRawTileData=t.rawTileData,this.latestFeatureIndex.rawTileData=t.rawTileData):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=t.collisionBoxArray,this.buckets=function(t,e){var r={};if(!e)return r;for(var n=function(){var t=i[o],n=t.layerIds.map((function(t){return e.getLayer(t)})).filter(Boolean);if(0!==n.length){t.layers=n,t.stateDependentLayerIds&&(t.stateDependentLayers=t.stateDependentLayerIds.map((function(t){return n.filter((function(e){return e.id===t}))[0]})));for(var a=0,s=n;a<s.length;a+=1)r[s[a].id]=t}},o=0,i=t;o<i.length;o+=1)n();return r}(t.buckets,e.style),this.hasSymbolBuckets=!1,this.buckets){var o=this.buckets[n];if(o instanceof gc){if(this.hasSymbolBuckets=!0,!r)break;o.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(var i in this.buckets){var a=this.buckets[i];if(a instanceof gc&&a.hasRTLText){this.hasRTLText=!0,so.isLoading()||so.isLoaded()||"deferred"!==io()||ao();break}}for(var s in this.queryPadding=0,this.buckets){var u=this.buckets[s];this.queryPadding=Math.max(this.queryPadding,e.style.getLayer(s).queryRadius(u))}t.imageAtlas&&(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&&(this.glyphAtlasImage=t.glyphAtlasImage)}else this.collisionBoxArray=new Qo},al.prototype.unloadVectorData=function(){for(var t in this.buckets)this.buckets[t].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"},al.prototype.getBucket=function(t){return this.buckets[t.id]},al.prototype.upload=function(t){for(var e in this.buckets){var r=this.buckets[e];r.uploadPending()&&r.upload(t)}var n=t.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new Dc(t,this.imageAtlas.image,n.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new Dc(t,this.glyphAtlasImage,n.ALPHA),this.glyphAtlasImage=null)},al.prototype.prepare=function(t){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(t,this.imageAtlasTexture)},al.prototype.queryRenderedFeatures=function(t,e,r,n,o,i,a,s,u,c){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:n,cameraQueryGeometry:o,scale:i,tileSize:this.tileSize,pixelPosMatrix:c,transform:s,params:a,queryPadding:this.queryPadding*u},t,e,r):{}},al.prototype.querySourceFeatures=function(t,e){var r=this.latestFeatureIndex;if(r&&r.rawTileData){var n=r.loadVTLayers(),o=e?e.sourceLayer:"",i=n._geojsonTileLayer||n[o];if(i)for(var a=sn(e&&e.filter),s=this.tileID.canonical,u=s.z,c=s.x,l=s.y,p={z:u,x:c,y:l},f=0;f<i.length;f++){var h=i.feature(f);if(a.needGeometry){var d=Ui(h,!0);if(!a.filter(new uo(this.tileID.overscaledZ),d,this.tileID.canonical))continue}else if(!a.filter(new uo(this.tileID.overscaledZ),h))continue;var m=r.getId(h,o),y=new Qc(h,u,c,l,m);y.tile=p,t.push(y)}}},al.prototype.hasData=function(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state},al.prototype.patternsLoaded=function(){return this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length},al.prototype.setExpiryData=function(t){var e=this.expirationTime;if(t.cacheControl){var r=j(t.cacheControl);r["max-age"]&&(this.expirationTime=Date.now()+1e3*r["max-age"])}else t.expires&&(this.expirationTime=new Date(t.expires).getTime());if(this.expirationTime){var n=Date.now(),o=!1;if(this.expirationTime>n)o=!1;else if(e)if(this.expirationTime<e)o=!0;else{var i=this.expirationTime-e;i?this.expirationTime=n+Math.max(i,3e4):o=!0}else o=!0;o?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}},al.prototype.getExpiryTimeout=function(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)},al.prototype.setFeatureState=function(t,e){if(this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData&&0!==Object.keys(t).length){var r=this.latestFeatureIndex.loadVTLayers();for(var n in this.buckets)if(e.style.hasLayer(n)){var o=this.buckets[n],i=o.layers[0].sourceLayer||"_geojsonTileLayer",a=r[i],s=t[i];if(a&&s&&0!==Object.keys(s).length){o.update(s,a,this.imageAtlas&&this.imageAtlas.patternPositions||{});var u=e&&e.style&&e.style.getLayer(n);u&&(this.queryPadding=Math.max(this.queryPadding,u.queryRadius(o)))}}}},al.prototype.holdingForFade=function(){return void 0!==this.symbolFadeHoldUntil},al.prototype.symbolFadeFinished=function(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<N.now()},al.prototype.clearFadeHold=function(){this.symbolFadeHoldUntil=void 0},al.prototype.setHoldDuration=function(t){this.symbolFadeHoldUntil=N.now()+t},al.prototype.setDependencies=function(t,e){for(var r={},n=0,o=e;n<o.length;n+=1)r[o[n]]=!0;this.dependencies[t]=r},al.prototype.hasDependency=function(t,e){for(var r=0,n=t;r<n.length;r+=1){var o=this.dependencies[n[r]];if(o)for(var i=0,a=e;i<a.length;i+=1)if(o[a[i]])return!0}return!1};var sl=a.performance,ul=function(t){this._marks={start:[t.url,"start"].join("#"),end:[t.url,"end"].join("#"),measure:t.url.toString()},sl.mark(this._marks.start)};ul.prototype.finish=function(){sl.mark(this._marks.end);var t=sl.getEntriesByName(this._marks.measure);return 0===t.length&&(sl.measure(this._marks.measure,this._marks.start,this._marks.end),t=sl.getEntriesByName(this._marks.measure),sl.clearMarks(this._marks.start),sl.clearMarks(this._marks.end),sl.clearMeasures(this._marks.measure)),t},t.Actor=Rc,t.AlphaImage=ba,t.CanonicalTileID=Zc,t.CollisionBoxArray=Qo,t.Color=ee,t.DEMData=Xc,t.DataConstantProperty=go,t.DictionaryCoder=Jc,t.EXTENT=8192,t.ErrorEvent=At,t.EvaluationParameters=uo,t.Event=jt,t.Evented=Ct,t.FeatureIndex=rl,t.FillBucket=us,t.FillExtrusionBucket=Ss,t.ImageAtlas=xu,t.ImagePosition=bu,t.LineBucket=Rs,t.LngLat=Fc,t.LngLatBounds=Nc,t.MercatorCoordinate=Wc,t.ONE_EM=24,t.OverscaledTileID=Kc,t.Point=o,t.Point$1=o,t.Properties=Oo,t.Protobuf=Xs,t.RGBAImage=_a,t.RequestManager=G,t.RequestPerformance=ul,t.ResourceType=dt,t.SegmentVector=ci,t.SourceFeatureState=el,t.StructArrayLayout1ui2=Yo,t.StructArrayLayout2f1f2i16=Vo,t.StructArrayLayout2i4=To,t.StructArrayLayout3ui6=qo,t.StructArrayLayout4i8=ko,t.SymbolBucket=gc,t.Texture=Dc,t.Tile=al,t.Transitionable=po,t.Uniform1f=wi,t.Uniform1i=xi,t.Uniform2f=Oi,t.Uniform3f=Ei,t.Uniform4f=Si,t.UniformColor=Pi,t.UniformMatrix4f=Ai,t.UnwrappedTileID=Hc,t.ValidationError=kt,t.WritingMode=wu,t.ZoomHistory=Gn,t.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},t.addDynamicAttributes=dc,t.asyncAll=function(t,e,r){if(!t.length)return r(null,[]);var n=t.length,o=new Array(t.length),i=null;t.forEach((function(t,a){e(t,(function(t,e){t&&(i=t),o[a]=e,0==--n&&r(i,o)}))}))},t.bezier=u,t.bindAll=v,t.browser=N,t.cacheEntryPossiblyAdded=function(t){++ft>ut&&(t.getActor().send("enforceCacheSizeLimit",st),ft=0)},t.clamp=l,t.clearTileCache=function(t){var e=a.caches.delete("mapbox-tiles");t&&e.catch(t).then((function(){return t()}))},t.clipLine=Zu,t.clone=function(t){var e=new sa(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},t.clone$1=x,t.clone$2=function(t){var e=new sa(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},t.collisionCircleLayout=Ws,t.config=F,t.create=function(){var t=new sa(16);return sa!=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 sa(9);return sa!=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 sa(4);return sa!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},t.createCommonjsModule=e,t.createExpression=Zr,t.createLayout=Ao,t.createStyleLayer=function(t){return"custom"===t.type?new jc(t):new Ac[t.type](t)},t.cross=function(t,e,r){var n=e[0],o=e[1],i=e[2],a=r[0],s=r[1],u=r[2];return t[0]=o*u-i*s,t[1]=i*a-n*u,t[2]=n*s-o*a,t},t.deepEqual=function t(e,r){if(Array.isArray(e)){if(!Array.isArray(r)||e.length!==r.length)return!1;for(var n=0;n<e.length;n++)if(!t(e[n],r[n]))return!1;return!0}if("object"==typeof e&&null!==e&&null!==r){if("object"!=typeof r)return!1;if(Object.keys(e).length!==Object.keys(r).length)return!1;for(var o in e)if(!t(e[o],r[o]))return!1;return!0}return e===r},t.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},t.dot$1=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},t.ease=c,t.emitValidationErrors=In,t.endsWith=g,t.enforceCacheSizeLimit=function(t){ct(),tt&&tt.then((function(e){e.keys().then((function(r){for(var n=0;n<r.length-t;n++)e.delete(r[n])}))}))},t.evaluateSizeForFeature=Nu,t.evaluateSizeForZoom=Fu,t.evaluateVariableOffset=ac,t.evented=oo,t.extend=f,t.featureFilter=sn,t.filterObject=_,t.fromRotation=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=-r,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},t.getAnchorAlignment=Iu,t.getAnchorJustification=sc,t.getArrayBuffer=xt,t.getImage=Et,t.getJSON=function(t,e){return _t(f(t,{type:"json"}),e)},t.getRTLTextPluginStatus=io,t.getReferrer=yt,t.getVideo=function(t,e){var r,n,o=a.document.createElement("video");o.muted=!0,o.onloadstart=function(){e(null,o)};for(var i=0;i<t.length;i++){var s=a.document.createElement("source");r=t[i],n=void 0,(n=a.document.createElement("a")).href=r,(n.protocol!==a.document.location.protocol||n.host!==a.document.location.host)&&(o.crossOrigin="Anonymous"),s.src=t[i],o.appendChild(s)}return{cancel:function(){}}},t.identity=ua,t.invert=function(t,e){var r=e[0],n=e[1],o=e[2],i=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],p=e[9],f=e[10],h=e[11],d=e[12],m=e[13],y=e[14],v=e[15],g=r*s-n*a,b=r*u-o*a,_=r*c-i*a,x=n*u-o*s,w=n*c-i*s,O=o*c-i*u,E=l*m-p*d,S=l*y-f*d,P=l*v-h*d,j=p*y-f*m,A=p*v-h*m,C=f*v-h*y,T=g*C-b*A+_*j+x*P-w*S+O*E;return T?(t[0]=(s*C-u*A+c*j)*(T=1/T),t[1]=(o*A-n*C-i*j)*T,t[2]=(m*O-y*w+v*x)*T,t[3]=(f*w-p*O-h*x)*T,t[4]=(u*P-a*C-c*S)*T,t[5]=(r*C-o*P+i*S)*T,t[6]=(y*_-d*O-v*b)*T,t[7]=(l*O-f*_+h*b)*T,t[8]=(a*A-s*P+c*E)*T,t[9]=(n*P-r*A-i*E)*T,t[10]=(d*w-m*_+v*g)*T,t[11]=(p*_-l*w-h*g)*T,t[12]=(s*S-a*j-u*E)*T,t[13]=(r*j-n*S+o*E)*T,t[14]=(m*b-d*x-y*g)*T,t[15]=(l*x-p*b+f*g)*T,t):null},t.isChar=Wn,t.isMapboxURL=W,t.keysDifference=function(t,e){var r=[];for(var n in t)n in e||r.push(n);return r},t.makeRequest=_t,t.mapObject=b,t.mercatorXfromLng=Uc,t.mercatorYfromLat=qc,t.mercatorZfromAltitude=$c,t.mul=pa,t.multiply=ca,t.mvt=xs,t.nextPowerOfTwo=function(t){return t<=1?1:Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))},t.normalize=function(t,e){var r=e[0],n=e[1],o=e[2],i=r*r+n*n+o*o;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t},t.number=Ge,t.offscreenCanvasSupported=ht,t.ortho=function(t,e,r,n,o,i,a){var s=1/(e-r),u=1/(n-o),c=1/(i-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*s,t[13]=(o+n)*u,t[14]=(a+i)*c,t[15]=1,t},t.parseGlyphPBF=function(t){return new Xs(t).readFields(mu,[])},t.pbf=Xs,t.performSymbolLayout=function(t,e,r,n,o,i,a){t.createArrays(),t.tilePixelRatio=8192/(512*t.overscaling),t.compareText={},t.iconsNeedLinear=!1;var s=t.layers[0].layout,u=t.layers[0]._unevaluatedLayout._values,c={};if("composite"===t.textSizeData.kind){var l=t.textSizeData,p=l.maxZoom;c.compositeTextSizes=[u["text-size"].possiblyEvaluate(new uo(l.minZoom),a),u["text-size"].possiblyEvaluate(new uo(p),a)]}if("composite"===t.iconSizeData.kind){var f=t.iconSizeData,h=f.maxZoom;c.compositeIconSizes=[u["icon-size"].possiblyEvaluate(new uo(f.minZoom),a),u["icon-size"].possiblyEvaluate(new uo(h),a)]}c.layoutTextSize=u["text-size"].possiblyEvaluate(new uo(t.zoom+1),a),c.layoutIconSize=u["icon-size"].possiblyEvaluate(new uo(t.zoom+1),a),c.textMaxSize=u["text-size"].possiblyEvaluate(new uo(18));for(var d=24*s.get("text-line-height"),m="map"===s.get("text-rotation-alignment")&&"point"!==s.get("symbol-placement"),y=s.get("text-keep-upright"),v=s.get("text-size"),g=function(){var i=_[b],u=s.get("text-font").evaluate(i,{},a).join(","),l=v.evaluate(i,{},a),p=c.layoutTextSize.evaluate(i,{},a),f=c.layoutIconSize.evaluate(i,{},a),h={horizontal:{},vertical:void 0},g=i.text,x=[0,0];if(g){var w=g.toString(),E=24*s.get("text-letter-spacing").evaluate(i,{},a),S=function(t){for(var e=0,r=t;e<r.length;e+=1)if(n=r[e].charCodeAt(0),Wn.Arabic(n)||Wn["Arabic Supplement"](n)||Wn["Arabic Extended-A"](n)||Wn["Arabic Presentation Forms-A"](n)||Wn["Arabic Presentation Forms-B"](n))return!1;var n;return!0}(w)?E:0,P=s.get("text-anchor").evaluate(i,{},a),j=s.get("text-variable-anchor");if(!j){var A=s.get("text-radial-offset").evaluate(i,{},a);x=A?ac(P,[24*A,ic]):s.get("text-offset").evaluate(i,{},a).map((function(t){return 24*t}))}var C=m?"center":s.get("text-justify").evaluate(i,{},a),T=s.get("symbol-placement"),k="point"===T?24*s.get("text-max-width").evaluate(i,{},a):0,M=function(){t.allowVerticalPlacement&&Zn(w)&&(h.vertical=Su(g,e,r,o,u,k,d,P,"left",S,x,wu.vertical,!0,T,p,l))};if(!m&&j){for(var I="auto"===C?j.map((function(t){return sc(t)})):[C],D=!1,L=0;L<I.length;L++){var R=I[L];if(!h.horizontal[R])if(D)h.horizontal[R]=h.horizontal[0];else{var z=Su(g,e,r,o,u,k,d,"center",R,S,x,wu.horizontal,!1,T,p,l);z&&(h.horizontal[R]=z,D=1===z.positionedLines.length)}}M()}else{"auto"===C&&(C=sc(P));var N=Su(g,e,r,o,u,k,d,P,C,S,x,wu.horizontal,!1,T,p,l);N&&(h.horizontal[C]=N),M(),Zn(w)&&m&&y&&(h.vertical=Su(g,e,r,o,u,k,d,P,C,S,x,wu.vertical,!1,T,p,l))}}var F=void 0,B=!1;if(i.icon&&i.icon.name){var V=n[i.icon.name];V&&(F=function(t,e,r){var n=Iu(r),o=e[0]-t.displaySize[0]*n.horizontalAlign,i=e[1]-t.displaySize[1]*n.verticalAlign;return{image:t,top:i,bottom:i+t.displaySize[1],left:o,right:o+t.displaySize[0]}}(o[i.icon.name],s.get("icon-offset").evaluate(i,{},a),s.get("icon-anchor").evaluate(i,{},a)),B=V.sdf,void 0===t.sdfIcons?t.sdfIcons=V.sdf:t.sdfIcons!==V.sdf&&O("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(V.pixelRatio!==t.pixelRatio||0!==s.get("icon-rotate").constantOr(1))&&(t.iconsNeedLinear=!0))}var U=cc(h.horizontal)||h.vertical;t.iconsInText=!!U&&U.iconsInText,(U||F)&&function(t,e,r,n,o,i,a,s,u,c,l){var p=i.textMaxSize.evaluate(e,{});void 0===p&&(p=a);var f,h=t.layers[0].layout,d=h.get("icon-offset").evaluate(e,{},l),m=cc(r.horizontal),y=a/24,v=t.tilePixelRatio*y,g=t.tilePixelRatio*p/24,b=t.tilePixelRatio*s,_=t.tilePixelRatio*h.get("symbol-spacing"),x=h.get("text-padding")*t.tilePixelRatio,w=h.get("icon-padding")*t.tilePixelRatio,E=h.get("text-max-angle")/180*Math.PI,S="map"===h.get("text-rotation-alignment")&&"point"!==h.get("symbol-placement"),P="map"===h.get("icon-rotation-alignment")&&"point"!==h.get("symbol-placement"),j=h.get("symbol-placement"),A=_/2,C=h.get("icon-text-fit");n&&"none"!==C&&(t.allowVerticalPlacement&&r.vertical&&(f=Lu(n,r.vertical,C,h.get("icon-text-fit-padding"),d,y)),m&&(n=Lu(n,m,C,h.get("icon-text-fit-padding"),d,y)));var T=function(s,p){p.x<0||p.x>=8192||p.y<0||p.y>=8192||function(t,e,r,n,o,i,a,s,u,c,l,p,f,h,d,m,y,v,g,b,_,x,w,E,S){var P,j,A,C,T,k=t.addToLineVertexArray(e,r),M=0,I=0,D=0,L=0,R=-1,z=-1,N={},F=di(""),B=0,V=0;if(void 0===s._unevaluatedLayout.getValue("text-radial-offset")?(B=(P=s.layout.get("text-offset").evaluate(_,{},E).map((function(t){return 24*t})))[0],V=P[1]):(B=24*s.layout.get("text-radial-offset").evaluate(_,{},E),V=ic),t.allowVerticalPlacement&&n.vertical){var U=s.layout.get("text-rotate").evaluate(_,{},E)+90;C=new Qu(u,e,c,l,p,n.vertical,f,h,d,U),a&&(T=new Qu(u,e,c,l,p,a,y,v,d,U))}if(o){var q=s.layout.get("icon-rotate").evaluate(_,{}),$="none"!==s.layout.get("icon-text-fit"),G=Hu(o,q,w,$),W=a?Hu(a,q,w,$):void 0;A=new Qu(u,e,c,l,p,o,y,v,!1,q),M=4*G.length;var Z=t.iconSizeData,H=null;"source"===Z.kind?(H=[128*s.layout.get("icon-size").evaluate(_,{})])[0]>32640&&O(t.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'):"composite"===Z.kind&&((H=[128*x.compositeIconSizes[0].evaluate(_,{},E),128*x.compositeIconSizes[1].evaluate(_,{},E)])[0]>32640||H[1]>32640)&&O(t.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'),t.addSymbols(t.icon,G,H,b,g,_,!1,e,k.lineStartIndex,k.lineLength,-1,E),R=t.icon.placedSymbolArray.length-1,W&&(I=4*W.length,t.addSymbols(t.icon,W,H,b,g,_,wu.vertical,e,k.lineStartIndex,k.lineLength,-1,E),z=t.icon.placedSymbolArray.length-1)}for(var K in n.horizontal){var Y=n.horizontal[K];if(!j){F=di(Y.text);var X=s.layout.get("text-rotate").evaluate(_,{},E);j=new Qu(u,e,c,l,p,Y,f,h,d,X)}var J=1===Y.positionedLines.length;if(D+=uc(t,e,Y,i,s,d,_,m,k,n.vertical?wu.horizontal:wu.horizontalOnly,J?Object.keys(n.horizontal):[K],N,R,x,E),J)break}n.vertical&&(L+=uc(t,e,n.vertical,i,s,d,_,m,k,wu.vertical,["vertical"],N,z,x,E));var Q=j?j.boxStartIndex:t.collisionBoxArray.length,tt=j?j.boxEndIndex:t.collisionBoxArray.length,et=C?C.boxStartIndex:t.collisionBoxArray.length,rt=C?C.boxEndIndex:t.collisionBoxArray.length,nt=A?A.boxStartIndex:t.collisionBoxArray.length,ot=A?A.boxEndIndex:t.collisionBoxArray.length,it=T?T.boxStartIndex:t.collisionBoxArray.length,at=T?T.boxEndIndex:t.collisionBoxArray.length,st=-1,ut=function(t,e){return t&&t.circleDiameter?Math.max(t.circleDiameter,e):e};st=ut(j,st),st=ut(C,st),st=ut(A,st);var ct=(st=ut(T,st))>-1?1:0;ct&&(st*=S/24),t.glyphOffsetArray.length>=gc.MAX_GLYPHS&&O("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==_.sortKey&&t.addToSortKeyRanges(t.symbolInstances.length,_.sortKey),t.symbolInstances.emplaceBack(e.x,e.y,N.right>=0?N.right:-1,N.center>=0?N.center:-1,N.left>=0?N.left:-1,N.vertical||-1,R,z,F,Q,tt,et,rt,nt,ot,it,at,c,D,L,M,I,ct,0,f,B,V,st)}(t,p,s,r,n,o,f,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,v,x,S,u,b,w,P,d,e,i,c,l,a)};if("line"===j)for(var k=0,M=Zu(e.geometry,0,0,8192,8192);k<M.length;k+=1)for(var I=M[k],D=0,L=Wu(I,_,E,r.vertical||m,n,24,g,t.overscaling,8192);D<L.length;D+=1){var R=L[D];m&&lc(t,m.text,A,R)||T(I,R)}else if("line-center"===j)for(var z=0,N=e.geometry;z<N.length;z+=1){var F=N[z];if(F.length>1){var B=Gu(F,E,r.vertical||m,n,24,g);B&&T(F,B)}}else if("Polygon"===e.type)for(var V=0,U=os(e.geometry,0);V<U.length;V+=1){var q=U[V],$=rc(q,16);T(q[0],new Ru($.x,$.y,0))}else if("LineString"===e.type)for(var G=0,W=e.geometry;G<W.length;G+=1){var Z=W[G];T(Z,new Ru(Z[0].x,Z[0].y,0))}else if("Point"===e.type)for(var H=0,K=e.geometry;H<K.length;H+=1)for(var Y=0,X=K[H];Y<X.length;Y+=1){var J=X[Y];T([J],new Ru(J.x,J.y,0))}}(t,i,h,F,n,c,p,f,x,B,a)},b=0,_=t.features;b<_.length;b+=1)g();i&&t.generateCollisionDebugBuffers()},t.perspective=function(t,e,r,n,o){var i,a=1/Math.tan(e/2);return t[0]=a/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(t[10]=(o+n)*(i=1/(n-o)),t[14]=2*o*n*i):(t[10]=-1,t[14]=-2*n),t},t.pick=function(t,e){for(var r={},n=0;n<e.length;n++){var o=e[n];o in t&&(r[o]=t[o])}return r},t.plugin=so,t.polygonIntersectsPolygon=Gi,t.postMapLoadEvent=at,t.postTurnstileEvent=ot,t.potpack=gu,t.refProperties=["type","source","source-layer","minzoom","maxzoom","filter","layout"],t.register=Fn,t.registerForPluginStateChange=function(t){return t({pluginStatus:to,pluginURL:eo}),oo.on("pluginStateChange",t),t},t.renderColorRamp=wa,t.rotate=function(t,e,r){var n=e[0],o=e[1],i=e[2],a=e[3],s=Math.sin(r),u=Math.cos(r);return t[0]=n*u+i*s,t[1]=o*u+a*s,t[2]=n*-s+i*u,t[3]=o*-s+a*u,t},t.rotateX=function(t,e,r){var n=Math.sin(r),o=Math.cos(r),i=e[4],a=e[5],s=e[6],u=e[7],c=e[8],l=e[9],p=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=i*o+c*n,t[5]=a*o+l*n,t[6]=s*o+p*n,t[7]=u*o+f*n,t[8]=c*o-i*n,t[9]=l*o-a*n,t[10]=p*o-s*n,t[11]=f*o-u*n,t},t.rotateZ=function(t,e,r){var n=Math.sin(r),o=Math.cos(r),i=e[0],a=e[1],s=e[2],u=e[3],c=e[4],l=e[5],p=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=i*o+c*n,t[1]=a*o+l*n,t[2]=s*o+p*n,t[3]=u*o+f*n,t[4]=c*o-i*n,t[5]=l*o-a*n,t[6]=p*o-s*n,t[7]=f*o-u*n,t},t.scale=function(t,e,r){var n=r[0],o=r[1],i=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*i,t[9]=e[9]*i,t[10]=e[10]*i,t[11]=e[11]*i,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},t.scale$1=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t},t.scale$2=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t},t.setCacheLimits=function(t,e){st=t,ut=e},t.setRTLTextPlugin=function(t,e,r){if(void 0===r&&(r=!1),"deferred"===to||"loading"===to||"loaded"===to)throw new Error("setRTLTextPlugin cannot be called multiple times.");eo=N.resolveURL(t),to="deferred",Qn=e,no(),r||ao()},t.sphericalToCartesian=function(t){var e=t[0],r=t[1],n=t[2];return r+=90,r*=Math.PI/180,n*=Math.PI/180,{x:e*Math.cos(r)*Math.sin(n),y:e*Math.sin(r)*Math.sin(n),z:e*Math.cos(n)}},t.sqrLen=function(t){var e=t[0],r=t[1];return e*e+r*r},t.styleSpec=Tt,t.sub=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t},t.symbolSize=Bu,t.transformMat3=function(t,e,r){var n=e[0],o=e[1],i=e[2];return t[0]=n*r[0]+o*r[3]+i*r[6],t[1]=n*r[1]+o*r[4]+i*r[7],t[2]=n*r[2]+o*r[5]+i*r[8],t},t.transformMat4=fa,t.translate=function(t,e,r){var n,o,i,a,s,u,c,l,p,f,h,d,m=r[0],y=r[1],v=r[2];return e===t?(t[12]=e[0]*m+e[4]*y+e[8]*v+e[12],t[13]=e[1]*m+e[5]*y+e[9]*v+e[13],t[14]=e[2]*m+e[6]*y+e[10]*v+e[14],t[15]=e[3]*m+e[7]*y+e[11]*v+e[15]):(o=e[1],i=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],p=e[8],f=e[9],h=e[10],d=e[11],t[0]=n=e[0],t[1]=o,t[2]=i,t[3]=a,t[4]=s,t[5]=u,t[6]=c,t[7]=l,t[8]=p,t[9]=f,t[10]=h,t[11]=d,t[12]=n*m+s*y+p*v+e[12],t[13]=o*m+u*y+f*v+e[13],t[14]=i*m+c*y+h*v+e[14],t[15]=a*m+l*y+d*v+e[15]),t},t.triggerPluginCompletionEvent=ro,t.uniqueId=d,t.validateCustomStyleLayer=function(t){var e=[],r=t.id;return void 0===r&&e.push({message:"layers."+r+': missing required property "id"'}),void 0===t.render&&e.push({message:"layers."+r+': missing required method "render"'}),t.renderingMode&&"2d"!==t.renderingMode&&"3d"!==t.renderingMode&&e.push({message:"layers."+r+': property "renderingMode" must be either "2d" or "3d"'}),e},t.validateLight=Tn,t.validateStyle=Cn,t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.vectorTile=xs,t.version="1.15.3",t.warnOnce=O,t.webpSupported=B,t.window=a,t.wrap=p})),n(0,(function(t){function e(t){var r=typeof t;if("number"===r||"boolean"===r||"string"===r||null==t)return JSON.stringify(t);if(Array.isArray(t)){for(var n="[",o=0,i=t;o<i.length;o+=1)n+=e(i[o])+",";return n+"]"}for(var a=Object.keys(t).sort(),s="{",u=0;u<a.length;u++)s+=JSON.stringify(a[u])+":"+e(t[a[u]])+",";return s+"}"}function r(r){for(var n="",o=0,i=t.refProperties;o<i.length;o+=1)n+="/"+e(r[i[o]]);return n}var n=function(t){this.keyCache={},t&&this.replace(t)};n.prototype.replace=function(t){this._layerConfigs={},this._layers={},this.update(t,[])},n.prototype.update=function(e,n){for(var o=this,i=0,a=e;i<a.length;i+=1){var s=a[i];this._layerConfigs[s.id]=s;var u=this._layers[s.id]=t.createStyleLayer(s);u._featureFilter=t.featureFilter(u.filter),this.keyCache[s.id]&&delete this.keyCache[s.id]}for(var c=0,l=n;c<l.length;c+=1){var p=l[c];delete this.keyCache[p],delete this._layerConfigs[p],delete this._layers[p]}this.familiesBySource={};for(var f=0,h=function(t,e){for(var n={},o=0;o<t.length;o++){var i=e&&e[t[o].id]||r(t[o]);e&&(e[t[o].id]=i);var a=n[i];a||(a=n[i]=[]),a.push(t[o])}var s=[];for(var u in n)s.push(n[u]);return s}(t.values(this._layerConfigs),this.keyCache);f<h.length;f+=1){var d=h[f].map((function(t){return o._layers[t.id]})),m=d[0];if("none"!==m.visibility){var y=m.source||"",v=this.familiesBySource[y];v||(v=this.familiesBySource[y]={});var g=m.sourceLayer||"_geojsonTileLayer",b=v[g];b||(b=v[g]=[]),b.push(d)}}};var o=function(e){var r={},n=[];for(var o in e){var i=e[o],a=r[o]={};for(var s in i){var u=i[+s];if(u&&0!==u.bitmap.width&&0!==u.bitmap.height){var c={x:0,y:0,w:u.bitmap.width+2,h:u.bitmap.height+2};n.push(c),a[s]={rect:c,metrics:u.metrics}}}}var l=t.potpack(n),p=new t.AlphaImage({width:l.w||1,height:l.h||1});for(var f in e){var h=e[f];for(var d in h){var m=h[+d];if(m&&0!==m.bitmap.width&&0!==m.bitmap.height){var y=r[f][d].rect;t.AlphaImage.copy(m.bitmap,p,{x:0,y:0},{x:y.x+1,y:y.y+1},m.bitmap)}}}this.image=p,this.positions=r};t.register("GlyphAtlas",o);var i=function(e){this.tileID=new t.OverscaledTileID(e.tileID.overscaledZ,e.tileID.wrap,e.tileID.canonical.z,e.tileID.canonical.x,e.tileID.canonical.y),this.uid=e.uid,this.zoom=e.zoom,this.pixelRatio=e.pixelRatio,this.tileSize=e.tileSize,this.source=e.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=e.showCollisionBoxes,this.collectResourceTiming=!!e.collectResourceTiming,this.returnDependencies=!!e.returnDependencies,this.promoteId=e.promoteId};function a(e,r,n){for(var o=new t.EvaluationParameters(r),i=0,a=e;i<a.length;i+=1)a[i].recalculate(o,n)}function s(e,r){var n=t.getArrayBuffer(e.request,(function(e,n,o,i){e?r(e):n&&r(null,{vectorTile:new t.vectorTile.VectorTile(new t.pbf(n)),rawData:n,cacheControl:o,expires:i})}));return function(){n.cancel(),r()}}i.prototype.parse=function(e,r,n,i,s){var u=this;this.status="parsing",this.data=e,this.collisionBoxArray=new t.CollisionBoxArray;var c=new t.DictionaryCoder(Object.keys(e.layers).sort()),l=new t.FeatureIndex(this.tileID,this.promoteId);l.bucketLayerIDs=[];var p,f,h,d,m={},y={featureIndex:l,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:n},v=r.familiesBySource[this.source];for(var g in v){var b=e.layers[g];if(b){1===b.version&&t.warnOnce('Vector tile source "'+this.source+'" layer "'+g+'" does not use vector tile spec v2 and therefore may have some rendering errors.');for(var _=c.encode(g),x=[],w=0;w<b.length;w++){var O=b.feature(w),E=l.getId(O,g);x.push({feature:O,id:E,index:w,sourceLayerIndex:_})}for(var S=0,P=v[g];S<P.length;S+=1){var j=P[S],A=j[0];A.minzoom&&this.zoom<Math.floor(A.minzoom)||A.maxzoom&&this.zoom>=A.maxzoom||"none"!==A.visibility&&(a(j,this.zoom,n),(m[A.id]=A.createBucket({index:l.bucketLayerIDs.length,layers:j,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:_,sourceID:this.source})).populate(x,y,this.tileID.canonical),l.bucketLayerIDs.push(j.map((function(t){return t.id}))))}}}var C=t.mapObject(y.glyphDependencies,(function(t){return Object.keys(t).map(Number)}));Object.keys(C).length?i.send("getGlyphs",{uid:this.uid,stacks:C},(function(t,e){p||(p=t,f=e,M.call(u))})):f={};var T=Object.keys(y.iconDependencies);T.length?i.send("getImages",{icons:T,source:this.source,tileID:this.tileID,type:"icons"},(function(t,e){p||(p=t,h=e,M.call(u))})):h={};var k=Object.keys(y.patternDependencies);function M(){if(p)return s(p);if(f&&h&&d){var e=new o(f),r=new t.ImageAtlas(h,d);for(var i in m){var u=m[i];u instanceof t.SymbolBucket?(a(u.layers,this.zoom,n),t.performSymbolLayout(u,f,e.positions,h,r.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):u.hasPattern&&(u instanceof t.LineBucket||u instanceof t.FillBucket||u instanceof t.FillExtrusionBucket)&&(a(u.layers,this.zoom,n),u.addFeatures(y,this.tileID.canonical,r.patternPositions))}this.status="done",s(null,{buckets:t.values(m).filter((function(t){return!t.isEmpty()})),featureIndex:l,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:e.image,imageAtlas:r,glyphMap:this.returnDependencies?f:null,iconMap:this.returnDependencies?h:null,glyphPositions:this.returnDependencies?e.positions:null})}}k.length?i.send("getImages",{icons:k,source:this.source,tileID:this.tileID,type:"patterns"},(function(t,e){p||(p=t,d=e,M.call(u))})):d={},M.call(this)};var u=function(t,e,r,n){this.actor=t,this.layerIndex=e,this.availableImages=r,this.loadVectorData=n||s,this.loading={},this.loaded={}};u.prototype.loadTile=function(e,r){var n=this,o=e.uid;this.loading||(this.loading={});var a=!!(e&&e.request&&e.request.collectResourceTiming)&&new t.RequestPerformance(e.request),s=this.loading[o]=new i(e);s.abort=this.loadVectorData(e,(function(e,i){if(delete n.loading[o],e||!i)return s.status="done",n.loaded[o]=s,r(e);var u=i.rawData,c={};i.expires&&(c.expires=i.expires),i.cacheControl&&(c.cacheControl=i.cacheControl);var l={};if(a){var p=a.finish();p&&(l.resourceTiming=JSON.parse(JSON.stringify(p)))}s.vectorTile=i.vectorTile,s.parse(i.vectorTile,n.layerIndex,n.availableImages,n.actor,(function(e,n){if(e||!n)return r(e);r(null,t.extend({rawTileData:u.slice(0)},n,c,l))})),n.loaded=n.loaded||{},n.loaded[o]=s}))},u.prototype.reloadTile=function(t,e){var r=this,n=this.loaded,o=t.uid,i=this;if(n&&n[o]){var a=n[o];a.showCollisionBoxes=t.showCollisionBoxes;var s=function(t,n){var o=a.reloadCallback;o&&(delete a.reloadCallback,a.parse(a.vectorTile,i.layerIndex,r.availableImages,i.actor,o)),e(t,n)};"parsing"===a.status?a.reloadCallback=s:"done"===a.status&&(a.vectorTile?a.parse(a.vectorTile,this.layerIndex,this.availableImages,this.actor,s):s())}},u.prototype.abortTile=function(t,e){var r=this.loading,n=t.uid;r&&r[n]&&r[n].abort&&(r[n].abort(),delete r[n]),e()},u.prototype.removeTile=function(t,e){var r=this.loaded,n=t.uid;r&&r[n]&&delete r[n],e()};var c=t.window.ImageBitmap,l=function(){this.loaded={}};function p(t,e){if(0!==t.length){f(t[0],e);for(var r=1;r<t.length;r++)f(t[r],!e)}}function f(t,e){for(var r=0,n=0,o=t.length,i=o-1;n<o;i=n++)r+=(t[n][0]-t[i][0])*(t[i][1]+t[n][1]);r>=0!=!!e&&t.reverse()}l.prototype.loadTile=function(e,r){var n=e.uid,o=e.encoding,i=e.rawImageData,a=c&&i instanceof c?this.getImageData(i):i,s=new t.DEMData(n,a,o);this.loaded=this.loaded||{},this.loaded[n]=s,r(null,s)},l.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 r=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:r.width,height:r.height},r.data)},l.prototype.removeTile=function(t){var e=this.loaded,r=t.uid;e&&e[r]&&delete e[r]};var h=t.vectorTile.VectorTileFeature.prototype.toGeoJSON,d=function(e){this._feature=e,this.extent=t.EXTENT,this.type=e.type,this.properties=e.tags,"id"in e&&!isNaN(e.id)&&(this.id=parseInt(e.id,10))};d.prototype.loadGeometry=function(){if(1===this._feature.type){for(var e=[],r=0,n=this._feature.geometry;r<n.length;r+=1){var o=n[r];e.push([new t.Point$1(o[0],o[1])])}return e}for(var i=[],a=0,s=this._feature.geometry;a<s.length;a+=1){for(var u=[],c=0,l=s[a];c<l.length;c+=1){var p=l[c];u.push(new t.Point$1(p[0],p[1]))}i.push(u)}return i},d.prototype.toGeoJSON=function(t,e,r){return h.call(this,t,e,r)};var m=function(e){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=t.EXTENT,this.length=e.length,this._features=e};m.prototype.feature=function(t){return new d(this._features[t])};var y=t.vectorTile.VectorTileFeature,v=g;function g(t,e){this.options=e||{},this.features=t,this.length=t.length}function b(t,e){this.id="number"==typeof t.id?t.id:void 0,this.type=t.type,this.rawGeometry=1===t.type?[t.geometry]:t.geometry,this.properties=t.tags,this.extent=e||4096}g.prototype.feature=function(t){return new b(this.features[t],this.options.extent)},b.prototype.loadGeometry=function(){var e=this.rawGeometry;this.geometry=[];for(var r=0;r<e.length;r++){for(var n=e[r],o=[],i=0;i<n.length;i++)o.push(new t.Point$1(n[i][0],n[i][1]));this.geometry.push(o)}return this.geometry},b.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var t=this.geometry,e=1/0,r=-1/0,n=1/0,o=-1/0,i=0;i<t.length;i++)for(var a=t[i],s=0;s<a.length;s++){var u=a[s];e=Math.min(e,u.x),r=Math.max(r,u.x),n=Math.min(n,u.y),o=Math.max(o,u.y)}return[e,n,r,o]},b.prototype.toGeoJSON=y.prototype.toGeoJSON;var _=w,x=v;function w(e){var r=new t.pbf;return function(t,e){for(var r in t.layers)e.writeMessage(3,O,t.layers[r])}(e,r),r.finish()}function O(t,e){var r;e.writeVarintField(15,t.version||1),e.writeStringField(1,t.name||""),e.writeVarintField(5,t.extent||4096);var n={keys:[],values:[],keycache:{},valuecache:{}};for(r=0;r<t.length;r++)n.feature=t.feature(r),e.writeMessage(2,E,n);var o=n.keys;for(r=0;r<o.length;r++)e.writeStringField(3,o[r]);var i=n.values;for(r=0;r<i.length;r++)e.writeMessage(4,C,i[r])}function E(t,e){var r=t.feature;void 0!==r.id&&e.writeVarintField(1,r.id),e.writeMessage(2,S,t),e.writeVarintField(3,r.type),e.writeMessage(4,A,r)}function S(t,e){var r=t.feature,n=t.keys,o=t.values,i=t.keycache,a=t.valuecache;for(var s in r.properties){var u=i[s];void 0===u&&(n.push(s),i[s]=u=n.length-1),e.writeVarint(u);var c=r.properties[s],l=typeof c;"string"!==l&&"boolean"!==l&&"number"!==l&&(c=JSON.stringify(c));var p=l+":"+c,f=a[p];void 0===f&&(o.push(c),a[p]=f=o.length-1),e.writeVarint(f)}}function P(t,e){return(e<<3)+(7&t)}function j(t){return t<<1^t>>31}function A(t,e){for(var r=t.loadGeometry(),n=t.type,o=0,i=0,a=r.length,s=0;s<a;s++){var u=r[s],c=1;1===n&&(c=u.length),e.writeVarint(P(1,c));for(var l=3===n?u.length-1:u.length,p=0;p<l;p++){1===p&&1!==n&&e.writeVarint(P(2,l-1));var f=u[p].x-o,h=u[p].y-i;e.writeVarint(j(f)),e.writeVarint(j(h)),o+=f,i+=h}3===n&&e.writeVarint(P(7,1))}}function C(t,e){var r=typeof t;"string"===r?e.writeStringField(1,t):"boolean"===r?e.writeBooleanField(7,t):"number"===r&&(t%1!=0?e.writeDoubleField(3,t):t<0?e.writeSVarintField(6,t):e.writeVarintField(5,t))}function T(t,e,r,n){k(t,r,n),k(e,2*r,2*n),k(e,2*r+1,2*n+1)}function k(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function M(t,e,r,n){var o=t-r,i=e-n;return o*o+i*i}_.fromVectorTileJs=w,_.fromGeojsonVt=function(t,e){e=e||{};var r={};for(var n in t)r[n]=new v(t[n].features,e),r[n].name=n,r[n].version=e.version,r[n].extent=e.extent;return w({layers:r})},_.GeoJSONWrapper=x;var I=function(t){return t[0]},D=function(t){return t[1]},L=function(t,e,r,n,o){void 0===e&&(e=I),void 0===r&&(r=D),void 0===n&&(n=64),void 0===o&&(o=Float64Array),this.nodeSize=n,this.points=t;for(var i=t.length<65536?Uint16Array:Uint32Array,a=this.ids=new i(t.length),s=this.coords=new o(2*t.length),u=0;u<t.length;u++)a[u]=u,s[2*u]=e(t[u]),s[2*u+1]=r(t[u]);!function t(e,r,n,o,i,a){if(!(i-o<=n)){var s=o+i>>1;!function t(e,r,n,o,i,a){for(;i>o;){if(i-o>600){var s=i-o+1,u=n-o+1,c=Math.log(s),l=.5*Math.exp(2*c/3),p=.5*Math.sqrt(c*l*(s-l)/s)*(u-s/2<0?-1:1);t(e,r,n,Math.max(o,Math.floor(n-u*l/s+p)),Math.min(i,Math.floor(n+(s-u)*l/s+p)),a)}var f=r[2*n+a],h=o,d=i;for(T(e,r,o,n),r[2*i+a]>f&&T(e,r,o,i);h<d;){for(T(e,r,h,d),h++,d--;r[2*h+a]<f;)h++;for(;r[2*d+a]>f;)d--}r[2*o+a]===f?T(e,r,o,d):T(e,r,++d,i),d<=n&&(o=d+1),n<=d&&(i=d-1)}}(e,r,s,o,i,a%2),t(e,r,n,o,s-1,a+1),t(e,r,n,s+1,i,a+1)}}(a,s,n,0,a.length-1,0)};L.prototype.range=function(t,e,r,n){return function(t,e,r,n,o,i,a){for(var s,u,c=[0,t.length-1,0],l=[];c.length;){var p=c.pop(),f=c.pop(),h=c.pop();if(f-h<=a)for(var d=h;d<=f;d++)u=e[2*d+1],(s=e[2*d])>=r&&s<=o&&u>=n&&u<=i&&l.push(t[d]);else{var m=Math.floor((h+f)/2);u=e[2*m+1],(s=e[2*m])>=r&&s<=o&&u>=n&&u<=i&&l.push(t[m]);var y=(p+1)%2;(0===p?r<=s:n<=u)&&(c.push(h),c.push(m-1),c.push(y)),(0===p?o>=s:i>=u)&&(c.push(m+1),c.push(f),c.push(y))}}return l}(this.ids,this.coords,t,e,r,n,this.nodeSize)},L.prototype.within=function(t,e,r){return function(t,e,r,n,o,i){for(var a=[0,t.length-1,0],s=[],u=o*o;a.length;){var c=a.pop(),l=a.pop(),p=a.pop();if(l-p<=i)for(var f=p;f<=l;f++)M(e[2*f],e[2*f+1],r,n)<=u&&s.push(t[f]);else{var h=Math.floor((p+l)/2),d=e[2*h],m=e[2*h+1];M(d,m,r,n)<=u&&s.push(t[h]);var y=(c+1)%2;(0===c?r-o<=d:n-o<=m)&&(a.push(p),a.push(h-1),a.push(y)),(0===c?r+o>=d:n+o>=m)&&(a.push(h+1),a.push(l),a.push(y))}}return s}(this.ids,this.coords,t,e,r,this.nodeSize)};var R={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(t){return t}},z=function(t){this.options=$(Object.create(R),t),this.trees=new Array(this.options.maxZoom+1)};function N(t,e,r,n,o){return{x:t,y:e,zoom:1/0,id:r,parentId:-1,numPoints:n,properties:o}}function F(t,e){var r=t.geometry.coordinates,n=r[1];return{x:U(r[0]),y:q(n),zoom:1/0,index:e,parentId:-1}}function B(t){return{type:"Feature",id:t.id,properties:V(t),geometry:{type:"Point",coordinates:[(n=t.x,360*(n-.5)),(e=t.y,r=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(r))/Math.PI-90)]}};var e,r,n}function V(t){var e=t.numPoints,r=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:r})}function U(t){return t/360+.5}function q(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r<0?0:r>1?1:r}function $(t,e){for(var r in e)t[r]=e[r];return t}function G(t){return t.x}function W(t){return t.y}function Z(t,e,r,n,o,i){var a=o-r,s=i-n;if(0!==a||0!==s){var u=((t-r)*a+(e-n)*s)/(a*a+s*s);u>1?(r=o,n=i):u>0&&(r+=a*u,n+=s*u)}return(a=t-r)*a+(s=e-n)*s}function H(t,e,r,n){var o={id:void 0===t?null:t,type:e,geometry:r,tags:n,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(t){var e=t.geometry,r=t.type;if("Point"===r||"MultiPoint"===r||"LineString"===r)K(t,e);else if("Polygon"===r||"MultiLineString"===r)for(var n=0;n<e.length;n++)K(t,e[n]);else if("MultiPolygon"===r)for(n=0;n<e.length;n++)for(var o=0;o<e[n].length;o++)K(t,e[n][o])}(o),o}function K(t,e){for(var r=0;r<e.length;r+=3)t.minX=Math.min(t.minX,e[r]),t.minY=Math.min(t.minY,e[r+1]),t.maxX=Math.max(t.maxX,e[r]),t.maxY=Math.max(t.maxY,e[r+1])}function Y(t,e,r,n){if(e.geometry){var o=e.geometry.coordinates,i=e.geometry.type,a=Math.pow(r.tolerance/((1<<r.maxZoom)*r.extent),2),s=[],u=e.id;if(r.promoteId?u=e.properties[r.promoteId]:r.generateId&&(u=n||0),"Point"===i)X(o,s);else if("MultiPoint"===i)for(var c=0;c<o.length;c++)X(o[c],s);else if("LineString"===i)J(o,s,a,!1);else if("MultiLineString"===i){if(r.lineMetrics){for(c=0;c<o.length;c++)J(o[c],s=[],a,!1),t.push(H(u,"LineString",s,e.properties));return}Q(o,s,a,!1)}else if("Polygon"===i)Q(o,s,a,!0);else{if("MultiPolygon"!==i){if("GeometryCollection"===i){for(c=0;c<e.geometry.geometries.length;c++)Y(t,{id:u,geometry:e.geometry.geometries[c],properties:e.properties},r,n);return}throw new Error("Input data is not a valid GeoJSON object.")}for(c=0;c<o.length;c++){var l=[];Q(o[c],l,a,!0),s.push(l)}}t.push(H(u,i,s,e.properties))}}function X(t,e){e.push(tt(t[0])),e.push(et(t[1])),e.push(0)}function J(t,e,r,n){for(var o,i,a=0,s=0;s<t.length;s++){var u=tt(t[s][0]),c=et(t[s][1]);e.push(u),e.push(c),e.push(0),s>0&&(a+=n?(o*c-u*i)/2:Math.sqrt(Math.pow(u-o,2)+Math.pow(c-i,2))),o=u,i=c}var l=e.length-3;e[2]=1,function t(e,r,n,o){for(var i,a=o,s=n-r>>1,u=n-r,c=e[r],l=e[r+1],p=e[n],f=e[n+1],h=r+3;h<n;h+=3){var d=Z(e[h],e[h+1],c,l,p,f);if(d>a)i=h,a=d;else if(d===a){var m=Math.abs(h-s);m<u&&(i=h,u=m)}}a>o&&(i-r>3&&t(e,r,i,o),e[i+2]=a,n-i>3&&t(e,i,n,o))}(e,0,l,r),e[l+2]=1,e.size=Math.abs(a),e.start=0,e.end=e.size}function Q(t,e,r,n){for(var o=0;o<t.length;o++){var i=[];J(t[o],i,r,n),e.push(i)}}function tt(t){return t/360+.5}function et(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r<0?0:r>1?1:r}
vendor: 4,579 bytes, line 1
1function rt(t,e,r,n,o,i,a,s){if(n/=e,i>=(r/=e)&&a<n)return t;if(a<r||i>=n)return null;for(var u=[],c=0;c<t.length;c++){var l=t[c],p=l.geometry,f=l.type,h=0===o?l.minX:l.minY,d=0===o?l.maxX:l.maxY;if(h>=r&&d<n)u.push(l);else if(!(d<r||h>=n)){var m=[];if("Point"===f||"MultiPoint"===f)nt(p,m,r,n,o);else if("LineString"===f)ot(p,m,r,n,o,!1,s.lineMetrics);else if("MultiLineString"===f)at(p,m,r,n,o,!1);else if("Polygon"===f)at(p,m,r,n,o,!0);else if("MultiPolygon"===f)for(var y=0;y<p.length;y++){var v=[];at(p[y],v,r,n,o,!0),v.length&&m.push(v)}if(m.length){if(s.lineMetrics&&"LineString"===f){for(y=0;y<m.length;y++)u.push(H(l.id,f,m[y],l.tags));continue}"LineString"!==f&&"MultiLineString"!==f||(1===m.length?(f="LineString",m=m[0]):f="MultiLineString"),"Point"!==f&&"MultiPoint"!==f||(f=3===m.length?"Point":"MultiPoint"),u.push(H(l.id,f,m,l.tags))}}}return u.length?u:null}function nt(t,e,r,n,o){for(var i=0;i<t.length;i+=3){var a=t[i+o];a>=r&&a<=n&&(e.push(t[i]),e.push(t[i+1]),e.push(t[i+2]))}}function ot(t,e,r,n,o,i,a){for(var s,u,c=it(t),l=0===o?ut:ct,p=t.start,f=0;f<t.length-3;f+=3){var h=t[f],d=t[f+1],m=t[f+2],y=t[f+3],v=t[f+4],g=0===o?h:d,b=0===o?y:v,_=!1;a&&(s=Math.sqrt(Math.pow(h-y,2)+Math.pow(d-v,2))),g<r?b>r&&(u=l(c,h,d,y,v,r),a&&(c.start=p+s*u)):g>n?b<n&&(u=l(c,h,d,y,v,n),a&&(c.start=p+s*u)):st(c,h,d,m),b<r&&g>=r&&(u=l(c,h,d,y,v,r),_=!0),b>n&&g<=n&&(u=l(c,h,d,y,v,n),_=!0),!i&&_&&(a&&(c.end=p+s*u),e.push(c),c=it(t)),a&&(p+=s)}var x=t.length-3;h=t[x],d=t[x+1],m=t[x+2],(g=0===o?h:d)>=r&&g<=n&&st(c,h,d,m),x=c.length-3,i&&x>=3&&(c[x]!==c[0]||c[x+1]!==c[1])&&st(c,c[0],c[1],c[2]),c.length&&e.push(c)}function it(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function at(t,e,r,n,o,i){for(var a=0;a<t.length;a++)ot(t[a],e,r,n,o,i,!1)}function st(t,e,r,n){t.push(e),t.push(r),t.push(n)}function ut(t,e,r,n,o,i){var a=(i-e)/(n-e);return t.push(i),t.push(r+(o-r)*a),t.push(1),a}function ct(t,e,r,n,o,i){var a=(i-r)/(o-r);return t.push(e+(n-e)*a),t.push(i),t.push(1),a}function lt(t,e){for(var r=[],n=0;n<t.length;n++){var o,i=t[n],a=i.type;if("Point"===a||"MultiPoint"===a||"LineString"===a)o=pt(i.geometry,e);else if("MultiLineString"===a||"Polygon"===a){o=[];for(var s=0;s<i.geometry.length;s++)o.push(pt(i.geometry[s],e))}else if("MultiPolygon"===a)for(o=[],s=0;s<i.geometry.length;s++){for(var u=[],c=0;c<i.geometry[s].length;c++)u.push(pt(i.geometry[s][c],e));o.push(u)}r.push(H(i.id,a,o,i.tags))}return r}function pt(t,e){var r=[];r.size=t.size,void 0!==t.start&&(r.start=t.start,r.end=t.end);for(var n=0;n<t.length;n+=3)r.push(t[n]+e,t[n+1],t[n+2]);return r}function ft(t,e){if(t.transformed)return t;var r,n,o,i=1<<t.z,a=t.x,s=t.y;for(r=0;r<t.features.length;r++){var u=t.features[r],c=u.geometry,l=u.type;if(u.geometry=[],1===l)for(n=0;n<c.length;n+=2)u.geometry.push(ht(c[n],c[n+1],e,i,a,s));else for(n=0;n<c.length;n++){var p=[];for(o=0;o<c[n].length;o+=2)p.push(ht(c[n][o],c[n][o+1],e,i,a,s));u.geometry.push(p)}}return t.transformed=!0,t}function ht(t,e,r,n,o,i){return[Math.round(r*(t*n-o)),Math.round(r*(e*n-i))]}function dt(t,e,r,n,o){for(var i=e===o.maxZoom?0:o.tolerance/((1<<e)*o.extent),a={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:r,y:n,z:e,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},s=0;s<t.length;s++){a.numFeatures++,mt(a,t[s],i,o);var u=t[s].minX,c=t[s].minY,l=t[s].maxX,p=t[s].maxY;u<a.minX&&(a.minX=u),c<a.minY&&(a.minY=c),l>a.maxX&&(a.maxX=l),p>a.maxY&&(a.maxY=p)}return a}function mt(t,e,r,n){var o=e.geometry,i=e.type,a=[];if("Point"===i||"MultiPoint"===i)for(var s=0;s<o.length;s+=3)a.push(o[s]),a.push(o[s+1]),t.numPoints++,t.numSimplified++;else if("LineString"===i)yt(a,o,t,r,!1,!1);else if("MultiLineString"===i||"Polygon"===i)for(s=0;s<o.length;s++)yt(a,o[s],t,r,"Polygon"===i,0===s);else if("MultiPolygon"===i)for(var u=0;u<o.length;u++){var c=o[u];for(s=0;s<c.length;s++)yt(a,c[s],t,r,!0,0===s)}if(a.length){var l=e.tags||null;if("LineString"===i&&n.lineMetrics){for(var p in l={},e.tags)l[p]=e.tags[p];l.mapbox_clip_start=o.start/o.size,l.mapbox_clip_end=o.end/o.size}var f={geometry:a,type:"Polygon"===i||"MultiPolygon"===i?3:"LineString"===i||"MultiLineString"===i?2:1,tags:l};null!==e.id&&(f.id=e.id),t.features.push(f)}}function yt(t,e,r,n,o,i){var a=n*n;if(n>0&&e.size<(o?a:n))r.numPoints+=e.length/3;else{for(var s=[],u=0;u<e.length;u+=3)(0===n||e[u+2]>a)&&(r.numSimplified++,s.push(e[u]),s.push(e[u+1])),r.numPoints++;o&&function(t,e){for(var r=0,n=0,o=t.length,i=o-2;n<o;i=n,n+=2)r+=(t[n]-t[i])*(t[n+1]+t[i+1]);if(r>0===e)for(n=0,o=t.length;n<o/2;n+=2){var a=t[n],s=t[n+1];
vendor: 16,647 bytes, line 1
1t[n]=t[o-2-n],t[n+1]=t[o-1-n],t[o-2-n]=a,t[o-1-n]=s}}(s,i),t.push(s)}}function vt(t,e){var r=(e=this.options=function(t,e){for(var r in e)t[r]=e[r];return t}(Object.create(this.options),e)).debug;if(r&&console.time("preprocess data"),e.maxZoom<0||e.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(e.promoteId&&e.generateId)throw new Error("promoteId and generateId cannot be used together.");var n=function(t,e){var r=[];if("FeatureCollection"===t.type)for(var n=0;n<t.features.length;n++)Y(r,t.features[n],e,n);else Y(r,"Feature"===t.type?t:{geometry:t},e);return r}(t,e);this.tiles={},this.tileCoords=[],r&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",e.indexMaxZoom,e.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),(n=function(t,e){var r=e.buffer/e.extent,n=t,o=rt(t,1,-1-r,r,0,-1,2,e),i=rt(t,1,1-r,2+r,0,-1,2,e);return(o||i)&&(n=rt(t,1,-r,1+r,0,-1,2,e)||[],o&&(n=lt(o,1).concat(n)),i&&(n=n.concat(lt(i,-1)))),n}(n,e)).length&&this.splitTile(n,0,0,0),r&&(n.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}function gt(t,e,r){return 32*((1<<t)*r+e)+t}function bt(t,e){var r=t.tileID.canonical;if(!this._geoJSONIndex)return e(null,null);var n=this._geoJSONIndex.getTile(r.z,r.x,r.y);if(!n)return e(null,null);var o=new m(n.features),i=_(o);0===i.byteOffset&&i.byteLength===i.buffer.byteLength||(i=new Uint8Array(i)),e(null,{vectorTile:o,rawData:i.buffer})}z.prototype.load=function(t){var e=this.options,r=e.log,n=e.minZoom,o=e.maxZoom,i=e.nodeSize;r&&console.time("total time");var a="prepare "+t.length+" points";r&&console.time(a),this.points=t;for(var s=[],u=0;u<t.length;u++)t[u].geometry&&s.push(F(t[u],u));this.trees[o+1]=new L(s,G,W,i,Float32Array),r&&console.timeEnd(a);for(var c=o;c>=n;c--){var l=+Date.now();s=this._cluster(s,c),this.trees[c]=new L(s,G,W,i,Float32Array),r&&console.log("z%d: %d clusters in %dms",c,s.length,+Date.now()-l)}return r&&console.timeEnd("total time"),this},z.prototype.getClusters=function(t,e){var r=((t[0]+180)%360+360)%360-180,n=Math.max(-90,Math.min(90,t[1])),o=180===t[2]?180:((t[2]+180)%360+360)%360-180,i=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,o=180;else if(r>o){var a=this.getClusters([r,n,180,i],e),s=this.getClusters([-180,n,o,i],e);return a.concat(s)}for(var u=this.trees[this._limitZoom(e)],c=[],l=0,p=u.range(U(r),q(i),U(o),q(n));l<p.length;l+=1){var f=u.points[p[l]];c.push(f.numPoints?B(f):this.points[f.index])}return c},z.prototype.getChildren=function(t){var e=this._getOriginId(t),r=this._getOriginZoom(t),n="No cluster with the specified id.",o=this.trees[r];if(!o)throw new Error(n);var i=o.points[e];if(!i)throw new Error(n);for(var a=this.options.radius/(this.options.extent*Math.pow(2,r-1)),s=[],u=0,c=o.within(i.x,i.y,a);u<c.length;u+=1){var l=o.points[c[u]];l.parentId===t&&s.push(l.numPoints?B(l):this.points[l.index])}if(0===s.length)throw new Error(n);return s},z.prototype.getLeaves=function(t,e,r){var n=[];return this._appendLeaves(n,t,e=e||10,r=r||0,0),n},z.prototype.getTile=function(t,e,r){var n=this.trees[this._limitZoom(t)],o=Math.pow(2,t),i=this.options,a=i.radius/i.extent,s=(r-a)/o,u=(r+1+a)/o,c={features:[]};return this._addTileFeatures(n.range((e-a)/o,s,(e+1+a)/o,u),n.points,e,r,o,c),0===e&&this._addTileFeatures(n.range(1-a/o,s,1,u),n.points,o,r,o,c),e===o-1&&this._addTileFeatures(n.range(0,s,a/o,u),n.points,-1,r,o,c),c.features.length?c:null},z.prototype.getClusterExpansionZoom=function(t){for(var e=this._getOriginZoom(t)-1;e<=this.options.maxZoom;){var r=this.getChildren(t);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e},z.prototype._appendLeaves=function(t,e,r,n,o){for(var i=0,a=this.getChildren(e);i<a.length;i+=1){var s=a[i],u=s.properties;if(u&&u.cluster?o+u.point_count<=n?o+=u.point_count:o=this._appendLeaves(t,u.cluster_id,r,n,o):o<n?o++:t.push(s),t.length===r)break}return o},z.prototype._addTileFeatures=function(t,e,r,n,o,i){for(var a=0,s=t;a<s.length;a+=1){var u=e[s[a]],c=u.numPoints,l={type:1,geometry:[[Math.round(this.options.extent*(u.x*o-r)),Math.round(this.options.extent*(u.y*o-n))]],tags:c?V(u):this.points[u.index].properties},p=void 0;c?p=u.id:this.options.generateId?p=u.index:this.points[u.index].id&&(p=this.points[u.index].id),void 0!==p&&(l.id=p),i.features.push(l)}},z.prototype._limitZoom=function(t){return Math.max(this.options.minZoom,Math.min(+t,this.options.maxZoom+1))},z.prototype._cluster=function(t,e){for(var r=[],n=this.options,o=n.reduce,i=n.minPoints,a=n.radius/(n.extent*Math.pow(2,e)),s=0;s<t.length;s++){var u=t[s];if(!(u.zoom<=e)){u.zoom=e;for(var c=this.trees[e+1],l=c.within(u.x,u.y,a),p=u.numPoints||1,f=p,h=0,d=l;h<d.length;h+=1){var m=c.points[d[h]];m.zoom>e&&(f+=m.numPoints||1)}if(f>=i){for(var y=u.x*p,v=u.y*p,g=o&&p>1?this._map(u,!0):null,b=(s<<5)+(e+1)+this.points.length,_=0,x=l;_<x.length;_+=1){var w=c.points[x[_]];if(!(w.zoom<=e)){w.zoom=e;var O=w.numPoints||1;y+=w.x*O,v+=w.y*O,w.parentId=b,o&&(g||(g=this._map(u,!0)),o(g,this._map(w)))}}u.parentId=b,r.push(N(y/f,v/f,b,f,g))}else if(r.push(u),f>1)for(var E=0,S=l;E<S.length;E+=1){var P=c.points[S[E]];P.zoom<=e||(P.zoom=e,r.push(P))}}}return r},z.prototype._getOriginId=function(t){return t-this.points.length>>5},z.prototype._getOriginZoom=function(t){return(t-this.points.length)%32},z.prototype._map=function(t,e){if(t.numPoints)return e?$({},t.properties):t.properties;var r=this.points[t.index].properties,n=this.options.map(r);return e&&n===r?$({},n):n},vt.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},vt.prototype.splitTile=function(t,e,r,n,o,i,a){for(var s=[t,e,r,n],u=this.options,c=u.debug;s.length;){n=s.pop(),r=s.pop(),e=s.pop(),t=s.pop();var l=1<<e,p=gt(e,r,n),f=this.tiles[p];if(!f&&(c>1&&console.time("creation"),f=this.tiles[p]=dt(t,e,r,n,u),this.tileCoords.push({z:e,x:r,y:n}),c)){c>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",e,r,n,f.numFeatures,f.numPoints,f.numSimplified),console.timeEnd("creation"));var h="z"+e;this.stats[h]=(this.stats[h]||0)+1,this.total++}if(f.source=t,o){if(e===u.maxZoom||e===o)continue;var d=1<<o-e;if(r!==Math.floor(i/d)||n!==Math.floor(a/d))continue}else if(e===u.indexMaxZoom||f.numPoints<=u.indexMaxPoints)continue;if(f.source=null,0!==t.length){c>1&&console.time("clipping");var m,y,v,g,b,_,x=.5*u.buffer/u.extent,w=.5-x,O=.5+x,E=1+x;m=y=v=g=null,b=rt(t,l,r-x,r+O,0,f.minX,f.maxX,u),_=rt(t,l,r+w,r+E,0,f.minX,f.maxX,u),t=null,b&&(m=rt(b,l,n-x,n+O,1,f.minY,f.maxY,u),y=rt(b,l,n+w,n+E,1,f.minY,f.maxY,u),b=null),_&&(v=rt(_,l,n-x,n+O,1,f.minY,f.maxY,u),g=rt(_,l,n+w,n+E,1,f.minY,f.maxY,u),_=null),c>1&&console.timeEnd("clipping"),s.push(m||[],e+1,2*r,2*n),s.push(y||[],e+1,2*r,2*n+1),s.push(v||[],e+1,2*r+1,2*n),s.push(g||[],e+1,2*r+1,2*n+1)}}},vt.prototype.getTile=function(t,e,r){var n=this.options,o=n.extent,i=n.debug;if(t<0||t>24)return null;var a=1<<t,s=gt(t,e=(e%a+a)%a,r);if(this.tiles[s])return ft(this.tiles[s],o);i>1&&console.log("drilling down to z%d-%d-%d",t,e,r);for(var u,c=t,l=e,p=r;!u&&c>0;)c--,l=Math.floor(l/2),p=Math.floor(p/2),u=this.tiles[gt(c,l,p)];return u&&u.source?(i>1&&console.log("found parent tile z%d-%d-%d",c,l,p),i>1&&console.time("drilling down"),this.splitTile(u.source,c,l,p,t,e,r),i>1&&console.timeEnd("drilling down"),this.tiles[s]?ft(this.tiles[s],o):null):null};var _t=function(e){function r(t,r,n,o){e.call(this,t,r,n,bt),o&&(this.loadGeoJSON=o)}return e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r,r.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())},r.prototype._loadData=function(){var e=this;if(this._pendingCallback&&this._pendingLoadDataParams){var r=this._pendingCallback,n=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var o=!!(n&&n.request&&n.request.collectResourceTiming)&&new t.RequestPerformance(n.request);this.loadGeoJSON(n,(function(i,a){if(i||!a)return r(i);if("object"!=typeof a)return r(new Error("Input data given to '"+n.source+"' is not a valid GeoJSON object."));!function t(e,r){var n,o=e&&e.type;if("FeatureCollection"===o)for(n=0;n<e.features.length;n++)t(e.features[n],r);else if("GeometryCollection"===o)for(n=0;n<e.geometries.length;n++)t(e.geometries[n],r);else if("Feature"===o)t(e.geometry,r);else if("Polygon"===o)p(e.coordinates,r);else if("MultiPolygon"===o)for(n=0;n<e.coordinates.length;n++)p(e.coordinates[n],r);return e}(a,!0);try{if(n.filter){var s=t.createExpression(n.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===s.result)throw new Error(s.value.map((function(t){return t.key+": "+t.message})).join(", "));var u=a.features.filter((function(t){return s.value.evaluate({zoom:0},t)}));a={type:"FeatureCollection",features:u}}e._geoJSONIndex=n.cluster?new z(function(e){var r=e.superclusterOptions,n=e.clusterProperties;if(!n||!r)return r;for(var o={},i={},a={accumulated:null,zoom:0},s={properties:null},u=Object.keys(n),c=0,l=u;c<l.length;c+=1){var p=l[c],f=n[p],h=f[0],d=t.createExpression(f[1]),m=t.createExpression("string"==typeof h?[h,["accumulated"],["get",p]]:h);o[p]=d.value,i[p]=m.value}return r.map=function(t){s.properties=t;for(var e={},r=0,n=u;r<n.length;r+=1){var i=n[r];e[i]=o[i].evaluate(a,s)}return e},r.reduce=function(t,e){s.properties=e;for(var r=0,n=u;r<n.length;r+=1){var o=n[r];a.accumulated=t[o],t[o]=i[o].evaluate(a,s)}},r}(n)).load(a.features):function(t,e){return new vt(t,e)}(a,n.geojsonVtOptions)}catch(i){return r(i)}e.loaded={};var c={};if(o){var l=o.finish();l&&(c.resourceTiming={},c.resourceTiming[n.source]=JSON.parse(JSON.stringify(l)))}r(null,c)}))}},r.prototype.coalesce=function(){"Coalescing"===this._state?this._state="Idle":"NeedsLoadData"===this._state&&(this._state="Coalescing",this._loadData())},r.prototype.reloadTile=function(t,r){var n=this.loaded;return n&&n[t.uid]?e.prototype.reloadTile.call(this,t,r):this.loadTile(t,r)},r.prototype.loadGeoJSON=function(e,r){if(e.request)t.getJSON(e.request,r);else{if("string"!=typeof e.data)return r(new Error("Input data given to '"+e.source+"' is not a valid GeoJSON object."));try{return r(null,JSON.parse(e.data))}catch(t){return r(new Error("Input data given to '"+e.source+"' is not a valid GeoJSON object."))}}},r.prototype.removeSource=function(t,e){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),e()},r.prototype.getClusterExpansionZoom=function(t,e){try{e(null,this._geoJSONIndex.getClusterExpansionZoom(t.clusterId))}catch(t){e(t)}},r.prototype.getClusterChildren=function(t,e){try{e(null,this._geoJSONIndex.getChildren(t.clusterId))}catch(t){e(t)}},r.prototype.getClusterLeaves=function(t,e){try{e(null,this._geoJSONIndex.getLeaves(t.clusterId,t.limit,t.offset))}catch(t){e(t)}},r}(u),xt=function(e){var r=this;this.self=e,this.actor=new t.Actor(e,this),this.layerIndexes={},this.availableImages={},this.workerSourceTypes={vector:u,geojson:_t},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=function(t,e){if(r.workerSourceTypes[t])throw new Error('Worker source with name "'+t+'" already registered.');r.workerSourceTypes[t]=e},this.self.registerRTLTextPlugin=function(e){if(t.plugin.isParsed())throw new Error("RTL text plugin already registered.");t.plugin.applyArabicShaping=e.applyArabicShaping,t.plugin.processBidirectionalText=e.processBidirectionalText,t.plugin.processStyledBidirectionalText=e.processStyledBidirectionalText}};return xt.prototype.setReferrer=function(t,e){this.referrer=e},xt.prototype.setImages=function(t,e,r){for(var n in this.availableImages[t]=e,this.workerSources[t]){var o=this.workerSources[t][n];for(var i in o)o[i].availableImages=e}r()},xt.prototype.setLayers=function(t,e,r){this.getLayerIndex(t).replace(e),r()},xt.prototype.updateLayers=function(t,e,r){this.getLayerIndex(t).update(e.layers,e.removedIds),r()},xt.prototype.loadTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).loadTile(e,r)},xt.prototype.loadDEMTile=function(t,e,r){this.getDEMWorkerSource(t,e.source).loadTile(e,r)},xt.prototype.reloadTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).reloadTile(e,r)},xt.prototype.abortTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).abortTile(e,r)},xt.prototype.removeTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).removeTile(e,r)},xt.prototype.removeDEMTile=function(t,e){this.getDEMWorkerSource(t,e.source).removeTile(e)},xt.prototype.removeSource=function(t,e,r){if(this.workerSources[t]&&this.workerSources[t][e.type]&&this.workerSources[t][e.type][e.source]){var n=this.workerSources[t][e.type][e.source];delete this.workerSources[t][e.type][e.source],void 0!==n.removeSource?n.removeSource(e,r):r()}},xt.prototype.loadWorkerSource=function(t,e,r){try{this.self.importScripts(e.url),r()}catch(t){r(t.toString())}},xt.prototype.syncRTLPluginState=function(e,r,n){try{t.plugin.setState(r);var o=t.plugin.getPluginURL();if(t.plugin.isLoaded()&&!t.plugin.isParsed()&&null!=o){this.self.importScripts(o);var i=t.plugin.isParsed();n(i?void 0:new Error("RTL Text Plugin failed to import scripts from "+o),i)}}catch(t){n(t.toString())}},xt.prototype.getAvailableImages=function(t){var e=this.availableImages[t];return e||(e=[]),e},xt.prototype.getLayerIndex=function(t){var e=this.layerIndexes[t];return e||(e=this.layerIndexes[t]=new n),e},xt.prototype.getWorkerSource=function(t,e,r){var n=this;return this.workerSources[t]||(this.workerSources[t]={}),this.workerSources[t][e]||(this.workerSources[t][e]={}),this.workerSources[t][e][r]||(this.workerSources[t][e][r]=new this.workerSourceTypes[e]({send:function(e,r,o){n.actor.send(e,r,o,t)}},this.getLayerIndex(t),this.getAvailableImages(t))),this.workerSources[t][e][r]},xt.prototype.getDEMWorkerSource=function(t,e){return this.demWorkerSources[t]||(this.demWorkerSources[t]={}),this.demWorkerSources[t][e]||(this.demWorkerSources[t][e]=new l),this.demWorkerSources[t][e]},xt.prototype.enforceCacheSizeLimit=function(e,r){t.enforceCacheSizeLimit(r)},"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope&&(self.worker=new xt(self)),xt})),n(0,(function(t){var e=t.createCommonjsModule((function(t){function e(t){return!r(t)}function r(t){return"undefined"==typeof window||"undefined"==typeof document?"not a browser":Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray?Function.prototype&&Function.prototype.bind?Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions?"JSON"in window&&"parse"in JSON&&"stringify"in JSON?function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var t,e,r=new Blob([""],{type:"text/javascript"}),n=URL.createObjectURL(r);try{e=new Worker(n),t=!0}catch(e){t=!1}return e&&e.terminate(),URL.revokeObjectURL(n),t}()?"Uint8ClampedArray"in window?ArrayBuffer.isView?function(){var t=document.createElement("canvas");t.width=t.height=1;var e=t.getContext("2d");if(!e)return!1;var r=e.getImageData(0,0,1,1);return r&&r.width===t.width}()?(void 0===n[r=t&&t.failIfMajorPerformanceCaveat]&&(n[r]=function(t){var r=function(t){var r=document.createElement("canvas"),n=Object.create(e.webGLContextAttributes);return n.failIfMajorPerformanceCaveat=t,r.probablySupportsContext?r.probablySupportsContext("webgl",n)||r.probablySupportsContext("experimental-webgl",n):r.supportsContext?r.supportsContext("webgl",n)||r.supportsContext("experimental-webgl",n):r.getContext("webgl",n)||r.getContext("experimental-webgl",n)}(t);if(!r)return!1;var n=r.createShader(r.VERTEX_SHADER);return!(!n||r.isContextLost())&&(r.shaderSource(n,"void main() {}"),r.compileShader(n),!0===r.getShaderParameter(n,r.COMPILE_STATUS))}(r)),n[r]?void 0:"insufficient WebGL support"):"insufficient Canvas/getImageData support":"insufficient ArrayBuffer support":"insufficient Uint8ClampedArray supp
1ort":"insufficient worker support":"insufficient JSON support":"insufficient Object support":"insufficient Function support":"insufficent Array support";var r}t.exports?t.exports=e:window&&(window.mapboxgl=window.mapboxgl||{},window.mapboxgl.supported=e,window.mapboxgl.notSupportedReason=r);var n={};e.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0}})),r={create:function(e,r,n){var o=t.window.document.createElement(e);return void 0!==r&&(o.className=r),n&&n.appendChild(o),o},createNS:function(e,r){return t.window.document.createElementNS(e,r)}},n=t.window.document&&t.window.document.documentElement.style;function o(t){if(!n)return t[0];for(var e=0;e<t.length;e++)if(t[e]in n)return t[e];return t[0]}var i,a=o(["userSelect","MozUserSelect","WebkitUserSelect","msUserSelect"]);r.disableDrag=function(){n&&a&&(i=n[a],n[a]="none")},r.enableDrag=function(){n&&a&&(n[a]=i)};var s=o(["transform","WebkitTransform"]);r.setTransform=function(t,e){t.style[s]=e};var u=!1;try{var c=Object.defineProperty({},"passive",{get:function(){u=!0}});t.window.addEventListener("test",c,c),t.window.removeEventListener("test",c,c)}catch(t){u=!1}r.addEventListener=function(t,e,r,n){void 0===n&&(n={}),t.addEventListener(e,r,"passive"in n&&u?n:n.capture)},r.removeEventListener=function(t,e,r,n){void 0===n&&(n={}),t.removeEventListener(e,r,"passive"in n&&u?n:n.capture)};var l=function(e){e.preventDefault(),e.stopPropagation(),t.window.removeEventListener("click",l,!0)};function p(t){var e=t.userImage;return!!(e&&e.render&&e.render())&&(t.data.replace(new Uint8Array(e.data.buffer)),!0)}r.suppressClick=function(){t.window.addEventListener("click",l,!0),t.window.setTimeout((function(){t.window.removeEventListener("click",l,!0)}),0)},r.mousePos=function(e,r){var n=e.getBoundingClientRect();return new t.Point(r.clientX-n.left-e.clientLeft,r.clientY-n.top-e.clientTop)},r.touchPos=function(e,r){for(var n=e.getBoundingClientRect(),o=[],i=0;i<r.length;i++)o.push(new t.Point(r[i].clientX-n.left-e.clientLeft,r[i].clientY-n.top-e.clientTop));return o},r.mouseButton=function(e){return void 0!==t.window.InstallTrigger&&2===e.button&&e.ctrlKey&&t.window.navigator.platform.toUpperCase().indexOf("MAC")>=0?0:e.button},r.remove=function(t){t.parentNode&&t.parentNode.removeChild(t)};var f=function(e){function r(){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&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r,r.prototype.isLoaded=function(){return this.loaded},r.prototype.setLoaded=function(t){if(this.loaded!==t&&(this.loaded=t,t)){for(var e=0,r=this.requestors;e<r.length;e+=1){var n=r[e];this._notify(n.ids,n.callback)}this.requestors=[]}},r.prototype.getImage=function(t){return this.images[t]},r.prototype.addImage=function(t,e){this._validate(t,e)&&(this.images[t]=e)},r.prototype._validate=function(e,r){var n=!0;return this._validateStretch(r.stretchX,r.data&&r.data.width)||(this.fire(new t.ErrorEvent(new Error('Image "'+e+'" has invalid "stretchX" value'))),n=!1),this._validateStretch(r.stretchY,r.data&&r.data.height)||(this.fire(new t.ErrorEvent(new Error('Image "'+e+'" has invalid "stretchY" value'))),n=!1),this._validateContent(r.content,r)||(this.fire(new t.ErrorEvent(new Error('Image "'+e+'" has invalid "content" value'))),n=!1),n},r.prototype._validateStretch=function(t,e){if(!t)return!0;for(var r=0,n=0,o=t;n<o.length;n+=1){var i=o[n];if(i[0]<r||i[1]<i[0]||e<i[1])return!1;r=i[1]}return!0},r.prototype._validateContent=function(t,e){return!(t&&(4!==t.length||t[0]<0||e.data.width<t[0]||t[1]<0||e.data.height<t[1]||t[2]<0||e.data.width<t[2]||t[3]<0||e.data.height<t[3]||t[2]<t[0]||t[3]<t[1]))},r.prototype.updateImage=function(t,e){e.version=this.images[t].version+1,this.images[t]=e,this.updatedImages[t]=!0},r.prototype.removeImage=function(t){var e=this.images[t];delete this.images[t],delete this.patterns[t],e.userImage&&e.userImage.onRemove&&e.userImage.onRemove()},r.prototype.listImages=function(){return Object.keys(this.images)},r.prototype.getImages=function(t,e){var r=!0;if(!this.isLoaded())for(var n=0,o=t;n<o.length;n+=1)this.images[o[n]]||(r=!1);this.isLoaded()||r?this._notify(t,e):this.requestors.push({ids:t,callback:e})},r.prototype._notify=function(e,r){for(var n={},o=0,i=e;o<i.length;o+=1){var a=i[o];this.images[a]||this.fire(new t.Event("styleimagemissing",{id:a}));var s=this.images[a];s?n[a]={data:s.data.clone(),pixelRatio:s.pixelRatio,sdf:s.sdf,ver
vendor: 105,522 bytes, line 1
1sion:s.version,stretchX:s.stretchX,stretchY:s.stretchY,content:s.content,hasRenderCallback:Boolean(s.userImage&&s.userImage.render)}:t.warnOnce('Image "'+a+'" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.')}r(null,n)},r.prototype.getPixelSize=function(){var t=this.atlasImage;return{width:t.width,height:t.height}},r.prototype.getPattern=function(e){var r=this.patterns[e],n=this.getImage(e);if(!n)return null;if(r&&r.position.version===n.version)return r.position;if(r)r.position.version=n.version;else{var o={w:n.data.width+2,h:n.data.height+2,x:0,y:0},i=new t.ImagePosition(o,n);this.patterns[e]={bin:o,position:i}}return this._updatePatternAtlas(),this.patterns[e].position},r.prototype.bind=function(e){var r=e.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new t.Texture(e,this.atlasImage,r.RGBA),this.atlasTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)},r.prototype._updatePatternAtlas=function(){var e=[];for(var r in this.patterns)e.push(this.patterns[r].bin);var n=t.potpack(e),o=n.w,i=n.h,a=this.atlasImage;for(var s in a.resize({width:o||1,height:i||1}),this.patterns){var u=this.patterns[s].bin,c=u.x+1,l=u.y+1,p=this.images[s].data,f=p.width,h=p.height;t.RGBAImage.copy(p,a,{x:0,y:0},{x:c,y:l},{width:f,height:h}),t.RGBAImage.copy(p,a,{x:0,y:h-1},{x:c,y:l-1},{width:f,height:1}),t.RGBAImage.copy(p,a,{x:0,y:0},{x:c,y:l+h},{width:f,height:1}),t.RGBAImage.copy(p,a,{x:f-1,y:0},{x:c-1,y:l},{width:1,height:h}),t.RGBAImage.copy(p,a,{x:0,y:0},{x:c+f,y:l},{width:1,height:h})}this.dirty=!0},r.prototype.beginFrame=function(){this.callbackDispatchedThisFrame={}},r.prototype.dispatchRenderCallbacks=function(t){for(var e=0,r=t;e<r.length;e+=1){var n=r[e];if(!this.callbackDispatchedThisFrame[n]){this.callbackDispatchedThisFrame[n]=!0;var o=this.images[n];p(o)&&this.updateImage(n,o)}}},r}(t.Evented),h=y,d=y,m=1e20;function y(t,e,r,n,o,i){this.fontSize=t||24,this.buffer=void 0===e?3:e,this.cutoff=n||.25,this.fontFamily=o||"sans-serif",this.fontWeight=i||"normal",this.radius=r||8;var a=this.size=this.fontSize+2*this.buffer;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=a,this.ctx=this.canvas.getContext("2d"),this.ctx.font=this.fontWeight+" "+this.fontSize+"px "+this.fontFamily,this.ctx.textBaseline="middle",this.ctx.fillStyle="black",this.gridOuter=new Float64Array(a*a),this.gridInner=new Float64Array(a*a),this.f=new Float64Array(a),this.d=new Float64Array(a),this.z=new Float64Array(a+1),this.v=new Int16Array(a),this.middle=Math.round(a/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function v(t,e,r,n,o,i,a){for(var s=0;s<e;s++){for(var u=0;u<r;u++)n[u]=t[u*e+s];for(g(n,o,i,a,r),u=0;u<r;u++)t[u*e+s]=o[u]}for(u=0;u<r;u++){for(s=0;s<e;s++)n[s]=t[u*e+s];for(g(n,o,i,a,e),s=0;s<e;s++)t[u*e+s]=Math.sqrt(o[s])}}function g(t,e,r,n,o){r[0]=0,n[0]=-m,n[1]=+m;for(var i=1,a=0;i<o;i++){for(var s=(t[i]+i*i-(t[r[a]]+r[a]*r[a]))/(2*i-2*r[a]);s<=n[a];)a--,s=(t[i]+i*i-(t[r[a]]+r[a]*r[a]))/(2*i-2*r[a]);r[++a]=i,n[a]=s,n[a+1]=+m}for(i=0,a=0;i<o;i++){for(;n[a+1]<i;)a++;e[i]=(i-r[a])*(i-r[a])+t[r[a]]}}y.prototype.draw=function(t){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(t,this.buffer,this.middle);for(var e=this.ctx.getImageData(0,0,this.size,this.size),r=new Uint8ClampedArray(this.size*this.size),n=0;n<this.size*this.size;n++){var o=e.data[4*n+3]/255;this.gridOuter[n]=1===o?0:0===o?m:Math.pow(Math.max(0,.5-o),2),this.gridInner[n]=1===o?m:0===o?0:Math.pow(Math.max(0,o-.5),2)}for(v(this.gridOuter,this.size,this.size,this.f,this.d,this.v,this.z),v(this.gridInner,this.size,this.size,this.f,this.d,this.v,this.z),n=0;n<this.size*this.size;n++)r[n]=Math.max(0,Math.min(255,Math.round(255-255*((this.gridOuter[n]-this.gridInner[n])/this.radius+this.cutoff))));return r},h.default=d;var b=function(t,e){this.requestManager=t,this.localIdeographFontFamily=e,this.entries={}};b.prototype.setURL=function(t){this.url=t},b.prototype.getGlyphs=function(e,r){var n=this,o=[];for(var i in e)for(var a=0,s=e[i];a<s.length;a+=1)o.push({stack:i,id:s[a]});t.asyncAll(o,(function(t,e){var r=t.stack,o=t.id,i=n.entries[r];i||(i=n.entries[r]={glyphs:{},requests:{},ranges:{}});var a=i.glyphs[o];if(void 0===a){if(a=n._tinySDF(i,r,o))return i.glyphs[o]=a,void e(null,{stack:r,id:o,glyph:a});var s=Math.floor(o/256);if(256*s>65535)e(new Error("glyphs > 65535 not supported"));else if(i.ranges[s])e(null,{stack:r,id:o,glyph:a});else{var u=i.requests[s];u||(u=i.requests[s]=[],b.loadGlyphRange(r,s,n.url,n.requestManager,(function(t,e){if(e){for(var r in e)n._doesCharSupportLocalGlyph(+r)||(i.glyphs[+r]=e[+r]);i.ranges[s]=!0}for(var o=0,a=u;o<a.length;o+=1)(0,a[o])(t,e);delete i.requests[s]}))),u.push((function(t,n){t?e(t):n&&e(null,{stack:r,id:o,glyph:n[o]||null})}))}}else e(null,{stack:r,id:o,glyph:a})}),(function(t,e){if(t)r(t);else if(e){for(var n={},o=0,i=e;o<i.length;o+=1){var a=i[o],s=a.stack,u=a.id,c=a.glyph;(n[s]||(n[s]={}))[u]=c&&{id:c.id,bitmap:c.bitmap.clone(),metrics:c.metrics}}r(null,n)}}))},b.prototype._doesCharSupportLocalGlyph=function(e){return!!this.localIdeographFontFamily&&(t.isChar["CJK Unified Ideographs"](e)||t.isChar["Hangul Syllables"](e)||t.isChar.Hiragana(e)||t.isChar.Katakana(e))},b.prototype._tinySDF=function(e,r,n){var o=this.localIdeographFontFamily;if(o&&this._doesCharSupportLocalGlyph(n)){var i=e.tinySDF;if(!i){var a="400";/bold/i.test(r)?a="900":/medium/i.test(r)?a="500":/light/i.test(r)&&(a="200"),i=e.tinySDF=new b.TinySDF(24,3,8,.25,o,a)}return{id:n,bitmap:new t.AlphaImage({width:30,height:30},i.draw(String.fromCharCode(n))),metrics:{width:24,height:24,left:0,top:-8,advance:24}}}},b.loadGlyphRange=function(e,r,n,o,i){var a=256*r,s=a+255,u=o.transformRequest(o.normalizeGlyphsURL(n).replace("{fontstack}",e).replace("{range}",a+"-"+s),t.ResourceType.Glyphs);t.getArrayBuffer(u,(function(e,r){if(e)i(e);else if(r){for(var n={},o=0,a=t.parseGlyphPBF(r);o<a.length;o+=1){var s=a[o];n[s.id]=s}i(null,n)}}))},b.TinySDF=h;var _=function(){this.specification=t.styleSpec.light.position};_.prototype.possiblyEvaluate=function(e,r){return t.sphericalToCartesian(e.expression.evaluate(r))},_.prototype.interpolate=function(e,r,n){return{x:t.number(e.x,r.x,n),y:t.number(e.y,r.y,n),z:t.number(e.z,r.z,n)}};var x=new t.Properties({anchor:new t.DataConstantProperty(t.styleSpec.light.anchor),position:new _,color:new t.DataConstantProperty(t.styleSpec.light.color),intensity:new t.DataConstantProperty(t.styleSpec.light.intensity)}),w=function(e){function r(r){e.call(this),this._transitionable=new t.Transitionable(x),this.setLight(r),this._transitioning=this._transitionable.untransitioned()}return e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r,r.prototype.getLight=function(){return this._transitionable.serialize()},r.prototype.setLight=function(e,r){if(void 0===r&&(r={}),!this._validate(t.validateLight,e,r))for(var n in e){var o=e[n];t.endsWith(n,"-transition")?this._transitionable.setTransition(n.slice(0,-11),o):this._transitionable.setValue(n,o)}},r.prototype.updateTransitions=function(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)},r.prototype.hasTransition=function(){return this._transitioning.hasTransition()},r.prototype.recalculate=function(t){this.properties=this._transitioning.possiblyEvaluate(t)},r.prototype._validate=function(e,r,n){return(!n||!1!==n.validate)&&t.emitValidationErrors(this,e.call(t.validateStyle,t.extend({value:r,style:{glyphs:!0,sprite:!0},styleSpec:t.styleSpec})))},r}(t.Evented),O=function(t,e){this.width=t,this.height=e,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}};O.prototype.getDash=function(t,e){var r=t.join(",")+String(e);return this.dashEntry[r]||(this.dashEntry[r]=this.addDash(t,e)),this.dashEntry[r]},O.prototype.getDashRanges=function(t,e,r){var n=[],o=t.length%2==1?-t[t.length-1]*r:0,i=t[0]*r,a=!0;n.push({left:o,right:i,isDash:a,zeroLength:0===t[0]});for(var s=t[0],u=1;u<t.length;u++){var c=t[u];n.push({left:o=s*r,right:i=(s+=c)*r,isDash:a=!a,zeroLength:0===c})}return n},O.prototype.addRoundDash=function(t,e,r){for(var n=e/2,o=-r;o<=r;o++)for(var i=this.width*(this.nextRow+r+o),a=0,s=t[a],u=0;u<this.width;u++){u/s.right>1&&(s=t[++a]);var c=Math.abs(u-s.left),l=Math.abs(u-s.right),p=Math.min(c,l),f=void 0,h=o/r*(n+1);if(s.isDash){var d=n-Math.abs(h);f=Math.sqrt(p*p+d*d)}else f=n-Math.sqrt(p*p+h*h);this.data[i+u]=Math.max(0,Math.min(255,f+128))}},O.prototype.addRegularDash=function(t){for(var e=t.length-1;e>=0;--e){var r=t[e],n=t[e+1];r.zeroLength?t.splice(e,1):n&&n.isDash===r.isDash&&(n.left=r.left,t.splice(e,1))}var o=t[0],i=t[t.length-1];o.isDash===i.isDash&&(o.left=i.left-this.width,i.right=o.right+this.width);for(var a=this.width*this.nextRow,s=0,u=t[s],c=0;c<this.width;c++){c/u.right>1&&(u=t[++s]);var l=Math.abs(c-u.left),p=Math.abs(c-u.right),f=Math.min(l,p);this.data[a+c]=Math.max(0,Math.min(255,(u.isDash?f:-f)+128))}},O.prototype.addDash=function(e,r){var n=r?7:0,o=2*n+1;if(this.nextRow+o>this.height)return t.warnOnce("LineAtlas out of space"),null;for(var i=0,a=0;a<e.length;a++)i+=e[a];if(0!==i){var s=this.width/i,u=this.getDashRanges(e,this.width,s);r?this.addRoundDash(u,s,n):this.addRegularDash(u)}var c={y:(this.nextRow+n+.5)/this.height,height:2*n/this.height,width:i};return this.nextRow+=o,this.dirty=!0,c},O.prototype.bind=function(t){var e=t.gl;this.texture?(e.bindTexture(e.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,e.texSubImage2D(e.TEXTURE_2D,0,0,0,this.width,this.height,e.ALPHA,e.UNSIGNED_BYTE,this.data))):(this.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,this.texture),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texImage2D(e.TEXTURE_2D,0,e.ALPHA,this.width,this.height,0,e.ALPHA,e.UNSIGNED_BYTE,this.data))};var E=function e(r,n){this.workerPool=r,this.actors=[],this.currentActor=0,this.id=t.uniqueId();for(var o=this.workerPool.acquire(this.id),i=0;i<o.length;i++){var a=new e.Actor(o[i],n,this.id);a.name="Worker "+i,this.actors.push(a)}};function S(e,r,n){var o=function(o,i){if(o)return n(o);if(i){var a=t.pick(t.extend(i,e),["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding"]);i.vector_layers&&(a.vectorLayers=i.vector_layers,a.vectorLayerIds=a.vectorLayers.map((function(t){return t.id}))),a.tiles=r.canonicalizeTileset(a,e.url),n(null,a)}};return e.url?t.getJSON(r.transformRequest(r.normalizeSourceURL(e.url),t.ResourceType.Source),o):t.browser.frame((function(){return o(null,e)}))}E.prototype.broadcast=function(e,r,n){t.asyncAll(this.actors,(function(t,n){t.send(e,r,n)}),n=n||function(){})},E.prototype.getActor=function(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]},E.prototype.remove=function(){this.actors.forEach((function(t){t.remove()})),this.actors=[],this.workerPool.release(this.id)},E.Actor=t.Actor;var P=function(e,r,n){this.bounds=t.LngLatBounds.convert(this.validateBounds(e)),this.minzoom=r||0,this.maxzoom=n||24};P.prototype.validateBounds=function(t){return Array.isArray(t)&&4===t.length?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]},P.prototype.contains=function(e){var r=Math.pow(2,e.z),n=Math.floor(t.mercatorXfromLng(this.bounds.getWest())*r),o=Math.floor(t.mercatorYfromLat(this.bounds.getNorth())*r),i=Math.ceil(t.mercatorXfromLng(this.bounds.getEast())*r),a=Math.ceil(t.mercatorYfromLat(this.bounds.getSouth())*r);return e.x>=n&&e.x<i&&e.y>=o&&e.y<a};var j=function(e){function r(r,n,o,i){if(e.call(this),this.id=r,this.dispatcher=o,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,t.extend(this,t.pick(n,["url","scheme","tileSize","promoteId"])),this._options=t.extend({type:"vector"},n),this._collectResourceTiming=n.collectResourceTiming,512!==this.tileSize)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(i)}return e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=S(this._options,this.map._requestManager,(function(r,n){e._tileJSONRequest=null,e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&&(t.extend(e,n),n.bounds&&(e.tileBounds=new P(n.bounds,e.minzoom,e.maxzoom)),t.postTurnstileEvent(n.tiles,e.map._requestManager._customAccessToken),t.postMapLoadEvent(n.tiles,e.map._getMapId(),e.map._requestManager._skuToken,e.map._requestManager._customAccessToken),e.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})),e.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"})))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setSourceProperty=function(t){this._tileJSONRequest&&this._tileJSONRequest.cancel(),t(),this.map.style.sourceCaches[this.id].clearTiles(),this.load()},r.prototype.setTiles=function(t){var e=this;return this.setSourceProperty((function(){e._options.tiles=t})),this},r.prototype.setUrl=function(t){var e=this;return this.setSourceProperty((function(){e.url=t,e._options.url=t})),this},r.prototype.onRemove=function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},r.prototype.serialize=function(){return t.extend({},this._options)},r.prototype.loadTile=function(e,r){var n=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme)),o={request:this.map._requestManager.transformRequest(n,t.ResourceType.Tile),uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};function i(n,o){return delete e.request,e.aborted?r(null):n&&404!==n.status?r(n):(o&&o.resourceTiming&&(e.resourceTiming=o.resourceTiming),this.map._refreshExpiredTiles&&o&&e.setExpiryData(o),e.loadVectorData(o,this.map.painter),t.cacheEntryPossiblyAdded(this.dispatcher),r(null),void(e.reloadCallback&&(this.loadTile(e,e.reloadCallback),e.reloadCallback=null)))}o.request.collectResourceTiming=this._collectResourceTiming,e.actor&&"expired"!==e.state?"loading"===e.state?e.reloadCallback=r:e.request=e.actor.send("reloadTile",o,i.bind(this)):(e.actor=this.dispatcher.getActor(),e.request=e.actor.send("loadTile",o,i.bind(this)))},r.prototype.abortTile=function(t){t.request&&(t.request.cancel(),delete t.request),t.actor&&t.actor.send("abortTile",{uid:t.uid,type:this.type,source:this.id},void 0)},r.prototype.unloadTile=function(t){t.unloadVectorData(),t.actor&&t.actor.send("removeTile",{uid:t.uid,type:this.type,source:this.id},void 0)},r.prototype.hasTransition=function(){return!1},r}(t.Evented),A=function(e){function r(r,n,o,i){e.call(this),this.id=r,this.dispatcher=o,this.setEventedParent(i),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=t.extend({type:"raster"},n),t.extend(this,t.pick(n,["url","scheme","tileSize"]))}return e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=S(this._options,this.map._requestManager,(function(r,n){e._tileJSONRequest=null,e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&&(t.extend(e,n),n.bounds&&(e.tileBounds=new P(n.bounds,e.minzoom,e.maxzoom)),t.postTurnstileEvent(n.tiles),t.postMapLoadEvent(n.tiles,e.map._getMapId(),e.map._requestManager._skuToken),e.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})),e.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"})))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.onRemove=function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},r.prototype.serialize=function(){return t.extend({},this._options)},r.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},r.prototype.loadTile=function(e,r){var n=this,o=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);e.request=t.getImage(this.map._requestManager.transformRequest(o,t.ResourceType.Tile),(function(o,i){if(delete e.request,e.aborted)e.state="unloaded",r(null);else if(o)e.state="errored",r(o);else if(i){n.map._refreshExpiredTiles&&e.setExpiryData(i),delete i.cacheControl,delete i.expires;var a=n.map.painter.context,s=a.gl;e.texture=n.map.painter.getTileTexture(i.width),e.texture?e.texture.update(i,{useMipmap:!0}):(e.texture=new t.Texture(a,i,s.RGBA,{useMipmap:!0}),e.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST),a.extTextureFilterAnisotropic&&s.texParameterf(s.TEXTURE_2D,a.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,a.extTextureFilterAnisotropicMax)),e.state="loaded",t.cacheEntryPossiblyAdded(n.dispatcher),r(null)}}))},r.prototype.abortTile=function(t,e){t.request&&(t.request.cancel(),delete t.request),e()},r.prototype.unloadTile=function(t,e){t.texture&&this.map.painter.saveTileTexture(t.texture),e()},r.prototype.hasTransition=function(){return!1},r}(t.Evented),C=function(e){function r(r,n,o,i){e.call(this,r,n,o,i),this.type="raster-dem",this.maxzoom=22,this._options=t.extend({type:"raster-dem"},n),this.encoding=n.encoding||"mapbox"}return e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r,r.prototype.serialize=function(){return{type:"raster-dem",url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}},r.prototype.loadTile=function(e,r){var n=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);function o(t,n){t&&(e.state="errored",r(t)),n&&(e.dem=n,e.needsHillshadePrepare=!0,e.state="loaded",r(null))}e.request=t.getImage(this.map._requestManager.transformRequest(n,t.ResourceType.Tile),function(n,i){if(delete e.request,e.aborted)e.state="unloaded",r(null);else if(n)e.state="errored",r(n);else if(i){this.map._refreshExpiredTiles&&e.setExpiryData(i),delete i.cacheControl,delete i.expires;var a=t.window.ImageBitmap&&i instanceof t.window.ImageBitmap&&t.offscreenCanvasSupported()?i:t.browser.getImageData(i,1),s={uid:e.uid,coord:e.tileID,source:this.id,rawImageData:a,encoding:this.encoding};e.actor&&"expired"!==e.state||(e.actor=this.dispatcher.getActor(),e.actor.send("loadDEMTile",s,o.bind(this)))}}.bind(this)),e.neighboringTiles=this._getNeighboringTiles(e.tileID)},r.prototype._getNeighboringTiles=function(e){var r=e.canonical,n=Math.pow(2,r.z),o=(r.x-1+n)%n,i=0===r.x?e.wrap-1:e.wrap,a=(r.x+1+n)%n,s=r.x+1===n?e.wrap+1:e.wrap,u={};return u[new t.OverscaledTileID(e.overscaledZ,i,r.z,o,r.y).key]={backfilled:!1},u[new t.OverscaledTileID(e.overscaledZ,s,r.z,a,r.y).key]={backfilled:!1},r.y>0&&(u[new t.OverscaledTileID(e.overscaledZ,i,r.z,o,r.y-1).key]={backfilled:!1},u[new t.OverscaledTileID(e.overscaledZ,e.wrap,r.z,r.x,r.y-1).key]={backfilled:!1},u[new t.OverscaledTileID(e.overscaledZ,s,r.z,a,r.y-1).key]={backfilled:!1}),r.y+1<n&&(u[new t.OverscaledTileID(e.overscaledZ,i,r.z,o,r.y+1).key]={backfilled:!1},u[new t.OverscaledTileID(e.overscaledZ,e.wrap,r.z,r.x,r.y+1).key]={backfilled:!1},u[new t.OverscaledTileID(e.overscaledZ,s,r.z,a,r.y+1).key]={backfilled:!1}),u},r.prototype.unloadTile=function(t){t.demTexture&&this.map.painter.saveTileTexture(t.demTexture),t.fbo&&(t.fbo.destroy(),delete t.fbo),t.dem&&delete t.dem,delete t.neighboringTiles,t.state="unloaded",t.actor&&t.actor.send("removeDEMTile",{uid:t.uid,source:this.id})},r}(A),T=function(e){function r(r,n,o,i){e.call(this),this.id=r,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._loaded=!1,this.actor=o.getActor(),this.setEventedParent(i),this._data=n.data,this._options=t.extend({},n),this._collectResourceTiming=n.collectResourceTiming,this._resourceTiming=[],void 0!==n.maxzoom&&(this.maxzoom=n.maxzoom),n.type&&(this.type=n.type),n.attribution&&(this.attribution=n.attribution),this.promoteId=n.promoteId;var a=t.EXTENT/this.tileSize;this.workerOptions=t.extend({source:this.id,cluster:n.cluster||!1,geojsonVtOptions:{buffer:(void 0!==n.buffer?n.buffer:128)*a,tolerance:(void 0!==n.tolerance?n.tolerance:.375)*a,extent:t.EXTENT,maxZoom:this.maxzoom,lineMetrics:n.lineMetrics||!1,generateId:n.generateId||!1},superclusterOptions:{maxZoom:void 0!==n.clusterMaxZoom?Math.min(n.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,minPoints:Math.max(2,n.clusterMinPoints||2),extent:t.EXTENT,radius:(n.clusterRadius||50)*a,log:!1,generateId:n.generateId||!1},clusterProperties:n.clusterProperties,filter:n.filter},n.workerOptions)}return e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r,r.prototype.load=function(){var e=this;this.fire(new t.Event("dataloading",{dataType:"source"})),this._updateWorkerData((function(r){if(r)e.fire(new t.ErrorEvent(r));else{var n={dataType:"source",sourceDataType:"metadata"};e._collectResourceTiming&&e._resourceTiming&&e._resourceTiming.length>0&&(n.resourceTiming=e._resourceTiming,e._resourceTiming=[]),e.fire(new t.Event("data",n))}}))},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setData=function(e){var r=this;return this._data=e,this.fire(new t.Event("dataloading",{dataType:"source"})),this._updateWorkerData((function(e){if(e)r.fire(new t.ErrorEvent(e));else{var n={dataType:"source",sourceDataType:"content"};r._collectResourceTiming&&r._resourceTiming&&r._resourceTiming.length>0&&(n.resourceTiming=r._resourceTiming,r._resourceTiming=[]),r.fire(new t.Event("data",n))}})),this},r.prototype.getClusterExpansionZoom=function(t,e){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:t,source:this.id},e),this},r.prototype.getClusterChildren=function(t,e){return this.actor.send("geojson.getClusterChildren",{clusterId:t,source:this.id},e),this},r.prototype.getClusterLeaves=function(t,e,r,n){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:t,limit:e,offset:r},n),this},r.prototype._updateWorkerData=function(e){var r=this;this._loaded=!1;var n=t.extend({},this.workerOptions),o=this._data;"string"==typeof o?(n.request=this.map._requestManager.transformRequest(t.browser.resolveURL(o),t.ResourceType.Source),n.request.collectResourceTiming=this._collectResourceTiming):n.data=JSON.stringify(o),this.actor.send(this.type+".loadData",n,(function(t,o){r._removed||o&&o.abandoned||(r._loaded=!0,o&&o.resourceTiming&&o.resourceTiming[r.id]&&(r._resourceTiming=o.resourceTiming[r.id].slice(0)),r.actor.send(r.type+".coalesce",{source:n.source},null),e(t))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.loadTile=function(e,r){var n=this,o=e.actor?"reloadTile":"loadTile";e.actor=this.actor,e.request=this.actor.send(o,{type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},(function(t,i){return delete e.request,e.unloadVectorData(),e.aborted?r(null):t?r(t):(e.loadVectorData(i,n.map.painter,"reloadTile"===o),r(null))}))},r.prototype.abortTile=function(t){t.request&&(t.request.cancel(),delete t.request),t.aborted=!0},r.prototype.unloadTile=function(t){t.unloadVectorData(),this.actor.send("removeTile",{uid:t.uid,type:this.type,source:this.id})},r.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},r.prototype.serialize=function(){return t.extend({},this._options,{type:this.type,data:this._data})},r.prototype.hasTransition=function(){return!1},r}(t.Evented),k=t.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),M=function(e){function r(t,r,n,o){e.call(this),this.id=t,this.dispatcher=n,this.coordinates=r.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(o),this.options=r}return e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r,r.prototype.load=function(e,r){var n=this;this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this.url=this.options.url,t.getImage(this.map._requestManager.transformRequest(this.url,t.ResourceType.Image),(function(o,i){n._loaded=!0,o?n.fire(new t.ErrorEvent(o)):i&&(n.image=i,e&&(n.coordinates=e),r&&r(),n._finishLoading())}))},r.prototype.loaded=function(){return this._loaded},r.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},r.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})))},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setCoordinates=function(e){var r=this;this.coordinates=e;var n=e.map(t.MercatorCoordinate.fromLngLat);this.tileID=function(e){for(var r=1/0,n=1/0,o=-1/0,i=-1/0,a=0,s=e;a<s.length;a+=1){var u=s[a];r=Math.min(r,u.x),n=Math.min(n,u.y),o=Math.max(o,u.x),i=Math.max(i,u.y)}var c=Math.max(o-r,i-n),l=Math.max(0,Math.floor(-Math.log(c)/Math.LN2)),p=Math.pow(2,l);return new t.CanonicalTileID(l,Math.floor((r+o)/2*p),Math.floor((n+i)/2*p))}(n),this.minzoom=this.maxzoom=this.tileID.z;var o=n.map((function(t){return r.tileID.getTilePoint(t)._round()}));return this._boundsArray=new t.StructArrayLayout4i8,this._boundsArray.emplaceBack(o[0].x,o[0].y,0,0),this._boundsArray.emplaceBack(o[1].x,o[1].y,t.EXTENT,0),this._boundsArray.emplaceBack(o[3].x,o[3].y,0,t.EXTENT),this._boundsArray.emplaceBack(o[2].x,o[2].y,t.EXTENT,t.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"})),this},r.prototype.prepare=function(){if(0!==Object.keys(this.tiles).length&&this.image){var e=this.map.painter.context,r=e.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,k.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new t.Texture(e,this.image,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this.tiles){var o=this.tiles[n];"loaded"!==o.state&&(o.state="loaded",o.texture=this.texture)}}},r.prototype.loadTile=function(t,e){this.tileID&&this.tileID.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t,t.buckets={},e(null)):(t.state="errored",e(null))},r.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return!1},r}(t.Evented),I=function(e){function r(t,r,n,o){e.call(this,t,r,n,o),this.roundZoom=!0,this.type="video",this.options=r}return e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1;var r=this.options;this.urls=[];for(var n=0,o=r.urls;n<o.length;n+=1)this.urls.push(this.map._requestManager.transformRequest(o[n],t.ResourceType.Source).url);t.getVideo(this.urls,(function(r,n){e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&&(e.video=n,e.video.loop=!0,e.video.addEventListener("playing",(function(){e.map.triggerRepaint()})),e.map&&e.video.play(),e._finishLoading())}))},r.prototype.pause=function(){this.video&&this.video.pause()},r.prototype.play=function(){this.video&&this.video.play()},r.prototype.seek=function(e){if(this.video){var r=this.video.seekable;e<r.start(0)||e>r.end(0)?this.fire(new t.ErrorEvent(new t.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+r.start(0)+" and "+r.end(0)+"-second mark."))):this.video.currentTime=e}},r.prototype.getVideo=function(){return this.video},r.prototype.onAdd=function(t){this.map||(this.map=t,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},r.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState<2)){var e=this.map.painter.context,r=e.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,k.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE),r.texSubImage2D(r.TEXTURE_2D,0,0,0,r.RGBA,r.UNSIGNED_BYTE,this.video)):(this.texture=new t.Texture(e,this.video,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this.tiles){var o=this.tiles[n];"loaded"!==o.state&&(o.state="loaded",o.texture=this.texture)}}},r.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this.video&&!this.video.paused},r}(M),D=function(e){function r(r,n,o,i){e.call(this,r,n,o,i),n.coordinates?Array.isArray(n.coordinates)&&4===n.coordinates.length&&!n.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."+r,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.ErrorEvent(new t.ValidationError("sources."+r,null,'missing required property "coordinates"'))),n.animate&&"boolean"!=typeof n.animate&&this.fire(new t.ErrorEvent(new t.ValidationError("sources."+r,null,'optional "animate" property must be a boolean value'))),n.canvas?"string"==typeof n.canvas||n.canvas instanceof t.window.HTMLCanvasElement||this.fire(new t.ErrorEvent(new t.ValidationError("sources."+r,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."+r,null,'missing required property "canvas"'))),this.options=n,this.animate=void 0===n.animate||n.animate}return e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r,r.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())},r.prototype.getCanvas=function(){return this.canvas},r.prototype.onAdd=function(t){this.map=t,this.load(),this.canvas&&this.animate&&this.play()},r.prototype.onRemove=function(){this.pause()},r.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 r=this.map.painter.context,n=r.gl;for(var o in this.boundsBuffer||(this.boundsBuffer=r.createVertexBuffer(this._boundsArray,k.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(r,this.canvas,n.RGBA,{premultiply:!0}),this.tiles){var i=this.tiles[o];"loaded"!==i.state&&(i.state="loaded",i.texture=this.texture)}}},r.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this._playing},r.prototype._hasInvalidDimensions=function(){for(var t=0,e=[this.canvas.width,this.canvas.height];t<e.length;t+=1){var r=e[t];if(isNaN(r)||r<=0)return!0}return!1},r}(M),L={vector:j,raster:A,"raster-dem":C,geojson:T,video:I,image:M,canvas:D};function R(e,r){var n=t.identity([]);return t.translate(n,n,[1,1,0]),t.scale(n,n,[.5*e.width,.5*e.height,1]),t.multiply(n,n,e.calculatePosMatrix(r.toUnwrapped()))}function z(t,e,r,n,o,i){var a=function(t,e,r){if(t)for(var n=0,o=t;n<o.length;n+=1){var i=e[o[n]];if(i&&i.source===r&&"fill-extrusion"===i.type)return!0}else for(var a in e){var s=e[a];if(s.source===r&&"fill-extrusion"===s.type)return!0}return!1}(o&&o.layers,e,t.id),s=i.maxPitchScaleFactor(),u=t.tilesIn(n,s,a);u.sort(N);for(var c=[],l=0,p=u;l<p.length;l+=1){var f=p[l];c.push({wrappedTileID:f.tileID.wrapped().key,queryResults:f.tile.queryRenderedFeatures(e,r,t._state,f.queryGeometry,f.cameraQueryGeometry,f.scale,o,i,s,R(t.transform,f.tileID))})}var h=function(t){for(var e={},r={},n=0,o=t;n<o.length;n+=1){var i=o[n],a=i.queryResults,s=i.wrappedTileID,u=r[s]=r[s]||{};for(var c in a)for(var l=a[c],p=u[c]=u[c]||{},f=e[c]=e[c]||[],h=0,d=l;h<d.length;h+=1){var m=d[h];p[m.featureIndex]||(p[m.featureIndex]=!0,f.push(m))}}return e}(c);for(var d in h)h[d].forEach((function(e){var r=e.feature,n=t.getFeatureState(r.layer["source-layer"],r.id);r.source=r.layer.source,r.layer["source-layer"]&&(r.sourceLayer=r.layer["source-layer"]),r.state=n}));return h}function N(t,e){var r=t.tileID,n=e.tileID;return r.overscaledZ-n.overscaledZ||r.canonical.y-n.canonical.y||r.wrap-n.wrap||r.canonical.x-n.canonical.x}var F=function(t,e){this.max=t,this.onRemove=e,this.reset()};F.prototype.reset=function(){for(var t in this.data)for(var e=0,r=this.data[t];e<r.length;e+=1){var n=r[e];n.timeout&&clearTimeout(n.timeout),this.onRemove(n.value)}return this.data={},this.order=[],this},F.prototype.add=function(t,e,r){var n=this,o=t.wrapped().key;void 0===this.data[o]&&(this.data[o]=[]);var i={value:e,timeout:void 0};if(void 0!==r&&(i.timeout=setTimeout((function(){n.remove(t,i)}),r)),this.data[o].push(i),this.order.push(o),this.order.length>this.max){var a=this._getAndRemoveByKey(this.order[0]);a&&this.onRemove(a)}return this},F.prototype.has=function(t){return t.wrapped().key in this.data},F.prototype.getAndRemove=function(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null},F.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},F.prototype.getByKey=function(t){var e=this.data[t];return e?e[0].value:null},F.prototype.get=function(t){return this.has(t)?this.data[t.wrapped().key][0].value:null},F.prototype.remove=function(t,e){if(!this.has(t))return this;var r=t.wrapped().key,n=void 0===e?0:this.data[r].indexOf(e),o=this.data[r][n];return this.data[r].splice(n,1),o.timeout&&clearTimeout(o.timeout),0===this.data[r].length&&delete this.data[r],this.onRemove(o.value),this.order.splice(this.order.indexOf(r),1),this},F.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},F.prototype.filter=function(t){var e=[];for(var r in this.data)for(var n=0,o=this.data[r];n<o.length;n+=1){var i=o[n];t(i.value)||e.push(i)}for(var a=0,s=e;a<s.length;a+=1){var u=s[a];this.remove(u.value.tileID,u)}};var B=function(t,e,r){this.context=t;var n=t.gl;this.buffer=n.createBuffer(),this.dynamicDraw=Boolean(r),this.context.unbindVAO(),t.bindElementBuffer.set(this.buffer),n.bufferData(n.ELEMENT_ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?n.DYNAMIC_DRAW:n.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};B.prototype.bind=function(){this.context.bindElementBuffer.set(this.buffer)},B.prototype.updateData=function(t){var e=this.context.gl;this.context.unbindVAO(),this.bind(),e.bufferSubData(e.ELEMENT_ARRAY_BUFFER,0,t.arrayBuffer)},B.prototype.destroy=function(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)};var V={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"},U=function(t,e,r,n){this.length=e.length,this.attributes=r,this.itemSize=e.bytesPerElement,this.dynamicDraw=n,this.context=t;var o=t.gl;this.buffer=o.createBuffer(),t.bindVertexBuffer.set(this.buffer),o.bufferData(o.ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?o.DYNAMIC_DRAW:o.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};U.prototype.bind=function(){this.context.bindVertexBuffer.set(this.buffer)},U.prototype.updateData=function(t){var e=this.context.gl;this.bind(),e.bufferSubData(e.ARRAY_BUFFER,0,t.arrayBuffer)},U.prototype.enableAttributes=function(t,e){for(var r=0;r<this.attributes.length;r++){var n=e.attributes[this.attributes[r].name];void 0!==n&&t.enableVertexAttribArray(n)}},U.prototype.setVertexAttribPointers=function(t,e,r){for(var n=0;n<this.attributes.length;n++){var o=this.attributes[n],i=e.attributes[o.name];void 0!==i&&t.vertexAttribPointer(i,o.components,t[V[o.type]],!1,this.itemSize,o.offset+this.itemSize*(r||0))}},U.prototype.destroy=function(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)};var q=function(t){this.gl=t.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1};q.prototype.get=function(){return this.current},q.prototype.set=function(t){},q.prototype.getDefault=function(){return this.default},q.prototype.setDefault=function(){this.set(this.default)};var $=function(e){function r(){e.apply(this,arguments)}return e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r,r.prototype.getDefault=function(){return t.Color.transparent},r.prototype.set=function(t){var e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&&(this.gl.clearColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},r}(q),G=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return 1},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.clearDepth(t),this.current=t,this.dirty=!1)},e}(q),W=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return 0},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.clearStencil(t),this.current=t,this.dirty=!1)},e}(q),Z=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return[!0,!0,!0,!0]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&&(this.gl.colorMask(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},e}(q),H=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return!0},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.depthMask(t),this.current=t,this.dirty=!1)},e}(q),K=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return 255},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.stencilMask(t),this.current=t,this.dirty=!1)},e}(q),Y=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return{func:this.gl.ALWAYS,ref:0,mask:255}},e.prototype.set=function(t){var e=this.current;(t.func!==e.func||t.ref!==e.ref||t.mask!==e.mask||this.dirty)&&(this.gl.stencilFunc(t.func,t.ref,t.mask),this.current=t,this.dirty=!1)},e}(q),X=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[t.KEEP,t.KEEP,t.KEEP]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||this.dirty)&&(this.gl.stencilOp(t[0],t[1],t[2]),this.current=t,this.dirty=!1)},e}(q),J=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.STENCIL_TEST):e.disable(e.STENCIL_TEST),this.current=t,this.dirty=!1}},e}(q),Q=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return[0,1]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&&(this.gl.depthRange(t[0],t[1]),this.current=t,this.dirty=!1)},e}(q),tt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.DEPTH_TEST):e.disable(e.DEPTH_TEST),this.current=t,this.dirty=!1}},e}(q),et=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.LESS},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.depthFunc(t),this.current=t,this.dirty=!1)},e}(q),rt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.BLEND):e.disable(e.BLEND),this.current=t,this.dirty=!1}},e}(q),nt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[t.ONE,t.ZERO]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&&(this.gl.blendFunc(t[0],t[1]),this.current=t,this.dirty=!1)},e}(q),ot=function(e){function r(){e.apply(this,arguments)}return e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r,r.prototype.getDefault=function(){return t.Color.transparent},r.prototype.set=function(t){var e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&&(this.gl.blendColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},r}(q),it=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.FUNC_ADD},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.blendEquation(t),this.current=t,this.dirty=!1)},e}(q),at=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.CULL_FACE):e.disable(e.CULL_FACE),this.current=t,this.dirty=!1}},e}(q),st=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.BACK},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.cullFace(t),this.current=t,this.dirty=!1)},e}(q),ut=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.CCW},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.frontFace(t),this.current=t,this.dirty=!1)},e}(q),ct=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.useProgram(t),this.current=t,this.dirty=!1)},e}(q),lt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.TEXTURE0},e.prototype.set=function(t){(t!==this.current||this.dirty)&&(this.gl.activeTexture(t),this.current=t,this.dirty=!1)},e}(q),pt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[0,0,t.drawingBufferWidth,t.drawingBufferHeight]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&&(this.gl.viewport(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},e}(q),ft=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,t),this.current=t,this.dirty=!1}},e}(q),ht=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindRenderbuffer(e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}(q),dt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindTexture(e.TEXTURE_2D,t),this.current=t,this.dirty=!1}},e}(q),mt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindBuffer(e.ARRAY_BUFFER,t),this.current=t,this.dirty=!1}},e}(q),yt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.current=t,this.dirty=!1},e}(q),vt=function(t){function e(e){t.call(this,e),this.vao=e.extVertexArrayObject}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){this.vao&&(t!==this.current||this.dirty)&&(this.vao.bindVertexArrayOES(t),this.current=t,this.dirty=!1)},e}(q),gt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return 4},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_ALIGNMENT,t),this.current=t,this.dirty=!1}},e}(q),bt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t),this.current=t,this.dirty=!1}},e}(q),_t=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,t),this.current=t,this.dirty=!1}},e}(q),xt=function(t){function e(e,r){t.call(this,e),this.context=e,this.parent=r}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e}(q),wt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.setDirty=function(){this.dirty=!0},e.prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0),this.current=t,this.dirty=!1}},e}(xt),Ot=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}(xt),Et=function(t,e,r,n){this.context=t,this.width=e,this.height=r;var o=this.framebuffer=t.gl.createFramebuffer();this.colorAttachment=new wt(t,o),n&&(this.depthAttachment=new Ot(t,o))};Et.prototype.destroy=function(){var t=this.context.gl,e=this.colorAttachment.get();if(e&&t.deleteTexture(e),this.depthAttachment){var r=this.depthAttachment.get();r&&t.deleteRenderbuffer(r)}t.deleteFramebuffer(this.framebuffer)};var St=function(t,e,r){this.func=t,this.mask=e,this.range=r};St.ReadOnly=!1,St.ReadWrite=!0,St.disabled=new St(519,St.ReadOnly,[0,1]);var Pt=function(t,e,r,n,o,i){this.test=t,this.ref=e,this.mask=r,this.fail=n,this.depthFail=o,this.pass=i};Pt.disabled=new Pt({func:519,mask:0},0,0,7680,7680,7680);var jt=function(t,e,r){this.blendFunction=t,this.blendColor=e,this.mask=r};jt.disabled=new jt(jt.Replace=[1,0],t.Color.transparent,[!1,!1,!1,!1]),jt.unblended=new jt(jt.Replace,t.Color.transparent,[!0,!0,!0,!0]),jt.alphaBlended=new jt([1,771],t.Color.transparent,[!0,!0,!0,!0]);var At=function(t,e,r){this.enable=t,this.mode=e,this.frontFace=r};At.disabled=new At(!1,1029,2305),At.backCCW=new At(!0,1029,2305);var Ct=function(t){this.gl=t,this.extVertexArrayObject=this.gl.getExtension("OES_vertex_array_object"),this.clearColor=new $(this),this.clearDepth=new G(this),this.clearStencil=new W(this),this.colorMask=new Z(this),this.depthMask=new H(this),this.stencilMask=new K(this),this.stencilFunc=new Y(this),this.stencilOp=new X(this),this.stencilTest=new J(this),this.depthRange=new Q(this),this.depthTest=new tt(this),this.depthFunc=new et(this),this.blend=new rt(this),this.blendFunc=new nt(this),this.blendColor=new ot(this),this.blendEquation=new it(this),this.cullFace=new at(this),this.cullFaceSide=new st(this),this.frontFace=new ut(this),this.program=new ct(this),this.activeTexture=new lt(this),this.viewport=new pt(this),this.bindFramebuffer=new ft(this),this.bindRenderbuffer=new ht(this),this.bindTexture=new dt(this),this.bindVertexBuffer=new mt(this),this.bindElementBuffer=new yt(this),this.bindVertexArrayOES=this.extVertexArrayObject&&new vt(this),this.pixelStoreUnpack=new gt(this),this.pixelStoreUnpackPremultiplyAlpha=new bt(this),this.pixelStoreUnpackFlipY=new _t(this),this.extTextureFilterAnisotropic=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureHalfFloat=t.getExtension("OES_texture_half_float"),this.extTextureHalfFloat&&(t.getExtension("OES_texture_half_float_linear"),this.extRenderToTextureHalfFloat=t.getExtension("EXT_color_buffer_half_float")),this.extTimerQuery=t.getExtension("EXT_disjoint_timer_query"),this.maxTextureSize=t.getParameter(t.MAX_TEXTURE_SIZE)};Ct.prototype.setDefault=function(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()},Ct.prototype.setDirty=function(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&&(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0},Ct.prototype.createIndexBuffer=function(t,e){return new B(this,t,e)},Ct.prototype.createVertexBuffer=function(t,e,r){return new U(this,t,e,r)},Ct.prototype.createRenderbuffer=function(t,e,r){var n=this.gl,o=n.createRenderbuffer();return this.bindRenderbuffer.set(o),n.renderbufferStorage(n.RENDERBUFFER,t,e,r),this.bindRenderbuffer.set(null),o},Ct.prototype.createFramebuffer=function(t,e,r){return new Et(this,t,e,r)},Ct.prototype.clear=function(t){var e=t.color,r=t.depth,n=this.gl,o=0;e&&(o|=n.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),void 0!==r&&(o|=n.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(r),this.depthMask.set(!0)),n.clear(o)},Ct.prototype.setCullFace=function(t){!1===t.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(t.mode),this.frontFace.set(t.frontFace))},Ct.prototype.setDepthMode=function(t){t.func!==this.gl.ALWAYS||t.mask?(this.depthTest.set(!0),this.depthFunc.set(t.func),this.depthMask.set(t.mask),this.depthRange.set(t.range)):this.depthTest.set(!1)},Ct.prototype.setStencilMode=function(t){t.test.func!==this.gl.ALWAYS||t.mask?(this.stencilTest.set(!0),this.stencilMask.set(t.mask),this.stencilOp.set([t.fail,t.depthFail,t.pass]),this.stencilFunc.set({func:t.test.func,ref:t.ref,mask:t.test.mask})):this.stencilTest.set(!1)},Ct.prototype.setColorMode=function(e){t.deepEqual(e.blendFunction,jt.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(e.blendFunction),this.blendColor.set(e.blendColor)),this.colorMask.set(e.mask)},Ct.prototype.unbindVAO=function(){this.extVertexArrayObject&&this.bindVertexArrayOES.set(null)};var Tt=function(e){function r(r,n,o){var i=this;e.call(this),this.id=r,this.dispatcher=o,this.on("data",(function(t){"source"===t.dataType&&"metadata"===t.sourceDataType&&(i._sourceLoaded=!0),i._sourceLoaded&&!i._paused&&"source"===t.dataType&&"content"===t.sourceDataType&&(i.reload(),i.transform&&i.update(i.transform))})),this.on("error",(function(){i._sourceErrored=!0})),this._source=function(e,r,n,o){var i=new L[r.type](e,r,n,o);if(i.id!==e)throw new Error("Expected Source id to be "+e+" instead of "+i.id);return t.bindAll(["load","abort","unload","serialize","prepare"],i),i}(r,n,o,this),this._tiles={},this._cache=new F(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new t.SourceFeatureState}return e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r,r.prototype.onAdd=function(t){this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._source&&this._source.onAdd&&this._source.onAdd(t)},r.prototype.onRemove=function(t){this._source&&this._source.onRemove&&this._source.onRemove(t)},r.prototype.loaded=function(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(var t in this._tiles){var e=this._tiles[t];if("loaded"!==e.state&&"errored"!==e.state)return!1}return!0},r.prototype.getSource=function(){return this._source},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){if(this._paused){var t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&&this.reload(),this.transform&&this.update(this.transform)}},r.prototype._loadTile=function(t,e){return this._source.loadTile(t,e)},r.prototype._unloadTile=function(t){if(this._source.unloadTile)return this._source.unloadTile(t,(function(){}))},r.prototype._abortTile=function(t){if(this._source.abortTile)return this._source.abortTile(t,(function(){}))},r.prototype.serialize=function(){return this._source.serialize()},r.prototype.prepare=function(t){for(var e in this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._tiles){var r=this._tiles[e];r.upload(t),r.prepare(this.map.style.imageManager)}},r.prototype.getIds=function(){return t.values(this._tiles).map((function(t){return t.tileID})).sort(kt).map((function(t){return t.key}))},r.prototype.getRenderableIds=function(e){var r=this,n=[];for(var o in this._tiles)this._isIdRenderable(o,e)&&n.push(this._tiles[o]);return e?n.sort((function(e,n){var o=e.tileID,i=n.tileID,a=new t.Point(o.canonical.x,o.canonical.y)._rotate(r.transform.angle),s=new t.Point(i.canonical.x,i.canonical.y)._rotate(r.transform.angle);return o.overscaledZ-i.overscaledZ||s.y-a.y||s.x-a.x})).map((function(t){return t.tileID.key})):n.map((function(t){return t.tileID})).sort(kt).map((function(t){return t.key}))},r.prototype.hasRenderableParent=function(t){var e=this.findLoadedParent(t,0);return!!e&&this._isIdRenderable(e.tileID.key)},r.prototype._isIdRenderable=function(t,e){return this._tiles[t]&&this._tiles[t].hasData()&&!this._coveredTiles[t]&&(e||!this._tiles[t].holdingForFade())},r.prototype.reload=function(){if(this._paused)this._shouldReloadOnResume=!0;else for(var t in this._cache.reset(),this._tiles)"errored"!==this._tiles[t].state&&this._reloadTile(t,"reloading")},r.prototype._reloadTile=function(t,e){var r=this._tiles[t];r&&("loading"!==r.state&&(r.state=e),this._loadTile(r,this._tileLoaded.bind(this,r,t,e)))},r.prototype._tileLoaded=function(e,r,n,o){if(o)return e.state="errored",void(404!==o.status?this._source.fire(new t.ErrorEvent(o,{tile:e})):this.update(this.transform));e.timeAdded=t.browser.now(),"expired"===n&&(e.refreshedUponExpiration=!0),this._setTileReloadTimer(r,e),"raster-dem"===this.getSource().type&&e.dem&&this._backfillDEM(e),this._state.initializeTileState(e,this.map?this.map.painter:null),this._source.fire(new t.Event("data",{dataType:"source",tile:e,coord:e.tileID}))},r.prototype._backfillDEM=function(t){for(var e=this.getRenderableIds(),r=0;r<e.length;r++){var n=e[r];if(t.neighboringTiles&&t.neighboringTiles[n]){var o=this.getTileByID(n);i(t,o),i(o,t)}}function i(t,e){t.needsHillshadePrepare=!0;var r=e.tileID.canonical.x-t.tileID.canonical.x,n=e.tileID.canonical.y-t.tileID.canonical.y,o=Math.pow(2,t.tileID.canonical.z),i=e.tileID.key;0===r&&0===n||Math.abs(n)>1||(Math.abs(r)>1&&(1===Math.abs(r+o)?r+=o:1===Math.abs(r-o)&&(r-=o)),e.dem&&t.dem&&(t.dem.backfillBorder(e.dem,r,n),t.neighboringTiles&&t.neighboringTiles[i]&&(t.neighboringTiles[i].backfilled=!0)))}},r.prototype.getTile=function(t){return this.getTileByID(t.key)},r.prototype.getTileByID=function(t){return this._tiles[t]},r.prototype._retainLoadedChildren=function(t,e,r,n){for(var o in this._tiles){var i=this._tiles[o];if(!(n[o]||!i.hasData()||i.tileID.overscaledZ<=e||i.tileID.overscaledZ>r)){for(var a=i.tileID;i&&i.tileID.overscaledZ>e+1;){var s=i.tileID.scaledTo(i.tileID.overscaledZ-1);(i=this._tiles[s.key])&&i.hasData()&&(a=s)}for(var u=a;u.overscaledZ>e;)if(t[(u=u.scaledTo(u.overscaledZ-1)).key]){n[a.key]=a;break}}}},r.prototype.findLoadedParent=function(t,e){if(t.key in this._loadedParentTiles){var r=this._loadedParentTiles[t.key];return r&&r.tileID.overscaledZ>=e?r:null}for(var n=t.overscaledZ-1;n>=e;n--){var o=t.scaledTo(n),i=this._getLoadedTile(o);if(i)return i}},r.prototype._getLoadedTile=function(t){var e=this._tiles[t.key];return e&&e.hasData()?e:this._cache.getByKey(t.wrapped().key)},r.prototype.updateCacheSize=function(t){var e=Math.ceil(t.width/this._source.tileSize)+1,r=Math.ceil(t.height/this._source.tileSize)+1,n=Math.floor(e*r*5),o="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,n):n;this._cache.setMaxSize(o)},r.prototype.handleWrapJump=function(t){var e=Math.round((t-(void 0===this._prevLng?t:this._prevLng))/360);if(this._prevLng=t,e){var r={};for(var n in this._tiles){var o=this._tiles[n];o.tileID=o.tileID.unwrapTo(o.tileID.wrap+e),r[o.tileID.key]=o}for(var i in this._tiles=r,this._timers)clearTimeout(this._timers[i]),delete this._timers[i];for(var a in this._tiles)this._setTileReloadTimer(a,this._tiles[a])}},r.prototype.update=function(e){var n=this;if(this.transform=e,this._sourceLoaded&&!this._paused){var o;this.updateCacheSize(e),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?o=e.getVisibleUnwrappedCoordinates(this._source.tileID).map((function(e){return new t.OverscaledTileID(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y)})):(o=e.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(o=o.filter((function(t){return n._source.hasTile(t)})))):o=[];var i=e.coveringZoomLevel(this._source),a=Math.max(i-r.maxOverzooming,this._source.minzoom),s=Math.max(i+r.maxUnderzooming,this._source.minzoom),u=this._updateRetainedTiles(o,i);if(Mt(this._source.type)){for(var c={},l={},p=0,f=Object.keys(u);p<f.length;p+=1){var h=f[p],d=u[h],m=this._tiles[h];if(m&&!(m.fadeEndTime&&m.fadeEndTime<=t.browser.now())){var y=this.findLoadedParent(d,a);y&&(this._addTile(y.tileID),c[y.tileID.key]=y.tileID),l[h]=d}}for(var v in this._retainLoadedChildren(l,i,s,u),c)u[v]||(this._coveredTiles[v]=!0,u[v]=c[v])}for(var g in u)this._tiles[g].clearFadeHold();for(var b=0,_=t.keysDifference(this._tiles,u);b<_.length;b+=1){var x=_[b],w=this._tiles[x];w.hasSymbolBuckets&&!w.holdingForFade()?w.setHoldDuration(this.map._fadeDuration):w.hasSymbolBuckets&&!w.symbolFadeFinished()||this._removeTile(x)}this._updateLoadedParentTileCache()}},r.prototype.releaseSymbolFadeTiles=function(){for(var t in this._tiles)this._tiles[t].holdingForFade()&&this._removeTile(t)},r.prototype._updateRetainedTiles=function(t,e){for(var n={},o={},i=Math.max(e-r.maxOverzooming,this._source.minzoom),a=Math.max(e+r.maxUnderzooming,this._source.minzoom),s={},u=0,c=t;u<c.length;u+=1){var l=c[u],p=this._addTile(l);n[l.key]=l,p.hasData()||e<this._source.maxzoom&&(s[l.key]=l)}this._retainLoadedChildren(s,e,a,n);for(var f=0,h=t;f<h.length;f+=1){var d=h[f],m=this._tiles[d.key];if(!m.hasData()){if(e+1>this._source.maxzoom){var y=d.children(this._source.maxzoom)[0],v=this.getTile(y);if(v&&v.hasData()){n[y.key]=y;continue}}else{var g=d.children(this._source.maxzoom);if(n[g[0].key]&&n[g[1].key]&&n[g[2].key]&&n[g[3].key])continue}for(var b=m.wasRequested(),_=d.overscaledZ-1;_>=i;--_){var x=d.scaledTo(_);if(o[x.key])break;if(o[x.key]=!0,!(m=this.getTile(x))&&b&&(m=this._addTile(x)),m&&(n[x.key]=x,b=m.wasRequested(),m.hasData()))break}}}return n},r.prototype._updateLoadedParentTileCache=function(){for(var t in this._loadedParentTiles={},this._tiles){for(var e=[],r=void 0,n=this._tiles[t].tileID;n.overscaledZ>0;){if(n.key in this._loadedParentTiles){r=this._loadedParentTiles[n.key];break}e.push(n.key);var o=n.scaledTo(n.overscaledZ-1);if(r=this._getLoadedTile(o))break;n=o}for(var i=0,a=e;i<a.length;i+=1)this._loadedParentTiles[a[i]]=r}},r.prototype._addTile=function(e){var r=this._tiles[e.key];if(r)return r;(r=this._cache.getAndRemove(e))&&(this._setTileReloadTimer(e.key,r),r.tileID=e,this._state.initializeTileState(r,this.map?this.map.painter:null),this._cacheTimers[e.key]&&(clearTimeout(this._cacheTimers[e.key]),delete this._cacheTimers[e.key],this._setTileReloadTimer(e.key,r)));var n=Boolean(r);return n||(r=new t.Tile(e,this._source.tileSize*e.overscaleFactor()),this._loadTile(r,this._tileLoaded.bind(this,r,e.key,r.state))),r?(r.uses++,this._tiles[e.key]=r,n||this._source.fire(new t.Event("dataloading",{tile:r,coord:r.tileID,dataType:"source"})),r):null},r.prototype._setTileReloadTimer=function(t,e){var r=this;t in this._timers&&(clearTimeout(this._timers[t]),delete this._timers[t]);var n=e.getExpiryTimeout();n&&(this._timers[t]=setTimeout((function(){r._reloadTile(t,"expired"),delete r._timers[t]}),n))},r.prototype._removeTile=function(t){var e=this._tiles[t];e&&(e.uses--,delete this._tiles[t],this._timers[t]&&(clearTimeout(this._timers[t]),delete this._timers[t]),e.uses>0||(e.hasData()&&"reloading"!==e.state?this._cache.add(e.tileID,e,e.getExpiryTimeout()):(e.aborted=!0,this._abortTile(e),this._unloadTile(e))))},r.prototype.clearTiles=function(){for(var t in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(t);this._cache.reset()},r.prototype.tilesIn=function(e,r,n){var o=this,i=[],a=this.transform;if(!a)return i;for(var s=n?a.getCameraQueryGeometry(e):e,u=e.map((function(t){return a.pointCoordinate(t)})),c=s.map((function(t){return a.pointCoordinate(t)})),l=this.getIds(),p=1/0,f=1/0,h=-1/0,d=-1/0,m=0,y=c;m<y.length;m+=1){var v=y[m];p=Math.min(p,v.x),f=Math.min(f,v.y),h=Math.max(h,v.x),d=Math.max(d,v.y)}for(var g=function(e){var n=o._tiles[l[e]];if(!n.holdingForFade()){var s=n.tileID,m=Math.pow(2,a.zoom-n.tileID.overscaledZ),y=r*n.queryPadding*t.EXTENT/n.tileSize/m,v=[s.getTilePoint(new t.MercatorCoordinate(p,f)),s.getTilePoint(new t.MercatorCoordinate(h,d))];if(v[0].x-y<t.EXTENT&&v[0].y-y<t.EXTENT&&v[1].x+y>=0&&v[1].y+y>=0){var g=u.map((function(t){return s.getTilePoint(t)})),b=c.map((function(t){return s.getTilePoint(t)}));i.push({tile:n,tileID:s,queryGeometry:g,cameraQueryGeometry:b,scale:m})}}},b=0;b<l.length;b++)g(b);return i},r.prototype.getVisibleCoordinates=function(t){for(var e=this,r=this.getRenderableIds(t).map((function(t){return e._tiles[t].tileID})),n=0,o=r;n<o.length;n+=1){var i=o[n];i.posMatrix=this.transform.calculatePosMatrix(i.toUnwrapped())}return r},r.prototype.hasTransition=function(){if(this._source.hasTransition())return!0;if(Mt(this._source.type))for(var e in this._tiles){var r=this._tiles[e];if(void 0!==r.fadeEndTime&&r.fadeEndTime>=t.browser.now())return!0}return!1},r.prototype.setFeatureState=function(t,e,r){this._state.updateState(t=t||"_geojsonTileLayer",e,r)},r.prototype.removeFeatureState=function(t,e,r){this._state.removeFeatureState(t=t||"_geojsonTileLayer",e,r)},r.prototype.getFeatureState=function(t,e){return this._state.getState(t=t||"_geojsonTileLayer",e)},r.prototype.setDependencies=function(t,e,r){var n=this._tiles[t];n&&n.setDependencies(e,r)},r.prototype.reloadTilesForDependencies=function(t,e){for(var r in this._tiles)this._tiles[r].hasDependency(t,e)&&this._reloadTile(r,"reloading");this._cache.filter((function(r){return!r.hasDependency(t,e)}))},r}(t.Evented);function kt(t,e){var r=Math.abs(2*t.wrap)-+(t.wrap<0),n=Math.abs(2*e.wrap)-+(e.wrap<0);return t.overscaledZ-e.overscaledZ||n-r||e.canonical.y-t.canonical.y||e.canonical.x-t.canonical.x}function Mt(t){return"raster"===t||"image"===t||"video"===t}function It(){return new t.window.Worker(Yo.workerUrl)}Tt.maxOverzooming=10,Tt.maxUnderzooming=3;var Dt="mapboxgl_preloaded_worker_pool",Lt=function(){this.active={}};Lt.prototype.acquire=function(t){if(!this.workers)for(this.workers=[];this.workers.length<Lt.workerCount;)this.workers.push(new It);return this.active[t]=!0,this.workers.slice()},Lt.prototype.release=function(t){delete this.active[t],0===this.numActive()&&(this.workers.forEach((function(t){t.terminate()})),this.workers=null)},Lt.prototype.isPreloaded=function(){return!!this.active[Dt]},Lt.prototype.numActive=function(){return Object.keys(this.active).length};var Rt,zt=Math.floor(t.browser.hardwareConcurrency/2);function Nt(){return Rt||(Rt=new Lt),Rt}function Ft(e,r){var n={};for(var o in e)"ref"!==o&&(n[o]=e[o]);return t.refProperties.forEach((function(t){t in r&&(n[t]=r[t])})),n}function Bt(t){t=t.slice();for(var e=Object.create(null),r=0;r<t.length;r++)e[t[r].id]=t[r];for(var n=0;n<t.length;n++)"ref"in t[n]&&(t[n]=Ft(t[n],e[t[n].ref]));return t}Lt.workerCount=Math.max(Math.min(zt,6),1);var Vt={setStyle:"setStyle",addLayer:"addLayer",removeLayer:"removeLayer",setPaintProperty:"setPaintProperty",setLayoutProperty:"setLayoutProperty",setFilter:"setFilter",addSource:"addSource",removeSource:"removeSource",setGeoJSONSourceData:"setGeoJSONSourceData",setLayerZoomRange:"setLayerZoomRange",setLayerProperty:"setLayerProperty",setCenter:"setCenter",setZoom:"setZoom",setBearing:"setBearing",setPitch:"setPitch",setSprite:"setSprite",setGlyphs:"setGlyphs",setTransition:"setTransition",setLight:"setLight"};function Ut(t,e,r){r.push({command:Vt.addSource,args:[t,e[t]]})}function qt(t,e,r){e.push({command:Vt.removeSource,args:[t]}),r[t]=!0}function $t(t,e,r,n){qt(t,r,n),Ut(t,e,r)}function Gt(e,r,n){var o;for(o in e[n])if(e[n].hasOwnProperty(o)&&"data"!==o&&!t.deepEqual(e[n][o],r[n][o]))return!1;for(o in r[n])if(r[n].hasOwnProperty(o)&&"data"!==o&&!t.deepEqual(e[n][o],r[n][o]))return!1;return!0}function Wt(e,r,n,o,i,a){var s;for(s in r=r||{},e=e||{})e.hasOwnProperty(s)&&(t.deepEqual(e[s],r[s])||n.push({command:a,args:[o,s,r[s],i]}));for(s in r)r.hasOwnProperty(s)&&!e.hasOwnProperty(s)&&(t.deepEqual(e[s],r[s])||n.push({command:a,args:[o,s,r[s],i]}))}function Zt(t){return t.id}function Ht(t,e){return t[e.id]=e,t}var Kt=function(t,e){this.reset(t,e)};Kt.prototype.reset=function(t,e){this.points=t||[],this._distances=[0];for(var r=1;r<this.points.length;r++)this._distances[r]=this._distances[r-1]+this.points[r].dist(this.points[r-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(e||0,.5*this.length),this.paddedLength=this.length-2*this.padding},Kt.prototype.lerp=function(e){if(1===this.points.length)return this.points[0];e=t.clamp(e,0,1);for(var r=1,n=this._distances[r],o=e*this.paddedLength+this.padding;n<o&&r<this._distances.length;)n=this._distances[++r];var i=r-1,a=this._distances[i],s=n-a,u=s>0?(o-a)/s:0;return this.points[i].mult(1-u).add(this.points[r].mult(u))};var Yt=function(t,e,r){var n=this.boxCells=[],o=this.circleCells=[];this.xCellCount=Math.ceil(t/r),this.yCellCount=Math.ceil(e/r);for(var i=0;i<this.xCellCount*this.yCellCount;i++)n.push([]),o.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=t,this.height=e,this.xScale=this.xCellCount/t,this.yScale=this.yCellCount/e,this.boxUid=0,this.circleUid=0};function Xt(e,r,n,o,i){var a=t.create();return r?(t.scale(a,a,[1/i,1/i,1]),n||t.rotateZ(a,a,o.angle)):t.multiply(a,o.labelPlaneMatrix,e),a}function Jt(e,r,n,o,i){if(r){var a=t.clone(e);return t.scale(a,a,[i,i,1]),n||t.rotateZ(a,a,-o.angle),a}return o.glCoordMatrix}function Qt(e,r){var n=[e.x,e.y,0,1];le(n,n,r);var o=n[3];return{point:new t.Point(n[0]/o,n[1]/o),signedDistanceFromCamera:o}}function te(t,e){return.5+t/e*.5}function ee(t,e){var r=t[0]/t[3],n=t[1]/t[3];return r>=-e[0]&&r<=e[0]&&n>=-e[1]&&n<=e[1]}function re(e,r,n,o,i,a,s,u){var c=o?e.textSizeData:e.iconSizeData,l=t.evaluateSizeForZoom(c,n.transform.zoom),p=[256/n.width*2+1,256/n.height*2+1],f=o?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;f.clear();for(var h=e.lineVertexArray,d=o?e.text.placedSymbolArray:e.icon.placedSymbolArray,m=n.transform.width/n.transform.height,y=!1,v=0;v<d.length;v++){var g=d.get(v);if(g.hidden||g.writingMode===t.WritingMode.vertical&&!y)ce(g.numGlyphs,f);else{y=!1;var b=[g.anchorX,g.anchorY,0,1];if(t.transformMat4(b,b,r),ee(b,p)){var _=te(n.transform.cameraToCenterDistance,b[3]),x=t.evaluateSizeForFeature(c,l,g),w=s?x/_:x*_,O=new t.Point(g.anchorX,g.anchorY),E=Qt(O,i).point,S={},P=ie(g,w,!1,u,r,i,a,e.glyphOffsetArray,h,f,E,O,S,m);y=P.useVertical,(P.notEnoughRoom||y||P.needsFlipping&&ie(g,w,!0,u,r,i,a,e.glyphOffsetArray,h,f,E,O,S,m).notEnoughRoom)&&ce(g.numGlyphs,f)}else ce(g.numGlyphs,f)}}o?e.text.dynamicLayoutVertexBuffer.updateData(f):e.icon.dynamicLayoutVertexBuffer.updateData(f)}function ne(t,e,r,n,o,i,a,s,u,c,l){var p=s.glyphStartIndex+s.numGlyphs,f=s.lineStartIndex,h=s.lineStartIndex+s.lineLength,d=e.getoffsetX(s.glyphStartIndex),m=e.getoffsetX(p-1),y=se(t*d,r,n,o,i,a,s.segment,f,h,u,c,l);if(!y)return null;var v=se(t*m,r,n,o,i,a,s.segment,f,h,u,c,l);return v?{first:y,last:v}:null}function oe(e,r,n,o){return e===t.WritingMode.horizontal&&Math.abs(n.y-r.y)>Math.abs(n.x-r.x)*o?{useVertical:!0}:(e===t.WritingMode.vertical?r.y<n.y:r.x>n.x)?{needsFlipping:!0}:null}function ie(e,r,n,o,i,a,s,u,c,l,p,f,h,d){var m,y=r/24,v=e.lineOffsetX*y,g=e.lineOffsetY*y;if(e.numGlyphs>1){var b=e.glyphStartIndex+e.numGlyphs,_=e.lineStartIndex,x=e.lineStartIndex+e.lineLength,w=ne(y,u,v,g,n,p,f,e,c,a,h);if(!w)return{notEnoughRoom:!0};var O=Qt(w.first.point,s).point,E=Qt(w.last.point,s).point;if(o&&!n){var S=oe(e.writingMode,O,E,d);if(S)return S}m=[w.first];for(var P=e.glyphStartIndex+1;P<b-1;P++)m.push(se(y*u.getoffsetX(P),v,g,n,p,f,e.segment,_,x,c,a,h));m.push(w.last)}else{if(o&&!n){var j=Qt(f,i).point,A=e.lineStartIndex+e.segment+1,C=new t.Point(c.getx(A),c.gety(A)),T=Qt(C,i),k=T.signedDistanceFromCamera>0?T.point:ae(f,C,j,1,i),M=oe(e.writingMode,j,k,d);if(M)return M}var I=se(y*u.getoffsetX(e.glyphStartIndex),v,g,n,p,f,e.segment,e.lineStartIndex,e.lineStartIndex+e.lineLength,c,a,h);if(!I)return{notEnoughRoom:!0};m=[I]}for(var D=0,L=m;D<L.length;D+=1){var R=L[D];t.addDynamicAttributes(l,R.point,R.angle)}return{}}function ae(t,e,r,n,o){var i=Qt(t.add(t.sub(e)._unit()),o).point,a=r.sub(i);return r.add(a._mult(n/a.mag()))}function se(e,r,n,o,i,a,s,u,c,l,p,f){var h=o?e-r:e+r,d=h>0?1:-1,m=0;o&&(d*=-1,m=Math.PI),d<0&&(m+=Math.PI);for(var y=d>0?u+s:u+s+1,v=i,g=i,b=0,_=0,x=Math.abs(h),w=[];b+_<=x;){if((y+=d)<u||y>=c)return null;if(g=v,w.push(v),void 0===(v=f[y])){var O=new t.Point(l.getx(y),l.gety(y)),E=Qt(O,p);if(E.signedDistanceFromCamera>0)v=f[y]=E.point;else{var S=y-d;v=ae(0===b?a:new t.Point(l.getx(S),l.gety(S)),O,g,x-b+1,p)}}b+=_,_=g.dist(v)}var P=(x-b)/_,j=v.sub(g),A=j.mult(P)._add(g);A._add(j._unit()._perp()._mult(n*d));var C=m+Math.atan2(v.y-g.y,v.x-g.x);return w.push(A),{point:A,angle:C,path:w}}Yt.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Yt.prototype.insert=function(t,e,r,n,o){this._forEachCell(e,r,n,o,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(o)},Yt.prototype.insertCircle=function(t,e,r,n){this._forEachCell(e-n,r-n,e+n,r+n,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(e),this.circles.push(r),this.circles.push(n)},Yt.prototype._insertBoxCell=function(t,e,r,n,o,i){this.boxCells[o].push(i)},Yt.prototype._insertCircleCell=function(t,e,r,n,o,i){this.circleCells[o].push(i)},Yt.prototype._query=function(t,e,r,n,o,i){if(r<0||t>this.width||n<0||e>this.height)return!o&&[];var a=[];if(t<=0&&e<=0&&this.width<=r&&this.height<=n){if(o)return!0;for(var s=0;s<this.boxKeys.length;s++)a.push({key:this.boxKeys[s],x1:this.bboxes[4*s],y1:this.bboxes[4*s+1],x2:this.bboxes[4*s+2],y2:this.bboxes[4*s+3]});for(var u=0;u<this.circleKeys.length;u++){var c=this.circles[3*u],l=this.circles[3*u+1],p=this.circles[3*u+2];a.push({key:this.circleKeys[u],x1:c-p,y1:l-p,x2:c+p,y2:l+p})}return i?a.filter(i):a}return this._forEachCell(t,e,r,n,this._queryCell,a,{hitTest:o,seenUids:{box:{},circle:{}}},i),o?a.length>0:a},Yt.prototype._queryCircle=function(t,e,r,n,o){var i=t-r,a=t+r,s=e-r,u=e+r;if(a<0||i>this.width||u<0||s>this.height)return!n&&[];var c=[];return this._forEachCell(i,s,a,u,this._queryCellCircle,c,{hitTest:n,circle:{x:t,y:e,radius:r},seenUids:{box:{},circle:{}}},o),n?c.length>0:c},Yt.prototype.query=function(t,e,r,n,o){return this._query(t,e,r,n,!1,o)},Yt.prototype.hitTest=function(t,e,r,n,o){return this._query(t,e,r,n,!0,o)},Yt.prototype.hitTestCircle=function(t,e,r,n){return this._queryCircle(t,e,r,!0,n)},Yt.prototype._queryCell=function(t,e,r,n,o,i,a,s){var u=a.seenUids,c=this.boxCells[o];if(null!==c)for(var l=this.bboxes,p=0,f=c;p<f.length;p+=1){var h=f[p];if(!u.box[h]){u.box[h]=!0;var d=4*h;if(t<=l[d+2]&&e<=l[d+3]&&r>=l[d+0]&&n>=l[d+1]&&(!s||s(this.boxKeys[h]))){if(a.hitTest)return i.push(!0),!0;i.push({key:this.boxKeys[h],x1:l[d],y1:l[d+1],x2:l[d+2],y2:l[d+3]})}}}var m=this.circleCells[o];if(null!==m)for(var y=this.circles,v=0,g=m;v<g.length;v+=1){var b=g[v];if(!u.circle[b]){u.circle[b]=!0;var _=3*b;if(this._circleAndRectCollide(y[_],y[_+1],y[_+2],t,e,r,n)&&(!s||s(this.circleKeys[b]))){if(a.hitTest)return i.push(!0),!0;var x=y[_],w=y[_+1],O=y[_+2];i.push({key:this.circleKeys[b],x1:x-O,y1:w-O,x2:x+O,y2:w+O})}}}},Yt.prototype._queryCellCircle=function(t,e,r,n,o,i,a,s){var u=a.circle,c=a.seenUids,l=this.boxCells[o];if(null!==l)for(var p=this.bboxes,f=0,h=l;f<h.length;f+=1){var d=h[f];if(!c.box[d]){c.box[d]=!0;var m=4*d;if(this._circleAndRectCollide(u.x,u.y,u.radius,p[m+0],p[m+1],p[m+2],p[m+3])&&(!s||s(this.boxKeys[d])))return i.push(!0),!0}}var y=this.circleCells[o];if(null!==y)for(var v=this.circles,g=0,b=y;g<b.length;g+=1){var _=b[g];if(!c.circle[_]){c.circle[_]=!0;var x=3*_;if(this._circlesCollide(v[x],v[x+1],v[x+2],u.x,u.y,u.radius)&&(!s||s(this.circleKeys[_])))return i.push(!0),!0}}},Yt.prototype._forEachCell=function(t,e,r,n,o,i,a,s){for(var u=this._convertToXCellCoord(t),c=this._convertToYCellCoord(e),l=this._convertToXCellCoord(r),p=this._convertToYCellCoord(n),f=u;f<=l;f++)for(var h=c;h<=p;h++)if(o.call(this,t,e,r,n,this.xCellCount*h+f,i,a,s))return},Yt.prototype._convertToXCellCoord=function(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))},Yt.prototype._convertToYCellCoord=function(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))},Yt.prototype._circlesCollide=function(t,e,r,n,o,i){var a=n-t,s=o-e,u=r+i;return u*u>a*a+s*s},Yt.prototype._circleAndRectCollide=function(t,e,r,n,o,i,a){var s=(i-n)/2,u=Math.abs(t-(n+s));if(u>s+r)return!1;var c=(a-o)/2,l=Math.abs(e-(o+c));if(l>c+r)return!1;if(u<=s||l<=c)return!0;var p=u-s,f=l-c;return p*p+f*f<=r*r};var ue=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ce(t,e){for(var r=0;r<t;r++){var n=e.length;e.resize(n+4),e.float32.set(ue,3*n)}}function le(t,e,r){var n=e[0],o=e[1];return t[0]=r[0]*n+r[4]*o+r[12],t[1]=r[1]*n+r[5]*o+r[13],t[3]=r[3]*n+r[7]*o+r[15],t}var pe=function(t,e,r){void 0===e&&(e=new Yt(t.width+200,t.height+200,25)),void 0===r&&(r=new Yt(t.width+200,t.height+200,25)),this.transform=t,this.grid=e,this.ignoredGrid=r,this.pitchfactor=Math.cos(t._pitch)*t.cameraToCenterDistance,this.screenRightBoundary=t.width+100,this.screenBottomBoundary=t.height+100,this.gridRightBoundary=t.width+200,this.gridBottomBoundary=t.height+200};function fe(e,r,n){return r*(t.EXTENT/(e.tileSize*Math.pow(2,n-e.tileID.overscaledZ)))}pe.prototype.placeCollisionBox=function(t,e,r,n,o){var i=this.projectAndGetPerspectiveRatio(n,t.anchorPointX,t.anchorPointY),a=r*i.perspectiveRatio,s=t.x1*a+i.point.x,u=t.y1*a+i.point.y,c=t.x2*a+i.point.x,l=t.y2*a+i.point.y;return!this.isInsideGrid(s,u,c,l)||!e&&this.grid.hitTest(s,u,c,l,o)?{box:[],offscreen:!1}:{box:[s,u,c,l],offscreen:this.isOffscreen(s,u,c,l)}},pe.prototype.placeCollisionCircles=function(e,r,n,o,i,a,s,u,c,l,p,f,h){var d=[],m=new t.Point(r.anchorX,r.anchorY),y=Qt(m,a),v=te(this.transform.cameraToCenterDistance,y.signedDistanceFromCamera),g=(l?i/v:i*v)/t.ONE_EM,b=Qt(m,s).point,_=ne(g,o,r.lineOffsetX*g,r.lineOffsetY*g,!1,b,m,r,n,s,{}),x=!1,w=!1,O=!0;if(_){for(var E=.5*f*v+h,S=new t.Point(-100,-100),P=new t.Point(this.screenRightBoundary,this.screenBottomBoundary),j=new Kt,A=_.first,C=_.last,T=[],k=A.path.length-1;k>=1;k--)T.push(A.path[k]);for(var M=1;M<C.path.length;M++)T.push(C.path[M]);var I=2.5*E;if(u){var D=T.map((function(t){return Qt(t,u)}));T=D.some((function(t){return t.signedDistanceFromCamera<=0}))?[]:D.map((function(t){return t.point}))}var L=[];if(T.length>0){for(var R=T[0].clone(),z=T[0].clone(),N=1;N<T.length;N++)R.x=Math.min(R.x,T[N].x),R.y=Math.min(R.y,T[N].y),z.x=Math.max(z.x,T[N].x),z.y=Math.max(z.y,T[N].y);L=R.x>=S.x&&z.x<=P.x&&R.y>=S.y&&z.y<=P.y?[T]:z.x<S.x||R.x>P.x||z.y<S.y||R.y>P.y?[]:t.clipLine([T],S.x,S.y,P.x,P.y)}for(var F=0,B=L;F<B.length;F+=1){var V;j.reset(B[F],.25*E),V=j.length<=.5*E?1:Math.ceil(j.paddedLength/I)+1;for(var U=0;U<V;U++){var q=U/Math.max(V-1,1),$=j.lerp(q),G=$.x+100,W=$.y+100;d.push(G,W,E,0);var Z=G-E,H=W-E,K=G+E,Y=W+E;if(O=O&&this.isOffscreen(Z,H,K,Y),w=w||this.isInsideGrid(Z,H,K,Y),!e&&this.grid.hitTestCircle(G,W,E,p)&&(x=!0,!c))return{circles:[],offscreen:!1,collisionDetected:x}}}}return{circles:!c&&x||!w?[]:d,offscreen:O,collisionDetected:x}},pe.prototype.queryRenderedSymbols=function(e){if(0===e.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};for(var r=[],n=1/0,o=1/0,i=-1/0,a=-1/0,s=0,u=e;s<u.length;s+=1){var c=u[s],l=new t.Point(c.x+100,c.y+100);n=Math.min(n,l.x),o=Math.min(o,l.y),i=Math.max(i,l.x),a=Math.max(a,l.y),r.push(l)}for(var p={},f={},h=0,d=this.grid.query(n,o,i,a).concat(this.ignoredGrid.query(n,o,i,a));h<d.length;h+=1){var m=d[h],y=m.key;if(void 0===p[y.bucketInstanceId]&&(p[y.bucketInstanceId]={}),!p[y.bucketInstanceId][y.featureIndex]){var v=[new t.Point(m.x1,m.y1),new t.Point(m.x2,m.y1),new t.Point(m.x2,m.y2),new t.Point(m.x1,m.y2)];t.polygonIntersectsPolygon(r,v)&&(p[y.bucketInstanceId][y.featureIndex]=!0,void 0===f[y.bucketInstanceId]&&(f[y.bucketInstanceId]=[]),f[y.bucketInstanceId].push(y.featureIndex))}}return f},pe.prototype.insertCollisionBox=function(t,e,r,n,o){(e?this.ignoredGrid:this.grid).insert({bucketInstanceId:r,featureIndex:n,collisionGroupID:o},t[0],t[1],t[2],t[3])},pe.prototype.insertCollisionCircles=function(t,e,r,n,o){for(var i=e?this.ignoredGrid:this.grid,a={bucketInstanceId:r,featureIndex:n,collisionGroupID:o},s=0;s<t.length;s+=4)i.insertCircle(a,t[s],t[s+1],t[s+2])},pe.prototype.projectAndGetPerspectiveRatio=function(e,r,n){var o=[r,n,0,1];return le(o,o,e),{point:new t.Point((o[0]/o[3]+1)/2*this.transform.width+100,(-o[1]/o[3]+1)/2*this.transform.height+100),perspectiveRatio:.5+this.transform.cameraToCenterDistance/o[3]*.5}},pe.prototype.isOffscreen=function(t,e,r,n){return r<100||t>=this.screenRightBoundary||n<100||e>this.screenBottomBoundary},pe.prototype.isInsideGrid=function(t,e,r,n){return r>=0&&t<this.gridRightBoundary&&n>=0&&e<this.gridBottomBoundary},pe.prototype.getViewportMatrix=function(){var e=t.identity([]);return t.translate(e,e,[-100,-100,0]),e};var he=function(t,e,r,n){this.opacity=t?Math.max(0,Math.min(1,t.opacity+(t.placed?e:-e))):n&&r?1:0,this.placed=r};he.prototype.isHidden=function(){return 0===this.opacity&&!this.placed};var de=function(t,e,r,n,o){this.text=new he(t?t.text:null,e,r,o),this.icon=new he(t?t.icon:null,e,n,o)};de.prototype.isHidden=function(){return this.text.isHidden()&&this.icon.isHidden()};var me=function(t,e,r){this.text=t,this.icon=e,this.skipFade=r},ye=function(){this.invProjMatrix=t.create(),this.viewportMatrix=t.create(),this.circles=[]},ve=function(t,e,r,n,o){this.bucketInstanceId=t,this.featureIndex=e,this.sourceLayerIndex=r,this.bucketIndex=n,this.tileID=o},ge=function(t){this.crossSourceCollisions=t,this.maxGroupID=0,this.collisionGroups={}};function be(e,r,n,o,i){var a=t.getAnchorAlignment(e),s=-(a.horizontalAlign-.5)*r,u=-(a.verticalAlign-.5)*n,c=t.evaluateVariableOffset(e,o);return new t.Point(s+c[0]*i,u+c[1]*i)}function _e(e,r,n,o,i,a){var s=e.x1,u=e.x2,c=e.y1,l=e.y2,p=e.anchorPointX,f=e.anchorPointY,h=new t.Point(r,n);return o&&h._rotate(i?a:-a),{x1:s+h.x,y1:c+h.y,x2:u+h.x,y2:l+h.y,anchorPointX:p,anchorPointY:f}}ge.prototype.get=function(t){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[t]){var e=++this.maxGroupID;this.collisionGroups[t]={ID:e,predicate:function(t){return t.collisionGroupID===e}}}return this.collisionGroups[t]};var xe=function(t,e,r,n){this.transform=t.clone(),this.collisionIndex=new pe(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=e,this.retainedQueryData={},this.collisionGroups=new ge(r),this.collisionCircleArrays={},this.prevPlacement=n,n&&(n.prevPlacement=void 0),this.placedOrientations={}};function we(t,e,r,n,o){t.emplaceBack(e?1:0,r?1:0,n||0,o||0),t.emplaceBack(e?1:0,r?1:0,n||0,o||0),t.emplaceBack(e?1:0,r?1:0,n||0,o||0),t.emplaceBack(e?1:0,r?1:0,n||0,o||0)}xe.prototype.getBucketParts=function(e,r,n,o){var i=n.getBucket(r),a=n.latestFeatureIndex;if(i&&a&&r.id===i.layerIds[0]){var s=n.collisionBoxArray,u=i.layers[0].layout,c=Math.pow(2,this.transform.zoom-n.tileID.overscaledZ),l=n.tileSize/t.EXTENT,p=this.transform.calculatePosMatrix(n.tileID.toUnwrapped()),f="map"===u.get("text-pitch-alignment"),h="map"===u.get("text-rotation-alignment"),d=fe(n,1,this.transform.zoom),m=Xt(p,f,h,this.transform,d),y=null;if(f){var v=Jt(p,f,h,this.transform,d);y=t.multiply([],this.transform.labelPlaneMatrix,v)}this.retainedQueryData[i.bucketInstanceId]=new ve(i.bucketInstanceId,a,i.sourceLayerIndex,i.index,n.tileID);var g={bucket:i,layout:u,posMatrix:p,textLabelPlaneMatrix:m,labelToScreenMatrix:y,scale:c,textPixelRatio:l,holdingForFade:n.holdingForFade(),collisionBoxArray:s,partiallyEvaluatedTextSize:t.evaluateSizeForZoom(i.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(i.sourceID)};if(o)for(var b=0,_=i.sortKeyRanges;b<_.length;b+=1){var x=_[b];e.push({sortKey:x.sortKey,symbolInstanceStart:x.symbolInstanceStart,symbolInstanceEnd:x.symbolInstanceEnd,parameters:g})}else e.push({symbolInstanceStart:0,symbolInstanceEnd:i.symbolInstances.length,parameters:g})}},xe.prototype.attemptAnchorPlacement=function(t,e,r,n,o,i,a,s,u,c,l,p,f,h,d){var m,y=[p.textOffset0,p.textOffset1],v=be(t,r,n,y,o),g=this.collisionIndex.placeCollisionBox(_e(e,v.x,v.y,i,a,this.transform.angle),l,s,u,c.predicate);if(!d||0!==this.collisionIndex.placeCollisionBox(_e(d,v.x,v.y,i,a,this.transform.angle),l,s,u,c.predicate).box.length)return g.box.length>0?(this.prevPlacement&&this.prevPlacement.variableOffsets[p.crossTileID]&&this.prevPlacement.placements[p.crossTileID]&&this.prevPlacement.placements[p.crossTileID].text&&(m=this.prevPlacement.variableOffsets[p.crossTileID].anchor),this.variableOffsets[p.crossTileID]={textOffset:y,width:r,height:n,anchor:t,textBoxScale:o,prevAnchor:m},this.markUsedJustification(f,t,p,h),f.allowVerticalPlacement&&(this.markUsedOrientation(f,h,p),this.placedOrientations[p.crossTileID]=h),{shift:v,placedGlyphBoxes:g}):void 0},xe.prototype.placeLayerBucketPart=function(e,r,n){var o=this,i=e.parameters,a=i.bucket,s=i.layout,u=i.posMatrix,c=i.textLabelPlaneMatrix,l=i.labelToScreenMatrix,p=i.textPixelRatio,f=i.holdingForFade,h=i.collisionBoxArray,d=i.partiallyEvaluatedTextSize,m=i.collisionGroup,y=s.get("text-optional"),v=s.get("icon-optional"),g=s.get("text-allow-overlap"),b=s.get("icon-allow-overlap"),_="map"===s.get("text-rotation-alignment"),x="map"===s.get("text-pitch-alignment"),w="none"!==s.get("icon-text-fit"),O="viewport-y"===s.get("symbol-z-order"),E=g&&(b||!a.hasIconData()||v),S=b&&(g||!a.hasTextData()||y);!a.collisionArrays&&h&&a.deserializeCollisionBoxes(h);var P=function(e,i){if(!r[e.crossTileID])if(f)o.placements[e.crossTileID]=new me(!1,!1,!1);else{var h,O=!1,P=!1,j=!0,A=null,C={box:null,offscreen:null},T={box:null,offscreen:null},k=null,M=null,I=0,D=0,L=0;i.textFeatureIndex?I=i.textFeatureIndex:e.useRuntimeCollisionCircles&&(I=e.featureIndex),i.verticalTextFeatureIndex&&(D=i.verticalTextFeatureIndex);var R=i.textBox;if(R){var z=function(r){var n=t.WritingMode.horizontal;if(a.allowVerticalPlacement&&!r&&o.prevPlacement){var i=o.prevPlacement.placedOrientations[e.crossTileID];i&&(o.placedOrientations[e.crossTileID]=i,o.markUsedOrientation(a,n=i,e))}return n},N=function(r,n){if(a.allowVerticalPlacement&&e.numVerticalGlyphVertices>0&&i.verticalTextBox)for(var o=0,s=a.writingModes;o<s.length&&(s[o]===t.WritingMode.vertical?(C=n(),T=C):C=r(),!(C&&C.box&&C.box.length));o+=1);else C=r()};if(s.get("text-variable-anchor")){var F=s.get("text-variable-anchor");if(o.prevPlacement&&o.prevPlacement.variableOffsets[e.crossTileID]){var B=o.prevPlacement.variableOffsets[e.crossTileID];F.indexOf(B.anchor)>0&&(F=F.filter((function(t){return t!==B.anchor}))).unshift(B.anchor)}var V=function(t,r,n){for(var i=t.x2-t.x1,s=t.y2-t.y1,c=e.textBoxScale,l=w&&!b?r:null,f={box:[],offscreen:!1},h=g?2*F.length:F.length,d=0;d<h;++d){var y=o.attemptAnchorPlacement(F[d%F.length],t,i,s,c,_,x,p,u,m,d>=F.length,e,a,n,l);if(y&&(f=y.placedGlyphBoxes)&&f.box&&f.box.length){O=!0,A=y.shift;break}}return f};N((function(){return V(R,i.iconBox,t.WritingMode.horizontal)}),(function(){var r=i.verticalTextBox;return a.allowVerticalPlacement&&!(C&&C.box&&C.box.length)&&e.numVerticalGlyphVertices>0&&r?V(r,i.verticalIconBox,t.WritingMode.vertical):{box:null,offscreen:null}})),C&&(O=C.box,j=C.offscreen);var U=z(C&&C.box);if(!O&&o.prevPlacement){var q=o.prevPlacement.variableOffsets[e.crossTileID];q&&(o.variableOffsets[e.crossTileID]=q,o.markUsedJustification(a,q.anchor,e,U))}}else{var $=function(t,r){var n=o.collisionIndex.placeCollisionBox(t,g,p,u,m.predicate);return n&&n.box&&n.box.length&&(o.markUsedOrientation(a,r,e),o.placedOrientations[e.crossTileID]=r),n};N((function(){return $(R,t.WritingMode.horizontal)}),(function(){var r=i.verticalTextBox;return a.allowVerticalPlacement&&e.numVerticalGlyphVertices>0&&r?$(r,t.WritingMode.vertical):{box:null,offscreen:null}})),z(C&&C.box&&C.box.length)}}if(O=(h=C)&&h.box&&h.box.length>0,j=h&&h.offscreen,e.useRuntimeCollisionCircles){var G=a.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex),W=t.evaluateSizeForFeature(a.textSizeData,d,G),Z=s.get("text-padding");k=o.collisionIndex.placeCollisionCircles(g,G,a.lineVertexArray,a.glyphOffsetArray,W,u,c,l,n,x,m.predicate,e.collisionCircleDiameter,Z),O=g||k.circles.length>0&&!k.collisionDetected,j=j&&k.offscreen}if(i.iconFeatureIndex&&(L=i.iconFeatureIndex),i.iconBox){var H=function(t){var e=w&&A?_e(t,A.x,A.y,_,x,o.transform.angle):t;return o.collisionIndex.placeCollisionBox(e,b,p,u,m.predicate)};P=T&&T.box&&T.box.length&&i.verticalIconBox?(M=H(i.verticalIconBox)).box.length>0:(M=H(i.iconBox)).box.length>0,j=j&&M.offscreen}var K=y||0===e.numHorizontalGlyphVertices&&0===e.numVerticalGlyphVertices,Y=v||0===e.numIconVertices;if(K||Y?Y?K||(P=P&&O):O=P&&O:P=O=P&&O,O&&h&&h.box&&o.collisionIndex.insertCollisionBox(h.box,s.get("text-ignore-placement"),a.bucketInstanceId,T&&T.box&&D?D:I,m.ID),P&&M&&o.collisionIndex.insertCollisionBox(M.box,s.get("icon-ignore-placement"),a.bucketInstanceId,L,m.ID),k&&(O&&o.collisionIndex.insertCollisionCircles(k.circles,s.get("text-ignore-placement"),a.bucketInstanceId,I,m.ID),n)){var X=a.bucketInstanceId,J=o.collisionCircleArrays[X];void 0===J&&(J=o.collisionCircleArrays[X]=new ye);for(var Q=0;Q<k.circles.length;Q+=4)J.circles.push(k.circles[Q+0]),J.circles.push(k.circles[Q+1]),J.circles.push(k.circles[Q+2]),J.circles.push(k.collisionDetected?1:0)}o.placements[e.crossTileID]=new me(O||E,P||S,j||a.justReloaded),r[e.crossTileID]=!0}};if(O)for(var j=a.getSortedSymbolIndexes(this.transform.angle),A=j.length-1;A>=0;--A){var C=j[A];P(a.symbolInstances.get(C),a.collisionArrays[C])}else for(var T=e.symbolInstanceStart;T<e.symbolInstanceEnd;T++)P(a.symbolInstances.get(T),a.collisionArrays[T]);if(n&&a.bucketInstanceId in this.collisionCircleArrays){var k=this.collisionCircleArrays[a.bucketInstanceId];t.invert(k.invProjMatrix,u),k.viewportMatrix=this.collisionIndex.getViewportMatrix()}a.justReloaded=!1},xe.prototype.markUsedJustification=function(e,r,n,o){var i;i=o===t.WritingMode.vertical?n.verticalPlacedTextSymbolIndex:{left:n.leftJustifiedTextSymbolIndex,center:n.centerJustifiedTextSymbolIndex,right:n.rightJustifiedTextSymbolIndex}[t.getAnchorJustification(r)];for(var a=0,s=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex,n.verticalPlacedTextSymbolIndex];a<s.length;a+=1){var u=s[a];u>=0&&(e.text.placedSymbolArray.get(u).crossTileID=i>=0&&u!==i?0:n.crossTileID)}},xe.prototype.markUsedOrientation=function(e,r,n){for(var o=r===t.WritingMode.horizontal||r===t.WritingMode.horizontalOnly?r:0,i=r===t.WritingMode.vertical?r:0,a=0,s=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex];a<s.length;a+=1)e.text.placedSymbolArray.get(s[a]).placedOrientation=o;n.verticalPlacedTextSymbolIndex&&(e.text.placedSymbolArray.get(n.verticalPlacedTextSymbolIndex).placedOrientation=i)},xe.prototype.commit=function(t){this.commitTime=t,this.zoomAtLastRecencyCheck=this.transform.zoom;var e=this.prevPlacement,r=!1;this.prevZoomAdjustment=e?e.zoomAdjustment(this.transform.zoom):0;var n=e?e.symbolFadeChange(t):1,o=e?e.opacities:{},i=e?e.variableOffsets:{},a=e?e.placedOrientations:{};for(var s in this.placements){var u=this.placements[s],c=o[s];c?(this.opacities[s]=new de(c,n,u.text,u.icon),r=r||u.text!==c.text.placed||u.icon!==c.icon.placed):(this.opacities[s]=new de(null,n,u.text,u.icon,u.skipFade),r=r||u.text||u.icon)}for(var l in o){var p=o[l];if(!this.opacities[l]){var f=new de(p,n,!1,!1);f.isHidden()||(this.opacities[l]=f,r=r||p.text.placed||p.icon.placed)}}for(var h in i)this.variableOffsets[h]||!this.opacities[h]||this.opacities[h].isHidden()||(this.variableOffsets[h]=i[h]);for(var d in a)this.placedOrientations[d]||!this.opacities[d]||this.opacities[d].isHidden()||(this.placedOrientations[d]=a[d]);r?this.lastPlacementChangeTime=t:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=e?e.lastPlacementChangeTime:t)},xe.prototype.updateLayerOpacities=function(t,e){for(var r={},n=0,o=e;n<o.length;n+=1){var i=o[n],a=i.getBucket(t);a&&i.latestFeatureIndex&&t.id===a.layerIds[0]&&this.updateBucketOpacities(a,r,i.collisionBoxArray)}},xe.prototype.updateBucketOpacities=function(e,r,n){var o=this;e.hasTextData()&&e.text.opacityVertexArray.clear(),e.hasIconData()&&e.icon.opacityVertexArray.clear(),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexArray.clear(),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexArray.clear();var i=e.layers[0].layout,a=new de(null,0,!1,!1,!0),s=i.get("text-allow-overlap"),u=i.get("icon-allow-overlap"),c=i.get("text-variable-anchor"),l="map"===i.get("text-rotation-alignment"),p="map"===i.get("text-pitch-alignment"),f="none"!==i.get("icon-text-fit"),h=new de(null,0,s&&(u||!e.hasIconData()||i.get("icon-optional")),u&&(s||!e.hasTextData()||i.get("text-optional")),!0);!e.collisionArrays&&n&&(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData())&&e.deserializeCollisionBoxes(n);for(var d=function(t,e,r){for(var n=0;n<e/4;n++)t.opacityVertexArray.emplaceBack(r)},m=function(n){var i=e.symbolInstances.get(n),s=i.numHorizontalGlyphVertices,u=i.numVerticalGlyphVertices,m=i.crossTileID,y=o.opacities[m];r[m]?y=a:y||(o.opacities[m]=y=h),r[m]=!0;var v=i.numIconVertices>0,g=o.placedOrientations[i.crossTileID],b=g===t.WritingMode.vertical,_=g===t.WritingMode.horizontal||g===t.WritingMode.horizontalOnly;if(s>0||u>0){var x=Te(y.text);d(e.text,s,b?ke:x),d(e.text,u,_?ke:x);var w=y.text.isHidden();[i.rightJustifiedTextSymbolIndex,i.centerJustifiedTextSymbolIndex,i.leftJustifiedTextSymbolIndex].forEach((function(t){t>=0&&(e.text.placedSymbolArray.get(t).hidden=w||b?1:0)})),i.verticalPlacedTextSymbolIndex>=0&&(e.text.placedSymbolArray.get(i.verticalPlacedTextSymbolIndex).hidden=w||_?1:0);var O=o.variableOffsets[i.crossTileID];O&&o.markUsedJustification(e,O.anchor,i,g);var E=o.placedOrientations[i.crossTileID];E&&(o.markUsedJustification(e,"left",i,E),o.markUsedOrientation(e,E,i))}if(v){var S=Te(y.icon),P=!(f&&i.verticalPlacedIconSymbolIndex&&b);i.placedIconSymbolIndex>=0&&(d(e.icon,i.numIconVertices,P?S:ke),e.icon.placedSymbolArray.get(i.placedIconSymbolIndex).hidden=y.icon.isHidden()),i.verticalPlacedIconSymbolIndex>=0&&(d(e.icon,i.numVerticalIconVertices,P?ke:S),e.icon.placedSymbolArray.get(i.verticalPlacedIconSymbolIndex).hidden=y.icon.isHidden())}if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){var j=e.collisionArrays[n];if(j){var A=new t.Point(0,0);if(j.textBox||j.verticalTextBox){var C=!0;if(c){var T=o.variableOffsets[m];T?(A=be(T.anchor,T.width,T.height,T.textOffset,T.textBoxScale),l&&A._rotate(p?o.transform.angle:-o.transform.angle)):C=!1}j.textBox&&we(e.textCollisionBox.collisionVertexArray,y.text.placed,!C||b,A.x,A.y),j.verticalTextBox&&we(e.textCollisionBox.collisionVertexArray,y.text.placed,!C||_,A.x,A.y)}var k=Boolean(!_&&j.verticalIconBox);j.iconBox&&we(e.iconCollisionBox.collisionVertexArray,y.icon.placed,k,f?A.x:0,f?A.y:0),j.verticalIconBox&&we(e.iconCollisionBox.collisionVertexArray,y.icon.placed,!k,f?A.x:0,f?A.y:0)}}},y=0;y<e.symbolInstances.length;y++)m(y);if(e.sortFeatures(this.transform.angle),this.retainedQueryData[e.bucketInstanceId]&&(this.retainedQueryData[e.bucketInstanceId].featureSortOrder=e.featureSortOrder),e.hasTextData()&&e.text.opacityVertexBuffer&&e.text.opacityVertexBuffer.updateData(e.text.opacityVertexArray),e.hasIconData()&&e.icon.opacityVertexBuffer&&e.icon.opacityVertexBuffer.updateData(e.icon.opacityVertexArray),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexBuffer&&e.iconCollisionBox.collisionVertexBuffer.updateData(e.iconCollisionBox.collisionVertexArray),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexBuffer&&e.textCollisionBox.collisionVertexBuffer.updateData(e.textCollisionBox.collisionVertexArray),e.bucketInstanceId in this.collisionCircleArrays){var v=this.collisionCircleArrays[e.bucketInstanceId];e.placementInvProjMatrix=v.invProjMatrix,e.placementViewportMatrix=v.viewportMatrix,e.collisionCircleArray=v.circles,delete this.collisionCircleArrays[e.bucketInstanceId]}},xe.prototype.symbolFadeChange=function(t){return 0===this.fadeDuration?1:(t-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment},xe.prototype.zoomAdjustment=function(t){return Math.max(0,(this.transform.zoom-t)/1.5)},xe.prototype.hasTransitions=function(t){return this.stale||t-this.lastPlacementChangeTime<this.fadeDuration},xe.prototype.stillRecent=function(t,e){var r=this.zoomAtLastRecencyCheck===e?1-this.zoomAdjustment(e):1;return this.zoomAtLastRecencyCheck=e,this.commitTime+this.fadeDuration*r>t},xe.prototype.setStale=function(){this.stale=!0};var Oe=Math.pow(2,25),Ee=Math.pow(2,24),Se=Math.pow(2,17),Pe=Math.pow(2,16),je=Math.pow(2,9),Ae=Math.pow(2,8),Ce=Math.pow(2,1);function Te(t){if(0===t.opacity&&!t.placed)return 0;if(1===t.opacity&&t.placed)return 4294967295;var e=t.placed?1:0,r=Math.floor(127*t.opacity);return r*Oe+e*Ee+r*Se+e*Pe+r*je+e*Ae+r*Ce+e}var ke=0,Me=function(t){this._sortAcrossTiles="viewport-y"!==t.layout.get("symbol-z-order")&&!t.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Me.prototype.continuePlacement=function(t,e,r,n,o){for(var i=this._bucketParts;this._currentTileIndex<t.length;)if(e.getBucketParts(i,n,t[this._currentTileIndex],this._sortAcrossTiles),this._currentTileIndex++,o())return!0;for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,i.sort((function(t,e){return t.sortKey-e.sortKey})));this._currentPartIndex<i.length;)if(e.placeLayerBucketPart(i[this._currentPartIndex],this._seenCrossTileIDs,r),this._currentPartIndex++,o())return!0;return!1};var Ie=function(t,e,r,n,o,i,a){this.placement=new xe(t,o,i,a),this._currentPlacementIndex=e.length-1,this._forceFullPlacement=r,this._showCollisionBoxes=n,this._done=!1};Ie.prototype.isDone=function(){return this._done},Ie.prototype.continuePlacement=function(e,r,n){for(var o=this,i=t.browser.now(),a=function(){var e=t.browser.now()-i;return!o._forceFullPlacement&&e>2};this._currentPlacementIndex>=0;){var s=r[e[this._currentPlacementIndex]],u=this.placement.collisionIndex.transform.zoom;if("symbol"===s.type&&(!s.minzoom||s.minzoom<=u)&&(!s.maxzoom||s.maxzoom>u)){if(this._inProgressLayer||(this._inProgressLayer=new Me(s)),this._inProgressLayer.continuePlacement(n[s.source],this.placement,this._showCollisionBoxes,s,a))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Ie.prototype.commit=function(t){return this.placement.commit(t),this.placement};var De=512/t.EXTENT/2,Le=function(t,e,r){this.tileID=t,this.indexedSymbolInstances={},this.bucketInstanceId=r;for(var n=0;n<e.length;n++){var o=e.get(n),i=o.key;this.indexedSymbolInstances[i]||(this.indexedSymbolInstances[i]=[]),this.indexedSymbolInstances[i].push({crossTileID:o.crossTileID,coord:this.getScaledCoordinates(o,t)})}};Le.prototype.getScaledCoordinates=function(e,r){var n=De/Math.pow(2,r.canonical.z-this.tileID.canonical.z);return{x:Math.floor((r.canonical.x*t.EXTENT+e.anchorX)*n),y:Math.floor((r.canonical.y*t.EXTENT+e.anchorY)*n)}},Le.prototype.findMatches=function(t,e,r){for(var n=this.tileID.canonical.z<e.canonical.z?1:Math.pow(2,this.tileID.canonical.z-e.canonical.z),o=0;o<t.length;o++){var i=t.get(o);if(!i.crossTileID){var a=this.indexedSymbolInstances[i.key];if(a)for(var s=this.getScaledCoordinates(i,e),u=0,c=a;u<c.length;u+=1){var l=c[u];if(Math.abs(l.coord.x-s.x)<=n&&Math.abs(l.coord.y-s.y)<=n&&!r[l.crossTileID]){r[l.crossTileID]=!0,i.crossTileID=l.crossTileID;break}}}}};var Re=function(){this.maxCrossTileID=0};Re.prototype.generate=function(){return++this.maxCrossTileID};var ze=function(){this.indexes={},this.usedCrossTileIDs={},this.lng=0};ze.prototype.handleWrapJump=function(t){var e=Math.round((t-this.lng)/360);if(0!==e)for(var r in this.indexes){var n=this.indexes[r],o={};for(var i in n){var a=n[i];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+e),o[a.tileID.key]=a}this.indexes[r]=o}this.lng=t},ze.prototype.addBucket=function(t,e,r){if(this.indexes[t.overscaledZ]&&this.indexes[t.overscaledZ][t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===e.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(var n=0;n<e.symbolInstances.length;n++)e.symbolInstances.get(n).crossTileID=0;this.usedCrossTileIDs[t.overscaledZ]||(this.usedCrossTileIDs[t.overscaledZ]={});var o=this.usedCrossTileIDs[t.overscaledZ];for(var i in this.indexes){var a=this.indexes[i];if(Number(i)>t.overscaledZ)for(var s in a){var u=a[s];u.tileID.isChildOf(t)&&u.findMatches(e.symbolInstances,t,o)}else{var c=a[t.scaledTo(Number(i)).key];c&&c.findMatches(e.symbolInstances,t,o)}}for(var l=0;l<e.symbolInstances.length;l++){var p=e.symbolInstances.get(l);p.crossTileID||(p.crossTileID=r.generate(),o[p.crossTileID]=!0)}return void 0===this.indexes[t.overscaledZ]&&(this.indexes[t.overscaledZ]={}),this.indexes[t.overscaledZ][t.key]=new Le(t,e.symbolInstances,e.bucketInstanceId),!0},ze.prototype.removeBucketCrossTileIDs=function(t,e){for(var r in e.indexedSymbolInstances)for(var n=0,o=e.indexedSymbolInstances[r];n<o.length;n+=1)delete this.usedCrossTileIDs[t][o[n].crossTileID]},ze.prototype.removeStaleBuckets=function(t){var e=!1;for(var r in this.indexes){var n=this.indexes[r];for(var o in n)t[n[o].bucketInstanceId]||(this.removeBucketCrossTileIDs(r,n[o]),delete n[o],e=!0)}return e};var Ne=function(){this.layerIndexes={},this.crossTileIDs=new Re,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}};Ne.prototype.addLayer=function(t,e,r){var n=this.layerIndexes[t.id];void 0===n&&(n=this.layerIndexes[t.id]=new ze);var o=!1,i={};n.handleWrapJump(r);for(var a=0,s=e;a<s.length;a+=1){var u=s[a],c=u.getBucket(t);c&&t.id===c.layerIds[0]&&(c.bucketInstanceId||(c.bucketInstanceId=++this.maxBucketInstanceId),n.addBucket(u.tileID,c,this.crossTileIDs)&&(o=!0),i[c.bucketInstanceId]=!0)}return n.removeStaleBuckets(i)&&(o=!0),o},Ne.prototype.pruneUnusedLayers=function(t){var e={};for(var r in t.forEach((function(t){e[t]=!0})),this.layerIndexes)e[r]||delete this.layerIndexes[r]};var Fe=function(e,r){return t.emitValidationErrors(e,r&&r.filter((function(t){return"source.canvas"!==t.identifier})))},Be=t.pick(Vt,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData"]),Ve=t.pick(Vt,["setCenter","setZoom","setBearing","setP
1itch"]),Ue=function(){var e={},r=t.styleSpec.$version;for(var n in t.styleSpec.$root){var o,i=t.styleSpec.$root[n];i.required&&null!=(o="version"===n?r:"array"===i.type?[]:{})&&(e[n]=o)}return e}(),qe=function(e){function r(n,o){var i=this;void 0===o&&(o={}),e.call(this),this.map=n,this.dispatcher=new E(Nt(),this),this.imageManager=new f,this.imageManager.setEventedParent(this),this.glyphManager=new b(n._requestManager,o.localIdeographFontFamily),this.lineAtlas=new O(256,512),this.crossTileSymbolIndex=new Ne,this._layers={},this._serializedLayers={},this._order=[],this.sourceCaches={},this.zoomHistory=new t.ZoomHistory,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("setReferrer",t.getReferrer());var a=this;this._rtlTextPluginCallback=r.registerForPluginStateChange((function(e){a.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:e.pluginStatus,pluginURL:e.pluginURL},(function(e,r){if(t.triggerPluginCompletionEvent(e),r&&r.every((function(t){return t})))for(var n in a.sourceCaches)a.sourceCaches[n].reload()}))})),this.on("data",(function(t){if("source"===t.dataType&&"metadata"===t.sourceDataType){var e=i.sourceCaches[t.sourceId];if(e){var r=e.getSource();if(r&&r.vectorLayerIds)for(var n in i._layers){var o=i._layers[n];o.source===r.id&&i._validateLayer(o)}}}}))}return e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r,r.prototype.loadURL=function(e,r){var n=this;void 0===r&&(r={}),this.fire(new t.Event("dataloading",{dataType:"style"}));var o="boolean"==typeof r.validate?r.validate:!t.isMapboxURL(e);e=this.map._requestManager.normalizeStyleURL(e,r.accessToken);var i=this.map._requestManager.transformRequest(e,t.ResourceType.Style);this._request=t.getJSON(i,(function(e,r){n._request=null,e?n.fire(new t.ErrorEvent(e)):r&&n._load(r,o)}))},r.prototype.loadJSON=function(e,r){var n=this;void 0===r&&(r={}),this.fire(new t.Event("dataloading",{dataType:"style"})),this._request=t.browser.frame((function(){n._request=null,n._load(e,!1!==r.validate)}))},r.prototype.loadEmpty=function(){this.fire(new t.Event("dataloading",{dataType:"style"})),this._load(Ue,!1)},r.prototype._load=function(e,r){if(!r||!Fe(this,t.validateStyle(e))){for(var n in this._loaded=!0,this.stylesheet=e,e.sources)this.addSource(n,e.sources[n],{validate:!1});e.sprite?this._loadSprite(e.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(e.glyphs);var o=Bt(this.stylesheet.layers);this._order=o.map((function(t){return t.id})),this._layers={},this._serializedLayers={};for(var i=0,a=o;i<a.length;i+=1){var s=a[i];(s=t.createStyleLayer(s)).setEventedParent(this,{layer:{id:s.id}}),this._layers[s.id]=s,this._serializedLayers[s.id]=s.serialize()}this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new w(this.stylesheet.light),this.fire(new t.Event("data",{dataType:"style"})),this.fire(new t.Event("style.load"))}},r.prototype._loadSprite=function(e){var r=this;this._spriteRequest=function(e,r,n){var o,i,a,s=t.browser.devicePixelRatio>1?"@2x":"",u=t.getJSON(r.transformRequest(r.normalizeSpriteURL(e,s,".json"),t.ResourceType.SpriteJSON),(function(t,e){u=null,a||(a=t,o=e,l())})),c=t.getImage(r.transformRequest(r.normalizeSpriteURL(e,s,".png"),t.ResourceType.SpriteImage),(function(t,e){c=null,a||(a=t,i=e,l())}));function l(){if(a)n(a);else if(o&&i){var e=t.browser.getImageData(i),r={};for(var s in o){var u=o[s],c=u.width,l=u.height,p=u.x,f=u.y,h=u.sdf,d=u.pixelRatio,m=u.stretchX,y=u.stretchY,v=u.content,g=new t.RGBAImage({width:c,height:l});t.RGBAImage.copy(e,g,{x:p,y:f},{x:0,y:0},{width:c,height:l}),r[s]={data:g,pixelRatio:d,sdf:h,stretchX:m,stretchY:y,content:v}}n(null,r)}}return{cancel:function(){u&&(u.cancel(),u=null),c&&(c.cancel(),c=null)}}}(e,this.map._requestManager,(function(e,n){if(r._spriteRequest=null,e)r.fire(new t.ErrorEvent(e));else if(n)for(var o in n)r.imageManager.addImage(o,n[o]);r.imageManager.setLoaded(!0),r._availableImages=r.imageManager.listImages(),r.dispatcher.broadcast("setImages",r._availableImages),r.fire(new t.Event("data",{dataType:"style"}))}))},r.prototype._validateLayer=function(e){var r=this.sourceCaches[e.source];if(r){var n=e.sourceLayer;if(n){var o=r.getSource();("geojson"===o.type||o.vectorLayerIds&&-1===o.vectorLayerIds.indexOf(n))&&this.fire(new t.ErrorEvent(new Error('Source layer "'+n+'" does not exist on source "'+o.id+'" as specified by style layer "'+e.id+'"')))}}},r.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()},r.prototype._serializeLayers=function(t){for(var e=[],r=0,n=t;r<n.length;r+=1){var o=this._layers[n[r]];"custom"!==o.type&&e.push(o.serialize())}return e},r.prototype.hasTransitions=function(){if(this.light&&this.light.hasTransition())return!0;for(var t in this.sourceCaches)if(this.sourceCaches[t].hasTransition())return!0;for(var e in this._layers)if(this._layers[e].hasTransition())return!0;return!1},r.prototype._checkLoaded=function(){if(!this._loaded)throw new Error("Style is not done loading")},r.prototype.update=function(e){if(this._loaded){var r=this._changed;if(this._changed){var n=Object.keys(this._updatedLayers),o=Object.keys(this._removedLayers);for(var i in(n.length||o.length)&&this._updateWorkerLayers(n,o),this._updatedSources){var a=this._updatedSources[i];"reload"===a?this._reloadSource(i):"clear"===a&&this._clearSource(i)}for(var s in this._updateTilesForChangedImages(),this._updatedPaintProps)this._layers[s].updateTransitions(e);this.light.updateTransitions(e),this._resetUpdates()}var u={};for(var c in this.sourceCaches){var l=this.sourceCaches[c];u[c]=l.used,l.used=!1}for(var p=0,f=this._order;p<f.length;p+=1){var h=this._layers[f[p]];h.recalculate(e,this._availableImages),!h.isHidden(e.zoom)&&h.source&&(this.sourceCaches[h.source].used=!0)}for(var d in u){var m=this.sourceCaches[d];u[d]!==m.used&&m.fire(new t.Event("data",{sourceDataType:"visibility",dataType:"source",sourceId:d}))}this.light.recalculate(e),this.z=e.zoom,r&&this.fire(new t.Event("data",{dataType:"style"}))}},r.prototype._updateTilesForChangedImages=function(){var t=Object.keys(this._changedImages);if(t.length){for(var e in this.sourceCaches)this.sourceCaches[e].reloadTilesForDependencies(["icons","patterns"],t);this._changedImages={}}},r.prototype._updateWorkerLayers=function(t,e){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(t),removedIds:e})},r.prototype._resetUpdates=function(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}},r.prototype.setState=function(e){var r=this;if(this._checkLoaded(),Fe(this,t.validateStyle(e)))return!1;
vendor: 6,108 bytes, line 1
1(e=t.clone$1(e)).layers=Bt(e.layers);var n=function(e,r){if(!e)return[{command:Vt.setStyle,args:[r]}];var n=[];try{if(!t.deepEqual(e.version,r.version))return[{command:Vt.setStyle,args:[r]}];t.deepEqual(e.center,r.center)||n.push({command:Vt.setCenter,args:[r.center]}),t.deepEqual(e.zoom,r.zoom)||n.push({command:Vt.setZoom,args:[r.zoom]}),t.deepEqual(e.bearing,r.bearing)||n.push({command:Vt.setBearing,args:[r.bearing]}),t.deepEqual(e.pitch,r.pitch)||n.push({command:Vt.setPitch,args:[r.pitch]}),t.deepEqual(e.sprite,r.sprite)||n.push({command:Vt.setSprite,args:[r.sprite]}),t.deepEqual(e.glyphs,r.glyphs)||n.push({command:Vt.setGlyphs,args:[r.glyphs]}),t.deepEqual(e.transition,r.transition)||n.push({command:Vt.setTransition,args:[r.transition]}),t.deepEqual(e.light,r.light)||n.push({command:Vt.setLight,args:[r.light]});var o={},i=[];!function(e,r,n,o){var i;for(i in r=r||{},e=e||{})e.hasOwnProperty(i)&&(r.hasOwnProperty(i)||qt(i,n,o));for(i in r)r.hasOwnProperty(i)&&(e.hasOwnProperty(i)?t.deepEqual(e[i],r[i])||("geojson"===e[i].type&&"geojson"===r[i].type&&Gt(e,r,i)?n.push({command:Vt.setGeoJSONSourceData,args:[i,r[i].data]}):$t(i,r,n,o)):Ut(i,r,n))}(e.sources,r.sources,i,o);var a=[];e.layers&&e.layers.forEach((function(t){o[t.source]?n.push({command:Vt.removeLayer,args:[t.id]}):a.push(t)})),n=n.concat(i),function(e,r,n){r=r||[];var o,i,a,s,u,c,l,p=(e=e||[]).map(Zt),f=r.map(Zt),h=e.reduce(Ht,{}),d=r.reduce(Ht,{}),m=p.slice(),y=Object.create(null);for(o=0,i=0;o<p.length;o++)d.hasOwnProperty(a=p[o])?i++:(n.push({command:Vt.removeLayer,args:[a]}),m.splice(m.indexOf(a,i),1));for(o=0,i=0;o<f.length;o++)m[m.length-1-o]!==(a=f[f.length-1-o])&&(h.hasOwnProperty(a)?(n.push({command:Vt.removeLayer,args:[a]}),m.splice(m.lastIndexOf(a,m.length-i),1)):i++,n.push({command:Vt.addLayer,args:[d[a],c=m[m.length-o]]}),m.splice(m.length-o,0,a),y[a]=!0);for(o=0;o<f.length;o++)if(s=h[a=f[o]],u=d[a],!y[a]&&!t.deepEqual(s,u))if(t.deepEqual(s.source,u.source)&&t.deepEqual(s["source-layer"],u["source-layer"])&&t.deepEqual(s.type,u.type)){for(l in Wt(s.layout,u.layout,n,a,null,Vt.setLayoutProperty),Wt(s.paint,u.paint,n,a,null,Vt.setPaintProperty),t.deepEqual(s.filter,u.filter)||n.push({command:Vt.setFilter,args:[a,u.filter]}),t.deepEqual(s.minzoom,u.minzoom)&&t.deepEqual(s.maxzoom,u.maxzoom)||n.push({command:Vt.setLayerZoomRange,args:[a,u.minzoom,u.maxzoom]}),s)s.hasOwnProperty(l)&&"layout"!==l&&"paint"!==l&&"filter"!==l&&"metadata"!==l&&"minzoom"!==l&&"maxzoom"!==l&&(0===l.indexOf("paint.")?Wt(s[l],u[l],n,a,l.slice(6),Vt.setPaintProperty):t.deepEqual(s[l],u[l])||n.push({command:Vt.setLayerProperty,args:[a,l,u[l]]}));for(l in u)u.hasOwnProperty(l)&&!s.hasOwnProperty(l)&&"layout"!==l&&"paint"!==l&&"filter"!==l&&"metadata"!==l&&"minzoom"!==l&&"maxzoom"!==l&&(0===l.indexOf("paint.")?Wt(s[l],u[l],n,a,l.slice(6),Vt.setPaintProperty):t.deepEqual(s[l],u[l])||n.push({command:Vt.setLayerProperty,args:[a,l,u[l]]}))}else n.push({command:Vt.removeLayer,args:[a]}),c=m[m.lastIndexOf(a)+1],n.push({command:Vt.addLayer,args:[u,c]})}(a,r.layers,n)}catch(t){console.warn("Unable to compute style diff:",t),n=[{command:Vt.setStyle,args:[r]}]}return n}(this.serialize(),e).filter((function(t){return!(t.command in Ve)}));if(0===n.length)return!1;var o=n.filter((function(t){return!(t.command in Be)}));if(o.length>0)throw new Error("Unimplemented: "+o.map((function(t){return t.command})).join(", ")+".");return n.forEach((function(t){"setTransition"!==t.command&&r[t.command].apply(r,t.args)})),this.stylesheet=e,!0},r.prototype.addImage=function(e,r){if(this.getImage(e))return this.fire(new t.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(e,r),this._afterImageUpdated(e)},r.prototype.updateImage=function(t,e){this.imageManager.updateImage(t,e)},r.prototype.getImage=function(t){return this.imageManager.getImage(t)},r.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)},r.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"}))},r.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},r.prototype.addSource=function(e,r,n){var o=this;if(void 0===n&&(n={}),this._checkLoaded(),void 0!==this.sourceCaches[e])throw new Error("There is already a source with this ID");if(!r.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(r).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(r.type)>=0&&this._validate(t.validateStyle.source,"sources."+e,r,null,n))){this.map&&this.map._collectResourceTiming&&(r.collectResourceTiming=!0);var i=this.sourceCaches[e]=new Tt(e,r,this.dispatcher);i.style=this,i.setEventedParent(this,(function(){return{isSourceLoaded:o.loaded(),source:i.serialize(),sourceId:e}})),i.onAdd(this.map),this._changed=!0}},r.prototype.removeSource=function(e){if(this._checkLoaded(),void 0===this.sourceCaches[e])throw new Error("There is no source with this ID");for(var r in this._layers)if(this._layers[r].source===e)return this.fire(new t.ErrorEvent(new Error('Source "'+e+'" cannot be removed while layer "'+r+'" is using it.')));var n=this.sourceCaches[e];delete this.sourceCaches[e],delete this._updatedSources[e],n.fire(new t.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:e})),n.setEventedParent(null),n.clearTiles(),n.onRemove&&n.onRemove(this.map),this._changed=!0},r.prototype.setGeoJSONSourceData=function(t,e){this._checkLoaded(),this.sourceCaches[t].getSource().setData(e),this._changed=!0},r.prototype.getSource=function(t){return this.sourceCaches[t]&&this.sourceCaches[t].getSource()},r.prototype.addLayer=function(e,r,n){void 0===n&&(n={}),this._checkLoaded();var o=e.id;if(this.getLayer(o))this.fire(new t.ErrorEvent(new Error('Layer with i
1d "'+o+'" already exists on this map')));else{var i;if("custom"===e.type){if(Fe(this,t.validateCustomStyleLayer(e)))return;i=t.createStyleLayer(e)}else{if("object"==typeof e.source&&(this.addSource(o,e.source),e=t.clone$1(e),e=t.extend(e,{source:o})),this._validate(t.validateStyle.layer,"layers."+o,e,{arrayIndex:-1},n))return;i=t.createStyleLayer(e),this._validateLayer(i),i.setEventedParent(this,{layer:{id:o}}),this._serializedLayers[i.id]=i.serialize()}var a=r?this._order.indexOf(r):this._order.length;if(r&&-1===a)this.fire(new t.ErrorEvent(new Error('Layer with id "'+r+'" does not exist on this map.')));else{if(this._order.splice(a,0,o),this._layerOrderChanged=!0,this._layers[o]=i,this._removedLayers[o]&&i.source&&"custom"!==i.type){var s=this._removedLayers[o];delete this._removedLayers[o],s.type!==i.type?this._updatedSources[i.source]="clear":(this._updatedSources[i.source]="reload",this.sourceCaches[i.source].pause())}this._updateLayer(i),i.onAdd&&i.onAdd(this.map)}}},r.prototype.moveLayer=function(e,r){if(this._checkLoaded(),this._changed=!0,this._layers[e]){if(e!==r){var n=this._order.indexOf(e);this._order.splice(n,1);var o=r?this._order.indexOf(r):this._order.length;
vendor: 11,589 bytes, line 1
1r&&-1===o?this.fire(new t.ErrorEvent(new Error('Layer with id "'+r+'" does not exist on this map.'))):(this._order.splice(o,0,e),this._layerOrderChanged=!0)}}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be moved.")))},r.prototype.removeLayer=function(e){this._checkLoaded();var r=this._layers[e];if(r){r.setEventedParent(null);var n=this._order.indexOf(e);this._order.splice(n,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=r,delete this._layers[e],delete this._serializedLayers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],r.onRemove&&r.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.")))},r.prototype.getLayer=function(t){return this._layers[t]},r.prototype.hasLayer=function(t){return t in this._layers},r.prototype.setLayerZoomRange=function(e,r,n){this._checkLoaded();var o=this.getLayer(e);o?o.minzoom===r&&o.maxzoom===n||(null!=r&&(o.minzoom=r),null!=n&&(o.maxzoom=n),this._updateLayer(o)):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot have zoom extent.")))},r.prototype.setFilter=function(e,r,n){void 0===n&&(n={}),this._checkLoaded();var o=this.getLayer(e);if(o){if(!t.deepEqual(o.filter,r))return null==r?(o.filter=void 0,void this._updateLayer(o)):void(this._validate(t.validateStyle.filter,"layers."+o.id+".filter",r,null,n)||(o.filter=t.clone$1(r),this._updateLayer(o)))}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be filtered.")))},r.prototype.getFilter=function(e){return t.clone$1(this.getLayer(e).filter)},r.prototype.setLayoutProperty=function(e,r,n,o){void 0===o&&(o={}),this._checkLoaded();var i=this.getLayer(e);i?t.deepEqual(i.getLayoutProperty(r),n)||(i.setLayoutProperty(r,n,o),this._updateLayer(i)):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be styled.")))},r.prototype.getLayoutProperty=function(e,r){var n=this.getLayer(e);if(n)return n.getLayoutProperty(r);this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style.")))},r.prototype.setPaintProperty=function(e,r,n,o){void 0===o&&(o={}),this._checkLoaded();var i=this.getLayer(e);i?t.deepEqual(i.getPaintProperty(r),n)||(i.setPaintProperty(r,n,o)&&this._updateLayer(i),this._changed=!0,this._updatedPaintProps[e]=!0):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be styled.")))},r.prototype.getPaintProperty=function(t,e){return this.getLayer(t).getPaintProperty(e)},r.prototype.setFeatureState=function(e,r){this._checkLoaded();var n=e.source,o=e.sourceLayer,i=this.sourceCaches[n];if(void 0!==i){var a=i.getSource().type;"geojson"===a&&o?this.fire(new t.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):"vector"!==a||o?(void 0===e.id&&this.fire(new t.ErrorEvent(new Error("The feature id parameter must be provided."))),i.setFeatureState(o,e.id,r)):this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error("The source '"+n+"' does not exist in the map's style.")))},r.prototype.removeFeatureState=function(e,r){this._checkLoaded();var n=e.source,o=this.sourceCaches[n];if(void 0!==o){var i=o.getSource().type,a="vector"===i?e.sourceLayer:void 0;"vector"!==i||a?r&&"string"!=typeof e.id&&"number"!=typeof e.id?this.fire(new t.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):o.removeFeatureState(a,e.id,r):this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error("The source '"+n+"' does not exist in the map's style.")))},r.prototype.getFeatureState=function(e){this._checkLoaded();var r=e.source,n=e.sourceLayer,o=this.sourceCaches[r];if(void 0!==o){if("vector"!==o.getSource().type||n)return void 0===e.id&&this.fire(new t.ErrorEvent(new Error("The feature id parameter must be provided."))),o.getFeatureState(n,e.id);this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error("The source '"+r+"' does not exist in the map's style.")))},r.prototype.getTransition=function(){return t.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},r.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}))},r.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},r.prototype._flattenAndSortRenderedFeatures=function(t){for(var e=this,r=function(t){return"fill-extrusion"===e._layers[t].type},n={},o=[],i=this._order.length-1;i>=0;i--){var a=this._order[i];if(r(a)){n[a]=i;for(var s=0,u=t;s<u.length;s+=1){var c=u[s][a];if(c)for(var l=0,p=c;l<p.length;l+=1)o.push(p[l])}}}o.sort((function(t,e){return e.intersectionZ-t.intersectionZ}));for(var f=[],h=this._order.length-1;h>=0;h--){var d=this._order[h];if(r(d))for(var m=o.length-1;m>=0;m--){var y=o[m].feature;if(n[y.layer.id]<h)break;f.push(y),o.pop()}else for(var v=0,g=t;v<g.length;v+=1){var b=g[v][d];if(b)for(var _=0,x=b;_<x.length;_+=1)f.push(x[_].feature)}}return f},r.prototype.queryRenderedFeatures=function(e,r,n){r&&r.filter&&this._validate(t.validateStyle.filter,"queryRenderedFeatures.filter",r.filter,null,r);var o={};if(r&&r.layers){if(!Array.isArray(r.layers))return this.fire(new t.ErrorEvent(new Error("parameters.layers must be an Array."))),[];for(var i=0,a=r.layers;i<a.length;i+=1){var s=a[i],u=this._layers[s];if(!u)return this.fire(new t.ErrorEvent(new Error("The layer '"+s+"' does not exist in the map's style and cannot be queried for features."))),[];o[u.source]=!0}}var c=[];for(var l in r.availableImages=this._availableImages,this.sourceCaches)r.layers&&!o[l]||c.push(z(this.sourceCaches[l],this._layers,this._serializedLayers,e,r,n));return this.placement&&c.push(function(t,e,r,n,o,i,a){for(var s={},u=i.queryRenderedSymbols(n),c=[],l=0,p=Object.keys(u).map(Number);l<p.length;l+=1)c.push(a[p[l]]);c.sort(N);for(var f=function(){var r=d[h],n=r.featureIndex.lookupSymbolFeatures(u[r.bucketInstanceId],e,r.bucketIndex,r.sourceLayerIndex,o.filter,o.layers,o.availableImages,t);for(var i in n){var a=s[i]=s[i]||[],c=n[i];c.sort((function(t,e){var n=r.featureSortOrder;if(n){var o=n.indexOf(t.featureIndex);return n.indexOf(e.featureIndex)-o}return e.featureIndex-t.featureIndex}));for(var l=0,p=c;l<p.length;l+=1)a.push(p[l])}},h=0,d=c;h<d.length;h+=1)f();var m=function(e){s[e].forEach((function(n){var o=n.feature,i=r[t[e].source].getFeatureState(o.layer["source-layer"],o.id);o.source=o.layer.source,o.layer["source-layer"]&&(o.sourceLayer=o.layer["source-layer"]),o.state=i}))};for(var y in s)m(y);return s}(this._layers,this._serializedLayers,this.sourceCaches,e,r,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(c)},r.prototype.querySourceFeatures=function(e,r){r&&r.filter&&this._validate(t.validateStyle.filter,"querySourceFeatures.filter",r.filter,null,r);var n=this.sourceCaches[e];return n?function(t,e){for(var r=t.getRenderableIds().map((function(e){return t.getTileByID(e)})),n=[],o={},i=0;i<r.length;i++){var a=r[i],s=a.tileID.canonical.key;o[s]||(o[s]=!0,a.querySourceFeatures(n,e))}return n}(n,r):[]},r.prototype.addSourceType=function(t,e,n){return r.getSourceType(t)?n(new Error('A source type called "'+t+'" already exists.')):(r.setSourceType(t,e),e.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:t,url:e.workerSourceURL},n):n(null,null))},r.prototype.getLight=function(){return this.light.getLight()},r.prototype.setLight=function(e,r){void 0===r&&(r={}),this._checkLoaded();var n=this.light.getLight(),o=!1;for(var i in e)if(!t.deepEqual(e[i],n[i])){o=!0;break}if(o){var a={now:t.browser.now(),transition:t.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(e,r),this.light.updateTransitions(a)}},r.prototype._validate=function(e,r,n,o,i){return void 0===i&&(i={}),(!i||!1!==i.validate)&&Fe(this,e.call(t.validateStyle,t.extend({key:r,style:this.serialize(),value:n,styleSpec:t.styleSpec},o)))},r.prototype._remove=function(){for(var e in this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),t.evented.off("pluginStateChange",this._rtlTextPluginCallback),this._layers)this._layers[e].setEventedParent(null);for(var r in this.sourceCaches)this.sourceCaches[r].clearTiles(),this.sourceCaches[r].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()},r.prototype._clearSource=function(t){this.sourceCaches[t].clearTiles()},r.prototype._reloadSource=function(t){this.sourceCaches[t].resume(),this.sourceCaches[t].reload()},r.prototype._updateSources=function(t){for(var e in this.sourceCaches)this.sourceCaches[e].update(t)},r.prototype._generateCollisionBoxes=function(){for(var t in this.sourceCaches)this._reloadSource(t)},r.prototype._updatePlacement=function(e,r,n,o,i){void 0===i&&(i=!1);for(var a=!1,s=!1,u={},c=0,l=this._order;c<l.length;c+=1){var p=this._layers[l[c]];if("symbol"===p.type){if(!u[p.source]){var f=this.sourceCaches[p.source];u[p.source]=f.getRenderableIds(!0).map((function(t){return f.getTileByID(t)})).sort((function(t,e){return e.tileID.overscaledZ-t.tileID.overscaledZ||(t.tileID.isLessThan(e.tileID)?-1:1)}))}var h=this.crossTileSymbolIndex.addLayer(p,u[p.source],e.center.lng);a=a||h}}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((i=i||this._layerOrderChanged||0===n)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(t.browser.now(),e.zoom))&&(this.pauseablePlacement=new Ie(e,this._order,i,r,n,o,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,u),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(t.browser.now()),s=!0),a&&this.pauseablePlacement.placement.setStale()),s||a)for(var d=0,m=this._order;d<m.length;d+=1){var y=this._layers[m[d]];"symbol"===y.type&&this.placement.updateLayerOpacities(y,u[y.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(t.browser.now())},r.prototype._releaseSymbolFadeTiles=function(){for(var t in this.sourceCaches)this.sourceCaches[t].releaseSymbolFadeTiles()},r.prototype.getImages=function(t,e,r){this.imageManager.getImages(e.icons,r),this._updateTilesForChangedImages();var n=this.sourceCaches[e.source];n&&n.setDependencies(e.tileID.key,e.type,e.icons)},r.prototype.getGlyphs=function(t,e,r){this.glyphManager.getGlyphs(e.stacks,r)}
1,r.prototype.getResource=function(e,r,n){return t.makeRequest(r,n)},r}(t.Evented);qe.getSourceType=function(t){return L[t]},qe.setSourceType=function(t,e){L[t]=e},qe.registerForPluginStateChange=t.registerForPluginStateChange;var $e=t.createLayout([{name:"a_pos",type:"Int16",components:2}]),Ge=vr("#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif","#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}"),We=vr("uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),Ze=vr("uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),He=vr("varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius
1/(radius+stroke_width));gl_FragColor=opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,0,1);} else {gl_Position=u_matrix*vec4(circle_center,0,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}"),Ke=vr("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),Ye=vr("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);gl_Position=u_matrix*pos;}"),Xe=vr("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),Je=vr("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),Qe=vr("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);}"),tr=vr("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);}"),er=vr("#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);}"),rr=vr("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;}"),nr=vr("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;}"),or=vr("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);}"),ir=vr("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;}"),ar=vr("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 pixe
1l_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;}"),sr=vr("#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;}"),ur=vr("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;}"),cr=vr("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);}"),lr=vr("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);}"),pr=vr("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;}"),fr=vr("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;
1uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}"),hr=vr("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;}"),dr=vr("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));}"),mr=vr("#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);}"),yr=vr("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;
1gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}");function vr(t,e){var r=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,n=e.match(/attribute ([\w]+) ([\w]+)/g),o=t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),i=e.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),a=i?i.concat(o):o,s={};return{fragmentSource:t=t.replace(r,(function(t,e,r,n,o){return s[o]=!0,"define"===e?"\n#ifndef HAS_UNIFORM_u_"+o+"\nvarying "+r+" "+n+" "+o+";\n#else\nuniform "+r+" "+n+" u_"+o+";\n#endif\n":"\n#ifdef HAS_UNIFORM_u_"+o+"\n "+r+" "+n+" "+o+" = u_"+o+";\n#endif\n"})),vertexSource:e=e.replace(r,(function(t,e,r,n,o){var i="float"===n?"vec2":"vec4",a=o.match(/color/)?"color":i;return s[o]?"define"===e?"\n#ifndef HAS_UNIFORM_u_"+o+"\nuniform lowp float u_"+o+"_t;\nattribute "+r+" "+i+" a_"+o+";\nvarying "+r+" "+n+" "+o+";\n#else\nuniform "+r+" "+n+" u_"+o+";\n#endif\n":"vec4"===a?"\n#ifndef HAS_UNIFORM_u_"+o+"\n "+o+" = a_"+o+";\n#else\n "+r+" "+n+" "+o+" = u_"+o+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+o+"\n "+o+" = unpack_mix_"+a+"(a_"+o+", u_"+o+"_t);\n#else\n "+r+" "+n+" "+o+" = u_"+o+";\n#endif\n":"define"===e?"\n#ifndef HAS_UNIFORM_u_"+o+"\nuniform lowp float u_"+o+"_t;\nattribute "+r+" "+i+" a_"+o+";\n#else\nuniform "+r+" "+n+" u_"+o+";\n#endif\n":"vec4"===a?"\n#ifndef HAS_UNIFORM_u_"+o+"\n "+r+" "+n+" "+o+" = a_"+o+";\n#else\n "+r+" "+n+" "+o+" = u_"+o+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+o+"\n "+r+" "+n+" "+o+" = unpack_mix_"+a+"(a_"+o+", u_"+o+"_t);\n#else\n "+r+" "+n+" "+o+" = u_"+o+";\n#endif\n"})),staticAttributes:n,staticUniforms:a}}var gr=Object.freeze({__proto__:null,prelude:Ge,background:We,backgroundPattern:Ze,circle:He,clippingMask:Ke,heatmap:Ye,heatmapTexture:Xe,collisionBox:Je,collisionCircle:Qe,debug:tr,fill:er,fillOutline:rr,fillOutlinePattern:nr,fillPattern:or,fillExtrusion:ir,fillExtrusionPattern:ar,hillshadePrepare:sr,hillshade:ur,line:cr,lineGradient:lr,linePattern:pr,lineSDF:fr,raster:hr,symbolIcon:dr,symbolSDF:mr,symbolTextAndIcon:yr}),br=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};function _r(t){for(var e=[],r=0;r<t.length;r++)if(null!==t[r]){var n=t[r].split(" ");e.push(n.pop())}return e}br.prototype.bind=function(t,e,r,n,o,i,a,s){this.context=t;for(var u=this.boundPaintVertexBuffers.length!==n.length,c=0;!u&&c<n.length;c++)this.boundPaintVertexBuffers[c]!==n[c]&&(u=!0);t.extVertexArrayObject&&this.vao&&this.boundProgram===e&&this.boundLayoutVertexBuffer===r&&!u&&this.boundIndexBuffer===o&&this.boundVertexOffset===i&&this.boundDynamicVertexBuffer===a&&this.boundDynamicVertexBuffer2===s?(t.bindVertexArrayOES.set(this.vao),a&&a.bind(),o&&o.dynamicDraw&&o.bind(),s&&s.bind()):this.freshBind(e,r,n,o,i,a,s)}
vendor: 11,326 bytes, line 1
1,br.prototype.freshBind=function(t,e,r,n,o,i,a){var s,u=t.numAttributes,c=this.context,l=c.gl;if(c.extVertexArrayObject)this.vao&&this.destroy(),this.vao=c.extVertexArrayObject.createVertexArrayOES(),c.bindVertexArrayOES.set(this.vao),s=0,this.boundProgram=t,this.boundLayoutVertexBuffer=e,this.boundPaintVertexBuffers=r,this.boundIndexBuffer=n,this.boundVertexOffset=o,this.boundDynamicVertexBuffer=i,this.boundDynamicVertexBuffer2=a;else{s=c.currentNumAttributes||0;for(var p=u;p<s;p++)l.disableVertexAttribArray(p)}e.enableAttributes(l,t);for(var f=0,h=r;f<h.length;f+=1)h[f].enableAttributes(l,t);i&&i.enableAttributes(l,t),a&&a.enableAttributes(l,t),e.bind(),e.setVertexAttribPointers(l,t,o);for(var d=0,m=r;d<m.length;d+=1){var y=m[d];y.bind(),y.setVertexAttribPointers(l,t,o)}i&&(i.bind(),i.setVertexAttribPointers(l,t,o)),n&&n.bind(),a&&(a.bind(),a.setVertexAttribPointers(l,t,o)),c.currentNumAttributes=u},br.prototype.destroy=function(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)};var xr=function(t,e,r,n,o,i){var a=t.gl;this.program=a.createProgram();for(var s=_r(r.staticAttributes),u=n?n.getBinderAttributes():[],c=s.concat(u),l=r.staticUniforms?_r(r.staticUniforms):[],p=n?n.getBinderUniforms():[],f=[],h=0,d=l.concat(p);h<d.length;h+=1){var m=d[h];f.indexOf(m)<0&&f.push(m)}var y=n?n.defines():[];i&&y.push("#define OVERDRAW_INSPECTOR;");var v=y.concat(Ge.fragmentSource,r.fragmentSource).join("\n"),g=y.concat(Ge.vertexSource,r.vertexSource).join("\n"),b=a.createShader(a.FRAGMENT_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(b,v),a.compileShader(b),a.attachShader(this.program,b);var _=a.createShader(a.VERTEX_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(_,g),a.compileShader(_),a.attachShader(this.program,_),this.attributes={};var x={};this.numAttributes=c.length;for(var w=0;w<this.numAttributes;w++)c[w]&&(a.bindAttribLocation(this.program,w,c[w]),this.attributes[c[w]]=w);a.linkProgram(this.program),a.deleteShader(_),a.deleteShader(b);for(var O=0;O<f.length;O++){var E=f[O];if(E&&!x[E]){var S=a.getUniformLocation(this.program,E);S&&(x[E]=S)}}this.fixedUniforms=o(t,x),this.binderUniforms=n?n.getUniforms(t,x):[]}}};function wr(t,e,r){var n=1/fe(r,1,e.transform.tileZoom),o=Math.pow(2,r.tileID.overscaledZ),i=r.tileSize*Math.pow(2,e.transform.tileZoom)/o,a=i*(r.tileID.canonical.x+r.tileID.wrap*o),s=i*r.tileID.canonical.y;return{u_image:0,u_texsize:r.imageAtlasTexture.size,u_scale:[n,t.fromScale,t.toScale],u_fade:t.t,u_pixel_coord_upper:[a>>16,s>>16],u_pixel_coord_lower:[65535&a,65535&s]}}xr.prototype.draw=function(t,e,r,n,o,i,a,s,u,c,l,p,f,h,d,m){var y,v=t.gl;if(!this.failedToCreate){for(var g in t.program.set(this.program),t.setDepthMode(r),t.setStencilMode(n),t.setColorMode(o),t.setCullFace(i),this.fixedUniforms)this.fixedUniforms[g].set(a[g]);h&&h.setUniforms(t,this.binderUniforms,p,{zoom:f});for(var b=(y={},y[v.LINES]=2,y[v.TRIANGLES]=3,y[v.LINE_STRIP]=1,y)[e],_=0,x=l.get();_<x.length;_+=1){var w=x[_],O=w.vaos||(w.vaos={});(O[s]||(O[s]=new br)).bind(t,this,u,h?h.getPaintVertexBuffers():[],c,w.vertexOffset,d,m),v.drawElements(e,w.primitiveLength*b,v.UNSIGNED_SHORT,w.primitiveOffset*b*2)}}};var Or=function(e,r,n,o){var i=r.style.light,a=i.properties.get("position"),s=[a.x,a.y,a.z],u=t.create$1();"viewport"===i.properties.get("anchor")&&t.fromRotation(u,-r.transform.angle),t.transformMat3(s,s,u);var c=i.properties.get("color");return{u_matrix:e,u_lightpos:s,u_lightintensity:i.properties.get("intensity"),u_lightcolor:[c.r,c.g,c.b],u_vertical_gradient:+n,u_opacity:o}},Er=function(e,r,n,o,i,a,s){return t.extend(Or(e,r,n,o),wr(a,r,s),{u_height_factor:-Math.pow(2,i.overscaledZ)/s.tileSize/8})},Sr=function(t){return{u_matrix:t}},Pr=function(e,r,n,o){return t.extend(Sr(e),wr(n,r,o))},jr=function(t,e){return{u_matrix:t,u_world:e}},Ar=function(e,r,n,o,i){return t.extend(Pr(e,r,n,o),{u_world:i})},Cr=function(e,r,n,o){var i,a,s=e.transform;if("map"===o.paint.get("circle-pitch-alignment")){var u=fe(n,1,s.zoom);i=!0,a=[u,u]}else i=!1,a=s.pixelsToGLUnits;return{u_camera_to_center_distance:s.cameraToCenterDistance,u_scale_with_map:+("map"===o.paint.get("circle-pitch-scale")),u_matrix:e.translatePosMatrix(r.posMatrix,n,o.paint.get("circle-translate"),o.paint.get("circle-translate-anchor")),u_pitch_with_map:+i,u_device_pixel_ratio:t.browser.devicePixelRatio,u_extrude_scale:a}},Tr=function(t,e,r){var n=fe(r,1,e.zoom),o=Math.pow(2,e.zoom-r.tileID.overscaledZ),i=r.tileID.overscaleFactor();return{u_matrix:t,u_camera_to_center_distance:e.cameraToCenterDistance,u_pixels_to_tile_units:n,u_extrude_scale:[e.pixelsToGLUnits[0]/(n*o),e.pixelsToGLUnits[1]/(n*o)],u_overscale_factor:i}},kr=function(t,e,r){return{u_matrix:t,u_inv_matrix:e,u_camera_to_center_distance:r.cameraToCenterDistance,u_viewport_size:[r.width,r.height]}},Mr=function(t,e,r){return void 0===r&&(r=1),{u_matrix:t,u_color:e,u_overlay:0,u_overlay_scale:r}},Ir=function(t){return{u_matrix:t}},Dr=function(t,e,r,n){return{u_matrix:t,u_extrude_scale:fe(e,1,r),u_intensity:n}},Lr=function(e,r,n){var o=e.transform;return{u_matrix:Br(e,r,n),u_ratio:1/fe(r,1,o.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_units_to_pixels:[1/o.pixelsToGLUnits[0],1/o.pixelsToGLUnits[1]]}},Rr=function(e,r,n,o){return t.extend(Lr(e,r,n),{u_image:0,u_image_height:o})},zr=function(e,r,n,o){var i=e.transform,a=Fr(r,i);return{u_matrix:Br(e,r,n),u_texsize:r.imageAtlasTexture.size,u_ratio:1/fe(r,1,i.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_image:0,u_scale:[a,o.fromScale,o.toScale],u_fade:o.t,u_units_to_pixels:[1/i.pixelsToGLUnits[0],1/i.pixelsToGLUnits[1]]}},Nr=function(e,r,n,o,i){var a=e.lineAtlas,s=Fr(r,e.transform),u="round"===n.layout.get("line-cap"),c=a.getDash(o.from,u),l=a.getDash(o.to,u),p=c.width*i.fromScale,f=l.width*i.toScale;return t.extend(Lr(e,r,n),{u_patternscale_a:[s/p,-c.height/2],u_patternscale_b:[s/f,-l.height/2],u_sdfgamma:a.width/(256*Math.min(p,f)*t.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:c.y,u_tex_y_b:l.y,u_mix:i.t})};function Fr(t,e){return 1/fe(t,1,e.tileZoom)}function Br(t,e,r){return t.translatePosMatrix(e.tileID.posMatrix,e,r.paint.get("line-translate"),r.paint.get("line-translate-anchor"))}var Vr=function(t,e,r,n,o){return{u_matrix:t,u_tl_parent:e,u_scale_parent:r,u_buffer_scale:1,u_fade_t:n.mix,u_opacity:n.opacity*o.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:o.paint.get("raster-brightness-min"),u_brightness_high:o.paint.get("raster-brightness-max"),u_saturation_factor:(a=o.paint.get("raster-saturation"),a>0?1-1/(1.001-a):-a),u_contrast_factor:(i=o.paint.get("raster-contrast"),i>0?1/(1-i):1+i),u_spin_weights:Ur(o.paint.get("raster-hue-rotate"))};var i,a};function Ur(t){t*=Math.PI/180;var e=Math.sin(t),r=Math.cos(t);return[(2*r+1)/3,(-Math.sqrt(3)*e-r+1)/3,(Math.sqrt(3)*e-r+1)/3]}var qr,$r=function(t,e,r,n,o,i,a,s,u,c){var l=o.transform;return{u_is_size_zoom_constant:+("constant"===t||"source"===t),u_is_size_feature_constant:+("constant"===t||"camera"===t),u_size_t:e?e.uSizeT:0,u_size:e?e.uSize:0,u_camera_to_center_distance:l.cameraToCenterDistance,u_pitch:l.pitch/360*2*Math.PI,u_rotate_symbol:+r,u_aspect_ratio:l.width/l.height,u_fade_change:o.options.fadeDuration?o.symbolFadeChange:1,u_matrix:i,u_label_plane_matrix:a,u_coord_matrix:s,u_is_text:+u,u_pitch_with_map:+n,u_texsize:c,u_texture:0}},Gr=function(e,r,n,o,i,a,s,u,c,l,p){var f=i.transform;return t.extend($r(e,r,n,o,i,a,s,u,c,l),{u_gamma_scale:o?Math.cos(f._pitch)*f.cameraToCenterDistance:1,u_device_pixel_ratio:t.browser.devicePixelRatio,u_is_halo:+p})},Wr=function(e,r,n,o,i,a,s,u,c,l){return t.extend(Gr(e,r,n,o,i,a,s,u,!0,c,!0),{u_texsize_icon:l,u_texture_icon:1})},Zr=function(t,e,r){return{u_matrix:t,u_opacity:e,u_color:r}},Hr=function(e,r,n,o,i,a){return t.extend(function(t,e,r,n){var o=r.imageManager.getPattern(t.from.toString()),i=r.imageManager.getPattern(t.to.toString()),a=r.imageManager.getPixelSize(),s=a.width,u=a.height,c=Math.pow(2,n.tileID.overscaledZ),l=n.tileSize*Math.pow(2,r.transform.tileZoom)/c,p=l*(n.tileID.canonical.x+n.tileID.wrap*c),f=l*n.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:o.tl,u_pattern_br_a:o.br,u_pattern_tl_b:i.tl,u_pattern_br_b:i.br,u_texsize:[s,u],u_mix:e.t,u_pattern_size_a:o.displaySize,u_pattern_size_b:i.displaySize,u_scale_a:e.fromScale,u_scale_b:e.toScale,u_tile_units_to_pixels:1/fe(n,1,r.transform.tileZoom),u_pixel_coord_upper:[p>>16,f>>16],u_pixel_coord_lower:[65535&p,65535&f]}}(o,a,n,i),{u_matrix:e,u_opacity:r})},Kr={fillExtrusion:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_lightpos:new t.Uniform3f(e,r.u_lightpos),u_lightintensity:new t.Uniform1f(e,r.u_lightintensity),u_lightcolor:new t.Uniform3f(e,r.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,r.u_vertical_gradient),u_opacity:new t.Uniform1f(e,r.u_opacity)}},fillExtrusionPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_lightpos:new t.Uniform3f(e,r.u_lightpos),u_lightintensity:new t.Uniform1f(e,r.u_lightintensity),u_lightcolor:new t.Uniform3f(e,r.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,r.u_vertical_gradient),u_height_factor:new t.Uniform1f(e,r.u_height_factor),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade),u_opacity:new t.Uniform1f(e,r.u_opacity)}},fill:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},fillPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},fillOutline:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world)}},fillOutlinePattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},circle:function(e,r){return{u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_scale_with_map:new t.Uniform1i(e,r.u_scale_with_map),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_extrude_scale:new t.Uniform2f(e,r.u_extrude_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},collisionBox:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pixels_to_tile_units:new t.Uniform1f(e,r.u_pixels_to_tile_units),u_extrude_scale:new t.Uniform2f(e,r.u_extrude_scale),u_overscale_factor:new t.Uniform1f(e,r.u_overscale_factor)}},collisionCircle:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_inv_matrix:new t.UniformMatrix4f(e,r.u_inv_matrix
1),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_viewport_size:new t.Uniform2f(e,r.u_viewport_size)}},debug:function(e,r){return{u_color:new t.UniformColor(e,r.u_color),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_overlay:new t.Uniform1i(e,r.u_overlay),u_overlay_scale:new t.Uniform1f(e,r.u_overlay_scale)}},clippingMask:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},heatmap:function(e,r){return{u_extrude_scale:new t.Uniform1f(e,r.u_extrude_scale),u_intensity:new t.Uniform1f(e,r.u_intensity),u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},heatmapTexture:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world),u_image:new t.Uniform1i(e,r.u_image),u_color_ramp:new t.Uniform1i(e,r.u_color_ramp),u_opacity:new t.Uniform1f(e,r.u_opacity)}},hillshade:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_latrange:new t.Uniform2f(e,r.u_latrange),u_light:new t.Uniform2f(e,r.u_light),u_shadow:new t.UniformColor(e,r.u_shadow),u_highlight:new t.UniformColor(e,r.u_highlight),u_accent:new t.UniformColor(e,r.u_accent)}},hillshadePrepare:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_dimension:new t.Uniform2f(e,r.u_dimension),u_zoom:new t.Uniform1f(e,r.u_zoom),u_unpack:new t.Uniform4f(e,r.u_unpack)}},line:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels)}},lineGradient:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_image:new t.Uniform1i(e,r.u_image),u_image_height:new t.Uniform1f(e,r.u_image_height)}},linePattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_texsize:new t.Uniform2f(e,r.u_texsize),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_image:new t.Uniform1i(e,r.u_image),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},lineSDF:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_patternscale_a:new t.Uniform2f(e,r.u_patternscale_a),u_patternscale_b:new t.Uniform2f(e,r.u_patternscale_b),u_sdfgamma:new t.Uniform1f(e,r.u_sdfgamma),u_image:new t.Uniform1i(e,r.u_image),u_tex_y_a:new t.Uniform1f(e,r.u_tex_y_a),u_tex_y_b:new t.Uniform1f(e,r.u_tex_y_b),u_mix:new t.Uniform1f(e,r.u_mix)}},raster:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_tl_parent:new t.Uniform2f(e,r.u_tl_parent),u_scale_parent:new t.Uniform1f(e,r.u_scale_parent),u_buffer_scale:new t.Uniform1f(e,r.u_buffer_scale),u_fade_t:new t.Uniform1f(e,r.u_fade_t),u_opacity:new t.Uniform1f(e,r.u_opacity),u_image0:new t.Uniform1i(e,r.u_image0),u_image1:new t.Uniform1i(e,r.u_image1),u_brightness_low:new t.Uniform1f(e,r.u_brightness_low),u_brightness_high:new t.Uniform1f(e,r.u_brightness_high),u_saturation_factor:new t.Uniform1f(e,r.u_saturation_factor),u_contrast_factor:new t.Uniform1f(e,r.u_contrast_factor),u_spin_weights:new t.Uniform3f(e,r.u_spin_weights)}},symbolIcon:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix
vendor: 15,229 bytes, line 1
1),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texture:new t.Uniform1i(e,r.u_texture)}},symbolSDF:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texture:new t.Uniform1i(e,r.u_texture),u_gamma_scale:new t.Uniform1f(e,r.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,r.u_is_halo)}},symbolTextAndIcon:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texsize_icon:new t.Uniform2f(e,r.u_texsize_icon),u_texture:new t.Uniform1i(e,r.u_texture),u_texture_icon:new t.Uniform1i(e,r.u_texture_icon),u_gamma_scale:new t.Uniform1f(e,r.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,r.u_is_halo)}},background:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_opacity:new t.Uniform1f(e,r.u_opacity),u_color:new t.UniformColor(e,r.u_color)}},backgroundPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_opacity:new t.Uniform1f(e,r.u_opacity),u_image:new t.Uniform1i(e,r.u_image),u_pattern_tl_a:new t.Uniform2f(e,r.u_pattern_tl_a),u_pattern_br_a:new t.Uniform2f(e,r.u_pattern_br_a),u_pattern_tl_b:new t.Uniform2f(e,r.u_pattern_tl_b),u_pattern_br_b:new t.Uniform2f(e,r.u_pattern_br_b),u_texsize:new t.Uniform2f(e,r.u_texsize),u_mix:new t.Uniform1f(e,r.u_mix),u_pattern_size_a:new t.Uniform2f(e,r.u_pattern_size_a),u_pattern_size_b:new t.Uniform2f(e,r.u_pattern_size_b),u_scale_a:new t.Uniform1f(e,r.u_scale_a),u_scale_b:new t.Uniform1f(e,r.u_scale_b),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_tile_units_to_pixels:new t.Uniform1f(e,r.u_tile_units_to_pixels)}}};function Yr(e,r,n,o,i,a,s){for(var u=e.context,c=u.gl,l=e.useProgram("collisionBox"),p=[],f=0,h=0,d=0;d<o.length;d++){var m=o[d],y=r.getTile(m),v=y.getBucket(n);if(v){var g=m.posMatrix;0===i[0]&&0===i[1]||(g=e.translatePosMatrix(m.posMatrix,y,i,a));var b=s?v.textCollisionBox:v.iconCollisionBox,_=v.collisionCircleArray;if(_.length>0){var x=t.create(),w=g;t.mul(x,v.placementInvProjMatrix,e.transform.glCoordMatrix),t.mul(x,x,v.placementViewportMatrix),p.push({circleArray:_,circleOffset:h,transform:w,invTransform:x}),h=f+=_.length/4}b&&l.draw(u,c.LINES,St.disabled,Pt.disabled,e.colorModeForRenderPass(),At.disabled,Tr(g,e.transform,y),n.id,b.layoutVertexBuffer,b.indexBuffer,b.segments,null,e.transform.zoom,null,null,b.collisionVertexBuffer)}}if(s&&p.length){var O=e.useProgram("collisionCircle"),E=new t.StructArrayLayout2f1f2i16;E.resize(4*f),E._trim();for(var S=0,P=0,j=p;P<j.length;P+=1)for(var A=j[P],C=0;C<A.circleArray.length/4;C++){var T=4*C,k=A.circleArray[T+0],M=A.circleArray[T+1],I=A.circleArray[T+2],D=A.circleArray[T+3];E.emplace(S++,k,M,I,D,0),E.emplace(S++,k,M,I,D,1),E.emplace(S++,k,M,I,D,2),E.emplace(S++,k,M,I,D,3)}(!qr||qr.length<2*f)&&(qr=function(e){var r=2*e,n=new t.StructArrayLayout3ui6;n.resize(r),n._trim();for(var o=0;o<r;o++){var i=6*o;n.uint16[i+0]=4*o+0,n.uint16[i+1]=4*o+1,n.uint16[i+2]=4*o+2,n.uint16[i+3]=4*o+2,n.uint16[i+4]=4*o+3,n.uint16[i+5]=4*o+0}return n}(f));for(var L=u.createIndexBuffer(qr,!0),R=u.createVertexBuffer(E,t.collisionCircleLayout.members,!0),z=0,N=p;z<N.length;z+=1){var F=N[z],B=kr(F.transform,F.invTransform,e.transform);O.draw(u,c.TRIANGLES,St.disabled,Pt.disabled,e.colorModeForRenderPass(),At.disabled,B,n.id,R,L,t.SegmentVector.simpleSegment(0,2*F.circleOffset,F.circleArray.length,F.circleArray.length/2),null,e.transform.zoom,null,null,null)}R.destroy(),L.destroy()}}var Xr=t.identity(new Float32Array(16));function Jr(e,r,n,o,i,a){var s=t.getAnchorAlignment(e),u=-(s.horizontalAlign-.5)*r,c=-(s.verticalAlign-.5)*n,l=t.evaluateVariableOffset(e,o);return new t.Point((u/i+l[0])*a,(c/i+l[1])*a)}function Qr(e,r,n,o,i,a,s,u,c,l,p){var f=e.text.placedSymbolArray,h=e.text.dynamicLayoutVertexArray,d=e.icon.dynamicLayoutVertexArray,m={};h.clear();for(var y=0;y<f.length;y++){var v=f.get(y),g=v.hidden||!v.crossTileID||e.allowVerticalPlacement&&!v.placedOrientation?null:o[v.crossTileID];if(g){var b=new t.Point(v.anchorX,v.anchorY),_=Qt(b,n?u:s),x=te(a.cameraToCenterDistance,_.signedDistanceFromCamera),w=i.evaluateSizeForFeature(e.textSizeData,l,v)*x/t.ONE_EM;n&&(w*=e.tilePixelRatio/c);for(var O=Jr(g.anchor,g.width,g.height,g.textOffset,g.textBoxScale,w),E=n?Qt(b.add(O),s).point:_.point.add(r?O.rotate(-a.angle):O),S=e.allowVerticalPlacement&&v.placedOrientation===t.WritingMode.vertical?Math.PI/2:0,P=0;P<v.numGlyphs;P++)t.addDynamicAttributes(h,E,S);p&&v.associatedIconIndex>=0&&(m[v.associatedIconIndex]={shiftedAnchor:E,angle:S})}else ce(v.numGlyphs,h)}if(p){d.clear();for(var j=e.icon.placedSymbolArray,A=0;A<j.length;A++){var C=j.get(A);if(C.hidden)ce(C.numGlyphs,d);else{var T=m[A];if(T)for(var k=0;k<C.numGlyphs;k++)t.addDynamicAttributes(d,T.shiftedAnchor,T.angle);else ce(C.numGlyphs,d)}}e.icon.dynamicLayoutVertexBuffer.updateData(d)}e.text.dynamicLayoutVertexBuffer.updateData(h)}function tn(t,e,r){return r.iconsInText&&e?"symbolTextAndIcon":t?"symbolSDF":"symbolIcon"}function en(e,r,n,o,i,a,s,u,c,l,p,f){for(var h=e.context,d=h.gl,m=e.transform,y="map"===u,v="map"===c,g=y&&"point"!==n.layout.get("symbol-placement"),b=y&&!v&&!g,_=!n.layout.get("symbol-sort-key").isConstant(),x=!1,w=e.depthModeForSublayer(0,St.ReadOnly),O=n.layout.get("text-variable-anchor"),E=[],S=0,P=o;S<P.length;S+=1){var j=P[S],A=r.getTile(j),C=A.getBucket(n);if(C){var T=i?C.text:C.icon;if(T&&T.segments.get().length){var k=T.programConfigurations.get(n.id),M=i||C.sdfIcons,I=i?C.textSizeData:C.iconSizeData,D=v||0!==m.pitch,L=e.useProgram(tn(M,i,C),k),R=t.evaluateSizeForZoom(I,m.zoom),z=void 0,N=[0,0],F=void 0,B=void 0,V=null,U=void 0;if(i)F=A.glyphAtlasTexture,B=d.LINEAR,z=A.glyphAtlasTexture.size,C.iconsInText&&(N=A.imageAtlasTexture.size,V=A.imageAtlasTexture,U=D||e.options.rotating||e.options.zooming||"composite"===I.kind||"camera"===I.kind?d.LINEAR:d.NEAREST);else{var q=1!==n.layout.get("icon-size").constantOr(0)||C.iconsNeedLinear;F=A.imageAtlasTexture,B=M||e.options.rotating||e.options.zooming||q||D?d.LINEAR:d.NEAREST,z=A.imageAtlasTexture.size}var $=fe(A,1,e.transform.zoom),G=Xt(j.posMatrix,v,y,e.transform,$),W=Jt(j.posMatrix,v,y,e.transform,$),Z=O&&C.hasTextData(),H="none"!==n.layout.get("icon-text-fit")&&Z&&C.hasIconData();g&&re(C,j.posMatrix,e,i,G,W,v,l);var K=e.translatePosMatrix(j.posMatrix,A,a,s),Y=g||i&&O||H?Xr:G,X=e.translatePosMatrix(W,A,a,s,!0),J=M&&0!==n.paint.get(i?"text-halo-width":"icon-halo-width").constantOr(1),Q={program:L,buffers:T,uniformValues:M?C.iconsInText?Wr(I.kind,R,b,v,e,K,Y,X,z,N):Gr(I.kind,R,b,v,e,K,Y,X,i,z,!0):$r(I.kind,R,b,v,e,K,Y,X,i,z),atlasTexture:F,atlasTextureIcon:V,atlasInterpolation:B,atlasInterpolationIcon:U,isSDF:M,hasHalo:J};if(_&&C.canOverlap){x=!0;for(var tt=0,et=T.segments.get();tt<et.length;tt+=1){var rt=et[tt];E.push({segments:new t.SegmentVector([rt]),sortKey:rt.sortKey,state:Q})}}else E.push({segments:T.segments,sortKey:0,state:Q})}}}x&&E.sort((function(t,e){return t.sortKey-e.sortKey}));for(var nt=0,ot=E;nt<ot.length;nt+=1){var it=ot[nt],at=it.state;if(h.activeTexture.set(d.TEXTURE0),at.atlasTexture.bind(at.atlasInterpolation,d.CLAMP_TO_EDGE),at.atlasTextureIcon&&(h.activeTexture.set(d.TEXTURE1),at.atlasTextureIcon&&at.atlasTextureIcon.bind(at.atlasInterpolationIcon,d.CLAMP_TO_EDGE)),at.isSDF){var st=at.uniformValues;at.hasHalo&&(st.u_is_halo=1,rn(at.buffers,it.segments,n,e,at.program,w,p,f,st)),st.u_is_halo=0}rn(at.buffers,it.segments,n,e,at.program,w,p,f,at.uniformValues)}}function rn(t,e,r,n,o,i,a,s,u){var c=n.context;o.draw(c,c.gl.TRIANGLES,i,a,s,At.disabled,u,r.id,t.layoutVertexBuffer,t.indexBuffer,e,r.paint,n.transform.zoom,t.programConfigurations.get(r.id),t.dynamicLayoutVertexBuffer,t.opacityVertexBuffer)}function nn(t,e,r,n,o,i,a){var s,u,c,l,p,f=t.context.gl,h=r.paint.get("fill-pattern"),d=h&&h.constantOr(1),m=r.getCrossfadeParameters();a?(u=d&&!r.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",s=f.LINES):(u=d?"fillPattern":"fill",s=f.TRIANGLES);for(var y=0,v=n;y<v.length;y+=1){var g=v[y],b=e.getTile(g);if(!d||b.patternsLoaded()){var _=b.getBucket(r);if(_){var x=_.programConfigurations.get(r.id),w=t.useProgram(u,x);d&&(t.context.activeTexture.set(f.TEXTURE0),b.imageAtlasTexture.bind(f.LINEAR,f.CLAMP_TO_EDGE),x.updatePaintBuffers(m));var O=h.constantOr(null);if(O&&b.imageAtlas){var E=b.imageAtlas,S=E.patternPositions[O.to.toString()],P=E.patternPositions[O.from.toString()];S&&P&&x.setConstantPatternPositions(S,P)}var j=t.translatePosMatrix(g.posMatrix,b,r.paint.get("fill-translate"),r.paint.get("fill-translate-anchor"));if(a){l=_.indexBuffer2,p=_.segments2;var A=[f.drawingBufferWidth,f.drawingBufferHeight];c="fillOutlinePattern"===u&&d?Ar(j,t,m,b,A):jr(j,A)}else l=_.indexBuffer,p=_.segments,c=d?Pr(j,t,m,b):Sr(j);w.draw(t.context,s,o,t.stencilModeForClipping(g),i,At.disabled,c,r.id,_.layoutVertexBuffer,l,p,r.paint,t.transform.zoom,x)}}}}function on(t,e,r,n,o,i,a){for(var s=t.context,u=s.gl,c=r.paint.get("fill-extrusion-pattern"),l=c.constantOr(1),p=r.getCrossfadeParameters(),f=r.paint.get("fill-extrusion-opacity"),h=0,d=n;h<d.length;h+=1){var m=d[h],y=e.getTile(m),v=y.getBucket(r);if(v){var g=v.programConfigurations.get(r.id),b=t.useProgram(l?"fillExtrusionPattern":"fillExtrusion",g);l&&(t.context.activeTexture.set(u.TEXTURE0),y.imageAtlasTexture.bind(u.LINEAR,u.CLAMP_TO_EDGE),g.updatePaintBuffers(p));var _=c.constantOr(null);if(_&&y.imageAtlas){var x=y.imageAtlas,w=x.patternPositions[_.to.toString()],O=x.patternPositions[_.from.toString()];w&&O&&g.setConstantPatternPositions(w,O)}var E=t.translatePosMatrix(m.posMatrix,y,r.paint.get("fill-extrusion-translate"),r.paint.get("fill-extrusion-translate-anchor")),S=r.paint.get("fill-extrusion-vertical-gradient"),P=l?Er(E,t,S,f,m,p,y):Or(E,t,S,f);b.draw(s,s.gl.TRIANGLES,o,i,a,At.backCCW,P,r.id,v.layoutVertexBuffer,v.indexBuffer,v.segments,r.paint,t.transform.zoom,g)}}}function an(e,r,n,o,i,a){var s=e.context,u=s.gl,c=r.fbo;if(c){var l=e.useProgram("hillshade");s.activeTexture.set(u.TEXTURE0),u.bindTexture(u.TEXTURE_2D,c.colorAttachment.get());var p=function(e,r,n){var o=n.paint.get("hillshade-shadow-color"),i=n.paint.get("hillshade-highlight-color"),a=n.paint.get("hillshade-accent-color"),s=n.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===n.paint.get("hillshade-illumination-anchor")&&(s-=e.transform.angle);var u,c,l,p=!e.options.moving;return{u_matrix:e.transform.calculatePosMatrix(r.tileID.toUnwrapped(),p),u_image:0,u_latrange:(u=r.tileID,c=Math.pow(2,u.canonical.z),l=u.canonical.y,[new t.MercatorCoordinate(0,l/c).toLngLat().lat,new t.MercatorCoordinate(0,(l+1)/c).toLngLat().lat]),u_light:[n.paint.get("hillshade-exaggeration"),s],u_shadow:o,u_highlight:i,u_accent:a}}(e,r,n);l.draw(s,u.TRIANGLES,o,i,a,At.disabled,p,n.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments)}}function sn(e,r,n,o,i,a){var s=e.context,u=s.gl,c=r.dem;if(c&&c.data){var l=c.dim,p=c.stride,f=c.getPixels();if(s.activeTexture.set(u.TEXTURE1),s.pixelStoreUnpackPremultiplyAlpha.set(!1),r.demTexture=r.demTexture||e.getTileTexture(p),r.demTexture){var h=r.demTexture;h.update(f,{premultiply:!1}),h.bind(u.NEAREST,u.CLAMP_TO_EDGE)}else r.demTexture=new t.Texture(s,f,u.RGBA,{premultiply:!1}),r.demTexture.bind(u.NEAREST,u.CLAMP_TO_EDGE);s.activeTexture.set(u.TEXTURE0);var d=r.fbo;if(!d){var m=new t.Texture(s,{width:l,height:l,data:null},u.RGBA);m.bind(u.LINEAR,u.CLAMP_TO_EDGE),(d=r.fbo=s.createFramebuffer(l,l,!0)).colorAttachment.set(m.texture)}s.bindFramebuffer.set(d.framebuffer),s.viewport.set([0,0,l,l]),e.useProgram("hillshadePrepare").draw(s,u.TRIANGLES,o,i,a,At.disabled,function(e,r){var n=r.stride,o=t.create();return t.ortho(o,0,t.EXTENT,-t.EXTENT,0,0,1),t.translate(o,o,[0,-t.EXTENT,0]),{u_matrix:o,u_image:1,u_dimension:[n,n],u_zoom:e.overscaledZ,u_unpack:r.getUnpackVector()}}(r.tileID,c),n.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments),r.needsHillshadePrepare=!1}}function un(e,r,n,o,i){var a=o.paint.get("raster-fade-duration");if(a>0){var s=t.browser.now(),u=(s-e.timeAdded)/a,c=r?(s-r.timeAdded)/a:-1,l=n.getSource(),p=i.coveringZoomLevel({tileSize:l.tileSize,roundZoom:l.roundZoom}),f=!r||Math.abs(r.tileID.overscaledZ-p)>Math.abs(e.tileID.overscaledZ-p),h=f&&e.refreshedUponExpiration?1:t.clamp(f?u:1-c,0,1);return e.refreshedUponExpiration&&u>=1&&(e.refreshedUponExpiration=!1),r?{opacity:1,mix:1-h}:{opacity:h,mix:0}}return{opacity:1,mix:0}}var cn=new t.Color(1,0,0,1),ln=new t.Color(0,1,0,1),pn=new t.Color(0,0,1,1),fn=new t.Color(1,0,1,1),hn=new t.Color(0,1,1,1);function dn(t,e,r,n){yn(t,0,e+r/2,t.transform.width,r,n)}function mn(t,e,r,n){yn(t,e-r/2,0,r,t.transform.height,n)}function yn(e,r,n,o,i,a){var s=e.context,u=s.gl;u.enable(u.SCISSOR_TEST),u.scissor(r*t.browser.devicePixelRatio,n*t.browser.devicePixelRatio,o*t.browser.devicePixelRatio,i*t.browser.devicePixelRatio),s.clear({color:a}),u.disable(u.SCISSOR_TEST)}function vn(e,r,n){var o=e.context,i=o.gl,a=n.posMatrix,s=e.useProgram("debug"),u=St.disabled,c=Pt.disabled,l=e.colorModeForRenderPass();o.activeTexture.set(i.TEXTURE0),e.emptyTexture.bind(i.LINEAR,i.CLAMP_TO_EDGE),s.draw(o,i.LINE_STRIP,u,c,l,At.disabled,Mr(a,t.Color.red),"$debug",e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments);var p=r.getTileByID(n.key).latestRawTileData,f=Math.floor((p&&p.byteLength||0)/1024),h=r.getTile(n).tileSize,d=512/Math.min(h,512)*(n.overscaledZ/e.transform.zoom)*.5,m=n.canonical.toString();n.overscaledZ!==n.canonical.z&&(m+=" =>
1 "+n.overscaledZ),function(t,e){t.initDebugOverlayCanvas();var r=t.debugOverlayCanvas,n=t.context.gl,o=t.debugOverlayCanvas.getContext("2d");o.clearRect(0,0,r.width,r.height),o.shadowColor="white",o.shadowBlur=2,o.lineWidth=1.5,o.strokeStyle="white",o.textBaseline="top",o.font="bold 36px Open Sans, sans-serif",o.fillText(e,5,5),o.strokeText(e,5,5),t.debugOverlayTexture.update(r),t.debugOverlayTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)}(e,m+" "+f+"kb"),s.draw(o,i.TRIANGLES,u,c,jt.alphaBlended,At.disabled,Mr(a,t.Color.transparent,d),"$debug",e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments)}var gn={symbol:function(e,r,n,o,i){if("translucent"===e.renderPass){var a=Pt.disabled,s=e.colorModeForRenderPass();n.layout.get("text-variable-anchor")&&function(e,r,n,o,i,a,s){for(var u=r.transform,c="map"===i,l="map"===a,p=0,f=e;p<f.length;p+=1){var h=f[p],d=o.getTile(h),m=d.getBucket(n);if(m&&m.text&&m.text.segments.get().length){var y=t.evaluateSizeForZoom(m.textSizeData,u.zoom),v=fe(d,1,r.transform.zoom),g=Xt(h.posMatrix,l,c,r.transform,v),b="none"!==n.layout.get("icon-text-fit")&&m.hasIconData();if(y){var _=Math.pow(2,u.zoom-d.tileID.overscaledZ);Qr(m,c,l,s,t.symbolSize,u,g,h.posMatrix,_,y,b)}}}}(o,e,n,r,n.layout.get("text-rotation-alignment"),n.layout.get("text-pitch-alignment"),i),0!==n.paint.get("icon-opacity").constantOr(1)&&en(e,r,n,o,!1,n.paint.get("icon-translate"),n.paint.get("icon-translate-anchor"),n.layout.get("icon-rotation-alignment"),n.layout.get("icon-pitch-alignment"),n.layout.get("icon-keep-upright"),a,s),0!==n.paint.get("text-opacity").constantOr(1)&&en(e,r,n,o,!0,n.paint.get("text-translate"),n.paint.get("text-translate-anchor"),n.layout.get("text-rotation-alignment"),n.layout.get("text-pitch-alignment"),n.layout.get("text-keep-upright"),a,s),r.map.showCollisionBoxes&&(Yr(e,r,n,o,n.paint.get("text-translate"),n.paint.get("text-translate-anchor"),!0),Yr(e,r,n,o,n.paint.get("icon-translate"),n.paint.get("icon-translate-anchor"),!1))}},circle:function(e,r,n,o){if("translucent"===e.renderPass){var i=n.paint.get("circle-opacity"),a=n.paint.get("circle-stroke-width"),s=n.paint.get("circle-stroke-opacity"),u=!n.layout.get("circle-sort-key").isConstant();if(0!==i.constantOr(1)||0!==a.constantOr(1)&&0!==s.constantOr(1)){for(var c=e.context,l=c.gl,p=e.depthModeForSublayer(0,St.ReadOnly),f=Pt.disabled,h=e.colorModeForRenderPass(),d=[],m=0;m<o.length;m++){var y=o[m],v=r.getTile(y),g=v.getBucket(n);if(g){var b=g.programConfigurations.get(n.id),_={programConfiguration:b,program:e.useProgram("circle",b),layoutVertexBuffer:g.layoutVertexBuffer,indexBuffer:g.indexBuffer,uniformValues:Cr(e,y,v,n)};if(u)for(var x=0,w=g.segments.get();x<w.length;x+=1){var O=w[x];d.push({segments:new t.SegmentVector([O]),sortKey:O.sortKey,state:_})}else d.push({segments:g.segments,sortKey:0,state:_})}}u&&d.sort((function(t,e){return t.sortKey-e.sortKey}));for(var E=0,S=d;E<S.length;E+=1){var P=S[E],j=P.state;j.program.draw(c,l.TRIANGLES,p,f,h,At.disabled,j.uniformValues,n.id,j.layoutVertexBuffer,j.indexBuffer,P.segments,n.paint,e.transform.zoom,j.programConfiguration)}}}},heatmap:function(e,r,n,o){if(0!==n.paint.get("heatmap-opacity"))if("offscreen"===e.renderPass){var i=e.context,a=i.gl,s=Pt.disabled,u=new jt([a.ONE,a.ONE],t.Color.transparent,[!0,!0,!0,!0]);!function(t,e,r){var n=t.gl;t.activeTexture.set(n.TEXTURE1),t.viewport.set([0,0,e.width/4,e.height/4]);var o=r.heatmapFbo;if(o)n.bindTexture(n.TEXTURE_2D,o.colorAttachment.get()),t.bindFramebuffer.set(o.framebuffer);else{var i=n.createTexture();n.bindTexture(n.TEXTURE_2D,i),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.L
vendor: 81,036 bytes, line 1
1INEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),o=r.heatmapFbo=t.createFramebuffer(e.width/4,e.height/4,!1),function(t,e,r,n){var o=t.gl;o.texImage2D(o.TEXTURE_2D,0,o.RGBA,e.width/4,e.height/4,0,o.RGBA,t.extRenderToTextureHalfFloat?t.extTextureHalfFloat.HALF_FLOAT_OES:o.UNSIGNED_BYTE,null),n.colorAttachment.set(r)}(t,e,i,o)}}(i,e,n),i.clear({color:t.Color.transparent});for(var c=0;c<o.length;c++){var l=o[c];if(!r.hasRenderableParent(l)){var p=r.getTile(l),f=p.getBucket(n);if(f){var h=f.programConfigurations.get(n.id);e.useProgram("heatmap",h).draw(i,a.TRIANGLES,St.disabled,s,u,At.disabled,Dr(l.posMatrix,p,e.transform.zoom,n.paint.get("heatmap-intensity")),n.id,f.layoutVertexBuffer,f.indexBuffer,f.segments,n.paint,e.transform.zoom,h)}}}i.viewport.set([0,0,e.width,e.height])}else"translucent"===e.renderPass&&(e.context.setColorMode(e.colorModeForRenderPass()),function(e,r){var n=e.context,o=n.gl,i=r.heatmapFbo;if(i){n.activeTexture.set(o.TEXTURE0),o.bindTexture(o.TEXTURE_2D,i.colorAttachment.get()),n.activeTexture.set(o.TEXTURE1);var a=r.colorRampTexture;a||(a=r.colorRampTexture=new t.Texture(n,r.colorRamp,o.RGBA)),a.bind(o.LINEAR,o.CLAMP_TO_EDGE),e.useProgram("heatmapTexture").draw(n,o.TRIANGLES,St.disabled,Pt.disabled,e.colorModeForRenderPass(),At.disabled,function(e,r,n,o){var i=t.create();t.ortho(i,0,e.width,e.height,0,0,1);var a=e.context.gl;return{u_matrix:i,u_world:[a.drawingBufferWidth,a.drawingBufferHeight],u_image:0,u_color_ramp:1,u_opacity:r.paint.get("heatmap-opacity")}}(e,r),r.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,r.paint,e.transform.zoom)}}(e,n))},line:function(e,r,n,o){if("translucent"===e.renderPass){var i=n.paint.get("line-opacity"),a=n.paint.get("line-width");if(0!==i.constantOr(1)&&0!==a.constantOr(1))for(var s=e.depthModeForSublayer(0,St.ReadOnly),u=e.colorModeForRenderPass(),c=n.paint.get("line-dasharray"),l=n.paint.get("line-pattern"),p=l.constantOr(1),f=n.paint.get("line-gradient"),h=n.getCrossfadeParameters(),d=p?"linePattern":c?"lineSDF":f?"lineGradient":"line",m=e.context,y=m.gl,v=!0,g=0,b=o;g<b.length;g+=1){var _=b[g],x=r.getTile(_);if(!p||x.patternsLoaded()){var w=x.getBucket(n);if(w){var O=w.programConfigurations.get(n.id),E=e.context.program.get(),S=e.useProgram(d,O),P=v||S.program!==E,j=l.constantOr(null);if(j&&x.imageAtlas){var A=x.imageAtlas,C=A.patternPositions[j.to.toString()],T=A.patternPositions[j.from.toString()];C&&T&&O.setConstantPatternPositions(C,T)}var k=p?zr(e,x,n,h):c?Nr(e,x,n,c,h):f?Rr(e,x,n,w.lineClipsArray.length):Lr(e,x,n);if(p)m.activeTexture.set(y.TEXTURE0),x.imageAtlasTexture.bind(y.LINEAR,y.CLAMP_TO_EDGE),O.updatePaintBuffers(h);else if(c&&(P||e.lineAtlas.dirty))m.activeTexture.set(y.TEXTURE0),e.lineAtlas.bind(m);else if(f){var M=w.gradients[n.id],I=M.texture;if(n.gradientVersion!==M.version){var D=256;if(n.stepInterpolant){var L=r.getSource().maxzoom,R=_.canonical.z===L?Math.ceil(1<<e.transform.maxZoom-_.canonical.z):1;D=t.clamp(t.nextPowerOfTwo(w.maxLineLength/t.EXTENT*1024*R),256,m.maxTextureSize)}M.gradient=t.renderColorRamp({expression:n.gradientExpression(),evaluationKey:"lineProgress",resolution:D,image:M.gradient||void 0,clips:w.lineClipsArray}),M.texture?M.texture.update(M.gradient):M.texture=new t.Texture(m,M.gradient,y.RGBA),M.version=n.gradientVersion,I=M.texture}m.activeTexture.set(y.TEXTURE0),I.bind(n.stepInterpolant?y.NEAREST:y.LINEAR,y.CLAMP_TO_EDGE)}S.draw(m,y.TRIANGLES,s,e.stencilModeForClipping(_),u,At.disabled,k,n.id,w.layoutVertexBuffer,w.indexBuffer,w.segments,n.paint,e.transform.zoom,O,w.layoutVertexBuffer2),v=!1}}}}},fill:function(e,r,n,o){var i=n.paint.get("fill-color"),a=n.paint.get("fill-opacity");if(0!==a.constantOr(1)){var s=e.colorModeForRenderPass(),u=n.paint.get("fill-pattern"),c=e.opaquePassEnabledForLayer()&&!u.constantOr(1)&&1===i.constantOr(t.Color.transparent).a&&1===a.constantOr(0)?"opaque":"translucent";if(e.renderPass===c){var l=e.depthModeForSublayer(1,"opaque"===e.renderPass?St.ReadWrite:St.ReadOnly);nn(e,r,n,o,l,s,!1)}if("translucent"===e.renderPass&&n.paint.get("fill-antialias")){var p=e.depthModeForSublayer(n.getPaintProperty("fill-outline-color")?2:0,St.ReadOnly);nn(e,r,n,o,p,s,!0)}}},"fill-extrusion":function(t,e,r,n){var o=r.paint.get("fill-extrusion-opacity");if(0!==o&&"translucent"===t.renderPass){var i=new St(t.context.gl.LEQUAL,St.ReadWrite,t.depthRangeFor3D);if(1!==o||r.paint.get("fill-extrusion-pattern").constantOr(1))on(t,e,r,n,i,Pt.disabled,jt.disabled),on(t,e,r,n,i,t.stencilModeFor3D(),t.colorModeForRenderPass());else{var a=t.colorModeForRenderPass();on(t,e,r,n,i,Pt.disabled,a)}}},hillshade:function(t,e,r,n){if("offscreen"===t.renderPass||"translucent"===t.renderPass){for(var o=t.context,i=t.depthModeForSublayer(0,St.ReadOnly),a=t.colorModeForRenderPass(),s="translucent"===t.renderPass?t.stencilConfigForOverlap(n):[{},n],u=s[0],c=0,l=s[1];c<l.length;c+=1){var p=l[c],f=e.getTile(p);f.needsHillshadePrepare&&"offscreen"===t.renderPass?sn(t,f,r,i,Pt.disabled,a):"translucent"===t.renderPass&&an(t,f,r,i,u[p.overscaledZ],a)}o.viewport.set([0,0,t.width,t.height])}},raster:function(t,e,r,n){if("translucent"===t.renderPass&&0!==r.paint.get("raster-opacity")&&n.length)for(var o=t.context,i=o.gl,a=e.getSource(),s=t.useProgram("raster"),u=t.colorModeForRenderPass(),c=a instanceof M?[{},n]:t.stencilConfigForOverlap(n),l=c[0],p=c[1],f=p[p.length-1].overscaledZ,h=!t.options.moving,d=0,m=p;d<m.length;d+=1){var y=m[d],v=t.depthModeForSublayer(y.overscaledZ-f,1===r.paint.get("raster-opacity")?St.ReadWrite:St.ReadOnly,i.LESS),g=e.getTile(y),b=t.transform.calculatePosMatrix(y.toUnwrapped(),h);g.registerFadeDuration(r.paint.get("raster-fade-duration"));var _=e.findLoadedParent(y,0),x=un(g,_,e,r,t.transform),w=void 0,O=void 0,E="nearest"===r.paint.get("raster-resampling")?i.NEAREST:i.LINEAR;o.activeTexture.set(i.TEXTURE0),g.texture.bind(E,i.CLAMP_TO_EDGE,i.LINEAR_MIPMAP_NEAREST),o.activeTexture.set(i.TEXTURE1),_?(_.texture.bind(E,i.CLAMP_TO_EDGE,i.LINEAR_MIPMAP_NEAREST),w=Math.pow(2,_.tileID.overscaledZ-g.tileID.overscaledZ),O=[g.tileID.canonical.x*w%1,g.tileID.canonical.y*w%1]):g.texture.bind(E,i.CLAMP_TO_EDGE,i.LINEAR_MIPMAP_NEAREST);var S=Vr(b,O||[0,0],w||1,x,r);a instanceof M?s.draw(o,i.TRIANGLES,v,Pt.disabled,u,At.disabled,S,r.id,a.boundsBuffer,t.quadTriangleIndexBuffer,a.boundsSegments):s.draw(o,i.TRIANGLES,v,l[y.overscaledZ],u,At.disabled,S,r.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}},background:function(t,e,r){var n=r.paint.get("background-color"),o=r.paint.get("background-opacity");if(0!==o){var i=t.context,a=i.gl,s=t.transform,u=s.tileSize,c=r.paint.get("background-pattern");if(!t.isPatternMissing(c)){var l=!c&&1===n.a&&1===o&&t.opaquePassEnabledForLayer()?"opaque":"translucent";if(t.renderPass===l){var p=Pt.disabled,f=t.depthModeForSublayer(0,"opaque"===l?St.ReadWrite:St.ReadOnly),h=t.colorModeForRenderPass(),d=t.useProgram(c?"backgroundPattern":"background"),m=s.coveringTiles({tileSize:u});c&&(i.activeTexture.set(a.TEXTURE0),t.imageManager.bind(t.context));for(var y=r.getCrossfadeParameters(),v=0,g=m;v<g.length;v+=1){var b=g[v],_=t.transform.calculatePosMatrix(b.toUnwrapped()),x=c?Hr(_,o,t,c,{tileID:b,tileSize:u},y):Zr(_,o,n);d.draw(i,a.TRIANGLES,f,p,h,At.disabled,x,r.id,t.tileExtentBuffer,t.quadTriangleIndexBuffer,t.tileExtentSegments)}}}}},debug:function(t,e,r){for(var n=0;n<r.length;n++)vn(t,e,r[n])},custom:function(t,e,r){var n=t.context,o=r.implementation;if("offscreen"===t.renderPass){var i=o.prerender;i&&(t.setCustomLayerDefaults(),n.setColorMode(t.colorModeForRenderPass()),i.call(o,n.gl,t.transform.customLayerMatrix()),n.setDirty(),t.setBaseState())}else if("translucent"===t.renderPass){t.setCustomLayerDefaults(),n.setColorMode(t.colorModeForRenderPass()),n.setStencilMode(Pt.disabled);var a="3d"===o.renderingMode?new St(t.context.gl.LEQUAL,St.ReadWrite,t.depthRangeFor3D):t.depthModeForSublayer(0,St.ReadOnly);n.setDepthMode(a),o.render(n.gl,t.transform.customLayerMatrix()),n.setDirty(),t.setBaseState(),n.bindFramebuffer.set(null)}}},bn=function(t,e){this.context=new Ct(t),this.transform=e,this._tileTextures={},this.setup(),this.numSublayers=Tt.maxUnderzooming+Tt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Ne,this.gpuTimers={}};bn.prototype.resize=function(e,r){if(this.width=e*t.browser.devicePixelRatio,this.height=r*t.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var n=0,o=this.style._order;n<o.length;n+=1)this.style._layers[o[n]].resize()},bn.prototype.setup=function(){var e=this.context,r=new t.StructArrayLayout2i4;r.emplaceBack(0,0),r.emplaceBack(t.EXTENT,0),r.emplaceBack(0,t.EXTENT),r.emplaceBack(t.EXTENT,t.EXTENT),this.tileExtentBuffer=e.createVertexBuffer(r,$e.members),this.tileExtentSegments=t.SegmentVector.simpleSegment(0,0,4,2);var n=new t.StructArrayLayout2i4;n.emplaceBack(0,0),n.emplaceBack(t.EXTENT,0),n.emplaceBack(0,t.EXTENT),n.emplaceBack(t.EXTENT,t.EXTENT),this.debugBuffer=e.createVertexBuffer(n,$e.members),this.debugSegments=t.SegmentVector.simpleSegment(0,0,4,5);var o=new t.StructArrayLayout4i8;o.emplaceBack(0,0,0,0),o.emplaceBack(t.EXTENT,0,t.EXTENT,0),o.emplaceBack(0,t.EXTENT,0,t.EXTENT),o.emplaceBack(t.EXTENT,t.EXTENT,t.EXTENT,t.EXTENT),this.rasterBoundsBuffer=e.createVertexBuffer(o,k.members),this.rasterBoundsSegments=t.SegmentVector.simpleSegment(0,0,4,2);var i=new t.StructArrayLayout2i4;i.emplaceBack(0,0),i.emplaceBack(1,0),i.emplaceBack(0,1),i.emplaceBack(1,1),this.viewportBuffer=e.createVertexBuffer(i,$e.members),this.viewportSegments=t.SegmentVector.simpleSegment(0,0,4,2);var a=new t.StructArrayLayout1ui2;a.emplaceBack(0),a.emplaceBack(1),a.emplaceBack(3),a.emplaceBack(2),a.emplaceBack(0),this.tileBorderIndexBuffer=e.createIndexBuffer(a);var s=new t.StructArrayLayout3ui6;s.emplaceBack(0,1,2),s.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=e.createIndexBuffer(s),this.emptyTexture=new t.Texture(e,{width:1,height:1,data:new Uint8Array([0,0,0,0])},e.gl.RGBA);var u=this.context.gl;this.stencilClearMode=new Pt({func:u.ALWAYS,mask:0},0,255,u.ZERO,u.ZERO,u.ZERO)},bn.prototype.clearStencil=function(){var e=this.context,r=e.gl;this.nextStencilID=1,this.currentStencilSource=void 0;var n=t.create();t.ortho(n,0,this.width,this.height,0,0,1),t.scale(n,n,[r.drawingBufferWidth,r.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(e,r.TRIANGLES,St.disabled,this.stencilClearMode,jt.disabled,At.disabled,Ir(n),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)},bn.prototype._renderTileClippingMasks=function(t,e){if(this.currentStencilSource!==t.source&&t.isTileClipped()&&e&&e.length){this.currentStencilSource=t.source;var r=this.context,n=r.gl;this.nextStencilID+e.length>256&&this.clearStencil(),r.setColorMode(jt.disabled),r.setDepthMode(St.disabled);var o=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var i=0,a=e;i<a.length;i+=1){var s=a[i],u=this._tileClippingMaskIDs[s.key]=this.nextStencilID++;o.draw(r,n.TRIANGLES,St.disabled,new Pt({func:n.ALWAYS,mask:0},u,255,n.KEEP,n.KEEP,n.REPLACE),jt.disabled,At.disabled,Ir(s.posMatrix),"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}},bn.prototype.stencilModeFor3D=function(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();var t=this.nextStencilID++,e=this.context.gl;return new Pt({func:e.NOTEQUAL,mask:255},t,255,e.KEEP,e.KEEP,e.REPLACE)},bn.prototype.stencilModeForClipping=function(t){var e=this.context.gl;return new Pt({func:e.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,e.KEEP,e.KEEP,e.REPLACE)},bn.prototype.stencilConfigForOverlap=function(t){var e,r=this.context.gl,n=t.sort((function(t,e){return e.overscaledZ-t.overscaledZ})),o=n[n.length-1].overscaledZ,i=n[0].overscaledZ-o+1;if(i>1){this.currentStencilSource=void 0,this.nextStencilID+i>256&&this.clearStencil();for(var a={},s=0;s<i;s++)a[s+o]=new Pt({func:r.GEQUAL,mask:255},s+this.nextStencilID,255,r.KEEP,r.KEEP,r.REPLACE);return this.nextStencilID+=i,[a,n]}return[(e={},e[o]=Pt.disabled,e),n]},bn.prototype.colorModeForRenderPass=function(){var e=this.context.gl;return this._showOverdrawInspector?new jt([e.CONSTANT_COLOR,e.ONE],new t.Color(1/8,1/8,1/8,0),[!0,!0,!0,!0]):"opaque"===this.renderPass?jt.unblended:jt.alphaBlended},bn.prototype.depthModeForSublayer=function(t,e,r){if(!this.opaquePassEnabledForLayer())return St.disabled;var n=1-((1+this.currentLayer)*this.numSublayers+t)*this.depthEpsilon;return new St(r||this.context.gl.LEQUAL,e,[n,n])},bn.prototype.opaquePassEnabledForLayer=function(){return this.currentLayer<this.opaquePassCutoff},bn.prototype.render=function(e,r){var n=this;this.style=e,this.options=r,this.lineAtlas=e.lineAtlas,this.imageManager=e.imageManager,this.glyphManager=e.glyphManager,this.symbolFadeChange=e.placement.symbolFadeChange(t.browser.now()),this.imageManager.beginFrame();var o=this.style._order,i=this.style.sourceCaches;for(var a in i){var s=i[a];s.used&&s.prepare(this.context)}var u,c,l={},p={},f={};for(var h in i){var d=i[h];l[h]=d.getVisibleCoordinates(),p[h]=l[h].slice().reverse(),f[h]=d.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(var m=0;m<o.length;m++)if(this.style._layers[o[m]].is3D()){this.opaquePassCutoff=m;break}this.renderPass="offscreen";for(var y=0,v=o;y<v.length;y+=1){var g=this.style._layers[v[y]];if(g.hasOffscreenPass()&&!g.isHidden(this.transform.zoom)){var b=p[g.source];("custom"===g.type||b.length)&&this.renderLayer(this,i[g.source],g,b)}}for(this.context.bindFramebuffer.set(null),this.context.clear({color:r.showOverdrawInspector?t.Color.black:t.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=r.showOverdrawInspector,this.depthRangeFor3D=[0,1-(e._order.length+2)*this.numSublayers*this.depthEpsilon],this.renderPass="opaque",this.currentLayer=o.length-1;this.currentLayer>=0;this.currentLayer--){var _=this.style._layers[o[this.currentLayer]],x=i[_.source],w=l[_.source];this._renderTileClippingMasks(_,w),this.renderLayer(this,x,_,w)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer<o.length;this.currentLayer++){var O=this.style._layers[o[this.currentLayer]],E=i[O.source],S=("symbol"===O.type?f:p)[O.source];this._renderTileClippingMasks(O,l[O.source]),this.renderLayer(this,E,O,S)}this.options.showTileBoundaries&&(t.values(this.style._layers).forEach((function(t){t.source&&!t.isHidden(n.transform.zoom)&&(t.source!==(c&&c.id)&&(c=n.style.sourceCaches[t.source]),(!u||u.getSource().maxzoom<c.getSource().maxzoom)&&(u=c))})),u&&gn.debug(this,u,u.getVisibleCoordinates())),this.options.showPadding&&function(t){var e=t.transform.padding;dn(t,t.transform.height-(e.top||0),3,cn),dn(t,e.bottom||0,3,ln),mn(t,e.left||0,3,pn),mn(t,t.transform.width-(e.right||0),3,fn);var r=t.transform.centerPoint;!function(t,e,r,n){yn(t,e-1,r-10,2,20,n),yn(t,e-10,r-1,20,2,n)}(t,r.x,t.transform.height-r.y,hn)}(this),this.context.setDefault()},bn.prototype.renderLayer=function(t,e,r,n){r.isHidden(this.transform.zoom)||("background"===r.type||"custom"===r.type||n.length)&&(this.id=r.id,this.gpuTimingStart(r),gn[r.type](t,e,r,n,this.style.placement.variableOffsets),this.gpuTimingEnd())},bn.prototype.gpuTimingStart=function(t){if(this.options.gpuTiming){var e=this.context.extTimerQuery,r=this.gpuTimers[t.id];r||(r=this.gpuTimers[t.id]={calls:0,cpuTime:0,query:e.createQueryEXT()}),r.calls++,e.beginQueryEXT(e.TIME_ELAPSED_EXT,r.query)}},bn.prototype.gpuTimingEnd=function(){if(this.options.gpuTiming){var t=this.context.extTimerQuery;t.endQueryEXT(t.TIME_ELAPSED_EXT)}},bn.prototype.collectGpuTimers=function(){var t=this.gpuTimers;return this.gpuTimers={},t},bn.prototype.queryGpuTimers=function(t){var e={};for(var r in t){var n=t[r],o=this.context.extTimerQuery,i=o.getQueryObjectEXT(n.query,o.QUERY_RESULT_EXT)/1e6;o.deleteQueryEXT(n.query),e[r]=i}return e},bn.prototype.translatePosMatrix=function(e,r,n,o,i){if(!n[0]&&!n[1])return e;var a=i?"map"===o?this.transform.angle:0:"viewport"===o?-this.transform.angle:0;if(a){var s=Math.sin(a),u=Math.cos(a);n=[n[0]*u-n[1]*s,n[0]*s+n[1]*u]}var c=[i?n[0]:fe(r,n[0],this.transform.zoom),i?n[1]:fe(r,n[1],this.transform.zoom),0],l=new Float32Array(16);return t.translate(l,e,c),l},bn.prototype.saveTileTexture=function(t){var e=this._tileTextures[t.size[0]];e?e.push(t):this._tileTextures[t.size[0]]=[t]},bn.prototype.getTileTexture=function(t){var e=this._tileTextures[t];return e&&e.length>0?e.pop():null},bn.prototype.isPatternMissing=function(t){if(!t)return!1;if(!t.from||!t.to)return!0;var e=this.imageManager.getPattern(t.from.toString()),r=this.imageManager.getPattern(t.to.toString());return!e||!r},bn.prototype.useProgram=function(t,e){this.cache=this.cache||{};var r=""+t+(e?e.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[r]||(this.cache[r]=new xr(this.context,t,gr[t],e,Kr[t],this._showOverdrawInspector)),this.cache[r]},bn.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()},bn.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)},bn.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))},bn.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var _n=function(t,e){this.points=t,this.planes=e};_n.fromInvProjectionMatrix=function(e,r,n){var o=Math.pow(2,n),i=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((function(r){return t.transformMat4([],r,e)})).map((function(e){return t.scale$1([],e,1/e[3]/r*o)})),a=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((function(e){var r=t.sub([],i[e[0]],i[e[1]]),n=t.sub([],i[e[2]],i[e[1]]),o=t.normalize([],t.cross([],r,n)),a=-t.dot(o,i[e[1]]);return o.concat(a)}));return new _n(i,a)};var xn=function(e,r){this.min=e,this.max=r,this.center=t.scale$2([],t.add([],this.min,this.max),.5)};xn.prototype.quadrant=function(e){for(var r=[e%2==0,e<2],n=t.clone$2(this.min),o=t.clone$2(this.max),i=0;i<r.length;i++)n[i]=r[i]?this.min[i]:this.center[i],o[i]=r[i]?this.center[i]:this.max[i];return o[2]=this.max[2],new xn(n,o)},xn.prototype.distanceX=function(t){return Math.max(Math.min(this.max[0],t[0]),this.min[0])-t[0]},xn.prototype.distanceY=function(t){return Math.max(Math.min(this.max[1],t[1]),this.min[1])-t[1]},xn.prototype.intersects=function(e){for(var r=[[this.min[0],this.min[1],0,1],[this.max[0],this.min[1],0,1],[this.max[0],this.max[1],0,1],[this.min[0],this.max[1],0,1]],n=!0,o=0;o<e.planes.length;o++){for(var i=e.planes[o],a=0,s=0;s<r.length;s++)a+=t.dot$1(i,r[s])>=0;if(0===a)return 0;a!==r.length&&(n=!1)}if(n)return 2;for(var u=0;u<3;u++){for(var c=Number.MAX_VALUE,l=-Number.MAX_VALUE,p=0;p<e.points.length;p++){var f=e.points[p][u]-this.min[u];c=Math.min(c,f),l=Math.max(l,f)}if(l<0||c>this.max[u]-this.min[u])return 0}return 1};var wn=function(t,e,r,n){if(void 0===t&&(t=0),void 0===e&&(e=0),void 0===r&&(r=0),void 0===n&&(n=0),isNaN(t)||t<0||isNaN(e)||e<0||isNaN(r)||r<0||isNaN(n)||n<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=t,this.bottom=e,this.left=r,this.right=n};wn.prototype.interpolate=function(e,r,n){return null!=r.top&&null!=e.top&&(this.top=t.number(e.top,r.top,n)),null!=r.bottom&&null!=e.bottom&&(this.bottom=t.number(e.bottom,r.bottom,n)),null!=r.left&&null!=e.left&&(this.left=t.number(e.left,r.left,n)),null!=r.right&&null!=e.right&&(this.right=t.number(e.right,r.right,n)),this},wn.prototype.getCenter=function(e,r){var n=t.clamp((this.left+e-this.right)/2,0,e),o=t.clamp((this.top+r-this.bottom)/2,0,r);return new t.Point(n,o)},wn.prototype.equals=function(t){return this.top===t.top&&this.bottom===t.bottom&&this.left===t.left&&this.right===t.right},wn.prototype.clone=function(){return new wn(this.top,this.bottom,this.left,this.right)},wn.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var On=function(e,r,n,o,i){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===i||i,this._minZoom=e||0,this._maxZoom=r||22,this._minPitch=null==n?0:n,this._maxPitch=null==o?60:o,this.setMaxBounds(),this.width=0,this.height=0,this._center=new t.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new wn,this._posMatrixCache={},this._alignedPosMatrixCache={}},En={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}};On.prototype.clone=function(){var t=new On(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},En.minZoom.get=function(){return this._minZoom},En.minZoom.set=function(t){this._minZoom!==t&&(this._minZoom=t,this.zoom=Math.max(this.zoom,t))},En.maxZoom.get=function(){return this._maxZoom},En.maxZoom.set=function(t){this._maxZoom!==t&&(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))},En.minPitch.get=function(){return this._minPitch},En.minPitch.set=function(t){this._minPitch!==t&&(this._minPitch=t,this.pitch=Math.max(this.pitch,t))},En.maxPitch.get=function(){return this._maxPitch},En.maxPitch.set=function(t){this._maxPitch!==t&&(this._maxPitch=t,this.pitch=Math.min(this.pitch,t))},En.renderWorldCopies.get=function(){return this._renderWorldCopies},En.renderWorldCopies.set=function(t){void 0===t?t=!0:null===t&&(t=!1),this._renderWorldCopies=t},En.worldSize.get=function(){return this.tileSize*this.scale},En.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},En.size.get=function(){return new t.Point(this.width,this.height)},En.bearing.get=function(){return-this.angle/Math.PI*180},En.bearing.set=function(e){var r=-t.wrap(e,-180,180)*Math.PI/180;this.angle!==r&&(this._unmodified=!1,this.angle=r,this._calcMatrices(),this.rotationMatrix=t.create$2(),t.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},En.pitch.get=function(){return this._pitch/Math.PI*180},En.pitch.set=function(e){var r=t.clamp(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==r&&(this._unmodified=!1,this._pitch=r,this._calcMatrices())},En.fov.get=function(){return this._fov/Math.PI*180},En.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())},En.zoom.get=function(){return this._zoom},En.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())},En.center.get=function(){return this._center},En.center.set=function(t){t.lat===this._center.lat&&t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._constrain(),this._calcMatrices())},En.padding.get=function(){return this._edgeInsets.toJSON()},En.padding.set=function(t){this._edgeInsets.equals(t)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,t,1),this._calcMatrices())},En.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},On.prototype.isPaddingEqual=function(t){return this._edgeInsets.equals(t)},On.prototype.interpolatePadding=function(t,e,r){this._unmodified=!1,this._edgeInsets.interpolate(t,e,r),this._constrain(),this._calcMatrices()},On.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)},On.prototype.getVisibleUnwrappedCoordinates=function(e){var r=[new t.UnwrappedTileID(0,e)];if(this._renderWorldCopies)for(var n=this.pointCoordinate(new t.Point(0,0)),o=this.pointCoordinate(new t.Point(this.width,0)),i=this.pointCoordinate(new t.Point(this.width,this.height)),a=this.pointCoordinate(new t.Point(0,this.height)),s=Math.floor(Math.min(n.x,o.x,i.x,a.x)),u=Math.floor(Math.max(n.x,o.x,i.x,a.x)),c=s-1;c<=u+1;c++)0!==c&&r.push(new t.UnwrappedTileID(c,e));return r},On.prototype.coveringTiles=function(e){var r=this.coveringZoomLevel(e),n=r;if(void 0!==e.minzoom&&r<e.minzoom)return[];void 0!==e.maxzoom&&r>e.maxzoom&&(r=e.maxzoom);var o=t.MercatorCoordinate.fromLngLat(this.center),i=Math.pow(2,r),a=[i*o.x,i*o.y,0],s=_n.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,r),u=e.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(u=r);var c=function(t){return{aabb:new xn([t*i,0,0],[(t+1)*i,i,0]),zoom:0,x:0,y:0,wrap:t,fullyVisible:!1}},l=[],p=[],f=r,h=e.reparseOverscaled?n:r;if(this._renderWorldCopies)for(var d=1;d<=3;d++)l.push(c(-d)),l.push(c(d));for(l.push(c(0));l.length>0;){var m=l.pop(),y=m.x,v=m.y,g=m.fullyVisible;if(!g){var b=m.aabb.intersects(s);if(0===b)continue;g=2===b}var _=m.aabb.distanceX(a),x=m.aabb.distanceY(a),w=Math.max(Math.abs(_),Math.abs(x));if(m.zoom===f||w>3+(1<<f-m.zoom)-2&&m.zoom>=u)p.push({tileID:new t.OverscaledTileID(m.zoom===f?h:m.zoom,m.wrap,m.zoom,y,v),distanceSq:t.sqrLen([a[0]-.5-y,a[1]-.5-v])});else for(var O=0;O<4;O++){var E=(y<<1)+O%2,S=(v<<1)+(O>>1);l.push({aabb:m.aabb.quadrant(O),zoom:m.zoom+1,x:E,y:S,wrap:m.wrap,fullyVisible:g})}}return p.sort((function(t,e){return t.distanceSq-e.distanceSq})).map((function(t){return t.tileID}))},On.prototype.resize=function(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._constrain(),this._calcMatrices()},En.unmodified.get=function(){return this._unmodified},On.prototype.zoomScale=function(t){return Math.pow(2,t)},On.prototype.scaleZoom=function(t){return Math.log(t)/Math.LN2},On.prototype.project=function(e){var r=t.clamp(e.lat,-this.maxValidLatitude,this.maxValidLatitude);return new t.Point(t.mercatorXfromLng(e.lng)*this.worldSize,t.mercatorYfromLat(r)*this.worldSize)},On.prototype.unproject=function(e){return new t.MercatorCoordinate(e.x/this.worldSize,e.y/this.worldSize).toLngLat()},En.point.get=function(){return this.project(this.center)},On.prototype.setLocationAtPoint=function(e,r){var n=this.pointCoordinate(r),o=this.pointCoordinate(this.centerPoint),i=this.locationCoordinate(e),a=new t.MercatorCoordinate(i.x-(n.x-o.x),i.y-(n.y-o.y));this.center=this.coordinateLocation(a),this._renderWorldCopies&&(this.center=this.center.wrap())},On.prototype.locationPoint=function(t){return this.coordinatePoint(this.locationCoordinate(t))},On.prototype.pointLocation=function(t){return this.coordinateLocation(this.pointCoordinate(t))},On.prototype.locationCoordinate=function(e){return t.MercatorCoordinate.fromLngLat(e)},On.prototype.coordinateLocation=function(t){return t.toLngLat()},On.prototype.pointCoordinate=function(e){var r=[e.x,e.y,0,1],n=[e.x,e.y,1,1];t.transformMat4(r,r,this.pixelMatrixInverse),t.transformMat4(n,n,this.pixelMatrixInverse);var o=r[3],i=n[3],a=r[1]/o,s=n[1]/i,u=r[2]/o,c=n[2]/i,l=u===c?0:(0-u)/(c-u);return new t.MercatorCoordinate(t.number(r[0]/o,n[0]/i,l)/this.worldSize,t.number(a,s,l)/this.worldSize)},On.prototype.coordinatePoint=function(e){var r=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(r,r,this.pixelMatrix),new t.Point(r[0]/r[3],r[1]/r[3])},On.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)))},On.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},On.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])},On.prototype.calculatePosMatrix=function(e,r){void 0===r&&(r=!1);var n=e.key,o=r?this._alignedPosMatrixCache:this._posMatrixCache;if(o[n])return o[n];var i=e.canonical,a=this.worldSize/this.zoomScale(i.z),s=i.x+Math.pow(2,i.z)*e.wrap,u=t.identity(new Float64Array(16));return t.translate(u,u,[s*a,i.y*a,0]),t.scale(u,u,[a/t.EXTENT,a/t.EXTENT,1]),t.multiply(u,r?this.alignedProjMatrix:this.projMatrix,u),o[n]=new Float32Array(u),o[n]},On.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},On.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var e,r,n,o,i=-90,a=90,s=-180,u=180,c=this.size,l=this._unmodified;if(this.latRange){var p=this.latRange;i=t.mercatorYfromLat(p[1])*this.worldSize,e=(a=t.mercatorYfromLat(p[0])*this.worldSize)-i<c.y?c.y/(a-i):0}if(this.lngRange){var f=this.lngRange;s=t.mercatorXfromLng(f[0])*this.worldSize,r=(u=t.mercatorXfromLng(f[1])*this.worldSize)-s<c.x?c.x/(u-s):0}var h=this.point,d=Math.max(r||0,e||0);if(d)return this.center=this.unproject(new t.Point(r?(u+s)/2:h.x,e?(a+i)/2:h.y)),this.zoom+=this.scaleZoom(d),this._unmodified=l,void(this._constraining=!1);if(this.latRange){var m=h.y,y=c.y/2;m-y<i&&(o=i+y),m+y>a&&(o=a-y)}if(this.lngRange){var v=h.x,g=c.x/2;v-g<s&&(n=s+g),v+g>u&&(n=u-g)}void 0===n&&void 0===o||(this.center=this.unproject(new t.Point(void 0!==n?n:h.x,void 0!==o?o:h.y))),this._unmodified=l,this._constraining=!1}},On.prototype._calcMatrices=function(){if(this.height){var e=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var r=Math.PI/2+this._pitch,n=this._fov*(.5+e.y/this.height),o=Math.sin(n)*this.cameraToCenterDistance/Math.sin(t.clamp(Math.PI-r-n,.01,Math.PI-.01)),i=this.point,a=i.x,s=i.y,u=1.01*(Math.cos(Math.PI/2-this._pitch)*o+this.cameraToCenterDistance),c=this.height/50,l=new Float64Array(16);t.perspective(l,this._fov,this.width/this.height,c,u),l[8]=2*-e.x/this.width,l[9]=2*e.y/this.height,t.scale(l,l,[1,-1,1]),t.translate(l,l,[0,0,-this.cameraToCenterDistance]),t.rotateX(l,l,this._pitch),t.rotateZ(l,l,this.angle),t.translate(l,l,[-a,-s,0]),this.mercatorMatrix=t.scale([],l,[this.worldSize,this.worldSize,this.worldSize]),t.scale(l,l,[1,1,t.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=l,this.invProjMatrix=t.invert([],this.projMatrix);var p=this.width%2/2,f=this.height%2/2,h=Math.cos(this.angle),d=Math.sin(this.angle),m=a-Math.round(a)+h*p+d*f,y=s-Math.round(s)+h*f+d*p,v=new Float64Array(l);if(t.translate(v,v,[m>.5?m-1:m,y>.5?y-1:y,0]),this.alignedProjMatrix=v,l=t.create(),t.scale(l,l,[this.width/2,-this.height/2,1]),t.translate(l,l,[1,-1,0]),this.labelPlaneMatrix=l,l=t.create(),t.scale(l,l,[1,-1,1]),t.translate(l,l,[-1,-1,0]),t.scale(l,l,[2/this.width,2/this.height,1]),this.glCoordMatrix=l,this.pixelMatrix=t.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(l=t.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=l,this._posMatrixCache={},this._alignedPosMatrixCache={}}},On.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var e=this.pointCoordinate(new t.Point(0,0)),r=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(r,r,this.pixelMatrix)[3]/this.cameraToCenterDistance},On.prototype.getCameraPoint=function(){var e=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new t.Point(0,e))},On.prototype.getCameraQueryGeometry=function(e){var r=this.getCameraPoint();if(1===e.length)return[e[0],r];for(var n=r.x,o=r.y,i=r.x,a=r.y,s=0,u=e;s<u.length;s+=1){var c=u[s];n=Math.min(n,c.x),o=Math.min(o,c.y),i=Math.max(i,c.x),a=Math.max(a,c.y)}return[new t.Point(n,o),new t.Point(i,o),new t.Point(i,a),new t.Point(n,a),new t.Point(n,o)]},Object.defineProperties(On.prototype,En);var Sn=function(e){var r,n,o,i;this._hashName=e&&encodeURIComponent(e),t.bindAll(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=(r=this._updateHashUnthrottled.bind(this),n=!1,o=null,i=function(){o=null,n&&(r(),o=setTimeout(i,300),n=!1)},function(){return n=!0,o||i(),o})};Sn.prototype.addTo=function(e){return this._map=e,t.window.addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this},Sn.prototype.remove=function(){return t.window.removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),delete this._map,this},Sn.prototype.getHashString=function(e){var r=this._map.getCenter(),n=Math.round(100*this._map.getZoom())/100,o=Math.ceil((n*Math.LN2+Math.log(512/360/.5))/Math.LN10),i=Math.pow(10,o),a=Math.round(r.lng*i)/i,s=Math.round(r.lat*i)/i,u=this._map.getBearing(),c=this._map.getPitch(),l="";if(l+=e?"/"+a+"/"+s+"/"+n:n+"/"+s+"/"+a,(u||c)&&(l+="/"+Math.round(10*u)/10),c&&(l+="/"+Math.round(c)),this._hashName){var p=this._hashName,f=!1,h=t.window.location.hash.slice(1).split("&").map((function(t){var e=t.split("=")[0];return e===p?(f=!0,e+"="+l):t})).filter((function(t){return t}));return f||h.push(p+"="+l),"#"+h.join("&")}return"#"+l},Sn.prototype._getCurrentHash=function(){var e,r=this,n=t.window.location.hash.replace("#","");return this._hashName?(n.split("&").map((function(t){return t.split("=")})).forEach((function(t){t[0]===r._hashName&&(e=t)})),(e&&e[1]||"").split("/")):n.split("/")},Sn.prototype._onHashChange=function(){var t=this._getCurrentHash();if(t.length>=3&&!t.some((function(t){return isNaN(t)}))){var e=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:e,pitch:+(t[4]||0)}),!0}return!1},Sn.prototype._updateHashUnthrottled=function(){var e=t.window.location.href.replace(/(#.+)?$/,this.getHashString());try{t.window.history.replaceState(t.window.history.state,null,e)}catch(t){}};var Pn={linearity:.3,easing:t.bezier(0,0,.3,1)},jn=t.extend({deceleration:2500,maxSpeed:1400},Pn),An=t.extend({deceleration:20,maxSpeed:1400},Pn),Cn=t.extend({deceleration:1e3,maxSpeed:360},Pn),Tn=t.extend({deceleration:1e3,maxSpeed:90},Pn),kn=function(t){this._map=t,this.clear()};function Mn(t,e){(!t.duration||t.duration<e.duration)&&(t.duration=e.duration,t.easing=e.easing)}function In(e,r,n){var o=n.maxSpeed,i=n.linearity,a=n.deceleration,s=t.clamp(e*i/(r/1e3),-o,o),u=Math.abs(s)/(a*i);return{easing:n.easing,duration:1e3*u,amount:s*(u/2)}}kn.prototype.clear=function(){this._inertiaBuffer=[]},kn.prototype.record=function(e){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:t.browser.now(),settings:e})},kn.prototype._drainInertiaBuffer=function(){for(var e=this._inertiaBuffer,r=t.browser.now();e.length>0&&r-e[0].time>160;)e.shift()},kn.prototype._onMoveEnd=function(e){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var r={zoom:0,bearing:0,pitch:0,pan:new t.Point(0,0),pinchAround:void 0,around:void 0},n=0,o=this._inertiaBuffer;n<o.length;n+=1){var i=o[n].settings;r.zoom+=i.zoomDelta||0,r.bearing+=i.bearingDelta||0,r.pitch+=i.pitchDelta||0,i.panDelta&&r.pan._add(i.panDelta),i.around&&(r.around=i.around),i.pinchAround&&(r.pinchAround=i.pinchAround)}var a=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,s={};if(r.pan.mag()){var u=In(r.pan.mag(),a,t.extend({},jn,e||{}));s.offset=r.pan.mult(u.amount/r.pan.mag()),s.center=this._map.transform.center,Mn(s,u)}if(r.zoom){var c=In(r.zoom,a,An);s.zoom=this._map.transform.zoom+c.amount,Mn(s,c)}if(r.bearing){var l=In(r.bearing,a,Cn);s.bearing=this._map.transform.bearing+t.clamp(l.amount,-179,179),Mn(s,l)}if(r.pitch){var p=In(r.pitch,a,Tn);s.pitch=this._map.transform.pitch+p.amount,Mn(s,p)}if(s.zoom||s.bearing){var f=void 0===r.pinchAround?r.around:r.pinchAround;s.around=f?this._map.unproject(f):this._map.getCenter()}return this.clear(),t.extend(s,{noMoveStart:!0})}};var Dn=function(e){function n(n,o,i,a){void 0===a&&(a={});var s=r.mousePos(o.getCanvasContainer(),i),u=o.unproject(s);e.call(this,n,t.extend({point:s,lngLat:u,originalEvent:i},a)),this._defaultPrevented=!1,this.target=o}e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n;var o={defaultPrevented:{configurable:!0}};return n.prototype.preventDefault=function(){this._defaultPrevented=!0},o.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(n.prototype,o),n}(t.Event),Ln=function(e){function n(n,o,i){var a="touchend"===n?i.changedTouches:i.touches,s=r.touchPos(o.getCanvasContainer(),a),u=s.map((function(t){return o.unproject(t)})),c=s.reduce((function(t,e,r,n){return t.add(e.div(n.length))}),new t.Point(0,0)),l=o.unproject(c);e.call(this,n,{points:s,point:c,lngLats:u,lngLat:l,originalEvent:i}),this._defaultPrevented=!1}e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n;var o={defaultPrevented:{configurable:!0}};return n.prototype.preventDefault=function(){this._defaultPrevented=!0},o.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(n.prototype,o),n}(t.Event),Rn=function(t){function e(e,r,n){t.call(this,e,{originalEvent:n}),this._defaultPrevented=!1}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var r={defaultPrevented:{configurable:!0}};return e.prototype.preventDefault=function(){this._defaultPrevented=!0},r.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(e.prototype,r),e}(t.Event),zn=function(t,e){this._map=t,this._clickTolerance=e.clickTolerance};zn.prototype.reset=function(){delete this._mousedownPos},zn.prototype.wheel=function(t){return this._firePreventable(new Rn(t.type,this._map,t))},zn.prototype.mousedown=function(t,e){return this._mousedownPos=e,this._firePreventable(new Dn(t.type,this._map,t))},zn.prototype.mouseup=function(t){this._map.fire(new Dn(t.type,this._map,t))},zn.prototype.click=function(t,e){this._mousedownPos&&this._mousedownPos.dist(e)>=this._clickTolerance||this._map.fire(new Dn(t.type,this._map,t))},zn.prototype.dblclick=function(t){return this._firePreventable(new Dn(t.type,this._map,t))},zn.prototype.mouseover=function(t){this._map.fire(new Dn(t.type,this._map,t))},zn.prototype.mouseout=function(t){this._map.fire(new Dn(t.type,this._map,t))},zn.prototype.touchstart=function(t){return this._firePreventable(new Ln(t.type,this._map,t))},zn.prototype.touchmove=function(t){this._map.fire(new Ln(t.type,this._map,t))},zn.prototype.touchend=function(t){this._map.fire(new Ln(t.type,this._map,t))},zn.prototype.touchcancel=function(t){this._map.fire(new Ln(t.type,this._map,t))},zn.prototype._firePreventable=function(t){if(this._map.fire(t),t.defaultPrevented)return{}},zn.prototype.isEnabled=function(){return!0},zn.prototype.isActive=function(){return!1},zn.prototype.enable=function(){},zn.prototype.disable=function(){};var Nn=function(t){this._map=t};Nn.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Nn.prototype.mousemove=function(t){this._map.fire(new Dn(t.type,this._map,t))},Nn.prototype.mousedown=function(){this._delayContextMenu=!0},Nn.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Dn("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Nn.prototype.contextmenu=function(t){this._delayContextMenu?this._contextMenuEvent=t:this._map.fire(new Dn(t.type,this._map,t)),this._map.listens("contextmenu")&&t.preventDefault()},Nn.prototype.isEnabled=function(){return!0},Nn.prototype.isActive=function(){return!1},Nn.prototype.enable=function(){},Nn.prototype.disable=function(){};var Fn=function(t,e){this._map=t,this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=e.clickTolerance||1};function Bn(t,e){for(var r={},n=0;n<t.length;n++)r[t[n].identifier]=e[n];return r}Fn.prototype.isEnabled=function(){return!!this._enabled},Fn.prototype.isActive=function(){return!!this._active},Fn.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Fn.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Fn.prototype.mousedown=function(t,e){this.isEnabled()&&t.shiftKey&&0===t.button&&(r.disableDrag(),this._startPos=this._lastPos=e,this._active=!0)},Fn.prototype.mousemoveWindow=function(t,e){if(this._active){var n=e;if(!(this._lastPos.equals(n)||!this._box&&n.dist(this._startPos)<this._clickTolerance)){var o=this._startPos;this._lastPos=n,this._box||(this._box=r.create("div","maplibregl-boxzoom mapboxgl-boxzoom",this._container),this._container.classList.add("maplibregl-crosshair","mapboxgl-crosshair"),this._fireEvent("boxzoomstart",t));var i=Math.min(o.x,n.x),a=Math.max(o.x,n.x),s=Math.min(o.y,n.y),u=Math.max(o.y,n.y);r.setTransform(this._box,"translate("+i+"px,"+s+"px)"),this._box.style.width=a-i+"px",this._box.style.height=u-s+"px"}}},Fn.prototype.mouseupWindow=function(e,n){var o=this;if(this._active&&0===e.button){var i=this._startPos,a=n;if(this.reset(),r.suppressClick(),i.x!==a.x||i.y!==a.y)return this._map.fire(new t.Event("boxzoomend",{originalEvent:e})),{cameraAnimation:function(t){return t.fitScreenCoordinates(i,a,o._map.getBearing(),{linear:!0})}};this._fireEvent("boxzoomcancel",e)}},Fn.prototype.keydown=function(t){this._active&&27===t.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",t))},Fn.prototype.reset=function(){this._active=!1,this._container.classList.remove("maplibregl-crosshair","mapboxgl-crosshair"),this._box&&(r.remove(this._box),this._box=null),r.enableDrag(),delete this._startPos,delete this._lastPos},Fn.prototype._fireEvent=function(e,r){return this._map.fire(new t.Event(e,{originalEvent:r}))};var Vn=function(t){this.reset(),this.numTouches=t.numTouches};Vn.prototype.reset=function(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1},Vn.prototype.touchstart=function(e,r,n){(this.centroid||n.length>this.numTouches)&&(this.aborted=!0),this.aborted||(void 0===this.startTime&&(this.startTime=e.timeStamp),n.length===this.numTouches&&(this.centroid=function(e){for(var r=new t.Point(0,0),n=0,o=e;n<o.length;n+=1)r._add(o[n]);return r.div(e.length)}(r),this.touches=Bn(n,r)))},Vn.prototype.touchmove=function(t,e,r){if(!this.aborted&&this.centroid){var n=Bn(r,e);for(var o in this.touches){var i=n[o];(!i||i.dist(this.touches[o])>30)&&(this.aborted=!0)}}},Vn.prototype.touchend=function(t,e,r){if((!this.centroid||t.timeStamp-this.startTime>500)&&(this.aborted=!0),0===r.length){var n=!this.aborted&&this.centroid;if(this.reset(),n)return n}};var Un=function(t){this.singleTap=new Vn(t),this.numTaps=t.numTaps,this.reset()};Un.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Un.prototype.touchstart=function(t,e,r){this.singleTap.touchstart(t,e,r)},Un.prototype.touchmove=function(t,e,r){this.singleTap.touchmove(t,e,r)},Un.prototype.touchend=function(t,e,r){var n=this.singleTap.touchend(t,e,r);if(n){var o=t.timeStamp-this.lastTime<500,i=!this.lastTap||this.lastTap.dist(n)<30;if(o&&i||this.reset(),this.count++,this.lastTime=t.timeStamp,this.lastTap=n,this.count===this.numTaps)return this.reset(),n}};var qn=function(){this._zoomIn=new Un({numTouches:1,numTaps:2}),this._zoomOut=new Un({numTouches:2,numTaps:1}),this.reset()};qn.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},qn.prototype.touchstart=function(t,e,r){this._zoomIn.touchstart(t,e,r),this._zoomOut.touchstart(t,e,r)},qn.prototype.touchmove=function(t,e,r){this._zoomIn.touchmove(t,e,r),this._zoomOut.touchmove(t,e,r)},qn.prototype.touchend=function(t,e,r){var n=this,o=this._zoomIn.touchend(t,e,r),i=this._zoomOut.touchend(t,e,r);return o?(this._active=!0,t.preventDefault(),setTimeout((function(){return n.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()+1,around:e.unproject(o)},{originalEvent:t})}}):i?(this._active=!0,t.preventDefault(),setTimeout((function(){return n.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()-1,around:e.unproject(i)},{originalEvent:t})}}):void 0},qn.prototype.touchcancel=function(){this.reset()},qn.prototype.enable=function(){this._enabled=!0},qn.prototype.disable=function(){this._enabled=!1,this.reset()},qn.prototype.isEnabled=function(){return this._enabled},qn.prototype.isActive=function(){return this._active};var $n={0:1,2:2},Gn=function(t){this.reset(),this._clickTolerance=t.clickTolerance||1};Gn.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},Gn.prototype._correctButton=function(t,e){return!1},Gn.prototype._move=function(t,e){return{}},Gn.prototype.mousedown=function(t,e){if(!this._lastPoint){var n=r.mouseButton(t);this._correctButton(t,n)&&(this._lastPoint=e,this._eventButton=n)}},Gn.prototype.mousemoveWindow=function(t,e){var r=this._lastPoint;if(r)if(t.preventDefault(),function(t,e){var r=$n[e];return void 0===t.buttons||(t.buttons&r)!==r}(t,this._eventButton))this.reset();else if(this._moved||!(e.dist(r)<this._clickTolerance))return this._moved=!0,this._lastPoint=e,this._move(r,e)},Gn.prototype.mouseupWindow=function(t){this._lastPoint&&r.mouseButton(t)===this._eventButton&&(this._moved&&r.suppressClick(),this.reset())},Gn.prototype.enable=function(){this._enabled=!0},Gn.prototype.disable=function(){this._enabled=!1,this.reset()},Gn.prototype.isEnabled=function(){return this._enabled},Gn.prototype.isActive=function(){return this._active};var Wn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.mousedown=function(e,r){t.prototype.mousedown.call(this,e,r),this._lastPoint&&(this._active=!0)},e.prototype._correctButton=function(t,e){return 0===e&&!t.ctrlKey},e.prototype._move=function(t,e){return{around:e,panDelta:e.sub(t)}},e}(Gn),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._correctButton=function(t,e){return 0===e&&t.ctrlKey||2===e},e.prototype._move=function(t,e){var r=.8*(e.x-t.x);if(r)return this._active=!0,{bearingDelta:r}},e.prototype.contextmenu=function(t){t.preventDefault()},e}(Gn),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._correctButton=function(t,e){return 0===e&&t.ctrlKey||2===e},e.prototype._move=function(t,e){var r=-.5*(e.y-t.y);if(r)return this._active=!0,{pitchDelta:r}},e.prototype.contextmenu=function(t){t.preventDefault()},e}(Gn),Kn=function(t){this._minTouches=1,this._clickTolerance=t.clickTolerance||1,this.reset()};Kn.prototype.reset=function(){this._active=!1,this._touches={},this._sum=new t.Point(0,0)},Kn.prototype.touchstart=function(t,e,r){return this._calculateTransform(t,e,r)},Kn.prototype.touchmove=function(t,e,r){if(this._active&&!(r.length<this._minTouches))return t.preventDefault(),this._calculateTransform(t,e,r)},Kn.prototype.touchend=function(t,e,r){this._calculateTransform(t,e,r),this._active&&r.length<this._minTouches&&this.reset()},Kn.prototype.touchcancel=function(){this.reset()},Kn.prototype._calculateTransform=function(e,r,n){n.length>0&&(this._active=!0);var o=Bn(n,r),i=new t.Point(0,0),a=new t.Point(0,0),s=0;for(var u in o){var c=o[u],l=this._touches[u];l&&(i._add(c),a._add(c.sub(l)),s++,o[u]=c)}if(this._touches=o,!(s<this._minTouches)&&a.mag()){var p=a.div(s);if(this._sum._add(p),!(this._sum.mag()<this._clickTolerance))return{around:i.div(s),panDelta:p}}},Kn.prototype.enable=function(){this._enabled=!0},Kn.prototype.disable=function(){this._enabled=!1,this.reset()},Kn.prototype.isEnabled=function(){return this._enabled},Kn.prototype.isActive=function(){return this._active};var Yn=function(){this.reset()};function Xn(t,e,r){for(var n=0;n<t.length;n++)if(t[n].identifier===r)return e[n]}function Jn(t,e){return Math.log(t/e)/Math.LN2}Yn.prototype.reset=function(){this._active=!1,delete this._firstTwoTouches},Yn.prototype._start=function(t){},Yn.prototype._move=function(t,e,r){return{}},Yn.prototype.touchstart=function(t,e,r){this._firstTwoTouches||r.length<2||(this._firstTwoTouches=[r[0].identifier,r[1].identifier],this._start([e[0],e[1]]))},Yn.prototype.touchmove=function(t,e,r){if(this._firstTwoTouches){t.preventDefault();var n=this._firstTwoTouches,o=n[1],i=Xn(r,e,n[0]),a=Xn(r,e,o);if(i&&a){var s=this._aroundCenter?null:i.add(a).div(2);return this._move([i,a],s,t)}}},Yn.prototype.touchend=function(t,e,n){if(this._firstTwoTouches){var o=this._firstTwoTouches,i=o[1],a=Xn(n,e,o[0]),s=Xn(n,e,i);a&&s||(this._active&&r.suppressClick(),this.reset())}},Yn.prototype.touchcancel=function(){this.reset()},Yn.prototype.enable=function(t){this._enabled=!0,this._aroundCenter=!!t&&"center"===t.around},Yn.prototype.disable=function(){this._enabled=!1,this.reset()},Yn.prototype.isEnabled=function(){return this._enabled},Yn.prototype.isActive=function(){return this._active};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.reset=function(){t.prototype.reset.call(this),delete this._distance,delete this._startDistance},e.prototype._start=function(t){this._startDistance=this._distance=t[0].dist(t[1])},e.prototype._move=function(t,e){var r=this._distance;if(this._distance=t[0].dist(t[1]),this._active||!(Math.abs(Jn(this._distance,this._startDistance))<.1))return this._active=!0,{zoomDelta:Jn(this._distance,r),pinchAround:e}},e}(Yn);function to(t,e){return 180*t.angleWith(e)/Math.PI}var eo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),delete this._minDiameter,delete this._startVector,delete this._vector},e.prototype._start=function(t){this._startVector=this._vector=t[0].sub(t[1]),this._minDiameter=t[0].dist(t[1])},e.prototype._move=function(t,e){var r=this._vector;if(this._vector=t[0].sub(t[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:to(this._vector,r),pinchAround:e}},e.prototype._isBelowThreshold=function(t){this._minDiameter=Math.min(this._minDiameter,t.mag());var e=25/(Math.PI*this._minDiameter)*360,r=to(t,this._startVector);return Math.abs(r)<e},e}(Yn);function ro(t){return Math.abs(t.y)>Math.abs(t.x)}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.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,ro(t[0].sub(t[1]))&&(this._valid=!1)},e.prototype._move=function(t,e,r){var n=t[0].sub(this._lastPoints[0]),o=t[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(n,o,r.timeStamp),this._valid)return this._lastPoints=t,this._active=!0,{pitchDelta:(n.y+o.y)/2*-.5}},e.prototype.gestureBeginsVertically=function(t,e,r){if(void 0!==this._valid)return this._valid;var n=t.mag()>=2,o=e.mag()>=2;if(n||o){if(!n||!o)return void 0===this._firstMove&&(this._firstMove=r),r-this._firstMove<100&&void 0;var i=t.y>0==e.y>0;return ro(t)&&ro(e)&&i}},e}(Yn),oo={panStep:100,bearingStep:15,pitchStep:10},io=function(){var t=oo;this._panStep=t.panStep,this._bearingStep=t.bearingStep,this._pitchStep=t.pitchStep,this._rotationDisabled=!1};function ao(t){return t*(2-t)}io.prototype.reset=function(){this._active=!1},io.prototype.keydown=function(t){var e=this;if(!(t.altKey||t.ctrlKey||t.metaKey)){var r=0,n=0,o=0,i=0,a=0;switch(t.keyCode){case 61:case 107:case 171:case 187:r=1;break;case 189:case 109:case 173:r=-1;break;case 37:t.shiftKey?n=-1:(t.preventDefault(),i=-1);break;case 39:t.shiftKey?n=1:(t.preventDefault(),i=1);break;case 38:t.shiftKey?o=1:(t.preventDefault(),a=-1);break;case 40:t.shiftKey?o=-1:(t.preventDefault(),a=1);break;default:return}return this._rotationDisabled&&(n=0,o=0),{cameraAnimation:function(s){var u=s.getZoom();s.easeTo({duration:300,easeId:"keyboardHandler",easing:ao,zoom:r?Math.round(u)+r*(t.shiftKey?2:1):u,bearing:s.getBearing()+n*e._bearingStep,pitch:s.getPitch()+o*e._pitchStep,offset:[-i*e._panStep,-a*e._panStep],center:s.getCenter()},{originalEvent:t})}}}},io.prototype.enable=function(){this._enabled=!0},io.prototype.disable=function(){this._enabled=!1,this.reset()},io.prototype.isEnabled=function(){return this._enabled},io.prototype.isActive=function(){return this._active},io.prototype.disableRotation=function(){this._rotationDisabled=!0},io.prototype.enableRotation=function(){this._rotationDisabled=!1};var so=function(e,r){this._map=e,this._el=e.getCanvasContainer(),this._handler=r,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,t.bindAll(["_onTimeout"],this)};so.prototype.setZoomRate=function(t){this._defaultZoomRate=t},so.prototype.setWheelZoomRate=function(t){this._wheelZoomRate=t},so.prototype.isEnabled=function(){return!!this._enabled},so.prototype.isActive=function(){return!!this._active||void 0!==this._finishTimeout},so.prototype.isZooming=function(){return!!this._zooming},so.prototype.enable=function(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=t&&"center"===t.around)},so.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},so.prototype.wheel=function(e){if(this.isEnabled()){var r=e.deltaMode===t.window.WheelEvent.DOM_DELTA_LINE?40*e.deltaY:e.deltaY,n=t.browser.now(),o=n-(this._lastWheelEventTime||0);this._lastWheelEventTime=n,0!==r&&r%4.000244140625==0?this._type="wheel":0!==r&&Math.abs(r)<4?this._type="trackpad":o>400?(this._type=null,this._lastValue=r,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(o*r)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,r+=this._lastValue)),e.shiftKey&&r&&(r/=4),this._type&&(this._lastWheelEvent=e,this._delta-=r,this._active||this._start(e)),e.preventDefault()}},so.prototype._onTimeout=function(t){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(t)},so.prototype._start=function(e){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var n=r.mousePos(this._el,e);this._around=t.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(n)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},so.prototype.renderFrame=function(){var e=this;if(this._frameId&&(this._frameId=null,this.isActive())){var r=this._map.transform;if(0!==this._delta){var n="wheel"===this._type&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,o=2/(1+Math.exp(-Math.abs(this._delta*n)));this._delta<0&&0!==o&&(o=1/o);var i="number"==typeof this._targetZoom?r.zoomScale(this._targetZoom):r.scale;this._targetZoom=Math.min(r.maxZoom,Math.max(r.minZoom,r.scaleZoom(i*o))),"wheel"===this._type&&(this._startZoom=r.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var a,s="number"==typeof this._targetZoom?this._targetZoom:r.zoom,u=this._startZoom,c=this._easing,l=!1;if("wheel"===this._type&&u&&c){var p=Math.min((t.browser.now()-this._lastWheelEventTime)/200,1),f=c(p);a=t.number(u,s,f),p<1?this._frameId||(this._frameId=!0):l=!0}else a=s,l=!0;return this._active=!0,l&&(this._active=!1,this._finishTimeout=setTimeout((function(){e._zooming=!1,e._handler._triggerRenderFrame(),delete e._targetZoom,delete e._finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!l,zoomDelta:a-r.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},so.prototype._smoothOutEasing=function(e){var r=t.ease;if(this._prevEase){var n=this._prevEase,o=(t.browser.now()-n.start)/n.duration,i=n.easing(o+.01)-n.easing(o),a=.27/Math.sqrt(i*i+1e-4)*.01,s=Math.sqrt(.0729-a*a);r=t.bezier(a,s,.25,1)}return this._prevEase={start:t.browser.now(),duration:e,easing:r},r},so.prototype.reset=function(){this._active=!1};var uo=function(t,e){this._clickZoom=t,this._tapZoom=e};uo.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},uo.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},uo.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},uo.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var co=function(){this.reset()};co.prototype.reset=function(){this._active=!1},co.prototype.dblclick=function(t,e){return t.preventDefault(),{cameraAnimation:function(r){r.easeTo({duration:300,zoom:r.getZoom()+(t.shiftKey?-1:1),around:r.unproject(e)},{originalEvent:t})}}},co.prototype.enable=function(){this._enabled=!0},co.prototype.disable=function(){this._enabled=!1,this.reset()},co.prototype.isEnabled=function(){return this._enabled},co.prototype.isActive=function(){return this._active};var lo=function(){this._tap=new Un({numTouches:1,numTaps:1}),this.reset()};lo.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},lo.prototype.touchstart=function(t,e,r){this._swipePoint||(this._tapTime&&t.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?r.length>0&&(this._swipePoint=e[0],this._swipeTouch=r[0].identifier):this._tap.touchstart(t,e,r))},lo.prototype.touchmove=function(t,e,r){if(this._tapTime){if(this._swipePoint){if(r[0].identifier!==this._swipeTouch)return;var n=e[0],o=n.y-this._swipePoint.y;return this._swipePoint=n,t.preventDefault(),this._active=!0,{zoomDelta:o/128}}}else this._tap.touchmove(t,e,r)},lo.prototype.touchend=function(t,e,r){this._tapTime?this._swipePoint&&0===r.length&&this.reset():this._tap.touchend(t,e,r)&&(this._tapTime=t.timeStamp)},lo.prototype.touchcancel=function(){this.reset()},lo.prototype.enable=function(){this._enabled=!0},lo.prototype.disable=function(){this._enabled=!1,this.reset()},lo.prototype.isEnabled=function(){return this._enabled},lo.prototype.isActive=function(){return this._active};var po=function(t,e,r){this._el=t,this._mousePan=e,this._touchPan=r};po.prototype.enable=function(t){this._inertiaOptions=t||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan","mapboxgl-touch-drag-pan")},po.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan","mapboxgl-touch-drag-pan")},po.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},po.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var fo=function(t,e,r){this._pitchWithRotate=t.pitchWithRotate,this._mouseRotate=e,this._mousePitch=r};fo.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},fo.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},fo.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},fo.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var ho=function(t,e,r,n){this._el=t,this._touchZoom=e,this._touchRotate=r,this._tapDragZoom=n,this._rotationDisabled=!1,this._enabled=!0};ho.prototype.enable=function(t){this._touchZoom.enable(t),this._rotationDisabled||this._touchRotate.enable(t),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate","mapboxgl-touch-zoom-rotate")},ho.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate","mapboxgl-touch-zoom-rotate")},ho.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},ho.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},ho.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},ho.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var mo=function(t){return t.zoom||t.drag||t.pitch||t.rotate},yo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(t.Event);function vo(t){return t.panDelta&&t.panDelta.mag()||t.zoomDelta||t.bearingDelta||t.pitchDelta}var go=function(e,n){this._map=e,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new kn(e),this._bearingSnap=n.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(n),t.bindAll(["handleEvent","handleWindowEvent"],this);var o=this._el;this._listeners=[[o,"touchstart",{passive:!0}],[o,"touchmove",{passive:!1}],[o,"touchend",void 0],[o,"touchcancel",void 0],[o,"mousedown",void 0],[o,"mousemove",void 0],[o,"mouseup",void 0],[t.window.document,"mousemove",{capture:!0}],[t.window.document,"mouseup",void 0],[o,"mouseover",void 0],[o,"mouseout",void 0],[o,"dblclick",void 0],[o,"click",void 0],[o,"keydown",{capture:!1}],[o,"keyup",void 0],[o,"wheel",{passive:!1}],[o,"contextmenu",void 0],[t.window,"blur",void 0]];for(var i=0,a=this._listeners;i<a.length;i+=1){var s=a[i],u=s[0];r.addEventListener(u,s[1],u===t.window.document?this.handleWindowEvent:this.handleEvent,s[2])}};go.prototype.destroy=function(){for(var e=0,n=this._listeners;e<n.length;e+=1){var o=n[e],i=o[0];r.removeEventListener(i,o[1],i===t.window.document?this.handleWindowEvent:this.handleEvent,o[2])}},go.prototype._addDefaultHandlers=function(t){var e=this._map,r=e.getCanvasContainer();this._add("mapEvent",new zn(e,t));var n=e.boxZoom=new Fn(e,t);this._add("boxZoom",n);var o=new qn,i=new co;e.doubleClickZoom=new uo(i,o),this._add("tapZoom",o),this._add("clickZoom",i);var a=new lo;this._add("tapDragZoom",a);var s=e.touchPitch=new no;this._add("touchPitch",s);var u=new Zn(t),c=new Hn(t);e.dragRotate=new fo(t,u,c),this._add("mouseRotate",u,["mousePitch"]),this._add("mousePitch",c,["mouseRotate"]);var l=new Wn(t),p=new Kn(t);e.dragPan=new po(r,l,p),this._add("mousePan",l),this._add("touchPan",p,["touchZoom","touchRotate"]);var f=new eo,h=new Qn;e.touchZoomRotate=new ho(r,h,f,a),this._add("touchRotate",f,["touchPan","touchZoom"]),this._add("touchZoom",h,["touchPan","touchRotate"]);var d=e.scrollZoom=new so(e,this);this._add("scrollZoom",d,["mousePan"]);var m=e.keyboard=new io;this._add("keyboard",m),this._add("blockableMapEvent",new Nn(e));for(var y=0,v=["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"];y<v.length;y+=1){var g=v[y];t.interactive&&t[g]&&e[g].enable(t[g])}},go.prototype._add=function(t,e,r){this._handlers.push({handlerName:t,handler:e,allowed:r}),this._handlersById[t]=e},go.prototype.stop=function(t){if(!this._updatingCamera){for(var e=0,r=this._handlers;e<r.length;e+=1)r[e].handler.reset();this._inertia.clear(),this._fireEvents({},{},t),this._changes=[]}},go.prototype.isActive=function(){for(var t=0,e=this._handlers;t<e.length;t+=1)if(e[t].handler.isActive())return!0;return!1},go.prototype.isZooming=function(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()},go.prototype.isRotating=function(){return!!this._eventsInProgress.rotate},go.prototype.isMoving=function(){return Boolean(mo(this._eventsInProgress))||this.isZooming()},go.prototype._blockedByActive=function(t,e,r){for(var n in t)if(n!==r&&(!e||e.indexOf(n)<0))return!0;return!1},go.prototype.handleWindowEvent=function(t){this.handleEvent(t,t.type+"Window")},go.prototype._getMapTouches=function(t){for(var e=[],r=0,n=t;r<n.length;r+=1){var o=n[r];this._el.contains(o.target)&&e.push(o)}return e},go.prototype.handleEvent=function(t,e){if("blur"!==t.type){this._updatingCamera=!0;for(var n="renderFrame"===t.type?void 0:t,o={needsRenderFrame:!1},i={},a={},s=t.touches?this._getMapTouches(t.touches):void 0,u=s?r.touchPos(this._el,s):r.mousePos(this._el,t),c=0,l=this._handlers;c<l.length;c+=1){var p=l[c],f=p.handlerName,h=p.handler,d=p.allowed;if(h.isEnabled()){var m=void 0;this._blockedByActive(a,d,f)?h.reset():h[e||t.type]&&(m=h[e||t.type](t,u,s),this.mergeHandlerResult(o,i,m,f,n),m&&m.needsRenderFrame&&this._triggerRenderFrame()),(m||h.isActive())&&(a[f]=h)}}var y={};for(var v in this._previousActiveHandlers)a[v]||(y[v]=n);this._previousActiveHandlers=a,(Object.keys(y).length||vo(o))&&(this._changes.push([o,i,y]),this._triggerRenderFrame()),(Object.keys(a).length||vo(o))&&this._map._stop(!0),this._updatingCamera=!1;var g=o.cameraAnimation;g&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],g(this._map))}else this.stop(!0)},go.prototype.mergeHandlerResult=function(e,r,n,o,i){if(n){t.extend(e,n);var a={handlerName:o,originalEvent:n.originalEvent||i};void 0!==n.zoomDelta&&(r.zoom=a),void 0!==n.panDelta&&(r.drag=a),void 0!==n.pitchDelta&&(r.pitch=a),void 0!==n.bearingDelta&&(r.rotate=a)}},go.prototype._applyChanges=function(){for(var e={},r={},n={},o=0,i=this._changes;o<i.length;o+=1){var a=i[o],s=a[0],u=a[1],c=a[2];s.panDelta&&(e.panDelta=(e.panDelta||new t.Point(0,0))._add(s.panDelta)),s.zoomDelta&&(e.zoomDelta=(e.zoomDelta||0)+s.zoomDelta),s.bearingDelta&&(e.bearingDelta=(e.bearingDelta||0)+s.bearingDelta),s.pitchDelta&&(e.pitchDelta=(e.pitchDelta||0)+s.pitchDelta),void 0!==s.around&&(e.around=s.around),void 0!==s.pinchAround&&(e.pinchAround=s.pinchAround),s.noInertia&&(e.noInertia=s.noInertia),t.extend(r,u),t.extend(n,c)}this._updateMapTransform(e,r,n),this._changes=[]},go.prototype._updateMapTransform=function(t,e,r){var n=this._map,o=n.transform;if(!vo(t))return this._fireEvents(e,r,!0);var i=t.panDelta,a=t.zoomDelta,s=t.bearingDelta,u=t.pitchDelta,c=t.around,l=t.pinchAround;void 0!==l&&(c=l),n._stop(!0),c=c||n.transform.centerPoint;var p=o.pointLocation(i?c.sub(i):c);s&&(o.bearing+=s),u&&(o.pitch+=u),a&&(o.zoom+=a),o.setLocationAtPoint(p,c),this._map._update(),t.noInertia||this._inertia.record(t),this._fireEvents(e,r,!0)},go.prototype._fireEvents=function(e,r,n){var o=this,i=mo(this._eventsInProgress),a=mo(e),s={};for(var u in e)this._eventsInProgress[u]||(s[u+"start"]=e[u].originalEvent),this._eventsInProgress[u]=e[u];for(var c in!i&&a&&this._fireEvent("movestart",a.originalEvent),s)this._fireEvent(c,s[c]);for(var l in a&&this._fireEvent("move",a.originalEvent),e)this._fireEvent(l,e[l].originalEvent);var p,f={};for(var h in this._eventsInProgress){var d=this._eventsInProgress[h],m=d.handlerName,y=d.originalEvent;this._handlersById[m].isActive()||(delete this._eventsInProgress[h],f[h+"end"]=p=r[m]||y)}for(var v in f)this._fireEvent(v,f[v]);var g=mo(this._eventsInProgress);if(n&&(i||a)&&!g){this._updatingCamera=!0;var b=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),_=function(t){return 0!==t&&-o._bearingSnap<t&&t<o._bearingSnap};b?(_(b.bearing||this._map.getBearing())&&(b.bearing=0),this._map.easeTo(b,{originalEvent:p})):(this._map.fire(new t.Event("moveend",{originalEvent:p})),_(this._map.getBearing())&&this._map.resetNorth()),this._updatingCamera=!1}},go.prototype._fireEvent=function(e,r){this._map.fire(new t.Event(e,r?{originalEvent:r}:{}))},go.prototype._requestFrame=function(){var t=this;return this._map.triggerRepaint(),this._map._renderTaskQueue.add((function(e){delete t._frameId,t.handleEvent(new yo("renderFrame",{timeStamp:e})),t._applyChanges()}))},go.prototype._triggerRenderFrame=function(){void 0===this._frameId&&(this._frameId=this._requestFrame())};var bo=function(e){function r(r,n){e.call(this),this._moving=!1,this._zooming=!1,this.transform=r,this._bearingSnap=n.bearingSnap,t.bindAll(["_renderFrameCallback"],this)}return e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r,r.prototype.getCenter=function(){return new t.LngLat(this.transform.center.lng,this.transform.center.lat)},r.prototype.setCenter=function(t,e){return this.jumpTo({center:t},e)},r.prototype.panBy=function(e,r,n){return e=t.Point.convert(e).mult(-1),this.panTo(this.transform.center,t.extend({offset:e},r),n)},r.prototype.panTo=function(e,r,n){return this.easeTo(t.extend({center:e},r),n)},r.prototype.getZoom=function(){return this.transform.zoom},r.prototype.setZoom=function(t,e){return this.jumpTo({zoom:t},e),this},r.prototype.zoomTo=function(e,r,n){return this.easeTo(t.extend({zoom:e},r),n)},r.prototype.zoomIn=function(t,e){return this.zoomTo(this.getZoom()+1,t,e),this},r.prototype.zoomOut=function(t,e){return this.zoomTo(this.getZoom()-1,t,e),this},r.prototype.getBearing=function(){return this.transform.bearing},r.prototype.setBearing=function(t,e){return this.jumpTo({bearing:t},e),this},r.prototype.getPadding=function(){return this.transform.padding},r.prototype.setPadding=function(t,e){return this.jumpTo({padding:t},e),this},r.prototype.rotateTo=function(e,r,n){return this.easeTo(t.extend({bearing:e},r),n)},r.prototype.resetNorth=function(e,r){return this.rotateTo(0,t.extend({duration:1e3},e),r),this},r.prototype.resetNorthPitch=function(e,r){return this.easeTo(t.extend({bearing:0,pitch:0,duration:1e3},e),r),this},r.prototype.snapToNorth=function(t,e){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(t,e):this},r.prototype.getPitch=function(){return this.transform.pitch},r.prototype.setPitch=function(t,e){return this.jumpTo({pitch:t},e),this},r.prototype.cameraForBounds=function(e,r){e=t.LngLatBounds.convert(e);var n=r&&r.bearing||0;return this._cameraForBoxAndBearing(e.getNorthWest(),e.getSouthEast(),n,r)},r.prototype._cameraForBoxAndBearing=function(e,r,n,o){var i={top:0,bottom:0,right:0,left:0};if("number"==typeof(o=t.extend({padding:i,offset:[0,0],maxZoom:this.transform.maxZoom},o)).padding){var a=o.padding;o.padding={top:a,bottom:a,right:a,left:a}}o.padding=t.extend(i,o.padding);var s=this.transform,u=s.padding,c=s.project(t.LngLat.convert(e)),l=s.project(t.LngLat.convert(r)),p=c.rotate(-n*Math.PI/180),f=l.rotate(-n*Math.PI/180),h=new t.Point(Math.max(p.x,f.x),Math.max(p.y,f.y)),d=new t.Point(Math.min(p.x,f.x),Math.min(p.y,f.y)),m=h.sub(d),y=(s.width-(u.left+u.right+o.padding.left+o.padding.right))/m.x,v=(s.height-(u.top+u.bottom+o.padding.top+o.padding.bottom))/m.y;if(!(v<0||y<0)){var g=Math.min(s.scaleZoom(s.scale*Math.min(y,v)),o.maxZoom),b="number"==typeof o.offset.x?new t.Point(o.offset.x,o.offset.y):t.Point.convert(o.offset),_=new t.Point((o.padding.left-o.padding.right)/2,(o.padding.top-o.padding.bottom)/2).rotate(n*Math.PI/180),x=b.add(_).mult(s.scale/s.zoomScale(g));return{center:s.unproject(c.add(l).div(2).sub(x)),zoom:g,bearing:n}}t.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.")},r.prototype.fitBounds=function(t,e,r){return this._fitInternal(this.cameraForBounds(t,e),e,r)},r.prototype.fitScreenCoordinates=function(e,r,n,o,i){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(t.Point.convert(e)),this.transform.pointLocation(t.Point.convert(r)),n,o),o,i)},r.prototype._fitInternal=function(e,r,n){return e?(delete(r=t.extend(e,r)).padding,r.linear?this.easeTo(r,n):this.flyTo(r,n)):this},r.prototype.jumpTo=function(e,r){this.stop();var n=this.transform,o=!1,i=!1,a=!1;return"zoom"in e&&n.zoom!==+e.zoom&&(o=!0,n.zoom=+e.zoom),void 0!==e.center&&(n.center=t.LngLat.convert(e.center)),"bearing"in e&&n.bearing!==+e.bearing&&(i=!0,n.bearing=+e.bearing),"pitch"in e&&n.pitch!==+e.pitch&&(a=!0,n.pitch=+e.pitch),null==e.padding||n.isPaddingEqual(e.padding)||(n.padding=e.padding),this.fire(new t.Event("movestart",r)).fire(new t.Event("move",r)),o&&this.fire(new t.Event("zoomstart",r)).fire(new t.Event("zoom",r)).fire(new t.Event("zoomend",r)),i&&this.fire(new t.Event("rotatestart",r)).fire(new t.Event("rotate",r)).fire(new t.Event("rotateend",r)),a&&this.fire(new t.Event("pitchstart",r)).fire(new t.Event("pitch",r)).fire(new t.Event("pitchend",r)),this.fire(new t.Event("moveend",r))},r.prototype.easeTo=function(e,r){var n=this;this._stop(!1,e.easeId),(!1===(e=t.extend({offset:[0,0],duration:500,easing:t.ease},e)).animate||!e.essential&&t.browser.prefersReducedMotion)&&(e.duration=0);var o=this.transform,i=this.getZoom(),a=this.getBearing(),s=this.getPitch(),u=this.getPadding(),c="zoom"in e?+e.zoom:i,l="bearing"in e?this._normalizeBearing(e.bearing,a):a,p="pitch"in e?+e.pitch:s,f="padding"in e?e.padding:o.padding,h=t.Point.convert(e.offset),d=o.centerPoint.add(h),m=o.pointLocation(d),y=t.LngLat.convert(e.center||m);this._normalizeCenter(y);var v,g,b=o.project(m),_=o.project(y).sub(b),x=o.zoomScale(c-i);e.around&&(v=t.LngLat.convert(e.around),g=o.locationPoint(v));var w={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=this._zooming||c!==i,this._rotating=this._rotating||a!==l,this._pitching=this._pitching||p!==s,this._padding=!o.isPaddingEqual(f),this._easeId=e.easeId,this._prepareEase(r,e.noMoveStart,w),this._ease((function(e){if(n._zooming&&(o.zoom=t.number(i,c,e)),n._rotating&&(o.bearing=t.number(a,l,e)),n._pitching&&(o.pitch=t.number(s,p,e)),n._padding&&(o.interpolatePadding(u,f,e),d=o.centerPoint.add(h)),v)o.setLocationAtPoint(v,g);else{var m=o.zoomScale(o.zoom-i),y=c>i?Math.min(2,x):Math.max(.5,x),w=Math.pow(y,1-e),O=o.unproject(b.add(_.mult(e*w)).mult(m));o.setLocationAtPoint(o.renderWorldCopies?O.wrap():O,d)}n._fireMoveEvents(r)}),(function(t){n._afterEase(r,t)}),e),this},r.prototype._prepareEase=function(e,r,n){void 0===n&&(n={}),this._moving=!0,r||n.moving||this.fire(new t.Event("movestart",e)),this._zooming&&!n.zooming&&this.fire(new t.Event("zoomstart",e)),this._rotating&&!n.rotating&&this.fire(new t.Event("rotatestart",e)),this._pitching&&!n.pitching&&this.fire(new t.Event("pitchstart",e))},r.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))},r.prototype._afterEase=function(e,r){if(!this._easeId||!r||this._easeId!==r){delete this._easeId;var n=this._zooming,o=this._rotating,i=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,n&&this.fire(new t.Event("zoomend",e)),o&&this.fire(new t.Event("rotateend",e)),i&&this.fire(new t.Event("pitchend",e)),this.fire(new t.Event("moveend",e))}},r.prototype.flyTo=function(e,r){var n=this;if(!e.essential&&t.browser.prefersReducedMotion){var o=t.pick(e,["center","zoom","bearing","pitch","around"]);return this.jumpTo(o,r)}this.stop(),e=t.extend({offset:[0,0],speed:1.2,curve:1.42,easing:t.ease},e);var i=this.transform,a=this.getZoom(),s=this.getBearing(),u=this.getPitch(),c=this.getPadding(),l="zoom"in e?t.clamp(+e.zoom,i.minZoom,i.maxZoom):a,p="bearing"in e?this._normalizeBearing(e.bearing,s):s,f="pitch"in e?+e.pitch:u,h="padding"in e?e.padding:i.padding,d=i.zoomScale(l-a),m=t.Point.convert(e.offset),y=i.centerPoint.add(m),v=i.pointLocation(y),g=t.LngLat.convert(e.center||v);this._normalizeCenter(g);var b=i.project(v),_=i.project(g).sub(b),x=e.curve,w=Math.max(i.width,i.height),O=w/d,E=_.mag();if("minZoom"in e){var S=t.clamp(Math.min(e.minZoom,a,l),i.minZoom,i.maxZoom),P=w/i.zoomScale(S-a);x=Math.sqrt(P/E*2)}var j=x*x;function A(t){var e=(O*O-w*w+(t?-1:1)*j*j*E*E)/(2*(t?O:w)*j*E);return Math.log(Math.sqrt(e*e+1)-e)}function C(t){return(Math.exp(t)-Math.exp(-t))/2}function T(t){return(Math.exp(t)+Math.exp(-t))/2}var k=A(0),M=function(t){return T(k)/T(k+x*t)},I=function(t){return w*((T(k)*(C(e=k+x*t)/T(e))-C(k))/j)/E;var e},D=(A(1)-k)/x;if(Math.abs(E)<1e-6||!isFinite(D)){if(Math.abs(w-O)<1e-6)return this.easeTo(e,r);var L=O<w?-1:1;D=Math.abs(Math.log(O/w))/x,I=function(){return 0},M=function(t){return Math.exp(L*x*t)}}return e.duration="duration"in e?+e.duration:1e3*D/("screenSpeed"in e?+e.screenSpeed/x:+e.speed),e.maxDuration&&e.duration>e.maxDuration&&(e.duration=0),this._zooming=!0,this._rotating=s!==p,this._pitching=f!==u,this._padding=!i.isPaddingEqual(h),this._prepareEase(r,!1),this._ease((function(e){var o=e*D,d=1/M(o);i.zoom=1===e?l:a+i.scaleZoom(d),n._rotating&&(i.bearing=t.number(s,p,e)),n._pitching&&(i.pitch=t.number(u,f,e)),n._padding&&(i.interpolatePadding(c,h,e),y=i.centerPoint.add(m));var v=1===e?g:i.unproject(b.add(_.mult(I(o))).mult(d));i.setLocationAtPoint(i.renderWorldCopies?v.wrap():v,y),n._fireMoveEvents(r)}),(function(){return n._afterEase(r)}),e),this},r.prototype.isEasing=function(){return!!this._easeFrameId},r.prototype.stop=function(){return this._stop()},r.prototype._stop=function(t,e){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var r=this._onEaseEnd;delete this._onEaseEnd,r.call(this,e)}if(!t){var n=this.handlers;n&&n.stop(!1)}return this},r.prototype._ease=function(e,r,n){!1===n.animate||0===n.duration?(e(1),r()):(this._easeStart=t.browser.now(),this._easeOptions=n,this._onEaseFrame=e,this._onEaseEnd=r,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},r.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()},r.prototype._normalizeBearing=function(e,r){e=t.wrap(e,-180,180);var n=Math.abs(e-r);return Math.abs(e-360-r)<n&&(e-=360),Math.abs(e+360-r)<n&&(e+=360),e},r.prototype._normalizeCenter=function(t){var e=this.transform;if(e.renderWorldCopies&&!e.lngRange){var r=t.lng-e.center.lng;t.lng+=r>180?-360:r<-180?360:0}},r}(t.Evented),_o=function(e){void 0===e&&(e={}),this.options=e,t.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};_o.prototype.getDefaultPosition=function(){return"bottom-right"},_o.prototype.onAdd=function(t){var e=this.options&&this.options.compact;return this._map=t,this._container=r.create("div","maplibregl-ctrl maplibregl-ctrl-attrib mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=r.create("button","maplibregl-ctrl-attrib-button mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._compactButton.type="button",this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=r.create("div","maplibregl-ctrl-attrib-inner mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),e&&this._container.classList.add("maplibregl-compact","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},_o.prototype.onRemove=function(){r.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},_o.prototype._setElementTitle=function(t,e){var r=this._map._getUIString("AttributionControl."+e);t.title=r,t.setAttribute("aria-label",r)},_o.prototype._toggleAttribution=function(){this._container.classList.contains("maplibregl-compact-show")||this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("maplibregl-compact-show","mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","fal
1se")):(this._container.classList.add("maplibregl-compact-show","mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},_o.prototype._updateEditLink=function(){var e=this._editLink;e||(e=this._editLink=this._container.querySelector(".mapbox-improve-map"));var r=[{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 n=r.reduce((function(t,e,n){return e.value&&(t+=e.key+"="+e.value+(n<r.length-1?"&":"")),t}),"?");e.href=t.config.FEEDBACK_URL+"/"+n+(this._map._hash?this._map._hash.getHashString(!0):""),e.rel="noopener nofollow",this._setElementTitle(e,"MapFeedback")}},_o.prototype._updateData=function(t){!t||"metadata"!==t.sourceDataType&&"visibility"!==t.sourceDataType&&"style"!==t.dataType||(this._updateAttributions(),this._updateEditLink())},_o.prototype._updateAttributions=function(){if(this._map.style){var t=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?t=t.concat(this.options.customAttribution.map((function(t){return"string"!=typeof t?"":t}))):"string"==typeof this.options.customAttribution&&t.push(this.options.customAttribution)),this._map.style.stylesheet){var e=this._map.style.stylesheet;this.styleOwner=e.owner,this.styleId=e.id}var r=this._map.style.sourceCaches;for(var n in r){var o=r[n];if(o.used){var i=o.getSource();i.attribution&&t.indexOf(i.attribution)<0&&t.push(i.attribution)}}t.sort((function(t,e){return t.length-e.length}));var a=(t=t.filter((function(e,r){for(var n=r+1;n<t.length;n++)if(t[n].indexOf(e)>=0)return!1;return!0}))).join(" | ");a!==this._attribHTML&&(this._attribHTML=a,t.length?(this._innerContainer.innerHTML=a,this._container.classList.remove("maplibregl-attrib-empty","mapboxgl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty","mapboxgl-attrib-empty"),this._editLink=null)}},_o.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("maplibregl-compact","mapboxgl-compact"):this._container.classList.remove("maplibregl-compact","maplibregl-compact-show","mapboxgl-compact","mapboxgl-compact-show")};var xo=function(){t.bindAll(["_updateLogo"],this),t.bindAll(["_updateCompact"],this)};xo.prototype.onAdd=function(t){this._map=t,this._container=r.create("div","maplibregl-ctrl mapboxgl-ctrl");var e=r.create("a","maplibregl-ctrl-logo mapboxgl-ctrl-logo");return e.target="_blank",e.rel="noopener nofollow",e.href="https://maplibre.org/",e.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),e.setAttribute("rel","noopener nofollow"),this._container.appendChild(e),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},xo.prototype.onRemove=function(){r.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},xo.prototype.getDefaultPosition=function(){return"bottom-left"},xo.prototype._updateLogo=function(t){t&&"metadata"!==t.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")},xo.prototype._logoRequired=function(){if(this._map.style){var t=this._map.style.sourceCaches;for(var e in t)if(t[e].getSource().mapbox_logo)return!0;return!1}},xo.prototype._updateCompact=function(){var t=this._container.children;if(t.length){var e=t[0];this._map.getCanvasContainer().offsetWidth<250?e.classList.add("maplibregl-compact","mapboxgl-compact"):e.classList.remove("maplibregl-compact","mapboxgl-compact")}};var wo=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};wo.prototype.add=function(t){var e=++this._id;return this._queue.push({callback:t,id:e,cancelled:!1}),e},wo.prototype.remove=function(t){for(var e=this._currentlyRunning,r=0,n=e?this._queue.concat(e):this._queue;r<n.length;r+=1){var o=n[r];if(o.id===t)return void(o.cancelled=!0)}},wo.prototype.run=function(t){void 0===t&&(t=0);var e=this._currentlyRunning=this._queue;this._queue=[];for(var r=0,n=e;r<n.length;r+=1){var o=n[r];if(!o.cancelled&&(o.callback(t),this._cleared))break}this._cleared=!1,this._currentlyRunning=!1},wo.prototype.clear=function(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]};var Oo={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm"}
vendor: 17,052 bytes, line 1
1,Eo=t.window.HTMLImageElement,So=t.window.HTMLElement,Po=t.window.ImageBitmap,jo={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0},Ao=function(n){function o(e){var r=this;if(null!=(e=t.extend({},jo,e)).minZoom&&null!=e.maxZoom&&e.minZoom>e.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=e.minPitch&&null!=e.maxPitch&&e.minPitch>e.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=e.minPitch&&e.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=e.maxPitch&&e.maxPitch>60)throw new Error("maxPitch must be less than or equal to 60");var o=new On(e.minZoom,e.maxZoom,e.minPitch,e.maxPitch,e.renderWorldCopies);if(n.call(this,o,e),this._interactive=e.interactive,this._maxTileCacheSize=e.maxTileCacheSize,this._failIfMajorPerformanceCaveat=e.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=e.preserveDrawingBuffer,this._antialias=e.antialias,this._trackResize=e.trackResize,this._bearingSnap=e.bearingSnap,this._refreshExpiredTiles=e.refreshExpiredTiles,this._fadeDuration=e.fadeDuration,this._crossSourceCollisions=e.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=e.collectResourceTiming,this._renderTaskQueue=new wo,this._controls=[],this._mapId=t.uniqueId(),this._locale=t.extend({},Oo,e.locale),this._clickTolerance=e.clickTolerance,this._requestManager=new t.RequestManager(e.transformRequest,e.accessToken),"string"==typeof e.container){if(this._container=t.window.document.getElementById(e.container),!this._container)throw new Error("Container '"+e.container+"' not found.")}else{if(!(e.container instanceof So))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=e.container}if(e.maxBounds&&this.setMaxBounds(e.maxBounds),t.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",(function(){return r._update(!1)})),this.on("moveend",(function(){return r._update(!1)})),this.on("zoom",(function(){return r._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 go(this,e),this._hash=e.hash&&new Sn("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 _o({customAttribution:e.customAttribution})),this.addControl(new xo,e.logoPosition),this.on("style.load",(function(){r.transform.unmodified&&r.jumpTo(r.style.stylesheet)})),this.on("data",(function(e){r._update("style"===e.dataType),r.fire(new t.Event(e.dataType+"data",e))})),this.on("dataloading",(function(e){r.fire(new t.Event(e.dataType+"dataloading",e))}))}n&&(o.__proto__=n),(o.prototype=Object.create(n&&n.prototype)).constructor=o;var i={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return o.prototype._getMapId=function(){return this._mapId},o.prototype.addControl=function(e,r){if(void 0===r&&(r=e.getDefaultPosition?e.getDefaultPosition():"top-right"),!e||!e.onAdd)return this.fire(new t.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var n=e.onAdd(this);this._controls.push(e);var o=this._controlPositions[r];return-1!==r.indexOf("bottom")?o.insertBefore(n,o.firstChild):o.appendChild(n),this},o.prototype.removeControl=function(e){if(!e||!e.onRemove)return this.fire(new t.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var r=this._controls.indexOf(e);return r>-1&&this._controls.splice(r,1),e.onRemove(this),this},o.prototype.hasControl=function(t){return this._controls.indexOf(t)>-1},o.prototype.resize=function(e){var r=this._containerDimensions(),n=r[0],o=r[1];this._resizeCanvas(n,o),this.transform.resize(n,o),this.painter.resize(n,o);var i=!this._moving;return i&&(this.stop(),this.fire(new t.Event("movestart",e)).fire(new t.Event("move",e))),this.fire(new t.Event("resize",e)),i&&this.fire(new t.Event("moveend",e)),this},o.prototype.getBounds=function(){return this.transform.getBounds()},o.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},o.prototype.setMaxBounds=function(e){return this.transform.setMaxBounds(t.LngLatBounds.convert(e)),this._update()},o.prototype.setMinZoom=function(t){if((t=null==t?-2:t)>=-2&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()<t&&this.setZoom(t),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")},o.prototype.getMinZoom=function(){return this.transform.minZoom},o.prototype.setMaxZoom=function(t){if((t=null==t?22:t)>=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()>t&&this.setZoom(t),this;throw new Error("maxZoom must be greater than the current minZoom")},o.prototype.getMaxZoom=function(){return this.transform.maxZoom},o.prototype.setMinPitch=function(t){if((t=null==t?0:t)<0)throw new Error("minPitch must be greater than or equal to 0");if(t>=0&&t<=this.transform.maxPitch)return this.transform.minPitch=t,this._update(),this.getPitch()<t&&this.setPitch(t),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")},o.prototype.getMinPitch=function(){return this.transform.minPitch},o.prototype.setMaxPitch=function(t){if((t=null==t?60:t)>60)throw new Error("maxPitch must be less than or equal to 60");if(t>=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()>t&&this.setPitch(t),this;throw new Error("maxPitch must be greater than the current minPitch")},o.prototype.getMaxPitch=function(){return this.transform.maxPitch},o.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},o.prototype.setRenderWorldCopies=function(t){return this.transform.renderWorldCopies=t,this._update()},o.prototype.project=function(e){return this.transform.locationPoint(t.LngLat.convert(e))},o.prototype.unproject=function(e){return this.transform.pointLocation(t.Point.convert(e))},o.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},o.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},o.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},o.prototype._createDelegatedListener=function(t,e,r){var n,o=this;if("mouseenter"===t||"mouseover"===t){var i=!1;return{layer:e,listener:r,delegates:{mousemove:function(n){var a=o.getLayer(e)?o.queryRenderedFeatures(n.point,{layers:[e]}):[];a.length?i||(i=!0,r.call(o,new Dn(t,o,n.originalEvent,{features:a}))):i=!1},mouseout:function(){i=!1}}}}if("mouseleave"===t||"mouseout"===t){var a=!1;return{layer:e,listener:r,delegates:{mousemove:function(n){(o.getLayer(e)?o.queryRenderedFeatures(n.point,{layers:[e]}):[]).length?a=!0:a&&(a=!1,r.call(o,new Dn(t,o,n.originalEvent)))},mouseout:function(e){a&&(a=!1,r.call(o,new Dn(t,o,e.originalEvent)))}}}}return{layer:e,listener:r,delegates:(n={},n[t]=function(t){var n=o.getLayer(e)?o.queryRenderedFeatures(t.point,{layers:[e]}):[];n.length&&(t.features=n,r.call(o,t),delete t.features)},n)}},o.prototype.on=function(t,e,r){if(void 0===r)return n.prototype.on.call(this,t,e);var o=this._createDelegatedListener(t,e,r);for(var i in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[t]=this._delegatedListeners[t]||[],this._delegatedListeners[t].push(o),o.delegates)this.on(i,o.delegates[i]);return this},o.prototype.once=function(t,e,r){if(void 0===r)return n.prototype.once.call(this,t,e);var o=this._createDelegatedListener(t,e,r);for(var i in o.delegates)this.once(i,o.delegates[i]);return this},o.prototype.off=function(t,e,r){var o=this;return void 0===r?n.prototype.off.call(this,t,e):(this._delegatedListeners&&this._delegatedListeners[t]&&function(n){for(var i=n[t],a=0;a<i.length;a++){var s=i[a];if(s.layer===e&&s.listener===r){for(var u in s.delegates)o.off(u,s.delegates[u]);return i.splice(a,1),o}}}(this._delegatedListeners),this)},o.prototype.queryRenderedFeatures=function(e,r){if(!this.style)return[];var n;if(void 0!==r||void 0===e||e instanceof t.Point||Array.isArray(e)||(r=e,e=void 0),r=r||{},(e=e||[[0,0],[this.transform.width,this.transform.height]])instanceof t.Point||"number"==typeof e[0])n=[t.Point.convert(e)];else{var o=t.Point.convert(e[0]),i=t.Point.convert(e[1]);n=[o,new t.Point(i.x,o.y),i,new t.Point(o.x,i.y),o]}return this.style.queryRenderedFeatures(n,r,this.transform)},o.prototype.querySourceFeatures=function(t,e){return this.style.querySourceFeatures(t,e)},o.prototype.setStyle=function(e,r){return!1!==(r=t.extend({},{localIdeographFontFamily:this._localIdeographFontFamily},r)).diff&&r.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&e?(this._diffStyle(e,r),this):(this._localIdeographFontFamily=r.localIdeographFontFamily,this._updateStyle(e,r))},o.prototype.setTransformRequest=function(t){return this._requestManager.setTransformRequest(t),this},o.prototype._getUIString=function(t){var e=this._locale[t];if(null==e)throw new Error("Missing UI string '"+t+"'");return e},o.prototype._updateStyle=function(t,e){return this.style&&(this.style.setEventedParent(null),this.style._remove()),t?(this.style=new qe(this,e||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof t?this.style.loadURL(t):this.style.loadJSON(t),this):(delete this.style,this)},o.prototype._lazyInitEmptyStyle=function(){this.style||(this.style=new qe(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())},o.prototype._diffStyle=function(e,r){var n=this;if("string"==typeof e){var o=this._requestManager.normalizeStyleURL(e),i=this._requestManager.transformRequest(o,t.ResourceType.Style);t.getJSON(i,(function(e,o){e?n.fire(new t.ErrorEvent(e)):o&&n._updateDiff(o,r)}))}else"object"==typeof e&&this._updateDiff(e,r)},o.prototype._updateDiff=function(e,r){try{this.style.setState(e)&&this._update(!0)}catch(n){t.warnOnce("Unable to perform style diff: "+(n.message||n.error||n)+". Rebuilding the style from scratch."),this._updateStyle(e,r)}},o.prototype.getStyle=function(){if(this.style)return this.style.serialize()},o.prototype.isStyleLoaded=function(){return this.style?this.style.loaded():t.warnOnce("There is no style added to the map.")},o.prototype.addSource=function(t,e){return this._lazyInitEmptyStyle(),this.style.addSource(t,e),this._update(!0)},o.prototype.isSourceLoaded=function(e){var r=this.style&&this.style.sourceCaches[e];if(void 0!==r)return r.loaded();this.fire(new t.ErrorEvent(new Error("There is no source with ID '"+e+"'")))},o.prototype.areTilesLoaded=function(){var t=this.style&&this.style.sourceCaches;for(var e in t){var r=t[e]._tiles;for(var n in r){var o=r[n];if("loaded"!==o.state&&"errored"!==o.state)return!1}}return!0},o.prototype.addSourceType=function(t,e,r){return this._lazyInitEmptyStyle(),this.style.addSourceType(t,e,r)},o.prototype.removeSource=function(t){return this.style.removeSource(t),this._update(!0)},o.prototype.getSource=function(t){return this.style.getSource(t)},o.prototype.addImage=function(e,r,n){void 0===n&&(n={});var o=n.pixelRatio;void 0===o&&(o=1);var i=n.sdf;void 0===i&&(i=!1);var a=n.stretchX,s=n.stretchY,u=n.content;if(this._lazyInitEmptyStyle(),r instanceof Eo||Po&&r instanceof Po){var c=t.browser.getImageData(r);this.style.addImage(e,{data:new t.RGBAImage({width:c.width,height:c.height},c.data),pixelRatio:o,stretchX:a,stretchY:s,content:u,sdf:i,version:0})}else{if(void 0===r.width||void 0===r.height)return this.fire(new t.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));var l=r;this.style.addImage(e,{data:new t.RGBAImage({width:r.width,height:r.height},new Uint8Array(r.data)),pixelRatio:o,stretchX:a,stretchY:s,content:u,sdf:i,version:0,userImage:l}),l.onAdd&&l.onAdd(this,e)}},o.prototype.updateImage=function(e,r){var n=this.style.getImage(e);if(!n)return this.fire(new t.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));var o=r instanceof Eo||Po&&r instanceof Po?t.browser.getImageData(r):r,i=o.width,a=o.height,s=o.data;return void 0===i||void 0===a?this.fire(new t.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`"))):i!==n.data.width||a!==n.data.height?this.fire(new t.ErrorEvent(new Error("The width and height of the updated image must be that same as the previous version of the image"))):(n.data.replace(s,!(r instanceof Eo||Po&&r instanceof Po)),void this.style.updateImage(e,n))},o.prototype.hasImage=function(e){return e?!!this.style.getImage(e):(this.fire(new t.ErrorEvent(new Error("Missing required image id"))),!1)},o.prototype.removeImage=function(t){this.style.removeImage(t)},o.prototype.loadImage=function(e,r){t.getImage(this._requestManager.transformRequest(e,t.ResourceType.Image),r)},o.prototype.listImages=function(){return this.style.listImages()},o.prototype.addLayer=function(t,e){return this._lazyInitEmptyStyle(),this.style.addLayer(t,e),this._update(!0)},o.prototype.moveLayer=function(t,e){return this.style.moveLayer(t,e),this._update(!0)},o.prototype.removeLayer=function(t){return this.style.removeLayer(t),this._update(!0)},o.prototype.getLayer=function(t){return this.style.getLayer(t)},o.prototype.setLayerZoomRange=function(t,e,r){return this.style.setLayerZoomRange(t,e,r),this._update(!0)},o.prototype.setFilter=function(t,e,r){return void 0===r&&(r={}),this.style.setFilter(t,e,r),this._update(!0)},o.prototype.getFilter=function(t){return this.style.getFilter(t)},o.prototype.setPaintProperty=function(t,e,r,n){return void 0===n&&(n={}),this.style.setPaintProperty(t,e,r,n),this._update(!0)},o.prototype.getPaintProperty=function(t,e){return this.style.getPaintProperty(t,e)},o.prototype.setLayoutProperty=function(t,e,r,n){return void 0===n&&(n={}),this.style.setLayoutProperty(t,e,r,n),this._update(!0)},o.prototype.getLayoutProperty=function(t,e){return this.style.getLayoutProperty(t,e)},o.prototype.setLight=function(t,e){return void 0===e&&(e={}),this._lazyInitEmptyStyle(),this.style.setLight(t,e),this._update(!0)},o.prototype.getLight=function(){return this.style.getLight()},o.prototype.setFeatureState=function(t,e){return this.style.setFeatureState(t,e),this._update()},o.prototype.removeFeatureState=function(t,e){return this.style.removeFeatureState(t,e),this._update()},o.prototype.getFeatureState=function(t){return this.style.getFeatureState(t)},o.prototype.getContainer=function(){return this._container},o.prototype.getCanvasContainer=function(){return this._canvasContainer},o.prototype.getCanvas=function(){return this._canvas},o.prototype._containerDimensions=function(){var t=0,e=0;return this._container&&(t=this._container.clientWidth||400,e=this._container.clientHeight||300),[t,e]},o.prototype._setupContainer=function(){var t=this._container;t.classList.add("maplibregl-map","mapboxgl-map");var e=this._canvasContainer=r.create("div","maplibregl-canvas-container mapboxgl-canvas-container",t);this._interactive&&e.classList.add("maplibregl-interactive","mapboxgl-interactive"),this._canvas=r.create("canvas","maplibregl-canvas mapboxgl-canvas",e),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label","Map"),this._canvas.setAttribute("role","regi
1on");var n=this._containerDimensions();this._resizeCanvas(n[0],n[1]);var o=this._controlContainer=r.create("div","maplibregl-control-container mapboxgl-control-container",t),i=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach((function(t){i[t]=r.create("div","maplibregl-ctrl-"+t+" mapboxgl-ctrl-"+t,o)})),this._container.addEventListener("scroll",this._onMapScroll,!1)},o.prototype._resizeCanvas=function(e,r){var n=t.browser.devicePixelRatio||1;this._canvas.width=n*e,this._canvas.height=n*r,this._canvas.style.width=e+"px",this._canvas.style.height=r+"px"},o.prototype._setupPainter=function(){var r=t.extend({},e.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),n=this._canvas.getContext("webgl",r)||this._canvas.getContext("experimental-webgl",r);n?(this.painter=new bn(n,this.transform),t.webpSupported.testSupport(n)):this.fire(new t.ErrorEvent(new Error("Failed to initialize WebGL")))},o.prototype._contextLost=function(e){e.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new t.Event("webglcontextlost",{originalEvent:e}))},o.prototype._contextRestored=function(e){this._setupPainter(),this.resize(),this._update(),this.fire(new t.Event("webglcontextrestored",{originalEvent:e}))},o.prototype._onMapScroll=function(t){if(t.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},o.prototype.loaded=function(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()},o.prototype._update=function(t){return this.style?(this._styleDirty=this._styleDirty||t,this._sourcesDirty=!0,this.triggerRepaint(),this):this},o.prototype._requestRenderFrame=function(t){return this._update(),this._renderTaskQueue.add(t)},o.prototype._cancelRenderFrame=function(t){this._renderTaskQueue.remove(t)},o.prototype._render=function(e){var r,n=this,o=0,i=this.painter.context.extTimerQuery;if(this.listens("gpu-timing-frame")&&(r=i.createQueryEXT(),i.beginQueryEXT(i.TIME_ELAPSED_EXT,r),o=t.browser.now()),this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(e),!this._removed){var a=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;var s=this.transform.zoom,u=t.browser.now();this.style.zoomHistory.update(s,u);var c=new t.EvaluationParameters(s,{now:u,fadeDuration:this._fadeDuration,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),l=c.crossFadingFactor();1===l&&l===this._crossFadingFactor||(a=!0,this._crossFadingFactor=l),this.style.update(c)}if(this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,this._fadeDuration,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:this._fadeDuration,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer")}),this.fire(new t.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new t.Event("load"))),this.style&&(this.style.hasTransitions()||a)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),this.listens("gpu-timing-frame")){var p=t.browser.now()-o;i.endQueryEXT(i.TIME_ELAPSED_EXT,r),setTimeout((function(){var e=i.getQueryObjectEXT(r,i.QUERY_RESULT_EXT)/1e6;i.deleteQueryEXT(r),n.fire(new t.Event("gpu-timing-frame",{cpuTime:p,gpuTime:e}))}),50)}if(this.listens("gpu-timing-layer")){var f=this.painter.collectGpuTimers();setTimeout((function(){var e=n.painter.queryGpuTimers(f);n.fire(new t.Event("gpu-timing-layer",{layerTimes:e}))}),50)}var h=this._sourcesDirty||this._styleDirty||this._placementDirty;return h||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new t.Event("idle")),!this._loaded||this._fullyLoaded||h||(this._fullyLoaded=!0),this}},o.prototype.remove=function(){this._hash&&this._hash.remove();for(var e=0,r=this._controls;e<r.length;e+=1)r[e].onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),void 0!==t.window&&(t.window.removeEventListener("resize",this._onWindowResize,!1),t.window.removeEventListener("orientationchange",this._onWindowResize,!1),t.window.removeEventListener("online",this._onWindowOnline,!1));var n=this.painter.context.gl.getExtension("WEBGL_lose_context");n&&n.loseContext(),Co(this._canvasContainer),Co(this._controlContainer),this._container.classList.remove("maplibregl-map","mapboxgl-map"),this._removed=!0,this.fire(new t.Event("remove"))},o.prototype.triggerRepaint=function(){var e=this;this.style&&!this._frame&&(this._frame=t.browser.frame((function(t){e._frame=null,e._render(t)})))},o.prototype._onWindowOnline=function(){this._update()},o.prototype._onWindowResize=function(t){this._trackResize&&this.resize({originalEvent:t})._update()},i.showTileBoundaries.get=function(){return!!this._showTileBoundaries},i.showTileBoundaries.set=function(t){this._showTileBoundaries!==t&&(this._showTileBoundaries=t,this._update())},i.showPadding.get=function(){return!!this._showPadding},i.showPadding.set=function(t){this._showPadding!==t&&(this._showPadding=t,this._update())},i.showCollisionBoxes.get=function(){return!!this._showCollisionBoxes},i.showCollisionBoxes.set=function(t){this._showCollisionBoxes!==t&&(this._showCollisionBoxes=t,t?this.style._generateCollisionBoxes():this._update())},i.showOverdrawInspector.get=function(){return!!this._showOverdrawInspector},i.showOverdrawInspector.set=function(t){this._showOverdrawInspector!==t&&(this._showOverdrawInspector=t,this._update())},i.repaint.get=function(){return!!this._repaint},i.repaint.set=function(t){this._repaint!==t&&(this._repaint=t,this.triggerRepaint())},i.vertices.get=function(){return!!this._vertices}
vendor: 18,488 bytes, line 1
1,i.vertices.set=function(t){this._vertices=t,this._update()},o.prototype._setCacheLimits=function(e,r){t.setCacheLimits(e,r)},i.version.get=function(){return t.version},Object.defineProperties(o.prototype,i),o}(bo);function Co(t){t.parentNode&&t.parentNode.removeChild(t)}var To={showCompass:!0,showZoom:!0,visualizePitch:!1},ko=function(e){var n=this;this.options=t.extend({},To,e),this._container=r.create("div","maplibregl-ctrl maplibregl-ctrl-group mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",(function(t){return t.preventDefault()})),this.options.showZoom&&(t.bindAll(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in mapboxgl-ctrl-zoom-in",(function(t){return n._map.zoomIn({},{originalEvent:t})})),r.create("span","maplibregl-ctrl-icon mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden",!0),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out mapboxgl-ctrl-zoom-out",(function(t){return n._map.zoomOut({},{originalEvent:t})})),r.create("span","maplibregl-ctrl-icon mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden",!0)),this.options.showCompass&&(t.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("maplibregl-ctrl-compass mapboxgl-ctrl-compass",(function(t){n.options.visualizePitch?n._map.resetNorthPitch({},{originalEvent:t}):n._map.resetNorth({},{originalEvent:t})})),this._compassIcon=r.create("span","maplibregl-ctrl-icon mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden",!0))};ko.prototype._updateZoomButtons=function(){var t=this._map.getZoom(),e=t===this._map.getMaxZoom(),r=t===this._map.getMinZoom();this._zoomInButton.disabled=e,this._zoomOutButton.disabled=r,this._zoomInButton.setAttribute("aria-disabled",e.toString()),this._zoomOutButton.setAttribute("aria-disabled",r.toString())},ko.prototype._rotateCompassArrow=function(){var t=this.options.visualizePitch?"scale("+1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)+") rotateX("+this._map.transform.pitch+"deg) rotateZ("+this._map.transform.angle*(180/Math.PI)+"deg)":"rotate("+this._map.transform.angle*(180/Math.PI)+"deg)";this._compassIcon.style.transform=t},ko.prototype.onAdd=function(t){return this._map=t,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Mo(this._map,this._compass,this.options.visualizePitch)),this._container},ko.prototype.onRemove=function(){r.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map},ko.prototype._createButton=function(t,e){var n=r.create("button",t,this._container);return n.type="button",n.addEventListener("click",e),n},ko.prototype._setButtonTitle=function(t,e){var r=this._map._getUIString("NavigationControl."+e);t.title=r,t.setAttribute("aria-label",r)};var Mo=function(e,n,o){void 0===o&&(o=!1),this._clickTolerance=10,this.element=n,this.mouseRotate=new Zn({clickTolerance:e.dragRotate._mouseRotate._clickTolerance}),this.map=e,o&&(this.mousePitch=new Hn({clickTolerance:e.dragRotate._mousePitch._clickTolerance})),t.bindAll(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),r.addEventListener(n,"mousedown",this.mousedown),r.addEventListener(n,"touchstart",this.touchstart,{passive:!1}),r.addEventListener(n,"touchmove",this.touchmove),r.addEventListener(n,"touchend",this.touchend),r.addEventListener(n,"touchcancel",this.reset)};function Io(e,r,n){if(e=new t.LngLat(e.lng,e.lat),r){var o=new t.LngLat(e.lng-360,e.lat),i=new t.LngLat(e.lng+360,e.lat),a=n.locationPoint(e).distSqr(r);n.locationPoint(o).distSqr(r)<a?e=o:n.locationPoint(i).distSqr(r)<a&&(e=i)}for(;Math.abs(e.lng-n.center.lng)>180;){var s=n.locationPoint(e);if(s.x>=0&&s.y>=0&&s.x<=n.width&&s.y<=n.height)break;e.lng>n.center.lng?e.lng-=360:e.lng+=360}return e}Mo.prototype.down=function(t,e){this.mouseRotate.mousedown(t,e),this.mousePitch&&this.mousePitch.mousedown(t,e),r.disableDrag()},Mo.prototype.move=function(t,e){var r=this.map,n=this.mouseRotate.mousemoveWindow(t,e);if(n&&n.bearingDelta&&r.setBearing(r.getBearing()+n.bearingDelta),this.mousePitch){var o=this.mousePitch.mousemoveWindow(t,e);o&&o.pitchDelta&&r.setPitch(r.getPitch()+o.pitchDelta)}},Mo.prototype.off=function(){var t=this.element;r.removeEventListener(t,"mousedown",this.mousedown),r.removeEventListener(t,"touchstart",this.touchstart,{passive:!1}),r.removeEventListener(t,"touchmove",this.touchmove),r.removeEventListener(t,"touchend",this.touchend),r.removeEventListener(t,"touchcancel",this.reset),this.offTemp()},Mo.prototype.offTemp=function(){r.enableDrag(),r.removeEventListener(t.window,"mousemove",this.mousemove),r.removeEventListener(t.window,"mouseup",this.mouseup)},Mo.prototype.mousedown=function(e){this.down(t.extend({},e,{ctrlKey:!0,preventDefault:function(){return e.preventDefault()}}),r.mousePos(this.element,e)),r.addEventListener(t.window,"mousemove",this.mousemove),r.addEventListener(t.window,"mouseup",this.mouseup)},Mo.prototype.mousemove=function(t){this.move(t,r.mousePos(this.element,t))},Mo.prototype.mouseup=function(t){this.mouseRotate.mouseupWindow(t),this.mousePitch&&this.mousePitch.mouseupWindow(t),this.offTemp()},Mo.prototype.touchstart=function(t){1!==t.targetTouches.length?this.reset():(this._startPos=this._lastPos=r.touchPos(this.element,t.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return t.preventDefault()}},this._startPos))},Mo.prototype.touchmove=function(t){1!==t.targetTouches.length?this.reset():(this._lastPos=r.touchPos(this.element,t.targetTouches)[0],this.move({preventDefault:function(){return t.preventDefault()}},this._lastPos))},Mo.prototype.touchend=function(t){0===t.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),this.reset()},Mo.prototype.reset=function(){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()};var Do={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function Lo(t,e,r){var n=t.classList;for(var o in Do)n.remove("maplibregl-"+r+"-anchor-"+o,"mapboxgl-"+r+"-anchor-"+o);n.add("maplibregl-"+r+"-anchor-"+e,"mapboxgl-"+r+"-anchor-"+e)}var Ro,zo=function(e){function n(n,o){if(e.call(this),(n instanceof t.window.HTMLElement||o)&&(n=t.extend({element:n},o)),t.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=n&&n.anchor||"center",this._color=n&&n.color||"#3FB1CE",this._scale=n&&n.scale||1,this._draggable=n&&n.draggable||!1,this._clickTolerance=n&&n.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=n&&n.rotation||0,this._rotationAlignment=n&&n.rotationAlignment||"auto",this._pitchAlignment=n&&n.pitchAlignment&&"auto"!==n.pitchAlignment?n.pitchAlignment:this._rotationAlignment,n&&n.element)this._element=n.element,this._offset=t.Point.convert(n&&n.offset||[0,0]);else{this._defaultMarker=!0,this._element=r.create("div"),this._element.setAttribute("aria-label","Map marker");var i=r.createNS("http://www.w3.org/2000/svg","svg");i.setAttributeNS(null,"display","block"),i.setAttributeNS(null,"height","41px"),i.setAttributeNS(null,"width","27px"),i.setAttributeNS(null,"viewBox","0 0 27 41");var a=r.createNS("http://www.w3.org/2000/svg","g");a.setAttributeNS(null,"stroke","none"),a.setAttributeNS(null,"stroke-width","1"),a.setAttributeNS(null,"fill","none"),a.setAttributeNS(null,"fill-rule","evenodd");var s=r.createNS("http://www.w3.org/2000/svg","g");s.setAttributeNS(null,"fill-rule","nonzero");var u=r.createNS("http://www.w3.org/2000/svg","g");u.setAttributeNS(null,"transform","translate(3.0, 29.0)"),u.setAttributeNS(null,"fill","#000000");for(var c=0,l=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];c<l.length;c+=1){var p=l[c],f=r.createNS("http://www.w3.org/2000/svg","ellipse");f.setAttributeNS(null,"opacity","0.04"),f.setAttributeNS(null,"cx","10.5"),f.setAttributeNS(null,"cy","5.80029008"),f.setAttributeNS(null,"rx",p.rx),f.setAttributeNS(null,"ry",p.ry),u.appendChild(f)}var h=r.createNS("http://www.w3.org/2000/svg","g");h.setAttributeNS(null,"fill",this._color);var d=r.createNS("http://www.w3.org/2000/svg","path");d.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),h.appendChild(d);var m=r.createNS("http://www.w3.org/2000/svg","g");m.setAttributeNS(null,"opacity","0.25"),m.setAttributeNS(null,"fill","#000000");var y=r.createNS("http://www.w3.org/2000/svg","path");y.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),m.appendChild(y);var v=r.createNS("http://www.w3.org/2000/svg","g");v.setAttributeNS(null,"transform","translate(6.0, 7.0)"),v.setAttributeNS(null,"fill","#FFFFFF");var g=r.createNS("http://www.w3.org/2000/svg","g");g.setAttributeNS(null,"transform","translate(8.0, 8.0)");var b=r.createNS("http://www.w3.org/2000/svg","circle");b.setAttributeNS(null,"fill","#000000"),b.setAttributeNS(null,"opacity","0.25"),b.setAttributeNS(null,"cx","5.5"),b.setAttributeNS(null,"cy","5.5"),b.setAttributeNS(null,"r","5.4999962");var _=r.createNS("http://www.w3.org/2000/svg","circle");_.setAttributeNS(null,"fill","#FFFFFF"),_.setAttributeNS(null,"cx","5.5"),_.setAttributeNS(null,"cy","5.5"),_.setAttributeNS(null,"r","5.4999962"),g.appendChild(b),g.appendChild(_),s.appendChild(u),s.appendChild(h),s.appendChild(m),s.appendChild(v),s.appendChild(g),i.appendChild(s),i.setAttributeNS(null,"height",41*this._scale+"px"),i.setAttributeNS(null,"width",27*this._scale+"px"),this._element.appendChild(i),this._offset=t.Point.convert(n&&n.offset||[0,-14])}this._element.classList.add("maplibregl-marker","mapboxgl-marker"),this._element.addEventListener("dragstart",(function(t){t.preventDefault()})),this._element.addEventListener("mousedown",(function(t){t.preventDefault()})),Lo(this._element,this._anchor,"marker"),this._popup=null}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.addTo=function(t){return this.remove(),this._map=t,t.getCanvasContainer().appendChild(this._element),t.on("move",this._update),t.on("moveend",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this},n.prototype.remove=function(){return this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),r.remove(this._element),this._popup&&this._popup.remove(),this},n.prototype.getLngLat=function(){return this._lngLat},n.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this},n.prototype.getElement=function(){return this._element},n.prototype.setPopup=function(t){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),t){if(!("offset"in t.options)){var e=Math.sqrt(Math.pow(13.5,2)/2);t.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[e,-1*(24.6+e)],"bottom-right":[-e,-1*(24.6+e)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=t,this._lngLat&&this._popup.setLngLat(this._lngLat),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this},n.prototype._onKeyPress=function(t){var e=t.code,r=t.charCode||t.keyCode;"Space"!==e&&"Enter"!==e&&32!==r&&13!==r||this.togglePopup()},n.prototype._onMapClick=function(t){var e=t.originalEvent.target,r=this._element;this._popup&&(e===r||r.contains(e))&&this.togglePopup()},n.prototype.getPopup=function(){return this._popup},n.prototype.togglePopup=function(){var t=this._popup;return t?(t.isOpen()?t.remove():t.addTo(this._map),this):this},n.prototype._update=function(t){if(this._map){this._map.transform.renderWorldCopies&&(this._lngLat=Io(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset);var e="";"viewport"===this._rotationAlignment||"auto"===this._rotationAlignment?e="rotateZ("+this._rotation+"deg)":"map"===this._rotationAlignment&&(e="rotateZ("+(this._rotation-this._map.getBearing())+"deg)");var n="";"viewport"===this._pitchAlignment||"auto"===this._pitchAlignment?n="rotateX(0deg)":"map"===this._pitchAlignment&&(n="rotateX("+this._map.getPitch()+"deg)"),t&&"moveend"!==t.type||(this._pos=this._pos.round()),r.setTransform(this._element,Do[this._anchor]+" translate("+this._pos.x+"px, "+this._pos.y+"px) "+n+" "+e)}},n.prototype.getOffset=function(){return this._offset},n.prototype.setOffset=function(e){return this._offset=t.Point.convert(e),this._update(),this},n.prototype._onMove=function(e){if(!this._isDragging){var r=this._clickTolerance||this._map._clickTolerance;this._isDragging=e.point.dist(this._pointerdownPos)>=r}this._isDragging&&(this._pos=e.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new t.Event("dragstart"))),this.fire(new t.Event("drag")))},n.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),"active"===this._state&&this.fire(new t.Event("dragend")),this._state="inactive"},n.prototype._addDragHandler=function(t){this._element.contains(t.originalEvent.target)&&(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._pointerdownPos=t.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},n.prototype.setDraggable=function(t){return this._draggable=!!t,this._map&&(t?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},n.prototype.isDraggable=function(){return this._draggable},n.prototype.setRotation=function(t){return this._rotation=t||0,this._update(),this},n.prototype.getRotation=function(){return this._rotation},n.prototype.setRotationAlignment=function(t){return this._rotationAlignment=t||"auto",this._update(),this},n.prototype.getRotationAlignment=function(){return this._rotationAlignment},n.prototype.setPitchAlignment=function(t){return this._pitchAlignment=t&&"auto"!==t?t:this._rotationAlignment,this._update(),this},n.prototype.getPitchAlignment=function(){return this._pitchAlignment},n}(t.Evented),No={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Fo=0,Bo=!1,Vo=function(e){function n(r){e.call(this),this.options=t.extend({},No,r),t.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.onAdd=function(e){var n;return this._map=e,this._container=r.create("div","maplibregl-ctrl maplibregl-ctrl-group mapboxgl-ctrl mapboxgl-ctrl-group"),n=this._setupUI,void 0!==Ro?n(Ro):void 0!==t.window.navigator.permissions?t.window.navigator.permissions.query({name:"geolocation"}).then((function(t){n(Ro="denied"!==t.state)})):n(Ro=!!t.window.navigator.geolocation),this._container},n.prototype.onRemove=function(){void 0!==this._geolocationWatchID&&(t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),r.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Fo=0,Bo=!1},n.prototype._isOutOfMapMaxBounds=function(t){var e=this._map.getMaxBounds(),r=t.coords;return e&&(r.longitude<e.getWest()||r.longitude>e.getEast()||r.latitude<e.getSouth()||r.latitude>e.getNorth())},n.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_E
1RROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error","mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error","mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background","mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error","mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting")}},n.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("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error","mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error","mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background","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("maplibregl-user-location-dot-stale","mapboxgl-user-location-dot-stale"),this.fire(new t.Event("geolocate",e)),this._finish()}},n.prototype._updateCamera=function(e){var r=new t.LngLat(e.coords.longitude,e.coords.latitude),n=e.coords.accuracy,o=this._map.getBearing(),i=t.extend({bearing:o},this.options.fitBoundsOptions);this._map.fitBounds(r.toBounds(n),i,{geolocateSource:!0})},n.prototype._updateMarker=function(e){if(e){var r=new t.LngLat(e.coords.longitude,e.coords.latitude);this._accuracyCircleMarker.setLngLat(r).addTo(this._map),this._userLocationDotMarker.setLngLat(r).addTo(this._map),this._accuracy=e.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},n.prototype._updateCircleRadius=function(){var t=this._map._container.clientHeight/2,e=this._map.unproject([0,t]),r=this._map.unproject([1,t]),n=e.distanceTo(r),o=Math.ceil(2*this._accuracy/n);this._circleElement.style.width=o+"px",this._circleElement.style.height=o+"px"},n.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},n.prototype._onError=function(e){if(this._map){if(this.options.trackUserLocation)if(1===e.code){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error","mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background","mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error","mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var r=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=r,this._geolocateButton.setAttribute("aria-label",r),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===e.code&&Bo)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale","mapboxgl-user-location-dot-stale"),this.fire(new t.Event("error",e)),this._finish()}},n.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},n.prototype._setupUI=function(e){var n=this;if(this._container.addEventListener("contextmenu",(function(t){return t.preventDefault()})),this._geolocateButton=r.create("button","maplibregl-ctrl-geolocate mapboxgl-ctrl-geolocate",this._container),r.create("span","maplibregl-ctrl-icon mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",!1===e){t.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var o=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=o,this._geolocateButton.setAttribute("aria-label",o)}else{var i=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=i,this._geolocateButton.setAttribute("aria-label",i)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","fal
1se"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=r.create("div","maplibregl-user-location-dot mapboxgl-user-location-dot"),this._userLocationDotMarker=new zo(this._dotElement),this._circleElement=r.create("div","maplibregl-user-location-accuracy-circle mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new zo({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"!==n._watchState||e.originalEvent&&"resize"===e.originalEvent.type||(n._watchState="BACKGROUND",n._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background","mapboxgl-ctrl-geolocate-background"),n._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active"),n.fire(new t.Event("trackuserlocationend")))}))},n.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":Fo--,Bo=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error","mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background","mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error","mapboxgl-ctrl-geolocate-background-error"),this.fire(new t.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background","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("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error","mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background","mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error","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("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++Fo>1?(e={maximumAge:6e5,timeout:0},Bo=!0):(e=this.options.positionOptions,Bo=!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},n.prototype._clearWatch=function(){t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","fal
1se"),this.options.showUserLocation&&this._updateMarker(null)},n}(t.Evented),Uo={maxWidth:100,unit:"metric"},qo=function(e){this.options=t.extend({},Uo,e),t.bindAll(["_onMove","setUnit"],this)};function $o(t,e,r){var n=r&&r.maxWidth||100,o=t._container.clientHeight/2,i=t.unproject([0,o]),a=t.unproject([n,o]),s=i.distanceTo(a);if(r&&"imperial"===r.unit){var u=3.2808*s;u>5280?Go(e,n,u/5280,t._getUIString("ScaleControl.Miles")):Go(e,n,u,t._getUIString("ScaleControl.Feet"))}else r&&"nautical"===r.unit?Go(e,n,s/1852,t._getUIString("ScaleControl.NauticalMiles")):s>=1e3?Go(e,n,s/1e3,t._getUIString("ScaleControl.Kilometers")):Go(e,n,s,t._getUIString("ScaleControl.Meters"))}function Go(t,e,r,n){var o,i,a,s=(o=r,(i=Math.pow(10,(""+Math.floor(o)).length-1))*(a=(a=o/i)>=10?10:a>=5?5:a>=3?3:a>=2?2:a>=1?1:function(t){var e=Math.pow(10,Math.ceil(-Math.log(t)/Math.LN10));return Math.round(t*e)/e}(a)));t.style.width=e*(s/r)+"px",t.innerHTML=s+" "+n}qo.prototype.getDefaultPosition=function(){return"bottom-left"},qo.prototype._onMove=function(){$o(this._map,this._container,this.options)},qo.prototype.onAdd=function(t){return this._map=t,this._container=r.create("div","maplibregl-ctrl maplibregl-ctrl-scale mapboxgl-ctrl mapboxgl-ctrl-scale",t.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},qo.prototype.onRemove=function(){r.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},qo.prototype.setUnit=function(t){this.options.unit=t,$o(this._map,this._container,this.options)};var Wo=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")};Wo.prototype.onAdd=function(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=r.create("div","maplibregl-ctrl maplibregl-ctrl-group 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},Wo.prototype.onRemove=function(){r.remove(this._controlContainer),this._map=null,t.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Wo.prototype._checkFullscreenSupport=function(){return!!(t.window.document.fullscreenEnabled||t.window.document.mozFullScreenEnabled||t.window.document.msFullscreenEnabled||t.window.document.webkitFullscreenEnabled)},Wo.prototype._setupUI=function(){var e=this._fullscreenButton=r.create("button","maplibregl-ctrl-fullscreen mapboxgl-ctrl-fullscreen",this._controlContainer);r.create("span","maplibregl-ctrl-icon 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)},Wo.prototype._updateTitle=function(){var t=this._getTitle();this._fullscreenButton.setAttribute("aria-label",t),this._fullscreenButton.title=t},Wo.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Wo.prototype._isFullscreen=function(){return this._fullscreen},Wo.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("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},Wo.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 Zo={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"}
vendor: 7,283 bytes, line 1
1,Ho=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Ko=function(e){function n(r){e.call(this),this.options=t.extend(Object.create(Zo),r),t.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.addTo=function(e){return this._map&&this.remove(),this._map=e,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("maplibregl-popup-track-pointer","mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer","mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new t.Event("open")),this},n.prototype.isOpen=function(){return!!this._map},n.prototype.remove=function(){return this._content&&r.remove(this._content),this._container&&(r.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},n.prototype.getLngLat=function(){return this._lngLat},n.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("maplibregl-popup-track-pointer","mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer","mapboxgl-track-pointer")),this},n.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("maplibregl-popup-track-pointer","mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer","mapboxgl-track-pointer")),this},n.prototype.getElement=function(){return this._container},n.prototype.setText=function(e){return this.setDOMContent(t.window.document.createTextNode(e))},n.prototype.setHTML=function(e){var r,n=t.window.document.createDocumentFragment(),o=t.window.document.createElement("body");for(o.innerHTML=e;r=o.firstChild;)n.appendChild(r);return this.setDOMContent(n)},n.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},n.prototype.setMaxWidth=function(t){return this.options.maxWidth=t,this._update(),this},n.prototype.setDOMContent=function(t){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=r.create("div","maplibregl-popup-content mapboxgl-popup-content",this._container);return this._content.appendChild(t),this._createCloseButton(),this._update(),this._focusFirstElement(),this},n.prototype.addClassName=function(t){this._container&&this._container.classList.add(t)},n.prototype.removeClassName=function(t){this._container&&this._container.classList.remove(t)},n.prototype.setOffset=function(t){return this.options.offset=t,this._update(),this},n.prototype.toggleClassName=function(t){if(this._container)return this._container.classList.toggle(t)},n.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=r.create("button","maplibregl-popup-close-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))},n.prototype._onMouseUp=function(t){this._update(t.point)},n.prototype._onMouseMove=function(t){this._update(t.point)},n.prototype._onDrag=function(t){this._update(t.point)},n.prototype._update=function(e){var n=this;if(this._map&&(this._lngLat||this._trackPointer)&&this._content&&(this._container||(this._container=r.create("div","maplibregl-popup mapboxgl-popup",this._map.getContainer()),this._tip=r.create("div","maplibregl-popup-tip mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach((function(t){return n._container.classList.add(t)})),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer","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=Io(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||e)){var o=this._pos=this._trackPointer&&e?e:this._map.project(this._lngLat),i=this.options.anchor,a=function e(r){if(r){if("number"==typeof r){var n=Math.round(Math.sqrt(.5*Math.pow(r,2)));return{center:new t.Point(0,0),top:new t.Point(0,r),"top-left":new t.Point(n,n),"top-right":new t.Point(-n,n),bottom:new t.Point(0,-r),"bottom-left":new t.Point(n,-n),"bottom-right":new t.Point(-n,-n),left:new t.Point(r,0),right:new t.Point(-r,0)}}if(r instanceof t.Point||Array.isArray(r)){var o=t.Point.convert(r);return{center:o,top:o,"top-left":o,"top-right":o,bottom:o,"bottom-left":o,"bottom-right":o,left:o,right:o}}return{center:t.Point.convert(r.center||[0,0]),top:t.Point.convert(r.top||[0,0]),"top-left":t.Point.convert(r["top-left"]||[0,0]),"top-right":t.Point.convert(r["top-right"]||[0,0]),bottom:t.Point.convert(r.bottom||[0,0]),"bottom-left":t.Point.convert(r["bottom-left"]||[0,0]),"bottom-right":t.Point.convert(r["bottom-right"]||[0,0]),left:t.Point.convert(r.left||[0,0]),right:t.Point.convert(r.right||[0,0])}}return e(new t.Point(0,0))}(this.options.offset);if(!i){var s,u=this._container.offsetWidth,c=this._container.offsetHeight;s=o.y+a.bottom.y<c?["top"]:o.y>this._map.transform.height-c?["bottom"]:[],o.x<u/2?s.push("left"):o.x>this._map.transform.width-u/2&&s.push("right"),i=0===s.length?"bottom":s.join("-")}var l=o.add(a[i]).round();r.setTransform(this._container,Do[i]+" translate("+l.x+"px,"+l.y+"px)"),Lo(this._container,i,"popup")}},n.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var t=this._container.querySelector(Ho);t&&t.focus()}},n.prototype._onClose=function(){this.remove()},n}(t.Evented),Yo={version:t.version,supported:e,setRTLTextPlugin:t.setRTLTextPlugin,getRTLTextPluginStatus:t.getRTLTextPluginStatus,Map:Ao,NavigationControl:ko,GeolocateControl:Vo,AttributionControl:_o,ScaleControl:qo,FullscreenControl:Wo,Popup:Ko,Marker:zo,Style:qe,LngLat:t.LngLat,LngLatBounds:t.LngLatBounds,Point:t.Point,MercatorCoordinate:t.MercatorCoordinate,Evented:t.
1Evented,config:t.config,prewarm:function(){Nt().acquire(Dt)},clearPrewarmedResources:function(){var t=Rt;t&&(t.isPreloaded()&&1===t.numActive()?(t.release(Dt),Rt=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return t.config.ACCESS_TOKEN},set accessToken(e){t.config.ACCESS_TOKEN=e},get baseApiUrl(){return t.config.API_URL},set baseApiUrl(e){t.config.API_URL=e},get workerCount(){return Lt.workerCount},set workerCount(t){Lt.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:"",addProtocol:function(e,r){t.config.REGISTERED_PROTOCOLS[e]=r},removeProtocol:function(e){delete t.config.REGISTERED_PROTOCOLS[e]}};return Yo})),r}()},30845:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>i});var n=Number.isNaN||function(t){return"number"==typeof t&&t!=t};function o(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(!((o=t[r])===(i=e[r])||n(o)&&n(i)))return!1;var o,i;return!0}const i=function(t,e){var r;void 0===e&&(e=o);var n,i=[],a=!1;return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return a&&r===this&&e(o,i)||(n=t.apply(this,o),a=!0,r=this,i=o),n}}},26596:()=>{},39683:()=>{},42566:(t,e,r)=>{const n=r(94885);function o(t){return"string"==typeof t?e=>e.element===t:t.constructor&&t.extend?e=>e instanceof t:t}class i{constructor(t){this.elements=t||[]}toValue(){return this.elements.map((t=>t.toValue()))}map(t,e){return this.elements.map(t,e)}flatMap(t,e){return this.map(t,e).reduce(((t,e)=>t.concat(e)),[])}compactMap(t,e){const r=[];return this.forEach((n=>{const o=t.bind(e)(n);o&&r.push(o)})),r}filter(t,e){return t=o(t),new i(this.elements.filter(t,e))}reject(t,e){return t=o(t),new i(this.elements.filter(n(t),e))}find(t,e){return t=o(t),this.elements.find(t,e)}forEach(t,e){this.elements.forEach(t,e)}reduce(t,e){return this.elements.reduce(t,e)}includes(t){return this.elements.some((e=>e.equals(t)))}shift(){return this.elements.shift()}unshift(t){this.elements.unshift(this.refract(t))}push(t){return this.elements.push(this.refract(t)),this}add(t){this.push(t)}get(t){return this.elements[t]}getValue(t){const e=this.elements[t];if(e)return e.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),t.exports=i},17645:t=>{class e{constructor(t,e){this.key=t,this.value=e}clone(){const t=new e;return this.key&&(t.key=this.key.clone()),this.value&&(t.value=this.value.clone()),t}}t.exports=e},78520:(t,e,r)=>{const n=r(45220),o=r(47037),i=r(81763),a=r(51584),s=r(13218),u=r(28219),c=r(99829);class l{constructor(t){this.elementMap={},this.elementDetection=[],this.Element=c.Element,this.KeyValuePair=c.KeyValuePair,t&&t.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(t){return t.namespace&&t.namespace({base:this}),t.load&&t.load({base:this}),this}useDefault(){return this.register("null",c.NullElement).register("string",c.StringElement).register("number",c.NumberElement).register("boolean",c.BooleanElement).register("array",c.ArrayElement).register("object",c.ObjectElement).register("member",c.MemberElement).register("ref",c.RefElement).register("link",c.LinkElement),this.detect(n,c.NullElement,!1).detect(o,c.StringElement,!1).detect(i,c.NumberElement,!1).detect(a,c.BooleanElement,!1).detect(Array.isArray,c.ArrayElement,!1).detect(s,c.ObjectElement,!1),this}register(t,e){return this._elements=void 0,this.elementMap[t]=e,this}unregister(t){return this._elements=void 0,delete this.elementMap[t],this}detect(t,e,r){return void 0===r||r?this.elementDetection.unshift([t,e]):this.elementDetection.push([t,e]),this}toElement(t){if(t instanceof this.Element)return t;let e;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],o=this.elementDetection[r][1];if(n(t)){e=new o(t);break}}return e}getElementClass(t){const e=this.elementMap[t];return void 0===e?this.Element:e}fromRefract(t){return this.serialiser.deserialise(t)}toRefract(t){return this.serialiser.serialise(t)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element}
vendor: 17,647 bytes, line 1
1,Object.keys(this.elementMap).forEach((t=>{const e=t[0].toUpperCase()+t.substr(1);this._elements[e]=this.elementMap[t]}))),this._elements}get serialiser(){return new u(this)}}u.prototype.Namespace=l,t.exports=l},87526:(t,e,r)=>{const n=r(94885),o=r(42566);class i extends o{map(t,e){return this.elements.map((r=>t.bind(e)(r.value,r.key,r)))}filter(t,e){return new i(this.elements.filter((r=>t.bind(e)(r.value,r.key,r))))}reject(t,e){return this.filter(n(t.bind(e)))}forEach(t,e){return this.elements.forEach(((r,n)=>{t.bind(e)(r.value,r.key,r,n)}))}keys(){return this.map(((t,e)=>e.toValue()))}values(){return this.map((t=>t.toValue()))}}t.exports=i},99829:(t,e,r)=>{const n=r(3079),o=r(96295),i=r(16036),a=r(91090),s=r(18866),u=r(35804),c=r(5946),l=r(76735),p=r(59964),f=r(38588),h=r(42566),d=r(87526),m=r(17645);function y(t){return t instanceof n?t:"string"==typeof t?new i(t):"number"==typeof t?new a(t):"boolean"==typeof t?new s(t):null===t?new o:Array.isArray(t)?new u(t.map(y)):"object"==typeof t?new l(t):t}n.prototype.ObjectElement=l,n.prototype.RefElement=f,n.prototype.MemberElement=c,n.prototype.refract=y,h.prototype.refract=y,t.exports={Element:n,NullElement:o,StringElement:i,NumberElement:a,BooleanElement:s,ArrayElement:u,MemberElement:c,ObjectElement:l,LinkElement:p,RefElement:f,refract:y,ArraySlice:h,ObjectSlice:d,KeyValuePair:m}},59964:(t,e,r)=>{const n=r(3079);t.exports=class extends n{constructor(t,e,r){super(t||[],e,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(t){this.attributes.set("relation",t)}get href(){return this.attributes.get("href")}set href(t){this.attributes.set("href",t)}}},38588:(t,e,r)=>{const n=r(3079);t.exports=class extends n{constructor(t,e,r){super(t||[],e,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(t){this.attributes.set("path",t)}}},43500:(t,e,r)=>{const n=r(78520),o=r(99829);e.lS=n,r(17645),o.ArraySlice,o.ObjectSlice,e.W_=o.Element,e.RP=o.StringElement,e.VL=o.NumberElement,e.hh=o.BooleanElement,e.zr=o.NullElement,e.ON=o.ArrayElement,e.Sb=o.ObjectElement,e.c6=o.MemberElement,e.tK=o.RefElement,e.EA=o.LinkElement,e.Qc=o.refract,r(28219),r(3414)},35804:(t,e,r)=>{const n=r(94885),o=r(3079),i=r(42566);class a extends o{constructor(t,e,r){super(t||[],e,r),this.element="array"}primitive(){return"array"}get(t){return this.content[t]}getValue(t){const e=this.get(t);if(e)return e.toValue()}getIndex(t){return this.content[t]}set(t,e){return this.content[t]=this.refract(e),this}remove(t){const e=this.content.splice(t,1);return e.length?e[0]:null}map(t,e){return this.content.map(t,e)}flatMap(t,e){return this.map(t,e).reduce(((t,e)=>t.concat(e)),[])}compactMap(t,e){const r=[];return this.forEach((n=>{const o=t.bind(e)(n);o&&r.push(o)})),r}filter(t,e){return new i(this.content.filter(t,e))}reject(t,e){return this.filter(n(t),e)}reduce(t,e){let r,n;void 0!==e?(r=0,n=this.refract(e)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let o=r;o<this.length;o+=1){const e=this.content[o];n="object"===this.primitive()?this.refract(t(n,e.value,e.key,e,this)):this.refract(t(n,e,o,this))}return n}forEach(t,e){this.content.forEach(((r,n)=>{t.bind(e)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(t){this.content.unshift(this.refract(t))}push(t){return this.content.push(this.refract(t)),this}add(t){this.push(t)}findElements(t,e){const r=e||{},n=!!r.recursive,o=void 0===r.results?[]:r.results;return this.forEach(((e,r,i)=>{n&&void 0!==e.findElements&&e.findElements(t,{results:o,recursive:n}),t(e,r,i)&&o.push(e)})),o}find(t){return new i(this.findElements(t,{recursive:!0}))}findByElement(t){return this.find((e=>e.element===t))}findByClass(t){return this.find((e=>e.classes.includes(t)))}getById(t){return this.find((e=>e.id.toValue()===t)).first}includes(t){return this.content.some((e=>e.equals(t)))}contains(t){return this.includes(t)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(t){return new this.constructor(this.content.concat(t.content))}"fantasy-land/concat"(t){return this.concat(t)}"fantasy-land/map"(t){return new this.constructor(this.map(t))}"fantasy-land/chain"(t){return this.map((e=>t(e)),this).reduce(((t,e)=>t.concat(e)),this.empty())}"fantasy-land/filter"(t){return new this.constructor(this.content.filter(t))}"fantasy-land/reduce"(t,e){return this.content.reduce(t,e)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}a.empty=function(){return new this},a["fantasy-land/empty"]=a.empty,"undefined"!=typeof Symbol&&(a.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),t.exports=a},18866:(t,e,r)=>{const n=r(3079);t.exports=class extends n{constructor(t,e,r){super(t,e,r),this.element="boolean"}primitive(){return"boolean"}}},3079:(t,e,r)=>{const n=r(18446),o=r(17645),i=r(42566);class a{constructor(t,e,r){e&&(this.meta=e),r&&(this.attributes=r),this.content=t}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((t=>{t.parent=this,t.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const t=new this.constructor;return t.element=this.element,this.meta.length&&(t._meta=this.meta.clone()),this.attributes.length&&(t._attributes=this.attributes.clone()),this.content?this.content.clone?t.content=this.content.clone():Array.isArray(this.content)?t.content=this.content.map((t=>t.clone())):t.content=this.content:t.content=this.content,t}toValue(){return this.content instanceof a?this.content.toValue():this.content instanceof o?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((t=>t.toValue()),this):this.content}toRef(t){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const e=new this.RefElement(this.id.toValue());return t&&(e.path=t),e}findRecursive(...t){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const e=t.pop();let r=new i;const n=(t,e)=>(t.push(e),t),a=(t,r)=>{r.element===e&&t.push(r);const i=r.findRecursive(e);return i&&i.reduce(n,t),r.content instanceof o&&(r.content.key&&a(t,r.content.key),r.content.value&&a(t,r.content.value)),t};return this.content&&(this.content.element&&a(r,this.content),Array.isArray(this.content)&&this.content.reduce(a,r)),t.isEmpty||(r=r.filter((e=>{let r=e.parents.map((t=>t.element));for(const n in t){const e=t[n],o=r.indexOf(e);if(-1===o)return!1;r=r.splice(0,o)}return!0}))),r}set(t){return this.content=t,this}equals(t){return n(this.toValue(),t)}getMetaProperty(t,e){if(!this.meta.hasKey(t)){if(this.isFrozen){const t=this.refract(e);return t.freeze(),t}this.meta.set(t,e)}return this.meta.get(t)}setMetaProperty(t,e){this.meta.set(t,e)}get element(){return this._storedElement||"element"}set element(t){this._storedElement=t}get content(){return this._content}set content(t){if(t instanceof a)this._content=t;else if(t instanceof i)this.content=t.elements;else if("string"==typeof t||"number"==typeof t||"boolean"==typeof t||"null"===t||null==t)this._content=t;else if(t instanceof o)this._content=t;else if(Array.isArray(t))this._content=t.map(this.refract);else{if("object"!=typeof t)throw new Error("Cannot set content to given value");this._content=Object.keys(t).map((e=>new this.MemberElement(e,t[e])))}}get meta(){if(!this._meta){if(this.isFrozen){const t=new this.ObjectElement;return t.freeze(),t}this._meta=new this.ObjectElement}return this._meta}set meta(t){t instanceof this.ObjectElement?this._meta=t:this.meta.set(t||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const t=new this.ObjectElement;return t.freeze(),t}this._attributes=new this.ObjectElement}return this._attributes}set attributes(t){t instanceof this.ObjectElement?this._attributes=t:this.attributes.set(t||{})}get id(){return this.getMetaProperty("id","")}set id(t){this.setMetaProperty("id",t)}get classes(){return this.getMetaProperty("classes",[])}set classes(t){this.setMetaProperty("classes",t)}get title(){return this.getMetaProperty("title","")}set title(t){this.setMetaProperty("title",t)}get description(){return this.getMetaProperty("description","")}set description(t){this.setMetaProperty("description",t)}get links(){return this.getMetaProperty("links",[])}set links(t){this.setMetaProperty("links",t)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:t}=this;const e=new i;for(;t;)e.push(t),t=t.parent;return e}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof o){const t=new i([this.content.key]);return this.content.value&&t.push(this.content.value),t}return this.content instanceof a?new i([this.content]):new i}get recursiveChildren(){const t=new i;return this.children.forEach((e=>{t.push(e),e.recursiveChildren.forEach((e=>{t.push(e)}))})),t}}t.exports=a},5946:(t,e,r)=>{const n=r(17645),o=r(3079);t.exports=class extends o{constructor(t,e,r,o){super(new n,r,o),this.element="member",this.key=t,this.value=e}get key(){return this.content.key}set key(t){this.content.key=this.refract(t)}get value(){return this.content.value}set value(t){this.content.value=this.refract(t)}}},96295:(t,e,r)=>{const n=r(3079);t.exports=class extends n{constructor(t,e,r){super(t||null,e,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},91090:(t,e,r)=>{const n=r(3079);t.exports=class extends n{constructor(t,e,r){super(t,e,r),this.element="number"}primitive(){return"number"}}},76735:(t,e,r)=>{const n=r(94885),o=r(13218),i=r(35804),a=r(5946),s=r(87526);t.exports=class extends i{constructor(t,e,r){super(t||[],e,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((t,e)=>(t[e.key.toValue()]=e.value?e.value.toValue():void 0,t)),{})}get(t){const e=this.getMember(t);if(e)return e.value}getMember(t){if(void 0!==t)return this.content.find((e=>e.key.toValue()===t))}remove(t){let e=null;return this.content=this.content.filter((r=>r.key.toValue()!==t||(e=r,!1))),e}getKey(t){const e=this.getMember(t);if(e)return e.key}set(t,e){if(o(t))return Object.keys(t).forEach((e=>{this.set(e,t[e])})),this;const r=t,n=this.getMember(r);return n?n.value=e:this.content.push(new a(r,e)),this}keys(){return this.content.map((t=>t.key.toValue()))}values(){return this.content.map((t=>t.value.toValue()))}hasKey(t){return this.content.some((e=>e.key.equals(t)))}items(){return this.content.map((t=>[t.key.toValue(),t.value.toValue()]))}map(t,e){return this.content.map((r=>t.bind(e)(r.value,r.key,r)))}compactMap(t,e){const r=[];return this.forEach(((n,o,i)=>{const a=t.bind(e)(n,o,i);a&&r.push(a)})),r}filter(t,e){return new s(this.content).filter(t,e)}reject(t,e){return this.filter(n(t),e)}forEach(t,e){return this.content.forEach((r=>t.bind(e)(r.value,r.key,r)))}}},16036:(t,e,r)=>{const n=r(3079);t.exports=class extends n{constructor(t,e,r){super(t,e,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},3414:(t,e,r)=>{const n=r(28219);t.exports=class extends n{serialise(t){if(!(t instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${t}\` is not an Element instance`);let e;t._attributes&&t.attributes.get("variable")&&(e=t.attributes.get("variable"));const r={element:t.element};t._meta&&t._meta.length>0&&(r.meta=this.serialiseObject(t.meta));const n="enum"===t.element||-1!==t.attributes.keys().indexOf("enumerations");if(n){const e=this.enumSerialiseAttributes(t);e&&(r.attributes=e)}else if(t._attributes&&t._attributes.length>0){let{attributes:n}=t;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===t.element&&e&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(t,r);else if(this[`${t.element}SerialiseContent`])r.content=this[`${t.element}SerialiseContent`](t,r);else if(void 0!==t.content){let n;e&&t.content.key?(n=t.content.clone(),n.key.attributes.set("variable",e),n=this.serialiseContent(n)):n=this.serialiseContent(t.content),this.shouldSerialiseContent(t,n)&&(r.content=n)}else this.shouldSerialiseContent(t,t.content)&&t instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(t,e){return"parseResult"===t.element||"httpRequest"===t.element||"httpResponse"===t.element||"category"===t.element||"link"===t.element||void 0!==e&&(!Array.isArray(e)||0!==e.length)}refSerialiseContent(t,e){return delete e.attributes,{href:t.toValue(),path:t.path.toValue()}}sourceMapSerialiseContent(t){return t.toValue()}dataStructureSerialiseContent(t){return[this.serialiseContent(t.content)]}enumSerialiseAttributes(t){const e=t.attributes.clone(),r=e.remove("enumerations")||new this.namespace.elements.Array([]),n=e.get("default");let o=e.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),e.set("default",new this.namespace.elements.Array([n.content]))),o.forEach((t=>{t.content&&t.content.element&&t.content.attributes.remove("typeAttributes")})),t.content&&0!==r.length&&o.unshift(t.content),o=o.map((t=>t instanceof this.namespace.elements.Array?[t]:new this.namespace.elements.Array([t.content]))),o.length&&e.set("samples",o),e.length>0)return this.serialiseObject(e)}enumSerialiseContent(t){if(t._attributes){const e=t.attributes.get("enumerations");if(e&&e.length>0)return e.content.map((t=>{const e=t.clone();return e.attributes.remove("typeAttributes"),this.serialise(e)}))}if(t.content){const e=t.content.clone();return e.attributes.remove("typeAttributes"),[this.serialise(e)]}return[]}deserialise(t){if("string"==typeof t)return new this.namespace.elements.String(t);if("number"==typeof t)return new this.namespace.elements.Number(t);if("boolean"==typeof t)return new this.namespace.elements.Boolean(t);if(null===t)return new this.namespace.elements.Null;if(Array.isArray(t))return new this.namespace.elements.Array(t.map(this.deserialise,this));const e=this.namespace.getElementClass(t.element),r=new e;r.element!==t.element&&(r.element=t.element),t.meta&&this.deserialiseObject(t.meta,r.meta),t.attributes&&this.deserialiseObject(t.attributes,r.attributes);const n=this.deserialiseContent(t.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let t=r.attributes.get("samples");if(r.attributes.remove("samples"),t){const n=t;t=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const o=new e(n);o.element=r.element,t.push(o)}))}));const o=t.shift();r.content=o?o.content:void 0,r.attributes.set("samples",t)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const t=new e(n);t.element=r.element,r.attributes.set("default",t)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const t=r.attributes.get("meta");t&&(r.attributes.set("metadata",t),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(t){if(t instanceof this.namespace.elements.Element)return this.serialise(t);if(t instanceof this.namespace.KeyValuePair){const e={key:this.serialise(t.key)};return t.value&&(e.value=this.serialise(t.value)),e}return t&&t.map?t.map(this.serialise,this):t}deserialiseContent(t){if(t){if(t.element)return this.deserialise(t);if(t.key){const e=new this.namespace.KeyValuePair(this.deserialise(t.key));return t.value&&(e.value=this.deserialise(t.value)),e}if(t.map)return t.map(this.deserialise,this)}return t}shouldRefract(t){return!!(t._attributes&&t.attributes.keys().length||t._meta&&t.meta.keys().length)||"enum"!==t.element&&(t.element!==t.primitive()||"member"===t.element)}convertKeyToRefract(t,e){return this.shouldRefract(e)?this.serialise(e):"enum"===e.element?this.serialiseEnum(e):"array"===e.element?e.map((e=>this.shouldRefract(e)||"default"===t?this.serialise(e):"array"===e.element||"object"===e.element||"enum"===e.element?e.children.map((t=>this.serialise(t))):e.toValue())):"object"===e.element?(e.content||[]).map(this.serialise,this):e.toValue()}serialiseEnum(t){return t.children.map((t=>this.serialise(t)))}serialiseObject(t){const e={};return t.forEach(((t,r)=>{if(t){const n=r.toValue();e[n]=this.convertKeyToRefract(n,t)}})),e}deserialiseObject(t,e){Object.keys(t).forEach((r=>{e.set(r,this.deserialise(t[r]))}))}}},28219:t=>{t.exports=class{constructor(t){this.namespace=t||new this.Namespace}serialise(t){if(!(t instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${t}\` is not an Element instance`);const e={element:t.element};t._meta&&t._meta.length>0&&(e.meta=this.serialiseObject(t.meta)),t._attributes&&t._attributes.length>0&&(e.attributes=this.serialiseObject(t.attributes));const r=this.serialiseContent(t.content);return void 0!==r&&(e.content=r),e}deserialise(t){if(!t.element)throw new Error("Given value is not an object c
vendor: 5,048 bytes, line 1
1ontaining an element name");const e=new(this.namespace.getElementClass(t.element));e.element!==t.element&&(e.element=t.element),t.meta&&this.deserialiseObject(t.meta,e.meta),t.attributes&&this.deserialiseObject(t.attributes,e.attributes);const r=this.deserialiseContent(t.content);return void 0===r&&null!==e.content||(e.content=r),e}serialiseContent(t){if(t instanceof this.namespace.elements.Element)return this.serialise(t);if(t instanceof this.namespace.KeyValuePair){const e={key:this.serialise(t.key)};return t.value&&(e.value=this.serialise(t.value)),e}if(t&&t.map){if(0===t.length)return;return t.map(this.serialise,this)}return t}deserialiseContent(t){if(t){if(t.element)return this.deserialise(t);if(t.key){const e=new this.namespace.KeyValuePair(this.deserialise(t.key));return t.value&&(e.value=this.deserialise(t.value)),e}if(t.map)return t.map(this.deserialise,this)}return t}serialiseObject(t){const e={};if(t.forEach(((t,r)=>{t&&(e[r.toValue()]=this.serialise(t))})),0!==Object.keys(e).length)return e}deserialiseObject(t,e){Object.keys(t).forEach((r=>{e.set(r,this.deserialise(t[r]))}))}}},70631:(t,e,r)=>{var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&u&&"function"==typeof u.get?u.get:null,l=s&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,m=Object.prototype.toString,y=Function.prototype.toString,v=String.prototype.match,g=String.prototype.slice,b=String.prototype.replace,_=String.prototype.toUpperCase,x=String.prototype.toLowerCase,w=RegExp.prototype.test,O=Array.prototype.concat,E=Array.prototype.join,S=Array.prototype.slice,P=Math.floor,j="function"==typeof BigInt?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,T="function"==typeof Symbol&&"object"==typeof Symbol.iterator,k="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,M=Object.prototype.propertyIsEnumerable,I=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function D(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||w.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-P(-t):P(t);if(n!==t){var o=String(n),i=g.call(e,o.length+1);return b.call(o,r,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(e,r,"$&_")}var L=r(24654),R=L.custom,z=U(R)?R:null;function N(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function F(t){return b.call(String(t),/"/g,""")}function B(t){return!("[object Array]"!==G(t)||k&&"object"==typeof t&&k in t)}function V(t){return!("[object RegExp]"!==G(t)||k&&"object"==typeof t&&k in t)}function U(t){if(T)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!C)return!1;try{return C.call(t),!0}catch(t){}return!1}t.exports=function t(e,r,n,o){var s=r||{};if($(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if($(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!$(s,"customInspect")||s.customInspect;if("boolean"!=typeof u&&"symbol"!==u)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if($(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if($(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var m=s.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return Z(e,s);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var _=String(e);return m?D(e,_):_}if("bigint"==typeof e){var w=String(e)+"n";return m?D(e,w):w}var P=void 0===s.depth?5:s.depth;if(void 0===n&&(n=0),n>=P&&P>0&&"object"==typeof e)return B(e)?"[Array]":"[Object]";var A,R=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=E.call(Array(t.indent+1)," ")}return{base:r,prev:E.call(Array(e+1),r)}}(s,n);if(void 0===o)o=[];
vendor: 9,140 bytes, line 1
1else if(W(o,e)>=0)return"[Circular]";function q(e,r,i){if(r&&(o=S.call(o)).push(r),i){var a={depth:s.depth};return $(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),t(e,a,n+1,o)}return t(e,s,n+1,o)}if("function"==typeof e&&!V(e)){var H=function(t){if(t.name)return t.name;var e=v.call(y.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),tt=Q(e,q);return"[Function"+(H?": "+H:" (anonymous)")+"]"+(tt.length>0?" { "+E.call(tt,", ")+" }":"")}if(U(e)){var et=T?b.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):C.call(e);return"object"!=typeof e||T?et:K(et)}if((A=e)&&"object"==typeof A&&("undefined"!=typeof HTMLElement&&A instanceof HTMLElement||"string"==typeof A.nodeName&&"function"==typeof A.getAttribute)){for(var rt="<"+x.call(String(e.nodeName)),nt=e.attributes||[],ot=0;ot<nt.length;ot++)rt+=" "+nt[ot].name+"="+N(F(nt[ot].value),"double",s);return rt+=">",e.childNodes&&e.childNodes.length&&(rt+="..."),rt+"</"+x.call(String(e.nodeName))+">"}if(B(e)){if(0===e.length)return"[]";var it=Q(e,q);return R&&!function(t){for(var e=0;e<t.length;e++)if(W(t[e],"\n")>=0)return!1;return!0}(it)?"["+J(it,R)+"]":"[ "+E.call(it,", ")+" ]"}if(function(t){return!("[object Error]"!==G(t)||k&&"object"==typeof t&&k in t)}(e)){var at=Q(e,q);return"cause"in Error.prototype||!("cause"in e)||M.call(e,"cause")?0===at.length?"["+String(e)+"]":"{ ["+String(e)+"] "+E.call(at,", ")+" }":"{ ["+String(e)+"] "+E.call(O.call("[cause]: "+q(e.cause),at),", ")+" }"}if("object"==typeof e&&u){if(z&&"function"==typeof e[z]&&L)return L(e,{depth:P-n});if("symbol"!==u&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{c.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var st=[];return a&&a.call(e,(function(t,r){st.push(q(r,e,!0)+" => "+q(t,e))})),X("Map",i.call(e),st,R)}if(function(t){if(!c||!t||"object"!=typeof t)return!1;try{c.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var ut=[];return l&&l.call(e,(function(t){ut.push(q(t,e))})),X("Set",c.call(e),ut,R)}if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{p.call(t,p);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return Y("WeakMap");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{p.call(t,p)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return Y("WeakSet");if(function(t){if(!h||!t||"object"!=typeof t)return!1;try{return h.call(t),!0}catch(t){}return!1}(e))return Y("WeakRef");if(function(t){return!("[object Number]"!==G(t)||k&&"object"==typeof t&&k in t)}(e))return K(q(Number(e)));if(function(t){if(!t||"object"!=typeof t||!j)return!1;try{return j.call(t),!0}catch(t){}return!1}(e))return K(q(j.call(e)));if(function(t){return!("[object Boolean]"!==G(t)||k&&"object"==typeof t&&k in t)}(e))return K(d.call(e));if(function(t){return!("[object String]"!==G(t)||k&&"object"==typeof t&&k in t)}(e))return K(q(String(e)));if(!function(t){return!("[object Date]"!==G(t)||k&&"object"==typeof t&&k in t)}(e)&&!V(e)){var ct=Q(e,q),lt=I?I(e)===Object.prototype:e instanceof Object||e.constructor===Object,pt=e instanceof Object?"":"null prototype",ft=!lt&&k&&Object(e)===e&&k in e?g.call(G(e),8,-1):pt?"Object":"",ht=(lt||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(ft||pt?"["+E.call(O.call([],ft||[],pt||[]),": ")+"] ":"");return 0===ct.length?ht+"{}":R?ht+"{"+J(ct,R)+"}":ht+"{ "+E.call(ct,", ")+" }"}return String(e)};var q=Object.prototype.hasOwnProperty||function(t){return t in this};function $(t,e){return q.call(t,e)}function G(t){return m.call(t)}function W(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function Z(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Z(g.call(t,0,e.maxStringLength),e)+n}return N(b.call(b.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,H),"single",e)}function H(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+_.call(e.toString(16))}function K(t){return"Object("+t+")"}function Y(t){return t+" { ? }"}function X(t,e,r,n){return t+" ("+e+") {"+(n?J(r,n):E.call(r,", "))+"}"}function J(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+E.call(t,","+r)+"\n"+e.prev}function Q(t,e){var r=B(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=$(t,o)?e(t[o],t):""}var i,a="function"==typeof A?A(t):[];if(T){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var u in t)$(t,u)&&(r&&String(Number(u))===u&&u<t.length||T&&i["$"+u]instanceof Symbol||(w.call(/[^\w$]/,u)?n.push(e(u,t)+": "+e(t[u],t)):n.push(u+": "+e(t[u],t))));if("function"==typeof A)for(var c=0;c<a.length;c++)M.call(t,a[c])&&n.push("["+e(a[c])+"]: "+e(t[a[c]],t));return n}},34155:t=>{var e,r,n=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var s,u=[],c=!1,l=-1;function p(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&f())}function f(){if(!c){var t=a(p);c=!0;for(var e=u.length;e;){for(s=u,u=[];++l<e;)s&&s[l].run();l=-1,e=u.length}s=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function d(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];u.push(new h(t,e)),1!==u.length||c||a(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=d,n.addListener=d,n.once=d,n.off=d,n.removeListener=d,n.removeAllListeners=d,n.emit=d,n.prependListener=d,n.prependOnceListener=d,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},92703:(t,e,r)=>{"use strict";var n=r(50414);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,r,o,i,a){if(a!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},45697:(t,e,r)=>{t.exports=r(92703)()},50414:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},55798:t=>{"use strict";var e=String.prototype.replace,r=/%20/g,n="RFC3986";t.exports={default:n,formatters:{RFC1738:function(t){return e.call(t,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:n}},80129:(t,e,r)=>{"use strict";var n=r(58261),o=r(55235),i=r(55798);t.exports={formats:i,parse:o,stringify:n}},55235:(t,e,r)=>{"use strict";var n=r(12769),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},u=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},c=function(t,e,r,n){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,l=[];if(c){if(!r.plainObjects&&o.call(Object.prototype,c)&&!r.allowPrototypes)return;l.push(c)}for(var p=0;r.depth>0&&null!==(s=a.exec(i))&&p<r.depth;){if(p+=1,!r.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+i.slice(s.index)+"]"),function(t,e,r,n){for(var o=n?e:u(e,r),i=t.length-1;i>=0;--i){var a,s=t[i];if("[]"===s&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(c,10);r.parseArrays||""!==c?!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[])[l]=o:"__proto__"!==c&&(a[c]=o):a={0:o}}o=a}return o}(l,e,r,n)}};t.exports=function(t,e){var r=function(t){if(!t)return a;
vendor: 8,146 bytes, line 1
1if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var l="string"==typeof t?function(t,e){var r,c={__proto__:null},l=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,p=e.parameterLimit===1/0?void 0:e.parameterLimit,f=l.split(e.delimiter,p),h=-1,d=e.charset;if(e.charsetSentinel)for(r=0;r<f.length;++r)0===f[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[r]?d="utf-8":"utf8=%26%2310003%3B"===f[r]&&(d="iso-8859-1"),h=r,r=f.length);for(r=0;r<f.length;++r)if(r!==h){var m,y,v=f[r],g=v.indexOf("]="),b=-1===g?v.indexOf("="):g+1;-1===b?(m=e.decoder(v,a.decoder,d,"key"),y=e.strictNullHandling?null:""):(m=e.decoder(v.slice(0,b),a.decoder,d,"key"),y=n.maybeMap(u(v.slice(b+1),e),(function(t){return e.decoder(t,a.decoder,d,"value")}))),y&&e.interpretNumericEntities&&"iso-8859-1"===d&&(y=s(y)),v.indexOf("[]=")>-1&&(y=i(y)?[y]:y),o.call(c,m)?c[m]=n.combine(c[m],y):c[m]=y}return c}(t,r):t,p=r.plainObjects?Object.create(null):{},f=Object.keys(l),h=0;h<f.length;++h){var d=f[h],m=c(d,l[d],r,"string"==typeof t);p=n.merge(p,m,r)}return!0===r.allowSparse?p:n.compact(p)}},58261:(t,e,r)=>{"use strict";var n=r(37478),o=r(12769),i=r(55798),a=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},u=Array.isArray,c=Array.prototype.push,l=function(t,e){c.apply(t,u(e)?e:[e])},p=Date.prototype.toISOString,f=i.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(t){return p.call(t)},skipNulls:!1,strictNullHandling:!1},d={},m=function t(e,r,i,a,s,c,p,f,m,y,v,g,b,_,x,w){for(var O,E=e,S=w,P=0,j=!1;void 0!==(S=S.get(d))&&!j;){var A=S.get(e);if(P+=1,void 0!==A){if(A===P)throw new RangeError("Cyclic object value");j=!0}void 0===S.get(d)&&(P=0)}if("function"==typeof f?E=f(r,E):E instanceof Date?E=v(E):"comma"===i&&u(E)&&(E=o.maybeMap(E,(function(t){return t instanceof Date?v(t):t}))),null===E){if(s)return p&&!_?p(r,h.encoder,x,"key",g):r;E=""}if("string"==typeof(O=E)||"number"==typeof O||"boolean"==typeof O||"symbol"==typeof O||"bigint"==typeof O||o.isBuffer(E))return p?[b(_?r:p(r,h.encoder,x,"key",g))+"="+b(p(E,h.encoder,x,"value",g))]:[b(r)+"="+b(String(E))];var C,T=[];if(void 0===E)return T;if("comma"===i&&u(E))_&&p&&(E=o.maybeMap(E,p)),C=[{value:E.length>0?E.join(",")||null:void 0}];else if(u(f))C=f;else{var k=Object.keys(E);C=m?k.sort(m):k}for(var M=a&&u(E)&&1===E.length?r+"[]":r,I=0;I<C.length;++I){var D=C[I],L="object"==typeof D&&void 0!==D.value?D.value:E[D];if(!c||null!==L){var R=u(E)?"function"==typeof i?i(M,D):M:M+(y?"."+D:"["+D+"]");w.set(e,P);var z=n();z.set(d,w),l(T,t(L,R,i,a,s,c,"comma"===i&&_&&u(E)?null:p,f,m,y,v,g,b,_,x,z))}}return T};t.exports=function(t,e){var r,o=t,c=function(t){if(!t)return h;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||h.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==t.format){if(!a.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=i.formatters[r],o=h.filter;return("function"==typeof t.filter||u(t.filter))&&(o=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:h.addQueryPrefix,allowDots:void 0===t.allowDots?h.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:h.charsetSentinel,delimiter:void 0===t.delimiter?h.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:h.encode,encoder:"function"==typeof t.encoder?t.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:h.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:h.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:h.strictNullHandling}}(e);"function"==typeof c.filter?o=(0,c.filter)("",o):u(c.filter)&&(r=c.filter);var p,f=[];if("object"!=typeof o||null===o)return"";p=e&&e.arrayFormat in s?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var d=s[p];if(e&&"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var y="comma"===d&&e&&e.commaRoundTrip;r||(r=Object.keys(o)),c.sort&&r.sort(c.sort);for(var v=n(),g=0;g<r.length;++g){var b=r[g];c.skipNulls&&null===o[b]||l(f,m(o[b],b,d,y,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,v))}var _=f.join(c.delimiter),x=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?x+="utf8=%26%2310003%3B&":x+="utf8=%E2%9C%93&"),_.length>0?x+_:""}},12769:(t,e,r)=>{"use strict";var n=r(55798),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r};t.exports={arrayToObject:s,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var o=e[n],a=o.obj[o.prop],s=Object.keys(a),u=0;u<s.length;++u){var c=s[u],l=a[c];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(e.push({obj:a,prop:c}),r.push(l))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);e.obj[e.prop]=n}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(t){return n}},encode:function(t,e,r,o,i){if(0===t.length)return t;var s=t;if("symbol"==typeof t?s=Symbol.prototype.toString.call(t):"string"!=typeof t&&(s=String(t)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var u="",c=0;c<s.length;++c){var l=s.charCodeAt(c);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===n.RFC1738&&(40===l||41===l)?u+=s.charAt(c):l<128?u+=a[l]:l<2048?u+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?u+=a[224|l>>12]+a[128|l>>
16&63]+a[128|63&l]:(c+=1,l=65536+((1023&l)<<10|1023&s.charCodeAt(c)),u+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return u},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(e(t[n]));return r}return e(t)},merge:function t(e,r,n){if(!r)return e;if("object"!=typeof r){if(i(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var a=e;return i(e)&&!i(r)&&(a=s(e,n)),i(e)&&i(r)?(r.forEach((function(r,i){if(o.call(e,i)){var a=e[i];a&&"object"==typeof a&&r&&"object"==typeof r?e[i]=t(a,r,n):e.push(r)}else e[i]=r})),e):Object.keys(r).reduce((function(e,i){var a=r[i];return o.call(e,i)?e[i]=t(e[i],a,n):e[i]=a,e}),a)}}},62587:t=>{"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,r,n,o){r=r||"&",n=n||"=";var i={};if("string"!=typeof t||0===t.length)return i;var a=/\+/g;t=t.split(r);var s=1e3;o&&"number"==typeof o.maxKeys&&(s=o.maxKeys);var u=t.length;s>0&&u>s&&(u=s);for(var c=0;c<u;++c){var l,p,f,h,d=t[c].replace(a,"%20"),m=d.indexOf(n);m>=0?(l=d.substr(0,m),p=d.substr(m+1)):(l=d,p=""),f=decodeURIComponent(l),h=decodeURIComponent(p),e(i,f)?Array.isArray(i[f])?i[f].push(h):i[f]=[i[f],h]:i[f]=h}return i}},12361:t=>{"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,r,n,o){return r=r||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map((function(o){var i=encodeURIComponent(e(o))+n;return Array.isArray(t[o])?t[o].map((function(t){return i+encodeURIComponent(e(t))})).join(r):i+encodeURIComponent(e(t[o]))})).join(r):o?encodeURIComponent(e(o))+n+encodeURIComponent(e(t)):""}},17673:(t,e,r)=>{"use strict";e.decode=e.parse=r(62587),e.encode=e.stringify=r(12361)},83530:(t,e,r)=>{"use strict";r.r(e),r.d(e,{DragDropContext:()=>Zn,Draggable:()=>xo,Droppable:()=>So,resetServerContext:()=>Wn,useKeyboardSensor:()=>Cn,useMouseSensor:()=>Pn,useTouchSensor:()=>kn});var n=r(8156),o=r.n(n),i=r(89611);function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,(0,i.Z)(t,e)}var s=r(87462),u=r(1413);function c(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var l="function"==typeof Symbol&&Symbol.observable||"@@observable",p=function(){return Math.random().toString(36).substring(7).split("").join(".")},f={INIT:"@@redux/INIT"+p(),REPLACE:"@@redux/REPLACE"+p(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+p()}};function h(t,e,r){var n;if("function"==typeof e&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(c(0));if("function"==typeof e&&void 0===r&&(r=e,e=void 0),void 0!==r){if("function"!=typeof r)throw new Error(c(1));return r(h)(t,e)}if("function"!=typeof t)throw new Error(c(2));var o=t,i=e,a=[],s=a,u=!1;function p(){s===a&&(s=a.slice())}function d(){if(u)throw new Error(c(3));return i}function m(t){if("function"!=typeof t)throw new Error(c(4));if(u)throw new Error(c(5));var e=!0;return p(),s.push(t),function(){if(e){if(u)throw new Error(c(6));e=!1,p();var r=s.indexOf(t);s.splice(r,1),a=null}}}function y(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(c(7));if(void 0===t.type)throw new Error(c(8));if(u)throw new Error(c(9));try{u=!0,i=o(i,t)}finally{u=!1}for(var e=a=s,r=0;r<e.length;r++)(0,e[r])();return t}return y({type:f.INIT}),(n={dispatch:y,subscribe:m,getState:d,replaceReducer:function(t){if("function"!=typeof t)throw new Error(c(10));o=t,y({type:f.REPLACE})}})[l]=function(){var t,e=m;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(c(11));function r(){t.next&&t.next(d())}return r(),{unsubscribe:e(r)}}})[l]=function(){return this},t},n}function d(t,e){return function(){return e(t.apply(this,arguments))}}function m(t,e){if("function"==typeof t)return d(t,e);if("object"!=typeof t||null===t)throw new Error(c(16));var r={};for(var n in t){var o=t[n];"function"==typeof o&&(r[n]=d(o,e))}return r}function y(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}var v=o().createContext(null),g=function(t){t()},b={notify:function(){},get:function(){return[]}};function _(t,e){var r,n=b;function o(){a.onStateChange&&a.onStateChange()}function i(){r||(r=e?e.addNestedSub(o):t.subscribe(o),n=function(){var t=g,e=null,r=null;return{clear:function(){e=null,r=null},notify:function(){t((function(){for(var t=e;t;)t.callback(),t=t.next}))},get:function(){for(var t=[],r=e;r;)t.push(r),r=r.next;return t},subscribe:function(t){var n=!0,o=r={callback:t,next:null,prev:r};return o.prev?o.prev.next=o:e=o,function(){n&&null!==e&&(n=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}var a={addNestedSub:function(t){return i(),n.subscribe(t)},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(r)},trySubscribe:i,tryUnsubscribe:function(){r&&(r(),r=void 0,n.clear(),n=b)},getListeners:function(){return n}};return a}var x="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect;const w=function(t){var e=t.store,r=t.context,i=t.children,a=(0,n.useMemo)((function(){var t=_(e);return{store:e,subscription:t}}),[e]),s=(0,n.useMemo)((function(){return e.getState()}),[e]);x((function(){var t=a.subscription;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),function(){t.tryUnsubscribe(),t.onStateChange=null}}),[a,s]);var u=r||v;return o().createElement(u.Provider,{value:a},i)};var O=r(63366),E=r(8679),S=r.n(E),P=r(59864),j=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],A=["reactReduxForwardedRef"],C=[],T=[null,null];function k(t,e){var r=t[1];return[e.payload,r+1]}function M(t,e,r){x((function(){return t.apply(void 0,e)}),r)}function I(t,e,r,n,o,i,a){t.current=n,e.current=o,r.current=!1,i.current&&(i.current=null,a())}function D(t,e,r,n,o,i,a,s,u,c){if(t){var l=!1,p=null,f=function(){if(!l){var t,r,f=e.getState();try{t=n(f,o.current)}catch(t){r=t,p=t}r||(p=null),t===i.current?a.current||u():(i.current=t,s.current=t,a.current=!0,
vendor: 5,978 bytes, line 1
1c({type:"STORE_UPDATED",payload:{error:r}}))}};return r.onStateChange=f,r.trySubscribe(),f(),function(){if(l=!0,r.tryUnsubscribe(),r.onStateChange=null,p)throw p}}}var L=function(){return[null,0]};function R(t,e){void 0===e&&(e={});var r=e,i=r.getDisplayName,a=void 0===i?function(t){return"ConnectAdvanced("+t+")"}:i,u=r.methodName,c=void 0===u?"connectAdvanced":u,l=r.renderCountProp,p=void 0===l?void 0:l,f=r.shouldHandleStateChanges,h=void 0===f||f,d=r.storeKey,m=void 0===d?"store":d,y=(r.withRef,r.forwardRef),g=void 0!==y&&y,b=r.context,x=void 0===b?v:b,w=(0,O.Z)(r,j),E=x;return function(e){var r=e.displayName||e.name||"Component",i=a(r),u=(0,s.Z)({},w,{getDisplayName:a,methodName:c,renderCountProp:p,shouldHandleStateChanges:h,storeKey:m,displayName:i,wrappedComponentName:r,WrappedComponent:e}),l=w.pure,f=l?n.useMemo:function(t){return t()};function d(r){var i=(0,n.useMemo)((function(){var t=r.reactReduxForwardedRef,e=(0,O.Z)(r,A);return[r.context,t,e]}),[r]),a=i[0],c=i[1],l=i[2],p=(0,n.useMemo)((function(){return a&&a.Consumer&&(0,P.isContextConsumer)(o().createElement(a.Consumer,null))?a:E}),[a,E]),d=(0,n.useContext)(p),m=Boolean(r.store)&&Boolean(r.store.getState)&&Boolean(r.store.dispatch);Boolean(d)&&Boolean(d.store);var y=m?r.store:d.store,v=(0,n.useMemo)((function(){return function(e){return t(e.dispatch,u)}(y)}),[y]),g=(0,n.useMemo)((function(){if(!h)return T;var t=_(y,m?null:d.subscription),e=t.notifyNestedSubs.bind(t);return[t,e]}),[y,m,d]),b=g[0],x=g[1],w=(0,n.useMemo)((function(){return m?d:(0,s.Z)({},d,{subscription:b})}),[m,d,b]),S=(0,n.useReducer)(k,C,L),j=S[0][0],R=S[1];if(j&&j.error)throw j.error;var z=(0,n.useRef)(),N=(0,n.useRef)(l),F=(0,n.useRef)(),B=(0,n.useRef)(!1),V=f((function(){return F.current&&l===N.current?F.current:v(y.getState(),l)}),[y,j,l]);M(I,[N,z,B,l,V,F,x]),M(D,[h,y,b,v,N,z,B,F,x,R],[y,b,v]);var U=(0,n.useMemo)((function(){return o().createElement(e,(0,s.Z)({},V,{ref:c}))}),[c,e,V]);return(0,n.useMemo)((function(){return h?o().createElement(p.Provider,{value:w},U):U}),[p,U,w])}var y=l?o().memo(d):d;if(y.WrappedComponent=e,y.displayName=d.displayName=i,g){var v=o().forwardRef((function(t,e){return o().createElement(y,(0,s.Z)({},t,{reactReduxForwardedRef:e}))}));return v.displayName=i,v.WrappedComponent=e,S()(v,e)}return S()(y,e)}}function z(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!=t&&e!=e}function N(t,e){if(z(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(var o=0;o<r.length;o++)if(!Object.prototype.hasOwnProperty.call(e,r[o])||!z(t[r[o]],e[r[o]]))return!1;return!0}function F(t){return function(e,r){var n=t(e,r);function o(){return n}return o.dependsOnOwnProps=!1,o}}function B(t){return null!==t.dependsOnOwnProps&&void 0!==t.dependsOnOwnProps?Boolean(t.dependsOnOwnProps):1!==t.length}function V(t,e){return function(e,r){r.displayName;var n=function(t,e){return n.dependsOnOwnProps?n.mapToProps(t,e):n.mapToProps(t)};return n.dependsOnOwnProps=!0,n.mapToProps=function(e,r){n.mapToProps=t,n.dependsOnOwnProps=B(t);var o=n(e,r);return"function"==typeof o&&(n.mapToProps=o,n.dependsOnOwnProps=B(o),o=n(e,r)),o},n}}const U=[function(t){return"function"==typeof t?V(t):void 0},function(t){return t?void 0:F((function(t){return{dispatch:t}}))},function(t){return t&&"object"==typeof t?F((function(e){return function(t,e){var r={},n=function(n){var o=t[n];"function"==typeof o&&(r[n]=function(){return e(o.apply(void 0,arguments))})};for(var o in t)n(o);return r}(t,e)})):void 0}],q=[function(t){return"function"==typeof t?V(t):void 0},function(t){return t?void 0:F((function(){return{}}))}];function $(t,e,r){return(0,s.Z)({},r,t,e)}const G=[function(t){return"function"==typeof t?function(t){return function(e,r){r.displayName;var n,o=r.pure,i=r.areMergedPropsEqual,a=!1;return function(e,r,s){var u=t(e,r,s);return a?o&&i(u,n)||(n=u):(a=!0,n=u),n}}}(t):void 0},function(t){return t?void 0:function(){return $}}];var W=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function Z(t,e,r,n){return function(o,i){return r(t(o,i),e(n,i),i)}}function H(t,e,r,n,o){var i,a,s,u,c,l=o.areStatesEqual,p=o.areOwnPropsEqual,f=o.areStatePropsEqual,h=!1;return function(o,d){return h?function(o,h){var d,m,y=!p(h,a),v=!l(o,i,h,a);return i=o,a=h,y&&v?(s=t(i,a),e.dependsOnOwnProps&&(u=e(n,a)),c=r(s,u,a)):y?(t.dependsOnOwnProps&&(s=t(i,a)),e.dependsOnOwnProps&&(u=e(n,a)),c=r(s,u,a)):v?(d=t(i,a),m=!f(d,s),s=d,m&&(c=r(s,u,a)),c):c}(o,d):(s=t(i=o,a=d),u=e(n,a),c=r(s,u,a),h=!0,c)}}function K(t,e){var r=e.initMapStateToProps,n=e.initMapDispatchToProps,o=e.initMergeProps,i=(0,O.Z)(e,W),a=r(t,i),s=n(t,i),u=o(t,i);return(i.pure?H:Z)(a,s,u,t,i)}var Y=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function X(t,e,r){for(var n=e.length-1;n>=0;n--){var o=e[n](t);if(o)return o}return function(e,n){throw new Error("Invalid value of type "+typeof t+" for "+r+" argument when connecting component "+n.wrappedComponentName+".")}}function J(t,e){return t===e}const Q=function(t){var e=void 0===t?{}:t,r=e.connectHOC,n=void 0===r?R:r,o=e.mapStateToPropsFactories,i=void 0===o?q:o,a=e.mapDispatchToPropsFactories,u=void 0===a?U:a,c=e.mergePropsFactories,l=void 0===c?G:c,p=e.selectorFactory,f=void 0===p?K:p;return function(t,e,r,o){void 0===o&&(o={});var a=o,c=a.pure,p=void 0===c||c,h=a.areStatesEqual,d=void 0===h?J:h,m=a.areOwnPropsEqual,y=void 0===m?N:m,v=a.areStatePropsEqual,g=void 0===v?N:v,b=a.areMergedPropsEqual,_=void 0===b?N:b,x=(0,O.Z)(a,Y),w=X(t,i,"mapStateToProps"),E=X(e,u,"mapDispatchToProps"),S=X(r,l,"mergeProps");return n(f,(0,s.Z)({methodName:"connect",getDisplayName:function(t){return"Connect("+t+")"},shouldHandleStateChanges:Boolean(t),initMapStateToProps:w,initMapDispatchToProps:E,initMergeProps:S,pure:p,areStatesEqual:d,areOwnPropsEqual:y,areStatePropsEqual:g,areMergedPropsEqual:_},x))}}();var tt,et=r(47111),rt=r.n(et);
vendor: 12,818 bytes, line 1
1function nt(t,e){var r=(0,n.useState)((function(){return{inputs:e,result:t()}}))[0],o=(0,n.useRef)(!0),i=(0,n.useRef)(r),a=o.current||Boolean(e&&i.current.inputs&&function(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}(e,i.current.inputs))?i.current:{inputs:e,result:t()};return(0,n.useEffect)((function(){o.current=!1,i.current=a}),[a]),a.result}tt=et.unstable_batchedUpdates,g=tt;var ot=nt,it=function(t,e){return nt((function(){return t}),e)},at=function(t){var e=t.top,r=t.right,n=t.bottom,o=t.left;return{top:e,right:r,bottom:n,left:o,width:r-o,height:n-e,x:o,y:e,center:{x:(r+o)/2,y:(n+e)/2}}},st=function(t,e){return{top:t.top-e.top,left:t.left-e.left,bottom:t.bottom+e.bottom,right:t.right+e.right}},ut=function(t,e){return{top:t.top+e.top,left:t.left+e.left,bottom:t.bottom-e.bottom,right:t.right-e.right}},ct={top:0,right:0,bottom:0,left:0},lt=function(t){var e=t.borderBox,r=t.margin,n=void 0===r?ct:r,o=t.border,i=void 0===o?ct:o,a=t.padding,s=void 0===a?ct:a,u=at(st(e,n)),c=at(ut(e,i)),l=at(ut(c,s));return{marginBox:u,borderBox:at(e),paddingBox:c,contentBox:l,margin:n,border:i,padding:s}},pt=function(t){var e=t.slice(0,-2);if("px"!==t.slice(-2))return 0;var r=Number(e);return isNaN(r)&&function(t,e){throw new Error("Invariant failed")}(),r},ft=function(t,e){var r,n,o=t.borderBox,i=t.border,a=t.margin,s=t.padding,u=(n=e,{top:(r=o).top+n.y,left:r.left+n.x,bottom:r.bottom+n.y,right:r.right+n.x});return lt({borderBox:u,border:i,margin:a,padding:s})},ht=function(t,e){return void 0===e&&(e={x:window.pageXOffset,y:window.pageYOffset}),ft(t,e)},dt=function(t,e){var r={top:pt(e.marginTop),right:pt(e.marginRight),bottom:pt(e.marginBottom),left:pt(e.marginLeft)},n={top:pt(e.paddingTop),right:pt(e.paddingRight),bottom:pt(e.paddingBottom),left:pt(e.paddingLeft)},o={top:pt(e.borderTopWidth),right:pt(e.borderRightWidth),bottom:pt(e.borderBottomWidth),left:pt(e.borderLeftWidth)};return lt({borderBox:t,margin:r,padding:n,border:o})},mt=function(t){var e=t.getBoundingClientRect(),r=window.getComputedStyle(t);return dt(e,r)},yt=r(30845);const vt=function(t){var e=[],r=null,n=function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];e=o,r||(r=requestAnimationFrame((function(){r=null,t.apply(void 0,e)})))};return n.cancel=function(){r&&(cancelAnimationFrame(r),r=null)},n};function gt(t,e){}function bt(){}function _t(t,e,r){var n=e.map((function(e){var n,o,i=(n=r,o=e.options,(0,s.Z)({},n,{},o));return t.addEventListener(e.eventName,e.fn,i),function(){t.removeEventListener(e.eventName,e.fn,i)}}));return function(){n.forEach((function(t){t()}))}}gt.bind(null,"warn"),gt.bind(null,"error");var xt="Invariant failed";function wt(t){this.message=t}function Ot(t,e){if(!t)throw new wt(xt)}wt.prototype.toString=function(){return this.message};var Et=function(t){function e(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(e=t.call.apply(t,[this].concat(n))||this).callbacks=null,e.unbind=bt,e.onWindowError=function(t){var r=e.getCallbacks();r.isDragging()&&r.tryAbort(),t.error instanceof wt&&t.preventDefault()},e.getCallbacks=function(){if(!e.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return e.callbacks},e.setCallbacks=function(t){e.callbacks=t},e}a(e,t);var r=e.prototype;return r.componentDidMount=function(){this.unbind=_t(window,[{eventName:"error",fn:this.onWindowError}])},r.componentDidCatch=function(t){if(!(t instanceof wt))throw t;this.setState({})},r.componentWillUnmount=function(){this.unbind()},r.render=function(){return this.props.children(this.setCallbacks)},e}(o().Component),St=function(t){return t+1},Pt=function(t,e){var r=t.droppableId===e.droppableId,n=St(t.index),o=St(e.index);return r?"\n You have moved the item from position "+n+"\n to position "+o+"\n ":"\n You have moved the item from position "+n+"\n in list "+t.droppableId+"\n to list "+e.droppableId+"\n in position "+o+"\n "},jt=function(t,e,r){return e.droppableId===r.droppableId?"\n The item "+t+"\n has been combined with "+r.draggableId:"\n The item "+t+"\n in list "+e.droppableId+"\n has been combined with "+r.draggableId+"\n in list "+r.droppableId+"\n "},At=function(t){return"\n The item has returned to its starting position\n of "+St(t.index)+"\n"},Ct="\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",Tt=function(t){return"\n You have lifted an item in position "+St(t.source.index)+"\n"},kt=function(t){var e=t.destination;if(e)return Pt(t.source,e);var r=t.combine;return r?jt(t.draggableId,t.source,r):"You are over an area that cannot be dropped on"},Mt=function(t){if("CANCEL"===t.reason)return"\n Movement cancelled.\n "+At(t.source)+"\n ";var e=t.destination,r=t.combine;return e?"\n You have dropped the item.\n "+Pt(t.source,e)+"\n ":r?"\n You have dropped the item.\n "+jt(t.draggableId,t.source,r)+"\n ":"\n The item has been dropped while not over a drop area.\n "+At(t.source)+"\n "},It={x:0,y:0},Dt=function(t,e){return{x:t.x+e.x,y:t.y+e.y}},Lt=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},Rt=function(t,e){return t.x===e.x&&t.y===e.y},zt=function(t){return{x:0!==t.x?-t.x:0,y:0!==t.y?-t.y:0}},Nt=function(t,e,r){var n;return void 0===r&&(r=0),(n={})[t]=e,n["x"===t?"y":"x"]=r,n},Ft=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},Bt=function(t,e){return Math.min.apply(Math,e.map((function(e){return Ft(t,e)})))},Vt=function(t){return function(e){return{x:t(e.x),y:t(e.y)}}},Ut=function(t,e){return{top:t.top+e.y,left:t.left+e.x,bottom:t.bottom+e.y,right:t.right+e.x}},qt=function(t){return[{x:t.left,y:t.top},{x:t.right,y:t.top},{x:t.left,y:t.bottom},{x:t.right,y:t.bottom}]},$t=function(t,e){return e&&e.shouldClipSubject?function(t,e){var r=at({top:Math.max(e.top,t.top),right:Math.min(e.right,t.right),bottom:Math.min(e.bottom,t.bottom),left:Math.max(e.left,t.left)});return r.width<=0||r.height<=0?null:r}(e.pageMarginBox,t):at(t)},Gt=function(t){var e=t.page,r=t.withPlaceholder,n=t.axis,o=t.frame,i=function(t,e){return e?Ut(t,e.scroll.diff.displacement):t}(e.marginBox,o),a=function(t,e,r){var n;return r&&r.increasedBy?(0,s.Z)({},t,((n={})[e.end]=t[e.end]+r.increasedBy[e.line],n)):t}(i,n,r);return{page:e,withPlaceholder:r,active:$t(a,o)}},Wt=function(t,e){t.frame||Ot(!1);var r=t.frame,n=Lt(e,r.scroll.initial),o=zt(n),i=(0,s.Z)({},r,{scroll:{initial:r.scroll.initial,current:e,diff:{value:n,displacement:o},max:r.scroll.max}}),a=Gt({page:t.subject.page,withPlaceholder:t.subject.withPlaceholder,axis:t.axis,frame:i});return(0,s.Z)({},t,{frame:i,subject:a})};function Zt(t){return Object.values?Object.values(t):Object.keys(t).map((function(e){return t[e]}))}function Ht(t,e){if(t.findIndex)return t.findIndex(e);for(var r=0;r<t.length;r++)if(e(t[r]))return r;return-1}function Kt(t,e){if(t.find)return t.find(e);var r=Ht(t,e);return-1!==r?t[r]:void 0}function Yt(t){return Array.prototype.slice.call(t)}var Xt=(0,yt.default)((function(t){return t.reduce((function(t,e){return t[e.descriptor.id]=e,t}),{})})),Jt=(0,yt.default)((function(t){return t.reduce((function(t,e){return t[e.descriptor.id]=e,t}),{})})),Qt=(0,yt.default)((function(t){return Zt(t)})),te=(0,yt.default)((function(t){return Zt(t)})),ee=(0,yt.default)((function(t,e){return te(e).filter((function(e){return t===e.descriptor.droppableId})).sort((function(t,e){return t.descriptor.index-e.descriptor.index}))}));function re(t){return t.at&&"REORDER"===t.at.type?t.at.destination:null}function ne(t){return t.at&&"COMBINE"===t.at.type?t.at.combine:null}var oe=(0,yt.default)((function(t,e){return e.filter((function(e){return e.descriptor.id!==t.descriptor.id}))})),ie=function(t,e){return t.descriptor.droppableId===e.descriptor.id},ae={point:It,value:0},se={invisible:{},visible:{},all:[]},ue={displaced:se,displacedBy:ae,at:null},ce=function(t,e){return function(r){return t<=r&&r<=e}},le=function(t){var e=ce(t.top,t.bottom),r=ce(t.left,t.right);return function(n){if(e(n.top)&&e(n.bottom)&&r(n.left)&&r(n.right))return!0;var o=e(n.top)||e(n.bottom),i=r(n.left)||r(n.right);if(o&&i)return!0;var a=n.top<t.top&&n.bottom>t.bottom,s=n.left<t.left&&n.right>t.right;return!(!a||!s)||a&&i||s&&o}},pe=function(t){var e=ce(t.top,t.bottom),r=ce(t.left,t.right);return function(t){return e(t.top)&&e(t.bottom)&&r(t.left)&&r(t.right)}},fe={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},he={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},de=function(t){var e=t.target,r=t.destination,n=t.viewport,o=t.withDroppableDisplacement,i=t.isVisibleThroughFrameFn,a=o?function(t,e){var r=e.frame?e.frame.scroll.diff.displacement:It;return Ut(t,r)}(e,r):e;return function(t,e,r){return!!e.subject.active&&r(e.subject.active)(t)}(a,r,i)&&function(t,e,r){return r(e)(t)}(a,n,i)},me=function(t){return de((0,s.Z)({},t,{isVisibleThroughFrameFn:le}))},ye=function(t){return de((0,s.Z)({},t,{isVisibleThroughFrameFn:pe}))},ve=function(t,e,r){if("boolean"==typeof r)return r;if(!e)return!0;var n=e.invisible,o=e.visible;if(n[t])return!1;var i=o[t];return!i||i.shouldAnimate};function ge(t){var e=t.afterDragging,r=t.destination,n=t.displacedBy,o=t.viewport,i=t.forceShouldAnimate,a=t.last;return e.reduce((function(t,e){var s=function(t,e){var r=t.page.marginBox,n={top:e.point.y,right:0,bottom:0,left:e.point.x};return at(st(r,n))}(e,n),u=e.descriptor.id;if(t.all.push(u),!me({target:s,destination:r,viewport:o,withDroppableDisplacement:!0}))return t.invisible[e.descriptor.id]=!0,t;var c={draggableId:u,shouldAnimate:ve(u,a,i)};return t.visible[u]=c,t}),{all:[],visible:{},invisible:{}})}function be(t){var e=t.insideDestination,r=t.inHomeList,n=t.displacedBy,o=t.destination,i=function(t,e){if(!t.length)return 0;var r=t[t.length-1].descriptor.index;return e.inHomeList?r:r+1}(e,{inHomeList:r});return{displaced:se,displacedBy:n,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function _e(t){var e=t.draggable,r=t.insideDestination,n=t.destination,o=t.viewport,i=t.displacedBy,a=t.last,s=t.index,u=t.forceShouldAnimate,c=ie(e,n);if(null==s)return be({insideDestination:r,inHomeList:c,displacedBy:i,destination:n});var l=Kt(r,(function(t){return t.descriptor.index===s}));if(!l)return be({insideDestination:r,inHomeList:c,displacedBy:i,destination:n});var p=oe(e,r),f=r.indexOf(l);return{displaced:ge({afterDragging:p.slice(f),destination:n,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:u}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:s}}}}function xe(t,e){return Boolean(e.effected[t])}var we=function(t,e){return e.margin[t.start]+e.borderBox[t.size]/2},Oe=function(t,e,r){return e[t.crossAxisStart]+r.margin[t.crossAxisStart]+r.borderBox[t.crossAxisSize]/2},Ee=function(t){var e=t.axis,r=t.moveRelativeTo,n=t.isMoving;return Nt(e.line,r.marginBox[e.end]+we(e,n),Oe(e,r.marginBox,n))},Se=function(t){var e=t.axis,r=t.moveRelativeTo,n=t.isMoving;return Nt(e.line,r.marginBox[e.start]-function(t,e){return e.margin[t.end]+e.borderBox[t.size]/2}(e,n),Oe(e,r.marginBox,n))},Pe=function(t,e){var r=t.frame;return r?Dt(e,r.scroll.diff.displacement):e},je=function(t){var e=function(t){var e=t.impact,r=t.draggable,n=t.droppable,o=t.draggables,i=t.afterCritical,a=r.page.borderBox.center,s=e.at;return n&&s?"REORDER"===s.type?function(t){var e=t.impact,r=t.draggable,n=t.draggables,o=t.droppable,i=t.afterCritical,a=ee(o.descriptor.id,n),s=r.page,u=o.axis;if(!a.length)return function(t){var e=t.axis,r=t.moveInto,n=t.isMoving;return Nt(e.line,r.contentBox[e.start]+we(e,n),Oe(e,r.contentBox,n))}({axis:u,moveInto:o.page,isMoving:s});var c=e.displaced,l=e.displacedBy,p=c.all[0];if(p){var f=n[p];if(xe(p,i))return Se({axis:u,moveRelativeTo:f.page,isMoving:s});var h=ft(f.page,l.point);return Se({axis:u,moveRelativeTo:h,isMoving:s})}var d=a[a.length-1];if(d.descriptor.id===r.descriptor.id)return s.borderBox.center;if(xe(d.descriptor.id,i)){var m=ft(d.page,zt(i.displacedBy.point));return Ee({axis:u,moveRelativeTo:m,isMoving:s})}return Ee({axis:u,moveRelativeTo:d.page,isMoving:s})}({impact:e,draggable:r,draggables:o,droppable:n,afterCritical:i}):function(t){var e=t.afterCritical,r=t.impact,n=t.draggables,o=ne(r);o||Ot(!1);var i=o.draggableId,a=n[i].page.borderBox.center,s=function(t){var e=t.displaced,r=t.afterCritical,n=t.combineWith,o=t.displacedBy,i=Boolean(e.visible[n]||e.invisible[n]);
vendor: 3,643 bytes, line 1
1return xe(n,r)?i?It:zt(o.point):i?o.point:It}({displaced:r.displaced,afterCritical:e,combineWith:i,displacedBy:r.displacedBy});return Dt(a,s)}({impact:e,draggables:o,afterCritical:i}):a}(t),r=t.droppable;return r?Pe(r,e):e},Ae=function(t,e){var r=Lt(e,t.scroll.initial),n=zt(r);return{frame:at({top:e.y,bottom:e.y+t.frame.height,left:e.x,right:e.x+t.frame.width}),scroll:{initial:t.scroll.initial,max:t.scroll.max,current:e,diff:{value:r,displacement:n}}}};function Ce(t,e){return t.map((function(t){return e[t]}))}var Te=function(t){var e,r,n=t.pageBorderBoxCenter,o=t.draggable,i=(e=t.viewport,r=n,Dt(e.scroll.diff.displacement,r)),a=Lt(i,o.page.borderBox.center);return Dt(o.client.borderBox.center,a)},ke=function(t){var e=t.draggable,r=t.destination,n=t.newPageBorderBoxCenter,o=t.viewport,i=t.withDroppableDisplacement,a=t.onlyOnMainAxis,u=void 0!==a&&a,c=Lt(n,e.page.borderBox.center),l={target:Ut(e.page.borderBox,c),destination:r,withDroppableDisplacement:i,viewport:o};return u?function(t){return de((0,s.Z)({},t,{isVisibleThroughFrameFn:(e=t.destination.axis,function(t){var r=ce(t.top,t.bottom),n=ce(t.left,t.right);return function(t){return e===fe?r(t.top)&&r(t.bottom):n(t.left)&&n(t.right)}})}));var e}(l):ye(l)},Me=function(t){var e=t.isMovingForward,r=t.draggable,n=t.destination,o=t.draggables,i=t.previousImpact,a=t.viewport,u=t.previousPageBorderBoxCenter,c=t.previousClientSelection,l=t.afterCritical;if(!n.isEnabled)return null;var p=ee(n.descriptor.id,o),f=ie(r,n),h=function(t){var e=t.isMovingForward,r=t.draggable,n=t.destination,o=t.insideDestination,i=t.previousImpact;if(!n.isCombineEnabled)return null;if(!re(i))return null;function a(t){var e={type:"COMBINE",combine:{draggableId:t,droppableId:n.descriptor.id}};return(0,s.Z)({},i,{at:e})}var u=i.displaced.all,c=u.length?u[0]:null;if(e)return c?a(c):null;var l=oe(r,o);if(!c)return l.length?a(l[l.length-1].descriptor.id):null;var p=Ht(l,(function(t){return t.descriptor.id===c}));-1===p&&Ot(!1);var f=p-1;return f<0?null:a(l[f].descriptor.id)}({isMovingForward:e,draggable:r,destination:n,insideDestination:p,previousImpact:i})||function(t){var e=t.isMovingForward,r=t.isInHomeList,n=t.draggable,o=t.draggables,i=t.destination,a=t.insideDestination,s=t.previousImpact,u=t.viewport,c=t.afterCritical,l=s.at;if(l||Ot(!1),"REORDER"===l.type){var p=function(t){var e=t.isMovingForward,r=t.isInHomeList,n=t.insideDestination,o=t.location;if(!n.length)return null;var i=o.index,a=e?i+1:i-1,s=n[0].descriptor.index,u=n[n.length-1].descriptor.index;return a<s||a>(r?u:u+1)?null:a}({isMovingForward:e,isInHomeList:r,location:l.destination,insideDestination:a});return null==p?null:_e({draggable:n,insideDestination:a,destination:i,viewport:u,last:s.displaced,displacedBy:s.displacedBy,index:p})}var f=function(t){var e=t.isMovingForward,r=t.draggables,n=t.combine,o=t.afterCritical;if(!t.destination.isCombineEnabled)return null;var i=n.draggableId,a=r[i].descriptor.index;return xe(i,o)?e?a:a-1:e?a+1:a}({isMovingForward:e,destination:i,displaced:s.displaced,draggables:o,combine:l.combine,afterCritical:c});return null==f?null:_e({draggable:n,insideDestination:a,destination:i,viewport:u,last:s.displaced,displacedBy:s.displacedBy,index:f})}({isMovingForward:e,isInHomeList:f,draggable:r,draggables:o,destination:n,insideDestination:p,previousImpact:i,viewport:a,afterCritical:l});if(!h)return null;var d=je({impact:h,draggable:r,droppable:n,draggables:o,afterCritical:l});if(ke({draggable:r,destination:n,newPageBorderBoxCenter:d,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Te({pageBorderBoxCenter:d,draggable:r,viewport:
vendor: 9,291 bytes, line 1
1a}),impact:h,scrollJumpRequest:null};var m=Lt(d,u),y=function(t){var e=t.impact,r=t.viewport,n=t.destination,o=t.draggables,i=t.maxScrollChange,a=Ae(r,Dt(r.scroll.current,i)),u=n.frame?Wt(n,Dt(n.frame.scroll.current,i)):n,c=e.displaced,l=ge({afterDragging:Ce(c.all,o),destination:n,displacedBy:e.displacedBy,viewport:a.frame,last:c,forceShouldAnimate:!1}),p=ge({afterDragging:Ce(c.all,o),destination:u,displacedBy:e.displacedBy,viewport:r.frame,last:c,forceShouldAnimate:!1}),f={},h={},d=[c,l,p];return c.all.forEach((function(t){var e=function(t,e){for(var r=0;r<e.length;r++){var n=e[r].visible[t];if(n)return n}return null}(t,d);e?h[t]=e:f[t]=!0})),(0,s.Z)({},e,{displaced:{all:c.all,invisible:f,visible:h}})}({impact:h,viewport:a,destination:n,draggables:o,maxScrollChange:m});return{clientSelection:c,impact:y,scrollJumpRequest:m}},Ie=function(t){var e=t.subject.active;return e||Ot(!1),e},De=function(t,e){var r=t.page.borderBox.center;return xe(t.descriptor.id,e)?Lt(r,e.displacedBy.point):r},Le=function(t,e){var r=t.page.borderBox;return xe(t.descriptor.id,e)?Ut(r,zt(e.displacedBy.point)):r},Re=(0,yt.default)((function(t,e){var r=e[t.line];return{value:r,point:Nt(t.line,r)}})),ze=function(t,e){return(0,s.Z)({},t,{scroll:(0,s.Z)({},t.scroll,{max:e})})},Ne=function(t,e,r){var n=t.frame;ie(e,t)&&Ot(!1),t.subject.withPlaceholder&&Ot(!1);var o=Re(t.axis,e.displaceBy).point,i=function(t,e,r){var n=t.axis;if("virtual"===t.descriptor.mode)return Nt(n.line,e[n.line]);var o=t.subject.page.contentBox[n.size],i=ee(t.descriptor.id,r).reduce((function(t,e){return t+e.client.marginBox[n.size]}),0)+e[n.line]-o;return i<=0?null:Nt(n.line,i)}(t,o,r),a={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:t.frame?t.frame.scroll.max:null};if(!n){var u=Gt({page:t.subject.page,withPlaceholder:a,axis:t.axis,frame:t.frame});return(0,s.Z)({},t,{subject:u})}var c=i?Dt(n.scroll.max,i):n.scroll.max,l=ze(n,c),p=Gt({page:t.subject.page,withPlaceholder:a,axis:t.axis,frame:l});return(0,s.Z)({},t,{subject:p,frame:l})},Fe=function(t){var e=t.at;return e?"REORDER"===e.type?e.destination.droppableId:e.combine.droppableId:null};function Be(t){return"DRAGGING"===t.phase||"COLLECTING"===t.phase}function Ve(t){var e=ce(t.top,t.bottom),r=ce(t.left,t.right);return function(t){return e(t.y)&&r(t.x)}}var Ue=function(t,e){return at(Ut(t,e))};function qe(t){var e=t.displaced,r=t.id;return Boolean(e.visible[r]||e.invisible[r])}var $e=function(t){var e=t.pageOffset,r=t.draggable,n=t.draggables,o=t.droppables,i=t.previousImpact,a=t.viewport,s=t.afterCritical,u=Ue(r.page.borderBox,e),c=function(t){var e=t.pageBorderBox,r=t.draggable,n=Qt(t.droppables).filter((function(t){if(!t.isEnabled)return!1;var r,n,o=t.subject.active;if(!o)return!1;if(n=o,!((r=e).left<n.right&&r.right>n.left&&r.top<n.bottom&&r.bottom>n.top))return!1;if(Ve(o)(e.center))return!0;var i=t.axis,a=o.center[i.crossAxisLine],s=e[i.crossAxisStart],u=e[i.crossAxisEnd],c=ce(o[i.crossAxisStart],o[i.crossAxisEnd]),l=c(s),p=c(u);return!l&&!p||(l?s<a:u>a)}));return n.length?1===n.length?n[0].descriptor.id:function(t){var e=t.pageBorderBox,r=t.candidates,n=t.draggable.page.borderBox.center,o=r.map((function(t){var r=t.axis,o=Nt(t.axis.line,e.center[r.line],t.page.borderBox.center[r.crossAxisLine]);return{id:t.descriptor.id,distance:Ft(n,o)}})).sort((function(t,e){return e.distance-t.distance}));return o[0]?o[0].id:null}({pageBorderBox:e,draggable:r,candidates:n}):null}({pageBorderBox:u,draggable:r,droppables:o});if(!c)return ue;var l=o[c],p=ee(l.descriptor.id,n),f=function(t,e){var r=t.frame;return r?Ue(e,r.scroll.diff.value):e}(l,u);return function(t){var e=t.draggable,r=t.pageBorderBoxWithDroppableScroll,n=t.previousImpact,o=t.destination,i=t.insideDestination,a=t.afterCritical;if(!o.isCombineEnabled)return null;var s=o.axis,u=Re(o.axis,e.displaceBy),c=u.value,l=r[s.start],p=r[s.end],f=Kt(oe(e,i),(function(t){var e=t.descriptor.id,r=t.page.borderBox,o=r[s.size]/4,i=xe(e,a),u=qe({displaced:n.displaced,id:e});return i?u?p>r[s.start]+o&&p<r[s.end]-o:l>r[s.start]-c+o&&l<r[s.end]-c-o:u?p>r[s.start]+c+o&&p<r[s.end]+c-o:l>r[s.start]+o&&l<r[s.end]-o}));return f?{displacedBy:u,displaced:n.displaced,at:{type:"COMBINE",combine:{draggableId:f.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:f,draggable:r,previousImpact:i,destination:l,insideDestination:p,afterCritical:s})||function(t){var e=t.pageBorderBoxWithDroppableScroll,r=t.draggable,n=t.destination,o=t.insideDestination,i=t.last,a=t.viewport,s=t.afterCritical,u=n.axis,c=Re(n.axis,r.displaceBy),l=c.value,p=e[u.start],f=e[u.end],h=function(t){var e=t.draggable,r=t.closest;return r?t.inHomeList&&r.descriptor.index>e.descriptor.index?r.descriptor.index-1:r.descriptor.index:null}({draggable:r,closest:Kt(oe(r,o),(function(t){var e=t.descriptor.id,r=t.page.borderBox.center[u.line],n=xe(e,s),o=qe({displaced:i,id:e});return n?o?f<=r:p<r-l:o?f<=r+l:p<r})),inHomeList:ie(r,n)});return _e({draggable:r,insideDestination:o,destination:n,viewport:a,last:i,displacedBy:c,index:h})}({pageBorderBoxWithDroppableScroll:f,draggable:r,destination:l,insideDestination:p,last:i.displaced,viewport:a,afterCritical:s})},Ge=function(t,e){var r;return(0,s.Z)({},t,((r={})[e.descriptor.id]=e,r))},We=function(t){var e=t.state,r=t.clientSelection,n=t.dimensions,o=t.viewport,i=t.impact,a=t.scrollJumpRequest,u=o||e.viewport,c=n||e.dimensions,l=r||e.current.client.selection,p=Lt(l,e.initial.client.selection),f={offset:p,selection:l,borderBoxCenter:Dt(e.initial.client.borderBoxCenter,p)},h={selection:Dt(f.selection,u.scroll.current),borderBoxCenter:Dt(f.borderBoxCenter,u.scroll.current),offset:Dt(f.offset,u.scroll.diff.value)},d={client:f,page:h};if("COLLECTING"===e.phase)return(0,s.Z)({phase:"COLLECTING"},e,{dimensions:c,viewport:u,current:d});var m=c.draggables[e.critical.draggable.id],y=i||$e({pageOffset:h.offset,draggable:m,draggables:c.draggables,droppables:c.droppables,previousImpact:e.impact,viewport:u,afterCritical:e.afterCritical}),v=function(t){var e=t.draggable,r=t.draggables,n=t.droppables,o=t.impact,i=function(t){var e=t.impact,r=t.droppables,n=Fe(t.previousImpact),o=Fe(e);if(!n)return r;if(n===o)return r;var i=r[n];if(!i.subject.withPlaceholder)return r;var a=function(t){var e=t.subject.withPlaceholder;e||Ot(!1);var r=t.frame;if(!r){var n=Gt({page:t.subject.page,axis:t.axis,frame:null,withPlaceholder:null});return(0,s.Z)({},t,{subject:n})}var o=e.oldFrameMaxScroll;o||Ot(!1);var i=ze(r,o),a=Gt({page:t.subject.page,axis:t.axis,frame:i,withPlaceholder:null});return(0,s.Z)({},t,{subject:a,frame:i})}(i);return Ge(r,a)}({previousImpact:t.previousImpact,impact:o,droppables:n}),a=Fe(o);if(!a)return i;var u=n[a];if(ie(e,u))return i;if(u.subject.withPlaceholder)return i;var c=Ne(u,e,r);return Ge(i,c)}({draggable:m,impact:y,previousImpact:e.impact,draggables:c.draggables,droppables:c.droppables});return(0,s.Z)({},e,{current:d,dimensions:{draggables:c.draggables,droppables:v},impact:y,viewport:u,scrollJumpRequest:a||null,forceShouldAnimate:!a&&null})},Ze=function(t){var e=t.impact,r=t.viewport,n=t.draggables,o=t.destination,i=t.forceShouldAnimate,a=e.displaced,u=function(t,e){return t.map((function(t){return e[t]}))}(a.all,n),c=ge({afterDragging:u,destination:o,displacedBy:e.displacedBy,viewport:r.frame,forceShouldAnimate:i,last:a});return(0,s.Z)({},e,{displaced:c})},He=function(t){var e=t.impact,r=t.draggable,n=t.droppable,o=t.draggables,i=t.viewport,a=t.afterCritical,s=je({impact:e,draggable:r,draggables:o,droppable:n,afterCritical:a});return Te({pageBorderBoxCenter:s,draggable:r,viewport:i})},Ke=function(t){var e=t.state,r=t.dimensions,n=t.viewport;"SNAP"!==e.movementMode&&Ot(!1);var o=e.impact,i=n||e.viewport,a=r||e.dimensions,s=a.draggables,u=a.droppables,c=s[e.critical.draggable.id],l=Fe(o);l||Ot(!1);var p=u[l],f=Ze({impact:o,viewport:i,destination:p,draggables:s}),h=He({impact:f,draggable:c,droppable:p,draggables:s,viewport:i,afterCritical:e.afterCritical});return We({impact:f,clientSelection:h,state:e,dimensions:a,viewport:i})},Ye=function(t){var e=t.draggable,r=t.home,n=t.draggables,o=t.viewport,i=Re(r.axis,e.displaceBy),a=ee(r.descriptor.id,n),s=a.indexOf(e);-1===s&&Ot(!1);var u,c=a.slice(s+1),l=c.reduce((function(t,e){return t[e.descriptor.id]=!0,t}),{}),p={inVirtualList:"virtual"===r.descriptor.mode,displacedBy:i,effected:l};return{impact:{displaced:ge({afterDragging:c,destination:r,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(u=e.descriptor,{index:u.index,droppableId:u.droppableId})}},afterCritical:p}},Xe=function(t){return"SNAP"===t.movementMode},Je=function(t,e,r){var n=function(t,e){return{draggables:t.draggables,droppables:Ge(t.droppables,e)}}(t.dimensions,e);return!Xe(t)||r?We({state:t,dimensions:n}):Ke({state:t,dimensions:n})};function Qe(t){return t.isDragging&&"SNAP"===t.movementMode?(0,s.Z)({phase:"DRAGGING"},t,{scrollJumpRequest:null}):t}var tr={phase:"IDLE",completed:null,shouldFlush:!1},er=function(t,e){if(void 0===t&&(t=tr),"FLUSH"===e.type)return(0,s.Z)({},tr,{shouldFlush:!0});if("INITIAL_PUBLISH"===e.type){"IDLE"!==t.phase&&Ot(!1);var r=e.payload,n=r.critical,o=r.clientSelection,i=r.viewport,a=r.dimensions,u=r.movementMode,c=a.draggables[n.draggable.id],l=a.droppables[n.droppable.
1id],p={selection:o,borderBoxCenter:c.client.borderBox.center,offset:It},f={client:p,page:{selection:Dt(p.selection,i.scroll.initial),borderBoxCenter:Dt(p.selection,i.scroll.initial),offset:Dt(p.selection,i.scroll.diff.value)}},h=Qt(a.droppables).every((function(t){return!t.isFixedOnPage})),d=Ye({draggable:c,home:l,draggables:a.draggables,viewport:i}),m=d.impact;return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:u,dimensions:a,initial:f,current:f,isWindowScrollAllowed:h,impact:m,afterCritical:d.afterCritical,onLiftImpact:m,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===e.type)return"COLLECTING"===t.phase||"DROP_PENDING"===t.phase?t:("DRAGGING"!==t.phase&&Ot(!1),(0,s.Z)({phase:"COLLECTING"},t,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===e.type)return"COLLECTING"!==t.phase&&"DROP_PENDING"!==t.phase&&Ot(!1),function(t){var e=t.state,r=t.published,n=r.modified.map((function(t){var r=e.dimensions.droppables[t.droppableId];return Wt(r,t.scroll)})),o=(0,s.Z)({},e.dimensions.droppables,{},Xt(n)),i=Jt(function(t){var e=t.additions,r=t.updatedDroppables,n=t.viewport,o=n.scroll.diff.value;return e.map((function(t){var e=t.descriptor.droppableId,i=function(t){var e=t.frame;return e||Ot(!1),e}(r[e]),a=i.scroll.diff.value,u=function(t){var e=t.draggable,r=t.offset,n=t.initialWindowScroll,o=ft(e.client,r),i=ht(o,n);return(0,s.Z)({},e,{placeholder:(0,s.Z)({},e.placeholder,{client:o}),client:o,page:i})}({draggable:t,offset:Dt(o,a),initialWindowScroll:n.scroll.initial});return u}))}({additions:r.additions,updatedDroppables:o,viewport:e.viewport})),a=(0,s.Z)({},e.dimensions.draggables,{},i);r.removals.forEach((function(t){delete a[t]}));var u={droppables:o,draggables:a},c=Fe(e.impact),l=c?u.droppables[c]:null,p=u.draggables[e.critical.draggable.id],f=u.droppables[e.critical.droppable.id],h=Ye({draggable:p,home:f,draggables:a,viewport:e.viewport}),d=h.impact,m=h.afterCritical,y=l&&l.isCombineEnabled?e.impact:d,v=$e({pageOffset:e.current.page.offset,draggable:u.draggables[e.critical.draggable.id],draggables:u.draggables,droppables:u.droppables,previousImpact:y,viewport:e.viewport,afterCritical:m}),g=(0,s.Z)({phase:"DRAGGING"},e,{phase:"DRAGGING",impact:v,onLiftImpact:d,dimensions:u,afterCritical:m,forceShouldAnimate:!1});return"COLLECTING"===e.phase?g:(0,s.Z)({phase:"DROP_PENDING"},g,{phase:"DROP_PENDING",reason:e.reason,isWaiting:!1})}({state:t,published:e.payload});if("MOVE"===e.type){if("DROP_PENDING"===t.phase)return t;Be(t)||Ot(!1);var y=e.payload.client;return Rt(y,t.current.client.selection)?t:We({state:t,clientSelection:y,impact:Xe(t)?t.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===e.type){if("DROP_PENDING"===t.phase)return Qe(t);if("COLLECTING"===t.phase)return Qe(t);Be(t)||Ot(!1);var v=e.payload,g=v.id,b=v.newScroll,_=t.dimensions.droppables[g];if(!_)return t;var x=Wt(_,b);return Je(t,x,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===e.type){if("DROP_PENDING"===t.phase)return t;Be(t)||Ot(!1);var w=e.payload,O=w.id,E=w.isEnabled,S=t.dimensions.droppables[O];S||Ot(!1),S.isEnabled===E&&Ot(!1);var P=(0,s.Z)({},S,{isEnabled:E});return Je(t,P,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===e.type){if("DROP_PENDING"===t.phase)return t;Be(t)||Ot(!1);var j=e.payload,A=j.id,C=j.isCombineEnabled,T=t.dimensions.droppables[A];T||Ot(!1),T.isCombineEnabled===C&&Ot(!1);var k=(0,s.Z)({}
vendor: 33,088 bytes, line 1
1,T,{isCombineEnabled:C});return Je(t,k,!0)}if("MOVE_BY_WINDOW_SCROLL"===e.type){if("DROP_PENDING"===t.phase||"DROP_ANIMATING"===t.phase)return t;Be(t)||Ot(!1),t.isWindowScrollAllowed||Ot(!1);var M=e.payload.newScroll;if(Rt(t.viewport.scroll.current,M))return Qe(t);var I=Ae(t.viewport,M);return Xe(t)?Ke({state:t,viewport:I}):We({state:t,viewport:I})}if("UPDATE_VIEWPORT_MAX_SCROLL"===e.type){if(!Be(t))return t;var D=e.payload.maxScroll;if(Rt(D,t.viewport.scroll.max))return t;var L=(0,s.Z)({},t.viewport,{scroll:(0,s.Z)({},t.viewport.scroll,{max:D})});return(0,s.Z)({phase:"DRAGGING"},t,{viewport:L})}if("MOVE_UP"===e.type||"MOVE_DOWN"===e.type||"MOVE_LEFT"===e.type||"MOVE_RIGHT"===e.type){if("COLLECTING"===t.phase||"DROP_PENDING"===t.phase)return t;"DRAGGING"!==t.phase&&Ot(!1);var R=function(t){var e=t.state,r=t.type,n=function(t,e){var r=Fe(t);return r?e[r]:null}(e.impact,e.dimensions.droppables),o=Boolean(n),i=e.dimensions.droppables[e.critical.droppable.id],a=n||i,s=a.axis.direction,u="vertical"===s&&("MOVE_UP"===r||"MOVE_DOWN"===r)||"horizontal"===s&&("MOVE_LEFT"===r||"MOVE_RIGHT"===r);if(u&&!o)return null;var c="MOVE_DOWN"===r||"MOVE_RIGHT"===r,l=e.dimensions.draggables[e.critical.draggable.id],p=e.current.page.borderBoxCenter,f=e.dimensions,h=f.draggables,d=f.droppables;return u?Me({isMovingForward:c,previousPageBorderBoxCenter:p,draggable:l,destination:a,draggables:h,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):function(t){var e=t.previousPageBorderBoxCenter,r=t.draggable,n=t.draggables,o=t.viewport,i=t.afterCritical,a=function(t){var e=t.isMovingForward,r=t.pageBorderBoxCenter,n=t.source,o=t.droppables,i=t.viewport,a=n.subject.active;if(!a)return null;var s=n.axis,u=ce(a[s.start],a[s.end]),c=Qt(o).filter((function(t){return t!==n})).filter((function(t){return t.isEnabled})).filter((function(t){return Boolean(t.subject.active)})).filter((function(t){return le(i.frame)(Ie(t))})).filter((function(t){var r=Ie(t);return e?a[s.crossAxisEnd]<r[s.crossAxisEnd]:r[s.crossAxisStart]<a[s.crossAxisStart]})).filter((function(t){var e=Ie(t),r=ce(e[s.start],e[s.end]);return u(e[s.start])||u(e[s.end])||r(a[s.start])||r(a[s.end])})).sort((function(t,r){var n=Ie(t)[s.crossAxisStart],o=Ie(r)[s.crossAxisStart];return e?n-o:o-n})).filter((function(t,e,r){return Ie(t)[s.crossAxisStart]===Ie(r[0])[s.crossAxisStart]}));if(!c.length)return null;if(1===c.length)return c[0];var l=c.filter((function(t){return ce(Ie(t)[s.start],Ie(t)[s.end])(r[s.line])}));return 1===l.length?l[0]:l.length>1?l.sort((function(t,e){return Ie(t)[s.start]-Ie(e)[s.start]}))[0]:c.sort((function(t,e){var n=Bt(r,qt(Ie(t))),o=Bt(r,qt(Ie(e)));return n!==o?n-o:Ie(t)[s.start]-Ie(e)[s.start]}))[0]}({isMovingForward:t.isMovingForward,pageBorderBoxCenter:e,source:t.isOver,droppables:t.droppables,viewport:o});if(!a)return null;var s=ee(a.descriptor.id,n),u=function(t){var e=t.pageBorderBoxCenter,r=t.viewport,n=t.destination,o=t.afterCritical,i=t.insideDestination.filter((function(t){return ye({target:Le(t,o),destination:n,viewport:r.frame,withDroppableDisplacement:!0})})).sort((function(t,r){var i=Ft(e,Pe(n,De(t,o))),a=Ft(e,Pe(n,De(r,o)));return i<a?-1:a<i?1:t.descriptor.index-r.descriptor.index}));return i[0]||null}({pageBorderBoxCenter:e,viewport:o,destination:a,insideDestination:s,afterCritical:i}),c=function(t){var e=t.previousPageBorderBoxCenter,r=t.moveRelativeTo,n=t.insideDestination,o=t.draggable,i=t.draggables,a=t.destination,s=t.viewport,u=t.afterCritical;if(!r){if(n.length)return null;var c={displaced:se,displacedBy:ae,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},l=je({impact:c,draggable:o,droppable:a,draggables:i,afterCritical:u}),p=ie(o,a)?a:Ne(a,o,i);return ke({draggable:o,destination:p,newPageBorderBoxCenter:l,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}var f,h=Boolean(e[a.axis.line]<=r.page.borderBox.center[a.axis.line]),d=(f=r.descriptor.index,r.descriptor.id===o.descriptor.id||h?f:f+1);return _e({draggable:o,insideDestination:n,destination:a,viewport:s,displacedBy:Re(a.axis,o.displaceBy),last:se,index:d})}({previousPageBorderBoxCenter:e,destination:a,draggable:r,draggables:n,moveRelativeTo:u,insideDestination:s,viewport:o,afterCritical:i});if(!c)return null;var l=je({impact:c,draggable:r,droppable:a,draggables:n,afterCritical:i});return{clientSelection:Te({pageBorderBoxCenter:l,draggable:r,viewport:o}),impact:c,scrollJumpRequest:null}}({isMovingForward:c,previousPageBorderBoxCenter:p,draggable:l,isOver:a,draggables:h,droppables:d,viewport:e.viewport,afterCritical:e.afterCritical})}({state:t,type:e.type});return R?We({state:t,impact:R.impact,clientSelection:R.clientSelection,scrollJumpRequest:R.scrollJumpRequest}):t}if("DROP_PENDING"===e.type){var z=e.payload.reason;return"COLLECTING"!==t.phase&&Ot(!1),(0,s.Z)({phase:"DROP_PENDING"},t,{phase:"DROP_PENDING",isWaiting:!0,reason:z})}if("DROP_ANIMATE"===e.type){var N=e.payload,F=N.completed,B=N.dropDuration,V=N.newHomeClientOffset;return"DRAGGING"!==t.phase&&"DROP_PENDING"!==t.phase&&Ot(!1),{phase:"DROP_ANIMATING",completed:F,dropDuration:B,newHomeClientOffset:V,dimensions:t.dimensions}}return"DROP_COMPLETE"===e.type?{phase:"IDLE",completed:e.payload.completed,shouldFlush:!1}:t},rr=function(t){return{type:"PUBLISH_WHILE_DRAGGING",payload:t}},nr=function(){return{type:"COLLECTION_STARTING",payload:null}},or=function(t){return{type:"UPDATE_DROPPABLE_SCROLL",payload:t}},ir=function(t){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:t}},ar=function(t){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:t}},sr=function(t){return{type:"MOVE",payload:t}},ur=function(){return{type:"MOVE_UP",payload:null}},cr=function(){return{type:"MOVE_DOWN",payload:null}},lr=function(){return{type:"MOVE_RIGHT",payload:null}},pr=function(){return{type:"MOVE_LEFT",payload:null}},fr=function(t){return{type:"DROP_COMPLETE",payload:t}},hr=function(t){return{type:"DROP",payload:t}},dr="cubic-bezier(.2,1,.1,1)",mr="0.2s cubic-bezier(0.2, 0, 0, 1)",yr={fluid:"opacity "+mr,snap:"transform "+mr+", opacity "+mr,drop:function(t){var e=t+"s "+dr;return"transform "+e+", opacity "+e},outOfTheWay:"transform "+mr,placeholder:"height "+mr+", width "+mr+", margin "+mr},vr=function(t){return Rt(t,It)?null:"translate("+t.x+"px, "+t.y+"px)"},gr=vr,br=function(t){var e=t.getState,r=t.dispatch;return function(t){return function(n){if("DROP"===n.type){var o=e(),i=n.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&Ot(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&Ot(!1);var a=o.critical,u=o.dimensions,c=u.draggables[o.critical.draggable.id],l=function(t){var e=t.draggables,r=t.reason,n=t.lastImpact,o=t.home,i=t.viewport,a=t.onLiftImpact;return n.at&&"DROP"===r?"REORDER"===n.at.type?{impact:n,didDropInsideDroppable:!0}:{impact:(0,s.Z)({},n,{displaced:se}),didDropInsideDroppable:!0}:{impact:Ze({draggables:e,impact:a,destination:o,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:i,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),p=l.impact,f=l.didDropInsideDroppable,h=f?re(p):null,d=f?ne(p):null,m={index:a.draggable.index,droppableId:a.droppable.id},y={draggableId:c.descriptor.id,type:c.descriptor.type,source:m,reason:i,mode:o.movementMode,destination:h,combine:d},v=function(t){var e=t.impact,r=t.draggable,n=t.dimensions,o=t.viewport,i=t.afterCritical,a=n.draggables,s=n.droppables,u=Fe(e),c=u?s[u]:null,l=s[r.descriptor.droppableId],p=He({impact:e,draggable:r,draggables:a,afterCritical:i,droppable:c||l,viewport:o});return Lt(p,r.client.borderBox.center)}({impact:p,draggable:c,dimensions:u,viewport:o.viewport,afterCritical:o.afterCritical}),g={critical:o.critical,afterCritical:o.afterCritical,result:y,impact:p};if(!Rt(o.current.client.offset,v)||Boolean(y.combine)){var b=function(t){var e=t.reason,r=Ft(t.current,t.destination);if(r<=0)return.33;if(r>=1500)return.55;var n=.33+r/1500*.22000000000000003;return Number(("CANCEL"===e?.6*n:n).toFixed(2))}({current:o.current.client.offset,destination:v,reason:i});r({type:"DROP_ANIMATE",payload:{newHomeClientOffset:v,dropDuration:b,completed:g}})}else r(fr({completed:g}))}}else r(function(t){return{type:"DROP_PENDING",payload:t}}({reason:i}))}else t(n)}}},_r=function(){return{x:window.pageXOffset,y:window.pageYOffset}},xr=function(t){var e=function(t){var e=t.onWindowScroll,r=vt((function(){e(_r())})),n=function(t){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(e){e.target!==window&&e.target!==window.document||t()}}}(r),o=bt;function i(){return o!==bt}return{start:function(){i()&&Ot(!1),o=_t(window,[n])},stop:function(){i()||Ot(!1),r.cancel(),o(),o=bt},isActive:i}}({onWindowScroll:function(e){t.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:e}})}});return function(t){return function(r){e.isActive()||"INITIAL_PUBLISH"!==r.type||e.start(),e.isActive()&&function(t){return"DROP_COMPLETE"===t.type||"DROP_ANIMATE"===t.type||"FLUSH"===t.type}(r)&&e.stop(),t(r)}}},wr=function(t,e){e()},Or=function(t,e){return{draggableId:t.draggable.id,type:t.droppable.type,source:{droppableId:t.droppable.id,index:t.draggable.index},mode:e}},Er=function(t,e,r,n){if(t){var o=function(t){var e=!1,r=!1,n=setTimeout((function(){r=!0})),o=function(o){e||r||(e=!0,t(o),clearTimeout(n))};return o.wasCalled=function(){return e},o}(r);t(e,{announce:o}),o.wasCalled()||r(n(e))}else r(n(e))},Sr=function(t,e){var r=function(t,e){var r,n=(r=[],{add:function(t){var e=setTimeout((function(){return function(t){var e=Ht(r,(function(e){return e.timerId===t}));-1===e&&Ot(!1),r.splice(e,1)[0].callback()}(e)})),n={timerId:e,callback:t};r.push(n)},flush:function(){if(r.length){var t=[].concat(r);r.length=0,t.forEach((function(t){clearTimeout(t.timerId),t.callback()}))}}}),o=null,i=function(r){o||Ot(!1),o=null,wr(0,(function(){return Er(t().onDragEnd,r,e,Mt)}))};return{beforeCapture:function(e,r){o&&Ot(!1),wr(0,(function(){var n=t().onBeforeCapture;n&&n({draggableId:e,mode:r})}))},beforeStart:function(e,r){o&&Ot(!1),wr(0,(function(){var n=t().onBeforeDragStart;n&&n(Or(e,r))}))},start:function(r,i){o&&Ot(!1);var a=Or(r,i);o={mode:i,lastCritical:r,lastLocation:a.source,lastCombine:null},n.add((function(){wr(0,(function(){return Er(t().onDragStart,a,e,Tt)}))}))},update:function(r,i){var a=re(i),u=ne(i);o||Ot(!1);var c=!function(t,e){if(t===e)return!0;var r=t.draggable.id===e.draggable.id&&t.draggable.droppableId===e.draggable.droppableId&&t.draggable.type===e.draggable.type&&t.draggable.index===e.draggable.index,n=t.droppable.id===e.droppable.id&&t.droppable.type===e.droppable.type;return r&&n}(r,o.lastCritical);c&&(o.lastCritical=r);var l,p,f=(p=a,!(null==(l=o.lastLocation)&&null==p||null!=l&&null!=p&&l.droppableId===p.droppableId&&l.index===p.index));f&&(o.lastLocation=a);var h=!function(t,e){return null==t&&null==e||null!=t&&null!=e&&t.draggableId===e.draggableId&&t.droppableId===e.droppableId}(o.lastCombine,u);if(h&&(o.lastCombine=u),c||f||h){var d=(0,s.Z)({},Or(r,o.mode),{combine:u,destination:a});n.add((function(){wr(0,(function(){return Er(t().onDragUpdate,d,e,kt)}))}))}},flush:function(){o||Ot(!1),n.flush()},drop:i,abort:function(){if(o){var t=(0,s.Z)({},Or(o.lastCritical,o.mode),{combine:null,destination:null,reason:"CANCEL"});i(t)}}}}(t,e);return function(t){return function(e){return function(n){if("BEFORE_INITIAL_CAPTURE"!==n.type){if("INITIAL_PUBLISH"===n.type){var o=n.payload.critical;return r.beforeStart(o,n.payload.movementMode),e(n),void r.start(o,n.payload.movementMode)}if("DROP_COMPLETE"===n.type){var i=n.payload.completed.result;return r.flush(),e(n),void r.drop(i)}if(e(n),"FLUSH"!==n.type){var a=t.getState();"DRAGGING"===a.phase&&r.update(a.critical,a.impact)}else r.abort()}else r.beforeCapture(n.payload.draggableId,n.payload.movementMode)}}}},Pr=function(t){return function(e){return function(r){if("DROP_ANIMATION_FINISHED"===r.type){var n=t.getState();"DROP_ANIMATING"!==n.phase&&Ot(!1),t.dispatch(fr({completed:n.completed}))}else e(r)}}},jr=function(t){var e=null,r=null;return function(n){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(r&&(cancelAnimationFrame(r),r=null),e&&(e(),e=null)),n(o),"DROP_ANIMATE"===o.type){var i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===t.getState().phase&&t.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};r=requestAnimationFrame((function(){r=null,e=_t(window,[i])}))}}}},Ar=function(t){return function(e){return function(r){if(e(r),"PUBLISH_WHILE_DRAGGING"===r.type){var n=t.getState();"DROP_PENDING"===n.phase&&(n.isWaiting||t.dispatch(hr({reason:n.reason})))}}}},Cr=y,Tr=function(t){var e,r=t.dimensionMarshal,n=t.focusMarshal,o=t.styleMarshal,i=t.getResponders,a=t.announce,s=t.autoScroller;return h(er,Cr(function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return function(){var r=t.apply(void 0,arguments),n=function(){throw new Error(c(15))},o={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},i=e.map((function(t){return t(o)}));return n=y.apply(void 0,i)(r.dispatch),(0,u.Z)((0,u.Z)({},r),{},{dispatch:n})}}}((e=o,function(){return function(t){return function(r){"INITIAL_PUBLISH"===r.type&&e.dragging(),"DROP_ANIMATE"===r.type&&e.dropping(r.payload.completed.result.reason),"FLUSH"!==r.type&&"DROP_COMPLETE"!==r.type||e.resting(),t(r)}}}),function(t){return function(){return function(e){return function(r){"DROP_COMPLETE"!==r.type&&"FLUSH"!==r.type&&"DROP_ANIMATE"!==r.type||t.stopPublishing(),e(r)}}}}(r),function(t){return function(e){var r=e.getState,n=e.dispatch;return function(e){return function(o){if("LIFT"===o.type){var i=o.payload,a=i.id,s=i.clientSelection,u=i.movementMode,c=r();"DROP_ANIMATING"===c.phase&&n(fr({completed:c.completed})),"IDLE"!==r().phase&&Ot(!1),n({type:"FLUSH",payload:null}),n({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:u}});var l={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===u}},p=t.startPublishing(l),f=p.critical,h=p.dimensions,d=p.viewport;n({type:"INITIAL_PUBLISH",payload:{critical:f,dimensions:h,clientSelection:s,movementMode:u,viewport:d}})}else e(o)}}}}(r),br,Pr,jr,Ar,function(t){return function(e){return function(r){return function(n){if(function(t){return"DROP_COMPLETE"===t.type||"DROP_ANIMATE"===t.type||"FLUSH"===t.type}(n))return t.stop(),void r(n);if("INITIAL_PUBLISH"===n.type){r(n);var o=e.getState();return"DRAGGING"!==o.phase&&Ot(!1),void t.start(o)}r(n),t.scroll(e.getState())}}}}(s),xr,function(t){var e=!1;return function(){return function(r){return function(n){if("INITIAL_PUBLISH"===n.type)return e=!0,t.tryRecordFocus(n.payload.critical.draggable.id),r(n),void t.tryRestoreFocusRecorded();if(r(n),e){if("FLUSH"===n.type)return e=!1,void t.tryRestoreFocusRecorded();if("DROP_COMPLETE"===n.type){e=!1;var o=n.payload.completed.result;o.combine&&t.tryShiftRecord(o.draggableId,o.combine.draggableId),t.tryRestoreFocusRecorded()}}}}}}(n),Sr(i,a))))},kr=function(t){var e=t.scrollHeight,r=t.scrollWidth,n=t.height,o=t.width,i=Lt({x:r,y:e},{x:o,y:n});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},Mr=function(){var t=document.documentElement;return t||Ot(!1),t},Ir=function(){var t=Mr();return kr({scrollHeight:t.scrollHeight,scrollWidth:t.scrollWidth,width:t.clientWidth,height:t.clientHeight})};function Dr(t,e,r){return r.descriptor.id!==e.id&&r.descriptor.type===e.type&&"virtual"===t.droppable.getById(r.descriptor.droppableId).descriptor.mode}var Lr,Rr,zr=function(t,e){return"IDLE"===t.phase||"DROP_ANIMATING"===t.phase&&t.completed.result.draggableId!==e&&"DROP"===t.completed.result.reason},Nr=function(t){window.scrollBy(t.x,t.y)},Fr=(0,yt.default)((function(t){return Qt(t).filter((function(t){return!!t.isEnabled&&!!t.frame}))})),Br=function(t){return Math.pow(t,2)},Vr=function(t){var e=t.startOfRange,r=t.endOfRange,n=t.current,o=r-e;return 0===o?0:(n-e)/o},Ur=function(t){var e=t.distanceToEdge,r=t.thresholds,n=t.dragStartTime,o=t.shouldUseTimeDampening,i=function(t,e){if(t>e.startScrollingFrom)return 0;if(t<=e.maxScrollValueAt)return 28;if(t===e.startScrollingFrom)return 1;var r=Vr({startOfRange:e.maxScrollValueAt,endOfRange:e.startScrollingFrom,current:t}),n=28*Br(1-r);return Math.ceil(n)}(e,r);return 0===i?0:o?Math.max(function(t,e){var r=e,n=Date.now()-r;if(n>=1200)return t;if(n<360)return 1;var o=Vr({startOfRange:360,endOfRange:1200,current:n}),i=t*Br(o);return Math.ceil(i)}(i,n),1):i},qr=function(t){var e=t.container,r=t.distanceToEdges,n=t.dragStartTime,o=t.axis,i=t.shouldUseTimeDampening,a=function(t,e){return{startScrollingFrom:.25*t[e.size],maxScrollValueAt:.05*t[e.size]}}(e,o);return r[o.end]<r[o.start]?Ur({distanceToEdge:r[o.end],thresholds:a,dragStartTime:n,shouldUseTimeDampening:i}):-1*Ur({distanceToEdge:r[o.start],thresholds:a,dragStartTime:n,shouldUseTimeDampening:i})},$r=Vt((function(t){return 0===t?0:t})),Gr=function(t){var e=t.dragStartTime,r=t.container,n=t.subject,o=t.center,i=t.shouldUseTimeDampening,a={top:o.y-r.top,right:r.right-o.x,bottom:r.bottom-o.y,left:o.x-r.left},s=qr({container:r,distanceToEdges:a,dragStartTime:e,axis:fe,shouldUseTimeDampening:i}),u=qr({container:r,distanceToEdges:a,dragStartTime:e,axis:he,shouldUseTimeDampening:i}),c=$r({x:u,y:s});if(Rt(c,It))return null;var l=function(t){var e=t.container,r=t.subject,n=t.proposedScroll,o=r.height>e.height,i=r.width>e.width;return i||o?i&&o?null:{x:i?0:n.x,y:o?0:n.y}:n}({container:r,subject:n,proposedScroll:c});return l?Rt(l,It)?null:l:null},Wr=Vt((function(t){return 0===t?0:t>0?1:-1})),Zr=(Lr=function(t,e){return t<0?t:t>e?t-e:0},function(t){var e=t.current,r=t.max,n=t.change,o=Dt(e,n),i={x:Lr(o.x,r.x),y:Lr(o.y,r.y)};return Rt(i,It)?null:i}),Hr=function(t){var e=t.max,r=t.current,n=t.change,o={x:Math.max(r.x,e.x),y:Math.max(r.y,e.y)},i=Wr(n),a=Zr({max:o,current:r,change:i});return!a||0!==i.x&&0===a.x||0!==i.y&&0===a.y},Kr=function(t,e){return Hr({current:t.scroll.current,max:t.scroll.max,change:e})},Yr=function(t,e){var r=t.frame;return!!r&&Hr({current:r.scroll.current,max:r.scroll.max,change:e})},Xr=function(t){var e=t.state,r=t.dragStartTime,n=t.shouldUseTimeDampening,o=t.scrollWindow,i=t.scrollDroppable,a=e.current.page.borderBoxCenter,s=e.dimensions.draggables[e.critical.draggable.id].page.marginBox;if(e.isWindowScrollAllowed){var u=function(t){var e=t.viewport,r=t.subject,n=t.center,o=t.shouldUseTimeDampening,i=Gr({dragStartTime:t.dragStartTime,container:e.frame,subject:r,center:n,shouldUseTimeDampening:o});return i&&Kr(e,i)?i:null}({dragStartTime:r,viewport:e.viewport,subject:s,center:a,shouldUseTimeDampening:n});if(u)return void o(u)}var c=function(t){var e=t.center,r=t.destination,n=t.droppables;if(r){var o=n[r];return o.frame?o:null}var i=function(t,e){var r=Kt(Fr(e),(function(e){return e.frame||Ot(!1),Ve(e.frame.pageMarginBox)(t)}));return r}(e,n);return i}({center:a,destination:Fe(e.impact),droppables:e.dimensions.droppables});if(c){var l=function(t){var e=t.droppable,r=t.subject,n=t.center,o=t.dragStartTime,i=t.shouldUseTimeDampening,a=e.frame;if(!a)return null;var s=Gr({dragStartTime:o,container:a.pageMarginBox,subject:r,center:n,shouldUseTimeDampening:i});return s&&Yr(e,s)?s:null}({dragStartTime:r,droppable:c,subject:s,center:a,shouldUseTimeDampening:n});l&&i(c.descriptor.id,l)}},Jr=function(t){var e=t.scrollDroppable,r=t.scrollWindow,n=t.move,o=function(t){var e=t.scrollDroppable,r=vt(t.scrollWindow),n=vt(e),o=null,i=function(t){o||Ot(!1);var e=o,i=e.shouldUseTimeDampening,a=e.dragStartTime;Xr({state:t,scrollWindow:r,scrollDroppable:n,dragStartTime:a,shouldUseTimeDampening:i})};return{start:function(t){o&&Ot(!1);var e=Date.now(),r=!1,n=function(){r=!0};Xr({state:t,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:n,scrollDroppable:n}),o={dragStartTime:e,shouldUseTimeDampening:r},r&&i(t)},stop:function(){o&&(r.cancel(),n.cancel(),o=null)},scroll:i}}({scrollWindow:r,scrollDroppable:e}),i=function(t){var e=t.move,r=t.scrollDroppable,n=t.scrollWindow;return function(t){var o=t.scrollJumpRequest;if(o){var i=Fe(t.impact);i||Ot(!1);var a=function(t,e){if(!Yr(t,e))return e;var n=function(t,e){var r=t.frame;return r&&Yr(t,e)?Zr({current:r.scroll.current,max:r.scroll.max,change:e}):null}(t,e);if(!n)return r(t.descriptor.id,e),null;var o=Lt(e,n);return r(t.descriptor.id,o),Lt(e,o)}(t.dimensions.droppables[i],o);if(a){var s=t.viewport,u=function(t,e,r){if(!t)return r;if(!Kr(e,r))return r;var o=function(t,e){if(!Kr(t,e))return null;var r=t.scroll.max,n=t.scroll.current;return Zr({current:n,max:r,change:e})}(e,r);if(!o)return n(r),null;var i=Lt(r,o);return n(i),Lt(r,i)}(t.isWindowScrollAllowed,s,a);u&&function(t,r){var n=Dt(t.current.client.selection,r);e({client:n})}(t,u)}}}}({move:n,scrollWindow:r,scrollDroppable:e});return{scroll:function(t){"DRAGGING"===t.phase&&("FLUID"!==t.movementMode?t.scrollJumpRequest&&i(t):o.scroll(t))},start:o.start,stop:o.stop}},Qr="data-rbd",tn={base:Rr=Qr+"-drag-handle",draggableId:Rr+"-draggable-id",contextId:Rr+"-context-id"},en=function(){var t=Qr+"-draggable";return{base:t,contextId:t+"-context-id",id:t+"-id"}}(),rn=function(){var t=Qr+"-droppable";return{base:t,contextId:t+"-context-id",id:t+"-id"}}(),nn={contextId:Qr+"-scroll-container-context-id"},on=function(t,e){return t.map((function(t){var r=t.styles[e];return r?t.selector+" { "+r+" }":""})).join(" ")},an="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect,sn=function(){var t=document.querySelector("head");return t||Ot(!1),t},un=function(t){var e=document.createElement("style");return t&&e.setAttribute("nonce",t),e.type="text/css",e},cn=function(t){return t&&t.ownerDocument?t.ownerDocument.defaultView:window};function ln(t){return t instanceof cn(t).HTMLElement}function pn(){var t={draggables:{},droppables:{}},e=[];function r(t){e.length&&e.forEach((function(e){return e(t)}))}function n(e){return t.draggables[e]||null}function o(e){return t.droppables[e]||null}return{draggable:{register:function(e){t.draggables[e.descriptor.id]=e,r({type:"ADDITION",value:e})},update:function(e,r){var n=t.draggables[r.descriptor.id];n&&n.uniqueId===e.uniqueId&&(delete t.draggables[r.descriptor.id],t.draggables[e.descriptor.id]=e)},unregister:function(e){var o=e.descriptor.id,i=n(o);i&&e.uniqueId===i.uniqueId&&(delete t.draggables[o],r({type:"REMOVAL",value:e}))},getById:function(t){var e=n(t);return e||Ot(!1),e},findById:n,exists:function(t){return Boolean(n(t))},getAllByType:function(e){return Zt(t.draggables).filter((function(t){return t.descriptor.type===e}))}},droppable:{register:function(e){t.droppables[e.descriptor.id]=e},unregister:function(e){var r=o(e.descriptor.id);r&&e.uniqueId===r.uniqueId&&delete t.droppables[e.descriptor.id]},getById:function(t){var e=o(t);return e||Ot(!1),e},findById:o,exists:function(t){return Boolean(o(t))},getAllByType:function(e){return Zt(t.droppables).filter((function(t){return t.descriptor.type===e}))}},subscribe:function(t){return e.push(t),function(){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}},clean:function(){t.draggables={},t.droppables={},e.length=0}}}var fn=o().createContext(null),hn=function(){var t=document.body;return t||Ot(!1),t},dn={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},mn=0,yn={separator:"::"};function vn(t,e){return void 0===e&&(e=yn),ot((function(){return""+t+e.separator+mn++}),[e.separator,t])}var gn=o().createContext(null);function bn(t){var e=(0,n.useRef)(t);return(0,n.useEffect)((function(){e.current=t})),e}var _n,xn,wn=((_n={})[13]=!0,_n[9]=!0,_n),On=function(t){wn[t.keyCode]&&t.preventDefault()},En=function(){var t="visibilitychange";return"undefined"==typeof document?t:Kt([t,"ms"+t,"webkit"+t,"moz"+t,"o"+t],(function(t){return"on"+t in document}))||t}(),Sn={type:"IDLE"};function Pn(t){var e=(0,n.useRef)(Sn),r=(0,n.useRef)(bt),o=ot((function(){return{eventName:"mousedown",fn:function(e){if(!e.defaultPrevented&&0===e.button&&!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)){var n=t.findClosestDraggableId(e);if(n){var o=t.tryGetLock(n,s,{sourceEvent:e});if(o){e.preventDefault();var i={x:e.clientX,y:e.clientY};r.current(),l(o,i)}}}}}}),[t]),i=ot((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(e){if(!e.defaultPrevented){var r=t.findClosestDraggableId(e);if(r){var n=t.findOptionsForDraggable(r);n&&(n.shouldRespectForcePress||t.canGetLock(r)&&e.preventDefault())}}}}}),[t]),a=it((function(){r.current=_t(window,[i,o],{passive:!1,capture:!0})}),[i,o]),s=it((function(){"IDLE"!==e.current.type&&(e.current=Sn,r.current(),a())}),[a]),u=it((function(){var t=e.current;s(),"DRAGGING"===t.type&&t.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===t.type&&t.actions.abort()}),[s]),c=it((function(){var t=function(t){var e=t.cancel,r=t.completed,n=t.getPhase,o=t.setPhase;return[{eventName:"mousemove",fn:function(t){var e=t.button,r=t.clientX,i=t.clientY;if(0===e){var a={x:r,y:i},s=n();if("DRAGGING"===s.type)return t.preventDefault(),void s.actions.move(a);if("PENDING"!==s.type&&Ot(!1),u=s.point,c=a,Math.abs(c.x-u.x)>=5||Math.abs(c.y-u.y)>=5){var u,c;t.preventDefault();var l=s.actions.fluidLift(a);o({type:"DRAGGING",actions:l})}}}},{eventName:"mouseup",fn:function(t){var o=n();"DRAGGING"===o.type?(t.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),r()):e()}},{eventName:"mousedown",fn:function(t){"DRAGGING"===n().type&&t.preventDefault(),e()}},{eventName:"keydown",fn:function(t){if("PENDING"!==n().type)return 27===t.keyCode?(t.preventDefault(),void e()):void On(t);e()}},{eventName:"resize",fn:e},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===n().type&&e()}},{eventName:"webkitmouseforcedown",fn:function(t){var r=n();"IDLE"===r.type&&Ot(!1),r.actions.shouldRespectForcePress()?e():t.preventDefault()}},{eventName:En,fn:e}]}({cancel:u,completed:s,getPhase:function(){return e.current},setPhase:function(t){e.current=t}});r.current=_t(window,t,{capture:!0,passive:!1})}),[u,s]),l=it((function(t,r){"IDLE"!==e.current.type&&Ot(!1),e.current={type:"PENDING",point:r,actions:t},c()}),[c]);an((function(){return a(),function(){r.current()}}),[a])}function jn(){}var An=((xn={})[34]=!0,xn[33]=!0,xn[36]=!0,xn[35]=!0,xn);function Cn(t){var e=(0,n.useRef)(jn),r=ot((function(){return{eventName:"keydown",fn:function(r){if(!r.defaultPrevented&&32===r.keyCode){var n=t.findClosestDraggableId(r);if(n){var i=t.tryGetLock(n,u,{sourceEvent:r});if(i){r.preventDefault();var a=!0,s=i.snapLift();e.current(),e.current=_t(window,function(t,e){function r(){e(),t.cancel()}return[{eventName:"keydown",fn:function(n){return 27===n.keyCode?(n.preventDefault(),void r()):32===n.keyCode?(n.preventDefault(),e(),void t.drop()):40===n.keyCode?(n.preventDefault(),void t.moveDown()):38===n.keyCode?(n.preventDefault(),void t.moveUp()):39===n.keyCode?(n.preventDefault(),void t.moveRight()):37===n.keyCode?(n.preventDefault(),void t.moveLeft()):void(An[n.keyCode]?n.preventDefault():On(n))}},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:En,fn:r}]}(s,u),{capture:!0,passive:!1})}}}function u(){a||Ot(!1),a=!1,e.current(),o()}}}}),[t]),o=it((function(){e.current=_t(window,[r],{passive:!1,capture:!0})}),[r]);an((function(){return o(),function(){e.current()}}),[o])}var Tn={type:"IDLE"};function kn(t){var e=(0,n.useRef)(Tn),r=(0,n.useRef)(bt),o=it((function(){return e.current}),[]),i=it((function(t){e.current=t}),[]),a=ot((function(){return{eventName:"touchstart",fn:function(e){if(!e.defaultPrevented){var n=t.findClosestDraggableId(e);if(n){var o=t.tryGetLock(n,u,{sourceEvent:e});if(o){var i=e.touches[0],a={x:i.clientX,y:i.clientY};r.current(),f(o,a)}}}}}}),[t]),s=it((function(){r.current=_t(window,[a],{capture:!0,passive:!1})}),[a]),u=it((function(){var t=e.current;"IDLE"!==t.type&&("PENDING"===t.type&&clearTimeout(t.longPressTimerId),i(Tn),r.current(),s())}),[s,i]),c=it((function(){var t=e.current;u(),"DRAGGING"===t.type&&t.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===t.type&&t.actions.abort()}),[u]),l=it((function(){var t={capture:!0,passive:!1},e={cancel:c,completed:u,getPhase:o},n=_t(window,function(t){var e=t.cancel,r=t.completed,n=t.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(t){var r=n();if("DRAGGING"===r.type){r.hasMoved=!0;var o=t.touches[0],i={x:o.clientX,y:o.clientY};t.preventDefault(),r.actions.move(i)}else e()}},{eventName:"touchend",fn:function(t){var o=n();"DRAGGING"===o.type?(t.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),r()):e()}},{eventName:"touchcancel",fn:function(t){"DRAGGING"===n().type?(t.preventDefault(),e()):e()}},{eventName:"touchforcechange",fn:function(t){var r=n();"IDLE"===r.type&&Ot(!1);var o=t.touches[0];if(o&&o.force>=.15){var i=r.actions.shouldRespectForcePress();if("PENDING"!==r.type)return i?r.hasMoved?void t.preventDefault():void e():void t.preventDefault();i&&e()}}},{eventName:En,fn:e}]}(e),t),i=_t(window,function(t){var e=t.cancel,r=t.getPhase;return[{eventName:"orientationchange",fn:e},{eventName:"resize",fn:e},{eventName:"contextmenu",fn:function(t){t.preventDefault()}},{eventName:"keydown",fn:function(t){"DRAGGING"===r().type?(27===t.keyCode&&t.preventDefault(),e()):e()}},{eventName:En,fn:e}]}(e),t);r.current=function(){n(),i()}}),[c,o,u]),p=it((function(){var t=o();"PENDING"!==t.type&&Ot(!1);var e=t.actions.fluidLift(t.point);i({type:"DRAGGING",actions:e,hasMoved:!1})}),[o,i]),f=it((function(t,e){"IDLE"!==o().type&&Ot(!1);var r=setTimeout(p,120);i({type:"PENDING",point:e,actions:t,longPressTimerId:r}),l()}),[l,o,i,p]);an((function(){return s(),function(){r.current();var t=o();"PENDING"===t.type&&(clearTimeout(t.longPressTimerId),i(Tn))}}),[o,s,i]),an((function(){return _t(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}var Mn={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function In(t,e){if(null==e)return!1;if(Boolean(Mn[e.tagName.toLowerCase()]))return!0;var r=e.getAttribute("contenteditable");return"true"===r||""===r||e!==t&&In(t,e.parentElement)}function Dn(t,e){var r=e.target;return!!ln(r)&&In(t,r)}var Ln=function(t){return at(t.getBoundingClientRect()).center},Rn=function(){var t="matches";return"undefined"==typeof document?t:Kt([t,"msMatchesSelector","webkitMatchesSelector"],(function(t){return t in Element.prototype}))||t}();function zn(t,e){return null==t?null:t[Rn](e)?t:zn(t.parentElement,e)}function Nn(t,e){return t.closest?t.closest(e):zn(t,e)}function Fn(t){t.preventDefault()}function Bn(t){var e=t.expected,r=t.phase,n=t.isLockActive;return t.shouldWarn,!!n()&&e===r}function Vn(t){var e=t.lockAPI,r=t.store,n=t.registry,o=t.draggableId;if(e.isClaimed())return!1;var i=n.draggable.findById(o);return!!i&&!!i.options.isEnabled&&!!zr(r.getState(),o)}var Un=[Pn,Cn,kn];function qn(t){return t.current||Ot(!1),t.current}function $n(t){var e=t.contextId,r=t.setCallbacks,i=t.sensors,a=t.nonce,u=t.dragHandleUsageInstructions,c=(0,n.useRef)(null),l=bn(t),p=it((function(){return function(t){return{onBeforeCapture:t.onBeforeCapture,onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragEnd:t.onDragEnd,onDragUpdate:t.onDragUpdate}}(l.current)}),[l]),f=function(t){var e=ot((function(){return function(t){return"rbd-announcement-"+t}(t)}),[t]),r=(0,n.useRef)(null);return(0,n.useEffect)((function(){var t=document.createElement("div");return r.current=t,t.id=e,t.setAttribute("aria-live","assertive"),t.setAttribute("aria-atomic","true"),(0,s.Z)(t.style,dn),hn().appendChild(t),function(){setTimeout((function(){var e=hn();e.contains(t)&&e.removeChild(t),t===r.current&&(r.current=null)}))}}),[e]),it((function(t){var e=r.current;e&&(e.textContent=t)}),[])}(e),h=function(t){var e=t.contextId,r=t.text,o=vn("hidden-text",{separator:"-"}),i=ot((function(){return"rbd-hidden-text-"+(t={contextId:e,uniqueId:o}).contextId+"-"+t.uniqueId;var t}),[o,e]);return(0,n.useEffect)((function(){var t=document.createElement("div");return t.id=i,t.textContent=r,t.style.display="none",hn().appendChild(t),function(){var e=hn();e.contains(t)&&e.removeChild(t)}}),[i,r]),i}({contextId:e,text:u}),d=function(t,e){var r=ot((function(){return function(t){var e,r,n,o=(e=t,function(t){return"["+t+'="'+e+'"]'}),i=(r="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:o(tn.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:r,dragging:"pointer-events: none;",dropAnimating:r}}),a=[(n="\n transition: "+yr.outOfTheWay+";
1\n ",{selector:o(en.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}}),i,{selector:o(rn.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:on(a,"always"),resting:on(a,"resting"),dragging:on(a,"dragging"),dropAnimating:on(a,"dropAnimating"),userCancel:on(a,"userCancel")}}(t)}),[t]),o=(0,n.useRef)(null),i=(0,n.useRef)(null),a=it((0,yt.default)((function(t){var e=i.current;e||Ot(!1),e.textContent=t})),[]),s=it((function(t){var e=o.current;e||Ot(!1),e.textContent=t}),[]);an((function(){(o.current||i.current)&&Ot(!1);var n=un(e),u=un(e);return o.current=n,i.current=u,n.setAttribute(Qr+"-always",t),u.setAttribute(Qr+"-dynamic",t),sn().appendChild(n),sn().appendChild(u),s(r.always),a(r.resting),function(){var t=function(t){var e=t.current;e||Ot(!1),sn().removeChild(e),t.current=null};t(o),t(i)}}),[e,s,a,r.always,r.resting,t]);var u=it((function(){return a(r.dragging)}),[a,r.dragging]),c=it((function(t){a("DROP"!==t?r.userCancel:r.dropAnimating)}),[a,r.dropAnimating,r.userCancel]),l=it((function(){i.current&&a(r.resting)}),[a,r.resting]);return ot((function(){return{dragging:u,dropping:c,resting:l}}),[u,c,l])}(e,a),y=it((function(t){qn(c).dispatch(t)}),[]),v=ot((function(){return m({publishWhileDragging:rr,updateDroppableScroll:or,updateDroppableIsEnabled:ir,updateDroppableIsCombineEnabled:ar,collectionStarting:nr},y)}),[y]),g=function(){var t=ot(pn,[]);return(0,n.useEffect)((function(){return function(){requestAnimationFrame(t.clean)}}),[t]),t}(),b=ot((function(){return function(t,e){var r=null,n=function(t){var e=t.registry,r=t.callbacks,n={additions:{},removals:{},modified:{}},o=null,i=function(){o||(r.collectionStarting(),o=requestAnimationFrame((function(){o=null;var t=n,i=t.additions,a=t.removals,s=t.modified,u=Object.keys(i).map((function(t){return e.draggable.getById(t).getDimension(It)})).sort((function(t,e){return t.descriptor.index-e.descriptor.index})),c=Object.keys(s).map((function(t){return{droppableId:t,scroll:e.droppable.getById(t).callbacks.getScrollWhileDragging()}})),l={additions:u,removals:Object.keys(a),modified:c};n={additions:{},removals:{},modified:{}},r.publish(l)})))};return{add:function(t){var e=t.descriptor.id;n.additions[e]=t,n.modified[t.descriptor.droppableId]=!0,n.removals[e]&&delete n.removals[e],i()},remove:function(t){var e=t.descriptor;n.removals[e.id]=!0,n.modified[e.droppableId]=!0,n.additions[e.id]&&delete n.additions[e.id],i()},stop:function(){o&&(cancelAnimationFrame(o),o=null,n={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:e.publishWhileDragging,collectionStarting:e.collectionStarting},registry:t}),o=function(e){r||Ot(!1);var o=r.critical.draggable;"ADDITION"===e.type&&Dr(t,o,e.value)&&n.add(e.value),"REMOVAL"===e.type&&Dr(t,o,e.value)&&n.remove(e.value)};return{updateDroppableIsEnabled:function(n,o){t.droppable.exists(n)||Ot(!1),r&&e.updateDroppableIsEnabled({id:n,isEnabled:o})},updateDroppableIsCombineEnabled:function(n,o){r&&(t.droppable.exists(n)||Ot(!1),e.updateDroppableIsCombineEnabled({id:n,isCombineEnabled:o}))},scrollDroppable:function(e,n){r&&t.droppable.getById(e).callbacks.scroll(n)},updateDroppableScroll:function(n,o){r&&(t.droppable.exists(n)||Ot(!1),e.updateDroppableScroll({id:n,newScroll:o}))},startPublishing:function(e){r&&Ot(!1);var n=t.draggable.getById(e.draggableId),i=t.droppable.getById(n.descriptor.droppableId),a={draggable:n.descriptor,droppable:i.descriptor},s=t.subscribe(o);return r={critical:a,unsubscribe:s},function(t){var e,r,n,o,i,a,s,u=t.critical,c=t.scrollOptions,l=t.registry,p=(e=_r(),r=Ir(),n=e.y,o=e.x,a=(i=Mr()).clientWidth,s=i.clientHeight,{frame:at({top:n,left:o,right:o+a,bottom:n+s}),scroll:{initial:e,current:e,max:r,diff:{value:It,displacement:It}}}),f=p.scroll.current,h=u.droppable,d=l.droppable.getAllByType(h.type).map((function(t){return t.callbacks.getDimensionAndWatchScroll(f,c)})),m=l.draggable.getAllByType(u.draggable.type).map((function(t){return t.getDimension(f)}));return{dimensions:{draggables:Jt(m),droppables:Xt(d)},critical:u,viewport:p}}({critical:a,registry:t,scrollOptions:e.scrollOptions})},stopPublishing:function(){if(r){n.stop();var e=r.critical.droppable;t.droppable.getAllByType(e.type).forEach((function(t){return t.callbacks.dragStopped()})),r.unsubscribe(),r=null}}}}(g,v)}),[g,v]),_=ot((function(){return Jr((0,s.Z)({scrollWindow:Nr,scrollDroppable:b.scrollDroppable},m({move:sr},y)))}),[b.scrollDroppable,y]),x=function(t){var e=(0,n.useRef)({}),r=(0,n.useRef)(null),o=(0,n.useRef)(null),i=(0,n.useRef)(!1),a=it((function(t,r){var n={id:t,focus:r};return e.current[t]=n,function(){var r=e.current;r[t]!==n&&delete r[t]}}),[]),s=it((function(e){var r=function(t,e){var r="["+tn.contextId+'="'+t+'"]',n=Yt(document.querySelectorAll(r));if(!n.length)return null;var o=Kt(n,(function(t){return t.getAttribute(tn.draggableId)===e}));return o&&ln(o)?o:null}(t,e);r&&r!==document.activeElement&&r.focus()}),[t]),u=it((function(t,e){r.current===t&&(r.current=e)}),[]),c=it((function(){o.current||i.current&&(o.current=requestAnimationFrame((function(){o.current=null;var t=r.current;t&&s(t)})))}),[s]),l=it((function(t){r.current=null;var e=document.activeElement;e&&e.getAttribute(tn.draggableId)===t&&(r.current=t)}),[]);return an((function(){return i.current=!0,function(){i.current=!1;var t=o.current;t&&cancelAnimationFrame(t)}}),[]),ot((function(){return{register:a,tryRecordFocus:l,tryRestoreFocusRecorded:c,tryShiftRecord:u}}),[a,l,c,u])}(e),O=ot((function(){return Tr({announce:f,autoScroller:_,dimensionMarshal:b,focusMarshal:x,getResponders:p,styleMarshal:d})}),[f,_,b,x,p,d]);c.current=O;var E=it((function(){var t=qn(c);"IDLE"!==t.getState().phase&&t.dispatch({type:"FLUSH",payload:null})}),[]),S=it((function(){var t=qn(c).getState();return t.isDragging||"DROP_ANIMATING"===t.phase}),[]);r(ot((function(){return{isDragging:S,tryAbort:E}
1}),[S,E]));var P=it((function(t){return zr(qn(c).getState(),t)}),[]),j=it((function(){return Be(qn(c).getState())}),[]),A=ot((function(){return{marshal:b,focus:x,contextId:e,canLift:P,isMovementAllowed:j,dragHandleUsageInstructionsId:h,registry:g}}),[e,b,h,x,P,j,g]);return function(t){var e=t.contextId,r=t.store,o=t.registry,i=t.customSensors,a=t.enableDefaultSensors,u=[].concat(a?Un:[],i||[]),c=(0,n.useState)((function(){return function(){var t=null;function e(){t||Ot(!1),t=null}return{isClaimed:function(){return Boolean(t)},isActive:function(e){return e===t},claim:function(e){t&&Ot(!1);var r={abandon:e};return t=r,r},release:e,tryAbandon:function(){t&&(t.abandon(),e())}}}()}))[0],l=it((function(t,e){t.isDragging&&!e.isDragging&&c.tryAbandon()}),[c]);an((function(){var t=r.getState();return r.subscribe((function(){var e=r.getState();l(t,e),t=e}))}),[c,r,l]),an((function(){return c.tryAbandon}),[c.tryAbandon]);for(var p=it((function(t){return Vn({lockAPI:c,registry:o,store:r,draggableId:t})}),[c,o,r]),f=it((function(t,n,i){return function(t){var e=t.lockAPI,r=t.contextId,n=t.store,o=t.registry,i=t.draggableId,a=t.forceSensorStop,u=t.sourceEvent;if(!Vn({lockAPI:e,store:n,registry:o,draggableId:i}))return null;var c=o.draggable.getById(i),l=function(t,e){var r="["+en.contextId+'="'+t+'"]',n=Kt(Yt(document.querySelectorAll(r)),(function(t){return t.getAttribute(en.id)===e}));return n&&ln(n)?n:null}(r,c.descriptor.id);if(!l)return null;if(u&&!c.options.canDragInteractiveElements&&Dn(l,u))return null;var p=e.claim(a||bt),f="PRE_DRAG";function h(){return c.options.shouldRespectForcePress}function d(){return e.isActive(p)}var m=function(t,e){Bn({expected:t,phase:f,isLockActive:d,shouldWarn:!0})&&n.dispatch(e())}.bind(null,"DRAGGING");function y(t){function r(){e.release(),f="COMPLETED"}function o(e,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),t.cleanup(),o.shouldBlockNextClick){var i=_t(window,[{eventName:"click",fn:Fn,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}r(),n.dispatch(hr({reason:e}))}return"PRE_DRAG"!==f&&(r(),"PRE_DRAG"!==f&&Ot(!1)),n.dispatch(function(t){return{type:"LIFT",payload:t}}(t.liftActionArgs)),f="DRAGGING",(0,s.Z)({isActive:function(){return Bn({expected:"DRAGGING",phase:f,isLockActive:d,shouldWarn:!1})},shouldRespectForcePress:h,drop:function(t){return o("DROP",t)},cancel:function(t){return o("CANCEL",t)}},t.actions)}return{isActive:function(){return Bn({expected:"PRE_DRAG",phase:f,isLockActive:d,shouldWarn:!1})},shouldRespectForcePress:h,fluidLift:function(t){var e=vt((function(t){m((function(){return sr({client:t})}))})),r=y({liftActionArgs:{id:i,clientSelection:t,movementMode:"FLUID"},cleanup:function(){return e.cancel()},actions:{move:e}});return(0,s.Z)({},r,{move:e})},snapLift:function(){var t={moveUp:function(){return m(ur)},moveRight:function(){return m(lr)},moveDown:function(){return m(cr)},moveLeft:function(){return m(pr)}};return y({liftActionArgs:{id:i,clientSelection:Ln(l),movementMode:"SNAP"},cleanup:bt,actions:t})},abort:function(){Bn({expected:"PRE_DRAG",phase:f,isLockActive:d,shouldWarn:!0})&&e.release()}}}({lockAPI:c,registry:o,contextId:e,store:r,draggableId:t,forceSensorStop:n,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[e,c,o,r]),h=it((function(t){return function(t,e){var r=function(t,e){var r,n=e.target;if(!((r=n)instanceof cn(r).Element))return null;var o=function(t){return"["+tn.contextId+'="'+t+'"]'}(t),i=Nn(n,o);return i&&ln(i)?i:null}(t,e);return r?r.getAttribute(tn.draggableId):null}(e,t)}),[e]),d=it((function(t){var e=o.draggable.findById(t);return e?e.options:null}),[o.draggable]),m=it((function(){c.isClaimed()&&(c.tryAbandon(),"IDLE"!==r.getState().phase&&r.dispatch({type:"FLUSH",payload:null}))}),[c,r]),y=it(c.isClaimed,[c]),v=ot((function(){return{canGetLock:p,tryGetLock:f,findClosestDraggableId:h,findOptionsForDraggable:d,tryReleaseLock:m,isLockClaimed:y}}),[p,f,h,d,m,y]),g=0;g<u.length;g++)u[g](v)}({contextId:e,store:O,registry:g,customSensors:i,enableDefaultSensors:!1!==t.enableDefaultSensors}),(0,n.useEffect)((function(){return E}),[E]),o().createElement(gn.Provider,{value:A},o().createElement(w,{context:fn,store:O},t.children))}var Gn=0;function Wn(){Gn=0,mn=0}function Zn(t){var e=ot((function(){return""+Gn++}),[]),r=t.dragHandleUsageInstructions||Ct;return o().createElement(Et,null,(function(n){return o().createElement($n,{nonce:t.nonce,contextId:e,setCallbacks:n,dragHandleUsageInstructions:r,enableDefaultSensors:t.enableDefaultSensors,sensors:t.sensors,onBeforeCapture:t.onBeforeCapture,onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragUpdate:t.onDragUpdate,onDragEnd:t.onDragEnd},t.children)}))}var Hn=function(t){return function(e){return t===e}},Kn=Hn("scroll"),Yn=Hn("auto"),Xn=(Hn("visible"),function(t,e){return e(t.overflowX)||e(t.overflowY)}),Jn=function t(e){return null==e||e===document.body||e===document.documentElement?null:function(t){var e=window.getComputedStyle(t),r={overflowX:e.overflowX,overflowY:e.overflowY};return Xn(r,Kn)||Xn(r,Yn)}(e)?e:t(e.parentElement)},Qn=function(t){return{x:t.scrollLeft,y:t.scrollTop}},to=function t(e){return!!e&&("fixed"===window.getComputedStyle(e).position||t(e.parentElement))},eo={passive:!1},ro={passive:!0},no=function(t){return t.shouldPublishImmediately?eo:ro};function oo(t){var e=(0,n.useContext)(t);return e||Ot(!1),e}var io=function(t){return t&&t.env.closestScrollable||null};function ao(){}var so={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},uo=o().memo((function(t){var e=(0,n.useRef)(null),r=it((function(){e.current&&(clearTimeout(e.current),e.current=null)}),[]),i=t.animate,a=t.onTransitionEnd,s=t.onClose,u=t.contextId,c=(0,n.use
1State)("open"===t.animate),l=c[0],p=c[1];(0,n.useEffect)((function(){return l?"open"!==i?(r(),p(!1),ao):e.current?ao:(e.current=setTimeout((function(){e.current=null,p(!1)})),r):ao}),[i,l,r]);var f=it((function(t){"height"===t.propertyName&&(a(),"close"===i&&s())}),[i,s,a]),h=function(t){var e=t.placeholder,r=t.animate,n=function(t){var e=t.placeholder;return t.isAnimatingOpenOnMount||"close"===t.animate?so:{height:e.client.borderBox.height,width:e.client.borderBox.width,margin:e.client.margin}}({isAnimatingOpenOnMount:t.isAnimatingOpenOnMount,placeholder:e,animate:r});return{display:e.display,boxSizing:"border-box",width:n.width,height:n.height,marginTop:n.margin.top,marginRight:n.margin.right,marginBottom:n.margin.bottom,marginLeft:n.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?yr.placeholder:null}}({isAnimatingOpenOnMount:l,animate:t.animate,placeholder:t.placeholder});return o().createElement(t.placeholder.tagName,{style:h,"data-rbd-placeholder-context-id":u,onTransitionEnd:f,ref:t.innerRef})})),co=o().createContext(null),lo=function(t){function e(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(e=t.call.apply(t,[this].concat(n))||this).state={isVisible:Boolean(e.props.on),data:e.props.on,animate:e.props.shouldAnimate&&e.props.on?"open":"none"},e.onClose=function(){"close"===e.state.animate&&e.setState({isVisible:!1})},e}return a(e,t),e.getDerivedStateFromProps=function(t,e){return t.shouldAnimate?t.on?{isVisible:!0,data:t.on,animate:"open"}:e.isVisible?{isVisible:!0,data:e.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(t.on),data:t.on,animate:"none"}},e.prototype.render=function(){if(!this.state.isVisible)return null;var t={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(t)},e}(o().PureComponent),po=function(t,e){return e?yr.drop(e.duration):t?yr.snap:yr.fluid},fo=function(t,e){return t?e?0:.7:null};function ho(t){t.preventDefault()}var mo=function(t,e){return t===e},yo=function(t){var e=t.combine,r=t.destination;return r?r.droppableId:e?e.droppableId:null};function vo(t){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:t,combineWith:null}}var go={mapped:{type:"SECONDARY",offset:It,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:vo(null)}},bo=Q((function(){var t,e,r,n=(t=(0,yt.default)((function(t,e){return{x:t,y:e}})),e=(0,yt.default)((function(t,e,r,n,o){return{isDragging:!0,isClone:e,isDropAnimating:Boolean(o),dropAnimation:o,mode:t,draggingOver:r,combineWith:n,combineTargetFor:null}})),r=(0,yt.default)((function(t,r,n,o,i,a,s){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:r,offset:t,dimension:n,forceShouldAnimate:s,snapshot:e(r,o,i,a,null)}}})),function(n,o){if(n.isDragging){if(n.critical.draggable.id!==o.draggableId)return null;var i=n.current.client.offset,a=n.dimensions.draggables[o.draggableId],s=Fe(n.impact),u=(l=n.impact).at&&"COMBINE"===l.at.type?l.at.combine.draggableId:null,c=n.forceShouldAnimate;return r(t(i.x,i.y),n.movementMode,a,o.isClone,s,u,c)}var l;if("DROP_ANIMATING"===n.phase){var p=n.completed;if(p.result.draggableId!==o.draggableId)return null;var f=o.isClone,h=n.dimensions.draggables[o.draggableId],d=p.result,m=d.mode,y=yo(d),v=function(t){return t.combine?t.combine.draggableId:null}(d),g={duration:n.dropDuration,curve:dr,moveTo:n.newHomeClientOffset,opacity:v?0:null,scale:v?.75:null};return{mapped:{type:"DRAGGING",offset:n.newHomeClientOffset,dimension:h,dropping:g,draggingOver:y,combineWith:v,mode:m,forceShouldAnimate:null,snapshot:e(m,f,y,v,g)}}}return null}),o=function(){var t=(0,yt.default)((function(t,e){return{x:t,y:e}})),e=(0,yt.default)(vo),r=(0,yt.default)((function(t,r,n){return void 0===r&&(r=null),{mapped:{type:"SECONDARY",offset:t,combineTargetFor:r,shouldAnimateDisplacement:n,snapshot:e(r)}}})),n=function(t){return t?r(It,t,!0):null},o=function(e,o,i,a){var s=i.displaced.visible[e],u=Boolean(a.inVirtualList&&a.effected[e]),c=ne(i),l=c&&c.draggableId===e?o:null;
1if(!s){if(!u)return n(l);if(i.displaced.invisible[e])return null;var p=zt(a.displacedBy.point),f=t(p.x,p.y);return r(f,l,!0)}if(u)return n(l);var h=i.displacedBy.point,d=t(h.x,h.y);return r(d,l,s.shouldAnimate)};return function(t,e){if(t.isDragging)return t.critical.draggable.id===e.draggableId?null:o(e.draggableId,t.critical.draggable.id,t.impact,t.afterCritical);if("DROP_ANIMATING"===t.phase){var r=t.completed;return r.result.draggableId===e.draggableId?null:o(e.draggableId,r.result.draggableId,r.impact,r.afterCritical)}return null}}();return function(t,e){return n(t,e)||o(t,e)||go}}),{dropAnimationFinished:function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}}},null,{context:fn,pure:!0,areStatePropsEqual:mo})((function(t){var e=(0,n.useRef)(null),r=it((function(t){e.current=t}),[]),o=it((function(){return e.current}),[]),i=oo(gn),a=i.contextId,s=i.dragHandleUsageInstructionsId,u=i.registry,c=oo(co),l=c.type,p=c.droppableId,f=ot((function(){return{id:t.draggableId,index:t.index,type:l,droppableId:p}}),[t.draggableId,t.index,l,p]),h=t.children,d=t.draggableId,m=t.isEnabled,y=t.shouldRespectForcePress,v=t.canDragInteractiveElements,g=t.isClone,b=t.mapped,_=t.dropAnimationFinished;g||function(t){var e=vn("draggable"),r=t.descriptor,o=t.registry,i=t.getDraggableRef,a=t.canDragInteractiveElements,s=t.shouldRespectForcePress,u=t.isEnabled,c=ot((function(){return{canDragInteractiveElements:a,shouldRespectForcePress:s,isEnabled:u}}),[a,u,s]),l=it((function(t){var e=i();return e||Ot(!1),function(t,e,r){void 0===r&&(r=It);var n=window.getComputedStyle(e),o=e.getBoundingClientRect(),i=dt(o,n),a=ht(i,r);return{descriptor:t,placeholder:{client:i,tagName:e.tagName.toLowerCase(),display:n.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(r,e,t)}),[r,i]),p=ot((function(){return{uniqueId:e,descriptor:r,options:c,getDimension:l}}),[r,l,c,e]),f=(0,n.useRef)(p),h=(0,n.useRef)(!0);an((function(){return o.draggable.register(f.current),function(){return o.draggable.unregister(f.current)}}),[o.draggable]),an((function(){if(h.current)h.current=!1;else{var t=f.current;f.current=p,o.draggable.update(p,t)}}),[p,o.draggable])}(ot((function(){return{descriptor:f,registry:u,getDraggableRef:o,canDragInteractiveElements:v,shouldRespectForcePress:y,isEnabled:m}}),[f,u,o,v,y,m]));var x=ot((function(){return m?{tabIndex:0,role:"button","aria-describedby":s,"data-rbd-drag-handle-draggable-id":d,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:ho}:null}),[a,s,d,m]),w=it((function(t){"DRAGGING"===b.type&&b.dropping&&"transform"===t.propertyName&&_()}),[_,b]),O=ot((function(){var t=function(t){return"DRAGGING"===t.type?function(t){var e=t.dimension.client,r=t.offset,n=t.combineWith,o=t.dropping,i=Boolean(n),a=function(t){return null!=t.forceShouldAnimate?t.forceShouldAnimate:"SNAP"===t.mode}(t),s=Boolean(o),u=s?function(t,e){var r=vr(t);return r?e?r+" scale(0.75)":r:null}(r,i):gr(r);return{position:"fixed",top:e.marginBox.top,left:e.marginBox.left,boxSizing:"border-box",width:e.borderBox.width,height:e.borderBox.height,transition:po(a,o),transform:u,opacity:fo(i,s),zIndex:s?4500:5e3,pointerEvents:"none"}}(t):{transform:gr((e=t).offset),transition:e.shouldAnimateDisplacement?null:"none"};var e}(b),e="DRAGGING"===b.type&&b.dropping?w:null;return{innerRef:r,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":d,style:t,onTransitionEnd:e},dragHandleProps:x}}),[a,x,d,b,w,r]),E=ot((function(){return{draggableId:f.id,type:f.type,source:{index:f.index,droppableId:f.droppableId}}}),[f.droppableId,f.id,f.index,f.type]);return h(O,b.snapshot,E)}));function _o(t){return oo(co).isUsingCloneFor!==t.draggableId||t.isClone?o().createElement(bo,t):null}function xo(t){var e="boolean"!=typeof t.isDragDisabled||!t.isDragDisabled,r=Boolean(t.disableInteractiveElementBlocking),n=Boolean(t.shouldRespectForcePress);return o().createElement(_o,(0,s.Z)({},t,{isClone:!1,isEnabled:e,canDragInteractiveElements:r,shouldRespectForcePress:n}))}var wo=function(t,e){return t===e.droppable.type},Oo=function(t,e){return e.draggables[t.draggable.id]},Eo={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombine
vendor: 4,340 bytes, line 1
1Enabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||Ot(!1),document.body}},So=Q((function(){var t={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},e=(0,s.Z)({},t,{shouldAnimatePlaceholder:!1}),r=(0,yt.default)((function(t){return{draggableId:t.id,type:t.type,source:{index:t.index,droppableId:t.droppableId}}})),n=(0,yt.default)((function(n,o,i,a,s,u){var c=s.descriptor.id;if(s.descriptor.droppableId===n){var l=u?{render:u,dragging:r(s.descriptor)}:null,p={isDraggingOver:i,draggingOverWith:i?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:p,useClone:l}}if(!o)return e;if(!a)return t;var f={isDraggingOver:i,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:f,useClone:null}}));return function(r,o){var i=o.droppableId,a=o.type,s=!o.isDropDisabled,u=o.renderClone;if(r.isDragging){var c=r.critical;if(!wo(a,c))return e;var l=Oo(c,r.dimensions),p=Fe(r.impact)===i;return n(i,s,p,p,l,u)}if("DROP_ANIMATING"===r.phase){var f=r.completed;if(!wo(a,f.critical))return e;var h=Oo(f.critical,r.dimensions);return n(i,s,yo(f.result)===i,Fe(f.impact)===i,h,u)}if("IDLE"===r.phase&&r.completed&&!r.shouldFlush){var d=r.completed;if(!wo(a,d.critical))return e;var m=Fe(d.impact)===i,y=Boolean(d.impact.at&&"COMBINE"===d.impact.at.type),v=d.critical.droppable.id===i;return m?y?t:e:v?t:e}return e}}),{updateViewportMaxScroll:function(t){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:t}}},null,{context:fn,pure:!0,areStatePropsEqual:mo})((function(t){var e=(0,n.useContext)(gn);e||Ot(!1);var r=e.contextId,i=e.isMovementAllowed,a=(0,n.useRef)(null),s=(0,n.useRef)(null),u=t.children,c=t.droppableId,l=t.type,p=t.mode,f=t.direction,h=t.ignoreContainerClipping,d=t.isDropDisabled,m=t.isCombineEnabled,y=t.snapshot,v=t.useClone,g=t.updateViewportMaxScroll,b=t.getContainerForClone,_=it((function(){return a.current}),[]),x=it((function(t){a.current=t}),[]),w=(it((function(){return s.current}),[]),it((function(t){s.current=t}),[])),O=it((function(){i()&&g({maxScroll:Ir()})}),[i,g]);!function(t){var e=(0,n.useRef)(null),r=oo(gn),o=vn("droppable"),i=r.registry,a=r.marshal,s=bn(t),u=ot((function(){return{id:t.droppableId,type:t.type,mode:t.mode}}),[t.droppableId,t.mode,t.type]),c=(0,n.useRef)(u),l=ot((function(){return(0,yt.default)((function(t,r){e.current||Ot(!1);var n={x:t,y:r};a.updateDroppableScroll(u.id,n)}))}),[u.id,a]),p=it((function(){var t=e.current;return t&&t.env.closestScrollable?Qn(t.env.closestScrollable):It}),[]),f=it((function(){var t=p();l(t.x,t.y)}),[p,l]),h=ot((function(){return vt(f)}),[f]),d=it((function(){var t=e.current,r=io(t);t&&r||Ot(!1),t.scrollOptions.shouldPublishImmediately?f():h()}),[h,f]),m=it((function(t,n){e.current&&Ot(!1);var o=s.current,i=o.getDroppableRef();i||Ot(!1);var a=function(t){return{closestScrollable:Jn(t),isFixedOnPage:to(t)}}(i),c={ref:i,descriptor:u,env:a,scrollOptions:n};e.current=c;var l=function(t){var e=t.ref,r=t.descriptor,n=t.env,o=t.windowScroll,i=t.direction,a=t.isDropDisabled,s=t.isCombineEnabled,u=t.shouldClipSubject,c=n.closestScrollable,l=function(t,e){var r=mt(t);if(!e)return r;if(t!==e)return r;var n=r.paddingBox.top-e.scrollTop,o=r.paddingBox.left-e.scrollLeft,i=n+e.scrollHeight,a=o+e.scrollWidth,s=st({top:n,right:a,bottom:i,left:o},r.border);return lt({borderBox:s,margin:r.margin,border:r.border,padding:r.padding})}(e,c),p=ht(l,o),f=function(){if(!c)return null;var t=mt(c),e={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:t,page:ht(t,o),scroll:Qn(c),scrollSize:e,shouldClipSubject:u}}(),h=function(t){var e=t.descriptor,r=t.isEnabled,n=t.isCombineEnabled,o=t.isFixedOnPage,i=t.direction,a=t.client,s=t.page,u=t.closest,c=function(){if(!u)return null;var t=u.scrollSize,e=u.client,r=kr({scrollHeight:t.scrollHeight,scrollWidth:t.scrollWidth,height:e.paddingBox.height,width:e.paddingBox.width});return{pageMarginBox:u.page.marginBox,frameClient:e,scrollSize:t,shouldClipSubject:u.shouldClipSubject,scroll:{initial:u.scroll,current:u.scroll,max:r,diff:{value:It,displacement:It}}}}(),l="vertical"===i?fe:he;
vendor: 1,605 bytes, line 1
1return{descriptor:e,isCombineEnabled:n,isFixedOnPage:o,axis:l,isEnabled:r,client:a,page:s,frame:c,subject:Gt({page:s,withPlaceholder:null,axis:l,frame:c})}}({descriptor:r,isEnabled:!a,isCombineEnabled:s,isFixedOnPage:n.isFixedOnPage,direction:i,client:l,page:p,closest:f});return h}({ref:i,descriptor:u,env:a,windowScroll:t,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),p=a.closestScrollable;return p&&(p.setAttribute(nn.contextId,r.contextId),p.addEventListener("scroll",d,no(c.scrollOptions))),l}),[r.contextId,u,d,s]),y=it((function(){var t=e.current,r=io(t);return t&&r||Ot(!1),Qn(r)}),[]),v=it((function(){var t=e.current;t||Ot(!1);var r=io(t);e.current=null,r&&(h.cancel(),r.removeAttribute(nn.contextId),r.removeEventListener("scroll",d,no(t.scrollOptions)))}),[d,h]),g=it((function(t){var r=e.current;r||Ot(!1);var n=io(r);n||Ot(!1),n.scrollTop+=t.y,n.scrollLeft+=t.x}),[]),b=ot((function(){return{getDimensionAndWatchScroll:m,getScrollWhileDragging:y,dragStopped:v,scroll:g}}),[v,m,y,g]),_=ot((function(){return{uniqueId:o,descriptor:u,callbacks:b}}),[b,u,o]);an((function(){return c.current=_.descriptor,i.droppable.register(_),function(){e.current&&v(),i.droppable.unregister(_)}}),[b,u,v,_,a,i.droppable]),an((function(){e.current&&a.updateDroppableIsEnabled(c.current.id,!t.isDropDisabled)}),[t.isDropDisabled,a]),an((function(){e.current&&a.updateDroppableIsCombineEnabled(c.current.id,t.isCombineEnabled)}),[t.isCombineEnabled,a])}({droppableId:c,type:l,mode:p,direction:f,isDropDisabled:d,isCombine
1Enabled:m,ignoreContainerClipping:h,getDroppableRef:_});var E=o().createElement(lo,{on:t.placeholder,shouldAnimate:t.shouldAnimatePlaceholder},(function(t){var e=t.onClose,n=t.data,i=t.animate;return o().createElement(uo,{placeholder:n,onClose:e,innerRef:w,animate:i,contextId:r,onTransitionEnd:O})})),S=ot((function(){return{innerRef:x,placeholder:E,droppableProps:{"data-rbd-droppable-id":c,"data-rbd-droppable-context-id":r}}}),[r,c,E,x]),P=v?v.dragging.draggableId:null,j=ot((function(){return{droppableId:c,type:l,isUsingCloneFor:P}}),[c,P,l]);return o().createElement(co.Provider,{value:j},u(S,y),function(){if(!v)return null;var t=v.dragging,e=v.render,r=o().createElement(_o,{draggableId:t.draggableId,index:t.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(r,n){return e(r,n,t)}));return rt().createPortal(r,b())}())}));So.defaultProps=Eo},69590:t=>{var e="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var s,u,c,l;if(Array.isArray(t)){if((s=t.length)!=a.length)return!1;for(u=s;0!=u--;)if(!i(t[u],a[u]))return!1;return!0}if(r&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(l=t.entries();!(u=l.next()).done;)if(!a.has(u.value[0]))return!1;for(l=t.entries();!(u=l.next()).done;)if(!i(u.value[1],a.get(u.value[0])))return!1;return!0}if(n&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(l=t.entries();!(u=l.next()).done;)if(!a.has(u.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((s=t.length)!=a.length)return!1;for(u=s;0!=u--;)if(t[u]!==a[u])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf&&"function"==typeof t.valueOf&&"function"==typeof a.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString&&"function"==typeof t.toString&&"function"==typeof a.toString)return t.toString()===a.toString();if((s=(c=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(u=s;0!=u--;)if(!Object.prototype.hasOwnProperty.call(a,c[u]))return!1;if(e&&t instanceof Element)return!1;for(u=s;0!=u--;)if(("_owner"!==c[u]&&"__v"!==c[u]&&"__o"!==c[u]||!t.$$typeof)&&!i(t[c[u]],a[c[u]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,e){try{return i(t,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},69921:(t,e)=>{"use strict";var r=60103,n=60106,o=60107,i=60108,a=60114,s=60109,u=60110,c=60112,l=60113,p=60120,f=60115,h=60116;if("function"==typeof Symbol&&Symbol.for){var d=Symbol.for;r=d("react.element"),n=d("react.portal"),o=d("react.fragment"),i=d("react.strict_mode"),a=d("react.profiler"),s=d("react.provider"),u=d("react.context"),c=d("react.forward_ref"),l=d("react.suspense"),p=d("react.suspense_list"),f=d("react.memo"),h=d("react.lazy"),d("react.block"),d("react.server.block"),d("react.fundamental"),d("react.debug_trace_mode"),d("react.legacy_hidden")}e.isContextConsumer=function(t){return function(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case o:case a:case i:case l:case p:return t;default:switch(t=t&&t.$$typeof){case u:case c:case h:case f:case s:return t;default:return e}}case n:return e}}}(t)===u}},59864:(t,e,r)=>{"use strict";t.exports=r(69921)},85136:(t,e,r)=>{"use strict";r.r(e),r.d(e,{AttributionControl:()=>L,FullscreenControl:()=>R,GeolocateControl:()=>N,Layer:()=>W,Map:()=>P,MapProvider:()=>a,Marker:()=>k,NavigationControl:()=>F,Popup:()=>I,ScaleControl:()=>V,Source:()=>$,default:()=>P,useControl:()=>D,useMap:()=>s});var n=r(8156);const i=n.createContext(null),a=t=>{const[e,r]=(0,n.useState)({}),o=(0,n.useCallback)(((t,e="default")=>{r((r=>{if("current"===e)throw new Error("'current' cannot be used as map id");if(r[e])throw new Error(`Multiple maps with the same id: ${e}`);return{...r,[e]:t}}))}),[]),a=(0,n.useCallback)(((t="default")=>{r((e=>{if(e[t]){const r={...e};return delete r[t],r}return e}))}),[]);return n.createElement(i.Provider,{value:{maps:e,onMapMount:o,onMapUnmount:a}},t.children)};function s(){var t;const e=null===(t=(0,n.useContext)(i))||void 0===t?void 0:t.maps,r=(0,n.useContext)(O);return(0,n.useMemo)((()=>({...e,current:null==r?void 0:r.map})),[e,r])}function u(t){return{longitude:t.center.lng,latitude:t.center.lat,zoom:t.zoom,pitch:t.pitch,bearing:t.bearing,padding:t.padding}}function c(t,e){const r=e.viewState||e;let n=!1;if("longitude"in r&&"latitude"in r){const e=t.center;t.center=new e.constructor(r.longitude,r.latitude),n=n||e!==t.center}if("zoom"in r){const e=t.zoom;t.zoom=r.zoom,n=n||e!==t.zoom}if("bearing"in r){const e=t.bearing;t.bearing=r.bearing,n=n||e!==t.bearing}if("pitch"in r){const e=t.pitch;t.pitch=r.pitch,n=n||e!==t.pitch}return r.padding&&!t.isPaddingEqual(r.padding)&&(n=!0,t.padding=r.padding),n}const l=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function p(t){if(!t)return null;if("string"==typeof t)return t;if("toJS"in t&&(t=t.toJS()),!t.layers)return t;const e={};
1for(const n of t.layers)e[n.id]=n;const r=t.layers.map((t=>{const r=e[t.ref];let n=null;if("interactive"in t&&(n={...t},delete n.interactive),r){n=n||{...t},delete n.ref;for(const t of l)t in r&&(n[t]=r[t])}return n||t}));return{...t,layers:r}}function f(t,e){if(t===e)return!0;if(!t||!e)return!1;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(!f(t[r],e[r]))return!1;return!0}if(Array.isArray(e))return!1;if("object"==typeof t&&"object"==typeof e){const r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(const o of r){if(!e.hasOwnProperty(o))return!1;if(!f(t[o],e[o]))return!1}return!0}return!1}const h={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},d={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},m={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},y=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],v=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class g{constructor(t,e,r){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=t=>{const e=this.props[m[t.type]];e&&e(t)},this._onPointerEvent=t=>{"mousemove"!==t.type&&"mouseout"!==t.type||this._updateHover(t);const e=this.props[h[t.type]];e&&(this.props.interactiveLayerIds&&"mouseover"!==t.type&&"mouseout"!==t.type&&(t.features=this._hoveredFeatures||this._queryRenderedFeatures(t.point)),e(t),delete t.features)},this._onCameraEvent=t=>{if(!this._internalUpdate){const e=this.props[d[t.type]];e&&e(t)}t.type in this._deferredEvents&&(this._deferredEvents[t.type]=!1)},this._MapClass=t,this.props=e,this._initialize(r)}get map(){return this._map}get transform(){return this._renderTransform}setProps(t){const e=this.props;this.props=t;const r=this._updateSettings(t,e);r&&this._createShadowTransform(this._map);const n=this._updateSize(t),o=this._updateViewState(t,!0);this._updateStyle(t,e),this._updateStyleComponents(t,e),this._updateHandlers(t,e),(r||n||o&&!this._map.isMoving())&&this.redraw()}static reuse(t,e){const r=g.savedMaps.pop();if(!r)return null;const n=r.map,o=n.getContainer();for(e.className=o.className;o.childNodes.length>0;)e.appendChild(o.childNodes[0]);n._container=e;const i=n._resizeObserver;i&&(i.disconnect(),i.observe(e)),r.setProps({...t,styleDiffing:!1}),n.resize();const{initialViewState:a}=t;return a&&(a.bounds?n.fitBounds(a.bounds,{...a.fitBoundsOptions,duration:0}):r._updateViewState(a,!1)),n.isStyleLoaded()?n.fire("load"):n.once("styledata",(()=>n.fire("load"))),n._update(),r}_initialize(t){const{props:e}=this,r={...e,...e.initialViewState,accessToken:e.mapboxAccessToken||b()||null,container:t,style:p(e.mapStyle)},n=r.initialViewState||r.viewState||r;if(Object.assign(r,{center:[n.longitude||0,n.latitude||0],zoom:n.zoom||0,pitch:n.pitch||0,bearing:n.bearing||0}),e.gl){const t=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=t,e.gl)}const o=new this._MapClass(r);n.padding&&o.setPadding(n.padding),e.cursor&&(o.getCanvas().style.cursor=e.cursor),this._createShadowTransform(o);const i=o._render;o._render=t=>{this._inRender=!0,i.call(o,t),this._inRender=!1};const a=o._renderTaskQueue.run;o._renderTaskQueue.run=t=>{a.call(o._renderTaskQueue,t),this._onBeforeRepaint()},o.on("render",(()=>this._onAfterRepaint()));const s=o.fire;o.fire=this._fireEvent.bind(this,s),o.on("resize",(()=>{this._renderTransform.resize(o.transform.width,o.transform.height)})),o.on("styledata",(()=>this._updateStyleComponents(this.props,{}))),o.on("sourcedata",(()=>this._updateStyleComponents(this.props,{})));for(const u in h)o.on(u,this._onPointerEvent);for(const u in d)o.on(u,this._onCameraEvent);for(const u in m)o.on(u,this._onEvent);this._map=o}recycle(){const t=this.map.getContainer().querySelector("[mapboxgl-children]");null==t||t.remove(),g.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const t=this._map;!this._inRender&&t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_createShadowTransform(t){const e=function(t){const e=t.clone();return e.pixelsToGLUnits=t.pixelsToGLUnits,e}(t.transform);t.painter.transform=e,this._renderTransform=e}_updateSize(t){const{viewState:e}=t;if(e){const t=this._map;if(e.width!==t.transform.width||e.height!==t.transform.height)return t.resize(),!0}return!1}_updateViewState(t,e){if(this._internalUpdate)return!1;const r=this._map,n=this._renderTransform,{zoom:o,pitch:i,bearing:a}=n,s=r.isMoving();s&&(n.cameraElevationReference="sea");const l=c(n,{...u(r.transform),...t});if(s&&(n.cameraElevationReference="ground"),l&&e){const t=this._deferredEvents;t.move=!0,t.zoom||(t.zoom=o!==n.zoom),t.rotate||(t.rotate=a!==n.bearing),t.pitch||(t.pitch=i!==n.pitch)}return s||c(r.transform,t),l}_updateSettings(t,e){const r=this._map;let n=!1;
1for(const o of y)o in t&&!f(t[o],e[o])&&(n=!0,r[`set${o[0].toUpperCase()}${o.slice(1)}`](t[o]));return n}_updateStyle(t,e){if(t.cursor!==e.cursor&&(this._map.getCanvas().style.cursor=t.cursor),t.mapStyle!==e.mapStyle){const e={diff:t.styleDiffing};return"localIdeographFontFamily"in t&&(e.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(p(t.mapStyle),e),!0}return!1}_updateStyleComponents(t,e){const r=this._map;let n=!1;return r.style.loaded()&&("light"in t&&!f(t.light,e.light)&&(n=!0,r.setLight(t.light)),"fog"in t&&!f(t.fog,e.fog)&&(n=!0,r.setFog(t.fog)),"terrain"in t&&!f(t.terrain,e.terrain)&&(t.terrain&&!r.getSource(t.terrain.source)||(n=!0,r.setTerrain(t.terrain)))),n}_updateHandlers(t,e){const r=this._map;let n=!1;for(const o of v){const i=t[o];f(i,e[o])||(n=!0,i?r[o].enable(i):r[o].disable())}return n}_queryRenderedFeatures(t){const e=this._map,{interactiveLayerIds:r=[]}=this.props;try{return e.queryRenderedFeatures(t,{layers:r.filter(e.getLayer.bind(e))})}catch(t){return[]}}_updateHover(t){var e;const{props:r}=this;if(r.interactiveLayerIds&&(r.onMouseMove||r.onMouseEnter||r.onMouseLeave)){const r=t.type,n=(null===(e=this._hoveredFeatures)||void 0===e?void 0:e.length)>0,o=this._queryRenderedFeatures(t.point),i=o.length>0;!i&&n&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=o,i&&!n&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=r}else this._hoveredFeatures=null}_fireEvent(t,e,r){const n=this._map,o=n.transform,i="string"==typeof e?e:e.type;return"move"===i&&this._updateViewState(this.props,!1),i in d&&("object"==typeof e&&(e.viewState=u(o)),this._map.isMoving())?(n.transform=this._renderTransform,t.call(n,e,r),n.transform=o,n):(t.call(n,e,r),n)}_onBeforeRepaint(){const t=this._map;this._internalUpdate=!0;for(const r in this._deferredEvents)this._deferredEvents[r]&&t.fire(r);this._internalUpdate=!1;const e=this._map.transform;this._map.transform=this._renderTransform,this._onAfterRepaint=()=>{this._map.transform=e}}}function b(){let t=null;if("undefined"!=typeof location){const e=/access_token=([^&\/]*)/.exec(location.search);t=e&&e[1]}try{t=t||o.env.MapboxAccessToken}catch(t){}try{t=t||o.env.REACT_APP_MAPBOX_ACCESS_TOKEN}catch(t){}return t}g.savedMaps=[];const _=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"],x="undefined"!=typeof document?n.useLayoutEffect:n.useEffect,w=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"],O=n.createContext(null),E={minZoom:0,maxZoom:22,minPitch:0,maxPitch:60,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,mapStyle:{version:8,sources:{},layers:[]},styleDiffing:!0,projection:"mercator",renderWorldCopies:!0,onError:t=>console.error(t.error),RTLTextPlugin:"https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"},S=(0,n.forwardRef)(((t,e)=>{const o=(0,n.useContext)(i),[a,s]=(0,n.useState)(null),u=(0,n.useRef)(),{current:c}=(0,n.useRef)({mapLib:null,map:null});(0,n.useEffect)((()=>{const e=t.mapLib;let n,i=!0;return Promise.resolve(e||Promise.resolve().then(r.t.bind(r,12739,23))).then((e=>{if(i){if(e.Map||(e=e.default),!e||!e.Map)throw new Error("Invalid mapLib");if(function(t,e){for(const r of w)r in e&&(t[r]=e[r]);e.RTLTextPlugin&&t.getRTLTextPluginStatus&&"unavailable"===t.getRTLTextPluginStatus()&&t.setRTLTextPlugin(e.RTLTextPlugin,(t=>{t&&console.error(t)}),!1)}(e,t),e.supported&&!e.supported(t))throw new Error("Map is not supported by this browser");t.reuseMaps&&(n=g.reuse(t,u.current)),n||(n=new g(e.Map,t,u.current)),c.map=function(t,e){if(!t)return null;const r=t.map,n={getMap:()=>r,getCenter:()=>t.transform.center,getZoom:()=>t.transform.zoom,getBearing:()=>t.transform.bearing,getPitch:()=>t.transform.pitch,getPadding:()=>t.transform.padding,getBounds:()=>t.transform.getBounds(),project:r=>t.transform.locationPoint(e.LngLat.convert(r)),unproject:r=>t.transform.pointLocation(e.Point.convert(r)),queryTerrainElevation:(e,n)=>{const o=r.transform;r.transform=t.transform;const i=r.queryTerrainElevation(e,n);return r.transform=o,i}};for(const o of function(t){const e=new Set;let r=t;for(;r;){for(const n of Object.getOwnPropertyNames(r))"_"!==n[0]&&"function"==typeof t[n]&&"fire"!==n&&"setEventedParent"!==n&&e.add(n);r=Object.getPrototypeOf(r)}return Array.from(e)}(r))o in n||_.includes(o)||(n[o]=r[o].bind(r));return n}(n,e),c.mapLib=e,s(n),null==o||o.onMapMount(c.map,t.id)}})).catch((e=>{t.onError({type:"error",target:null,originalEvent:null,error:e})})),()=>{i=!1,n&&(null==o||o.onMapUnmount(t.id),t.reuseMaps?n.recycle():n.destroy())}}),[]),x((()=>{a&&a.setProps(t)})),(0,n.useImperativeHandle)(e,(()=>c.map),[a]);const l=(0,n.useMemo)((()=>({position:"relative",width:"100%",height:"100%",...t.style})),[t.style]);return n.createElement("div",{id:t.id,ref:u,style:l},a&&n.createElement(O.Provider,{value:c},n.createElement("div",{"mapboxgl-children":"",style:{height:"100%"}},t.children)))}));S.displayName="Map",S.defaultProps=E;const P=S;var j=r(47111);const A=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function C(t,e){if(!t||!e)return;const r=t.style;
1for(const n in e){const t=e[n];Number.isFinite(t)&&!A.test(n)?r[n]=`${t}px`:r[n]=t}}function T(t){const{map:e,mapLib:r}=(0,n.useContext)(O),o=(0,n.useRef)({props:t});o.current.props=t;const i=(0,n.useMemo)((()=>{let e=!1;n.Children.forEach(t.children,(t=>{t&&(e=!0)}));const a={...t,element:e?document.createElement("div"):null},s=new r.Marker(a).setLngLat([t.longitude,t.latitude]);return s.getElement().addEventListener("click",(t=>{var e,r;null===(r=(e=o.current.props).onClick)||void 0===r||r.call(e,{type:"click",target:s,originalEvent:t})})),s.on("dragstart",(t=>{var e,r;const n=t;n.lngLat=i.getLngLat(),null===(r=(e=o.current.props).onDragStart)||void 0===r||r.call(e,n)})),s.on("drag",(t=>{var e,r;const n=t;n.lngLat=i.getLngLat(),null===(r=(e=o.current.props).onDrag)||void 0===r||r.call(e,n)})),s.on("dragend",(t=>{var e,r;const n=t;n.lngLat=i.getLngLat(),null===(r=(e=o.current.props).onDragEnd)||void 0===r||r.call(e,n)})),s}),[]);return(0,n.useEffect)((()=>(i.addTo(e.getMap()),()=>{i.remove()})),[]),(0,n.useEffect)((()=>{C(i.getElement(),t.style)}),[t.style]),i.getLngLat().lng===t.longitude&&i.getLngLat().lat===t.latitude||i.setLngLat([t.longitude,t.latitude]),t.offset&&!function(t,e){const r=Array.isArray(t)?t[0]:t?t.x:0,n=Array.isArray(t)?t[1]:t?t.y:0,o=Array.isArray(e)?e[0]:e?e.x:0,i=Array.isArray(e)?e[1]:e?e.y:0;return r===o&&n===i}(i.getOffset(),t.offset)&&i.setOffset(t.offset),i.isDraggable()!==t.draggable&&i.setDraggable(t.draggable),i.getRotation()!==t.rotation&&i.setRotation(t.rotation),i.getRotationAlignment()!==t.rotationAlignment&&i.setRotationAlignment(t.rotationAlignment),i.getPitchAlignment()!==t.pitchAlignment&&i.setPitchAlignment(t.pitchAlignment),i.getPopup()!==t.popup&&i.setPopup(t.popup),(0,j.createPortal)(t.children,i.getElement())}T.defaultProps={draggable:!1,popup:null,rotation:0,rotationAlignment:"auto",pitchAlignment:"auto"};const k=n.memo(T);function M(t){return new Set(t?t.trim().split(/\s+/):[])}const I=n.memo((function(t){const{map:e,mapLib:r}=(0,n.useContext)(O),o=(0,n.useMemo)((()=>document.createElement("div")),[]),i=(0,n.useRef)({props:t});i.current.props=t;const a=(0,n.useMemo)((()=>{const e={...t},n=new r.Popup(e).setLngLat([t.longitude,t.latitude]);return n.once("open",(t=>{var e,r;null===(r=(e=i.current.props).onOpen)||void 0===r||r.call(e,t)})),n}),[]);if((0,n.useEffect)((()=>{const t=t=>{var e,r;null===(r=(e=i.current.props).onClose)||void 0===r||r.call(e,t)};return a.on("close",t),a.setDOMContent(o).addTo(e.getMap()),()=>{a.off("close",t),a.isOpen()&&a.remove()}}),[]),(0,n.useEffect)((()=>{C(a.getElement(),t.style)}),[t.style]),a.isOpen()&&(a.getLngLat().lng===t.longitude&&a.getLngLat().lat===t.latitude||a.setLngLat([t.longitude,t.latitude]),t.offset&&!f(a.options.offset,t.offset)&&a.setOffset(t.offset),a.options.anchor===t.anchor&&a.options.maxWidth===t.maxWidth||(a.options.anchor=t.anchor,a.setMaxWidth(t.maxWidth)),a.options.className!==t.className)){const e=M(a.options.className),r=M(t.className);for(const t of e)r.has(t)||a.removeClassName(t);for(const t of r)e.has(t)||a.addClassName(t);a.options.className=t.className}return(0,j.createPortal)(t.children,o)})),D=function(t,e,r,o){const i=(0,n.useContext)(O),a=(0,n.useMemo)((()=>t(i)),[]);return(0,n.useEffect)((()=>{const t=o||r||e,n="function"==typeof e&&"function"==typeof r?e:null,s="function"==typeof r?r:"function"==typeof e?e:null,{map:u}=i;return u.hasControl(a)||(u.addControl(a,null==t?void 0:t.position),n&&n(i)),()=>{s&&s(i),u.hasControl(a)&&u.removeControl(a)}}),[]),a},L=n.memo((function(t){const e=D((({mapLib:e})=>new e.AttributionControl(t)),{position:t.position});return(0,n.useEffect)((()=>{C(e._container,t.style)}),[t.style]),null})),R=n.memo((function(t){const e=D((({mapLib:e})=>new e.FullscreenControl({container:t.containerId&&document.getElementById(t.containerId)})),{position:t.position});return(0,n.useEffect)((()=>{C(e._controlContainer,t.style)}),[t.style]),null})),z=(0,n.forwardRef)(((t,e)=>{const r=(0,n.useRef)({props:t}),o=D((({mapLib:e})=>{const n=new e.GeolocateControl(t),o=n._setupUI;return n._setupUI=t=>{n._container.hasChildNodes()||o(t)},n.on("geolocate",(t=>{var e,n;null===(n=(e=r.current.props).onGeolocate)||void 0===n||n.call(e,t)})),n.on("error",(t=>{var e,n;null===(n=(e=r.current.props).onError)||void 0===n||n.call(e,t)})),n.on("outofmaxbounds",(t=>{var e,n;null===(n=(e=r.current.props).onOutOfMaxBounds)||void 0===n||n.call(e,t)})),n.on("trackuserlocationstart",(t=>{var e,n;null===(n=(e=r.current.props).onTrackUserLocationStart)||void 0===n||n.call(e,t)})),n.on("trackuserlocationend",(t=>{var e,n;null===(n=(e=r.current.props).onTrackUserLocationEnd)||void 0===n||n.call(e,t)})),n}),{position:t.position});return r.current.props=t,(0,n.useImperativeHandle)(e,(()=>({trigger:()=>o.trigger()})),[]),(0,n.useEffect)((()=>{C(o._container,t.style)}
1),[t.style]),null}));z.displayName="GeolocateControl";const N=n.memo(z),F=n.memo((function(t){const e=D((({mapLib:e})=>new e.NavigationControl(t)),{position:t.position});return(0,n.useEffect)((()=>{C(e._container,t.style)}),[t.style]),null}));function B(t){const e=D((({mapLib:e})=>new e.ScaleControl(t)),{position:t.position});return e.options.unit===t.unit&&e.options.maxWidth===t.maxWidth||(e.options.maxWidth=t.maxWidth,e.setUnit(t.unit)),(0,n.useEffect)((()=>{C(e._container,t.style)}),[t.style]),null}B.defaultProps={unit:"metric",maxWidth:100};const V=n.memo(B);function U(t,e){if(!t)throw new Error(e)}let q=0;const $=function(t){const e=(0,n.useContext)(O).map.getMap(),r=(0,n.useRef)(t),[,o]=(0,n.useState)(0),i=(0,n.useMemo)((()=>t.id||"jsx-source-"+q++),[]);(0,n.useEffect)((()=>{if(e){const t=()=>setTimeout((()=>o((t=>t+1))),0);return e.on("styledata",t),t(),()=>{var r;if(e.off("styledata",t),e.style&&e.style._loaded&&e.getSource(i)){const t=null===(r=e.getStyle())||void 0===r?void 0:r.layers;if(t)for(const r of t)r.source===i&&e.removeLayer(r.id);e.removeSource(i)}}}}),[e]);let a=e&&e.style&&e.getSource(i);return a?function(t,e,r){U(e.id===r.id,"source id changed"),U(e.type===r.type,"source type changed");let n="",o=0;for(const a in e)"children"===a||"id"===a||f(r[a],e[a])||(n=a,o++);if(!o)return;const i=e.type;if("geojson"===i)t.setData(e.data);else if("image"===i)t.updateImage({url:e.url,coordinates:e.coordinates});else if("canvas"!==i&&"video"!==i||1!==o||"coordinates"!==n)if("vector"===i&&"setUrl"in t)switch(n){case"url":t.setUrl(e.url);break;case"tiles":t.setTiles(e.tiles)}else console.warn(`Unable to update <Source> prop: ${n}`);else t.setCoordinates(e.coordinates)}(a,t,r.current):a=function(t,e,r){if(t.style&&t.style._loaded){const n={...r};return delete n.id,delete n.children,t.addSource(e,n),t.getSource(e)}return null}(e,i,t),r.current=t,a&&n.Children.map(t.children,(t=>t&&(0,n.cloneElement)(t,{source:i})))||null};let G=0;const W=function(t){const e=(0,n.useContext)(O).map.getMap(),r=(0,n.useRef)(t),[,o]=(0,n.useState)(0),i=(0,n.useMemo)((()=>t.id||"jsx-layer-"+G++),[]);if((0,n.useEffect)((()=>{if(e){const t=()=>o((t=>t+1));return e.on("styledata",t),t(),()=>{e.off("styledata",t),e.style&&e.style._loaded&&e.getLayer(i)&&e.removeLayer(i)}}}),[e]),e&&e.style&&e.getLayer(i))try{!function(t,e,r,n){if(U(r.id===n.id,"layer id changed"),U(r.type===n.type,"layer type changed"),"custom"===r.type||"custom"===n.type)return;const{layout:o={},paint:i={},filter:a,minzoom:s,maxzoom:u,beforeId:c}=r;if(c!==n.beforeId&&t.moveLayer(e,c),o!==n.layout){const r=n.layout||{};for(const n in o)f(o[n],r[n])||t.setLayoutProperty(e,n,o[n]);for(const n in r)o.hasOwnProperty(n)||t.setLayoutProperty(e,n,void 0)}if(i!==n.paint){const r=n.paint||{};for(const n in i)f(i[n],r[n])||t.setPaintProperty(e,n,i[n]);for(const n in r)i.hasOwnProperty(n)||t.setPaintProperty(e,n,void 0)}f(a,n.filter)||t.setFilter(e,a),s===n.minzoom&&u===n.maxzoom||t.setLayerZoomRange(e,s,u)}(e,i,t,r.current)}catch(t){console.warn(t)}else!function(t,e,r){if(t.style&&t.style._loaded&&(!("source"in r)||t.getSource(r.source))){const n={...r,id:e};delete n.beforeId,t.addLayer(n,r.beforeId)}}(e,i,t);return r.current=t,null}},95760:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>Xr,useAsync:()=>Kr});var n=r(87462),o=r(8156),i=r(1413),a=r(49142);function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(0,a.Z)(n.key),n)}}var u=r(89611);function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}var l=r(71002);function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=c(t);if(e){var o=c(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===(0,l.Z)(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function h(t,e){if(t){if("string"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}function d(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||h(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var m=function(){function t(t){var e=this;this._insertTag=function(t){var r;r=0===e.tags.length?e.insertionPoint?e.insertionPoint.nextSibling:e.prepend?e.container.firstChild:e.before:e.tags[e.tags.length-1].nextSibling,e.container.insertBefore(t,r),e.tags.push(t)},this.isSpeedy=void 0===t.speedy||t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(t){t.forEach(this._insertTag)},e.insert=function(t){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}(this));var e=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(e);try{r.insertRule(t,r.cssRules.length)}catch(t){}}
vendor: 5,154 bytes, line 1
1else e.appendChild(document.createTextNode(t));this.ctr++},e.flush=function(){this.tags.forEach((function(t){return t.parentNode&&t.parentNode.removeChild(t)})),this.tags=[],this.ctr=0},t}(),y=Math.abs,v=String.fromCharCode,g=Object.assign;function b(t){return t.trim()}function _(t,e,r){return t.replace(e,r)}function x(t,e){return t.indexOf(e)}function w(t,e){return 0|t.charCodeAt(e)}function O(t,e,r){return t.slice(e,r)}function E(t){return t.length}function S(t){return t.length}function P(t,e){return e.push(t),t}var j=1,A=1,C=0,T=0,k=0,M="";function I(t,e,r,n,o,i,a){return{value:t,root:e,parent:r,type:n,props:o,children:i,line:j,column:A,length:a,return:""}}function D(t,e){return g(I("",null,null,"",null,null,0),t,{length:-t.length},e)}function L(){return k=T>0?w(M,--T):0,A--,10===k&&(A=1,j--),k}function R(){return k=T<C?w(M,T++):0,A++,10===k&&(A=1,j++),k}function z(){return w(M,T)}function N(){return T}function F(t,e){return O(M,t,e)}function B(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function V(t){return j=A=1,C=E(M=t),T=0,[]}function U(t){return M="",t}function q(t){return b(F(T-1,W(91===t?t+2:40===t?t+1:t)))}function $(t){for(;(k=z())&&k<33;)R();return B(t)>2||B(k)>3?"":" "}function G(t,e){for(;--e&&R()&&!(k<48||k>102||k>57&&k<65||k>70&&k<97););return F(t,N()+(e<6&&32==z()&&32==R()))}function W(t){for(;R();)switch(k){case t:return T;case 34:case 39:34!==t&&39!==t&&W(k);break;case 40:41===t&&W(t);break;case 92:R()}return T}function Z(t,e){for(;R()&&t+k!==57&&(t+k!==84||47!==z()););return"/*"+F(e,T-1)+"*"+v(47===t?t:R())}function H(t){for(;!B(z());)R();return F(t,T)}var K="-ms-",Y="-moz-",X="-webkit-",J="comm",Q="rule",tt="decl",et="@keyframes";function rt(t,e){for(var r="",n=S(t),o=0;o<n;o++)r+=e(t[o],o,t,e)||"";return r}function nt(t,e,r,n){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case tt:return t.return=t.return||t.value;case J:return"";case et:return t.return=t.value+"{"+rt(t.children,n)+"}";case Q:t.value=t.props.join(",")}return E(r=rt(t.children,n))?t.return=t.value+"{"+r+"}":""}function ot(t){return U(it("",null,null,null,[""],t=V(t),0,[0],t))}function it(t,e,r,n,o,i,a,s,u){for(var c=0,l=0,p=a,f=0,h=0,d=0,m=1,y=1,g=1,b=0,O="",S=o,j=i,A=n,C=O;y;)switch(d=b,b=R()){case 40:if(108!=d&&58==w(C,p-1)){-1!=x(C+=_(q(b),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:C+=q(b);break;case 9:case 10:case 13:case 32:C+=$(d);break;case 92:C+=G(N()-1,7);continue;case 47:switch(z()){case 42:case 47:P(st(Z(R(),N()),e,r),u);break;default:C+="/"}break;case 123*m:s[c++]=E(C)*g;case 125*m:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+l:-1==g&&(C=_(C,/\f/g,"")),h>0&&E(C)-p&&P(h>32?ut(C+";",n,r,p-1):ut(_(C," ","")+";",n,r,p-2),u);break;case 59:C+=";";default:if(P(A=at(C,e,r,c,l,o,s,O,S=[],j=[],p),i),123===b)if(0===l)it(C,e,A,A,S,i,p,s,j);else switch(99===f&&110===w(C,3)?100:f){case 100:case 108:case 109:case 115:it(t,A,A,n&&P(at(t,A,A,0,0,o,s,O,o,S=[],p),j),o,j,p,s,n?S:j);break;default:it(C,A,A,A,[""],j,0,s,j)}}c=l=h=0,m=g=1,O=C="",p=a;break;case 58:p=1+E(C),h=d;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==L())continue;switch(C+=v(b),b*m){case 38:g=l>0?1:(C+="\f",-1);break;case 44:s[c++]=(E(C)-1)*g,g=1;break;case 64:45===z()&&(C+=q(R())),f=z(),l=p=E(O=C+=H(N())),b++;break;case 45:45===d&&2==E(C)&&(m=0)}}return i}function at(t,e,r,n,o,i,a,s,u,c,l){for(var p=o-1,f=0===o?i:[""],h=S(f),d=0,m=0,v=0;d<n;++d)for(var g=0,x=O(t,p+1,p=y(m=a[d])),w=t;g<h;++g)(w=b(m>0?f[g]+" "+x:_(x,/&\f/g,f[g])))&&(u[v++]=w);return I(t,e,r,0===o?Q:s,u,c,l)}function st(t,e,r){return I(t,e,r,J,v(k),O(t,2,-2),0)}function ut(t,e,r,n){return I(t,e,r,tt,O(t,0,n),O(t,n+1,-1),n)}var ct=function(t,e,r){for(var n=0,o=0;n=o,o=z(),38===n&&12===o&&(e[r]=1),!B(o);)R();return F(t,T)},lt=new WeakMap,pt=function(t){if("rule"===t.type&&t.parent&&!(t.length<1)){for(var e=t.value,r=t.parent,n=t.column===r.column&&t.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==t.props.length||58===e.charCodeAt(0)||lt.get(r))&&!n){lt.set(t,!0);for(var o=[],i=function(t,e){return U(function(t,e){var r=-1,n=44;do{switch(B(n)){case 0:38===n&&12===z()&&(e[r]=1),t[r]+=ct(T-1,e,r);break;case 2:t[r]+=q(n);break;case 4:if(44===n){t[++r]=58===z()?"&\f":"",e[r]=t[r].length;break}default:t[r]+=v(n)}}while(n=R());return t}(V(t),e))}(e,o),a=r.props,s=0,u=0;s<i.length;s++)for(var c=0;c<a.length;c++,u++)t.props[u]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},ft=function(t){if("decl"===t.type){var e=t.value;108===e.charCodeAt(0)&&98===e.charCodeAt(2)&&(t.return="",t.value="")}};function ht(t,e){switch(function(t,e){return 45^w(t,0)?(((e<<2^w(t,0))<<2^w(t,1))<<2^w(t,2))<<2^w(t,3):0}(t,e)){case 5103:return X+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return X+t+t;
vendor: 1,597 bytes, line 1
1case 5349:case 4246:case 4810:case 6968:case 2756:return X+t+Y+t+K+t+t;case 6828:case 4268:return X+t+K+t+t;case 6165:return X+t+K+"flex-"+t+t;case 5187:return X+t+_(t,/(\w+).+(:[^]+)/,X+"box-$1$2"+K+"flex-$1$2")+t;case 5443:return X+t+K+"flex-item-"+_(t,/flex-|-self/,"")+t;case 4675:return X+t+K+"flex-line-pack"+_(t,/align-content|flex-|-self/,"")+t;case 5548:return X+t+K+_(t,"shrink","negative")+t;case 5292:return X+t+K+_(t,"basis","preferred-size")+t;case 6060:return X+"box-"+_(t,"-grow","")+X+t+K+_(t,"grow","positive")+t;case 4554:return X+_(t,/([^-])(transform)/g,"$1"+X+"$2")+t;case 6187:return _(_(_(t,/(zoom-|grab)/,X+"$1"),/(image-set)/,X+"$1"),t,"")+t;case 5495:case 3959:return _(t,/(image-set\([^]*)/,X+"$1$`$1");case 4968:return _(_(t,/(.+:)(flex-)?(.*)/,X+"box-pack:$3"+K+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+X+t+t;case 4095:case 3583:case 4068:case 2532:return _(t,/(.+)-inline(.+)/,X+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(E(t)-1-e>6)switch(w(t,e+1)){case 109:if(45!==w(t,e+4))break;case 102:return _(t,/(.+:)(.+)-([^]+)/,"$1"+X+"$2-$3$1"+Y+(108==w(t,e+3)?"$3":"$2-$3"))+t;case 115:return~x(t,"stretch")?ht(_(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(115!==w(t,e+1))break;case 6444:switch(w(t,E(t)-3-(~x(t,"!important")&&10))){case 107:return _(t,":",":"+X)+t;case 101:return _(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+X+(45===w(t,14)?"inline-":"")+"box$3$1"+X+"$2$3$1"+K+"$2box$3")+t}break;case 5936:switch(w(t,e+11)){case 114:return X+t+K+_(t,/[svh]\w+-[tblr]{2}/,"tb")+t;
vendor: 4,829 bytes, line 1
1case 108:return X+t+K+_(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return X+t+K+_(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return X+t+K+t+t}return t}var dt=[function(t,e,r,n){if(t.length>-1&&!t.return)switch(t.type){case tt:t.return=ht(t.value,t.length);break;case et:return rt([D(t,{value:_(t.value,"@","@"+X)})],n);case Q:if(t.length)return function(t,e){return t.map(e).join("")}(t.props,(function(e){switch(function(t,e){return(t=/(::plac\w+|:read-\w+)/.exec(t))?t[0]:t}(e)){case":read-only":case":read-write":return rt([D(t,{props:[_(e,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return rt([D(t,{props:[_(e,/:(plac\w+)/,":"+X+"input-$1")]}),D(t,{props:[_(e,/:(plac\w+)/,":-moz-$1")]}),D(t,{props:[_(e,/:(plac\w+)/,K+"input-$1")]})],n)}return""}))}}],mt=function(t,e,r){var n=t.key+"-"+e.name;!1===r&&void 0===t.registered[n]&&(t.registered[n]=e.styles)},yt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var vt=/[A-Z]|^ms/g,gt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bt=function(t){return 45===t.charCodeAt(1)},_t=function(t){return null!=t&&"boolean"!=typeof t},xt=function(t){var e=Object.create(null);return function(r){return void 0===e[r]&&(e[r]=t(r)),e[r]}}((function(t){return bt(t)?t:t.replace(vt,"-$&").toLowerCase()})),wt=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(gt,(function(t,e,r){return Et={name:e,styles:r,next:Et},e}))}return 1===yt[t]||bt(t)||"number"!=typeof e||0===e?e:e+"px"};function Ot(t,e,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return Et={name:r.name,styles:r.styles,next:Et},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)Et={name:n.name,styles:n.styles,next:Et},n=n.next;return r.styles+";"}return function(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Ot(t,e,r[o])+";";else for(var i in r){var a=r[i];if("object"!=typeof a)null!=e&&void 0!==e[a]?n+=i+"{"+e[a]+"}":_t(a)&&(n+=xt(i)+":"+wt(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=e&&void 0!==e[a[0]]){var s=Ot(t,e,a);switch(i){case"animation":case"animationName":n+=xt(i)+":"+s+";";break;default:n+=i+"{"+s+"}"}}else for(var u=0;u<a.length;u++)_t(a[u])&&(n+=xt(i)+":"+wt(i,a[u])+";")}return n}(t,e,r);case"function":if(void 0!==t){var o=Et,i=r(t);return Et=o,Ot(t,e,i)}}if(null==e)return r;var a=e[r];return void 0!==a?a:r}var Et,St=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Pt=function(t,e,r){if(1===t.length&&"object"==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var n=!0,o="";Et=void 0;var i=t[0];null==i||void 0===i.raw?(n=!1,o+=Ot(r,e,i)):o+=i[0];for(var a=1;a<t.length;a++)o+=Ot(r,e,t[a]),n&&(o+=i[a]);St.lastIndex=0;for(var s,u="";null!==(s=St.exec(o));)u+="-"+s[1];var c=function(t){for(var e,r=0,n=0,o=t.length;o>=4;++n,o-=4)e=1540483477*(65535&(e=255&t.charCodeAt(n)|(255&t.charCodeAt(++n))<<8|(255&t.charCodeAt(++n))<<16|(255&t.charCodeAt(++n))<<24))+(59797*(e>>>16)<<16),r=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&t.charCodeAt(n+2))<<16;case 2:r^=(255&t.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&t.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+u;return{name:c,styles:o,next:Et}},jt=!!o.useInsertionEffect&&o.useInsertionEffect,At=jt||function(t){return t()},Ct=(jt||o.useLayoutEffect,{}.hasOwnProperty),Tt=o.createContext("undefined"!=typeof HTMLElement?function(t){var e=t.key;if("css"===e){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(t){-1!==t.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(t),t.setAttribute("data-s",""))}))}var n,o,i=t.stylisPlugins||dt,a={},s=[];n=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+e+' "]'),(function(t){for(var e=t.getAttribute("data-emotion").split(" "),r=1;r<e.length;r++)a[e[r]]=!0;s.push(t)}));var u,c,l,p,f=[nt,(c=function(t){u.insert(t)},function(t){t.root||(t=t.return)&&c(t)})],h=(l=[pt,ft].concat(i,f),p=S(l),function(t,e,r,n){for(var o="",i=0;i<p;
1i++)o+=l[i](t,e,r,n)||"";return o});o=function(t,e,r,n){u=r,rt(ot(t?t+"{"+e.styles+"}":e.styles),h),n&&(d.inserted[e.name]=!0)};var d={key:e,sheet:new m({key:e,container:n,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:o};return d.sheet.hydrate(s),d}({key:"css"}):null);Tt.Provider;var kt=o.createContext({}),Mt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",It=function(t){var e=t.cache,r=t.serialized,n=t.isStringTag;return mt(e,r,n),At((function(){return function(t,e,r){mt(t,e,r);var n=t.key+"-"+e.name;if(void 0===t.inserted[e.name]){var o=e;do{t.insert(e===o?"."+n:"",o,t.sheet,!0),o=o.next}while(void 0!==o)}}(e,r,n)})),null},Dt=function(t){return(0,o.forwardRef)((function(e,r){var n=(0,o.useContext)(Tt);return t(e,n,r)}))}((function(t,e,r){var n=t.css;"string"==typeof n&&void 0!==e.registered[n]&&(n=e.registered[n]);var i=t[Mt],a=[n],s="";"string"==typeof t.className?s=function(t,e,r){var n="";return r.split(" ").forEach((function(r){void 0!==t[r]?e.push(t[r]+";"):n+=r+" "})),n}(e.registered,a,t.className):null!=t.className&&(s=t.className+" ");var u=Pt(a,void 0,o.useContext(kt));s+=e.key+"-"+u.name;var c={};for(var l in t)Ct.call(t,l)&&"css"!==l&&l!==Mt&&(c[l]=t[l]);return c.ref=r,c.className=s,o.createElement(o.Fragment,null,o.createElement(It,{cache:e,serialized:u,isStringTag:"string"==typeof i}),o.createElement(i,c))}
1)),Lt=Dt,Rt=(r(8679),function(t,e){var r=arguments;if(null==e||!Ct.call(e,"css"))return o.createElement.apply(void 0,r);var n=r.length,i=new Array(n);i[0]=Lt,i[1]=function(t,e){var r={};for(var n in e)Ct.call(e,n)&&(r[n]=e[n]);return r[Mt]=t,r}(t,e);for(var a=2;a<n;a++)i[a]=r[a];return o.createElement.apply(null,i)});function zt(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return Pt(e)}function Nt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||h(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ft=r(63366);function Bt(t,e){if(null==t)return{};var r,n,o=(0,Ft.Z)(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Vt=r(4942),Ut=r(47111);function qt(t){var e;return(null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function $t(t){return qt(t).getComputedStyle(t)}function Gt(t){return t instanceof qt(t).Node}function Wt(t){return Gt(t)?(t.nodeName||"").toLowerCase():""}function Zt(t){return t instanceof qt(t).HTMLElement}function Ht(t){return t instanceof qt(t).Element}function Kt(t){return"undefined"!=typeof ShadowRoot&&(t instanceof qt(t).ShadowRoot||t instanceof ShadowRoot)}function Yt(t){const{overflow:e,overflowX:r,overflowY:n,display:o}=$t(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(o)}Math.min,Math.max,["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-start",e+"-end")),[]),Math.min,Math.max;const Xt=Math.round;function Jt(t){return Ht(t)?t:t.contextElement}const Qt={x:1,y:1};function te(t){const e=Jt(t);if(!Zt(e))return Qt;const r=e.getBoundingClientRect(),{width:n,height:o,fallback:i}=function(t){const e=$t(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const o=Zt(t),i=o?t.offsetWidth:r,a=o?t.offsetHeight:n,s=Xt(r)!==i||Xt(n)!==a;return s&&(r=i,n=a),{width:r,height:n,fallback:s}}(e);let a=(i?Xt(r.width):r.width)/n,s=(i?Xt(r.height):r.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const ee={x:0,y:0};function re(t,e,r,n){void 0===e&&(e=!1),void 0===r&&(r=!1);const o=t.getBoundingClientRect(),i=Jt(t);let a=Qt;e&&(n?Ht(n)&&(a=te(n)):a=te(t));const s=function(t,e,r){var n,o;if(void 0===e&&(e=!0),"undefined"==typeof CSS||!CSS.supports||!CSS.supports("-webkit-backdrop-filter","none"))return ee;const i=t?qt(t):window;return!r||e&&r!==i?ee:{x:(null==(n=i.visualViewport)?void 0:n.offsetLeft)||0,y:(null==(o=i.visualViewport)?void 0:o.offsetTop)||0}}(i,r,n);let u=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,l=o.width/a.x,p=o.height/a.y;if(i){const t=qt(i),e=n&&Ht(n)?qt(n):n;let r=t.frameElement;for(;r&&n&&e!==t;){const t=te(r),e=r.getBoundingClientRect(),n=getComputedStyle(r);e.x+=(r.clientLeft+parseFloat(n.paddingLeft))*t.x,e.y+=(r.clientTop+parseFloat(n.paddingTop))*t.y,u*=t.x,c*=t.y,l*=t.x,p*=t.y,u+=e.x,c+=e.y,r=qt(r).frameElement}}return f={width:l,height:p,x:u,y:c},{...f,top:f.y,left:f.x,right:f.x+f.width,bottom:f.y+f.height};var f}function ne(t){const e=function(t){if("html"===Wt(t))return t;const e=t.assignedSlot||t.parentNode||Kt(t)&&t.host||function(t){return((Gt(t)?t.ownerDocument:t.document)||window.document).documentElement}(t);return Kt(e)?e.host:e}(t);return function(t){return["html","body","#document"].includes(Wt(t))}(e)?e.ownerDocument.body:Zt(e)&&Yt(e)?e:ne(e)}function oe(t,e){var r;void 0===e&&(e=[]);const n=ne(t),o=n===(null==(r=t.ownerDocument)?void 0:r.body),i=qt(n);return o?e.concat(i,i.visualViewport||[],Yt(n)?n:[]):e.concat(n,oe(n))}const ie=o.useLayoutEffect;var ae=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","
1setValue","theme"],se=function(){};function ue(t,e){return e?"-"===e[0]?t+e:t+"__"+e:t}function ce(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];var i=[].concat(n);if(e&&t)for(var a in e)e.hasOwnProperty(a)&&e[a]&&i.push("".concat(ue(t,a)));return i.filter((function(t){return t})).map((function(t){return String(t).trim()})).join(" ")}var le=function(t){return e=t,Array.isArray(e)?t.filter(Boolean):"object"===(0,l.Z)(t)&&null!==t?[t]:[];var e},pe=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var e=Bt(t,ae);return(0,i.Z)({},e)},fe=function(t,e,r){var n=t.cx,o=t.getStyles,i=t.getClassNames,a=t.className;return{css:o(e,t),className:n(null!=r?r:{},i(e,t),a)}};function he(t){return[document.documentElement,document.body,window].indexOf(t)>-1}function de(t){return he(t)?window.pageYOffset:t.scrollTop}function me(t,e){he(t)?window.scrollTo(0,e):t.scrollTop=e}function ye(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:se,o=de(t),i=e-o,a=0;!function e(){var s,u=(s=a+=10,i*((s=s/r-1)*s*s+1)+o);me(t,u),a<r?window.requestAnimationFrame(e):n(t)}()}function ve(t,e){var r=t.getBoundingClientRect(),n=e.getBoundingClientRect(),o=e.offsetHeight/3;n.bottom+o>r.bottom?me(t,Math.min(e.offsetTop+e.clientHeight-t.offsetHeight+o,t.scrollHeight)):n.top-o<r.top&&me(t,Math.max(e.offsetTop-o,0))}function ge(){try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}}var be=!1,_e={get passive(){return be=!0}},xe="undefined"!=typeof window?window:{};xe.addEventListener&&xe.removeEventListener&&(xe.addEventListener("p",se,_e),xe.removeEventListener("p",se,!1));var we=be;function Oe(t){return null!=t}function Ee(t,e,r){return t?e:r}var Se=function(t){return"auto"===t?"bottom":t},Pe=(0,o.createContext)(null),je=function(t){var e=t.children,r=t.minMenuHeight,n=t.maxMenuHeight,a=t.menuPlacement,s=t.menuPosition,u=t.menuShouldScrollIntoView,c=t.theme,l=((0,o.useContext)(Pe)||{}).setPortalPlacement,p=(0,o.useRef)(null),f=Nt((0,o.useState)(n),2),h=f[0],d=f[1],m=Nt((0,o.useState)(null),2),y=m[0],v=m[1],g=c.spacing.controlHeight;return ie((function(){var t=p.current;if(t){var e="fixed"===s,o=function(t){var e=t.maxHeight,r=t.menuEl,n=t.minHeight,o=t.placement,i=t.shouldScroll,a=t.isFixedPosition,s=t.controlHeight,u=function(t){var e=getComputedStyle(t),r="absolute"===e.position,n=/(auto|scroll)/;if("fixed"===e.position)return document.documentElement;for(var o=t;o=o.parentElement;)if(e=getComputedStyle(o),(!r||"static"!==e.position)&&n.test(e.overflow+e.overflowY+e.overflowX))return o;return document.documentElement}(r),c={placement:"bottom",maxHeight:e};if(!r||!r.offsetParent)return c;var l,p=u.getBoundingClientRect().height,f=r.getBoundingClientRect(),h=f.bottom,d=f.height,m=f.top,y=r.offsetParent.getBoundingClientRect().top,v=a||he(l=u)?window.innerHeight:l.clientHeight,g=de(u),b=parseInt(getComputedStyle(r).marginBottom,10),_=parseInt(getComputedStyle(r).marginTop,10),x=y-_,w=v-m,O=x+g,E=p-g-m,S=h-v+g+b,P=g+m-_,j=160;switch(o){case"auto":case"bottom":if(w>=d)return{placement:"bottom",maxHeight:e};if(E>=d&&!a)return i&&ye(u,S,j),{placement:"bottom",maxHeight:e};if(!a&&E>=n||a&&w>=n)return i&&ye(u,S,j),{placement:"bottom",maxHeight:a?w-b:E-b};
1if("auto"===o||a){var A=e,C=a?x:O;return C>=n&&(A=Math.min(C-b-s,e)),{placement:"top",maxHeight:A}}if("bottom"===o)return i&&me(u,S),{placement:"bottom",maxHeight:e};break;case"top":if(x>=d)return{placement:"top",maxHeight:e};if(O>=d&&!a)return i&&ye(u,P,j),{placement:"top",maxHeight:e};if(!a&&O>=n||a&&x>=n){var T=e;return(!a&&O>=n||a&&x>=n)&&(T=a?x-_:O-_),i&&ye(u,P,j),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}({maxHeight:n,menuEl:t,minHeight:r,placement:a,shouldScroll:u&&!e,isFixedPosition:e,controlHeight:g});d(o.maxHeight),v(o.placement),null==l||l(o.placement)}}),[n,a,s,u,r,l,g]),e({ref:p,placerProps:(0,i.Z)((0,i.Z)({},t),{},{placement:y||Se(a),maxHeight:h})})},Ae=function(t,e){var r=t.theme,n=r.spacing.baseUnit,o=r.colors;return(0,i.Z)({textAlign:"center"},e?{}:{color:o.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px")})},Ce=Ae,Te=Ae,ke=function(t){var e=t.children,r=t.innerProps;return Rt("div",(0,n.Z)({},fe(t,"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),e)};ke.defaultProps={children:"No options"};var Me=function(t){var e=t.children,r=t.innerProps;return Rt("div",(0,n.Z)({},fe(t,"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),e)};Me.defaultProps={children:"Loading..."};var Ie,De,Le,Re=["size"],ze={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Ne=function(t){var e=t.size,r=Bt(t,Re);return Rt("svg",(0,n.Z)({height:e,width:e,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ze},r))},Fe=function(t){return Rt(Ne,(0,n.Z)({size:20},t),Rt("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Be=function(t){return Rt(Ne,(0,n.Z)({size:20},t),Rt("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Ve=function(t,e){var r=t.isFocused,n=t.theme,o=n.spacing.baseUnit,a=n.colors;return(0,i.Z)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},e?{}:{color:r?a.neutral60:a.neutral20,padding:2*o,":hover":{color:r?a.neutral80:a.neutral40}})},Ue=Ve,qe=Ve,$e=function(){var t=zt.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Ie||(De=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Le||(Le=De.slice(0)),Ie=Object.freeze(Object.defineProperties(De,{raw:{value:Object.freeze(Le)}})))),Ge=function(t){var e=t.delay,r=t.offset;return Rt("span",{css:zt({animation:"".concat($e," 1s ease-in-out ").concat(e,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},We=function(t){var e=t.innerProps,r=t.isRtl;return Rt("div",(0,n.Z)({},fe(t,"loadingIndicator",{indicator:!0,"loading-indicator":!0}),e),Rt(Ge,{delay:0,offset:r}),Rt(Ge,{delay:160,offset:!0}),Rt(Ge,{delay:320,offset:!r}))};We.defaultProps={size:4};var Ze=["data"],He=["innerRef","isDisabled","isHidden","inputClassName"],Ke={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Ye={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,i.Z)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ke)},Xe=function(t){return(0,i.Z)({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},Ke)},Je=function(t){var e=t.children,r=t.innerProps;return Rt("div",r,e)},Qe={ClearIndicator:function(t){var e=t.children,r=t.innerProps;return Rt("div",(0,n.Z)({},fe(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),e||Rt(Fe,null))},Control:function(t){var e=t.children,r=t.isDisabled,o=t.isFocused,i=t.innerRef,a=t.innerProps,s=t.menuIsOpen;return Rt("div",(0,n.Z)({ref:i}
1,fe(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":o,"control--menu-is-open":s}),a),e)},DropdownIndicator:function(t){var e=t.children,r=t.innerProps;return Rt("div",(0,n.Z)({},fe(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),e||Rt(Be,null))},DownChevron:Be,CrossIcon:Fe,Group:function(t){var e=t.children,r=t.cx,o=t.getStyles,i=t.getClassNames,a=t.Heading,s=t.headingProps,u=t.innerProps,c=t.label,l=t.theme,p=t.selectProps;return Rt("div",(0,n.Z)({},fe(t,"group",{group:!0}),u),Rt(a,(0,n.Z)({},s,{selectProps:p,theme:l,getStyles:o,getClassNames:i,cx:r}),c),Rt("div",null,e))},GroupHeading:function(t){var e=pe(t);e.data;var r=Bt(e,Ze);return Rt("div",(0,n.Z)({},fe(t,"groupHeading",{"group-heading":!0}),r))},IndicatorsContainer:function(t){var e=t.children,r=t.innerProps;return Rt("div",(0,n.Z)({},fe(t,"indicatorsContainer",{indicators:!0}),r),e)},IndicatorSeparator:function(t){var e=t.innerProps;return Rt("span",(0,n.Z)({},e,fe(t,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(t){var e=t.cx,r=t.value,o=pe(t),i=o.innerRef,a=o.isDisabled,s=o.isHidden,u=o.inputClassName,c=Bt(o,He);return Rt("div",(0,n.Z)({},fe(t,"input",{"input-container":!0}),{"data-value":r||""}),Rt("input",(0,n.Z)({className:e({input:!0},u),ref:i,style:Xe(s),disabled:a},c)))},LoadingIndicator:We,Menu:function(t){var e=t.children,r=t.innerRef,o=t.innerProps;return Rt("div",(0,n.Z)({},fe(t,"menu",{menu:!0}),{ref:r},o),e)},MenuList:function(t){var e=t.children,r=t.innerProps,o=t.innerRef,i=t.isMulti;return Rt("div",(0,n.Z)({},fe(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},r),e)},MenuPortal:function(t){var e=t.appendTo,r=t.children,a=t.controlElement,s=t.innerProps,u=t.menuPlacement,c=t.menuPosition,l=(0,o.useRef)(null),p=(0,o.useRef)(null),f=Nt((0,o.useState)(Se(u)),2),h=f[0],d=f[1],m=(0,o.useMemo)((function(){return{setPortalPlacement:d}}),[]),y=Nt((0,o.useState)(null),2),v=y[0],g=y[1],b=(0,o.useCallback)((function(){if(a){var t=function(t){var e=t.getBoundingClientRect();return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width}}(a),e="fixed"===c?0:window.pageYOffset,r=t[h]+e;r===(null==v?void 0:v.offset)&&t.left===(null==v?void 0:v.rect.left)&&t.width===(null==v?void 0:v.rect.width)||g({offset:r,rect:t})}}),[a,c,h,null==v?void 0:v.offset,null==v?void 0:v.rect.left,null==v?void 0:v.rect.width]);ie((function(){b()}),[b]);var _=(0,o.useCallback)((function(){"function"==typeof p.current&&(p.current(),p.current=null),a&&l.current&&(p.current=function(t,e,r,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=n,u=o||i?[...Ht(t)?oe(t):t.contextElement?oe(t.contextElement):[],...oe(e)]:[];u.forEach((t=>{const e=!Ht(t)&&t.toString().includes("V");!o||s&&!e||t.addEventListener("scroll",r,{passive:!0}),i&&t.addEventListener("resize",r)}));let c,l=null;a&&(l=new ResizeObserver((()=>{r()})),Ht(t)&&!s&&l.observe(t),Ht(t)||!t.contextElement||s||l.observe(t.contextElement),l.observe(e));let p=s?re(t):null;return s&&function e(){const n=re(t);!p||n.x===p.x&&n.y===p.y&&n.width===p.width&&n.height===p.height||r(),p=n,c=requestAnimationFrame(e)}(),r(),()=>{var t;u.forEach((t=>{o&&t.removeEventListener("scroll",r),i&&t.removeEventListener("resize",r)})),null==(t=l)||t.disconnect(),l=null,s&&cancelAnimationFrame(c)}}(a,l.current,b,{elementResize:"ResizeObserver"in window}))}),[a,b]);ie((function(){_()}),[_]);var x=(0,o.useCallback)((function(t){l.current=t,_()}),[_]);if(!e&&"fixed"!==c||!v)return null;var w=Rt("div",(0,n.Z)({ref:x},fe((0,i.Z)((0,i.Z)({},t),{},{offset:v.offset,position:c,rect:v.rect}),"menuPortal",{"menu-portal":!0}),s),r);return Rt(Pe.Provider,{value:m},e?(0,Ut.createPortal)(w,e):w)},LoadingMessage:Me,NoOptionsMessage:ke,MultiValue:function(t){var e=t.children,r=t.components,n=t.data,o=t.innerProps,a=t.isDisabled,s=t.removeProps,u=t.selectProps,c=r.Container,l=r.Label,p=r.Remove;return Rt(c,{data:n,innerProps:(0,i.Z)((0,i.Z)({},fe(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:u},Rt(l,{data:n,innerProps:(0,i.Z)({},fe(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},e),Rt(p,{data:n,innerProps:(0,i.Z)((0,i.Z)({},fe(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(e||"option")},s),selectProps:u}))},MultiValueContainer:Je,MultiValueLabel:Je,MultiValueRemove:function(t){var e=t.children,r=t.innerProps;return Rt("div",(0,n.Z)({role:"button"},r),e||Rt(Fe,{size:14}))},Option:function(t){var e=t.children,r=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.innerRef,s=t.innerProps;return Rt("div",(0,n.Z)({},fe(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":o,"option--is-selected":i}),{ref:a,"aria-disabled":r},s),e)},Placeholder:function(t){var e=t.children,r=t.innerProps;return Rt("div",(0,n.Z)({},fe(t,"placeholder",{placeholder:!0}),r),e)},SelectContainer:function(t){var e=t.children,r=t.innerProps,o=t.isDisabled,i=t.isRtl;return Rt("div",(0,n.Z)({},fe(t,"container",{"--is-disabled":o,"--is-rtl":i}),r),e)},SingleValue:function(t){var e=t.children,r=t.isDisabled,o=t.innerProps;return Rt("div",(0,n.Z)({},fe(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),o),e)},ValueContainer:function(t){var e=t.children,r=t.innerProps,o=t.isMulti,i=t.hasValue;return Rt("div",(0,n.Z)({},fe(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),r),e)}},tr=Number.isNaN||function(t){return"number"==typeof t&&t!=t};function er(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(!((n=t[r])===(o=e[r])||tr(n)&&tr(o)))return!1;var n,o;return!0}for(var rr={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},nr=function(t){return Rt("span",(0,n.Z)({css:rr},t))},or={guidance:function(t){var e=t.isSearchable,r=t.isMulti,n=t.isDisabled,o=t.tabSelectsValue;switch(t.context){case"menu":return"Use Up and Down to choose options".concat(n?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(t["aria-label"]||"Select"," is focused ").concat(e?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var e=t.action,r=t.label,n=void 0===r?"":r,o=t.labels,i=t.isDisabled;
vendor: 11,488 bytes, line 1
1switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(n,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(t){var e=t.context,r=t.focused,n=t.options,o=t.label,i=void 0===o?"":o,a=t.selectValue,s=t.isDisabled,u=t.isSelected,c=function(t,e){return t&&t.length?"".concat(t.indexOf(e)+1," of ").concat(t.length):""};if("value"===e&&a)return"value ".concat(i," focused, ").concat(c(a,r),".");if("menu"===e){var l=s?" disabled":"",p="".concat(u?"selected":"focused").concat(l);return"option ".concat(i," ").concat(p,", ").concat(c(n,r),".")}return""},onFilter:function(t){var e=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(e?" for search term "+e:"",".")}},ir=function(t){var e=t.ariaSelection,r=t.focusedOption,n=t.focusedValue,a=t.focusableOptions,s=t.isFocused,u=t.selectValue,c=t.selectProps,l=t.id,p=c.ariaLiveMessages,f=c.getOptionLabel,h=c.inputValue,d=c.isMulti,m=c.isOptionDisabled,y=c.isSearchable,v=c.menuIsOpen,g=c.options,b=c.screenReaderStatus,_=c.tabSelectsValue,x=c["aria-label"],w=c["aria-live"],O=(0,o.useMemo)((function(){return(0,i.Z)((0,i.Z)({},or),p||{})}),[p]),E=(0,o.useMemo)((function(){var t,r="";if(e&&O.onChange){var n=e.option,o=e.options,a=e.removedValue,s=e.removedValues,c=e.value,l=a||n||(t=c,Array.isArray(t)?null:t),p=l?f(l):"",h=o||s||void 0,d=h?h.map(f):[],y=(0,i.Z)({isDisabled:l&&m(l,u),label:p,labels:d},e);r=O.onChange(y)}return r}),[e,O,m,u,f]),S=(0,o.useMemo)((function(){var t="",e=r||n,o=!!(r&&u&&u.includes(r));if(e&&O.onFocus){var i={focused:e,label:f(e),isDisabled:m(e,u),isSelected:o,options:a,context:e===r?"menu":"value",selectValue:u};t=O.onFocus(i)}return t}),[r,n,f,m,O,a,u]),P=(0,o.useMemo)((function(){var t="";if(v&&g.length&&O.onFilter){var e=b({count:a.length});t=O.onFilter({inputValue:h,resultsMessage:e})}return t}),[a,h,v,O,g,b]),j=(0,o.useMemo)((function(){var t="";if(O.guidance){var e=n?"value":v?"menu":"input";t=O.guidance({"aria-label":x,context:e,isDisabled:r&&m(r,u),isMulti:d,isSearchable:y,tabSelectsValue:_})}return t}),[x,r,n,d,m,y,v,O,u,_]),A="".concat(S," ").concat(P," ").concat(j),C=Rt(o.Fragment,null,Rt("span",{id:"aria-selection"},E),Rt("span",{id:"aria-context"},A)),T="initial-input-focus"===(null==e?void 0:e.action);return Rt(o.Fragment,null,Rt(nr,{id:l},T&&C),Rt(nr,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},s&&!T&&C))},ar=[{base:"A",letters:"A\u24b6\uff21\xc0\xc1\xc2\u1ea6\u1ea4\u1eaa\u1ea8\xc3\u0100\u0102\u1eb0\u1eae\u1eb4\u1eb2\u0226\u01e0\xc4\u01de\u1ea2\xc5\u01fa\u01cd\u0200\u0202\u1ea0\u1eac\u1eb6\u1e00\u0104\u023a\u2c6f"},{base:"AA",letters:"\ua732"},{base:"AE",letters:"\xc6\u01fc\u01e2"},{base:"AO",letters:"\ua734"},{base:"AU",letters:"\ua736"},{base:"AV",letters:"\ua738\ua73a"},{base:"AY",letters:"\ua73c"},{base:"B",letters:"B\u24b7\uff22\u1e02\u1e04\u1e06\u0243\u0182\u0181"},{base:"C",letters:"C\u24b8\uff23\u0106\u0108\u010a\u010c\xc7\u1e08\u0187\u023b\ua73e"},{base:"D",letters:"D\u24b9\uff24\u1e0a\u010e\u1e0c\u1e10\u1e12\u1e0e\u0110\u018b\u018a\u0189\ua779"},{base:"DZ",letters:"\u01f1\u01c4"},{base:"Dz",letters:"\u01f2\u01c5"},{base:"E",letters:"E\u24ba\uff25\xc8\xc9\xca\u1ec0\u1ebe\u1ec4\u1ec2\u1ebc\u0112\u1e14\u1e16\u0114\u0116\xcb\u1eba\u011a\u0204\u0206\u1eb8\u1ec6\u0228\u1e1c\u0118\u1e18\u1e1a\u0190\u018e"},{base:"F",letters:"F\u24bb\uff26\u1e1e\u0191\ua77b"},{base:"G",letters:"G\u24bc\uff27\u01f4\u011c\u1e20\u011e\u0120\u01e6\u0122\u01e4\u0193\ua7a0\ua77d\ua77e"},{base:"H",letters:"H\u24bd\uff28\u0124\u1e22\u1e26\u021e\u1e24\u1e28\u1e2a\u0126\u2c67\u2c75\ua78d"},{base:"I",letters:"I\u24be\uff29\xcc\xcd\xce\u0128\u012a\u012c\u0130\xcf\u1e2e\u1ec8\u01cf\u0208\u020a\u1eca\u012e\u1e2c\u0197"},{base:"J",letters:"J\u24bf\uff2a\u0134\u0248"},{base:"K",letters:"K\u24c0\uff2b\u1e30\u01e8\u1e32\u0136\u1e34\u0198\u2c69\ua740\ua742\ua744\ua7a2"},{base:"L",letters:"L\u24c1\uff2c\u013f\u0139\u013d\u1e36\u1e38\u013b\u1e3c\u1e3a\u0141\u023d\u2c62\u2c60\ua748\ua746\ua780"},{base:"LJ",letters:"\u01c7"},{base:"Lj",letters:"\u01c8"},{base:"M",letters:"M\u24c2\uff2d\u1e3e\u1e40\u1e42\u2c6e\u019c"},{base:"N",letters:"N\u24c3\uff2e\u01f8\u0143\xd1\u1e44\u0147\u1e46\u0145\u1e4a\u1e48\u0220\u019d\ua790\ua7a4"},{base:"NJ",letters:"\u01ca"},{base:"Nj",letters:"\u01cb"},{base:"O",letters:"O\u24c4\uff2f\xd2\xd3\xd4\u1ed2\u1ed0\u1ed6\u1ed4\xd5\u1e4c\u022c\u1e4e\u014c\u1e50\u1e52\u014e\u022e\u0230\xd6\u022a\u1ece\u0150\u01d1\u020c\u020e\u01a0\u1edc\u1eda\u1ee0\u1ede\u1ee2\u1ecc\u1ed8\u01ea\u01ec\xd8\u01fe\u0186\u019f\ua74a\ua74c"},{base:"OI",letters:"\u01a2"},{base:"OO",letters:"\ua74e"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24c5\uff30\u1e54\u1e56\u01a4\u2c63\ua750\ua752\ua754"},{base:"Q",letters:"Q\u24c6\uff31\ua756\ua758\u024a"},{base:"R",letters:"R\u24c7\uff32\u0154\u1e58\u0158\u0210\u0212\u1e5a\u1e5c\u0156\u1e5e\u024c\u2c64\ua75a\ua7a6\ua782"},{base:"S",letters:"S\u24c8\uff33\u1e9e\u015a\u1e64\u015c\u1e60\u0160\u1e66\u1e62\u1e68\u0218\u015e\u2c7e\ua7a8\ua784"},{base:"T",letters:"T\u24c9\uff34\u1e6a\u0164\u1e6c\u021a\u0162\u1e70\u1e6e\u0166\u01ac\u01ae\u023e\ua786"},{base:"TZ",letters:"\ua728"},{base:"U",letters:"U\u24ca\uff35\xd9\xda\xdb\u0168\u1e78\u016a\u1e7a\u016c\xdc\u01db\u01d7\u01d5\u01d9\u1ee6\u016e\u0170\u01d3\u0214\u0216\u01af\u1eea\u1ee8\u1eee\u1eec\u1ef0\u1ee4\u1e72\u0172\u1e76\u1e74\u0244"},{base:"V",letters:"V\u24cb\uff36\u1e7c\u1e7e\u01b2\ua75e\u0245"},{base:"VY",letters:"\ua760"},{base:"W",letters:"W\u24cc\uff37\u1e80\u1e82\u0174\u1e86\u1e84\u1e88\u2c72"},{base:"X",letters:"X\u24cd\uff38\u1e8a\u1e8c"},{base:"Y",letters:"Y\u24ce\uff39\u1ef2\xdd\u0176\u1ef8\u0232\u1e8e\u0178\u1ef6\u1ef4\u01b3\u024e\u1efe"},{base:"Z",letters:"Z\u24cf\uff3a\u0179\u1e90\u017b\u017d\u1e92\u1e94\u01b5\u0224\u2c7f\u2c6b\ua762"},{base:"a",letters:"a\u24d0\uff41\u1e9a\xe0\xe1\xe2\u1ea7\u1ea5\u1eab\u1ea9\xe3\u0101\u0103\u1eb1\u1eaf\u1eb5\u1eb3\u0227\u01e1\xe4\u01df\u1ea3\xe5\u01fb\u01ce\u0201\u0203\u1ea1\u1ead\u1eb7\u1e01\u0105\u2c65\u0250"},{base:"aa",letters:"\ua733"},{base:"ae",letters:"\xe6\u01fd\u01e3"},{base:"ao",letters:"\ua735"},{base:"au",letters:"\ua737"},{base:"av",letters:"\ua739\ua73b"},{base:"ay",letters:"\ua73d"},{base:"b",letters:"b\u24d1\uff42\u1e03\u1e05\u1e07\u0180\u0183\u0253"},{base:"c",letters:"c\u24d2\uff43\u0107\u0109\u010b\u010d\xe7\u1e09\u0188\u023c\ua73f\u2184"},{base:"d",letters:"d\u24d3\uff44\u1e0b\u010f\u1e0d\u1e11\u1e13\u1e0f\u0111\u018c\u0256\u0257\ua77a"},{base:"dz",letters:"\u01f3\u01c6"},{base:"e",letters:"e\u24d4\uff45\xe8\xe9\xea\u1ec1\u1ebf\u1ec5\u1ec3\u1ebd\u0113\u1e15\u1e17\u0115\u0117\xeb\u1ebb\u011b\u0205\u0207\u1eb9\u1ec7\u0229\u1e1d\u0119\u1e19\u1e1b\u0247\u025b\u01dd"},{base:"f",letters:"f\u24d5\uff46\u1e1f\u0192\ua77c"},{base:"g",letters:"g\u24d6\uff47\u01f5\u011d\u1e21\u011f\u0121\u01e7\u0123\u01e5\u0260\ua7a1\u1d79\ua77f"},{base:"h",letters:"h\u24d7\uff48\u0125\u1e23\u1e27\u021f\u1e25\u1e29\u1e2b\u1e96\u0127\u2c68\u2c76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24d8\uff49\xec\xed\xee\u0129\u012b\u012d\xef\u1e2f\u1ec9\u01d0\u0209\u020b\u1ecb\u012f\u1e2d\u0268\u0131"},{base:"j",letters:"j\u24d9\uff4a\u0135\u01f0\u0249"},{base:"k",letters:"k\u24da\uff4b\u1e31\u01e9\u1e33\u0137\u1e35\u0199\u2c6a\ua741\ua743\ua745\ua7a3"},{base:"l",letters:"l\u24db\uff4c\u0140\u013a\u013e\u1e37\u1e39\u013c\u1e3d\u1e3b\u017f\u0142\u019a\u026b\u2c61\ua749\ua781\ua747"},{base:"lj",letters:"\u01c9"},{base:"m",letters:"m\u24dc\uff4d\u1e3f\u1e41\u1e43\u0271\u026f"},{base:"n",letters:"n\u24dd\uff4e\u01f9\u0144\xf1\u1e45\u0148\u1e47\u0146\u1e4b\u1e49\u019e\u0272\u0149\ua791\ua7a5"},{base:"nj",letters:"\u01cc"},{base:"o",letters:"o\u24de\uff4f\xf2\xf3\xf4\u1ed3\u1ed1\u1ed7\u1ed5\xf5\u1e4d\u022d\u1e4f\u014d\u1e51\u1e53\u014f\u022f\u0231\xf6\u022b\u1ecf\u0151\u01d2\u020d\u020f\u01a1\u1edd\u1edb\u1ee1\u1edf\u1ee3\u1ecd\u1ed9\u01eb\u01ed\xf8\u01ff\u0254\ua74b\ua74d\u0275"},{base:"oi",letters:"\u01a3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\ua74f"},{base:"p",letters:"p\u24df\uff50\u1e55\u1e57\u01a5\u1d7d\ua751\ua753\ua755"},{base:"q",letters:"q\u24e0\uff51\u024b\ua757\ua759"},{base:"r",letters:"r\u24e1\uff52\u0155\u1e59\u0159\u0211\u0213\u1e5b\u1e5d\u0157\u1e5f\u024d\u027d\ua75b\ua7a7\ua783"},{base:"s",letters:"s\u24e2\uff53\xdf\u015b\u1e65\u015d\u1e61\u0161\u1e67\u1e63\u1e69\u0219\u015f\u023f\ua7a9\ua785\u1e9b"},{base:"t",letters:"t\u24e3\uff54\u1e6b\u1e97\u0165\u1e6d\u021b\u0163\u1e71\u1e6f\u0167\u01ad\u0288\u2c66\ua787"},{base:"tz",letters:"\ua729"},{base:"u",letters:"u\u24e4\uff55\xf9\xfa\xfb\u0169\u1e79\u016b\u1e7b\u016d\xfc\u01dc\u01d8\u01d6\u01da\u1ee7\u016f\u0171\u01d4\u0215\u0217\u01b0\u1eeb\u1ee9\u1eef\u1eed\u1ef1\u1ee5\u1e73\u0173\u1e77\u1e75\u0289"},{base:"v",letters:"v\u24e5\uff56\u1e7d\u1e7f\u028b\ua75f\u028c"},{base:"vy",letters:"\ua761"},{base:"w",letters:"w\u24e6\uff57\u1e81\u1e83\u0175\u1e87\u1e85\u1e98\u1e89\u2c73"},{base:"x",letters:"x\u24e7\uff58\u1e8b\u1e8d"},{base:"y",letters:"y\u24e8\uff59\u1ef3\xfd\u0177\u1ef9\u0233\u1e8f\xff\u1ef7\u1e99\u1ef5\u01b4\u024f\u1eff"},{base:"z",letters:"z\u24e9\uff5a\u017a\u1e91\u017c\u017e\u1e93\u1e95\u01b6\u0225\u0240\u2c6c\ua763"}],sr=new RegExp("["+ar.map((function(t){return t.letters})).join("")+"]","g"),ur={},cr=0;cr<ar.length;cr++)for(var lr=ar[cr],pr=0;pr<lr.letters.length;pr++)ur[lr.letters[pr]]=lr.base;var fr=function(t){return t.replace(sr,(function(t){return ur[t]}))},hr=function(t,e){void 0===e&&(e=er);var r=null;function n(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];if(r&&r.lastThis===this&&e(n,r.lastArgs))return r.lastResult;var i=t.apply(this,n);return r={lastResult:i,lastArgs:n,lastThis:this},i}return n.clear=function(){r=null},n}(fr),dr=function(t){return t.replace(/^\s+|\s+$/g,"")},mr=function(t){return"".concat(t.label," ").concat(t.value)},yr=["innerRef"];function vr(t){var e=t.innerRef,r=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=Object.entries(t).filter((function(t){var e=Nt(t,1)[0];return!r.includes(e)}));return o.reduce((function(t,e){var r=Nt(e,2),n=r[0],o=r[1];return t[n]=o,t}),{})}(Bt(t,yr),"onExited","in","enter","exit","appear");return Rt("input",(0,n.Z)({ref:e},r,{css:zt({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var gr=["boxSizing","height","overflow","paddingRight","position"],br={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function _r(t){t.preventDefault()}function xr(t){t.stopPropagation()}function wr(){var t=this.scrollTop,e=this.scrollHeight,r=t+this.offsetHeight;0===t?this.scrollTop=1:r===e&&(this.scrollTop=t-1)}function Or(){return"ontouchstart"in window||navigator.maxTouchPoints}var Er=!("undefined"==typeof window||!window.document||!window.document.createElement),Sr=0,Pr={capture:!1,passive:!1},jr=function(){return document.activeElement&&document.activeElement.blur()},Ar={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Cr(t){var e=t.children,r=t.lockEnabled,n=t.captureEnabled,i=function(t){var e=t.isEnabled,r=t.onBottomArrive,n=t.onBottomLeave,
vendor: 12,192 bytes, line 1
1i=t.onTopArrive,a=t.onTopLeave,s=(0,o.useRef)(!1),u=(0,o.useRef)(!1),c=(0,o.useRef)(0),l=(0,o.useRef)(null),p=(0,o.useCallback)((function(t,e){if(null!==l.current){var o=l.current,c=o.scrollTop,p=o.scrollHeight,f=o.clientHeight,h=l.current,d=e>0,m=p-f-c,y=!1;m>e&&s.current&&(n&&n(t),s.current=!1),d&&u.current&&(a&&a(t),u.current=!1),d&&e>m?(r&&!s.current&&r(t),h.scrollTop=p,y=!0,s.current=!0):!d&&-e>c&&(i&&!u.current&&i(t),h.scrollTop=0,y=!0,u.current=!0),y&&function(t){t.preventDefault(),t.stopPropagation()}(t)}}),[r,n,i,a]),f=(0,o.useCallback)((function(t){p(t,t.deltaY)}),[p]),h=(0,o.useCallback)((function(t){c.current=t.changedTouches[0].clientY}),[]),d=(0,o.useCallback)((function(t){var e=c.current-t.changedTouches[0].clientY;p(t,e)}),[p]),m=(0,o.useCallback)((function(t){if(t){var e=!!we&&{passive:!1};t.addEventListener("wheel",f,e),t.addEventListener("touchstart",h,e),t.addEventListener("touchmove",d,e)}}),[d,h,f]),y=(0,o.useCallback)((function(t){t&&(t.removeEventListener("wheel",f,!1),t.removeEventListener("touchstart",h,!1),t.removeEventListener("touchmove",d,!1))}),[d,h,f]);return(0,o.useEffect)((function(){if(e){var t=l.current;return m(t),function(){y(t)}}}),[e,m,y]),function(t){l.current=t}}({isEnabled:void 0===n||n,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),a=function(t){var e=t.isEnabled,r=t.accountForScrollbars,n=void 0===r||r,i=(0,o.useRef)({}),a=(0,o.useRef)(null),s=(0,o.useCallback)((function(t){if(Er){var e=document.body,r=e&&e.style;if(n&&gr.forEach((function(t){var e=r&&r[t];i.current[t]=e})),n&&Sr<1){var o=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+o||0;Object.keys(br).forEach((function(t){var e=br[t];r&&(r[t]=e)})),r&&(r.paddingRight="".concat(s,"px"))}e&&Or()&&(e.addEventListener("touchmove",_r,Pr),t&&(t.addEventListener("touchstart",wr,Pr),t.addEventListener("touchmove",xr,Pr))),Sr+=1}}),[n]),u=(0,o.useCallback)((function(t){if(Er){var e=document.body,r=e&&e.style;Sr=Math.max(Sr-1,0),n&&Sr<1&&gr.forEach((function(t){var e=i.current[t];r&&(r[t]=e)})),e&&Or()&&(e.removeEventListener("touchmove",_r,Pr),t&&(t.removeEventListener("touchstart",wr,Pr),t.removeEventListener("touchmove",xr,Pr)))}}),[n]);return(0,o.useEffect)((function(){if(e){var t=a.current;return s(t),function(){u(t)}}}),[e,s,u]),function(t){a.current=t}}({isEnabled:r});return Rt(o.Fragment,null,r&&Rt("div",{onClick:jr,css:Ar}),e((function(t){i(t),a(t)})))}var Tr={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},kr=function(t){var e=t.name,r=t.onFocus;return Rt("input",{required:!0,name:e,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:Tr,value:"",onChange:function(){}})},Mr={clearIndicator:qe,container:function(t){var e=t.isDisabled;return{label:"container",direction:t.isRtl?"rtl":void 0,pointerEvents:e?"none":void 0,position:"relative"}},control:function(t,e){var r=t.isDisabled,n=t.isFocused,o=t.theme,a=o.colors,s=o.borderRadius,u=o.spacing;return(0,i.Z)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:u.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},e?{}:{backgroundColor:r?a.neutral5:a.neutral0,borderColor:r?a.neutral10:n?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:n?a.primary:a.neutral30}})},dropdownIndicator:Ue,group:function(t,e){var r=t.theme.spacing;return e?{}:{paddingBottom:2*r.baseUnit,paddingTop:2*r.baseUnit}},groupHeading:function(t,e){var r=t.theme,n=r.colors,o=r.spacing;return(0,i.Z)({label:"group",cursor:"default",display:"block"},e?{}:{color:n.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(t,e){var r=t.isDisabled,n=t.theme,o=n.spacing.baseUnit,a=n.colors;return(0,i.Z)({label:"indicatorSeparator",alignSelf:"stretch",width:1},e?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(t,e){var r=t.isDisabled,n=t.value,o=t.theme,a=o.spacing,s=o.colors;return(0,i.Z)((0,i.Z)({visibility:r?"hidden":"visible",transform:n?"translateZ(0)":""},Ye),e?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},loadingIndicator:function(t,e){var r=t.isFocused,n=t.size,o=t.theme,a=o.colors,s=o.spacing.baseUnit;return(0,i.Z)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"},e?{}:{color:r?a.neutral60:a.neutral20,padding:2*s})},loadingMessage:Te,menu:function(t,e){var r,n=t.placement,o=t.theme,a=o.borderRadius,s=o.spacing,u=o.colors;return(0,i.Z)((r={label:"menu"},(0,Vt.Z)(r,function(t){return t?{bottom:"top",top:"bottom"}[t]:"bottom"}(n),"100%"),(0,Vt.Z)(r,"position","absolute"),(0,Vt.Z)(r,"width","100%"),(0,Vt.Z)(r,"zIndex",1),r),e?{}:{backgroundColor:u.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},menuList:function(t,e){var r=t.maxHeight,n=t.theme.spacing.baseUnit;return(0,i.Z)({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},e?{}:{paddingBottom:n,paddingTop:n})},menuPortal:function(t){var e=t.rect,r=t.offset,n=t.position;return{left:e.left,position:n,top:r,width:e.width,zIndex:1}},multiValue:function(t,e){var r=t.theme,n=r.spacing,o=r.borderRadius,a=r.colors;return(0,i.Z)({label:"multiValue",display:"flex",minWidth:0},e?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:n.baseUnit/2})},multiValueLabel:function(t,e){var r=t.theme,n=r.borderRadius,o=r.colors,a=t.cropWithEllipsis;return(0,i.Z)({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},e?{}:{borderRadius:n/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(t,e){var r=t.theme,n=r.spacing,o=r.borderRadius,a=r.colors,s=t.isFocused;return(0,i.Z)({alignItems:"center",display:"flex"},e?{}:{borderRadius:o/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},noOptionsMessage:Ce,option:function(t,e){var r=t.isDisabled,n=t.isFocused,o=t.isSelected,a=t.theme,s=a.spacing,u=a.colors;return(0,i.Z)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},e?{}:{backgroundColor:o?u.primary:n?u.primary25:"transparent",color:r?u.neutral20:o?u.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:r?void 0:o?u.primary:u.primary50}})},placeholder:function(t,e){var r=t.theme,n=r.spacing,o=r.colors;return(0,i.Z)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},e?{}:{color:o.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2})},singleValue:function(t,e){var r=t.isDisabled,n=t.theme,o=n.spacing,a=n.colors;return(0,i.Z)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e?{}:{color:r?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(t,e){var r=t.theme.spacing,n=t.isMulti,o=t.hasValue,a=t.selectProps.controlShouldRenderValue;return(0,i.Z)({alignItems:"center",display:n&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},e?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(2*r.baseUnit,"px")})}},Ir={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Dr={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ge(),captureMenuScroll:!ge(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(t,e){if(t.data.__isNew__)return!0;var r=(0,i.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:mr,trim:!0,matchFrom:"any"},void 0),n=r.ignoreCase,o=r.ignoreAccents,a=r.stringify,s=r.trim,u=r.matchFrom,c=s?dr(e):e,l=s?dr(a(t)):a(t);return n&&(c=c.toLowerCase(),l=l.toLowerCase()),o&&(c=hr(c),l=fr(l)),"start"===u?l.substr(0,c.length)===c:l.indexOf(c)>-1},formatGroupLabel:function(t){return t.label},getOptionLabel:function(t){return t.label},getOptionValue:function(t){return t.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(t){return!!t.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(t){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var e=t.count;return"".concat(e," result").concat(1!==e?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Lr(t,e,r,n){return{type:"option",data:e,isDisabled:Vr(t,e,r),isSelected:Ur(t,e,r),label:Fr(t,e),value:Br(t,e),index:n}}function Rr(t,e){return t.options.map((function(r,n){if("options"in r){var o=r.options.map((function(r,n){return Lr(t,r,e,n)})).filter((function(e){return Nr(t,e)}));return o.length>0?{type:"group",data:r,options:o,index:n}:void 0}var i=Lr(t,r,e,n);return Nr(t,i)?i:void 0})).filter(Oe)}function zr(t){return t.reduce((function(t,e){return"group"===e.type?t.push.apply(t,d(e.options.map((function(t){return t.data})))):t.push(e.data),t}),[])}function Nr(t,e){var r=t.inputValue,n=void 0===r?"":r,o=e.data,i=e.isSelected,a=e.label,s=e.value;return(!$r(t)||!i)&&qr(t,{label:a,value:s,data:o},n)}var Fr=function(t,e){return t.getOptionLabel(e)},Br=function(t,e){return t.getOptionValue(e)};function Vr(t,e,r){return"function"==typeof t.isOptionDisabled&&t.isOptionDisabled(e,r)}function Ur(t,e,r){if(r.indexOf(e)>-1)return!0;if("function"==typeof t.isOptionSelected)return t.isOptionSelected(e,r);var n=Br(t,e);return r.some((function(e){return Br(t,e)===n}))}function qr(t,e,r){return!t.filterOption||t.filterOption(e,r)}var $r=function(t){var e=t.hideSelectedOptions,r=t.isMulti;return void 0===e?r:e},Gr=1,Wr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&(0,u.Z)(t,e)}(l,t);var e,r,a,c=p(l);function l(t){var e;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(e=c.call(this,t)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},e.blockOptionHover=!1,e.isComposing=!1,e.commonProps=void 0,e.initialTouchX=0,e.initialTouchY=0,e.instancePrefix="",e.openAfterFocus=!1,e.scrollToFocusedOptionOnUpdate=!1,e.userIsDragging=void 0,e.controlRef=null,e.getControlRef=function(t){e.controlRef=t},e.focusedOptionRef=null,e.getFocusedOptionRef=function(t){e.focusedOptionRef=t},e.menuListRef=null,e.getMenuListRef=function(t){e.menuListRef=t}
vendor: 9,400 bytes, line 1
1,e.inputRef=null,e.getInputRef=function(t){e.inputRef=t},e.focus=e.focusInput,e.blur=e.blurInput,e.onChange=function(t,r){var n=e.props,o=n.onChange,i=n.name;r.name=i,e.ariaOnChange(t,r),o(t,r)},e.setValue=function(t,r,n){var o=e.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;e.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(e.setState({inputIsHiddenAfterUpdate:!a}),e.onMenuClose()),e.setState({clearFocusValueOnUpdate:!0}),e.onChange(t,{action:r,option:n})},e.selectOption=function(t){var r=e.props,n=r.blurInputOnSelect,o=r.isMulti,i=r.name,a=e.state.selectValue,s=o&&e.isOptionSelected(t,a),u=e.isOptionDisabled(t,a);if(s){var c=e.getOptionValue(t);e.setValue(a.filter((function(t){return e.getOptionValue(t)!==c})),"deselect-option",t)}else{if(u)return void e.ariaOnChange(t,{action:"select-option",option:t,name:i});o?e.setValue([].concat(d(a),[t]),"select-option",t):e.setValue(t,"select-option")}n&&e.blurInput()},e.removeValue=function(t){var r=e.props.isMulti,n=e.state.selectValue,o=e.getOptionValue(t),i=n.filter((function(t){return e.getOptionValue(t)!==o})),a=Ee(r,i,i[0]||null);e.onChange(a,{action:"remove-value",removedValue:t}),e.focusInput()},e.clearValue=function(){var t=e.state.selectValue;e.onChange(Ee(e.props.isMulti,[],null),{action:"clear",removedValues:t})},e.popValue=function(){var t=e.props.isMulti,r=e.state.selectValue,n=r[r.length-1],o=r.slice(0,r.length-1),i=Ee(t,o,o[0]||null);e.onChange(i,{action:"pop-value",removedValue:n})},e.getValue=function(){return e.state.selectValue},e.cx=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ce.apply(void 0,[e.props.classNamePrefix].concat(r))},e.getOptionLabel=function(t){return Fr(e.props,t)},e.getOptionValue=function(t){return Br(e.props,t)},e.getStyles=function(t,r){var n=e.props.unstyled,o=Mr[t](r,n);o.boxSizing="border-box";var i=e.props.styles[t];return i?i(o,r):o},e.getClassNames=function(t,r){var n,o;return null===(n=(o=e.props.classNames)[t])||void 0===n?void 0:n.call(o,r)},e.getElementId=function(t){return"".concat(e.instancePrefix,"-").concat(t)},e.getComponents=function(){return t=e.props,(0,i.Z)((0,i.Z)({},Qe),t.components);var t},e.buildCategorizedOptions=function(){return Rr(e.props,e.state.selectValue)},e.getCategorizedOptions=function(){return e.props.menuIsOpen?e.buildCategorizedOptions():[]},e.buildFocusableOptions=function(){return zr(e.buildCategorizedOptions())},e.getFocusableOptions=function(){return e.props.menuIsOpen?e.buildFocusableOptions():[]},e.ariaOnChange=function(t,r){e.setState({ariaSelection:(0,i.Z)({value:t},r)})},e.onMenuMouseDown=function(t){0===t.button&&(t.stopPropagation(),t.preventDefault(),e.focusInput())},e.onMenuMouseMove=function(t){e.blockOptionHover=!1},e.onControlMouseDown=function(t){if(!t.defaultPrevented){var r=e.props.openMenuOnClick;e.state.isFocused?e.props.menuIsOpen?"INPUT"!==t.target.tagName&&"TEXTAREA"!==t.target.tagName&&e.onMenuClose():r&&e.openMenu("first"):(r&&(e.openAfterFocus=!0),e.focusInput()),"INPUT"!==t.target.tagName&&"TEXTAREA"!==t.target.tagName&&t.preventDefault()}},e.onDropdownIndicatorMouseDown=function(t){if(!(t&&"mousedown"===t.type&&0!==t.button||e.props.isDisabled)){var r=e.props,n=r.isMulti,o=r.menuIsOpen;e.focusInput(),o?(e.setState({inputIsHiddenAfterUpdate:!n}),e.onMenuClose()):e.openMenu("first"),t.preventDefault()}},e.onClearIndicatorMouseDown=function(t){t&&"mousedown"===t.type&&0!==t.button||(e.clearValue(),t.preventDefault(),e.openAfterFocus=!1,"touchend"===t.type?e.focusInput():setTimeout((function(){return e.focusInput()})))},e.onScroll=function(t){"boolean"==typeof e.props.closeMenuOnScroll?t.target instanceof HTMLElement&&he(t.target)&&e.props.onMenuClose():"function"==typeof e.props.closeMenuOnScroll&&e.props.closeMenuOnScroll(t)&&e.props.onMenuClose()},e.onCompositionStart=function(){e.isComposing=!0},e.onCompositionEnd=function(){e.isComposing=!1},e.onTouchStart=function(t){var r=t.touches,n=r&&r.item(0);n&&(e.initialTouchX=n.clientX,e.initialTouchY=n.clientY,e.userIsDragging=!1)},e.onTouchMove=function(t){var r=t.touches,n=r&&r.item(0);if(n){var o=Math.abs(n.clientX-e.initialTouchX),i=Math.abs(n.clientY-e.initialTouchY);e.userIsDragging=o>5||i>5}},e.onTouchEnd=function(t){e.userIsDragging||(e.controlRef&&!e.controlRef.contains(t.target)&&e.menuListRef&&!e.menuListRef.contains(t.target)&&e.blurInput(),e.initialTouchX=0,e.initialTouchY=0)},e.onControlTouchEnd=function(t){e.userIsDragging||e.onControlMouseDown(t)},e.onClearIndicatorTouchEnd=function(t){e.userIsDragging||e.onClearIndicatorMouseDown(t)},e.onDropdownIndicatorTouchEnd=function(t){e.userIsDragging||e.onDropdownIndicatorMouseDown(t)},e.handleInputChange=function(t){var r=e.props.inputValue,n=t.currentTarget.value;e.setState({inputIsHiddenAfterUpdate:!1}),e.onInputChange(n,{action:"input-change",prevInputValue:r}),e.props.menuIsOpen||e.onMenuOpen()},e.onInputFocus=function(t){e.props.onFocus&&e.props.onFocus(t),e.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(e.openAfterFocus||e.props.openMenuOnFocus)&&e.openMenu("first"),e.openAfterFocus=!1},e.onInputBlur=function(t){var r=e.props.inputValue;e.menuListRef&&e.menuListRef.contains(document.activeElement)?e.inputRef.focus():(e.props.onBlur&&e.props.onBlur(t),e.onInputChange("",{action:"input-blur",prevInputValue:r}),e.onMenuClose(),e.setState({focusedValue:null,isFocused:!1}))},e.onOptionHover=function(t){e.blockOptionHover||e.state.focusedOption===t||e.setState({focusedOption:t})},e.shouldHideSelectedOptions=function(){return $r(e.props)},e.onValueInputFocus=function(t){t.preventDefault(),t.stopPropagation(),e.focus()},e.onKeyDown=function(t){var r=e.props,n=r.isMulti,o=r.backspaceRemovesValue,i=r.escapeClearsValue,a=r.inputValue,s=r.isClearable,u=r.isDisabled,c=r.menuIsOpen,l=r.onKeyDown,p=r.tabSelectsValue,f=r.openMenuOnFocus,h=e.state,d=h.focusedOption,m=h.focusedValue,y=h.selectValue;if(!(u||"function"==typeof l&&(l(t),t.defaultPrevented))){switch(e.blockOptionHover=!0,t.key){case"ArrowLeft":if(!n||a)return;e.focusValue("previous");break;case"ArrowRight":if(!n||a)return;e.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)e.removeValue(m);else{if(!o)return;n?e.popValue():s&&e.clearValue()}break;case"Tab":if(e.isComposing)return;if(t.shiftKey||!c||!p||!d||f&&e.isOptionSelected(d,y))return;e.selectOption(d);break;case"Enter":if(229===t.keyCode)break;if(c){if(!d)return;if(e.isComposing)return;e.selectOption(d);break}return;case"Escape":c?(e.setState({inputIsHiddenAfterUpdate:!1}),e.onInputChange("",{action:"menu-close",prevInputValue:a}),e.onMenuClose()):s&&i&&e.clearValue();break;case" ":if(a)return;if(!c){e.openMenu("first");break}if(!d)return;e.selectOption(d);break;case"ArrowUp":c?e.focusOption("up"):e.openMenu("last");break;case"ArrowDown":c?e.focusOption("down"):e.openMenu("first");break;case"PageUp":if(!c)return;e.focusOption("pageup");break;case"PageDown":if(!c)return;e.focusOption("pagedown");break;case"Home":if(!c)return;e.focusOption("first");break;case"End":if(!c)return;e.focusOption("last");break;default:return}t.preventDefault()}},e.instancePrefix="react-select-"+(e.props.instanceId||++Gr),e.state.selectValue=le(t.value),t.menuIsOpen&&e.state.selectValue.length){var r=e.buildFocusableOptions(),n=r.indexOf(e.state.selectValue[0]);e.state.focusedOption=r[n]}return e}return e=l,r=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&ve(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.isDisabled,n=e.menuIsOpen,o=this.state.isFocused;(o&&!r&&t.isDisabled||o&&n&&!t.menuIsOpen)&&this.focusInput(),o&&r&&!t.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||r||!t.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(ve(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(t,e){this.props.onInputChange(t,e)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(t){var e=this,r=this.state,n=r.selectValue,o=r.isFocused,i=this.buildFocusableOptions(),a="first"===t?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(n[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a]},(function(){return e.onMenuOpen()}))}},{key:"focusValue",value:function(t){var e=this.state,r=e.selectValue,n=e.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=r.indexOf(n);
vendor: 4,643 bytes, line 1
1n||(o=-1);var i=r.length-1,a=-1;if(r.length){switch(t){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:r[a]})}}}},{key:"focusOption",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",e=this.props.pageSize,r=this.state.focusedOption,n=this.getFocusableOptions();if(n.length){var o=0,i=n.indexOf(r);r||(i=-1),"up"===t?o=i>0?i-1:n.length-1:"down"===t?o=(i+1)%n.length:"pageup"===t?(o=i-e)<0&&(o=0):"pagedown"===t?(o=i+e)>n.length-1&&(o=n.length-1):"last"===t&&(o=n.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:n[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Ir):(0,i.Z)((0,i.Z)({},Ir),this.props.theme):Ir}},{key:"getCommonProps",value:function(){var t=this.clearValue,e=this.cx,r=this.getStyles,n=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,u=s.isMulti,c=s.isRtl,l=s.options;return{clearValue:t,cx:e,getStyles:r,getClassNames:n,getValue:o,hasValue:this.hasValue(),isMulti:u,isRtl:c,options:l,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var t=this.props,e=t.isClearable,r=t.isMulti;return void 0===e?r:e}},{key:"isOptionDisabled",value:function(t,e){return Vr(this.props,t,e)}},{key:"isOptionSelected",value:function(t,e){return Ur(this.props,t,e)}},{key:"filterOption",value:function(t,e){return qr(this.props,t,e)}},{key:"formatOptionLabel",value:function(t,e){if("function"==typeof this.props.formatOptionLabel){var r=this.props.inputValue,n=this.state.selectValue;return this.props.formatOptionLabel(t,{context:e,inputValue:r,selectValue:n})}return this.getOptionLabel(t)}},{key:"formatGroupLabel",value:function(t){return this.props.formatGroupLabel(t)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var t=this.props,e=t.isDisabled,r=t.isSearchable,a=t.inputId,s=t.inputValue,u=t.tabIndex,c=t.form,l=t.menuIsOpen,p=t.required,f=this.getComponents().Input,h=this.state,d=h.inputIsHidden,m=h.ariaSelection,y=this.commonProps,v=a||this.getElementId("input"),g=(0,i.Z)((0,i.Z)((0,i.Z)({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":p,role:"combobox"},l&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!r&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==m?void 0:m.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return r?o.createElement(f,(0,n.Z)({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:e,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:s},g)):o.createElement(vr,(0,n.Z)({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:se,onFocus:this.onInputFocus,disabled:e,tabIndex:u,inputMode:"none",form:c,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,e=this.getComponents(),r=e.MultiValue,i=e.MultiValueContainer,a=e.MultiValueLabel,s=e.MultiValueRemove,u=e.SingleValue,c=e.Placeholder,l=this.commonProps,p=this.props,f=p.c
1ontrolShouldRenderValue,h=p.isDisabled,d=p.isMulti,m=p.inputValue,y=p.placeholder,v=this.state,g=v.selectValue,b=v.focusedValue,_=v.isFocused;if(!this.hasValue()||!f)return m?null:o.createElement(c,(0,n.Z)({},l,{key:"placeholder",isDisabled:h,isFocused:_,innerProps:{id:this.getElementId("placeholder")}}),y);if(d)return g.map((function(e,u){var c=e===b,p="".concat(t.getOptionLabel(e),"-").concat(t.getOptionValue(e));return o.createElement(r,(0,n.Z)({},l,{components:{Container:i,Label:a,Remove:s},isFocused:c,isDisabled:h,key:p,index:u,removeProps:{onClick:function(){return t.removeValue(e)},onTouchEnd:function(){return t.removeValue(e)},onMouseDown:function(t){t.preventDefault()}},data:e}),t.formatOptionLabel(e,"value"))}));if(m)return null;var x=g[0];return o.createElement(u,(0,n.Z)({},l,{data:x,isDisabled:h}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents().ClearIndicator,e=this.commonProps,r=this.props,i=r.isDisabled,a=r.isLoading,s=this.state.isFocused;if(!this.isClearable()||!t||i||!this.hasValue()||a)return null;var u={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(t,(0,n.Z)({},e,{innerProps:u,isFocused:s}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents().LoadingIndicator,e=this.commonProps,r=this.props,i=r.isDisabled,a=r.isLoading,s=this.state.isFocused;return t&&a?o.createElement(t,(0,n.Z)({},e,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:s})):null}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),e=t.DropdownIndicator,r=t.IndicatorSeparator;if(!e||!r)return null;var i=this.commonProps,a=this.props.isDisabled,s=this.state.isFocused;return o.createElement(r,(0,n.Z)({},i,{isDisabled:a,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents().DropdownIndicator;if(!t)return null;var e=this.commonProps,r=this.props.isDisabled,i=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(t,(0,n.Z)({},e,{innerProps:a,isDisabled:r,isFocused:i}))}},{key:"renderMenu",value:function(){var t=this,e=this.getComponents(),r=e.Group,i=e.GroupHeading,a=e.Menu,s=e.MenuList,u=e.MenuPortal,c=e.LoadingMessage,l=e.NoOptionsMessage,p=e.Option,f=this.commonProps,h=this.state.focusedOption,d=this.props,m=d.captureMenuScroll,y=d.inputValue,v=d.isLoading,g=d.loadingMessage,b=d.minMenuHeight,_=d.maxMenuHeight,x=d.menuIsOpen,w=d.menuPlacement,O=d.menuPosition,E=d.menuPortalTarget,S=d.menuShouldBlockScroll,P=d.menuShouldScrollIntoView,j=d.noOptionsMessage,A=d.onMenuScrollToTop,C=d.onMenuScrollToBottom;if(!x)return null;var T,k=function(e,r){var i=e.type,a=e.data,s=e.isDisabled,u=e.isSelected,c=e.label,l=e.value,d=h===a,m=s?void 0:function(){return t.onOptionHover(a)},y=s?void 0:function(){return t.selectOption(a)},v="".concat(t.getElementId("option"),"-").concat(r),g={id:v,onClick:y,onMouseMove:m,onMouseOver:m,tabIndex:-1};return o.createElement(p,(0,n.Z)({},f,{innerProps:g,data:a,isDisabled:s,isSelected:u,key:v,label:c,type:i,value:l,isFocused:d,innerRef:d?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(e.data,"menu"))};if(this.hasOptions())T=this.getCategorizedOptions().map((function(e){if("group"===e.type){var a=e.data,s=e.options,u=e.index,c="".concat(t.getElementId("group"),"-").concat(u),l="".concat(c,"-heading");return o.createElement(r,(0,n.Z)({},f,{key:c,data:a,options:s,Heading:i,headingProps:{id:l,data:e.data},label:t.formatGroupLabel(e.data)}),e.options.map((function(t){return k(t,"".concat(u,"-").concat(t.index))})))}if("option"===e.type)return k(e,"".concat(e.index))}));else if(v){var M=g({inputValue:y});if(null===M)return null;T=o.createElement(c,f,M)}else{var I=j({inputValue:y});if(null===I)return null;T=o.createElement(l,f,I)}var D={minMenuHeight:b,maxMenuHeight:_,menuPlacement:w,menuPosition:O,menuShouldScrollIntoView:P},L=o.createElement(je,(0,n.Z)({},f,D),(function(e){var r=e.ref,i=e.placerProps,u=i.placement,c=i.maxHeight;return o.createElement(a,(0,n.Z)({},f,D,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove,id:t.getElementId("listbox")},isLoading:v,placement:u}),o.createElement(Cr,{captureEnabled:m,onTopArrive:A,onBottomArrive:C,lockEnabled:S},(function(e){return o.createElement(s,(0,n.Z)({},f,{innerRef:function(r){t.getMenuListRef(r),e(r)},isLoading:v,maxHeight:c,focusedOption:h}),T)})))}));return E||"fixed"===O?o.createElement(u,(0,n.Z)({},f,{appendTo:E,controlElement:this.controlRef,menuPlacement:w,menuPosition:O}),L):L}},{key:"renderFormField",value:function(){var t=this,e=this.props,r=e.delimiter,n=e.isDisabled,i=e.isMulti,a=e.name,s=e.required,u=this.state.selectValue;if(s&&!this.hasValue()&&!n)return o.createElement(kr,{name:a,onFocus:this.onValueInputFocus});if(a&&!n){if(i){if(r){var c=u.map((function(e){return t.getOptionValue(e)})).join(r);return o.createElement("input",{name:a,type:"hidden",value:c})}var l=u.length>0?u.map((function(e,r){return o.createElement("input",{key:"i-".concat(r),name:a,type:"hidden",value:t.getOptionValue(e)})})):o.createElement("input",{name:a,type:"hidden",value:""});return o.createElement("div",null,l)}var p=u[0]?this.getOptionValue(u[0]):"";return o.createElement("input",{name:a,type:"hidden",value:p})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,e=this.state,r=e.ariaSelection,i=e.focusedOption,a=e.focusedValue,s=e.isFocused,u=e.selectValue,c=this.getFocusableOptions();return o.createElement(ir,(0,n.Z)({},t,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:i,focusedValue:a,isFocused:s,selectValue:u,focusableOptions:c}))}},{key:"render",value:function(){var t=this.getComponents(),e=t.Control,r=t.IndicatorsContainer,i=t.SelectContainer,a=t.ValueContainer,s=this.props,u=s.className,c=s.id,l=s.isDisabled,p=s.menuIsOpen,f=this.state.isFocused,h=this.commonProps=this.getCommonProps();return o.createElement(i,(0,n.Z)({},h,{className:u,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:f}),this.renderLiveRegion(),o.createElement(e,(0,n.Z)({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:f,menuIsOpen:p}),o.createElement(a,(0,n.Z)({},h,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),o.createElement(r,(0,n.Z)({},h,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],a=[{key:"getDerivedStateFromProps",value:function(t,e){var r=e.prevProps,n=e.clearFocusValueOnUpdate,o=e.inputIsHiddenAfterUpdate,a=e.ariaSelection,s=e.isFocused,u=e.prevWasFocused,c=t.options,l=t.value,p=t.menuIsOpen,f=t.inputValue,h=t.isMulti,d=le(l),m={};if(r&&(l!==r.value||c!==r.options||p!==r.menuIsOpen||f!==r.inputValue)){var y=p?function(t,e){return zr(Rr(t,e))}(t,d):[],v=n?function(t,e){var r=t.focusedValue,n=t.selectValue.indexOf(r);if(n>-1){if(e.indexOf(r)>-1)return r;if(n<e.length)return e[n]}return null}(e,d):null,g=function(t,e){var r=t.focusedOption;return r&&e.indexOf(r)>-1?r:e[0]}(e,y);m={selectValue:d,focusedOption:g,focusedValue:v,clearFocusValueOnUpdate:!1}}var b=null!=o&&t!==r?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},_=a,x=s&&u;return s&&!x&&(_={value:Ee(h,d,d[0]||null),options:d,action:"initial-input-focus"},x=!u),"initial-input-focus"===(null==a?void 0:a.action)&&(_=null),(0,i.Z)((0,i.Z)((0,i.Z)({},m),b),{},{prevProps:t,ariaSelection:_,prevWasFocused:x})}}],r&&s(e.prototype,r),a&&s(e,a),Object.defineProperty(e,"prototype",{writable:!1}),l}(o.Component);Wr.defaultProps=Dr;var Zr=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"],Hr=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function Kr(t){var e=t.defaultOptions,r=void 0!==e&&e,n=t.cacheOptions,a=void 0!==n&&n,s=t.loadOptions;t.options;var u=t.isLoading,c=void 0!==u&&u,l=t.onInputChange,p=t.filterOption,f=void 0===p?null:p,h=Bt(t,Hr),d=h.inputValue,m=(0,o.useRef)(void 0),y=(0,o.useRef)(!1),v=Nt((0,o.useState)(Array.isArray(r)?r:void 0),2),g=v[0],b=v[1],_=Nt((0,o.useState)(void 0!==d?d:""),2),x=_[0],w=_[1],O=Nt((0,o.useState)(!0===r),2),E=O[0],S=O[1],P=Nt((0,o.useState)(void 0),2),j=P[0],A=P[1],C=Nt((0,o.useState)([]),2),T=C[0],k=C[1],M=Nt((0,o.useState)(!1),2),I=M[0],D=M[1],L=Nt((0,o.useState)({}),2),R=L[0],z=L[1],N=Nt((0,o.useState)(void 0),2),F=N[0],B=N[1],V=Nt((0,o.useState)(void 0),2),U=V[0],q=V[1];a!==U&&(z({}),q(a)),r!==F&&(b(Array.isArray(r)?r:void 0),B(r)),(0,o.useEffect)((function(){return y.current=!0,function(){y.current=!1}}),[]);var $=(0,o.useCallback)((function(t,e){if(!s)return e();var r=s(t,e);r&&"function"==typeof r.then&&r.then(e,(function(){return e()}))}),[s]);(0,o.useEffect)((function(){!0===r&&$(x,(function(t){y.current&&(b(t||[]),S(!!m.current))}))}),[]);var G=(0,o.useCallback)((function(t,e){var r=function(t,e,r){if(r){var n=r(t,e);if("string"==typeof n)return n}return t}(t,e,l);if(!r)return m.current=void 0,w(""),A(""),k([]),S(!1),void D(!1);if(a&&R[r])w(r),A(r),k(R[r]),S(!1),D(!1);else{var n=m.current={};w(r),S(!0),D(!j),$(r,(function(t){y&&n===m.current&&(m.current=void 0,S(!1),A(r),k(t||[]),D(!1),z(t?(0,i.Z)((0,i.Z)({},R),{},(0,Vt.Z)({},r,t)):R))}))}}),[a,$,j,R,l]),W=I?[]:x&&j?T:g||[];return(0,i.Z)((0,i.Z)({},h),{},{options:W,isLoading:E||c,onInputChange:G,filterOption:f})}var Yr=(0,o.forwardRef)((function(t,e){var r=function(t){var e=t.defaultInputValue,r=void 0===e?"":e,n=t.defaultMenuIsOpen,a=void 0!==n&&n,s=t.defaultValue,u=void 0===s?null:s,c=t.inputValue,l=t.menuIsOpen,p=t.onChange,f
1=t.onInputChange,h=t.onMenuClose,d=t.onMenuOpen,m=t.value,y=Bt(t,Zr),v=Nt((0,o.useState)(void 0!==c?c:r),2),g=v[0],b=v[1],_=Nt((0,o.useState)(void 0!==l?l:a),2),x=_[0],w=_[1],O=Nt((0,o.useState)(void 0!==m?m:u),2),E=O[0],S=O[1],P=(0,o.useCallback)((function(t,e){"function"==typeof p&&p(t,e),S(t)}),[p]),j=(0,o.useCallback)((function(t,e){var r;"function"==typeof f&&(r=f(t,e)),b(void 0!==r?r:t)}),[f]),A=(0,o.useCallback)((function(){"function"==typeof d&&d(),w(!0)}),[d]),C=(0,o.useCallback)((function(){"function"==typeof h&&h(),w(!1)}),[h]),T=void 0!==c?c:g,k=void 0!==l?l:x,M=void 0!==m?m:E;return(0,i.Z)((0,i.Z)({},y),{},{inputValue:T,menuIsOpen:k,onChange:P,onInputChange:j,onMenuClose:C,onMenuOpen:A,value:M})}(Kr(t));return o.createElement(Wr,(0,n.Z)({ref:e},r))})),Xr=Yr},37478:(t,e,r)=>{"use strict";var n=r(40210),o=r(21924),i=r(70631),a=n("%TypeError%"),s=n("%WeakMap%",!0),u=n("%Map%",!0),c=o("WeakMap.prototype.get",!0),l=o("WeakMap.prototype.set",!0),p=o("WeakMap.prototype.has",!0),f=o("Map.prototype.get",!0),h=o("Map.prototype.set",!0),d=o("Map.prototype.has",!0),m=function(t,e){for(var r,n=t;null!==(r=n.next);n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r};t.exports=function(){var t,e,r,n={assert:function(t){if(!n.has(t))throw new a("Side channel does not contain "+i(t))},get:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(t)return c(t,n)}else if(u){if(e)return f(e,n)}else if(r)return function(t,e){var r=m(t,e);return r&&r.value}(r,n)},has:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(t)return p(t,n)}else if(u){if(e)return d(e,n)}else if(r)return function(t,e){return!!m(t,e)}(r,n);return!1},set:function(n,o){s&&n&&("object"==typeof n||"function"==typeof n)?(t||(t=new s),l(t,n,o)):u?(e||(e=new u),h(e,n,o)):(r||(r={key:{},next:null}),function(t,e,r){var n=m(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(r,n,o))}};return n}},43992:t=>{!function(){"use strict";var e,r,n,o,i,a="properties",s="deepProperties",u="propertyDescriptors",c="staticProperties",l="staticDeepProperties",p="staticPropertyDescriptors",f="configuration",h="deepConfiguration",d="deepProps",m="deepStatics",y="deepConf",v="initializers",g="methods",b="composers",_="compose";function x(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[])}function w(t,e){return Array.prototype.slice.call(arguments,2).reduce(t,e)}var O=w.bind(0,(function(t,e){if(e)for(var r=x(e),n=0;n<r.length;n+=1)Object.defineProperty(t,r[n],Object.getOwnPropertyDescriptor(e,r[n]));return t}));function E(t){return"function"==typeof t}function S(t){return t&&"object"==typeof t||E(t)}function P(t){return t&&"object"==typeof t&&t.__proto__==Object.prototype}var j=w.bind(0,(function t(r,n){if(n===e)return r;if(Array.isArray(n))return(Array.isArray(r)?r:[]).concat(n);if(!P(n))return n;for(var o,i,a=x(n),s=0;s<a.length;)o=a[s++],(i=Object.getOwnPropertyDescriptor(n,o)).hasOwnProperty("value")?i.value!==e&&(r[o]=t(P(r[o])||Array.isArray(n[o])?r[o]:{},n[o])):Object.defineProperty(r,o,i);return r}));function A(){return(r=Array.prototype.concat.apply([],arguments).filter((function(t,e,r){return E(t)&&r.indexOf(t)===e}))).length?r:e}function C(t,e){function n(r,n){S(e[r])&&(S(t[r])||(t[r]={}),(n||O)(t[r],e[r]))}function o(n){(r=A(t[n],e[n]))&&(t[n]=r)}return e&&S(e=e[_]||e)&&(n(g),n(a),n(s,j),n(u),n(c),n(l,j),n(p),n(f),n(h,j),o(v),o(b)),t}function T(){return function(t){return r=function t(r){var n,o,i=t[_]||{},c={__proto__:i[g]},l=i[v],p=Array.prototype.slice.apply(arguments),f=i[s];if(f&&j(c,f),(f=i[a])&&O(c,f),(f=i[u])&&Object.defineProperties(c,f),!l||!l.length)return c;for(r===e&&(r={}),i=0;i<l.length;)E(n=l[i++])&&(c=(o=n.call(c,r,{instance:c,stamp:t,args:p}))===e?c:o);return c},(n=t[l])&&j(r,n),(n=t[c])&&O(r,n),(n=t[p])&&Object.defineProperties(r,n),n=E(r[_])?r[_]:T,O(r[_]=function(){return n.apply(this,arguments)},t),r}(Array.prototype.concat.apply([this],arguments).reduce(C,{}))}function k(t){return E(t)&&E(t[_])}var M={};function I(t,i){return function(){return(o={})[t]=i.apply(e,Array.prototype.concat.apply([{}],arguments)),((r=this)&&r[_]||n).call(r,o)}}M[g]=I(g,O),M[a]=M.props=I(a,O),M[v]=M.init=I(v,A),M[b]=I(b,A),M[s]=M[d]=I(s,j),M[c]=M.statics=I(c,O),M[l]=M[m]=I(l,j
1),M[f]=M.conf=I(f,O),M[h]=M[y]=I(h,j),M[u]=I(u,O),M[p]=I(p,O),n=M[_]=O((function(){for(var t,x,w=0,E=[],P=arguments,C=this;w<P.length;)S(t=P[w++])&&E.push(k(t)?t:((o={})[g]=(x=t)[g]||e,n=x.props,o[a]=S((r=x[a])||n)?O({},n,r):e,o[v]=A(x.init,x[v]),o[b]=A(x[b]),n=x[d],o[s]=S((r=x[s])||n)?j({},n,r):e,o[u]=x[u],n=x.statics,o[c]=S((r=x[c])||n)?O({},n,r):e,n=x[m],o[l]=S((r=x[l])||n)?j({},n,r):e,r=x[p],o[p]=S((n=x.name&&{name:{value:x.name}})||r)?O({},r,n):e,n=x.conf,o[f]=S((r=x[f])||n)?O({},n,r):e,n=x[y],o[h]=S((r=x[h])||n)?j({},n,r):e,o));if(t=T.apply(C||i,E),C&&E.unshift(C),Array.isArray(P=t[_][b]))for(w=0;w<P.length;)t=k(C=P[w++]({stamp:t,composables:E}))?C:t;return t}),M),M.create=function(){return this.apply(e,arguments)},(o={})[c]=M,i=T(o),n[_]=n.bind(),n.version="4.3.2",t.exports=n}()},80517:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>rO,helpers:()=>eO});var n={};r.r(n),r.d(n,{JsonPatchError:()=>xr,_areEquals:()=>kr,applyOperation:()=>Pr,applyPatch:()=>jr,applyReducer:()=>Ar,deepClone:()=>wr,getValueByPointer:()=>Sr,validate:()=>Tr,validator:()=>Cr});var o={};r.r(o),r.d(o,{compare:()=>Fr,generate:()=>zr,observe:()=>Rr,unobserve:()=>Lr});var i={};r.r(i),r.d(i,{hasElementSourceMap:()=>Ts,includesClasses:()=>Ms,includesSymbols:()=>ks,isAnnotationElement:()=>Ss,isArrayElement:()=>xs,isBooleanElement:()=>bs,isCommentElement:()=>Ps,isElement:()=>ms,isLinkElement:()=>Os,isMemberElement:()=>ws,isNullElement:()=>gs,isNumberElement:()=>vs,isObjectElement:()=>_s,isParseResultElement:()=>js,isPrimitiveElement:()=>Cs,isRefElement:()=>Es,isSourceMapElement:()=>As,isStringElement:()=>ys});var a={};r.r(a),r.d(a,{isJSONReferenceElement:()=>rp,isJSONSchemaElement:()=>ep,isLinkDescriptionElement:()=>op,isMediaElement:()=>np});var s={};r.r(s),r.d(s,{isOpenApi3_0LikeElement:()=>Mp,isOpenApiExtension:()=>Fp,isParameterLikeElement:()=>Ip,isReferenceLikeElement:()=>Dp,isRequestBodyLikeElement:()=>Lp,isResponseLikeElement:()=>Rp,isServerLikeElement:()=>zp,isTagLikeElement:()=>Np});var u={};r.r(u),r.d(u,{isBooleanJsonSchemaElement:()=>Jf,isCallbackElement:()=>Cf,isComponentsElement:()=>Tf,isContactElement:()=>kf,isExampleElement:()=>Mf,isExternalDocumentationElement:()=>If,isHeaderElement:()=>Df,isInfoElement:()=>Lf,isLicenseElement:()=>Rf,isLinkElement:()=>zf,isLinkElementExternal:()=>Nf,isMediaTypeElement:()=>rh,isOpenApi3_0Element:()=>Bf,isOpenapiElement:()=>Ff,isOperationElement:()=>Vf,isParameterElement:()=>Uf,isPathItemElement:()=>qf,isPathItemElementExternal:()=>$f,isPathsElement:()=>Gf,isReferenceElement:()=>Wf,isReferenceElementExternal:()=>Zf,isRequestBodyElement:()=>Hf,isResponseElement:()=>Kf,isResponsesElement:()=>Yf,isSchemaElement:()=>Xf,isSecurityRequirementElement:()=>Qf,isServerElement:()=>th,isServerVariableElement:()=>eh});var c={};r.r(c),r.d(c,{isBooleanJsonSchemaElement:()=>kg,isCallbackElement:()=>sg,isComponentsElement:()=>ug,isContactElement:()=>cg,isExampleElement:()=>lg,isExternalDocumentationElement:()=>pg,isHeaderElement:()=>fg,isInfoElement:()=>hg,isJsonSchemaDialectElement:()=>dg,isLicenseElement:()=>mg,isLinkElement:()=>yg,isLinkElementExternal:()=>vg,isMediaTypeElement:()=>Lg,isOpenApi3_1Element:()=>bg,isOpenapiElement:()=>gg,isOperationElement:()=>_g,isParameterElement:()=>xg,isPathItemElement:()=>wg,isPathItemElementExternal:()=>Og,isPathsElement:()=>Eg,isReferenceElement:()=>Sg,isReferenceElementExternal:()=>Pg,isRequestBodyElement:()=>jg,isResponseElement:()=>Ag,isResponsesElement:()=>Cg,isSchemaElement:()=>Tg,isSecurityRequirementElement:()=>Mg,isServerElement:()=>Ig,isServerVariableElement:()=>Dg});var l={};r.r(l),r.d(l,{cookie:()=>Uw,header:()=>Vw,path:()=>Nw,query:()=>Fw});var p=r(92093),f=r(14058),h=r(51675),d=r(48403),m=r(34501),y=r(82507),v=r(82108),g=r(18180),b=r(80621),_=r(52201),x=r(27398);function w(t){return w="function"==typeof _&&"symbol"==typeof x?function(t){return typeof t}:function(t){return t&&"function"==typeof _&&t.constructor===_&&t!==_.prototype?"symbol":typeof t},w(t)}var O=r(26189);function E(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==w(t)||null===t)return t;var r=t[O];if(void 0!==r){var n=r.call(t,"string");if("object"!==w(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===w(e)?e:String(e)}(e))in t?b(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function S(t,e){var r=p(t);if(f){var n=f(t);e&&(n=h(n).call(n,(function(e){return d(t,e).enumerable}))),m(r).apply(r,n)}return r}function P(t){for(var e=1;e<arguments.length;e++){var r,n,o=null!=arguments[e]?arguments[e]:{};e%2?y(r=S(Object(o),!0)).call(r,(function(e){E(t,e,o[e])})):v?g(t,v(o)):y(n=S(Object(o))).call(n,(function(e){b(t,e,d(o,e))}))}return t}var j=r(8575),A=(r(31905),r(80129)),C=r.n(A);function T(t){return null==t}var k={isNothing:T,isObject:function(t){return"object"==typeof t&&null!==t},toArray:function(t){return Array.isArray(t)?t:T(t)?[]:[t]},repeat:function(t,e){var r,n="";for(r=0;r<e;r+=1)n+=t;return n},isNegativeZero:function(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t},extend:function(t,e){var r,n,o,i;if(e)for(r=0,n=(i=Object.keys(e)).length;r<n;r+=1)t[o=i[r]]=e[o];return t}};function M(t,e){var r="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+="\n\n"+t.mark.snippet),n+" "+r):n}function I(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=M(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}I.prototype=Object.create(Error.prototype),I.prototype.constructor=I,I.prototype.toString=function(t){return this.name+": "+M(this,t)};var D=I;function L(t,e,r,n,o){var i="",a="",s=Math.floor(o/2)-1;return n-e>s&&(e=n-s+(i=" ... ").length),r-n>s&&(r=n+s-(a=" ...").length),{str:i+t.slice(e,r).replace(/\t/g,"\u2192")+a,pos:n-e+i.length}}function R(t,e){return k.repeat(" ",e-t.length)+t}var z=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],N=["scalar","sequence","mapping"],F=function(t,e){if(e=e||{},Object.keys(e).forEach((function(e){if(-1===z.indexOf(e))throw new D('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')})),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=(r=e.styleAliases||null,n={},null!==r&&Object.keys(r).forEach((function(t){r[t].forEach((function(e){n[String(e)]=t}))})),n),-1===N.indexOf(this.kind))throw new D('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.');var r,n};function B(t,e){var r=[];return t[e].forEach((function(t){var e=r.length;r.forEach((function(r,n){r.tag===t.tag&&r.kind===t.kind&&r.multi===t.multi&&(e=n)})),r[e]=t})),r}function V(t){return this.extend(t)}V.prototype.extend=function(t){var e=[],r=[];if(t instanceof F)r.push(t);else if(Array.isArray(t))r=r.concat(t);else{if(!t||!Array.isArray(t.implicit)&&!Array.isArray(t.explicit))throw new D("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit))}e.forEach((function(t){if(!(t instanceof F))throw new D("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new D("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
vendor: 9,530 bytes, line 1
1if(t.multi)throw new D("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),r.forEach((function(t){if(!(t instanceof F))throw new D("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var n=Object.create(V.prototype);return n.implicit=(this.implicit||[]).concat(e),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=B(n,"implicit"),n.compiledExplicit=B(n,"explicit"),n.compiledTypeMap=function(){var t,e,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(t){t.multi?(r.multi[t.kind].push(t),r.multi.fallback.push(t)):r[t.kind][t.tag]=r.fallback[t.tag]=t}for(t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(n);return r}(n.compiledImplicit,n.compiledExplicit),n};var U=V,q=new F("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return null!==t?t:""}}),$=new F("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return null!==t?t:[]}}),G=new F("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return null!==t?t:{}}}),W=new U({explicit:[q,$,G]}),Z=new F("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)},construct:function(){return null},predicate:function(t){return null===t},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),H=new F("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)},construct:function(t){return"true"===t||"True"===t||"TRUE"===t},predicate:function(t){return"[object Boolean]"===Object.prototype.toString.call(t)},represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function K(t){return 48<=t&&t<=55}function Y(t){return 48<=t&&t<=57}var X=new F("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e,r,n=t.length,o=0,i=!1;if(!n)return!1;if("-"!==(e=t[o])&&"+"!==e||(e=t[++o]),"0"===e){if(o+1===n)return!0;if("b"===(e=t[++o])){for(o++;o<n;o++)if("_"!==(e=t[o])){if("0"!==e&&"1"!==e)return!1;i=!0}return i&&"_"!==e}if("x"===e){for(o++;o<n;o++)if("_"!==(e=t[o])){if(!(48<=(r=t.charCodeAt(o))&&r<=57||65<=r&&r<=70||97<=r&&r<=102))return!1;i=!0}return i&&"_"!==e}if("o"===e){for(o++;o<n;o++)if("_"!==(e=t[o])){if(!K(t.charCodeAt(o)))return!1;i=!0}return i&&"_"!==e}}if("_"===e)return!1;for(;o<n;o++)if("_"!==(e=t[o])){if(!Y(t.charCodeAt(o)))return!1;i=!0}return!(!i||"_"===e)},construct:function(t){var e,r=t,n=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(e=r[0])&&"+"!==e||("-"===e&&(n=-1),e=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===e){if("b"===r[1])return n*parseInt(r.slice(2),2);if("x"===r[1])return n*parseInt(r.slice(2),16);if("o"===r[1])return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!k.isNegativeZero(t)},represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),J=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),Q=/^[-+]?[0-9]+e/,tt=new F("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(t){return null!==t&&!(!J.test(t)||"_"===t[t.length-1])},construct:function(t){var e,r;return r="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:r*parseFloat(e,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||k.isNegativeZero(t))},represent:function(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(k.isNegativeZero(t))return"-0.0";return r=t.toString(10),Q.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),et=W.extend({implicit:[Z,H,X,tt]}),rt=et,nt=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ot=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),it=new F("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(t){return null!==t&&(null!==nt.exec(t)||null!==ot.exec(t))},construct:function(t){var e,r,n,o,i,a,s,u,c=0,l=null;if(null===(e=nt.exec(t))&&(e=ot.exec(t)),null===e)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,o=+e[3],!e[4])return new Date(Date.UTC(r,n,o));if(i=+e[4],a=+e[5],s=+e[6],e[7]){for(c=e[7].slice(0,3);c.length<3;)c+="0";c=+c}return e[9]&&(l=6e4*(60*+e[10]+ +(e[11]||0)),"-"===e[9]&&(l=-l)),u=new Date(Date.UTC(r,n,o,i,a,s,c)),l&&u.setTime(u.getTime()-l),u},instanceOf:Date,represent:function(t){return t.toISOString()}}),at=new F("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(t){return"<<"===t||null===t}}),st="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",ut=new F("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e,r,n=0,o=t.length,i=st;for(r=0;r<o;r++)if(!((e=i.indexOf(t.charAt(r)))>64)){if(e<0)return!1;n+=6}return n%8==0},construct:function(t){var e,r,n=t.replace(/[\r\n=]/g,""),o=n.length,i=st,a=0,s=[];for(e=0;e<o;e++)e%4==0&&e&&(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)),a=a<<6|i.indexOf(n.charAt(e));return 0==(r=o%4*6)?(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)):18===r?(s.push(a>>10&255),s.push(a>>2&255)):12===r&&s.push(a>>4&255),new Uint8Array(s)},predicate:function(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)},represent:function(t){var e,r,n="",o=0,i=t.length,a=st;for(e=0;e<i;e++)e%3==0&&e&&(n+=a[o>>18&63],n+=a[o>>12&63],n+=a[o>>6&63],n+=a[63&o]),o=(o<<8)+t[e];return 0==(r=i%3)?(n+=a[o>>18&63],n+=a[o>>12&63],n+=a[o>>6&63],n+=a[63&o]):2===r?(n+=a[o>>10&63],n+=a[o>>4&63],n+=a[o<<2&63],n+=a[64]):1===r&&(n+=a[o>>2&63],n+=a[o<<4&63],n+=a[64],n+=a[64]),n}}),ct=Object.prototype.hasOwnProperty,lt=Object.prototype.toString,pt=new F("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(t){if(null===t)return!0;var e,r,n,o,i,a=[],s=t;for(e=0,r=s.length;e<r;e+=1){if(n=s[e],i=!1,"[object Object]"!==lt.call(n))return!1;for(o in n)if(ct.call(n,o)){if(i)return!1;i=!0}if(!i)return!1;if(-1!==a.indexOf(o))return!1;a.push(o)}return!0},construct:function(t){return null!==t?t:[]}}),ft=Object.prototype.toString,ht=new F("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(t){if(null===t)return!0;var e,r,n,o,i,a=t;for(i=new Array(a.length),e=0,r=a.length;e<r;e+=1){if(n=a[e],"[object Object]"!==ft.call(n))return!1;if(1!==(o=Object.keys(n)).length)return!1;i[e]=[o[0],n[o[0]]]}return!0},construct:function(t){if(null===t)return[];var e,r,n,o,i,a=t;for(i=new Array(a.length),e=0,r=a.length;e<r;e+=1)n=a[e],o=Object.keys(n),i[e]=[o[0],n[o[0]]];return i}}),dt=Object.prototype.hasOwnProperty,mt=new F("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(t){if(null===t)return!0;var e,r=t;for(e in r)if(dt.call(r,e)&&null!==r[e])return!1;return!0},construct:function(t){return null!==t?t:{}}}),yt=rt.extend({implicit:[it,at],explicit:[ut,pt,ht,mt]}),vt=Object.prototype.hasOwnProperty,gt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,bt=/[\x85\u2028\u2029]/,_t=/[,\[\]\{\}]/,xt=/^(?:!|!!|![a-z\-]+!)$/i,wt=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ot(t){return Object.prototype.toString.call(t)}function Et(t){return 10===t||13===t}function St(t){return 9===t||32===t}function Pt(t){return 9===t||32===t||10===t||13===t}function jt(t){return 44===t||91===t||93===t||123===t||125===t}function At(t){var e;return 48<=t&&t<=57?t-48:97<=(e=32|t)&&e<=102?e-97+10:-1}function Ct(t){return 48===t?"\0":97===t?"\x07":98===t?"\b":116===t||9===t?"\t":110===t?"\n":118===t?"\v":102===t?"\f":114===t?"\r":101===t?"\x1b":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"\x85":95===t?"\xa0":76===t?"\u2028":80===t?"\u2029":""}function Tt(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023))}for(var kt=new Array(256),Mt=new Array(256),It=0;It<256;It++)kt[It]=Ct(It)?1:0,Mt[It]=Ct(It);function Dt(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||yt,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.impl
vendor: 8,413 bytes, line 1
1icitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Lt(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=function(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var r,n=/\r?\n|\r|\0/g,o=[0],i=[],a=-1;r=n.exec(t.buffer);)i.push(r.index),o.push(r.index+r[0].length),t.position<=r.index&&a<0&&(a=o.length-2);a<0&&(a=o.length-1);var s,u,c="",l=Math.min(t.line+e.linesAfter,i.length).toString().length,p=e.maxLength-(e.indent+l+3);for(s=1;s<=e.linesBefore&&!(a-s<0);s++)u=L(t.buffer,o[a-s],i[a-s],t.position-(o[a]-o[a-s]),p),c=k.repeat(" ",e.indent)+R((t.line-s+1).toString(),l)+" | "+u.str+"\n"+c;for(u=L(t.buffer,o[a],i[a],t.position,p),c+=k.repeat(" ",e.indent)+R((t.line+1).toString(),l)+" | "+u.str+"\n",c+=k.repeat("-",e.indent+l+3+u.pos)+"^\n",s=1;s<=e.linesAfter&&!(a+s>=i.length);s++)u=L(t.buffer,o[a+s],i[a+s],t.position-(o[a]-o[a+s]),p),c+=k.repeat(" ",e.indent)+R((t.line+s+1).toString(),l)+" | "+u.str+"\n";return c.replace(/\n$/,"")}(r),new D(e,r)}function Rt(t,e){throw Lt(t,e)}function zt(t,e){t.onWarning&&t.onWarning.call(null,Lt(t,e))}var Nt={YAML:function(t,e,r){var n,o,i;null!==t.version&&Rt(t,"duplication of %YAML directive"),1!==r.length&&Rt(t,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&Rt(t,"ill-formed argument of the YAML directive"),o=parseInt(n[1],10),i=parseInt(n[2],10),1!==o&&Rt(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=i<2,1!==i&&2!==i&&zt(t,"unsupported YAML version of the document")},TAG:function(t,e,r){var n,o;2!==r.length&&Rt(t,"TAG directive accepts exactly two arguments"),n=r[0],o=r[1],xt.test(n)||Rt(t,"ill-formed tag handle (first argument) of the TAG directive"),vt.call(t.tagMap,n)&&Rt(t,'there is a previously declared suffix for "'+n+'" tag handle'),wt.test(o)||Rt(t,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch(e){Rt(t,"tag prefix is malformed: "+o)}t.tagMap[n]=o}};function Ft(t,e,r,n){var o,i,a,s;if(e<r){if(s=t.input.slice(e,r),n)for(o=0,i=s.length;o<i;o+=1)9===(a=s.charCodeAt(o))||32<=a&&a<=1114111||Rt(t,"expected valid JSON character");else gt.test(s)&&Rt(t,"the stream contains non-printable characters");t.result+=s}}function Bt(t,e,r,n){var o,i,a,s;for(k.isObject(r)||Rt(t,"cannot merge mappings; the provided source object is unacceptable"),a=0,s=(o=Object.keys(r)).length;a<s;a+=1)i=o[a],vt.call(e,i)||(e[i]=r[i],n[i]=!0)}function Vt(t,e,r,n,o,i,a,s,u){var c,l;if(Array.isArray(o))for(c=0,l=(o=Array.prototype.slice.call(o)).length;c<l;c+=1)Array.isArray(o[c])&&Rt(t,"nested arrays are not supported inside keys"),"object"==typeof o&&"[object Object]"===Ot(o[c])&&(o[c]="[object Object]");if("object"==typeof o&&"[object Object]"===Ot(o)&&(o="[object Object]"),o=String(o),null===e&&(e={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(i))for(c=0,l=i.length;c<l;c+=1)Bt(t,e,i[c],r);else Bt(t,e,i,r);else t.json||vt.call(r,o)||!vt.call(e,o)||(t.line=a||t.line,t.lineStart=s||t.lineStart,t.position=u||t.position,Rt(t,"duplicated mapping key")),"__proto__"===o?Object.defineProperty(e,o,{configurable:!0,enumerable:!0,writable:!0,value:i}):e[o]=i,delete r[o];return e}function Ut(t){var e;10===(e=t.input.charCodeAt(t.position))?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):Rt(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function qt(t,e,r){for(var n=0,o=t.input.charCodeAt(t.position);0!==o;){for(;St(o);)9===o&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),o=t.input.charCodeAt(++t.position);if(e&&35===o)do{o=t.input.charCodeAt(++t.position)}while(10!==o&&13!==o&&0!==o);if(!Et(o))break;for(Ut(t),o=t.input.charCodeAt(t.position),n++,t.lineIndent=0;32===o;)t.lineIndent++,o=t.input.charCodeAt(++t.position)}return-1!==r&&0!==n&&t.lineIndent<r&&zt(t,"deficient indentation"),n}function $t(t){var e,r=t.position;return!(45!==(e=t.input.charCodeAt(r))&&46!==e||e!==t.input.charCodeAt(r+1)||e!==t.input.charCodeAt(r+2)||(r+=3,0!==(e=t.input.charCodeAt(r))&&!Pt(e)))}function Gt(t,e){1===e?t.result+=" ":e>1&&(t.result+=k.repeat("\n",e-1))}function Wt(t,e){var r,n,o=t.tag,i=t.anchor,a=[],s=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=a),n=t.input.charCodeAt(t.position);0!==n&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,Rt(t,"tab characters must not be used in indentation")),45===n)&&Pt(t.input.charCodeAt(t.position+1));)if(s=!0,t.position++,qt(t,!0,-1)&&t.lineIndent<=e)a.push(null),n=t.input.charCodeAt(t.position);else if(r=t.line,Kt(t,e,3,!1,!0),a.push(t.result),qt(t,!0,-1),n=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&0!==n)Rt(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break;return!!s&&(t.tag=o,t.anchor=i,t.kind="sequence",t.result=a,!0)}function Zt(t){var e,r,n,o,i=!1,a=!1;if(33!==(o=t.input.charCodeAt(t.position)))return!1;if(null!==t.tag&&Rt(t,"duplication of a tag property"),60===(o=t.input.charCodeAt(++t.position))?(i=!0,o=t.input.charCodeAt(++t.position)):33===o?(a=!0,r="!!",o=t.input.charCodeAt(++t.position)):r="!",e=t.position,i){do{o=t.input.charCodeAt(++t.position)}while(0!==o&&62!==o);t.position<t.length?(n=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):Rt(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==o&&!Pt(o);)33===o&&(a?Rt(t,"tag suffix cannot contain exclamation marks"):(r=t.input.slice(e-1,t.position+1),xt.test(r)||Rt(t,"named tag handle cannot contain such characters"),a=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);n=t.input.slice(e,t.position),_t.test(n)&&Rt(t,"tag suffix cannot contain flow indicator characters")}n&&!wt.test(n)&&Rt(t,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(e){Rt(t,"tag name is malformed: "+n)}return i?t.tag=n:vt.call(t.tagMap,r)?t.tag=t.tagMap[r]+n:"!"===r?t.tag="!"+n:"!!"===r?t.tag="tag:yaml.org,2002:"+n:Rt(t,'undeclared tag handle "'+r+'"'),!0}function Ht(t){var e,r;if(38!==(r=t.input.charCodeAt(t.position)))return!1;for(null!==t.anchor&&Rt(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!Pt(r)&&!jt(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Rt(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function Kt(t,e,r,n,o){var i,a,s,u,c,l,p,f,h,d=1,m=!1,y=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,i=a=s=4===r||3===r,n&&qt(t,!0,-1)&&(m=!0,t.lineIndent>e?d=1:t.lineIndent===e?d=0:t.lineIndent<e&&(d=-1)),1===d)for(;Zt(t)||Ht(t);)qt(t,!0,-1)?(m=!0,s=i,t.lineIndent>e?d=1:t.lineIndent===e?d=0:t.lineIndent<e&&(d=-1)):s=!1;if(s&&(s=m||o),1!==d&&4!==r||(f=1===r||2===r?e:e+1,h=t.position-t.lineStart,1===d?s&&(Wt(t,h)||function(t,e,r){var n,o,i,a,s,u,c,l=t.tag,p=t.anchor,f={},h=Object.create(null),d=null,m=null,y=null,v=!1,g=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=f),c=t.input.charCodeAt(t.position);0!==c;){if(v||-1===t.firstTabInLine||(t.position=t.firstTabInLine,Rt(t,"tab characters must not be used in indentation")),n=t.input.charCodeAt(t.position+1),i=t.line,63!==c&&58!==c||!Pt(n)){if(a=t.line,s=t.lineStart,u=t.position,!Kt(t,r,2,!1,!0))break;if(t.line===i){for(c=t.input.charCodeAt(t.position);St(c);)c=t.input.charCodeAt(++t.position);if(58===c)Pt(c=t.input.charCodeAt(++t.position))||Rt(t,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(Vt(t,f,h,d,m,null,a,s,u),d=m=y=null),g=!0,v=!1,o=!1,d=t.tag,m=t.result;else{if(!g)return t.tag=l,t.anchor=p,!0;Rt(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!g)return t.tag=l,t.anchor=p,!0;Rt(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(v&&(Vt(t,f,h,d,m,null,a,s,u),d=m=y=null),g=!0,v=!0,o=!0):v?(v=!1,o=!0):Rt(t,"incomplete explicit mapping pair; a key node is missed;
1 or followed by a non-tabulated empty line"),t.position+=1,c=n;if((t.line===i||t.lineIndent>e)&&(v&&(a=t.line,s=t.lineStart,u=t.position),Kt(t,e,4,!0,o)&&(v?m=t.result:y=t.result),v||(Vt(t,f,h,d,m,y,a,s,u),d=m=y=null),qt(t,!0,-1),c=t.input.charCodeAt(t.position)),(t.line===i||t.lineIndent>e)&&0!==c)Rt(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return v&&Vt(t,f,h,d,m,null,a,s,u),g&&(t.tag=l,t.anchor=p,t.kind="mapping",t.result=f),g}(t,h,f))||function(t,e){var r,n,o,i,a,s,u,c,l,p,f,h,d=!0,m=t.tag,y=t.anchor,v=Object.create(null);if(91===(h=t.input.charCodeAt(t.position)))a=93,c=!1,i=[];else{if(123!==h)return!1;a=125,c=!0,i={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=i),h=t.input.charCodeAt(++t.position);0!==h;){if(qt(t,!0,e),(h=t.input.charCodeAt(t.position))===a)return t.position++,t.tag=m,t.anchor=y,t.kind=c?"mapping":"sequence",t.result=i,!0;d?44===h&&Rt(t,"expected the node content, but found ','"):Rt(t,"missed comma between flow collection entries"),f=null,s=u=!1,63===h&&Pt(t.input.charCodeAt(t.position+1))&&(s=u=!0,t.position++,qt(t,!0,e)),r=t.line,n=t.lineStart,o=t.position,Kt(t,e,1,!1,!0),p=t.tag,l=t.result,qt(t,!0,e),h=t.input.charCodeAt(t.position),!u&&t.line!==r||58!==h||(s=!0,h=t.input.charCodeAt(++t.position),qt(t,!0,e),Kt(t,e,1,!1,!0),f=t.result),c?Vt(t,i,v,p,l,f,r,n,o):s?i.push(Vt(t,null,v,p,l,f,r,n,o)):i.push(l),qt(t,!0,e),44===(h=t.input.charCodeAt(t.position))?(d=!0,h=t.input.charCodeAt(++t.position)):d=!1}Rt(t,"unexpected end of the stream within a flow collection")}(t,f)?y=!0:(a&&function(t,e){var r,n,o,i,a,s=1,u=!1,c=!1,l=e,p=0,f=!1;if(124===(i=t.input.charCodeAt(t.position)))n=!1;else{if(62!==i)return!1;n=!0}for(t.kind="scalar",t.result="";0!==i;)if(43===(i=t.input.charCodeAt(++t.position))||45===i)1===s?s=43===i?3:2:Rt(t,"repeat of a chomping mode identifier");else{if(!((o=48<=(a=i)&&a<=57?a-48:-1)>=0))break;0===o?Rt(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?Rt(t,"repeat of an indentation width identifier"):(l=e+o-1,c=!0)}if(St(i)){do{i=t.input.charCodeAt(++t.position)}while(St(i));if(35===i)do{i=t.input.charCodeAt(++t.position)}while(!Et(i)&&0!==i)}for(;0!==i;){for(Ut(t),t.lineIndent=0,i=t.input.charCodeAt(t.position);(!c||t.lineIndent<l)&&32===i;)t.lineIndent++,i=t.input.charCodeAt(++t.position);if(!c&&t.lineIndent>l&&(l=t.lineIndent),Et(i))p++;else{if(t.lineIndent<l){3===s?t.result+=k.repeat("\n",u?1+p:p):1===s&&u&&(t.result+="\n");break}for(n?St(i)?(f=!0,t.result+=k.repeat("\n",u?1+p:p)):f?(f=!1,t.result+=k.repeat("\n",p+1)):0===p?u&&(t.result+=" "):t.result+=k.repeat("\n",p):t.result+=k.repeat("\n",u?1+p:p),u=!0,c=!0,p=0,r=t.position;!Et(i)&&0!==i;)i=t.input.charCodeAt(++t.position);Ft(t,r,t.position,!1)}}return!0}(t,f)||function(t,e){var r,n,o;if(39!==(r=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,n=o=t.position;0!==(r=t.input.charCodeAt(t.position));)if(39===r){if(Ft(t,n,t.position,!0),39!==(r=t.input.charCodeAt(++t.position)))return!0;n=t.position,t.position++,o=t.position}else Et(r)?(Ft(t,n,o,!0),Gt(t,qt(t,!1,e)),n=o=t.position):t.position===t.lineStart&&$t(t)?Rt(t,"unexpected end of the document within a single quoted scalar"):(t.position++,o=t.position);Rt(t,"unexpected end of the stream within a single quoted scalar")}(t,f)||function(t,e){var r,n,o,i,a,s,u;if(34!==(s=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;0!==(s=t.input.charCodeAt(t.position));){if(34===s)return Ft(t,r,t.position,!0),t.position++,!0;if(92===s){if(Ft(t,r,t.position,!0),Et(s=t.input.charCodeAt(++t.position)))qt(t,!1,e);else if(s<256&&kt[s])t.result+=Mt[s],t.position++;else if((a=120===(u=s)?2:117===u?4:85===u?8:0)>0){for(o=a,i=0;o>0;o--)(a=At(s=t.input.charCodeAt(++t.position)))>=0?i=(i<<4)+a:Rt(t,"expected hexadecimal character");t.result+=Tt(i),t.position++}else Rt(t,"unknown escape sequence");r=n=t.position}else Et(s)?(Ft(t,r,n,!0),Gt(t,qt(t,!1,e)),r=n=t.position):t.position===t.lineStart&&$t(t)?Rt(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}Rt(t,"unexpected end of the stream within a double quoted scalar")}(t,f)?y=!0:function(t){var e,r,n;if(42!==(n=t.input.charCodeAt(t.position)))return!1;for(n=t.input.charCodeAt(++t.position),e=t.position;0!==n&&!Pt(n)&&!jt(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&Rt(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),vt.call(t.anchorMap,r)||Rt(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],qt(t,!0,-1),!0}(t)?(y=!0,null===t.tag&&null===t.anchor||Rt(t,"alias node should not have any properties")):function(t,e,r){var n,o,i,a,s,u,c,l,p=t.kind,f=t.result;if(Pt(l=t.input.charCodeAt(t.position))||jt(l)||35===l||38===l||42===l||33===l||124
vendor: 5,177 bytes, line 1
1===l||62===l||39===l||34===l||37===l||64===l||96===l)return!1;if((63===l||45===l)&&(Pt(n=t.input.charCodeAt(t.position+1))||r&&jt(n)))return!1;for(t.kind="scalar",t.result="",o=i=t.position,a=!1;0!==l;){if(58===l){if(Pt(n=t.input.charCodeAt(t.position+1))||r&&jt(n))break}else if(35===l){if(Pt(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&$t(t)||r&&jt(l))break;if(Et(l)){if(s=t.line,u=t.lineStart,c=t.lineIndent,qt(t,!1,-1),t.lineIndent>=e){a=!0,l=t.input.charCodeAt(t.position);continue}t.position=i,t.line=s,t.lineStart=u,t.lineIndent=c;break}}a&&(Ft(t,o,i,!1),Gt(t,t.line-s),o=i=t.position,a=!1),St(l)||(i=t.position+1),l=t.input.charCodeAt(++t.position)}return Ft(t,o,i,!1),!!t.result||(t.kind=p,t.result=f,!1)}(t,f,1===r)&&(y=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===d&&(y=s&&Wt(t,h))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&Rt(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),u=0,c=t.implicitTypes.length;u<c;u+=1)if((p=t.implicitTypes[u]).resolve(t.result)){t.result=p.construct(t.result),t.tag=p.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else if("!"!==t.tag){if(vt.call(t.typeMap[t.kind||"fallback"],t.tag))p=t.typeMap[t.kind||"fallback"][t.tag];else for(p=null,u=0,c=(l=t.typeMap.multi[t.kind||"fallback"]).length;u<c;u+=1)if(t.tag.slice(0,l[u].tag.length)===l[u].tag){p=l[u];break}p||Rt(t,"unknown tag !<"+t.tag+">"),null!==t.result&&p.kind!==t.kind&&Rt(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+p.kind+'", not "'+t.kind+'"'),p.resolve(t.result,t.tag)?(t.result=p.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):Rt(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||y}function Yt(t){var e,r,n,o,i=t.position,a=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(o=t.input.charCodeAt(t.position))&&(qt(t,!0,-1),o=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==o));){for(a=!0,o=t.input.charCodeAt(++t.position),e=t.position;0!==o&&!Pt(o);)o=t.input.charCodeAt(++t.position);for(n=[],(r=t.input.slice(e,t.position)).length<1&&Rt(t,"directive name must not be less than one character in length");0!==o;){for(;St(o);)o=t.input.charCodeAt(++t.position);if(35===o){do{o=t.input.charCodeAt(++t.position)}while(0!==o&&!Et(o));break}if(Et(o))break;for(e=t.position;0!==o&&!Pt(o);)o=t.input.charCodeAt(++t.position);n.push(t.input.slice(e,t.position))}0!==o&&Ut(t),vt.call(Nt,r)?Nt[r](t,r,n):zt(t,'unknown document directive "'+r+'"')}qt(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,qt(t,!0,-1)):a&&Rt(t,"directives end mark is expected"),Kt(t,t.lineIndent-1,4,!1,!0),qt(t,!0,-1),t.checkLineBreaks&&bt.test(t.input.slice(i,t.position))&&zt(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&$t(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,qt(t,!0,-1)):t.position<t.length-1&&Rt(t,"end of the stream or a document separator is expected")}function Xt(t,e){e=e||{},0!==(t=String(t)).length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));var r=new Dt(t,e),n=t.indexOf("\0");for(-1!==n&&(r.position=n,Rt(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Yt(r);return r.documents}var Jt=Object.prototype.toString,Qt=Object.prototype.hasOwnProperty,te=65279,ee={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},re=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ne=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function oe(t){var e,r,n;if(e=t.toString(16).toUpperCase(),t<=255)r="x",n=2;else if(t<=65535)r="u",n=4;else{if(!(t<=4294967295))throw new D("code point within a string may not be greater than 0xFFFFFFFF");r="U",n=8}return"\\"+r+k.repeat("0",n-e.length)+e}function ie(t){this.schema=t.schema||yt,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=k.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=function(t,e){var r,n,o,i,a,s,u;if(null===e)return{};for(r={},o=0,i=(n=Object.keys(e)).length;o<i;o+=1)a=n[o],s=String(e[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(u=t.compiledTypeMap.fallback[a])&&Qt.call(u.styleAliases,s)&&(s=u.styleAliases[s]),r[a]=s;return r}(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType='"'===t.quotingType?2:1,this.forceQuotes=t.forceQuotes||!1,this.replacer="function"==typeof t.replacer?t.replacer:null,this.impl
vendor: 7,221 bytes, line 1
1icitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function ae(t,e){for(var r,n=k.repeat(" ",e),o=0,i=-1,a="",s=t.length;o<s;)-1===(i=t.indexOf("\n",o))?(r=t.slice(o),o=s):(r=t.slice(o,i+1),o=i+1),r.length&&"\n"!==r&&(a+=n),a+=r;return a}function se(t,e){return"\n"+k.repeat(" ",t.indent*e)}function ue(t){return 32===t||9===t}function ce(t){return 32<=t&&t<=126||161<=t&&t<=55295&&8232!==t&&8233!==t||57344<=t&&t<=65533&&t!==te||65536<=t&&t<=1114111}function le(t){return ce(t)&&t!==te&&13!==t&&10!==t}function pe(t,e,r){var n=le(t),o=n&&!ue(t);return(r?n:n&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t)&&35!==t&&!(58===e&&!o)||le(e)&&!ue(e)&&35===t||58===e&&o}function fe(t,e){var r,n=t.charCodeAt(e);return n>=55296&&n<=56319&&e+1<t.length&&(r=t.charCodeAt(e+1))>=56320&&r<=57343?1024*(n-55296)+r-56320+65536:n}function he(t){return/^\n* /.test(t)}function de(t,e){var r=he(t)?String(e):"",n="\n"===t[t.length-1];return r+(!n||"\n"!==t[t.length-2]&&"\n"!==t?n?"":"-":"+")+"\n"}function me(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function ye(t,e){if(""===t||" "===t[0])return t;for(var r,n,o=/ [^ ]/g,i=0,a=0,s=0,u="";r=o.exec(t);)(s=r.index)-i>e&&(n=a>i?a:s,u+="\n"+t.slice(i,n),i=n+1),a=s;return u+="\n",t.length-i>e&&a>i?u+=t.slice(i,a)+"\n"+t.slice(a+1):u+=t.slice(i),u.slice(1)}function ve(t,e,r,n){var o,i,a,s="",u=t.tag;for(o=0,i=r.length;o<i;o+=1)a=r[o],t.replacer&&(a=t.replacer.call(r,String(o),a)),(be(t,e+1,a,!0,!0,!1,!0)||void 0===a&&be(t,e+1,null,!0,!0,!1,!0))&&(n&&""===s||(s+=se(t,e)),t.dump&&10===t.dump.charCodeAt(0)?s+="-":s+="- ",s+=t.dump);t.tag=u,t.dump=s||"[]"}function ge(t,e,r){var n,o,i,a,s,u;for(i=0,a=(o=r?t.explicitTypes:t.implicitTypes).length;i<a;i+=1)if(((s=o[i]).instanceOf||s.predicate)&&(!s.instanceOf||"object"==typeof e&&e instanceof s.instanceOf)&&(!s.predicate||s.predicate(e))){if(r?s.multi&&s.representName?t.tag=s.representName(e):t.tag=s.tag:t.tag="?",s.represent){if(u=t.styleMap[s.tag]||s.defaultStyle,"[object Function]"===Jt.call(s.represent))n=s.represent(e,u);else{if(!Qt.call(s.represent,u))throw new D("!<"+s.tag+'> tag resolver accepts not "'+u+'" style');n=s.represent[u](e,u)}t.dump=n}return!0}return!1}function be(t,e,r,n,o,i,a){t.tag=null,t.dump=r,ge(t,r,!1)||ge(t,r,!0);var s,u=Jt.call(t.dump),c=n;n&&(n=t.flowLevel<0||t.flowLevel>e);var l,p,f="[object Object]"===u||"[object Array]"===u;if(f&&(p=-1!==(l=t.duplicates.indexOf(r))),(null!==t.tag&&"?"!==t.tag||p||2!==t.indent&&e>0)&&(o=!1),p&&t.usedDuplicates[l])t.dump="*ref_"+l;else{if(f&&p&&!t.usedDuplicates[l]&&(t.usedDuplicates[l]=!0),"[object Object]"===u)n&&0!==Object.keys(t.dump).length?(function(t,e,r,n){var o,i,a,s,u,c,l="",p=t.tag,f=Object.keys(r);if(!0===t.sortKeys)f.sort();else if("function"==typeof t.sortKeys)f.sort(t.sortKeys);else if(t.sortKeys)throw new D("sortKeys must be a boolean or a function");for(o=0,i=f.length;o<i;o+=1)c="",n&&""===l||(c+=se(t,e)),s=r[a=f[o]],t.replacer&&(s=t.replacer.call(r,a,s)),be(t,e+1,a,!0,!0,!0)&&((u=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024)&&(t.dump&&10===t.dump.charCodeAt(0)?c+="?":c+="? "),c+=t.dump,u&&(c+=se(t,e)),be(t,e+1,s,!0,u)&&(t.dump&&10===t.dump.charCodeAt(0)?c+=":":c+=": ",l+=c+=t.dump));t.tag=p,t.dump=l||"{}"}(t,e,t.dump,o),p&&(t.dump="&ref_"+l+t.dump)):(function(t,e,r){var n,o,i,a,s,u="",c=t.tag,l=Object.keys(r);for(n=0,o=l.length;n<o;n+=1)s="",""!==u&&(s+=", "),t.condenseFlow&&(s+='"'),a=r[i=l[n]],t.replacer&&(a=t.replacer.call(r,i,a)),be(t,e,i,!1,!1)&&(t.dump.length>1024&&(s+="? "),s+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),be(t,e,a,!1,!1)&&(u+=s+=t.dump));t.tag=c,t.dump="{"+u+"}"}(t,e,t.dump),p&&(t.dump="&ref_"+l+" "+t.dump));else if("[object Array]"===u)n&&0!==t.dump.length?(t.noArrayIndent&&!a&&e>0?ve(t,e-1,t.dump,o):ve(t,e,t.dump,o),p&&(t.dump="&ref_"+l+t.dump)):(function(t,e,r){var n,o,i,a="",s=t.tag;for(n=0,o=r.length;n<o;n+=1)i=r[n],t.replacer&&(i=t.replacer.call(r,String(n),i)),(be(t,e,i,!1,!1)||void 0===i&&be(t,e,null,!1,!1))&&(""!==a&&(a+=","+(t.condenseFlow?"":" ")),a+=t.dump);t.tag=s,t.dump="["+a+"]"}(t,e,t.dump),p&&(t.dump="&ref_"+l+" "+t.dump));else{if("[object String]"!==u){if("[object Undefined]"===u)return!1;if(t.skipInvalid)return!1;throw new D("unacceptable kind of an object to dump "+u)}"?"!==t.tag&&function(t,e,r,n,o){t.dump=function(){if(0===e.length)return 2===t.quotingType?'""':"''";if(!t.noCompatMode&&(-1!==re.indexOf(e)||ne.test(e)))return 2===t.quotingType?'"'+e+'"':"'"+e+"'";var i=t.indent*Math.max(1,r),a=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-i),s=n||t.flowLevel>-1&&r>=t.flowLevel;switch(function(t,e,r,n,o,i,a,s){var u,c,l=0,p=null,f=!1,h=!1,d=-1!==n,m=-1,y=ce(c=fe(t,0))&&c!==te&&!ue(c)&&45!==c&&63!==c&&58!==c&&44!==c&&91!==c&&93!==c&&123!==c&&125!==c&&35!==c&&38!==c&&42!==c&&33!==c&&124!==c&&61!==c&&62!==c&&39!==c&&34!==c&&37!==c&&64!==c&&96!==c&&function(t){return!ue(t)&&58!==t}(fe(t,t.length-1));if(e||a)for(u=0;u<t.length;l>=65536?u+=2:u++){if(!ce(l=fe(t,u)))return 5;y=y&&pe(l,p,s),p=l}else{for(u=0;u<t.length;l>=65536?u+=2:u++){if(10===(l=fe(t,u)))f=!0,d&&(h=h||u-m-1>n&&" "!==t[m+1],m=u);else if(!ce(l))return 5;y=y&&pe(l,p,s),p=l}h=h||d&&u-m-1>n&&" "!==t[m+1]}return f||h?r>9&&he(t)?5:a?2===i?5:2:h?4:3:!y||a||o(t)?2===i?5:2:1}(e,s,t.indent,a,(function(e){return function(t,e){var r,n;for(r=0,n=t.implicitTypes.length;r<n;r+=1)if(t.implicitTypes[r].resolve(e))return!0;return!1}(t,e)}),t.quotingType,t.forceQuotes&&!n,o)){case 1:return e;case 2:return"'"+e.replace(/'/g,"''")+"'";case 3:return"|"+de(e,t.indent)+me(ae(e,i));case 4:return">"+de(e,t.indent)+me(ae(function(t,e){for(var r,n,o,i=/(\n+)([^\n]*)/g,a=(o=-1!==(o=t.indexOf("\n"))?o:t.length,i.lastIndex=o,ye(t.slice(0,o),e)),s="\n"===t[0]||" "===t[0];n=i.exec(t);){var u=n[1],c=n[2];r=" "===c[0],a+=u+(s||r||""===c?"":"\n")+ye(c,e),s=r}return a}(e,a),i));case 5:return'"'+function(t){for(var e,r="",n=0,o=0;o<t.length;n>=65536?o+=2:o++)n=fe(t,o),!(e=ee[n])&&ce(n)?(r+=t[o],n>=65536&&(r+=t[o+1])):r+=e||oe(n);return r}(e)+'"';default:throw new D("impossible error: invalid scalar style")}}()}(t,t.dump,e,i,c)}null!==t.tag&&"?"!==t.tag&&(s=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21"),s="!"===t.tag[0]?"!"+s:"tag:yaml.org,2002:"===s.slice(0,18)?"!!"+s.slice(18):"!<"+s+">",t.dump=s+" "+t.dump)}return!0}function _e(t,e){var r,n,o=[],i=[];for(xe(t,o,i),r=0,n=i.length;r<n;r+=1)e.duplicates.push(o[i[r]]);e.usedDuplicates=new Array(n)}function xe(t,e,r){var n,o,i;if(null!==t&&"object"==typeof t)if(-1!==(o=e.indexOf(t)))-1===r.indexOf(o)&&r.push(o);else if(e.push(t),Array.isArray(t))for(o=0,i=t.length;o<i;o+=1)xe(t[o],e,r);else for(o=0,i=(n=Object.keys(t)).length;o<i;o+=1)xe(t[n[o]],e,r)}function we(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var Oe=F,Ee=U,Se=W,Pe=et,je=rt,Ae=yt,Ce=function(t,e){var r=Xt(t,e);if(0!==r.length){if(1===r.length)return r[0];throw new D("expected a single document in the stream, but found more")}},Te=function(t,e,r){null!==e&&"object"==typeof e&&void 0===r&&(r=e,e=null);var n=Xt(t,r);
1if("function"!=typeof e)return n;for(var o=0,i=n.length;o<i;o+=1)e(n[o])},ke=D,Me={binary:ut,float:tt,map:G,null:Z,pairs:ht,set:mt,timestamp:it,bool:H,int:X,merge:at,omap:pt,seq:$,str:q},Ie=we("safeLoad","load"),De=we("safeLoadAll","loadAll"),Le=we("safeDump","dump");const Re={Type:Oe,Schema:Ee,FAILSAFE_SCHEMA:Se,JSON_SCHEMA:Pe,CORE_SCHEMA:je,DEFAULT_SCHEMA:Ae,load:Ce,loadAll:Te,dump:function(t,e){var r=new ie(e=e||{});r.noRefs||_e(t,r);var n=t;return r.replacer&&(n=r.replacer.call({"":n},"",n)),be(r,0,n,!0,!0)?r.dump+"\n":""},YAMLException:ke,types:Me,safeLoad:Ie,safeLoadAll:De,safeDump:Le},ze="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{FormData:Ne,Blob:Fe,File:Be}=ze,Ve=t=>":/?#[]@!$&'()*+,;=".indexOf(t)>-1,Ue=t=>/^[a-z0-9\-._~]+$/i.test(t);function qe(t){let{escape:e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return"number"==typeof t&&(t=t.toString()),"string"==typeof t&&t.length&&e?r?JSON.parse(t):[...t].map((t=>{if(Ue(t))return t;if(Ve(t)&&"unsafe"===e)return t;const r=new TextEncoder;return Array.from(r.encode(t)).map((t=>`0${t.toString(16).toUpperCase()}`.slice(-2))).map((t=>`%${t}`)).join("")})).join(""):t}function $e(t){const{value:e}=t;return Array.isArray(e)?function(t){let{key:e,value:r,style:n,explode:o,escape:i}=t;const a=t=>qe(t,{escape:i});if("simple"===n)return r.map((t=>a(t))).join(",");if("label"===n)return`.${r.map((t=>a(t))).join(".")}`;if("matrix"===n)return r.map((t=>a(t))).reduce(((t,r)=>!t||o?`${t||""};${e}=${r}`:`${t},${r}`),"");if("form"===n){const t=o?`&${e}=`:",";return r.map((t=>a(t))).join(t)}if("spaceDelimited"===n){const t=o?`${e}=`:"";return r.map((t=>a(t))).join(` ${t}`)}if("pipeDelimited"===n){const t=o?`${e}=`:"";return r.map((t=>a(t))).join(`|${t}`)}}(t):"object"==typeof e?function(t){let{key:e,value:r,style:n,explode:o,escape:i}=t;const a=t=>qe(t,{escape:i}),s=Object.keys(r);return"simple"===n?s.reduce(((t,e)=>{const n=a(r[e]);return`${t?`${t},`:""}${e}${o?"=":","}${n}`}),""):"label"===n?s.reduce(((t,e)=>{const n=a(r[e]);return`${t?`${t}.`:"."}${e}${o?"=":"."}${n}`}),""):"matrix"===n&&o?s.reduce(((t,e)=>`${t?`${t};`:";"}${e}=${a(r[e])}`),""):"matrix"===n?s.reduce(((t,n)=>{const o=a(r[n]);return`${t?`${t},`:`;${e}=`}${n},${o}`}),""):"form"===n?s.reduce(((t,e)=>{const n=a(r[e]);return`${t?`${t}${o?"&":","}`:""}${e}${o?"=":","}${n}`}),""):void 0}(t):function(t){let{key:e,value:r,style:n,escape:o}=t;const i=t=>qe(t,{escape:o});return"simple"===n?i(r):"label"===n?`.${i(r)}`:"matrix"===n?`;${e}=${i(r)}`:"form"===n||"deepObject"===n?i(r):void 0}(t)}const Ge=(t,e)=>{e.body=t},We={serializeRes:Ke,mergeInQueryOrForm:or};async function Ze(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"object"==typeof t&&(e=t,t=e.url),e.headers=e.headers||{},We.mergeInQueryOrForm(e),e.headers&&Object.keys(e.headers).forEach((t=>{const r=e.headers[t];"string"==typeof r&&(e.headers[t]=r.replace(/\n+/g," "))})),e.requestInterceptor&&(e=await e.requestInterceptor(e)||e);const r=e.headers["content-type"]||e.headers["Content-Type"];let n;/multipart\/form-data/i.test(r)&&e.body instanceof Ne&&(delete e.headers["content-type"],delete e.headers["Content-Type"]);try{n=await(e.userFetch||fetch)(e.url,e),n=await We.serializeRes(n,t,e),e.responseInterceptor&&(n=await e.responseInterceptor(n)||n)}catch(t){if(!n)throw t;const e=new Error(n.statusText||`response status is ${n.status}`);throw e.status=n.status,e.statusCode=n.status,e.responseError=t,e}if(!n.ok){const t=new Error(n.statusText||`response status is ${n.status}`);throw t.status=n.status,t.statusCode=n.status,t.response=n,t}return n}const He=function(){return/(json|xml|yaml|text)\b/.test(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")};function Ke(t,e){let{loadSpec:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n={ok:t.ok,url:t.url||e,status:t.status,statusText:t.statusText,headers:Ye(t.headers)},o=n.headers["content-type"],i=r||He(o);return(i?t.text:t.blob||t.buffer).call(t).then((t=>{if(n.text=t,n.data=t,i)try{const e=function(t,e){return e&&(0===e.indexOf("application/json")||e.indexOf("+json")>0)?JSON.parse(t):Re.load(t)}(t,o);n.body=e,n.obj=e}catch(t){n.parseError=t}return n}))}function Ye(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"function"!=typeof t.entries?{}:Array.from(t.entries()).reduce(((t,e)=>{let[r,n]=e;return t[r]=function(t){return t.includes(", ")?t.split(", "):t}(n),t}),{})}function Xe(t,e){return e||"undefined"==typeof navigator||(e=navigator),e&&"ReactNative"===e.product?!(!t||"object"!=typeof t||"string"!=typeof t.uri):void 0!==Be&&t instanceof Be||void 0!==Fe&&t instanceof Fe||!!ArrayBuffer.isView(t)||null!==t&&"object"==typeof t&&"function"==typeof t.pipe}function Je(t,e){return Array.isArray(t)&&t.some((t=>Xe(t,e)))}const Qe={form:",",spaceDelimited:"%20",pipeDelimited:"|"},tr={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function er(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{collectionFormat:n,allowEmptyValue:o,serializationOption:i,encoding:a}=e,s="object"!=typeof e||Array.isArray(e)?e:e.value,u=r?t=>t.toString():t=>encodeURIComponent(t),c=u(t);if(void 0===s&&o)return[[c,""]];if(Xe(s)||Je(s))return[[c,s]];if(i)return rr(t,s,r,i);if(a){if([typeof a.style,typeof a.explode,typeof a.allowReserved].some((t=>"undefined"!==t))){const{style:e,explode:n,allowReserved:o}=a;return rr(t,s,r,{style:e,explode:n,allowReserved:o})}return a.contentType?"application/json"===a.contentType?[[c,u("string"==typeof s?s:JSON.stringify(s))]]:[[c,u(s.toString())]]:"object"!=typeof s?[[c,u(s)]]:Array.isArray(s)&&s.every((t=>"object"!=typeof t))?[[c,s.map(u).join(",")]]:[[c,u(JSON.stringify(s))]]}return"object"!=typeof s?[[c,u(s)]]:Array.isArray(s)?"multi"===n?[[c,s.map(u)]]:[[c,s.map(u).join(tr[n||"csv"])]]:[[c,""]]}function rr(t,e,r,n){const o=n.style||"form",i=void 0===n.explode?"form"===o:n.explode,a=!r&&(n&&n.allowReserved?"unsafe":"reserved"),s=t=>qe(t,{escape:a}),u=r?t=>t:t=>qe(t,{escape:a});return"object"!=typeof e?[[u(t),s(e)]]:Array.isArray(e)?i?[[u(t),e.map(s)]]:[[u(t),e.map(s).join(Qe[o])]]:"deepObject"===o?Object.keys(e).map((r=>[u(`${t}[${r}]`),s(e[r])])):i?Object.keys(e).map((t=>[u(t),s(e[t])])):[[u(t),Object.keys(e).map((t=>[`${u(t)},${s(e[t])}`])).join(",")]]}function nr(t){const e=Object.keys(t).reduce(((e,r)=>{for(const[n,o]of er(r,t[r]))e[n]=o;return e}),{});return C().stringify(e,{encode:!1,indices:!1})||""}function or(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{url:e="",query:r,form:n}=t;if(n){const e=Object.keys(n).some((t=>{const{value:e}=n[t];return Xe(e)||Je(e)})),r=t.headers["content-type"]||t.headers["Content-Type"];if(e||/multipart\/form-data/i.test(r)){const e=(o=t.form,Object.entries(o).reduce(((t,e)=>{let[r,n]=e;for(const[o,i]of er(r,n,!0))if(Array.isArray(i))for(const e of i)if(ArrayBuffer.isView(e)){const r=new Fe([e]);t.append(o,r)}else t.append(o,e);else if(ArrayBuffer.isView(i)){const e=new Fe([i]);t.append(o,e)}else t.append(o,i);return t}),new Ne));Ge(e,t)}else t.body=nr(n);delete t.form}var o;if(r){const[n,o]=e.split("?");let i="";if(o){const t=C().parse(o);Object.keys(r).forEach((e=>delete t[e])),i=C().stringify(t,{encode:!0})}const a=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];const n=e.filter((t=>t)).join("&");return n?`?${n}`:""}(i,nr(r));t.url=n+a,delete t.query}return t}const ir="application/json, application/yaml";function ar(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{requestInterceptor:r,responseInterceptor:n}=e,o=t.withCredentials?"include":"same-origin";return e=>t({url:e,loadSpec:!0,requestInterceptor:r,responseInterceptor:n,headers:{Accept:ir},credentials:o}).then((t=>t.body))}const sr=t=>{const{baseDoc:e,url:r}=t;return e||r||""},ur=t=>{const{fetch:e,http:r}=t;return e||r||Ze};var cr,lr=(cr=function(t,e){return cr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},cr(t,e)},function(t,e){function r(){this.constructor=t}cr(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),pr=Object.prototype.hasOwnProperty;function fr(t,e){return pr.call(t,e)}function hr(t){if(Array.isArray(t)){for(var e=new Array(t.length),r=0;r<e.length;r++)e[r]=""+r;return e}if(Object.keys)return Object.keys(t);var n=[];for(var o in t)fr(t,o)&&n.push(o);return n}function dr(t){switch(typeof t){case"object":return JSON.parse(JSON.stringify(t));case"undefined":return null;default:return t}}function mr(t){for(var e,r=0,n=t.length;r<n;){if(!((e=t.charCodeAt(r))>=48&&e<=57))return!1;r++}return!0}function yr(t){return-1===t.indexOf("/")&&-1===t.indexOf("~")?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function vr(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function gr(t){if(void 0===t)return!0;
vendor: 10,499 bytes, line 1
1if(t)if(Array.isArray(t)){for(var e=0,r=t.length;e<r;e++)if(gr(t[e]))return!0}else if("object"==typeof t)for(var n=hr(t),o=n.length,i=0;i<o;i++)if(gr(t[n[i]]))return!0;return!1}function br(t,e){var r=[t];for(var n in e){var o="object"==typeof e[n]?JSON.stringify(e[n],null,2):e[n];void 0!==o&&r.push(n+": "+o)}return r.join("\n")}var _r=function(t){function e(e,r,n,o,i){var a=this.constructor,s=t.call(this,br(e,{name:r,index:n,operation:o,tree:i}))||this;return s.name=r,s.index=n,s.operation=o,s.tree=i,Object.setPrototypeOf(s,a.prototype),s.message=br(e,{name:r,index:n,operation:o,tree:i}),s}return lr(e,t),e}(Error),xr=_r,wr=dr,Or={add:function(t,e,r){return t[e]=this.value,{newDocument:r}},remove:function(t,e,r){var n=t[e];return delete t[e],{newDocument:r,removed:n}},replace:function(t,e,r){var n=t[e];return t[e]=this.value,{newDocument:r,removed:n}},move:function(t,e,r){var n=Sr(r,this.path);n&&(n=dr(n));var o=Pr(r,{op:"remove",path:this.from}).removed;return Pr(r,{op:"add",path:this.path,value:o}),{newDocument:r,removed:n}},copy:function(t,e,r){var n=Sr(r,this.from);return Pr(r,{op:"add",path:this.path,value:dr(n)}),{newDocument:r}},test:function(t,e,r){return{newDocument:r,test:kr(t[e],this.value)}},_get:function(t,e,r){return this.value=t[e],{newDocument:r}}},Er={add:function(t,e,r){return mr(e)?t.splice(e,0,this.value):t[e]=this.value,{newDocument:r,index:e}},remove:function(t,e,r){return{newDocument:r,removed:t.splice(e,1)[0]}},replace:function(t,e,r){var n=t[e];return t[e]=this.value,{newDocument:r,removed:n}},move:Or.move,copy:Or.copy,test:Or.test,_get:Or._get};function Sr(t,e){if(""==e)return t;var r={op:"_get",path:e};return Pr(t,r),r.value}function Pr(t,e,r,n,o,i){if(void 0===r&&(r=!1),void 0===n&&(n=!0),void 0===o&&(o=!0),void 0===i&&(i=0),r&&("function"==typeof r?r(e,0,t,e.path):Cr(e,0)),""===e.path){var a={newDocument:t};if("add"===e.op)return a.newDocument=e.value,a;if("replace"===e.op)return a.newDocument=e.value,a.removed=t,a;if("move"===e.op||"copy"===e.op)return a.newDocument=Sr(t,e.from),"move"===e.op&&(a.removed=t),a;if("test"===e.op){if(a.test=kr(t,e.value),!1===a.test)throw new xr("Test operation failed","TEST_OPERATION_FAILED",i,e,t);return a.newDocument=t,a}if("remove"===e.op)return a.removed=t,a.newDocument=null,a;if("_get"===e.op)return e.value=t,a;if(r)throw new xr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,e,t);return a}n||(t=dr(t));var s=(e.path||"").split("/"),u=t,c=1,l=s.length,p=void 0,f=void 0,h=void 0;for(h="function"==typeof r?r:Cr;;){if((f=s[c])&&-1!=f.indexOf("~")&&(f=vr(f)),o&&("__proto__"==f||"prototype"==f&&c>0&&"constructor"==s[c-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&void 0===p&&(void 0===u[f]?p=s.slice(0,c).join("/"):c==l-1&&(p=e.path),void 0!==p&&h(e,0,t,p)),c++,Array.isArray(u)){if("-"===f)f=u.length;else{if(r&&!mr(f))throw new xr("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,e,t);mr(f)&&(f=~~f)}if(c>=l){if(r&&"add"===e.op&&f>u.length)throw new xr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,e,t);if(!1===(a=Er[e.op].call(e,u,f,t)).test)throw new xr("Test operation failed","TEST_OPERATION_FAILED",i,e,t);return a}}else if(c>=l){if(!1===(a=Or[e.op].call(e,u,f,t)).test)throw new xr("Test operation failed","TEST_OPERATION_FAILED",i,e,t);return a}if(u=u[f],r&&c<l&&(!u||"object"!=typeof u))throw new xr("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,e,t)}}function jr(t,e,r,n,o){if(void 0===n&&(n=!0),void 0===o&&(o=!0),r&&!Array.isArray(e))throw new xr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(t=dr(t));for(var i=new Array(e.length),a=0,s=e.length;a<s;a++)i[a]=Pr(t,e[a],r,!0,o,a),t=i[a].newDocument;return i.newDocument=t,i}function Ar(t,e,r){var n=Pr(t,e);if(!1===n.test)throw new xr("Test operation failed","TEST_OPERATION_FAILED",r,e,t);return n.newDocument}function Cr(t,e,r,n){if("object"!=typeof t||null===t||Array.isArray(t))throw new xr("Operation is not an object","OPERATION_NOT_AN_OBJECT",e,t,r);if(!Or[t.op])throw new xr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",e,t,r);if("string"!=typeof t.path)throw new xr("Operation `path` property is not a string","OPERATION_PATH_INVALID",e,t,r);if(0!==t.path.indexOf("/")&&t.path.length>0)throw new xr('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",e,t,r);if(("move"===t.op||"copy"===t.op)&&"string"!=typeof t.from)throw new xr("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",e,t,r);if(("add"===t.op||"replace"===t.op||"test"===t.op)&&void 0===t.value)throw new xr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",e,t,r);if(("add"===t.op||"replace"===t.op||"test"===t.op)&&gr(t.value))throw new xr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",e,t,r);if(r)if("add"==t.op){var o=t.path.split("/").length,i=n.split("/").length;if(o!==i+1&&o!==i)throw new xr("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",e,t,r)}else if("replace"===t.op||"remove"===t.op||"_get"===t.op){if(t.path!==n)throw new xr("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",e,t,r)}else if("move"===t.op||"copy"===t.op){var a=Tr([{op:"_get",path:t.from,value:void 0}],r);if(a&&"OPERATION_PATH_UNRESOLVABLE"===a.name)throw new xr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",e,t,r)}}function Tr(t,e,r){try{if(!Array.isArray(t))throw new xr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(e)jr(dr(e),dr(t),r||!0);else{r=r||Cr;for(var n=0;n<t.length;n++)r(t[n],n,e,void 0)}}catch(t){if(t instanceof xr)return t;throw t}}function kr(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){var r,n,o,i=Array.isArray(t),a=Array.isArray(e);if(i&&a){if((n=t.length)!=e.length)return!1;for(r=n;0!=r--;)if(!kr(t[r],e[r]))return!1;return!0}if(i!=a)return!1;var s=Object.keys(t);if((n=s.length)!==Object.keys(e).length)return!1;for(r=n;0!=r--;)if(!e.hasOwnProperty(s[r]))return!1;for(r=n;0!=r--;)if(!kr(t[o=s[r]],e[o]))return!1;return!0}return t!=t&&e!=e}var Mr=new WeakMap,Ir=function(t){this.observers=new Map,this.obj=t},Dr=function(t,e){this.callback=t,this.observer=e};function Lr(t,e){e.unobserve()}function Rr(t,e){var r,n=function(t){return Mr.get(t)}(t);if(n){var o=function(t,e){return t.observers.get(e)}(n,e);r=o&&o.observer}else n=new Ir(t),Mr.set(t,n);if(r)return r;if(r={},n.value=dr(t),e){r.callback=e,r.next=null;var i=function(){zr(r)},a=function(){clearTimeout(r.next),r.next=setTimeout(i)};"undefined"!=typeof window&&(window.addEventListener("mouseup",a),window.addEventListener("keyup",a),window.addEventListener("mousedown",a),window.addEventListener("keydown",a),window.addEventListener("change",a))}return r.patches=[],r.object=t,r.unobserve=function(){zr(r),clearTimeout(r.next),function(t,e){t.observers.delete(e.callback)}(n,r),"undefined"!=typeof window&&(window.removeEventListener("mouseup",a),window.removeEventListener("keyup",a),window.removeEventListener("mousedown",a),window.removeEventListener("keydown",a),window.removeEventListener("change",a))},n.observers.set(e,new Dr(e,r)),r}function zr(t,e){void 0===e&&(e=!1);var r=Mr.get(t.object);Nr(r.value,t.object,t.patches,"",e),t.patches.length&&jr(r.value,t.patches);var n=t.patches;return n.length>0&&(t.patches=[],t.callback&&t.callback(n)),n}function Nr(t,e,r,n,o){if(e!==t){"function"==typeof e.toJSON&&(e=e.toJSON());for(var i=hr(e),a=hr(t),s=!1,u=a.length-1;u>=0;u--){var c=t[p=a[u]];if(!fr(e,p)||void 0===e[p]&&void 0!==c&&!1===Array.isArray(e))Array.isArray(t)===Array.isArray(e)?(o&&r.push({op:"test",path:n+"/"+yr(p),value:dr(c)}),r.push({op:"remove",path:n+"/"+yr(p)}),s=!0):(o&&r.push({op:"test",path:n,value:t}),r.push({op:"replace",path:n,value:e}));else{var l=e[p];"object"==typeof c&&null!=c&&"object"==typeof l&&null!=l&&Array.isArray(c)===Array.isArray(l)?Nr(c,l,r,n+"/"+yr(p),o):c!==l&&(o&&r.push({op:"test",path:n+"/"+yr(p),value:dr(c)}),r.push({op:"replace",path:n+"/"+yr(p),value:dr(l)}))}}if(s||i.length!=a.length)for(u=0;u<i.length;u++){var p;fr(t,p=i[u])||void 0===e[p]||r.push({op:"add",path:n+"/"+yr(p),value:dr(e[p])})}}}function Fr(t,e,r){void 0===r&&(r=!1);var n=[];return Nr(t,e,n,"",r),n}Object.assign({},n,o,{JsonPatchError:_r,deepClone:dr,escapePathComponent:yr,unescapePathComponent:vr});var Br=r(9996),Vr=r.n(Br);const Ur={add:function(t,e){return{op:"add",path:t,value:e}},replace:$r,remove:function(t){return{op:"remove",path:t}},merge:function(t,e){return{type:"mutation",op:"merge",path:t,value:e}},mergeDeep:function(t,e){return{type:"mutation",op:"mergeDeep",path:t,value:e}},context:function(t,e){return{type:"context",path:t,value:e}},getIn:function(t,e){return e.reduce(((t,e)=>void 0!==e&&t?t[e]:t),t)},applyPatch:function(t,e,r){if(r=r||{},"merge"===(e=P(P({},e),{},{path:e.path&&qr(e.path)})).op){const r=nn(t,e.path);Object.assign(r,e.value),jr(t,[$r(e.path,r)])}else if("mergeDeep"===e.op){const r=nn(t,e.path),n=Vr()(r,e.value);t=jr(t,[$r(e.path,n)]).newDocument}else if("add"===e.op&&""===e.path&&Xr(e.value))jr(t,Object.keys(e.value).reduce(((t,r)=>(t.push({op:"add",path:`/${qr(r)}`,value:e.value[r]}),t)),[]));else if("replace"===e.op&&""===e.path){let{value:n}=e;r.allowMetaPatches&&e.meta&&en(e)&&(Array.isArray(e.value)||Xr(e.value))&&(n=P(P({},n),e.meta)),t=n}else if(jr(t,[e]),r.allowMetaPatches&&e.meta&&en(e)&&(Array.isArray(e.value)||Xr(e.value))){const r=P(P({},nn(t,e.path)),e.meta);jr(t,[$r(e.path,r)])}return t},parentPathMatch:function(t,e){if(!Array.isArray(e))return!1;for(let r=0,n=e.length;r<n;r+=1)if(e[r]!==t[r])return!1;return!0},flatten:Kr,fullyNormalizeArray:function(t){return Yr(Kr(Hr(t)))},normalizeArray:Hr,isPromise:function(t){return Xr(t)&&Jr(t.then)},forEachNew:function(t,e){try{return Gr(t,Zr,e)}catch(t){return t}}
1,forEachNewPrimitive:function(t,e){try{return Gr(t,Wr,e)}catch(t){return t}},isJsonPatch:Qr,isContextPatch:function(t){return rn(t)&&"context"===t.type},isPatch:rn,isMutation:tn,isAdditiveMutation:en,isGenerator:function(t){return"[object GeneratorFunction]"===Object.prototype.toString.call(t)},isFunction:Jr,isObject:Xr,isError:function(t){return t instanceof Error}};function qr(t){return Array.isArray(t)?t.length<1?"":`/${t.map((t=>(t+"").replace(/~/g,"~0").replace(/\//g,"~1"))).join("/")}`:t}function $r(t,e,r){return{op:"replace",path:t,value:e,meta:r}}function Gr(t,e,r){return Yr(Kr(t.filter(en).map((t=>e(t.value,r,t.path)))||[]))}function Wr(t,e,r){return r=r||[],Array.isArray(t)?t.map(((t,n)=>Wr(t,e,r.concat(n)))):Xr(t)?Object.keys(t).map((n=>Wr(t[n],e,r.concat(n)))):e(t,r[r.length-1],r)}function Zr(t,e,r){let n=[];if((r=r||[]).length>0){const o=e(t,r[r.length-1],r);o&&(n=n.concat(o))}if(Array.isArray(t)){const o=t.map(((t,n)=>Zr(t,e,r.concat(n))));o&&(n=n.concat(o))}else if(Xr(t)){const o=Object.keys(t).map((n=>Zr(t[n],e,r.concat(n))));o&&(n=n.concat(o))}return n=Kr(n),n}function Hr(t){return Array.isArray(t)?t:[t]}function Kr(t){return[].concat(...t.map((t=>Array.isArray(t)?Kr(t):t)))}function Yr(t){return t.filter((t=>void 0!==t))}function Xr(t){return t&&"object"==typeof t}function Jr(t){return t&&"function"==typeof t}function Qr(t){if(rn(t)){const{op:e}=t;return"add"===e||"remove"===e||"replace"===e}return!1}function tn(t){return Qr(t)||rn(t)&&"mutation"===t.type}function en(t){return tn(t)&&("add"===t.op||"replace"===t.op||"merge"===t.op||"mergeDeep"===t.op)}function rn(t){return t&&"object"==typeof t}function nn(t,e){try{return Sr(t,e)}catch(t){return console.error(t),{}}}function on(t,e){function r(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack;for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];[this.message]=r,e&&e.apply(this,r)}return r.prototype=new Error,r.prototype.name=t,r.prototype.constructor=r,r}var an=r(13692),sn=r.n(an);const un=["properties"],cn=["properties"],ln=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],pn=["schema/example","items/example"];function fn(t){const e=t[t.length-1],r=t[t.length-2],n=t.join("/");return un.indexOf(e)>-1&&-1===cn.indexOf(r)||ln.indexOf(n)>-1||pn.some((t=>n.indexOf(t)>-1))}function hn(t,e){const[r,n]=t.split("#"),o=j.resolve(r||"",e||"");return n?`${o}#${n}`:o}const dn=/^([a-z]+:\/\/|\/\/)/i,mn=on("JSONRefError",(function(t,e,r){this.originalError=r,Object.assign(this,e||{})})),yn={},vn=new WeakMap,gn=[t=>"paths"===t[0]&&"responses"===t[3]&&"examples"===t[5],t=>"paths"===t[0]&&"responses"===t[3]&&"content"===t[5]&&"example"===t[7],t=>"paths"===t[0]&&"responses"===t[3]&&"content"===t[5]&&"examples"===t[7]&&"value"===t[9],t=>"paths"===t[0]&&"requestBody"===t[3]&&"content"===t[4]&&"example"===t[6],t=>"paths"===t[0]&&"requestBody"===t[3]&&"content"===t[4]&&"examples"===t[6]&&"value"===t[8],t=>"paths"===t[0]&&"parameters"===t[2]&&"example"===t[4],t=>"paths"===t[0]&&"parameters"===t[3]&&"example"===t[5],t=>"paths"===t[0]&&"parameters"===t[2]&&"examples"===t[4]&&"value"===t[6],t=>"paths"===t[0]&&"parameters"===t[3]&&"examples"===t[5]&&"value"===t[7],t=>"paths"===t[0]&&"parameters"===t[2]&&"content"===t[4]&&"example"===t[6],t=>"paths"===t[0]&&"parameters"===t[2]&&"content"===t[4]&&"examples"===t[6]&&"value"===t[8],t=>"paths"===t[0]&&"parameters"===t[3]&&"content"===t[4]&&"example"===t[7],t=>"paths"===t[0]&&"parameters"===t[3]&&"content"===t[5]&&"examples"===t[7]&&"value"===t[9]],bn={key:"$ref",plugin:(t,e,r,n)=>{const o=n.getInstance(),i=r.slice(0,-1);if(fn(i)||(a=i,gn.some((t=>t(a)))))return;var a;const{baseDoc:s}=n.getContext(r);if("string"!=typeof t)return new mn("$ref: must be a string (JSON-Ref)",{$ref:t,baseDoc:s,fullPath:r});const u=En(t),c=u[0],l=u[1]||"";let p,f,h;try{p=s||c?wn(c,s):null}catch(e){return On(e,{pointer:l,$ref:t,basePath:p,fullPath:r})}if(function(t,e,r,n){let o=vn.get(n);o||(o={},vn.set(n,o));const i=0===(u=r).length?"":`/${u.map(Tn).join("/")}`,a=`${e||"<specmap-base>"}#${t}`,s=i.replace(/allOf\/\d+\/?/g,"");var u;if(e===n.contextTree.get([]).baseDoc&&kn(s,t))return!0;let c="";const l=r.some((t=>(c=`${c}/${Tn(t)}`,o[c]&&o[c].some((t=>kn(t,a)||kn(a,t))))));if(l)return!0;o[s]=(o[s]||[]).concat(a)}(l,p,i,n)&&!o.useCircularStructures){const e=hn(t,p);return t===e?null:Ur.replace(r,e)}
vendor: 11,651 bytes, line 1
1if(null==p?(h=An(l),f=n.get(h),void 0===f&&(f=new mn(`Could not resolve reference: ${t}`,{pointer:l,$ref:t,baseDoc:s,fullPath:r}))):(f=Sn(p,l),f=null!=f.__value?f.__value:f.catch((e=>{throw On(e,{pointer:l,$ref:t,baseDoc:s,fullPath:r})}))),f instanceof Error)return[Ur.remove(r),f];const d=hn(t,p),m=Ur.replace(i,f,{$$ref:d});if(p&&p!==s)return[m,Ur.context(i,{baseDoc:p})];try{if(!function(t,e){const r=[t];return e.path.reduce(((t,e)=>(r.push(t[e]),t[e])),t),function t(e){return Ur.isObject(e)&&(r.indexOf(e)>=0||Object.keys(e).some((r=>t(e[r]))))}(e.value)}(n.state,m)||o.useCircularStructures)return m}catch(t){return null}}},_n=Object.assign(bn,{docCache:yn,absoluteify:wn,clearCache:function(t){void 0!==t?delete yn[t]:Object.keys(yn).forEach((t=>{delete yn[t]}))},JSONRefError:mn,wrapError:On,getDoc:Pn,split:En,extractFromDoc:Sn,fetchJSON:function(t){return fetch(t,{headers:{Accept:ir},loadSpec:!0}).then((t=>t.text())).then((t=>Re.load(t)))},extract:jn,jsonPointerToArray:An,unescapeJsonPointerToken:Cn}),xn=_n;function wn(t,e){if(!dn.test(t)){if(!e)throw new mn(`Tried to resolve a relative URL, without having a basePath. path: '${t}' basePath: '${e}'`);return j.resolve(e,t)}return t}function On(t,e){let r;return r=t&&t.response&&t.response.body?`${t.response.body.code} ${t.response.body.message}`:t.message,new mn(`Could not resolve reference: ${r}`,e,t)}function En(t){return(t+"").split("#")}function Sn(t,e){const r=yn[t];if(r&&!Ur.isPromise(r))try{const t=jn(e,r);return Object.assign(Promise.resolve(t),{__value:t})}catch(t){return Promise.reject(t)}return Pn(t).then((t=>jn(e,t)))}function Pn(t){const e=yn[t];return e?Ur.isPromise(e)?e:Promise.resolve(e):(yn[t]=_n.fetchJSON(t).then((e=>(yn[t]=e,e))),yn[t])}function jn(t,e){const r=An(t);if(r.length<1)return e;const n=Ur.getIn(e,r);if(void 0===n)throw new mn(`Could not resolve pointer: ${t} does not exist in document`,{pointer:t});return n}function An(t){if("string"!=typeof t)throw new TypeError("Expected a string, got a "+typeof t);return"/"===t[0]&&(t=t.substr(1)),""===t?[]:t.split("/").map(Cn)}function Cn(t){return"string"!=typeof t?t:new URLSearchParams(`=${t.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function Tn(t){return new URLSearchParams([["",t.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}function kn(t,e){if((t=>!t||"/"===t||"#"===t)(e))return!0;const r=t.charAt(e.length),n=e.slice(-1);return 0===t.indexOf(e)&&(!r||"/"===r||"#"===r)&&"#"!==n}const Mn={key:"allOf",plugin:(t,e,r,n,o)=>{if(o.meta&&o.meta.$$ref)return;const i=r.slice(0,-1);if(fn(i))return;if(!Array.isArray(t)){const t=new TypeError("allOf must be an array");return t.fullPath=r,t}let a=!1,s=o.value;if(i.forEach((t=>{s&&(s=s[t])})),s=P({},s),0===Object.keys(s).length)return;delete s.allOf;const u=[];return u.push(n.replace(i,{})),t.forEach(((t,e)=>{if(!n.isObject(t)){if(a)return null;a=!0;const t=new TypeError("Elements in allOf must be objects");return t.fullPath=r,u.push(t)}u.push(n.mergeDeep(i,t));const o=function(t,e){let{specmap:r,getBaseUrlForNodePath:n=(t=>r.getContext([...e,...t]).baseDoc),targetKeys:o=["$ref","$$ref"]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=[];return sn()(t).forEach((function(){if(o.includes(this.key)&&"string"==typeof this.node){const t=this.path,o=e.concat(this.path),a=hn(this.node,n(t));i.push(r.replace(o,a))}})),i}(t,r.slice(0,-1),{getBaseUrlForNodePath:t=>n.getContext([...r,e,...t]).baseDoc,specmap:n});u.push(...o)})),s.example&&u.push(n.remove([].concat(i,"example"))),u.push(n.mergeDeep(i,s)),s.$$ref||u.push(n.remove([].concat(i,"$$ref"))),u}},In={key:"parameters",plugin:(t,e,r,n)=>{if(Array.isArray(t)&&t.length){const e=Object.assign([],t),o=r.slice(0,-1),i=P({},Ur.getIn(n.spec,o));for(let a=0;a<t.length;a+=1){const o=t[a];try{e[a].default=n.parameterMacro(i,o)}catch(t){const e=new Error(t);return e.fullPath=r,e}}return Ur.replace(r,e)}return Ur.replace(r,t)}},Dn={key:"properties",plugin:(t,e,r,n)=>{const o=P({},t);for(const i in t)try{o[i].default=n.modelPropertyMacro(o[i])}catch(t){const e=new Error(t);return e.fullPath=r,e}return Ur.replace(r,o)}};class Ln{constructor(t){this.root=Rn(t||{})}set(t,e){const r=this.getParent(t,!0);if(!r)return void zn(this.root,e,null);const n=t[t.length-1],{children:o}=r;o[n]?zn(o[n],e,r):o[n]=Rn(e,r)}get(t){if((t=t||[]).length<1)return this.root.value;let e,r,n=this.root;for(let o=0;o<t.length&&(r=t[o],e=n.children,e[r]);o+=1)n=e[r];return n&&n.protoValue}getParent(t,e){return!t||t.length<1?null:t.length<2?this.root:t.slice(0,-1).reduce(((t,r)=>{if(!t)return t;const{children:n}=t;return!n[r]&&e&&(n[r]=Rn(null,t)),n[r]}),this.root)}}function Rn(t,e){return zn({children:{}},t,e)}function zn(t,e,r){return t.value=e||{},t.protoValue=r?P(P({},r.protoValue),t.value):t.value,Object.keys(t.children).forEach((e=>{const r=t.children[e];t.children[e]=zn(r,r.value,t)})),t}const Nn=()=>{};class Fn{static getPluginName(t){return t.pluginName}static getPatchesOfType(t,e){return t.filter(e)}constructor(t){Object.assign(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new Ln,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),Ur,{getInstance:()=>this}),allowMetaPatches:!1},t),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=this.plugins.map(this.wrapPlugin.bind(this)).filter(Ur.isFunction),this.patches.push(Ur.add([],this.spec)),this.patches.push(Ur.context([],this.context)),this.updatePatches(this.patches)}debug(t){if(this.debugLevel===t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];console.log(...r)}}verbose(t){if("verbose"===this.debugLevel){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];console.log(`[${t}] `,...r)}}wrapPlugin(t,e){const{pathDiscriminator:r}=this;let n,o=null;return t[this.pluginProp]?(o=t,n=t[this.pluginProp]):Ur.isFunction(t)?n=t:Ur.isObject(t)&&(n=function(t){const e=(t,e)=>!Array.isArray(t)||t.every(((t,r)=>t===e[r]));return function*(n,o){const i={};for(const t of n.filter(Ur.isAdditiveMutation))yield*a(t.value,t.path,t);function*a(n,s,u){if(Ur.isObject(n)){const c=s.length-1,l=s[c],p=s.indexOf("properties"),f="properties"===l&&c===p,h=o.allowMetaPatches&&i[n.$$ref];for(const d of Object.keys(n)){const c=n[d],l=s.concat(d),p=Ur.isObject(c),m=n.$$ref;if(h||p&&(o.allowMetaPatches&&m&&(i[m]=!0),yield*a(c,l,u)),!f&&d===t.key){const n=e(r,s);r&&!n||(yield t.plugin(c,d,l,o,u))}}}else t.key===s[s.length-1]&&(yield t.plugin(n,t.key,s,o))}}}(t)),Object.assign(n.bind(o),{pluginName:t.name||e,isGenerator:Ur.isGenerator(n)})}nextPlugin(){return this.wrappedPlugins.find((t=>this.getMutationsForPlugin(t).length>0))}nextPromisedPatch(){if(this.promisedPatches.length>0)return Promise.race(this.promisedPatches.map((t=>t.value)))}getPluginHistory(t){const e=this.constructor.getPluginName(t);return this.pluginHistory[e]||[]}getPluginRunCount(t){return this.getPluginHistory(t).length}getPluginHistoryTip(t){const e=this.getPluginHistory(t);return e&&e[e.length-1]||{}}getPluginMutationIndex(t){const e=this.getPluginHistoryTip(t).mutationIndex;return"number"!=typeof e?-1:e}updatePluginHistory(t,e){const r=this.constructor.getPluginName(t);this.pluginHistory[r]=this.pluginHistory[r]||[],this.pluginHistory[r].push(e)}updatePatches(t){Ur.normalizeArray(t).forEach((t=>{if(t instanceof Error)this.errors.push(t);else try{if(!Ur.isObject(t))return void this.debug("updatePatches","Got a non-object patch",t);if(this.showDebug&&this.allPatches.push(t),Ur.isPromise(t.value))return this.promisedPatches.push(t),void this.promisedPatchThen(t);if(Ur.isContextPatch(t))return void this.setContext(t.path,t.value);if(Ur.isMutation(t))return void this.updateMutations(t)}catch(t){console.error(t),this.errors.push(t)}}))}updateMutations(t){"object"==typeof t.value&&!Array.isArray(t.value)&&this.allowMetaPatches&&(t.value=P({},t.value));const e=Ur.applyPatch(this.state,t,{allowMetaPatches:this.allowMetaPatches});e&&(this.mutations.push(t),this.state=e)}removePromisedPatch(t){const e=this.promisedPatches.indexOf(t);e<0?this.debug("Tried to remove a promisedPatch that isn't there!"):this.promisedPatches.splice(e,1)}promisedPatchThen(t){return t.value=t.value.then((e=>{const r=P(P({},t),{},{value:e});this.removePromisedPatch(t),this.updatePatches(r)})).catch((e=>{this.removePromisedPatch(t),this.updatePatches(e)})),t.value}getMutations(t,e){return t=t||0,"number"!=typeof e&&(e=this.mutations.length),this.mutations.slice(t,e)}getCurrentMutations(){return this.getMutationsForPlugin(this.getCurrentPlugin())}getMutationsForPlugin(t){const e=this.getPluginMutationIndex(t);return this.getMutations(e+1)}getCurrentPlugin(){return this.currentPlugin}getLib(){return this.libMethods}_get(t){return Ur.getIn(this.state,t)}_getContext(t){return this.contextTree.get(t)}setContext(t,e){return this.contextTree.set(t,e)}_hasRun(t){return this.getPluginRunCount(this.getCurrentPlugin())>(t||0)}dispatch(){const t=this,e=this.nextPlugin();if(!e){const t=this.nextPromisedPatch();if(t)return t.then((()=>this.dispatch())).catch((()=>this.dispatch()));const e={spec:this.state,errors:this.errors};return this.showDebug&&(e.patches=this.allPatches),Promise.resolve(e)}if(t.pluginCount=t.pluginCount||{},t.pluginCount[e]=(t.pluginCount[e]||0)+1,t.pluginCount[e]>100)return Promise.resolve({spec:t.state,errors:t.errors.concat(new Error("We've reached a hard limit of 100 plugin runs"))});if(e!==this.currentPlugin&&this.promisedPatches.length){const t=this.promisedPatches.map((t=>t.value));return Promise.all(t.map((t=>t.then(Nn,Nn)))).then((()=>this.dispatch()))}return function(){t.currentPlugin=e;const n=t.getCurrentMutations(),o=t.mutations.length-1;try{if(e.isGenerator)for(const o of e(n,t.getLib()))r(o);else r(e(n,t.getLib()))}catch(t){console.error(t),r([Object.assign(Object.create(t),{plugin:e})])}finally{t.updatePluginHistory(e,{mutationIndex:o})}return t.dispatch()}();function r(r){r&&(r=Ur.fullyNormalizeArray(r),t.updatePatches(r,e))}}}const Bn={refs:xn,allOf:Mn,parameters:In,properties:Dn},Vn=t=>t.replace(/\W/gi,"_");function Un(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",{v2OperationIdCompatibilityMode:n}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t&&"object"==typeof t?(t.operationId||"").replace(/\s/g,"").length?Vn(t.operationId):function(t,e){let{v2OperationIdCompatibilityMode:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(r){let r=`${e.toLowerCase()}_${t}`.replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return r=r||`${t.substring(1)}_${e}`,r.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return`${e.toLowerCase()}${Vn(t)}`}(e,r,{v2OperationIdCompatibilityMode:n}):null}function qn(t){const{spec:e}=t,{paths:r}=e,n={};if(!r||e.$$normalized)return t;for(const o in r){const t=r[o];if(null==t||!["object","function"].includes(typeof t))continue;const i=t.parameters;for(const r in t){const a=t[r];if(null==a||!["object","function"].includes(typeof a))continue;const s=Un(a,o,r);if(s){n[s]?n[s].push(a):n[s]=[a];const t=n[s];if(t.length>1)t.forEach(((t,e)=>{t.__originalOperationId=t.__originalOperationId||t.operationId,t.operationId=`${s}${e+1}`}));else if(void 0!==a.operationId){const e=t[0];e.__originalOperationId=e.__originalOperationId||a.operationId,e.operationId=s}}if("parameters"!==r){const t=[],r={};for(const n in e)"produces"!==n&&"consumes"!==n&&"security"!==n||(r[n]=e[n],t.push(r));
1if(i&&(r.parameters=i,t.push(r)),t.length)for(const e of t)for(const t in e)if(a[t]){if("parameters"===t)for(const r of e[t])a[t].some((t=>t.name&&t.name===r.name||t.$ref&&t.$ref===r.$ref||t.$$ref&&t.$$ref===r.$$ref||t===r))||a[t].push(r)}else a[t]=e[t]}}}return e.$$normalized=!0,t}async function $n(t){const{spec:e,mode:r,allowMetaPatches:n=!0,pathDiscriminator:o,modelPropertyMacro:i,parameterMacro:a,requestInterceptor:s,responseInterceptor:u,skipNormalization:c,useCircularStructures:l}=t,p=sr(t),f=ur(t);return function(t){p&&(Bn.refs.docCache[p]=t),Bn.refs.fetchJSON=ar(f,{requestInterceptor:s,responseInterceptor:u});const e=[Bn.refs];return"function"==typeof a&&e.push(Bn.parameters),"function"==typeof i&&e.push(Bn.properties),"strict"!==r&&e.push(Bn.allOf),(h={spec:t,context:{baseDoc:p},plugins:e,allowMetaPatches:n,pathDiscriminator:o,parameterMacro:a,modelPropertyMacro:i,useCircularStructures:l},new Fn(h).dispatch()).then(c?async t=>t:qn);var h}(e)}const Gn={name:"generic",match:()=>!0,normalize(t){let{spec:e}=t;const{spec:r}=qn({spec:e});return r},resolve:async t=>$n(t)},Wn=t=>{try{const{openapi:e}=t;return"string"==typeof e&&/^3\.0\.([0123])(?:-rc[012])?$/.test(e)}catch{return!1}},Zn=t=>{try{const{openapi:e}=t;return"string"==typeof e&&/^3\.1\.(?:[1-9]\d*|0)$/.test(e)}catch{return!1}},Hn=t=>Wn(t)||Zn(t),Kn={name:"openapi-2",match(t){let{spec:e}=t;return(t=>{try{const{swagger:e}=t;return"2.0"===e}catch{return!1}})(e)},normalize(t){let{spec:e}=t;const{spec:r}=qn({spec:e});return r},resolve:async t=>async function(t){return $n(t)}(t)},Yn={name:"openapi-3-0",match(t){let{spec:e}=t;return Wn(e)},normalize(t){let{spec:e}=t;const{spec:r}=qn({spec:e});return r},resolve:async t=>async function(t){return $n(t)}(t)},Xn=t=>async e=>(async t=>{const{spec:e,requestInterceptor:r,responseInterceptor:n}=t,o=sr(t),i=ur(t),a=e||await ar(i,{requestInterceptor:r,responseInterceptor:n})(o),s=P(P({},t),{},{spec:a});return t.strategies.find((t=>t.match(s))).resolve(s)})(P(P({},t),e)),Jn=Xn({strategies:[Yn,Kn,Gn]});var Qn=r(27361),to=r.n(Qn);const eo=t=>async function(e,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return async function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{returnEntireTree:n,baseDoc:o,requestInterceptor:i,responseInterceptor:a,parameterMacro:s,modelPropertyMacro:u,useCircularStructures:c,strategies:l}=r,p={spec:t,pathDiscriminator:e,baseDoc:o,requestInterceptor:i,responseInterceptor:a,parameterMacro:s,modelPropertyMacro:u,useCircularStructures:c,strategies:l},f=l.find((t=>t.match(p))).normalize(p),h=await Jn(P(P({},p),{},{spec:f,allowMetaPatches:!0,skipNormalization:!0}));return!n&&Array.isArray(e)&&e.length&&(h.spec=to()(h.spec,e)||null),h}(e,r,P(P({},t),n))};eo({strategies:[Yn,Kn,Gn]});var ro=r(43500);class no extends ro.RP{constructor(t,e,r){super(t,e,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(t){this.attributes.set("code",t)}}const oo=no;class io extends ro.RP{constructor(t,e,r){super(t,e,r),this.element="comment"}}const ao=io,so=function(){return!1},uo=function(){return!0};function co(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}function lo(t){return function e(r){return 0===arguments.length||co(r)?e:t.apply(this,arguments)}}function po(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return co(r)?e:lo((function(e){return t(r,e)}));default:return co(r)&&co(n)?e:co(r)?lo((function(e){return t(e,n)})):co(n)?lo((function(e){return t(r,e)})):t(r,n)}}}const fo=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};function ho(t,e,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!fo(n)){for(var o=0;o<t.length;){if("function"==typeof n[t[o]])return n[t[o]].apply(n,Array.prototype.slice.call(arguments,0,-1));o+=1}if(function(t){return null!=t&&"function"==typeof t["@@transducer/step"]}(n))return e.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function mo(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}const yo=function(){return this.xf["@@transducer/init"]()},vo=function(t){return this.xf["@@transducer/result"](t)};var go=function(){function t(t,e){this.xf=e,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=yo,t.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)||(this.all=!1,t=mo(this.xf["@@transducer/step"](t,!1))),t},t}();const bo=po(ho(["all"],(function(t){return function(e){return new go(t,e)}}),(function(t,e){for(var r=0;r<e.length;){if(!t(e[r]))return!1;r+=1}return!0})));function _o(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,r){return e.apply(this,arguments)};case 3:return function(t,r,n){return e.apply(this,arguments)};case 4:return function(t,r,n,o){return e.apply(this,arguments)};case 5:return function(t,r,n,o,i){return e.apply(this,arguments)};case 6:return function(t,r,n,o,i,a){return e.apply(this,arguments)};case 7:return function(t,r,n,o,i,a,s){return e.apply(this,arguments)};case 8:return function(t,r,n,o,i,a,s,u){return e.apply(this,arguments)};case 9:return function(t,r,n,o,i,a,s,u,c){return e.apply(this,arguments)};case 10:return function(t,r,n,o,i,a,s,u,c,l){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function xo(t,e,r){return function(){for(var n=[],o=0,i=t,a=0;a<e.length||o<arguments.length;){var s;a<e.length&&(!co(e[a])||o>=arguments.length)?s=e[a]:(s=arguments[o],o+=1),n[a]=s,co(s)||(i-=1),a+=1}return i<=0?r.apply(this,n):_o(i,xo(t,n,r))}}const wo=po((function(t,e){return 1===t?lo(e):_o(t,xo(t,[],e))}));function Oo(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}function Eo(t,e,r){for(var n=0,o=r.length;n<o;){if(t(e,r[n]))return!0;n+=1}return!1}function So(t,e){return Object.prototype.hasOwnProperty.call(e,t)}const Po="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};var jo=Object.prototype.toString;const Ao=function(){return"[object Arguments]"===jo.call(arguments)?function(t){return"[object Arguments]"===jo.call(t)}
vendor: 5,650 bytes, line 1
1:function(t){return So("callee",t)}}();var Co=!{toString:null}.propertyIsEnumerable("toString"),To=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],ko=function(){return arguments.propertyIsEnumerable("length")}(),Mo=function(t,e){for(var r=0;r<t.length;){if(t[r]===e)return!0;r+=1}return!1};const Io="function"!=typeof Object.keys||ko?lo((function(t){if(Object(t)!==t)return[];var e,r,n=[],o=ko&&Ao(t);for(e in t)!So(e,t)||o&&"length"===e||(n[n.length]=e);if(Co)for(r=To.length-1;r>=0;)So(e=To[r],t)&&!Mo(n,e)&&(n[n.length]=e),r-=1;return n})):lo((function(t){return Object(t)!==t?[]:Object.keys(t)})),Do=lo((function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}));function Lo(t,e,r,n){var o=Oo(t);function i(t,e){return Ro(t,e,r.slice(),n.slice())}return!Eo((function(t,e){return!Eo(i,e,t)}),Oo(e),o)}function Ro(t,e,r,n){if(Po(t,e))return!0;var o,i,a=Do(t);if(a!==Do(e))return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof e["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e)&&"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof e.equals)return"function"==typeof t.equals&&t.equals(e)&&"function"==typeof e.equals&&e.equals(t);switch(a){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===(o=t.constructor,null==(i=String(o).match(/^function (\w*)/))?"":i[1]))return t===e;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof e||!Po(t.valueOf(),e.valueOf()))return!1;break;case"Date":if(!Po(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(t.source!==e.source||t.global!==e.global||t.ignoreCase!==e.ignoreCase||t.multiline!==e.multiline||t.sticky!==e.sticky||t.unicode!==e.unicode)return!1}for(var s=r.length-1;s>=0;){if(r[s]===t)return n[s]===e;s-=1}switch(a){case"Map":return t.size===e.size&&Lo(t.entries(),e.entries(),r.concat([t]),n.concat([e]));case"Set":return t.size===e.size&&Lo(t.values(),e.values(),r.concat([t]),n.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var u=Io(t);if(u.length!==Io(e).length)return!1;var c=r.concat([t]),l=n.concat([e]);for(s=u.length-1;s>=0;){var p=u[s];if(!So(p,e)||!Ro(e[p],t[p],c,l))return!1;s-=1}return!0}const zo=po((function(t,e){return Ro(t,e,[],[])}));function No(t,e){return function(t,e,r){var n,o;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(n=1/e;r<t.length;){if(0===(o=t[r])&&1/o===n)return r;r+=1}return-1}if(e!=e){for(;r<t.length;){if("number"==typeof(o=t[r])&&o!=o)return r;r+=1}return-1}return t.indexOf(e,r);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,r);case"object":if(null===e)return t.indexOf(e,r)}for(;r<t.length;){if(zo(t[r],e))return r;r+=1}return-1}(e,t,0)>=0}function Fo(t,e){for(var r=0,n=e.length,o=Array(n);r<n;)o[r]=t(e[r]),r+=1;return o}function Bo(t){return'"'+t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var Vo=function(t){return(t<10?"0":"")+t};const Uo="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+Vo(t.getUTCMonth()+1)+"-"+Vo(t.getUTCDate())+"T"+Vo(t.getUTCHours())+":"+Vo(t.getUTCMinutes())+":"+Vo(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function qo(t){return function(){return!t.apply(this,arguments)}}function $o(t,e,r){for(var n=0,o=r.length;n<o;)e=t(e,r[n]),n+=1;return e}function Go(t){return"[object Object]"===Object.prototype.toString.call(t)}var Wo=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=yo,t.prototype["@@transducer/result"]=vo,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):t},t}();const Zo=po(ho(["fantasy-land/filter","filter"],(function(t){return function(e){return new Wo(t,e)}}),(function(t,e){return Go(e)?$o((function(r,n){return t(e[n])&&(r[n]=e[n]),r}),{},Io(e)):function(t,e){for(var r=0,n=e.length,o=[];r<n;)t(e[r])&&(o[o.length]=e[r]),r+=1;return o}(t,e)}))),Ho=po((function(t,e){return Zo(qo(t),e)}));function Ko(t,e){var r=function(r){var n=e.concat([t]);return No(r,n)?"<Circular>":Ko(r,n)},n=function(t,e){return Fo((function(e){return Bo(e)+": "+r(t[e])}),e.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+Fo(r,t).join(", ")+"))";case"[object Array]":return"["+Fo(r,t).concat(n(t,Ho((function(t){return/^\d+$/.test(t)}),Io(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):Bo(Uo(t)))+")";case"[object Map]":return"new Map("+r(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+r(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+r(Array.from(t).sort())+")";case"[object String]":return"object"==typeof t?"new String("+r(t.valueOf())+")":Bo(t);
1case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var o=t.toString();if("[object Object]"!==o)return o}return"{"+n(t,Io(t)).join(", ")+"}"}}const Yo=lo((function(t){return Ko(t,[])})),Xo=po((function(t,e){if(t===e)return e;function r(t,e){if(t>e!=e>t)return e>t?e:t}var n=r(t,e);if(void 0!==n)return n;var o=r(typeof t,typeof e);if(void 0!==o)return o===typeof t?t:e;var i=Yo(t),a=r(i,Yo(e));return void 0!==a&&a===i?t:e}));var Jo=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=yo,t.prototype["@@transducer/result"]=vo,t.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},t}();const Qo=po(ho(["fantasy-land/map","map"],(function(t){return function(e){return new Jo(t,e)}}),(function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return wo(e.length,(function(){return t.call(this,e.apply(this,arguments))}));case"[object Object]":return $o((function(r,n){return r[n]=t(e[n]),r}),{},Io(e));default:return Fo(t,e)}}))),ti=Number.isInteger||function(t){return t<<0===t};function ei(t){return"[object String]"===Object.prototype.toString.call(t)}const ri=po((function(t,e){var r=t<0?e.length+t:t;return ei(e)?e.charAt(r):e[r]})),ni=po((function(t,e){if(null!=e)return ti(t)?ri(t,e):e[t]})),oi=po((function(t,e){return Qo(ni(t),e)}));function ii(t){return function e(r,n,o){switch(arguments.length){case 0:return e;case 1:return co(r)?e:po((function(e,n){return t(r,e,n)}));case 2:return co(r)&&co(n)?e:co(r)?po((function(e,r){return t(e,n,r)})):co(n)?po((function(e,n){return t(r,e,n)})):lo((function(e){return t(r,n,e)}));default:return co(r)&&co(n)&&co(o)?e:co(r)&&co(n)?po((function(e,r){return t(e,r,o)})):co(r)&&co(o)?po((function(e,r){return t(e,n,r)})):co(n)&&co(o)?po((function(e,n){return t(r,e,n)})):co(r)?lo((function(e){return t(e,n,o)})):co(n)?lo((function(e){return t(r,e,o)})):co(o)?lo((function(e){return t(r,n,e)})):t(r,n,o)}}}const ai=lo((function(t){return!!fo(t)||!!t&&"object"==typeof t&&!ei(t)&&(0===t.length||t.length>0&&t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1))}));var si="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function ui(t,e,r){return function(n,o,i){if(ai(i))return t(n,o,i);if(null==i)return o;if("function"==typeof i["fantasy-land/reduce"])return e(n,o,i,"fantasy-land/reduce");if(null!=i[si])return r(n,o,i[si]());if("function"==typeof i.next)return r(n,o,i);if("function"==typeof i.reduce)return e(n,o,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}const ci=po((function(t,e){return _o(t.length,(function(){return t.apply(e,arguments)}))}));const li=ui((function(t,e,r){for(var n=0,o=r.length;n<o;){if((e=t["@@transducer/step"](e,r[n]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}n+=1}return t["@@transducer/result"](e)}),(function(t,e,r,n){return t["@@transducer/result"](r[n](ci(t["@@transducer/step"],t),e))}),(function(t,e,r){for(var n=r.next();!n.done;){if((e=t["@@transducer/step"](e,n.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}n=r.next()}return t["@@transducer/result"](e)}));var pi=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}();function fi(t){return new pi(t)}const hi=ii((function(t,e,r){return li("function"==typeof t?fi(t):t,e,r)})),di=lo((function(t){return wo(hi(Xo,0,oi("length",t)),(function(){for(var e=0,r=t.length;e<r;){if(!t[e].apply(this,arguments))return!1;e+=1}return!0}))})),mi=lo((function(t){return function(){return t}})),yi=lo((function(t){return wo(hi(Xo,0,oi("length",t)),(function(){for(var e=0,r=t.length;e<r;){if(t[e].apply(this,arguments))return!0;e+=1}return!1}))}));const vi=ui($o,(function(t,e,r,n){return r[n](t,e)}),(function(t,e,r){for(var n=r.next();!n.done;)e=t(e,n.value),n=r.next();return e})),gi=po((function(t,e){return"function"==typeof e["fantasy-land/ap"]?e["fantasy-land/ap"](t):"function"==typeof t.ap?t.ap(e):"function"==typeof t?function(r){return t(r)(e(r))}:vi((function(t,r){return function(t,e){var r;e=e||[];var n=(t=t||[]).length,o=e.length,i=[];for(r=0;r<n;)i[i.length]=t[r],r+=1;for(r=0;r<o;)i[i.length]=e[r],r+=1;return i}(t,Qo(r,e))}),[],t)})),bi=po((function(t,e){return t.apply(this,e)})),_i=lo((function(t){for(var e=Io(t),r=e.length,n=[],o=0;o<r;)n[o]=t[e[o]],o+=1;return n})),xi=lo((function(t){return null==t})),wi=ii((function t(e,r,n){if(0===e.length)return r;var o=e[0];if(e.length>1){var i=!xi(n)&&So(o,n)&&"object"==typeof n[o]?n[o]:ti(e[1])?[]:{};r=t(Array.prototype.slice.call(e,1),r,i)}return function(t,e,r){if(ti(t)&&fo(r)){var n=[].concat(r);return n[t]=e,n}var o={};for(var i in r)o[i]=r[i];return o[t]=e,o}(o,r,n)}));function Oi(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e||"[object GeneratorFunction]"===e||"[object AsyncGeneratorFunction]"===e}const Ei=po((function(t,e){return t&&e})),Si=po((function(t,e){var r=wo(t,e);return wo(t,(function(){return $o(gi,Qo(r,arguments[0]),Array.prototype.slice.call(arguments,1
1))}))})),Pi=lo((function(t){return Si(t.length,t)})),ji=po((function(t,e){return Oi(t)?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:Pi(Ei)(t,e)})),Ai=lo((function(t){return function(e,r){return t(e,r)?-1:t(r,e)?1:0}})),Ci=Pi(lo((function(t){return!t})));function Ti(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function ki(t,e){return function(){var r=arguments.length;if(0===r)return e();var n=arguments[r-1];return fo(n)||"function"!=typeof n[t]?e.apply(this,arguments):n[t].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const Mi=ii(ki("slice",(function(t,e,r){return Array.prototype.slice.call(r,t,e)}))),Ii=lo(ki("tail",Mi(1,1/0)));function Di(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return _o(arguments[0].length,hi(Ti,arguments[0],Ii(arguments)))}const Li=po((function(t,e){return wo(hi(Xo,0,oi("length",e)),(function(){var r=arguments,n=this;return t.apply(n,Fo((function(t){return t.apply(n,r)}),e))}))}));function Ri(t){return new RegExp(t.source,t.flags?t.flags:(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":"")+(t.dotAll?"s":""))}function zi(t,e,r){if(r||(r=new Ni),function(t){var e=typeof t;return null==t||"object"!=e&&"function"!=e}(t))return t;var n=function(n){var o=r.get(t);if(o)return o;for(var i in r.set(t,n),t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=e?zi(t[i],!0,r):t[i]);return n};switch(Do(t)){case"Object":return n(Object.create(Object.getPrototypeOf(t)));case"Array":return n([]);case"Date":return new Date(t.valueOf());case"RegExp":return Ri(t);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return t.slice();default:return t}}var Ni=function(){function t(){this.map={},this.length=0}return t.prototype.set=function(t,e){const r=this.hash(t);let n=this.map[r];n||(this.map[r]=n=[]),n.push([t,e]),this.length+=1},t.prototype.hash=function(t){let e=[];for(var r in t)e.push(Object.prototype.toString.call(t[r]));return e.join()},t.prototype.get=function(t){if(this.length<=180){for(const e in this.map){const r=this.map[e];for(let e=0;e<r.length;e+=1){const n=r[e];if(n[0]===t)return n[1]}}return}const e=this.hash(t),r=this.map[e];if(r)for(let n=0;n<r.length;n+=1){const e=r[n];if(e[0]===t)return e[1]}},t}(),Fi=function(){function t(t,e,r,n){this.valueFn=t,this.valueAcc=e,this.keyFn=r,this.xf=n,this.inputs={}}return t.prototype["@@transducer/init"]=yo,t.prototype["@@transducer/result"]=function(t){var e;for(e in this.inputs)if(So(e,this.inputs)&&(t=this.xf["@@transducer/step"](t,this.inputs[e]))["@@transducer/reduced"]){t=t["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){var r=this.keyFn(e);return this.inputs[r]=this.inputs[r]||[r,zi(this.valueAcc,!1)],this.inputs[r][1]=this.valueFn(this.inputs[r][1],e),t},t}();const Bi=xo(4,[],ho([],(function(t,e,r){return function(n){return new Fi(t,e,r,n)}}),(function(t,e,r,n){var o=fi((function(n,o){var i=r(o),a=t(So(i,n)?n[i]:zi(e,!1),o);return a&&a["@@transducer/reduced"]?mo(n):(n[i]=a,n)}));return li(o,{},n)}))),Vi=lo((function(t){return wo(t.length,t)})),Ui=po((function(t,e){return null==e||e!=e?t:e}));function qi(t,e,r){var n,o=typeof t;switch(o){case"string":case"number":return 0===t&&1/t==-1/0?!!r._items["-0"]||(e&&(r._items["-0"]=!0),!1):null!==r._nativeSet?e?(n=r._nativeSet.size,r._nativeSet.add(t),r._nativeSet.size===n):r._nativeSet.has(t):o in r._items?t in r._items[o]||(e&&(r._items[o][t]=!0),!1):(e&&(r._items[o]={},r._items[o][t]=!0),!1);case"boolean":if(o in r._items){var i=t?1:0;return!!r._items[o][i]||(e&&(r._items[o][i]=!0),!1)}return e&&(r._items[o]=t?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?e?(n=r._nativeSet.size,r._nativeSet.add(t),r._nativeSet.size===n):r._nativeSet.has(t):o in r._items?!!No(t,r._items[o])||(e&&r._items[o].push(t),!1):(e&&(r._items[o]=[t]),!1);case"undefined":return!!r._items[o]||(e&&(r._items[o]=!0),!1);case"object":if(null===t)return!!r._items.null||(e&&(r._items.null=!0),!1);default:return(o=Object.prototype.toString.call(t))in r._items?!!No(t,r._items[o])||(e&&r._items[o].push(t),!1):(e&&(r._items[o]=[t]),!1)}}const $i=function(){function t(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return t.prototype.add=function(t){return!qi(t,!0,this)},t.prototype.has=function(t){return qi(t,!1,this)},t}();var Gi=po((function(t,e){for(var r=[],n=0,o=t.length,i=e.length,a=new $i,s=0;s<i;s+=1)a.add(e[s]);for(;n<o;)a.add(t[n])&&(r[r.length]=t[n]),n+=1;return r}));const Wi=Gi;var Zi=function(){function t(t,e){this.xf=e,this.n=t,this.i=0}return t.prototype["@@transducer/init"]=yo,t.prototype["@@transducer/result"]=vo,t.prototype["@@transducer/step"]=function(t,e){this.i+=1;var r=0===this.n?t:this.xf["@@transducer/step"](t,e);return this.n>=0&&this.i>=this.n?mo(r):r},t}();const Hi=po(ho(["take"],(function(t){return function(e){return new Zi(t,e)}}),(function(t,e){return Mi(0,t<0?1/0:t,e)})));var Ki=function(){function t(t,e){this.f=t,this.retained=[],this.xf=e}return t.prototype["@@transducer/init"]=yo,t.prototype["@@transducer/result"]=function(t){return this.retained=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.retain(t,e):this.flush(t,e)},t.prototype.flush=function(t,e){return t=li(this.xf,t,this.retained),this.retained=[],this.xf["@@transducer/step"](t,e)},t.prototype.retain=function(t,e){return this.retained.push(e),t},t}();const Yi=po(ho([],(function(t){return function(e){return new Ki(t,e)}}),(function(t,e){for(var r=e.length-1;r>=0&&t(e[r]);)r-=1;return Mi(0,r+1,e)})));var Xi=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=yo,t.prototype["@@transducer/result"]=vo,t.prototype["@@transducer/step"]=function(t,e){if(this.f){if(this.f(e))return t;this.f=null}return this.xf["@@transducer/step"](t,e)},t}();const Ji=po(ho(["dropWhile"],(function(t){return function(e){return new Xi(t,e)}}),(function(t,e){for(var r=0,n=e.length;r<n&&t(e[r]);)r+=1;return Mi(r,1/0,e)}))),Qi=po((function(t,e){return t||e})),ta=po((function(t,e){return Oi(t)?function(){return t.apply(this,arguments)||e.apply(this,arguments)}:Pi(Qi)(t,e)}));var ea=lo((function(t){return null!=t&&"function"==typeof t["fantasy-land/empty"]?t["fantasy-land/empty"]():null!=t&&null!=t.constructor&&"function"==typeof t.constructor["fantasy-land/empty"]?t.constructor["fantasy-land/empty"]():null!=t&&"function"==typeof t.empty?t.empty():null!=t&&null!=t.constructor&&"function"==typeof t.constructor.empty?t.constructor.empty():fo(t)?[]:ei(t)?"":Go(t)?{}:Ao(t)?function(){return arguments}():function(t){var e=Object.prototype.toString.call(t);return"[object Uint8ClampedArray]"===e||"[object Int8Array]"===e||"[object Uint8Array]"===e||"[object Int16Array]"===e||"[object Uint16Array]"===e||"[object Int32Array]"===e||"[object Uint32Array]"===e||"[object Float32Array]"===e||"[object Float64Array
1]"===e||"[object BigInt64Array]"===e||"[object BigUint64Array]"===e}(t)?t.constructor.from(""):void 0}));const ra=ea,na=lo((function(t){return wo(t.length,(function(e,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=e,t.apply(this,n)}))})),oa=po(ki("groupBy",Bi((function(t,e){return t.push(e),t}),[]))),ia=po((function(t,e){if(0===t.length||xi(e))return!1;for(var r=e,n=0;n<t.length;){if(xi(r)||!So(t[n],r))return!1;r=r[t[n]],n+=1}return!0})),aa=po((function(t,e){return ia([t],e)})),sa=po((function(t,e){return!xi(e)&&t in e})),ua=ri(0);var ca=function(t,e){switch(arguments.length){case 0:return ca;case 1:return function e(r){return 0===arguments.length?e:Po(t,r)};default:return Po(t,e)}};const la=ca;const pa=lo((function(t){return t})),fa=ii((function(t,e,r){return wo(Math.max(t.length,e.length,r.length),(function(){return t.apply(this,arguments)?e.apply(this,arguments):r.apply(this,arguments)}))})),ha=po(No),da=Mi(0,-1);"function"==typeof Object.assign&&Object.assign;const ma=po((function(t,e){return wo(t+1,(function(){var r=arguments[t];if(null!=r&&Oi(r[e]))return r[e].apply(r,Array.prototype.slice.call(arguments,0,t));throw new TypeError(Yo(r)+' does not have a method named "'+e+'"')}))})),ya=lo((function(t){return null!=t&&zo(t,ra(t))})),va=ma(1,"join"),ga=ri(-1),ba=po((function(t,e){return function(r){return function(n){return Qo((function(t){return e(t,n)}),r(t(n)))}}})),_a=po((function(t,e){return t.map((function(t){for(var r,n=e,o=0;o<t.length;){if(null==n)return;r=t[o],n=ti(r)?ri(r,n):n[r],o+=1}return n}))})),xa=po((function(t,e){return _a([t],e)[0]})),wa=po((function(t,e){return $o((function(r,n){return r[n]=t(e[n],n,e),r}),{},Io(e))})),Oa=ii((function(t,e,r){var n,o={};for(n in r=r||{},e=e||{})So(n,e)&&(o[n]=So(n,r)?t(n,e[n],r[n]):e[n]);for(n in r)So(n,r)&&!So(n,o)&&(o[n]=r[n]);return o})),Ea=ii((function t(e,r,n){return Oa((function(r,n,o){return Go(n)&&Go(o)?t(e,n,o):e(r,n,o)}),r,n)})),Sa=po((function(t,e){return Ea((function(t,e,r){return r}),t,e)})),Pa=po((function(t,e){return bo(qo(t),e)}));var ja=function(t){return{value:t,map:function(e){return ja(e(t))}}};const Aa=ii((function(t,e,r){return t((function(t){return ja(e(t))}))(r).value})),Ca=ii((function(t,e,r){return Ui(t,xa(e,r))})),Ta=ii((function(t,e,r){return t(xa(e,r))})),ka=po((function(t,e){for(var r={},n=0;n<t.length;)t[n]in e&&(r[t[n]]=e[t[n]]),n+=1;return r})),Ma=ii((function(t,e,r){return zo(t,ni(e,r))})),Ia=ii((function(t,e,r){return Ui(t,ni(e,r))})),Da=ii((function(t,e,r){return t(ni(e,r))}));function La(t){return"[object Number]"===Object.prototype.toString.call(t)}var Ra=po((function(t,e){if(!La(t)||!La(e))throw new TypeError("Both arguments to range must be numbers");for(var r=[],n=t;n<e;)r.push(n),n+=1;return r}));const za=Ra,Na=lo(mo);var Fa=ii((function(t,e,r){return r.replace(t,e)}));const Ba=Fa,Va=po((function(t,e){return Array.prototype.slice.call(e,0).sort(t)})),Ua=ma(1,"split"),qa=po((function(t,e){return zo(Hi(t.length,e),t)}));var $a=po((function(t,e){if(r=t,"[object RegExp]"!==Object.prototype.toString.call(r))throw new TypeError("\u2018test\u2019 requires a value of type RegExp as its first argument; received "+Yo(t));var r;return Ri(t).test(e)}));const Ga=$a;String.prototype.trim;var Wa=function(){function t(t,e){this.xf=e,this.pred=t,this.items=[]}return t.prototype["@@transducer/init"]=yo,t.prototype["@@transducer/result"]=vo,t.prototype["@@transducer/step"]=function(t,e){return Eo(this.pred,e,this.items)?t:(this.items.push(e),this.xf["@@transducer/step"](t,e))},t}();const Za=po(ho([],(function(t){return function(e){return new Wa(t,e)}}),(function(t,e){for(var r,n=0,o=e.length,i=[];n<o;)Eo(t,r=e[n],i)||(i[i.length]=r),n+=1;return i}))),Ha=ii((function(t,e,r){return t(r)?e(r):r})),Ka=mi(void 0),Ya=zo(Ka());class Xa extends ro.ON{constructor(t,e,r){super(t,e,r),this.element="parseResult"}get api(){return this.children.filter((t=>t.classes.contains("api"))).first}get results(){return this.children.filter((t=>t.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((t=>"annotation"===t.element))}get warnings(){return this.children.filter((t=>"annotation"===t.element&&t.classes.contains("warning")))}get errors(){return this.children.filter((t=>"annotation"===t.element&&t.classes.contains("error")))}get isEmpty(){return this.children.reject((t=>"annotation"===t.element)).isEmpty}replaceResult(t){const{result:e}=this;if(Ya(e))return!1;const r=this.content.findIndex((t=>t===e));return-1!==r&&(this.content[r]=t,!0)}}const Ja=Xa;class Qa extends ro.ON{constructor(t,e,r){super(t,e,r),this.element="sourceMap"}get positionStart(){return this.children.filter((t=>t.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((t=>t.classes.contains("position"))).get(1)}set position(t){if(null===t)return;const e=new ro.ON([t.start.row,t.start.column,t.start.char]),r=new ro.ON([t.end.row,t.end.column,t.end.char]);e.classes.push("position"),r.classes.push("position"),this.push(e).push(r)}}const ts=Qa,es=wo(1,Di(Do,la("GeneratorFunction"))),rs=wo(1,Di(Do,la("AsyncFunction"))),ns=yi([Di(Do,la("Function")),es,rs]),os=Ci(ns),is=wo(1,ns(Array.isArray)?Array.isArray:Di(Do,la("Array"))),as=ji(is,ya),ss=wo(3,(function(t,e,r){var n=xa(t,r),o=xa(da(t),r);if(!os(n)&&!as(t)){var i=ci(n,o);return bi(i,e)}})),us=na(ha),cs=(t,e)=>"function"==typeof(null==e?void 0:e[t]),ls=t=>null!=t&&Object.prototype.hasOwnProperty.call(t,"_storedElement")&&Object.prototype.hasOwnProperty.call(t,"_content"),ps=(t,e)=>{var r;return(null==e||null===(r=e.primitive)||void 0===r?void 0:r.call(e))===t},fs=(t,e)=>{var r,n;return(null==e||null===(r=e.classes)||void 0===r||null===(n=r.includes)||void 0===n?void 0:n.call(r,t))||!1},hs=(t,e)=>(null==e?void 0:e.element)===t,ds=t=>t({hasMethod:cs,hasBasicElementProps:ls,primitiveEq:ps,isElementType:hs,hasClass:fs}),ms=ds((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof ro.W_||t(r)&&e(void 0,r))),ys=ds((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof ro.RP||t(r)&&e("string",r))),vs=ds((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof ro.VL||t(r)&&e("number",r))),gs=ds((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof ro.zr||t(r)&&e("null",r))),bs=ds((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof ro.hh||t(r)&&e("boolean",r))),_s=ds((({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof ro.Sb||t(n)&&e("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),xs=ds((({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof ro.ON&&!(n instanceof ro.Sb)||t(n)&&e("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),ws=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ro.c6||t(n)&&e("member",n)&&r(void 0,n))),Os=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>
1n instanceof ro.EA||t(n)&&e("link",n)&&r(void 0,n))),Es=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ro.tK||t(n)&&e("ref",n)&&r(void 0,n))),Ss=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof oo||t(n)&&e("annotation",n)&&r("array",n))),Ps=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ao||t(n)&&e("comment",n)&&r("string",n))),js=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ja||t(n)&&e("parseResult",n)&&r("array",n))),As=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ts||t(n)&&e("sourceMap",n)&&r("array",n))),Cs=t=>hs("object",t)||hs("array",t)||hs("boolean",t)||hs("number",t)||hs("string",t)||hs("null",t)||hs("member",t),Ts=t=>{var e,r;return As(null==t||null===(e=t.meta)||void 0===e||null===(r=e.get)||void 0===r?void 0:r.call(e,"sourceMap"))},ks=(t,e)=>{if(0===t.length)return!0;const r=e.attributes.get("symbols");return!!xs(r)&&bo(us(r.toValue()),t)},Ms=(t,e)=>0===t.length||bo(us(e.classes.toValue()),t),Is=zo(null),Ds=Ci(Is);function Ls(t){return Ls="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ls(t)}const Rs=function(t){return"object"===Ls(t)},zs=wo(1,ji(Ds,Rs));var Ns=Di(Do,la("Object")),Fs=Di(Yo,zo(Yo(Object))),Bs=Ta(ji(ns,Fs),["constructor"]);const Vs=wo(1,(function(t){if(!zs(t)||!Ns(t))return!1;var e=Object.getPrototypeOf(t);return!!Is(e)||Bs(e)}));class Us extends ro.lS{constructor(){super(),this.register("annotation",oo),this.register("comment",ao),this.register("parseResult",Ja),this.register("sourceMap",ts)}}const qs=new Us,$s=t=>{const e=new Us;return Vs(t)&&e.use(t),e},Gs=qs;function Ws(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}const Zs=()=>{const t=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ws(Object(r),!0).forEach((function(e){E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ws(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},i);return{predicates:t,namespace:Gs}};var Hs=r(628);function Ks(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=p(t);for(n=0;n<i.length;n++)r=i[n],Hs(e).call(e,r)>=0||(o[r]=t[r]);return o}(t,e);if(f){var i=f(t);for(n=0;n<i.length;n++)r=i[n],Hs(e).call(e,r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Ys=r(43992);const Xs=wo(1,Di(Do,la("String"))),Js=(t,e,r)=>{const n=t[e];if(null!=n){if(!r&&"function"==typeof n)return n;const t=r?n.leave:n.enter;if("function"==typeof t)return t}else{const n=r?t.leave:t.enter;if(null!=n){if("function"==typeof n)return n;const t=n[e];if("function"==typeof t)return t}}return null},Qs={},tu=t=>null==t?void 0:t.type,eu=t=>"string"==typeof tu(t),ru=(t,{visitFnGetter:e=Js,nodeTypeGetter:r=tu}={})=>{const n=new Array(t.length);return{enter(o,...i){for(let a=0;a<t.length;a+=1)if(null==n[a]){const s=e(t[a],r(o),!1);if("function"==typeof s){const e=s.call(t[a],o,...i);if(!1===e)n[a]=o;else if(e===Qs)n[a]=Qs;else if(void 0!==e)return e}}},leave(o,...i){for(let a=0;a<t.length;a+=1)if(null==n[a]){const s=e(t[a],r(o),!0);if("function"==typeof s){const e=s.call(t[a],o,...i);if(e===Qs)n[a]=Qs;else if(void 0!==e&&!1!==e)return e}}else n[a]===o&&(n[a]=null)}}},nu=(t,e,{keyMap:r=null,state:n={},breakSymbol:o=Qs,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:a=!1,visitFnGetter:s=Js,nodeTypeGetter:u=tu,nodePredicate:c=eu,detectCycles:l=!0}={})=>{const p=r||{};let f,h,d=Array.isArray(t),m=[t],y=-1,v=[];const g=[],b=[];let _=t;do{y+=1;const t=y===m.length;let r,x;const w=t&&0!==v.length;if(t){if(r=0===b.length?void 0:g.pop(),x=h,h=b.pop(),w){x=d?x.slice():Object.create(Object.getPrototypeOf(x),Object.getOwnPropertyDescriptors(x));let t=0;for(let e=0;e<v.length;e+=1){let r=v[e][0];const n=v[e][1];d&&(r-=t),d&&n===i?(x.splice(r,1),t+=1):x[r]=n}}y=f.index,m=f.keys,v=f.edits,d=f.inArray,f=f.prev}else{if(r=h?d?y:m[y]:void 0,x=h?h[r]:_,x===i||void 0===x)continue;h&&g.push(r)}if(b.includes(x))continue;let O;if(!Array.isArray(x)){if(!c(x))throw new Error(`Invalid AST Node: ${JSON.stringify(x)}`);if(l&&b.includes(x)){g.pop();continue}const i=s(e,u(x),t);if(i){for(const[t,r]of Object.entries(n))e[t]=r;if(O=i.call(e,x,r,h,g,b),O===o)break;if(O===a){if(!t){g.pop();continue}}else if(void 0!==O&&(v.push([r,O]),!t)){if(!c(O)){g.pop();continue}x=O}}}void 0===O&&w&&v.push([r,x]),t||(f={inArray:d,index:y,keys:m,edits:v,prev:f},d=Array.isArray(x),m=d?x:p[u(x)]||[],y=-1,v=[],h&&b.push(h),h=x)}while(void 0!==f);return 0!==v.length&&([,_]=v[v.length-1]),_};
1nu[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=null,state:n={},breakSymbol:o=Qs,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:a=!1,visitFnGetter:s=Js,nodeTypeGetter:u=tu,nodePredicate:c=eu,detectCycles:l=!0}={})=>{const p=r||{};let f,h,d=Array.isArray(t),m=[t],y=-1,v=[];const g=[],b=[];let _=t;do{y+=1;const t=y===m.length;let r,x;const w=t&&0!==v.length;if(t){if(r=0===b.length?void 0:g.pop(),x=h,h=b.pop(),w){x=d?x.slice():Object.create(Object.getPrototypeOf(x),Object.getOwnPropertyDescriptors(x));let t=0;for(let e=0;e<v.length;e+=1){let r=v[e][0];const n=v[e][1];d&&(r-=t),d&&n===i?(x.splice(r,1),t+=1):x[r]=n}}y=f.index,m=f.keys,v=f.edits,d=f.inArray,f=f.prev}else{if(r=h?d?y:m[y]:void 0,x=h?h[r]:_,x===i||void 0===x)continue;h&&g.push(r)}let O;if(!Array.isArray(x)){if(!c(x))throw new Error(`Invalid AST Node: ${JSON.stringify(x)}`);if(l&&b.includes(x)){g.pop();continue}const i=s(e,u(x),t);if(i){for(const[t,r]of Object.entries(n))e[t]=r;if(O=await i.call(e,x,r,h,g,b),O===o)break;if(O===a){if(!t){g.pop();continue}}else if(void 0!==O&&(v.push([r,O]),!t)){if(!c(O)){g.pop();continue}x=O}}}void 0===O&&w&&v.push([r,x]),t||(f={inArray:d,index:y,keys:m,edits:v,prev:f},d=Array.isArray(x),m=d?x:p[u(x)]||[],y=-1,v=[],h&&b.push(h),h=x)}while(void 0!==f);return 0!==v.length&&([,_]=v[v.length-1]),_};const ou=["keyMap"],iu=["keyMap"];function au(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function su(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?au(Object(r),!0).forEach((function(e){E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):au(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}const uu=t=>_s(t)?"ObjectElement":xs(t)?"ArrayElement":ws(t)?"MemberElement":ys(t)?"StringElement":bs(t)?"BooleanElement":vs(t)?"NumberElement":gs(t)?"NullElement":Os(t)?"LinkElement":Es(t)?"RefElement":void 0,cu=Di(uu,Xs),lu={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]},pu=Ys({props:{result:[],predicate:so,returnOnTrue:void 0,returnOnFalse:void 0},init({predicate:t=this.predicate,returnOnTrue:e=this.returnOnTrue,returnOnFalse:r=this.returnOnFalse}={}){this.result=[],this.predicate=t,this.returnOnTrue=e,this.returnOnFalse=r},methods:{enter(t){return this.predicate(t)?(this.result.push(t),this.returnOnTrue):this.returnOnFalse}}}),fu=(t,e,r={})=>{let{keyMap:n=lu}=r,o=Ks(r,ou);return nu(t,e,su({keyMap:n,nodeTypeGetter:uu,nodePredicate:cu},o))};fu[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,r={})=>{let{keyMap:n=lu}=r,o=Ks(r,iu);return nu[Symbol.for("nodejs.util.promisify.custom")](t,e,su({keyMap:n,nodeTypeGetter:uu,nodePredicate:cu},o))};const hu=(t,e,r={})=>{if(0===e.length)return t;const n=Ia(Zs,"toolboxCreator",r),o=Ia({},"visitorOptions",r),i=Ia(uu,"nodeTypeGetter",o),a=n(),s=e.map((t=>t(a))),u=ru(s.map(Ia({},"visitor")),{nodeTypeGetter:i});s.forEach(ss(["pre"],[]));const c=fu(t,u,o);return s.forEach(ss(["post"],[])),c};function du(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function mu(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?du(Object(r),!0).forEach((function(e){E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):du(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}const yu=t=>(e,r={})=>((t,{Type:e,plugins:r=[]})=>{const n=new e(t);return hu(n,r,{toolboxCreator:Zs,visitorOptions:{nodeTypeGetter:uu}})})(e,mu(mu({},r),{},{Type:t}));ro.Sb.refract=yu(ro.Sb),ro.ON.refract=yu(ro.ON),ro.RP.refract=yu(ro.RP),ro.hh.refract=yu(ro.hh),ro.zr.refract=yu(ro.zr),ro.VL.refract=yu(ro.VL),ro.EA.refract=yu(ro.EA),ro.tK.refract=yu(ro.tK),oo.refract=yu(oo),ao.refract=yu(ao),Ja.refract=yu(Ja),ts.refract=yu(ts);const vu=(t,e=new WeakMap)=>(ws(t)?(e.set(t.key,t),vu(t.key,e),e.set(t.value,t),vu(t.value,e)):t.children.forEac
1h((r=>{e.set(r,t),vu(r,e)})),e),gu=Ys.init((function({element:t}){let e;this.transclude=function(r,n){var o;if(r===t)return n;if(r===n)return t;e=null!==(o=e)&&void 0!==o?o:vu(t);const i=e.get(r);return Ya(i)?void 0:(_s(i)?((t,e,r)=>{const n=r.get(t);_s(n)&&(n.content=n.map(((o,i,a)=>a===t?(r.delete(t),r.set(e,n),e):a)))})(r,n,e):xs(i)?((t,e,r)=>{const n=r.get(t);xs(n)&&(n.content=n.map((o=>o===t?(r.delete(t),r.set(e,n),e):o)))})(r,n,e):ws(i)&&((t,e,r)=>{const n=r.get(t);ws(n)&&(n.key===t&&(n.key=e,r.delete(t),r.set(e,n)),n.value===t&&(n.value=e,r.delete(t),r.set(e,n)))})(r,n,e),t)}})),bu=gu,_u=["keyMap"],xu=["keyMap"];function wu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ou(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?wu(Object(r),!0).forEach((function(e){E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wu(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}const Eu=t=>"string"==typeof(null==t?void 0:t.type)?t.type:uu(t),Su=Ou({EphemeralObject:["content"],EphemeralArray:["content"]},lu),Pu=(t,e,r={})=>{let{keyMap:n=Su}=r,o=Ks(r,_u);return fu(t,e,Ou({keyMap:n,nodeTypeGetter:Eu,nodePredicate:uo,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node")},o))};Pu[Symbol.for("nodejs.util.promisify.custom")]=async(t,e={})=>{let{keyMap:r=Su}=e,n=Ks(e,xu);return fu[Symbol.for("nodejs.util.promisify.custom")](t,visitor,Ou({keyMap:r,nodeTypeGetter:Eu,nodePredicate:uo,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node")},n))};const ju=Ys.init((function(){const t=new WeakMap;this.BooleanElement=function(t){return t.toValue()},this.NumberElement=function(t){return t.toValue()},this.StringElement=function(t){return t.toValue()},this.NullElement=function(){return null},this.ObjectElement={enter(e){if(t.has(e))return t.get(e).toReference();const r=new class{constructor(t){E(this,"type","EphemeralObject"),E(this,"content",[]),E(this,"reference",void 0),this.content=t,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}}(e.content);return t.set(e,r),r}},this.EphemeralObject={leave:t=>t.toObject()},this.MemberElement={enter:t=>[t.key,t.value]},this.ArrayElement={enter(e){if(t.has(e))return t.get(e).toReference();const r=new class{constructor(t){E(this,"type","EphemeralArray"),E(this,"content",[]),E(this,"reference",void 0),this.content=t,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}}(e.content);return t.set(e,r),r}},this.EphemeralArray={leave:t=>t.toArray()}})),Au=(t,e=Gs)=>{if(Xs(t))try{return e.fromRefract(JSON.parse(t))}catch{}return Vs(t)&&aa("element",t)?e.fromRefract(t):e.toElement(t)},Cu=t=>Pu(t,ju()),Tu=zo("");var ku=ji(wo(1,Di(Do,la("Number"))),isFinite),Mu=wo(1,ku),Iu=ji(ns(Number.isFinite)?wo(1,ci(Number.isFinite,Number)):Mu,Li(zo,[Math.floor,pa])),Du=wo(1,Iu);const Lu=ns(Number.isInteger)?wo(1,ci(Number.isInteger,Number)):Du,Ru=Vi((function(t,e){return Di(Ua(""),Ji(us(t)),va(""))(e)}));class zu extends Error{constructor(t){super(`Invalid $ref pointer "${t}". Pointers must begin with "/"`),this.name=this.constructor.name,this.message=`Invalid $ref pointer "${t}". Pointers must begin with "/"`,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(`Invalid $ref pointer "${t}". Pointers must begin with "/"`).stack}}class Nu extends Error{constructor(t){super(t),this.name=this.constructor.name,this.message=t,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack}}const Fu=Di(Ba(/~/g,"~0"),Ba(/\//g,"~1"),encodeURIComponent),Bu=Di(Ba(/~1/g,"/"),Ba(/~0/g,"~"),(t=>{try{return decodeURIComponent(t)}catch{return t}})),Vu=(t,e)=>{const r=(t=>{if(Tu(t))return[];if(!qa("/",t))throw new zu(t);const e=Di(Ua("/"),Qo(Bu))(t);return Ii(e)})(t);return r.reduce(((t,e)=>{if(_s(t)){if(!t.hasKey(e))throw new Nu(`Evaluation failed on token: "${e}"`);return t.get(e)}if(xs(t)){if(!(e in t.content)||!Lu(Number(e)))throw new Nu(`Evaluation failed on token: "${e}"`);return t.get(Number(e))}throw new Nu(`Evaluation failed on token: "${e}"`)}),e)},Uu=t=>{const e=(t=>{const e=t.indexOf("#");return-1!==e?t.substring(e):"#"})(t);return Ru("#",e)};class qu extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="callback"}}const $u=qu;class Gu extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="components"}get schemas(){return this.get("schemas")}set schemas(t){this.set("schemas",t)}get responses(){return this.get("responses")}set responses(t){this.set("responses",t)}get parameters(){return this.get("parameters")}set parameters(t){this.set("parameters",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}get requestBodies(){return this.get("requestBodies")}set requestBodies(t){this.set("requestBodies",t)}get headers(){return this.get("headers")}set headers(t){this.set("headers",t)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(t){this.set("securitySchemes",t)}get links(){return this.get("links")}set links(t){this.set("links",t)}get callbacks(){return this.get("callbacks")}set callbacks(t){this.set("callbacks",t)}}const Wu=Gu;class Zu extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="contact"}get name(){return this.get("name")}set name(t){this.set("name",t)}get url(){return this.get("url")}set url(t){this.set("url",t)}get email(){return this.get("email")}set email(t){this.set("email",t)}}const Hu=Zu;class Ku extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(t){this.set("propertyName",t)}get mapping(){return this.get("mapping")}set mapping(t){this.set("mapping",t)}}const Yu=Ku;class Xu extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(t){this.set("contentType",t)}get headers(){return this.get("headers")}set headers(t){this.set("headers",t)}get style(){return this.get("style")}set style(t){this.set("style",t)}get explode(){return this.get("explode")}set explode(t){this.set("explode",t)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(t){this.set("allowedReserved",t)}}const Ju=Xu;class Qu extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="example"}get summary(){return this.get("summary")}
vendor: 15,683 bytes, line 1
1set summary(t){this.set("summary",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get value(){return this.get("value")}set value(t){this.set("value",t)}get externalValue(){return this.get("externalValue")}set externalValue(t){this.set("externalValue",t)}}const tc=Qu;class ec extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="externalDocumentation"}get description(){return this.get("description")}set description(t){this.set("description",t)}get url(){return this.get("url")}set url(t){this.set("url",t)}}const rc=ec;class nc extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new ro.hh(!1)}set required(t){this.set("required",t)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ro.hh(!1)}set deprecated(t){this.set("deprecated",t)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(t){this.set("allowEmptyValue",t)}get style(){return this.get("style")}set style(t){this.set("style",t)}get explode(){return this.get("explode")}set explode(t){this.set("explode",t)}get allowReserved(){return this.get("allowReserved")}set allowReserved(t){this.set("allowReserved",t)}get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}get example(){return this.get("example")}set example(t){this.set("example",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}get contentProp(){return this.get("content")}set contentProp(t){this.set("content",t)}}Object.defineProperty(nc.prototype,"description",{get(){return this.get("description")},set(t){this.set("description",t)},enumerable:!0});const oc=nc;class ic extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(t){this.set("title",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get termsOfService(){return this.get("termsOfService")}set termsOfService(t){this.set("termsOfService",t)}get contact(){return this.get("contact")}set contact(t){this.set("contact",t)}get license(){return this.get("license")}set license(t){this.set("license",t)}get version(){return this.get("version")}set version(t){this.set("version",t)}}const ac=ic;class sc extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="license"}get name(){return this.get("name")}set name(t){this.set("name",t)}get url(){return this.get("url")}set url(t){this.set("url",t)}}const uc=sc;class cc extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(t){this.set("operationRef",t)}get operationId(){return this.get("operationId")}set operationId(t){this.set("operationId",t)}get operation(){var t,e;return ys(this.operationRef)?null===(t=this.operationRef)||void 0===t?void 0:t.meta.get("operation"):ys(this.operationId)?null===(e=this.operationId)||void 0===e?void 0:e.meta.get("operation"):void 0}set operation(t){this.set("operation",t)}get parameters(){return this.get("parameters")}set parameters(t){this.set("parameters",t)}get requestBody(){return this.get("requestBody")}set requestBody(t){this.set("requestBody",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get server(){return this.get("server")}set server(t){this.set("server",t)}}const lc=cc;class pc extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="mediaType"}get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}get example(){return this.get("example")}set example(t){this.set("example",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}get encoding(){return this.get("encoding")}set encoding(t){this.set("encoding",t)}}const fc=pc;class hc extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(t){this.set("authorizationUrl",t)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(t){this.set("tokenUrl",t)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(t){this.set("refreshUrl",t)}get scopes(){return this.get("scopes")}set scopes(t){this.set("scopes",t)}}const dc=hc;class mc extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(t){this.set("implicit",t)}get password(){return this.get("password")}set password(t){this.set("password",t)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(t){this.set("clientCredentials",t)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(t){this.set("authorizationCode",t)}}const yc=mc;class vc extends ro.RP{constructor(t,e,r){super(t,e,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const gc=vc;class bc extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(t){this.set("openapi",t)}get info(){return this.get("info")}set info(t){this.set("info",t)}get servers(){return this.get("servers")}set servers(t){this.set("servers",t)}get paths(){return this.get("paths")}set paths(t){this.set("paths",t)}get components(){return this.get("components")}set components(t){this.set("components",t)}get security(){return this.get("security")}set security(t){this.set("security",t)}get tags(){return this.get("tags")}set tags(t){this.set("tags",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}}const _c=bc;class xc extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="operation"}get tags(){return this.get("tags")}set tags(t){this.set("tags",t)}get summary(){return this.get("summary")}set summary(t){this.set("summary",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}set externalDocs(t){this.set("externalDocs",t)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(t){this.set("operationId",t)}get parameters(){return this.get("parameters")}set parameters(t){this.set("parameters",t)}get requestBody(){return this.get("requestBody")}set requestBody(t){this.set("requestBody",t)}get responses(){return this.get("responses")}set responses(t){this.set("responses",t)}get callbacks(){return this.get("callbacks")}set callbacks(t){this.set("callbacks",t)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ro.hh(!1)}set deprecated(t){this.set("deprecated",t)}get security(){return this.get("security")}set security(t){this.set("security",t)}get servers(){return this.get("severs")}set servers(t){this.set("servers",t)}}const wc=xc;class Oc extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="parameter"}get name(){return this.get("name")}set name(t){this.set("name",t)}get in(){return this.get("in")}set in(t){this.set("in",t)}get required(){return this.hasKey("required")?this.get("required"):new ro.hh(!1)}set required(t){this.set("required",t)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ro.hh(!1)}set deprecated(t){this.set("deprecated",t)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(t){this.set("allowEmptyValue",t)}get style(){return this.get("style")}set style(t){this.set("style",t)}get explode(){return this.get("explode")}set explode(t){this.set("explode",t)}get allowReserved(){return this.get("allowReserved")}set allowReserved(t){this.set("allowReserved",t)}get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}get example(){return this.get("example")}set example(t){this.set("example",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}get contentProp(){return this.get("content")}set contentProp(t){this.set("content",t)}}Object.defineProperty(Oc.prototype,"description",{get(){return this.get("description")},set(t){this.set("description",t)},enumerable:!0});const Ec=Oc;class Sc extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(t){this.set("$ref",t)}get summary(){return this.get("summary")}set summary(t){this.set("summary",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get GET(){return this.get("get")}set GET(t){this.set("GET",t)}get PUT(){return this.get("put")}set PUT(t){this.set("PUT",t)}get POST(){return this.get("post")}set POST(t){this.set("POST",t)}get DELETE(){return this.get("delete")}set DELETE(t){this.set("DELETE",t)}get OPTIONS(){return this.get("options")}set OPTIONS(t){this.set("OPTIONS",t)}get HEAD(){return this.get("head")}set HEAD(t){this.set("HEAD",t)}get PATCH(){return this.get("patch")}set PATCH(t){this.set("PATCH",t)}get TRACE(){return this.get("trace")}set TRACE(t){this.set("TRACE",t)}get servers(){return this.get("servers")}set servers(t){this.set("servers",t)}get parameters(){return this.get("parameters")}set parameters(t){this.set("parameters",t)}}const Pc=Sc;class jc extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="paths"}}const Ac=jc;class Cc extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(t){this.set("$ref",t)}}const Tc=Cc;class kc extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="requestBody"}get description(){return this.get("description")}set description(t){this.set("description",t)}get contentProp(){return this.get("content")}set contentProp(t){this.set("content",t)}get required(){return this.hasKey("required")?this.get("required"):new ro.hh(!1)}set required(t){this.set("required",t)}}const Mc=kc;class Ic extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="response"}get description(){return this.get("description")}set description(t){this.set("description",t)}get headers(){return this.get("headers")}set headers(t){this.set("headers",t)}get contentProp(){return this.get("content")}set contentProp(t){this.set("content",t)}get links(){return this.get("links")}set links(t){this.set("links",t)}}const Dc=Ic;class Lc extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="responses"}get default(){return this.get("default")}set default(t){this.set("default",t)}}const Rc=Lc;class zc extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(t){this.set("id",t)}get $schema(){return this.get("$schema")}set $schema(t){this.set("idProp",t)}get multipleOf(){return this.get("multipleOf")}set multipleOf(t){this.set("multipleOf",t)}get maximum(){return this.get("maximum")}set maximum(t){this.set("maximum",t)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(t){this.set("exclusiveMaximum",t)}get minimum(){return this.get("minimum")}set minimum(t){this.set("minimum",t)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(t){this.set("exclusiveMinimum",t)}get maxLength(){return this.get("maxLength")}set maxLength(t){this.set("maxLength",t)}get minLength(){return this.get("minLength")}set minLength(t){this.set("minLength",t)}get pattern(){return this.get("pattern")}set pattern(t){this.set("pattern",t)}get additionalItems(){return this.get("additionalItems")}set additionalItems(t){this.set("additionalItems",t)}get items(){return this.get("items")}set items(t){this.set("items",t)}get maxItems(){return this.get("maxItems")}set maxItems(t){this.set("maxItems",t)}get minItems(){return this.get("minItems")}set minItems(t){this.set("minItems",t)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(t){this.set("uniqueItems",t)}get maxProperties(){return this.get("maxProperties")}set maxProperties(t){this.set("maxProperties",t)}get minProperties(){return this.get("minProperties")}set minProperties(t){this.set("minProperties",t)}get required(){return this.get("required")}set required(t){this.set("required",t)}get properties(){return this.get("properties")}set properties(t){this.set("properties",t)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(t){this.set("additionalProperties",t)}get patternProperties(){return this.get("patternProperties")}set patternProperties(t){this.set("patternProperties",t)}get dependencies(){return this.get("dependencies")}set dependencies(t){this.set("dependencies",t)}get enum(){return this.get("enum")}set enum(t){this.set("enum",t)}get type(){return this.get("type")}set type(t){this.set("type",t)}get allOf(){return this.get("allOf")}set allOf(t){this.set("allOf",t)}get anyOf(){return this.get("anyOf")}set anyOf(t){this.set("anyOf",t)}get oneOf(){return this.get("oneOf")}set oneOf(t){this.set("oneOf",t)}get not(){return this.get("not")}set not(t){this.set("not",t)}get definitions(){return this.get("definitions")}set definitions(t){this.set("definitions",t)}get title(){return this.get("title")}set title(t){this.set("title",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get default(){return this.get("default")}set default(t){this.set("default",t)}get format(){return this.get("format")}set format(t){this.set("format",t)}get base(){return this.get("base")}set base(t){this.set("base",t)}get links(){return this.get("links")}set links(t){this.set("links",t)}get media(){return this.get("media")}set media(t){this.set("media",t)}get readOnly(){return this.get("readOnly")}set readOnly(t){this.set("readOnly",t)}}const Nc=zc;class Fc extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(t){this.set("$ref",t)}}const Bc=Fc;class Vc extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(t){this.set("binaryEncoding",t)}get type(){return this.get("type")}set type(t){this.set("type",t)}}const Uc=Vc;class qc extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="linkDescription"}get href(){return this.get("href")}set href(t){this.set("href",t)}get rel(){return this.get("rel")}set rel(t){this.set("rel",t)}get title(){return this.get("title")}set title(t){this.set("title",t)}get targetSchema(){return this.get("targetSchema")}set targetSchema(t){this.set("targetSchema",t)}get mediaType(){return this.get("mediaType")}set mediaType(t){this.set("mediaType",t)}get method(){return this.get("method")}set method(t){this.set("method",t)}get encType(){return this.get("encType")}set encType(t){this.set("encType",t)}get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}}const $c=qc,Gc=(t,e)=>{const r=Ui(t,e);return wa((t=>{if(Vs(t)&&aa("$ref",t)&&Da(Xs,"$ref",t)){const e=xa(["$ref"],t),n=Ru("#/",e);return xa(n.split("/"),r)}return Vs(t)?Gc(t,r):t}),t)},Wc=Ys({props:{element:null},methods:{copyMetaAndAttributes(t,e){Ts(t)&&e.meta.set("sourceMap",t.meta.get("sourceMap"))}}}),Zc=Wc,Hc=Ys(Zc,{methods:{enter(t){return this.element=t.clone(),Qs}}}),Kc=mi(Ka());function Yc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}const Xc=t=>{if(ms(t))return`${t.element.charAt(0).toUpperCase()+t.element.slice(1)}Element`},Jc=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?Yc(Object(r),!0).forEach((function(e){E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yc(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"]},lu);function Qc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function tl(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Qc(Object(r),!0).forEach((function(e){E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Qc(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}const el=Ys(Zc,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:t=this.specObj}){this.specObj=t},methods:{retrievePassingOptions(){return ka(this.passingOptionsNames,this)},retrieveFixedFields(t){return Di(xa(["visitors",...t,"fixedFields"]),Io)(this.specObj)},retrieveVisitor(t){return Ta(ns,["visitors",...t],this.specObj)?xa(["visitors",...t],this.specObj):xa(["visitors",...t,"$visitor"],this.specObj)},retrieveVisitorInstance(t,e={}){const r=this.retrievePassingOptions();return this.retrieveVisitor(t)(tl(tl({},r),e))},toRefractedElement(t,e,r={}){const n=this.retrieveVisitorInstance(t,r),o=Object.getPrototypeOf(n);return Ya(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===o?e.clone():(fu(e,n,tl({keyMap:Jc,nodeTypeGetter:Xc},r)),n.element)}}}),rl=Ys(el,{props:{specPath:Kc,ignoredFields:[]},init({specPath:t=this.specPath,ignoredFields:e=this.ignoredFields}={}){this.specPath=t,this.ignoredFields=e},methods:{ObjectElement(t){const e=this.specPath(t),r=this.retrieveFixedFields(e);return t.forEach(((t,n,o)=>{if(ys(n)&&r.includes(n.toValue())&&!this.ignoredFields.includes(n.toValue())){const r=this.toRefractedElement([...e,"fixedFields",n.toValue()],t),i=new ro.c6(n.clone(),r);this.copyMetaAndAttributes(o,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(n.toValue())||this.element.content.push(o.clone())})),this.copyMetaAndAttributes(t,this.element),Qs}}}),nl=Ys(rl,Hc,{props:{specPath:mi(["document","objects","JSONSchema"])},init(){this.element=new Nc}}),ol=Hc,il=Hc,al=Hc,sl=Hc,ul=Hc,cl=Hc,ll=Hc,pl=Hc,fl=Hc,hl=Hc,dl=Ys({props:{parent:null},init({parent:t=this.parent}){this.parent=t,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),ml=t=>_s(t)&&t.hasKey("$ref"),yl=Ys(el,dl,Hc,{methods:{ObjectElement(t){const e=ml(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(e,t),Qs},ArrayElement(t){return this.element=new ro.ON,this.element.classes.push("json-schema-items"),t.forEach((t=>{const e=ml(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(e,t);this.element.push(r)})),this.copyMetaAndAttributes(t,this.element),Qs}}}),vl=Hc,gl=Hc,bl=Hc,_l=Hc,xl=Hc,wl=Ys(Hc,{methods:{ArrayElement(t){return this.element=t.clone(),this.element.classes.push("json-schema-required"),Qs}}}),Ol=Ci(wo(1,ji(Ds,ta(Rs,ns)))),El=Ci(ya),Sl=di([Xs,Ol,El]),Pl=Ys(el,{props:{fieldPatternPredicate:so,specPath:Kc,ignoredFields:[]},init({specPath:t=this.specPath,ignoredFields:e=this.ignoredFields}={}){this.specPath=t,this.ignoredFields=e},methods:{ObjectElement(t){return t.forEach(((t,e,r)=>{if(!this.ignoredFields.includes(e.toValue())&&this.fieldPatternPredicate(e.toValue())){const n=this.specPath(t),o=this.toRefractedElement(n,t),i=new ro.c6(e.clone(),o);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(e.toValue())||this.element.content.push(r.clone())})),this.copyMetaAndAttributes(t,this.element),Qs}}}),jl=Ys(Pl,{props:{fieldPatternPredicate:Sl}}),Al=Ys(jl,dl,Hc,{props:{specPath:t=>ml(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new ro.Sb,this.element.classes.push("json-schema-properties")}}),Cl=Ys(jl,dl,Hc,{props:{specPath:t=>ml(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new ro.Sb,this.element.classes.push("json-schema-patternProperties")}}),Tl=Ys(jl,dl,Hc,{props:{specPath:t=>ml(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new ro.Sb,this.element.classes.push("json-schema-dependencies")}}),kl=Ys(Hc,{methods:{ArrayElement(t){return this.element=t.clone(),this.element.classes.push("json-schema-enum"),Qs}}}),Ml=Ys(Hc,{methods:{StringElement(t){return this.element=t.clone(),this.element.classes.push("json-schema-type"),Qs},ArrayElement(t){return this.element=t.clone(),this.element.classes.push("json-schema-type"),Qs}}}),Il=Ys(el,dl,Hc,{init(){this.element=new ro.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(t){return t.forEach((t=>{const e=ml(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(e,t);this.element.push(r)})),this.copyMetaAndAttributes(t,this.element),Qs}}}),Dl=Ys(el,dl,Hc,{init(){this.element=new ro.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(t){return t.forEach((t=>{const e=ml(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(e,t);this.element.push(r)})),this.copyMetaAndAttributes(t,this.element),Qs}}}),Ll=Ys(el,dl,Hc,{init(){this.element=new ro.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(t){return t.forEach((t=>{const e=ml(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(e,t);this.element.push(r)})),this.copyMetaAndAttributes(t,this.element),Qs}}}),Rl=Ys(jl,dl,Hc,{props:{specPath:t=>ml(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new ro.Sb,this.element.classes.push("json-schema-definitions")}}),zl=Hc,Nl=Hc,Fl=Hc,Bl=Hc,Vl=Hc,Ul=Ys(el,dl,Hc,{init(){this.element=new ro.ON,this.element.classes.push("json-schema-links")},methods:{ArrayElement(t){return t.forEach((t=>{const e=this.toRefractedElement(["document","objects","LinkDescription"],t);this.element.push(e)})),this.copyMetaAndAttributes(t,this.element),Qs}}}),ql=Hc,$l=Ys(rl,Hc,{props:{specPath:mi(["document","objects","JSONReference"])},init(){this.element=new Bc},methods:{ObjectElement(t){const e=rl.compose.methods.ObjectElement.call(this,t);return ys(this.element.$ref)&&this.element.classes.push("reference-element"),e}}}),Gl=Ys(Hc,{methods:{StringElement(t){return this.element=t.clone(),this.element.classes.push("reference-value"),Qs}}}),Wl=Ci(xi),Zl=ji(is,El);function Hl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Kl=Di(Va(Ai((function(t,e){return t.length>e.length}))),ua,ni("length")),Yl=Vi((function(t,e,r){var n,o=r.apply(void 0,function(t){if(Array.isArray(t))return Hl(t)}(n=t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return Hl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Hl(t,e):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());return Wl(o)?Na(o):e}));const Xl=fa(Zl,(function(t){var e=Kl(t);return wo(e,(function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return hi(Yl(r),void 0,t)}))}),Ka),Jl=Ys(el,{props:{alternator:[]},methods:{enter(t){const e=this.alternator.map((({predicate:t,specPath:e})=>fa(t,mi(e),Ka))),r=Xl(e)(t);return this.element=this.toRefractedElement(r,t),Qs}}}),Ql=Ys(Jl,{props:{alternator:[{predicate:ml,specPath:["document","objects","JSONReference"]},{predicate:uo,specPath:["document","objects","JSONSchema"]}]}}),tp={visitors:{value:Hc,JSONSchemaOrJSONReferenceVisitor:Ql,document:{objects:{JSONSchema:{$visitor:nl,fixedFields:{id:ol,$schema:il,multipleOf:al,maximum:sl,exclusiveMaximum:ul,minimum:cl,exclusiveMinimum:ll,maxLength:pl,minLength:fl,pattern:hl,additionalItems:Ql,items:yl,maxItems:vl,minItems:gl,uniqueItems:bl,maxProperties:_l,minProperties:xl,required:wl,properties:Al,additionalProperties:Ql,patternProperties:Cl,depen
1dencies:Tl,enum:kl,type:Ml,allOf:Il,anyOf:Dl,oneOf:Ll,not:Ql,definitions:Rl,title:zl,description:Nl,default:Fl,format:Bl,base:Vl,links:Ul,media:{$ref:"#/visitors/document/objects/Media"},readOnly:ql}},JSONReference:{$visitor:$l,fixedFields:{$ref:Gl}},Media:{$visitor:Ys(rl,Hc,{props:{specPath:mi(["document","objects","Media"])},init(){this.element=new Uc}}),fixedFields:{binaryEncoding:Hc,type:Hc}},LinkDescription:{$visitor:Ys(rl,Hc,{props:{specPath:mi(["document","objects","LinkDescription"])},init(){this.element=new $c}}),fixedFields:{href:Hc,rel:Hc,title:Hc,targetSchema:Ql,mediaType:Hc,method:Hc,encType:Hc,schema:Ql}}}}}},ep=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Nc||t(n)&&e("JSONSchemaDraft4",n)&&r("object",n))),rp=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Bc||t(n)&&e("JSONReference",n)&&r("object",n))),np=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Uc||t(n)&&e("media",n)&&r("object",n))),op=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof $c||t(n)&&e("linkDescription",n)&&r("object",n))),ip={namespace:t=>{const{base:e}=t;return e.register("jSONSchemaDraft4",Nc),e.register("jSONReference",Bc),e.register("media",Uc),e.register("linkDescription",$c),e}};function ap(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function sp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ap(Object(r),!0).forEach((function(e){E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ap(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}const up=()=>{const t=$s(ip);return{predicates:sp(sp({},a),{},{isStringElement:ys}),namespace:t}};function cp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}const lp=t=>(e,r={})=>((t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=tp}={})=>{const o=(0,ro.Qc)(t),i=Gc(n),a=ss(e,[],i);return fu(o,a,{state:{specObj:i}}),hu(a.element,r,{toolboxCreator:up,visitorOptions:{keyMap:Jc,nodeTypeGetter:Xc}})})(e,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cp(Object(r),!0).forEach((function(e){E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cp(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({specPath:t},r));Nc.refract=lp(["visitors","document","objects","JSONSchema","$visitor"]),Bc.refract=lp(["visitors","document","objects","JSONReference","$visitor"]),Uc.refract=lp(["visitors","document","objects","Media","$visitor"]),$c.refract=lp(["visitors","document","objects","LinkDescription","$visitor"]);const pp=class extends Nc{constructor(t,e,r){super(t,e,r),this.element="schema",this.classes.push("json-schema-draft-4")}get additionalItems(){return this.get("additionalItems")}set additionalItems(t){this.set("additionalItems",t)}get items(){return this.get("items")}set items(t){this.set("items",t)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(t){this.set("additionalProperties",t)}get type(){return this.get("type")}set type(t){this.set("type",t)}get not(){return this.get("not")}set not(t){this.set("not",t)}get nullable(){return this.get("nullable")}set nullable(t){this.set("nullable",t)}get discriminator(){return this.get("discriminator")}set discriminator(t){this.set("discriminator",t)}get writeOnly(){return this.get("writeOnly")}set writeOnly(t){this.set("writeOnly",t)}get xml(){return this.get("xml")}set xml(t){this.set("xml",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}get example(){return this.get("example")}set example(t){this.set("example",t)}get deprecated(){return this.get("deprecated")}set deprecated(t){this.set("deprecated",t)}};class fp extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="securityRequirement"}}const hp=fp;class dp extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="securityScheme"}get type(){return this.get("type")}set type(t){this.set("type",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get name(){return this.get("name")}set name(t){this.set("name",t)}get in(){return this.get("in")}set in(t){this.set("in",t)}get scheme(){return this.get("scheme")}set scheme(t){this.set("scheme",t)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(t){this.set("bearerFormat",t)}get flows(){return this.get("flows")}set flows(t){this.set("flows",t)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(t){this.set("openIdConnectUrl",t)}}const mp=dp;class yp extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="server"}get url(){return this.get("url")}set url(t){this.set("url",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get variables(){return this.get("variables")}
1set variables(t){this.set("variables",t)}}const vp=yp;class gp extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(t){this.set("enum",t)}get default(){return this.get("default")}set default(t){this.set("default",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}}const bp=gp;class _p extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="tag"}get name(){return this.get("name")}set name(t){this.set("name",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}}const xp=_p;class wp extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="xml"}get name(){return this.get("name")}set name(t){this.set("name",t)}get namespace(){return this.get("namespace")}set namespace(t){this.set("namespace",t)}get prefix(){return this.get("prefix")}set prefix(t){this.set("prefix",t)}get attribute(){return this.get("attribute")}set attribute(t){this.set("attribute",t)}get wrapped(){return this.get("wrapped")}set wrapped(t){this.set("wrapped",t)}}const Op=wp,Ep=Ys({props:{element:null},methods:{copyMetaAndAttributes(t,e){Ts(t)&&e.meta.set("sourceMap",t.meta.get("sourceMap"))}}}),Sp=Ep;function Pp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}const jp=t=>{if(ms(t))return`${t.element.charAt(0).toUpperCase()+t.element.slice(1)}Element`},Ap=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Pp(Object(r),!0).forEach((function(e){E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Pp(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_0Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"]},lu);function Cp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Tp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Cp(Object(r),!0).forEach((function(e){E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cp(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}const kp=Ys(Sp,{props:{passingOptionsNames:["specObj","openApiGenericElement","openApiSemanticElement"],specObj:null,openApiGenericElement:null,openApiSemanticElement:null},init({specObj:t=this.specObj,openApiGenericElement:e=this.openApiGenericElement,openApiSemanticElement:r=this.openApiSemanticElement}){this.specObj=t,this.openApiGenericElement=e,this.openApiSemanticElement=r},methods:{retrievePassingOptions(){return ka(this.passingOptionsNames,this)},retrieveFixedFields(t){return Di(xa(["visitors",...t,"fixedFields"]),Io)(this.specObj)},retrieveVisitor(t){return Ta(ns,["visitors",...t],this.specObj)?xa(["visitors",...t],this.specObj):xa(["visitors",...t,"$visitor"],this.specObj)},retrieveVisitorInstance(t,e={}){const r=this.retrievePassingOptions();return this.retrieveVisitor(t)(Tp(Tp({},r),e))},toRefractedElement(t,e,r={}){const n=this.retrieveVisitorInstance(t,r),o=Object.getPrototypeOf(n);return Ya(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===o?e.clone():(fu(e,n,Tp({keyMap:Ap,nodeTypeGetter:jp},r)),n.element)}}}),Mp=t=>_s(t)&&t.hasKey("openapi")&&t.hasKey("info"),Ip=t=>_s(t)&&t.hasKey("name")&&t.hasKey("in"),Dp=t=>_s(t)&&t.hasKey("$ref"),Lp=t=>_s(t)&&t.hasKey("content"),Rp=t=>_s(t)&&t.hasKey("description"),zp=_s,Np=_s,Fp=t=>ys(t.key)&&qa("x-",t.key.toValue()),Bp=Ys(kp,{props:{specPath:Kc,ignoredFields:[],canSupportSpecificationExtensions:!0,specificationExtensionPredicate:Fp},init({specPath:t=this.specPath,ignoredFields:e=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:n=this.specificationExtensionPredicate}={}){this.specPath=t,this.ignoredFields=e,this.canSupportSpecificationExtensions=r,this.specificationExtensionPredicate=n},methods:{ObjectElement(t){const e=this.specPath(t),r=this.retrieveFixedFields(e);return t.forEach(((t,n,o)=>
1{if(ys(n)&&r.includes(n.toValue())&&!this.ignoredFields.includes(n.toValue())){const r=this.toRefractedElement([...e,"fixedFields",n.toValue()],t),i=new ro.c6(n.clone(),r);this.copyMetaAndAttributes(o,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(o)){const t=this.toRefractedElement(["document","extension"],o);this.element.content.push(t)}else this.ignoredFields.includes(n.toValue())||this.element.content.push(o.clone())})),this.copyMetaAndAttributes(t,this.element),Qs}}}),Vp=Ys(Sp,{methods:{enter(t){return this.element=t.clone(),Qs}}}),Up=Ys(Bp,Vp,{props:{specPath:mi(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new _c},methods:{ObjectElement(t){return this.unrefractedElement=t,Bp.compose.methods.ObjectElement.call(this,t)}}}),qp=Ys(kp,Vp,{methods:{StringElement(t){const e=new gc(t.toValue());return this.copyMetaAndAttributes(t,e),this.element=e,Qs}}}),$p=Ys(kp,{methods:{MemberElement(t){return this.element=t.clone(),this.element.classes.push("specification-extension"),Qs}}}),Gp=Ys(Bp,Vp,{props:{specPath:mi(["document","objects","Info"]),canSupportSpecificationExtensions:!0},init(){this.element=new ac}}),Wp=Vp,Zp=Vp,Hp=Vp,Kp=Ys(Vp,{methods:{StringElement(t){return this.element=t.clone(),this.element.classes.push("api-version"),this.element.classes.push("version"),Qs}}}),Yp=Ys(Bp,Vp,{props:{specPath:mi(["document","objects","Contact"]),canSupportSpecificationExtensions:!0},init(){this.element=new Hu}}),Xp=Vp,Jp=Vp,Qp=Vp,tf=Ys(Bp,Vp,{props:{specPath:mi(["document","objects","License"]),canSupportSpecificationExtensions:!0},init(){this.element=new uc}}),ef=Vp,rf=Vp,nf=Ys(Bp,Vp,{props:{specPath:mi(["document","objects","Link"]),canSupportSpecificationExtensions:!0},init(){this.element=new lc},methods:{ObjectElement(t){const e=Bp.compose.methods.ObjectElement.call(this,t);return(ys(this.element.operationId)||ys(this.element.operationRef))&&this.element.classes.push("reference-element"),e}}}),of=Ys(Vp,{methods:{StringElement(t){return this.element=t.clone(),this.element.classes.push("reference-value"),Qs}}}),af=Ys(Vp,{methods:{StringElement(t){return this.element=t.clone(),this.element.classes.push("reference-value"),Qs}}}),sf=Ys(kp,{props:{fieldPatternPredicate:so,specPath:Kc,ignoredFields:[],canSupportSpecificationExtensions:!1,specificationExtensionPredicate:Fp},init({specPath:t=this.specPath,ignoredFields:e=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:n=this.specificationExtensionPredicate}={}){this.specPath=t,this.ignoredFields=e,this.canSupportSpecificationExtensions=r,this.specificationExtensionPredicate=n},methods:{ObjectElement(t){return t.forEach(((t,e,r)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const t=this.toRefractedElement(["document","extension"],r);this.element.content.push(t)}else if(!this.ignoredFields.includes(e.toValue())&&this.fieldPatternPredicate(e.toValue())){const n=this.specPath(t),o=this.toRefractedElement(n,t),i=new ro.c6(e.clone(),o);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(e.toValue())||this.element.content.push(r.clone())})),this.copyMetaAndAttributes(t,this.element),Qs}}}),uf=Ys(sf,{props:{fieldPatternPredicate:Sl}});class cf extends ro.Sb{constructor(t,e,r){super(t,e,r),this.classes.push(cf.primaryClass)}}E(cf,"primaryClass","link-parameters");const lf=cf,pf=Ys(uf,Vp,{props:{specPath:mi(["value"])},init(){this.element=new lf}}),ff=Vp,hf=Vp,df=Ys(Bp,Vp,{props:{specPath:mi(["document","objects","Server"]),canSupportSpecificationExtensions:!0},init(){this.element=new vp}}),mf=Ys(Vp,{methods:{StringElement(t){return this.element=t.clone(),this.element.classes.push("server-url"),Qs}}}),yf=Vp;class vf extends ro.ON{constructor(t,e,r){super(t,e,r),this.classes.push(vf.primaryClass)}}E(vf,"primaryClass","servers");const gf=vf,bf=Ys(kp,Vp,{init(){this.element=new gf},methods:{ArrayElement(t){return t.forEach((t=>{const e=zp(t)?["document","objects","Server"]:["value"],r=this.toRefractedElement(e,t);this.element.push(r)})),this.copyMetaAndAttributes(t,this.element),Qs}}}),_f=Ys(Bp,Vp,{props:{specPath:mi(["document","objects","ServerVariable"]),canSupportSpecificationExtensions:!0},init(){this.element=new bp}}),xf=Vp,wf=Vp,Of=Vp;class Ef extends ro.Sb{constructor(t,e,r){super(t,e,r),this.classes.push(Ef.primaryClass)}}E(Ef,"primaryClass","server-variables");const Sf=Ef,Pf=Ys(uf,Vp,{props:{specPath:mi(["document","objects","ServerVariable"])},init(){this.element=new Sf}}),jf=Ys(Bp,Vp,{props:{specPath:mi(["document","objects","MediaType"]),canSupportSpecificationExtensions:!0},init(){this.element=new fc}}),Af=Ys(kp,{props:{alternator:[]},methods:{enter(t){const e=this.alternator.map((({predicate:t,specPath:e})=>fa(t,mi(e),Ka))),r=Xl(e)(t);return this.element=this.toRefractedElement(r,t),Qs}}}),Cf=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof $u||t(n)&&e("callback",n)&&r("object",n))),Tf=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Wu||t(n)&&e("components",n)&&r("object",n))),kf=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Hu||t(n)&&e("contact",n)&&r("object",n))),Mf=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof tc||t(n)&&e("example",n)&&r("object",n))),If=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof rc||t(n)&&e("externalDocumentation",n)&&r("object",n))),Df=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof oc||t(n)&&e("header",n)&&r("object",n))),Lf=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ac||t(n)&&e("info",n)&&r("object",n))),Rf=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof uc||t(n)&&e("license",n)&&r("object",n))),zf=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>
1n instanceof lc||t(n)&&e("link",n)&&r("object",n))),Nf=t=>{if(!zf(t))return!1;if(!ys(t.operationRef))return!1;const e=t.operationRef.toValue();return"string"==typeof e&&e.length>0&&!e.startsWith("#")},Ff=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof gc||t(n)&&e("openapi",n)&&r("string",n))),Bf=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r,hasClass:n})=>o=>o instanceof _c||t(o)&&e("openApi3_0",o)&&r("object",o)&&n("api",o))),Vf=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof wc||t(n)&&e("operation",n)&&r("object",n))),Uf=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ec||t(n)&&e("parameter",n)&&r("object",n))),qf=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Pc||t(n)&&e("pathItem",n)&&r("object",n))),$f=t=>{if(!qf(t))return!1;if(!ys(t.$ref))return!1;const e=t.$ref.toValue();return"string"==typeof e&&e.length>0&&!e.startsWith("#")},Gf=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ac||t(n)&&e("paths",n)&&r("object",n))),Wf=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Tc||t(n)&&e("reference",n)&&r("object",n))),Zf=t=>{if(!Wf(t))return!1;if(!ys(t.$ref))return!1;const e=t.$ref.toValue();return"string"==typeof e&&e.length>0&&!e.startsWith("#")},Hf=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Mc||t(n)&&e("requestBody",n)&&r("object",n))),Kf=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Dc||t(n)&&e("response",n)&&r("object",n))),Yf=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Rc||t(n)&&e("responses",n)&&r("object",n))),Xf=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof pp||t(n)&&e("schema",n)&&r("object",n))),Jf=t=>bs(t)&&t.classes.includes("boolean-json-schema"),Qf=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof hp||t(n)&&e("securityRequirement",n)&&r("object",n))),th=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof vp||t(n)&&e("server",n)&&r("object",n))),eh=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof bp||t(n)&&e("serverVariable",n)&&r("object",n))),rh=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof fc||t(n)&&e("mediaType",n)&&r("object",n))),nh=Ys(Af,Vp,{props:{alternator:[{predicate:Dp,specPath:["document","objects","Reference"]},{predicate:uo,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(t){const e=Af.compose.methods.enter.call(this,t);return Wf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),e}}}),oh=Vp,ih=Ys(uf,Vp,{props:{specPath:t=>Dp(t)?["document","objects","Reference"]:["document","objects","Example"],canSupportSpecificationExtensions:!0},init(){this.element=new ro.Sb,this.element.classes.push("examples")},methods:{ObjectElement(t){const e=uf.compose.methods.ObjectElement.call(this,t);return this.element.filter(Wf).forEach((t=>{t.setMetaProperty("referenced-element","example")})),e}}});class ah extends ro.Sb{constructor(t,e,r){super(t,e,r),this.classes.push(ah.primaryClass),this.classes.push("examples")}}E(ah,"primaryClass","media-type-examples");const sh=ah,uh=Ys(ih,{init(){this.element=new sh}});class ch extends ro.Sb{constructor(t,e,r){super(t,e,r),this.classes.push(ch.primaryClass)}}E(ch,"primaryClass","media-type-encoding");const lh=ch,ph=Ys(uf,Vp,{props:{specPath:mi(["document","objects","Encoding"])},init(){this.element=new lh}}),fh=Ys(uf,Vp,{props:{specPath:mi(["value"])},init(){this.element=new hp}});class hh extends ro.ON{constructor(t,e,r){super(t,e,r),this.classes.push(hh.primaryClass)}}E(hh,"primaryClass","security");const dh=hh,mh=Ys(kp,Vp,{init(){this.element=new dh},methods:{ArrayElement(t){return t.forEach((t=>{if(_s(t)){const e=this.toRefractedElement(["document","objects","SecurityRequirement"],t);this.element.push(e)}else this.element.push(t.clone())})),this.copyMetaAndAttributes(t,this.element),Qs}}}),yh=Ys(Bp,Vp,{props:{specPath:mi(["document","objects","Components"]),canSupportSpecificationExtensions:!0},init(){this.element=new Wu}}),vh=Ys(Bp,Vp,{props:{specPath:mi(["document","objects","Tag"]),canSupportSpecificationExtensions:!0},init(){this.element=new xp}}),gh=Vp,bh=Vp,_h=Ys(Bp,Vp,{props:{specPath:mi(["document","objects","Reference"]),canSupportSpecificationExtensions:!1},init(){this.element=new Tc},methods:{ObjectElement(t){const e=Bp.compose.methods.ObjectElement.call(this,t);return ys(this.element.$ref)&&this.element.classes.push("reference-element"),e}}}),xh=Ys(Vp,{methods:{StringElement(t){return this.element=t.clone(),this.element.classes.push("reference-value"),Qs}}}),wh=Ys(Bp,Vp,{props:{specPath:mi(["document","objects","Parameter"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ec},methods:{ObjectElement(t){const e=Bp.compose.methods.ObjectElement.call(this,t);return _s(this.element.contentProp)&&this.element.contentProp.filter(rh).forEac
1h(((t,e)=>{t.setMetaProperty("media-type",e.toValue())})),e}}}),Oh=Vp,Eh=Vp,Sh=Vp,Ph=Vp,jh=Vp,Ah=Vp,Ch=Vp,Th=Vp,kh=Vp,Mh=Ys(Af,Vp,{props:{alternator:[{predicate:Dp,specPath:["document","objects","Reference"]},{predicate:uo,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(t){const e=Af.compose.methods.enter.call(this,t);return Wf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),e}}}),Ih=Ys(Bp,Vp,{props:{specPath:mi(["document","objects","Header"]),canSupportSpecificationExtensions:!0},init(){this.element=new oc}}),Dh=Vp,Lh=Vp,Rh=Vp,zh=Vp,Nh=Vp,Fh=Vp,Bh=Vp,Vh=Ys(Af,Vp,{props:{alternator:[{predicate:Dp,specPath:["document","objects","Reference"]},{predicate:uo,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(t){const e=Af.compose.methods.enter.call(this,t);return Wf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),e}}}),Uh=Vp;class qh extends ro.Sb{constructor(t,e,r){super(t,e,r),this.classes.push(qh.primaryClass),this.classes.push("examples")}}E(qh,"primaryClass","header-examples");const $h=qh,Gh=Ys(ih,{init(){this.element=new $h}}),Wh=Ys(uf,Vp,{props:{specPath:mi(["document","objects","MediaType"])},init(){this.element=new ro.Sb,this.element.classes.push("content")}});class Zh extends ro.Sb{constructor(t,e,r){super(t,e,r),this.classes.push(Zh.primaryClass),this.classes.push("content")}}E(Zh,"primaryClass","header-content");const Hh=Zh,Kh=Ys(Wh,{init(){this.element=new Hh}}),Yh=Ys(Bp,Vp,{props:{specPath:mi(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){this.element=new pp}}),{items:Xh}=tp.visitors.document.objects.JSONSchema.fixedFields,Jh=Ys(Xh,{methods:{ObjectElement(t){const e=Xh.compose.methods.ObjectElement.call(this,t);return Wf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),e},ArrayElement(t){return this.element=t.clone(),Qs}}}),{properties:Qh}=tp.visitors.document.objects.JSONSchema.fixedFields,td=Ys(Qh,{methods:{ObjectElement(t){const e=Qh.compose.methods.ObjectElement.call(this,t);return this.element.filter(Wf).forEach((t=>{t.setMetaProperty("referenced-element","schema")})),e}}}),{type:ed}=tp.visitors.document.objects.JSONSchema.fixedFields,rd=Ys(ed,{methods:{ArrayElement(t){return this.element=t.clone(),Qs}}}),nd=Vp,od=Vp,id=Vp,ad=Vp,{JSONSchemaOrJSONReferenceVisitor:sd}
1=tp.visitors,ud=Ys(sd,{methods:{ObjectElement(t){const e=sd.compose.methods.enter.call(this,t);return Wf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),e}}}),cd=Object.fromEntries(Object.entries(tp.visitors.document.objects.JSONSchema.fixedFields).map((([t,e])=>e===tp.visitors.JSONSchemaOrJSONReferenceVisitor?[t,ud]:[t,e]))),ld=Ys(Bp,Vp,{props:{specPath:mi(["document","objects","Discriminator"]),canSupportSpecificationExtensions:!1},init(){this.element=new Yu}}),pd=Vp;class fd extends ro.Sb{constructor(t,e,r){super(t,e,r),this.classes.push(fd.primaryClass)}}E(fd,"primaryClass","discriminator-mapping");const hd=fd,dd=Ys(uf,Vp,{props:{specPath:mi(["value"])},init(){this.element=new hd}}),md=Ys(Bp,Vp,{props:{specPath:mi(["document","objects","XML"]),canSupportSpecificationExtensions:!0},init(){this.element=new Op}}),yd=Vp,vd=Vp,gd=Vp,bd=Vp,_d=Vp,xd=Vp;class wd extends ro.Sb{constructor(t,e,r){super(t,e,r),this.classes.push(wd.primaryClass),this.classes.push("examples")}}E(wd,"primaryClass","parameter-examples");const Od=wd,Ed=Ys(ih,{init(){this.element=new Od}});class Sd extends ro.Sb{constructor(t,e,r){super(t,e,r),this.classes.push(Sd.primaryClass),this.classes.push("content")}}E(Sd,"primaryClass","parameter-content");const Pd=Sd,jd=Ys(Wh,{init(){this.element=new Pd}});class Ad extends ro.Sb{constructor(t,e,r){super(t,e,r),this.classes.push(Ad.primaryClass)}}E(Ad,"primaryClass","components-schemas");const Cd=Ad,Td=Ys(uf,Vp,{props:{specPath:t=>Dp(t)?["document","objects","Reference"]:["document","objects","Schema"]},init(){this.element=new Cd},methods:{ObjectElement(t){const e=uf.compose.methods.ObjectElement.call(this,t);return this.element.filter(Wf).forEach((t=>{t.setMetaProperty("referenced-element","schema")})),e}}});class kd extends ro.Sb{constructor(t,e,r){super(t,e,r),this.classes.push(kd.primaryClass)}}E(kd,"primaryClass","components-responses");const Md=kd,Id=Ys(uf,Vp,{props:{specPath:t=>Dp(t)?["document","objects","Reference"]:["document","objects","Response"]},init(){this.element=new Md},methods:{ObjectElement(t){const e=uf.compose.methods.ObjectElement.call(this,t);return this.element.filter(Wf).forEach((t=>{t.setMetaProperty("referenced-element","response")})),this.element.filter(Kf).forEach(((t,e)=>{t.setMetaProperty("http-status-code",e.toValue())})),e}}});class Dd extends ro.Sb{constructor(t,e,r){super(t,e,r),this.classes.push(Dd.primaryClass),this.classes.push("parameters")}}E(Dd,"primaryClass","components-parameters");const Ld=Dd,Rd=Ys(uf,Vp,{props:{specPath:t=>Dp(t)?["document","objects","Reference"]:["document","objects","Parameter"]},init(){this.element=new Ld},methods:{ObjectElement(t){const e=uf.compose.methods.ObjectElement.call(this,t);return this.element.filter(Wf).forEach((t=>{t.setMetaProperty("referenced-element","parameter")})),e}}});class zd extends ro.Sb{constructor(t,e,r){super(t,e,r),this.classes.push(zd.primaryClass),this.classes.push("examples")}}E(zd,"primaryClass","components-examples");const Nd=zd,Fd=Ys(uf,Vp,{props:{specPath:t=>Dp(t)?["document","objects","Reference"]:["document","objects","Example"]},init(){this.element=new Nd},methods:{ObjectElement(t){const e=uf.compose.methods.ObjectElement.call(this,t);return this.element.filter(Wf).forEach((t=>{t.setMetaProperty("referenced-element","example")})),e}}});class Bd extends ro.Sb{constructor(t,e,r){super(t,e,r),this.classes.push(Bd.primaryClass)}}E(Bd,"primaryClass","components-request-bodies");const Vd=Bd,Ud=Ys(uf,Vp,{props:{specPath:t=>Dp(t)?["document","objects","Reference"]:["document","objects","RequestBody"]},init(){this.element=new Vd},methods:{ObjectElement(t){const e=uf.compose.methods.ObjectElement.call(this,t);return this.element.filter(Wf).forEach((t=>{t.setMetaProperty("referenced-element","requestBody")})),e}}});class qd extends ro.Sb{constructor(t,e,r){super(t,e,r),this.classes.push(qd.primaryClass)}}E(qd,"primaryClass","components-headers");const $d=qd,Gd=Ys(uf,Vp,{props:{specPath:t=>Dp(t)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new $d},methods:{ObjectElement(t){const e=uf.compose.methods.ObjectElement.call(this,t);return this.element.filter(Wf).forEach((t=>{t.setMetaProperty("referenced-element","header")})),this.element.filter(Df).forEach(((t,e)=>{t.setMetaProperty("header-name",e.toValue())})),e}}});class Wd extends ro.Sb{constructor(t,e,r){super(t,e,r),this.classes.push(Wd.primaryClass)}}E(Wd,"primaryClass","components-security-schemes");const Zd=Wd,Hd=Ys(uf,Vp,{props:{specPath:t=>Dp(t)?["document","objects","Reference"]:["document","objects","SecurityScheme"]},init(){this.element=new Zd},methods:{ObjectElement(t){const e=uf.compose.methods.ObjectElement.call(this,t);return this.element.filter(Wf).forEach((t=>{t.setMetaProperty("referenced-element","securityScheme")})),e}}});class Kd extends ro.Sb{constructor(t,e,r){super(t,e,r),this.classes.push(Kd.primaryClass)}}E(Kd,"primaryClass","components-links");const Yd=Kd,Xd=Ys(uf,Vp,{props:{specPath:t=>Dp(t)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new Yd},methods:{ObjectElement(t){const e=uf.compose.methods.ObjectElement.call(this,t);return this.element.filter(Wf).forEach((t=>{t.setMetaProperty("referenced-element","link")})),e}}});class Jd extends ro.Sb{constructor(t,e,r){super(t,e,r),this.classes.push(Jd.primaryClass)}}E(Jd,"primaryClass","components-callbacks");const Qd=Jd,tm=Ys(uf,Vp,{props:{specPath:t=>Dp(t)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new Qd},methods:{ObjectElement(t){const e=uf.compose.methods.ObjectElement.call(this,t);return this.element.filter(Wf).forEach((t=>{t.setMetaProperty("referenced-element","callback")})),e}}}),em=Ys(Bp,Vp,{props:{specPath:mi(["document","objects","Example"]),canSupportSpecificationExtensions:!0},init(){this.element=new tc},methods:{ObjectElement(t){const e=Bp.compose.methods.ObjectElement.call(this,t);return ys(this.element.externalValue)&&this.element.classes.push("reference-element"),e}}}),rm=Vp,nm=Vp,om=Vp,im=Ys(Vp,{methods:{StringElement(t){return this.element=t.clone(),this.element.classes.push("reference-value"),Qs}}}),am=Ys(Bp,Vp,{props:{specPath:mi(["document","objects","ExternalDocumentation"]),canSupportSpecificationExtensions:!0},init(){this.element=new rc}}),sm=Vp,um=Vp,cm=Ys(Bp,Vp,{props:{specPath:mi(["document","objects","Encoding"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ju},methods:{ObjectElement(t){const e=Bp.compose.methods.ObjectElement.call(this,t);return _s(this.element.headers)&&this.element.headers.filter(Df).forEach(((t,e)=>{t.setMetaProperty("header-name",e.toValue())})),e}}}),lm=Vp;class pm extends ro.Sb{constructor(t,e,r){super(t,e,r),this.classes.push(pm.primaryClass)}}E(pm,"primaryClass","encoding-headers");const fm=pm,hm=Ys(uf,Vp,{props:{specPath:t=>Dp(t)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new fm},methods:{ObjectElement(t){const e=uf.compose.methods.ObjectElement.call(this,t);return this.element.filter(Wf).forEach((t=>{t.setMetaProperty("referenced-element","header")})),this.element.forEach(((t,e)=>{if(!Df(t))return;const r=e.toValue();t.setMetaProperty("headerName",r)})),e}}}),dm=Vp,mm=Vp,ym=Vp,vm=Ys(sf,Vp,{props:{fieldPatternPredicate:Ga(/^\/(?<path>.*)$/),specPath:mi(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ac},methods:{ObjectElement(t){const e=sf.compose.methods.ObjectElement.call(this,t);return this.element.filter(qf).forEach(((t,e)=>{t.setMetaProperty("path",e.clone())})),e}}}),gm=Ys(Bp,Vp,{props:{specPath:mi(["document","objects","RequestBody"])},init(){this.element=new Mc},methods:{ObjectElement(t){const e=Bp.compose.methods.ObjectElement.call(this,t);return _s(this.element.contentProp)&&this.element.contentProp.filter(rh).forEac
1h(((t,e)=>{t.setMetaProperty("media-type",e.toValue())})),e}}}),bm=Vp;class _m extends ro.Sb{constructor(t,e,r){super(t,e,r),this.classes.push(_m.primaryClass),this.classes.push("content")}}E(_m,"primaryClass","request-body-content");const xm=_m,wm=Ys(Wh,{init(){this.element=new xm}}),Om=Vp,Em=Ys(sf,Vp,{props:{fieldPatternPredicate:Ga(/{(?<expression>.*)}/),specPath:mi(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new $u},methods:{ObjectElement(t){const e=uf.compose.methods.ObjectElement.call(this,t);return this.element.filter(qf).forEach(((t,e)=>{t.setMetaProperty("runtime-expression",e.toValue())})),e}}}),Sm=Ys(Bp,Vp,{props:{specPath:mi(["document","objects","Response"])},init(){this.element=new Dc},methods:{ObjectElement(t){const e=Bp.compose.methods.ObjectElement.call(this,t);return _s(this.element.contentProp)&&this.element.contentProp.filter(rh).forEach(((t,e)=>{t.setMetaProperty("media-type",e.toValue())})),_s(this.element.headers)&&this.element.headers.filter(Df).forEach(((t,e)=>{t.setMetaProperty("header-name",e.toValue())})),e}}}),Pm=Vp;class jm extends ro.Sb{constructor(t,e,r){super(t,e,r),this.classes.push(jm.primaryClass)}}E(jm,"primaryClass","response-headers");const Am=jm,Cm=Ys(uf,Vp,{props:{specPath:t=>Dp(t)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new Am},methods:{ObjectElement(t){const e=uf.compose.methods.ObjectElement.call(this,t);return this.element.filter(Wf).forEach((t=>{t.setMetaProperty("referenced-element","header")})),this.element.forEach(((t,e)=>{if(!Df(t))return;const r=e.toValue();t.setMetaProperty("header-name",r)})),e}}});class Tm extends ro.Sb{constructor(t,e,r){super(t,e,r),this.classes.push(Tm.primaryClass),this.classes.push("content")}}E(Tm,"primaryClass","response-content");const km=Tm,Mm=Ys(Wh,{init(){this.element=new km}});class Im extends ro.Sb{constructor(t,e,r){super(t,e,r),this.classes.push(Im.primaryClass)}}E(Im,"primaryClass","response-links");const Dm=Im,Lm=Ys(uf,Vp,{props:{specPath:t=>Dp(t)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new Dm},methods:{ObjectElement(t){const e=uf.compose.methods.ObjectElement.call(this,t);return this.element.filter(Wf).forEach((t=>{t.setMetaProperty("referenced-element","link")})),e}}}),Rm=Ys(Bp,sf,{props:{specPathFixedFields:Kc,specPathPatternedFields:Kc},methods:{ObjectElement(t){const{specPath:e,ignoredFields:r}=this;try{this.specPath=this.specPathFixedFields;const e=this.retrieveFixedFields(this.specPath(t));this.ignoredFields=[...r,...Wi(t.keys(),e)],Bp.compose.methods.ObjectElement.call(this,t),this.specPath=this.specPathPatternedFields,this.ignoredFields=e,sf.compose.methods.ObjectElement.call(this,t)}catch(t){throw this.specPath=e,t}return Qs}}}),zm=Ys(Rm,Vp,{props:{specPathFixedFields:mi(["document","objects","Responses"]),specPathPatternedFields:t=>Dp(t)?["document","objects","Reference"]:["document","objects","Response"],fieldPatternPredicate:Ga(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${za(100,600).join("|")}
1)$`)),canSupportSpecificationExtensions:!0},init(){this.element=new Rc},methods:{ObjectElement(t){const e=Rm.compose.methods.ObjectElement.call(this,t);return this.element.filter(Wf).forEach((t=>{t.setMetaProperty("referenced-element","response")})),this.element.filter(Kf).forEach(((t,e)=>{const r=e.clone();this.fieldPatternPredicate(r.toValue())&&t.setMetaProperty("http-status-code",r)})),e}}}),Nm=Ys(Af,Vp,{props:{alternator:[{predicate:Dp,specPath:["document","objects","Reference"]},{predicate:uo,specPath:["document","objects","Response"]}]},methods:{ObjectElement(t){const e=Af.compose.methods.enter.call(this,t);return Wf(this.element)?this.element.setMetaProperty("referenced-element","response"):Kf(this.element)&&this.element.setMetaProperty("http-status-code","default"),e}}}),Fm=Ys(Bp,Vp,{props:{specPath:mi(["document","objects","Operation"])},init(){this.element=new wc}});class Bm extends ro.ON{constructor(t,e,r){super(t,e,r),this.classes.push(Bm.primaryClass)}}E(Bm,"primaryClass","operation-tags");const Vm=Bm,Um=Ys(Vp,{init(){this.element=new Vm},methods:{ArrayElement(t){return this.element=this.element.concat(t.clone()),Qs}}}),qm=Vp,$m=Vp,Gm=Vp;class Wm extends ro.ON{constructor(t,e,r){super(t,e,r),this.classes.push(Wm.primaryClass),this.classes.push("parameters")}}E(Wm,"primaryClass","operation-parameters");const Zm=Wm,Hm=Ys(kp,Vp,{init(){this.element=new ro.ON,this.element.classes.push("parameters")},methods:{ArrayElement(t){return t.forEach((t=>{const e=Dp(t)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(e,t);Wf(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(t,this.element),Qs}}}),Km=Ys(Hm,{init(){this.element=new Zm}}),Ym=Ys(Af,{props:{alternator:[{predicate:Dp,specPath:["document","objects","Reference"]},{predicate:uo,specPath:["document","objects","RequestBody"]}]},methods:{ObjectElement(t){const e=Af.compose.methods.enter.call(this,t);return Wf(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),e}}});class Xm extends ro.Sb{constructor(t,e,r){super(t,e,r),this.classes.push(Xm.primaryClass)}}E(Xm,"primaryClass","operation-callbacks");const Jm=Xm,Qm=Ys(uf,Vp,{props:{specPath:t=>Dp(t)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new Jm},methods:{ObjectElement(t){const e=uf.compose.methods.ObjectElement.call(this,t);return this.element.filter(Wf).forEach((t=>{t.setMetaProperty("referenced-element","callback")})),e}}}),ty=Vp;class ey extends ro.ON{constructor(t,e,r){super(t,e,r),this.classes.push(ey.primaryClass),this.classes.push("security")}}E(ey,"primaryClass","operation-security");const ry=ey,ny=Ys(kp,Vp,{init(){this.element=new ry},methods:{ArrayElement(t){return t.forEach((t=>{const e=_s(t)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(e,t);this.element.push(r)})),this.copyMetaAndAttributes(t,this.element),Qs}}});class oy extends ro.ON{constructor(t,e,r){super(t,e,r),this.classes.push(oy.primaryClass),this.classes.push("servers")}}E(oy,"primaryClass","operation-servers");const iy=oy,ay=Ys(bf,{init(){this.element=new iy}}),sy=Ys(Bp,Vp,{props:{specPath:mi(["document","objects","PathItem"])},init(){this.element=new Pc},methods:{ObjectElement(t){const e=Bp.compose.methods.ObjectElement.call(this,t);return this.element.filter(Vf).forEach(((t,e)=>{const r=e.clone();r.content=r.toValue().toUpperCase(),t.setMetaProperty("http-method",r)})),ys(this.element.$ref)&&this.element.classes.push("reference-element"),e}}}),uy=Ys(Vp,{methods:{StringElement(t){return this.element=t.clone(),this.element.classes.push("reference-value"),Qs}}}),cy=Vp,ly=Vp;class py extends ro.ON{constructor(t,e,r){super(t,e,r),this.classes.push(py.primaryClass),this.classes.push("servers")}}E(py,"primaryClass","path-item-servers");const fy=py,hy=Ys(bf,{init(){this.element=new fy}});class dy extends ro.ON{constructor(t,e,r){super(t,e,r),this.classes.push(dy.primaryClass),this.classes.push("parameters")}}E(dy,"primaryClass","path-item-parameters");const my=dy,yy=Ys(Hm,{init(){this.element=new my}}),vy=Ys(Bp,Vp,{props:{specPath:mi(["document","objects","SecurityScheme"]),canSupportSpecificationExtensions:!0},init(){this.element=new mp}}),gy=Vp,by=Vp,_y=Vp,xy=Vp,wy=Vp,Oy=Vp,Ey=Vp,Sy=Ys(Bp,Vp,{props:{specPath:mi(["document","objects","OAuthFlows"]),canSupportSpecificationExtensions:!0},init(){this.element=new yc}}),Py=Ys(Bp,Vp,{props:{specPath:mi(["document","objects","OAuthFlow"]),canSupportSpecificationExtensions:!0},init(){this.element=new dc}}),jy=Vp,Ay=Vp,Cy=Vp;class Ty extends ro.Sb{constructor(t,e,r){super(t,e,r),this.classes.push(Ty.primaryClass)}}E(Ty,"primaryClass","oauth-flow-scopes");const ky=Ty,My=Ys(uf,Vp,{props:{specPath:mi(["value"])},init(){this.element=new ky}});class Iy extends ro.ON{constructor(t,e,r){super(t,e,r),this.classes.push(Iy.primaryClass)}}E(Iy,"primaryClass","tags");const Dy=Iy,Ly=Ys(kp,Vp,{init(){this.element=new Dy},methods:{ArrayElement(t){return t.forEach((t=>{const e=Np(t)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(e,t);this.element.push(r)})),this.copyMetaAndAttributes(t,this.element),Qs}}});function Ry(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function zy(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?Ry(Object(r),!0).forEach((function(e){E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ry(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}const Ny={$visitor:_h,fixedFields:{$ref:xh}},Fy={$visitor:Yh,fixedFields:zy(zy({},cd),{},{items:Jh,properties:td,type:rd,nullable:nd,discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:od,xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:id,deprecated:ad})},By={visitors:{value:Vp,document:{objects:{OpenApi:{$visitor:Up,fixedFields:{openapi:qp,info:{$ref:"#/visitors/document/objects/Info"},servers:bf,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:mh,tags:Ly,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Gp,fixedFields:{title:Wp,description:Zp,termsOfService:Hp,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Kp}},Contact:{$visitor:Yp,fixedFields:{name:Xp,url:Jp,email:Qp}},License:{$visitor:tf,fixedFields:{name:ef,url:rf}},Server:{$visitor:df,fixedFields:{url:mf,description:yf,variables:Pf}},ServerVariable:{$visitor:_f,fixedFields:{enum:xf,default:wf,description:Of}},Components:{$visitor:yh,fixedFields:{schemas:Td,responses:Id,parameters:Rd,examples:Fd,requestBodies:Ud,headers:Gd,securitySchemes:Hd,links:Xd,callbacks:tm}},Paths:{$visitor:vm},PathItem:{$visitor:sy,fixedFields:{$ref:uy,summary:cy,description:ly,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:hy,parameters:yy}},Operation:{$visitor:Fm,fixedFields:{tags:Um,summary:qm,description:$m,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Gm,parameters:Km,requestBody:Ym,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Qm,deprecated:ty,security:ny,servers:ay}},ExternalDocumentation:{$visitor:am,fixedFields:{description:sm,url:um}},Parameter:{$visitor:wh,fixedFields:{name:Oh,in:Eh,description:Sh,required:Ph,deprecated:jh,allowEmptyValue:Ah,style:Ch,explode:Th,allowReserved:kh,schema:Mh,example:xd,examples:Ed,content:jd}},RequestBody:{$visitor:gm,fixedFields:{description:bm,content:wm,required:Om}},MediaType:{$visitor:jf,fixedFields:{schema:nh,example:oh,examples:uh,encoding:ph}},Encoding:{$visitor:cm,fixedFields:{contentType:lm,headers:hm,style:dm,explode:mm,allowReserved:ym}},Responses:{$visitor:zm,fixedFields:{default:Nm}},Response:{$visitor:Sm,fixedFields:{description:Pm,headers:Cm,content:Mm,links:Lm}},Callback:{$visitor:Em},Example:{$visitor:em,fixedFields:{summary:rm,description:nm,value:om,externalValue:im}},Link:{$visitor:nf,fixedFields:{operationRef:of,operationId:af,parameters:pf,requestBody:ff,description:hf,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Ih,fixedFields:{description:Dh,required:Lh,deprecated:Rh,allowEmptyValue:zh,style:Nh,explode:Fh,allowReserved:Bh,schema:Vh,example:Uh,examples:Gh,content:Kh}},Tag:{$visitor:vh,fixedFields:{name:gh,description:bh,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},JSONReference:Ny,Reference:Ny,JSONSchema:Fy,Schema:Fy,LinkDescription:tp.visitors.document.objects.LinkDescription,Media:tp.visitors.document.objects.Media,Discriminator:{$visitor:ld,fixedFields:{propertyName:pd,mapping:dd}},XML:{$visitor:md,fixedFields:{name:yd,namespace:vd,prefix:gd,attribute:bd,wrapped:_d}},SecurityScheme:{$visitor:vy,fixedFields:{type:gy,description:by,name:_y,in:xy,scheme:wy,bearerFormat:Oy,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:Ey}},OAuthFlows:{$visitor:Sy,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:Py,fixedFields:{authorizationUrl:jy,tokenUrl:Ay,refreshUrl:Cy,scopes:My}},SecurityRequirement:{$visitor:fh}},extension:{$visitor:$p}}}},Vy={namespace:t=>{const{base:e}=t;return e.register("callback",$u),e.register("components",Wu),e.register("contact",Hu),e.register("discriminator",Yu),e.register("encoding",Ju),e.register("example",tc),e.register("externalDocumentation",rc),e.register("header",oc),e.register("info",ac),e.register("license",uc),e.register("link",lc),e.register("mediaType",fc),e.register("oAuthFlow",dc),e.register("oAuthFlows",yc),e.register("openapi",gc),e.register("openApi3_0",_c),e.register("operation",wc),e.register("parameter",Ec),e.register("pathItem",Pc),e.register("paths",Ac),e.register("reference",Tc),e.register("requestBody",Mc),e.register("response",Dc),e.register("responses",Rc),e.register("schema",pp),e.register("securityRequirement",hp),e.register("securityScheme",mp),e.register("server",vp),e.register("serverVariable",bp),e.register("tag",xp),e.register("xml",Op),e}};function Uy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function qy(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?Uy(Object(r),!0).forEach((function(e){E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Uy(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}const $y=()=>{const t=$s(Vy);return{predicates:qy(qy(qy({},s),u),{},{isStringElement:ys}),namespace:t}};function Gy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}const Wy=t=>(e,r={})=>((t,{specPath:e=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,ro.Qc)(t),o=Gc(By),i=ss(e,[],o);return fu(n,i,{state:{specObj:o}}),hu(i.element,r,{toolboxCreator:$y,visitorOptions:{keyMap:Ap,nodeTypeGetter:jp}})})(e,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Gy(Object(r),!0).forEach((function(e){E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gy(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({specPath:t},r));$u.refract=Wy(["visitors","document","objects","Callback","$visitor"]),Wu.refract=Wy(["visitors","document","objects","Components","$visitor"]),Hu.refract=Wy(["visitors","document","objects","Contact","$visitor"]),tc.refract=Wy(["visitors","document","objects","Example","$visitor"]),Yu.refract=Wy(["visitors","document","objects","Discriminator","$visitor"]),Ju.refract=Wy(["visitors","document","objects","Encoding","$visitor"]),rc.refract=Wy(["visitors","document","objects","ExternalDocumentation","$visitor"]),oc.refract=Wy(["visitors","document","objects","Header","$visitor"]),ac.refract=Wy(["visitors","document","objects","Info","$visitor"]),uc.refract=Wy(["visitors","document","objects","License","$visitor"]),lc.refract=Wy(["visitors","document","objects","Link","$visitor"]),fc.refract=Wy(["visitors","document","objects","MediaType","$visitor"]),dc.refract=Wy(["visitors","document","objects","OAuthFlow","$visitor"]),yc.refract=Wy(["visitors","document","objects","OAuthFlows","$visitor"]),gc.refract=Wy(["visitors","document","objects","OpenApi","fixedFields","openapi"]),_c.refract=Wy(["visitors","document","objects","OpenApi","$visitor"]),wc.refract=Wy(["visitors","document","objects","Operation","$visitor"]),Ec.refract=Wy(["visitors","document","objects","Parameter","$visitor"]),Pc.refract=Wy(["visitors","document","objects","PathItem","$visitor"]),Ac.refract=Wy(["visitors","document","objects","Paths","$visitor"]),Tc.refract=Wy(["visitors","document","objects","Reference","$visitor"]),Mc.refract=Wy(["visitors","document","objects","RequestBody","$visitor"]),Dc.refract=Wy(["visitors","document","objects","Response","$visitor"]),Rc.refract=Wy(["visitors","document","objects","Responses","$visitor"]),pp.refract=Wy(["visitors","document","objects","Schema","$visitor"]),hp.refract=Wy(["visitors","document","objects","SecurityRequirement","$visitor"]),mp.refract=Wy(["visitors","document","objects","SecurityScheme","$visitor"]),vp.refract=Wy(["visitors","document","objects","Server","$visitor"]),bp.refract=Wy(["visitors","document","objects","ServerVariable","$visitor"]),xp.refract=Wy(["visitors","document","objects","Tag","$visitor"]),Op.refract=Wy(["visitors","document","objects","XML","$visitor"]);const Zy=class extends $u{},Hy=class extends Wu{get pathItems(){return this.get("pathItems")}set pathItems(t){this.set("pathItems",t)}},Ky=class extends Hu{},Yy=class extends Yu{},Xy=class extends Ju{},Jy=class extends tc{},Qy=class extends rc{},tv=class extends oc{get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}},ev=class extends ac{get license(){return this.get("license")}set license(t){this.set("license",t)}get summary(){return this.get("summary")}set summary(t){this.set("summary",t)}};class rv extends ro.RP{constructor(t,e,r){super(t,e,r),this.element="jsonSchemaDialect"}}E(rv,"default",new rv("https://spec.openapis.org/oas/3.1/dialect/base"));
1const nv=rv,ov=class extends uc{get identifier(){return this.get("identifier")}set identifier(t){this.set("identifier",t)}},iv=class extends lc{},av=class extends fc{get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}},sv=class extends dc{},uv=class extends yc{},cv=class extends gc{};class lv extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(t){this.set("openapi",t)}get info(){return this.get("info")}set info(t){this.set("info",t)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(t){this.set("jsonSchemaDialect",t)}get servers(){return this.get("servers")}set servers(t){this.set("servers",t)}get paths(){return this.get("paths")}set paths(t){this.set("paths",t)}get components(){return this.get("components")}set components(t){this.set("components",t)}get security(){return this.get("security")}set security(t){this.set("security",t)}get tags(){return this.get("tags")}set tags(t){this.set("tags",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}get webhooks(){return this.get("webhooks")}set webhooks(t){this.set("webhooks",t)}}const pv=lv,fv=class extends wc{get requestBody(){return this.get("requestBody")}set requestBody(t){this.set("requestBody",t)}},hv=class extends Ec{get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}},dv=class extends Pc{get GET(){return this.get("get")}set GET(t){this.set("GET",t)}get PUT(){return this.get("put")}set PUT(t){this.set("PUT",t)}get POST(){return this.get("post")}set POST(t){this.set("POST",t)}get DELETE(){return this.get("delete")}set DELETE(t){this.set("DELETE",t)}get OPTIONS(){return this.get("options")}set OPTIONS(t){this.set("OPTIONS",t)}get HEAD(){return this.get("head")}set HEAD(t){this.set("HEAD",t)}get PATCH(){return this.get("patch")}set PATCH(t){this.set("PATCH",t)}get TRACE(){return this.get("trace")}set TRACE(t){this.set("TRACE",t)}},mv=class extends Ac{};class yv extends Tc{}Object.defineProperty(yv.prototype,"description",{get(){return this.get("description")},set(t){this.set("description",t)},enumerable:!0}),Object.defineProperty(yv.prototype,"summary",{get(){return this.get("summary")},set(t){this.set("summary",t)},enumerable:!0});const vv=yv,gv=class extends Mc{},bv=class extends Dc{},_v=class extends Rc{};class xv extends ro.Sb{constructor(t,e,r){super(t,e,r),this.element="schema"}get $schema(){return this.get("$schema")}set $schema(t){this.set("$schema",t)}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(t){this.set("$vocabulary",t)}get $id(){return this.get("$id")}set $id(t){this.set("$id",t)}get $anchor(){return this.get("$anchor")}set $anchor(t){this.set("$anchor",t)}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(t){this.set("$dynamicAnchor",t)}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(t){this.set("$dynamicRef",t)}get $ref(){return this.get("$ref")}set $ref(t){this.set("$ref",t)}get $defs(){return this.get("$defs")}set $defs(t){this.set("$defs",t)}get $comment(){return this.get("$comment")}set $comment(t){this.set("$comment",t)}get allOf(){return this.get("allOf")}set allOf(t){this.set("allOf",t)}get anyOf(){return this.get("anyOf")}set anyOf(t){this.set("anyOf",t)}get oneOf(){return this.get("oneOf")}set oneOf(t){this.set("oneOf",t)}get not(){return this.get("not")}set not(t){this.set("not",t)}get if(){return this.get("if")}set if(t){this.set("if",t)}get then(){return this.get("then")}set then(t){this.set("then",t)}get else(){return this.get("else")}set else(t){this.set("else",t)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(t){this.set("dependentSchemas",t)}get prefixItems(){return this.get("prefixItems")}set prefixItems(t){this.set("prefixItems",t)}get items(){return this.get("items")}set items(t){this.set("items",t)}get containsProp(){return this.get("contains")}set containsProp(t){this.set("contains",t)}get properties(){return this.get("properties")}set properties(t){this.set("properties",t)}get patternProperties(){return this.get("patternProperties")}set patternProperties(t){this.set("patternProperties",t)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(t){this.set("additionalProperties",t)}get propertyNames(){return this.get("propertyNames")}set propertyNames(t){this.set("propertyNames",t)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(t){this.set("unevaluatedItems",t)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(t){this.set("unevaluatedProperties",t)}get type(){return this.get("type")}set type(t){this.set("type",t)}get enum(){return this.get("enum")}set enum(t){this.set("enum",t)}get const(){return this.get("const")}set const(t){this.set("const",t)}get multipleOf(){return this.get("multipleOf")}set multipleOf(t){this.set("multipleOf",t)}get maximum(){return this.get("maximum")}set maximum(t){this.set("maximum",t)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(t){this.set("exclusiveMaximum",t)}get minimum(){return this.get("minimum")}set minimum(t){this.set("minimum",t)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(t){this.set("exclusiveMinimum",t)}get maxLength(){return this.get("maxLength")}set maxLength(t){this.set("maxLength",t)}get minLength(){return this.get("minLength")}set minLength(t){this.set("minLength",t)}get pattern(){return this.get("pattern")}set pattern(t){this.set("pattern",t)}get maxItems(){return this.get("maxItems")}set maxItems(t){this.set("maxItems",t)}get minItems(){return this.get("minItems")}set minItems(t){this.set("minItems",t)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(t){this.set("uniqueItems",t)}get maxContains(){return this.get("maxContains")}set maxContains(t){this.set("maxContains",t)}get minContains(){return this.get("minContains")}set minContains(t){this.set("minContains",t)}get maxProperties(){return this.get("maxProperties")}set maxProperties(t){this.set("maxProperties",t)}get minProperties(){return this.get("minProperties")}set minProperties(t){this.set("minProperties",t)}get required(){return this.get("required")}set required(t){this.set("required",t)}get dependentRequired(){return this.get("dependentRequired")}set dependentRequired(t){this.set("dependentRequired",t)}get title(){return this.get("title")}set title(t){this.set("title",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get default(){return this.get("default")}set default(t){this.set("default",t)}get deprecated(){return this.get("deprecated")}set deprecated(t){this.set("deprecated",t)}get readOnly(){return this.get("readOnly")}set readOnly(t){this.set("readOnly",t)}get writeOnly(){return this.get("writeOnly")}set writeOnly(t){this.set("writeOnly",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}get format(){return this.get("format")}set format(t){this.set("format",t)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(t){this.set("contentEncoding",t)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(t){this.set("contentMediaType",t)}get contentSchema(){return this.get("contentSchema")}set contentSchema(t){this.set("contentSchema",t)}get discriminator(){return this.get("discriminator")}set discriminator(t){this.set("discriminator",t)}get xml(){return this.get("xml")}set xml(t){this.set("xml",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}get example(){return this.get("example")}set example(t){this.set("example",t)}}const wv=xv,Ov=class extends hp{},Ev=class extends mp{},Sv=class extends vp{},Pv=class extends bp{},jv=class extends xp{},Av=class extends Op{},Cv=Ys(Bp,Vp,{props:{specPath:mi(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new pv,this.openApiSemanticElement=this.element},methods:{ObjectElement(t){return this.openApiGenericElement=t,Bp.compose.methods.ObjectElement.call(this,t)}}}),{visitors:{document:{objects:{Info:{$visitor:Tv}}}}}=By,kv=Ys(Tv,{init(){this.element=new ev}}),Mv=Vp,{visitors:{document:{objects:{Contact:{$visitor:Iv}}}}}=By,Dv=Ys(Iv,{init(){this.element=new Ky}}),{visitors:{document:{objects:{License:{$visitor:Lv}}}}}=By,Rv=Ys(Lv,{init(){this.element=new ov}}),zv=Vp,{visitors:{document:{objects:{Link:{$visitor:Nv}}}}}=By,Fv=Ys(Nv,{init(){this.element=new iv}}),Bv=Ys(kp,Vp,{methods:{StringElement(t){const e=new nv(t.toValue());return this.copyMetaAndAttributes(t,e),this.element=e,Qs}}}),{visitors:{document:{objects:{Server:{$visitor:Vv}}}}}=By,Uv=Ys(Vv,{init(){this.element=new Sv}}),{visitors:{document:{objects:{ServerVariable:{$visitor:qv}}}}}=By,$v=Ys(qv,{init(){this.element=new Pv}}),{visitors:{document:{objects:{MediaType:{$visitor:Gv}}}}}=By,Wv=Ys(Gv,{init(){this.element=new av}}),{visitors:{document:{objects:{SecurityRequirement:{$visitor:Zv}}}}}=By,Hv=Ys(Zv,{init(){this.element=new Ov}}),{visitors:{document:{objects:{Components:{$visitor:Kv}}}}}=By,Yv=Ys(Kv,{init(){this.element=new Hy}}),{visitors:{document:{objects:{Tag:{$visitor:Xv}}}}}=By,Jv=Ys(Xv,{init(){this.element=new jv}}),{visitors:{document:{objects:{Reference:{$visitor:Qv}}}}}=By,tg=Ys(Qv,{init(){this.element=new vv}}
1),eg=Vp,rg=Vp,{visitors:{document:{objects:{Parameter:{$visitor:ng}}}}}=By,og=Ys(ng,{init(){this.element=new hv}}),{visitors:{document:{objects:{Header:{$visitor:ig}}}}}=By,ag=Ys(ig,{init(){this.element=new tv}}),sg=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Zy||t(n)&&e("callback",n)&&r("object",n))),ug=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Hy||t(n)&&e("components",n)&&r("object",n))),cg=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ky||t(n)&&e("contact",n)&&r("object",n))),lg=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Jy||t(n)&&e("example",n)&&r("object",n))),pg=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Qy||t(n)&&e("externalDocumentation",n)&&r("object",n))),fg=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof tv||t(n)&&e("header",n)&&r("object",n))),hg=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ev||t(n)&&e("info",n)&&r("object",n))),dg=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof nv||t(n)&&e("jsonSchemaDialect",n)&&r("string",n))),mg=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ov||t(n)&&e("license",n)&&r("object",n))),yg=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof iv||t(n)&&e("link",n)&&r("object",n))),vg=t=>{if(!yg(t))return!1;if(!ys(t.operationRef))return!1;const e=t.operationRef.toValue();return"string"==typeof e&&e.length>0&&!e.startsWith("#")},gg=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof cv||t(n)&&e("openapi",n)&&r("string",n))),bg=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r,hasClass:n})=>o=>o instanceof pv||t(o)&&e("openApi3_1",o)&&r("object",o)&&n("api",o))),_g=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof fv||t(n)&&e("operation",n)&&r("object",n))),xg=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof hv||t(n)&&e("parameter",n)&&r("object",n))),wg=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof dv||t(n)&&e("pathItem",n)&&r("object",n))),Og=t=>{if(!wg(t))return!1;if(!ys(t.$ref))return!1;const e=t.$ref.toValue();return"string"==typeof e&&e.length>0&&!e.startsWith("#")},Eg=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof mv||t(n)&&e("paths",n)&&r("object",n))),Sg=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof vv||t(n)&&e("reference",n)&&r("object",n))),Pg=t=>{if(!Sg(t))return!1;if(!ys(t.$ref))return!1;const e=t.$ref.toValue();return"string"==typeof e&&e.length>0&&!e.startsWith("#")},jg=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof gv||t(n)&&e("requestBody",n)&&r("object",n))),Ag=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof bv||t(n)&&e("response",n)&&r("object",n))),Cg=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof _v||t(n)&&e("responses",n)&&r("object",n))),Tg=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof wv||t(n)&&e("schema",n)&&r("object",n))),kg=t=>bs(t)&&t.classes.includes("boolean-json-schema"),Mg=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ov||t(n)&&e("securityRequirement",n)&&r("object",n))),Ig=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Sv||t(n)&&e("server",n)&&r("object",n))),Dg=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Pv||t(n)&&e("serverVariable",n)&&r("object",n))),Lg=ds((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof av||t(n)&&e("mediaType",n)&&r("object",n))),Rg=Ys({props:{parent:null},init({parent:t=this.parent}){this.parent=t,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),zg=Ys(Bp,Rg,Vp,{props:{specPath:mi(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){const t=()=>{let t;return t=null!==this.openApiSemanticElement&&dg(this.openApiSemanticElement.jsonSchemaDialect)?this.openApiSemanticElement.jsonSchemaDialect.toValue():null!==this.openApiGenericElement&&ys(this.openApiGenericElement.get("jsonSchemaDialect"))?this.openApiGenericElement.get("jsonSchemaDialect").toValue():nv.default.toValue(),t},e=e=>{if(Is(this.parent)&&!ys(e.get("$schema")))this.element.setMetaProperty("inherited$schema",t());else if(Tg(this.parent)&&!ys(e.get("$schema"))){var r,n;const t=Ui(null===(r=this.parent.meta.get("inherited$schema"))||void 0===r?void 0:r.toValue(),null===(n=this.parent.$schema)||void 0===n?void 0:n.toValue());this.element.setMetaProperty("inherited$schema",t)}},r=t=>{var e;const r=null!==this.parent?this.parent.getMetaProperty("inherited$id",[]).clone():new ro.ON,n=null===(e=t.get("$id"))||void 0===e?void 0:e.toValue();Sl(n)&&r.push(n),this.element.setMetaProperty("inherited$id",r)};this.ObjectElement=function(t){this.element=new wv,e(t),r(t),this.parent=this.element;const n=Bp.compose.methods.ObjectElement.call(this,t);return ys(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),n},this.BooleanElement=function(t){return this.element=t.clone(),this.element.classes.push("boolean-json-schema"),Qs}}}),Ng=Vp,Fg=Ys(Vp,{methods:{ObjectElement(t){return this.element=t.clone(),this.element.classes.push("json-schema-$vocabulary"),Qs}}}),Bg=Vp,Vg=Vp,Ug=Vp,qg=Vp,$g=Ys(Vp,{methods:{StringElement(t){return this.element=t.clone(),this.element.classes.push("reference-value"),Qs}}}),Gg=Ys(uf,Rg,Vp,{props:{specPath:mi(["document","objects","Schema"])},init(){this.element=new ro.Sb,this.element.classes.push("json-schema-$defs")}}),Wg=Vp,Zg=Ys(kp,Rg,Vp,{init(){this.element=new ro.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(t){return t.forEach((t=>{if(_s(t)){const e=this.toRefractedElement(["document","objects","Schema"],t);this.element.push(e)}else{const e=t.clone();this.element.push(e)}})),this.copyMetaAndAttributes(t,this.element),Qs}}}),Hg=Ys(kp,Rg,Vp,{init(){this.element=new ro.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(t){return t.forEach((t=>{if(_s(t)){const e=this.toRefractedElement(["document","objects","Schema"],t);this.element.push(e)}else{const e=t.clone();this.element.push(e)}})),this.copyMetaAndAttributes(t,this.element),Qs}}}),Kg=Ys(kp,Rg,Vp,{init(){this.element=new ro.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(t){return t.forEach((t=>{if(_s(t)){const e=this.toRefractedElement(["document","objects","Schema"],t);this.element.push(e)}else{const e=t.clone();this.element.push(e)}})),this.copyMetaAndAttributes(t,this.element),Qs}}}),Yg=Ys(uf,Rg,Vp,{props:{specPath:mi(["document","objects","Schema"])},init(){this.element=new ro.Sb,this.element.classes.push("json-schema-dependentSchemas")}}),Xg=Ys(kp,Rg,Vp,{init(){this.element=new ro.ON,this.element.classes.push("json-schema-prefixItems")},methods:{ArrayElement(t){return t.forEach((t=>{if(_s(t)){const e=this.toRefractedElement(["document","objects","Schema"],t);this.element.push(e)}else{const e=t.clone();this.element.push(e)}})),this.copyMetaAndAttributes(t,this.element),Qs}}}),Jg=Ys(uf,Rg,Vp,{props:{specPath:mi(["document","objects","Schema"])},init(){this.element=new ro.Sb,this.element.classes.push("json-schema-properties")}}),Qg=Ys(uf,Rg,Vp,{props:{specPath:mi(["document","objects","Schema"])},init(){this.element=new ro.Sb,this.element.classes.push("json-schema-patternProperties")}}),tb=Ys(Vp,{methods:{StringElement(t){return this.element=t.clone(),this.element.classes.push("json-schema-type"),Qs},ArrayElement(t){return this.element=t.clone(),this.element.classes.push("json-schema-type"),Qs}}}),eb=Ys(Vp,{methods:{ArrayElement(t){return this.element=t.clone(),this.element.classes.push("json-schema-enum"),Qs}}}),rb=Vp,nb=Vp,ob=Vp,ib=Vp,ab=Vp,sb=Vp,ub=Vp,cb=Vp,lb=Vp,pb=Vp,fb=Vp,hb=Vp,db=Vp,mb=Vp,yb=Vp,vb=Vp,gb=Ys(Vp,{methods:{ArrayElement(t){return this.element=t.clone(),this.element.classes.push("json-schema-required"),Qs}}}),bb=Ys(Vp,{methods:{ObjectElement(t){return this.element=t.clone(),this.element.classes.push("json-schema-dependentRequired"),Qs}}}
1),_b=Vp,xb=Vp,wb=Vp,Ob=Vp,Eb=Vp,Sb=Vp,Pb=Ys(Vp,{methods:{ArrayElement(t){return this.element=t.clone(),this.element.classes.push("json-schema-examples"),Qs}}}),jb=Vp,Ab=Vp,Cb=Vp,Tb=Vp,{visitors:{document:{objects:{Discriminator:{$visitor:kb}}}}}=By,Mb=Ys(kb,{props:{canSupportSpecificationExtensions:!0},init(){this.element=new Yy}}),{visitors:{document:{objects:{XML:{$visitor:Ib}}}}}=By,Db=Ys(Ib,{init(){this.element=new Av}}),Lb=Ys(uf,Vp,{props:{specPath:mi(["document","objects","Schema"])},init(){this.element=new Cd}});class Rb extends ro.Sb{constructor(t,e,r){super(t,e,r),this.classes.push(Rb.primaryClass)}}E(Rb,"primaryClass","components-path-items");const zb=Rb,Nb=Ys(uf,Vp,{props:{specPath:t=>Dp(t)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new zb},methods:{ObjectElement(t){const e=uf.compose.methods.ObjectElement.call(this,t);return this.element.filter(Sg).forEach((t=>{t.setMetaProperty("referenced-element","pathItem")})),e}}}),{visitors:{document:{objects:{Example:{$visitor:Fb}}}}}=By,Bb=Ys(Fb,{init(){this.element=new Jy}}),{visitors:{document:{objects:{ExternalDocumentation:{$visitor:Vb}}}}}=By,Ub=Ys(Vb,{init(){this.element=new Qy}}),{visitors:{document:{objects:{Encoding:{$visitor:qb}}}}}=By,$b=Ys(qb,{init(){this.element=new Xy}}),{visitors:{document:{objects:{Paths:{$visitor:Gb}}}}}=By,Wb=Ys(Gb,{init(){this.element=new mv}}),{visitors:{document:{objects:{RequestBody:{$visitor:Zb}}}}}=By,Hb=Ys(Zb,{init(){this.element=new gv}}),{visitors:{document:{objects:{Callback:{$visitor:Kb}}}}}=By,Yb=Ys(Kb,{props:{specPath:t=>Dp(t)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new Zy},methods:{ObjectElement(t){const e=Kb.compose.methods.ObjectElement.call(this,t);return this.element.filter(Sg).forEach((t=>{t.setMetaProperty("referenced-element","pathItem")})),e}}}),{visitors:{document:{objects:{Response:{$visitor:Xb}}}}}=By,Jb=Ys(Xb,{init(){this.element=new bv}}),{visitors:{document:{objects:{Responses:{$visitor:Qb}}}}}=By,t_=Ys(Qb,{init(){this.element=new _v}}),{visitors:{document:{objects:{Operation:{$visitor:e_}}}}}=By,r_=Ys(e_,{init(){this.element=new fv}}),{visitors:{document:{objects:{PathItem:{$visitor:n_}}}}}=By,o_=Ys(n_,{init(){this.element=new dv}}),{visitors:{document:{objects:{SecurityScheme:{$visitor:i_}}}}}=By,a_=Ys(i_,{init(){this.element=new Ev}}),{visitors:{document:{objects:{OAuthFlows:{$visitor:s_}}}}}=By,u_=Ys(s_,{init(){this.element=new uv}}),{visitors:{document:{objects:{OAuthFlow:{$visitor:c_}}}}}=By,l_=Ys(c_,{init(){this.element=new sv}});class p_ extends ro.Sb{constructor(t,e,r){super(t,e,r),this.classes.push(p_.primaryClass)}}E(p_,"primaryClass","webhooks");const f_=p_,h_=Ys(uf,Vp,{props:{specPath:t=>Dp(t)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new f_},methods:{ObjectElement(t){const e=uf.compose.methods.ObjectElement.call(this,t);return this.element.filter(Sg).forEach((t=>{t.setMetaProperty("referenced-element","pathItem")})),this.element.filter(wg).forEach(((t,e)=>{t.setMetaProperty("webhook-name",e.toValue())})),e}}}),d_={visitors:{value:By.visitors.value,document:{objects:{OpenApi:{$visitor:Cv,fixedFields:{openapi:By.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:Bv,servers:By.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:h_,components:{$ref:"#/visitors/document/objects/Components"},security:By.visitors.document.objects.OpenApi.fixedFields.security,tags:By.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:kv,fixedFields:{title:By.visitors.document.objects.Info.fixedFields.title,description:By.visitors.document.objects.Info.fixedFields.description,summary:Mv,termsOfService:By.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:By.visitors.document.objects.Info.fixedFields.version}}
vendor: 8,564 bytes, line 1
1,Contact:{$visitor:Dv,fixedFields:{name:By.visitors.document.objects.Contact.fixedFields.name,url:By.visitors.document.objects.Contact.fixedFields.url,email:By.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:Rv,fixedFields:{name:By.visitors.document.objects.License.fixedFields.name,identifier:zv,url:By.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:Uv,fixedFields:{url:By.visitors.document.objects.Server.fixedFields.url,description:By.visitors.document.objects.Server.fixedFields.description,variables:By.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:$v,fixedFields:{enum:By.visitors.document.objects.ServerVariable.fixedFields.enum,default:By.visitors.document.objects.ServerVariable.fixedFields.default,description:By.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:Yv,fixedFields:{schemas:Lb,responses:By.visitors.document.objects.Components.fixedFields.responses,parameters:By.visitors.document.objects.Components.fixedFields.parameters,examples:By.visitors.document.objects.Components.fixedFields.examples,requestBodies:By.visitors.document.objects.Components.fixedFields.requestBodies,headers:By.visitors.document.objects.Components.fixedFields.headers,securitySchemes:By.visitors.document.objects.Components.fixedFields.securitySchemes,links:By.visitors.document.objects.Components.fixedFields.links,callbacks:By.visitors.document.objects.Components.fixedFields.callbacks,pathItems:Nb}},Paths:{$visitor:Wb},PathItem:{$visitor:o_,fixedFields:{$ref:By.visitors.document.objects.PathItem.fixedFields.$ref,summary:By.visitors.document.objects.PathItem.fixedFields.summary,description:By.visitors.document.objects.PathItem.fixedFields.description,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:By.visitors.document.objects.PathItem.fixedFields.servers,parameters:By.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:r_,fixedFields:{tags:By.visitors.document.objects.Operation.fixedFields.tags,summary:By.visitors.document.objects.Operation.fixedFields.summary,description:By.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:By.visitors.document.objects.Operation.fixedFields.operationId,parameters:By.visitors.document.objects.Operation.fixedFields.parameters,requestBody:By.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:By.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:By.visitors.document.objects.Operation.fixedFields.deprecated,security:By.visitors.document.objects.Operation.fixedFields.security,servers:By.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:Ub,fixedFields:{description:By.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:By.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:og,fixedFields:{name:By.visitors.document.objects.Parameter.fixedFields.name,in:By.visitors.document.objects.Parameter.fixedFields.in,description:By.visitors.document.objects.Parameter.fixedFields.description,required:By.visitors.document.objects.Parameter.fixedFields.required,deprecated:By.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:By.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:By.visitors.document.objects.Parameter.fixedFields.style,explode:By.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:By.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:By.visitors.document.objects.Parameter.fixedFields.example,examples:By.visitors.document.objects.Parameter.fixedFields.examples,content:By.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:Hb,fixedFields:{description:By.visitors.document.objects.RequestBody.fixedFields.description,content:By.visitors.document.objects.RequestBody.fixedFields.content,required:By.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:Wv,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:By.visitors.document.objects.MediaType.fixedFields.example,examples:By.visitors.document.objects.MediaType.fixedFields.examples,encoding:By.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:$b,fixedFields:{contentType:By.visitors.document.objects.Encoding.fixedFields.contentType,headers:By.visitors.document.objects.Encoding.fixedFields.headers,style:By.visitors.document.objects.Encoding.fixedFields.style,explode:By.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:By.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:t_,fixedFields:{default:By.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:Jb,fixedFields:{description:By.visitors.document.objects.Response.fixedFields.description,headers:By.visitors.document.objects.Response.fixedFields.headers,content:By.visitors.document.objects.Response.fixedFields.content,links:By.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:Yb},Example:{$visitor:Bb,fixedFields:{summary:By.visitors.document.objects.Example.fixedFields.summary,description:By.visitors.document.objects.Example.fixedFields.description,value:By.visitors.document.objects.Example.fixedFields.value,externalValue:By.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:Fv,fixedFields:{operationRef:By.visitors.document.objects.Link.fixedFields.operationRef,operationId:By.visitors.document.objects.Link.fixedFields.operationId,parameters:By.visitors.document.objects.Link.fixedFields.parameters,requestBody:By.visitors.document.objects.Link.fixedFields.requestBody,description:By.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:ag,fixedFields:{description:By.visitors.document.objects.Header.fixedFields.description,required:By.visitors.document.objects.Header.fixedFields.required,deprecated:By.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:By.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:By.visitors.document.objects.Header.fixedFields.style,explode:By.visitors.document.objects.Header.fixedFields.explode,allowReserved:By.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:By.visitors.document.objects.Header.fixedFields.example,examples:By.visitors.document.objects.Header.fixedFields.examples,content:By.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:Jv,fixedFields:{name:By.visitors.document.objects.Tag.fixedFields.name,description:By.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:tg,fixedFields:{$ref:By.visitors.document.objects.Reference.fixedFields.$ref,summary:eg,description:rg}},Schema:{$visitor:zg,fixedFields:{$schema:Ng,$vocabulary:Fg,$id:Bg,$anchor:Vg,$dynamicAnchor:Ug,$dynamicRef:qg,$ref:$g,$defs:Gg,$comment:Wg,allOf:Zg,anyOf:Hg,oneOf:Kg,not:{$ref:"#/visitors/document/objects/Schema"},if:{$ref:"#/visitors/document/objects/Schema"},then:{$ref:"#/visitors/document/objects/Schema"},else:{$ref:"#/visitors/document/objects/Schema"},dependentSchemas:Yg,prefixItems:Xg,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:Jg,patternProperties:Qg,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},type:tb,enum:eb,const:rb,multipleOf:nb,maximum:ob,exclusiveMaximum:ib,minimum:ab,exclusiveMinimum:sb,maxLength:ub,minLength:cb,pattern:lb,maxItems:pb,minItems:fb,uniqueItems:hb,maxContains:db,minContains:mb,maxPro
1perties:yb,minProperties:vb,required:gb,dependentRequired:bb,title:_b,description:xb,default:wb,deprecated:Ob,readOnly:Eb,writeOnly:Sb,examples:Pb,format:jb,contentEncoding:Ab,contentMediaType:Cb,contentSchema:{$ref:"#/visitors/document/objects/Schema"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:Tb}},Discriminator:{$visitor:Mb,fixedFields:{propertyName:By.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:By.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:Db,fixedFields:{name:By.visitors.document.objects.XML.fixedFields.name,namespace:By.visitors.document.objects.XML.fixedFields.namespace,prefix:By.visitors.document.objects.XML.fixedFields.prefix,attribute:By.visitors.document.objects.XML.fixedFields.attribute,wrapped:By.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:a_,fixedFields:{type:By.visitors.document.objects.SecurityScheme.fixedFields.type,description:By.visitors.document.objects.SecurityScheme.fixedFields.description,name:By.visitors.document.objects.SecurityScheme.fixedFields.name,in:By.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:By.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:By.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:By.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:u_,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:l_,fixedFields:{authorizationUrl:By.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:By.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:By.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:By.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:Hv}},extension:{$visitor:By.visitors.document.extension.$visitor}}}};function m_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}const y_=t=>{if(ms(t))return`${t.element.charAt(0).toUpperCase()+t.element.slice(1)}Element`},v_=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?m_(Object(r),!0).forEach((function(e){E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_1Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"]},lu),g_={namespace:t=>{const{base:e}=t;return e.register("callback",Zy),e.register("components",Hy),e.register("contact",Ky),e.register("discriminator",Yy),e.register("encoding",Xy),e.register("example",Jy),e.register("externalDocumentation",Qy),e.register("header",tv),e.register("info",ev),e.register("jsonSchemaDialect",nv),e.register("license",ov),e.register("link",iv),e.register("mediaType",av),e.register("oAuthFlow",sv),e.register("oAuthFlows",uv),e.register("openapi",cv),e.register("openApi3_1",pv),e.register("operation",fv),e.register("parameter",hv),e.register("pathItem",dv),e.register("paths",mv),e.register("reference",vv),e.register("requestBody",gv),e.register("response",bv),e.register("responses",_v),e.register("schema",wv),e.register("securityRequirement",Ov),e.register("securityScheme",Ev),e.register("server",Sv),e.register("serverVariable",Pv),e.register("tag",jv),e.register("xml",Av),e}};function b_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function __(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?b_(Object(r),!0).forEach((function(e){E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}const x_=()=>{const t=$s(g_);return{predicates:__(__({},c),{},{isStringElement:ys,isArrayElement:xs,isObjectElement:_s,includesClasses:Ms}),namespace:t}};function w_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}const O_=t=>(e,r={})=>((t,{specPath:e=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,ro.Qc)(t),o=Gc(d_),i=ss(e,[],o);return fu(n,i,{state:{specObj:o}}),hu(i.element,r,{toolboxCreator:x_,visitorOptions:{keyMap:v_,nodeTypeGetter:y_}})})(e,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?w_(Object(r),!0).forEach((function(e){E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):w_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({specPath:t},r));Zy.refract=O_(["visitors","document","objects","Callback","$visitor"]),Hy.refract=O_(["visitors","document","objects","Components","$visitor"]),Ky.refract=O_(["visitors","document","objects","Contact","$visitor"]),Jy.refract=O_(["visitors","document","objects","Example","$visitor"]),Yy.refract=O_(["visitors","document","objects","Discriminator","$visitor"]),Xy.refract=O_(["visitors","document","objects","Encoding","$visitor"]),Qy.refract=O_(["visitors","document","objects","ExternalDocumentation","$visitor"]),tv.refract=O_(["visitors","document","objects","Header","$visitor"]),ev.refract=O_(["visitors","document","objects","Info","$visitor"]),nv.refract=O_(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),ov.refract=O_(["visitors","document","objects","License","$visitor"]),iv.refract=O_(["visitors","document","objects","Link","$visitor"]),av.refract=O_(["visitors","document","objects","MediaType","$visitor"]),sv.refract=O_(["visitors","document","objects","OAuthFlow","$visitor"]),uv.refract=O_(["visitors","document","objects","OAuthFlows","$visitor"]),cv.refract=O_(["visitors","document","objects","OpenApi","fixedFields","openapi"]),pv.refract=O_(["visitors","document","objects","OpenApi","$visitor"]),fv.refract=O_(["visitors","document","objects","Operation","$visitor"]),hv.refract=O_(["visitors","document","objects","Parameter","$visitor"]),dv.refract=O_(["visitors","document","objects","PathItem","$visitor"]),mv.refract=O_(["visitors","document","objects","Paths","$visitor"]),vv.refract=O_(["visitors","document","objects","Reference","$visitor"]),gv.refract=O_(["visitors","document","objects","RequestBody","$visitor"]),bv.refract=O_(["visitors","document","objects","Response","$visitor"]),_v.refract=O_(["visitors","document","objects","Responses","$visitor"]),wv.refract=O_(["visitors","document","objects","Schema","$visitor"]),Ov.refract=O_(["visitors","document","objects","SecurityRequirement","$visitor"]),Ev.refract=O_(["visitors","document","objects","SecurityScheme","$visitor"]),Sv.refract=O_(["visitors","document","objects","Server","$visitor"]),Pv.refract=O_(["visitors","document","objects","ServerVariable","$visitor"]),jv.refract=O_(["visitors","document","objects","Tag","$visitor"]),Av.refract=O_(["visitors","document","objects","XML","$visitor"]);const E_=class extends Array{constructor(...t){super(...t),E(this,"unknownMediaType","application/octet-stream")}filterByFormat(){throw new Error("Not implemented!")}findBy(){throw new Error("Not implemented")}latest(){throw new Error("Not implemented!")}};class S_ extends E_{filterByFormat(t="generic"){const e="generic"===t?"openapi;version":t;return this.filter((t=>t.includes(e)))}findBy(t="3.1.0",e="generic"){const r="generic"===e?`vnd.oai.openapi;version=${t}`:`vnd.oai.openapi+${e};version=${t}`;return this.find((t=>t.includes(r)))||this.unknownMediaType}latest(t="generic"){return ga(this.filterByFormat(t))}}const P_=new S_("application/vnd.oai.openapi;
1version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0");var j_=r(34155);const A_=Vi((function(t,e){return Di(Ua(""),Yi(us(t)),va(""))(e)})),C_=Ci(Ya),T_=wo(1,Di(Do,la("RegExp"))),k_=Ha(Xs,Ba(/[.*+?^${}()|[\]\\-]/g,"\\$&"));var M_=function(t,e){if("string"!=typeof t&&!(t instanceof String))throw TypeError("`".concat(e,"` must be a string"))},I_=wo(3,(function(t,e,r){!function(t,e,r){if(null==r||null==t||null==e)throw TypeError("Input values must not be `null` or `undefined`")}(t,e,r),M_(r,"str"),M_(e,"replaceValue"),function(t){if(!("string"==typeof t||t instanceof String||t instanceof RegExp))throw TypeError("`searchValue` must be a string or an regexp")}(t);var n=new RegExp(T_(t)?t:k_(t),"g");return Ba(n,e,r)})),D_=ma(2,"replaceAll");const L_=ns(String.prototype.replaceAll)?D_:I_,R_=()=>Ta(Ga(/^win/),["platform"],j_),z_=t=>{try{const e=new URL(t);return A_(":",e.protocol)}catch{return}},N_=(Di(z_,C_),t=>{if(j_.browser)return!1;const e=z_(t);return Ya(e)||"file"===e||/^[a-zA-Z]$/.test(e)}),F_=t=>{const e=z_(t);return"http"===e||"https"===e},B_=(t,e)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],n=Ia(!1,"keepFileProtocol",e),o=Ia(R_,"isWindows",e);let i=decodeURI(t);for(let s=0;s<r.length;s+=2)i=i.replace(r[s],r[s+1]);let a="file://"===i.substr(0,7).toLowerCase();return a&&(i="/"===i[7]?i.substr(8):i.substr(7),o()&&"/"===i[1]&&(i=`${i[0]}:${i.substr(1)}`),n?i=`file:///${i}`:(a=!1,i=o()?i:`/${i}`)),o()&&!a&&(i=L_("/","\\",i),":\\"===i.substr(1,2)&&(i=i[0].toUpperCase()+i.substr(1))),i},V_=t=>{const e=t.indexOf("#");return-1!==e?t.substr(e):"#"},U_=t=>{const e=t.indexOf("#");let r=t;return e>=0&&(r=t.substr(0,e)),r},q_=()=>{if(j_.browser)return U_(globalThis.location.href);const t=j_.cwd(),e=ga(t);return["/","\\"].includes(e)?t:t+(R_()?"\\":"/")},$_=(t,e)=>{const r=new URL(e,new URL(t,"resolve://"));if("resolve:"===r.protocol){const{pathname:t,search:e,hash:n}=r;return t+e+n}return r.toString()},G_=t=>N_(t)?(t=>{const e=[/\?/g,"%3F",/#/g,"%23"];let r=t;R_()&&(r=r.replace(/\\/g,"/")),r=encodeURI(r);for(let n=0;n<e.length;n+=2)r=r.replace(e[n],e[n+1]);return r})(B_(t)):encodeURI(decodeURI(t)).replace(/%5B/g,"[").replace(/%5D/g,"]"),W_=t=>N_(t)?B_(t):decodeURI(t),Z_=Ys({props:{uri:"",value:null,depth:0,refSet:null,errors:[]},init({depth:t=this.depth,refSet:e=this.refSet,uri:r=this.uri,value:n=this.value}={}){this.uri=r,this.value=n,this.depth=t,this.refSet=e,this.errors=[]}}),H_=Ys({props:{rootRef:null,refs:[],circular:!1},init({refs:t=[]}={}){this.refs=[],t.forEach((t=>this.add(t)))},methods:{get size(){return this.refs.length},add(t){return this.has(t)||(this.refs.push(t),this.rootRef=null===this.rootRef?t:this.rootRef,t.refSet=this),this},merge(t){for(const e of t.values())this.add(e);return this},has(t){const e=Xs(t)?t:t.uri;return C_(this.find(Ma(e,"uri")))},find(t){return this.refs.find(t)},*values(){yield*this.refs},clean(){this.refs.forEach((t=>{t.refSet=null})),this.refs=[]}}}),K_=H_,Y_={parse:{mediaType:"text/plain",parsers:[],parserOpts:{}},resolve:{baseURI:"",resolvers:[],resolverOpts:{},strategies:[],external:!0,maxDepth:1/0},dereference:{strategies:[],refSet:null,maxDepth:1/0}},X_=ba(xa(["resolve","baseURI"]),wi(["resolve","baseURI"])),J_=t=>Tu(t)?q_():t,Q_=Ys({props:{uri:null,mediaType:"text/plain",data:null,parseResult:null},init({uri:t=this.uri,mediaType:e=this.mediaType,data:r=this.data,parseResult:n=this.parseResult}={}){this.uri=t,this.mediaType=e,this.data=r,this.parseResult=n},methods:{get extension(){return Xs(this.uri)?(t=>{const e=t.lastIndexOf(".");return e>=0?t.substr(e).toLowerCase():""})(this.uri):""},toString(){return"string"==typeof this.data?this.data:this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(Do(this.data))||ArrayBuffer.isView(this.data)?new TextDecoder("utf-8").decode(this.data):String(this.data)}}});class tx extends Error{constructor(t,e){if(super(t),this.name=this.constructor.name,this.message=t,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,Vs(e)&&sa("cause",e)&&!sa("cause",this)){const{cause:t}=e;this.cause=t,sa("stack",t)&&(this.stack=`${this.stack}\nCAUSE: ${null==t?void 0:t.stack}`)}}}const ex=tx,rx=class extends ex{constructor(t,e){super(t,{cause:e.cause}),E(this,"plugin",void 0),this.plugin=e.plugin}},nx=async(t,e,r)=>{const n=await Promise.all(r.map(ss([t],[e])));return r.filter(((t,e)=>n[e]))},ox=async(t,e,r)=>{let n;for(const o of r)try{const r=await o[t].call(o,...e);return{plugin:o,result:r}}catch(t){n=new rx("Error while running plugin",{cause:t,plugin:o})}return Promise.reject(n)},ix=class extends ex{},ax=class extends ix{},sx=class extends ex{},ux=class extends ex{constructor(t="Not Implemented",e){super(t,e)}},cx=Ys({props:{name:"",allowEmpty:!0,sourceMap:!1,fileExtensions:[],mediaTypes:[]},init({allowEmpty:t=this.allowEmpty,sourceMap:e=this.sourceMap,fileExtensions:r=this.fileExtensions,mediaTypes:n=this.mediaTypes}={}){this.allowEmpty=t,this.sourceMap=e,this.fileExtensions=r,this.mediaTypes=n},methods:{async canParse(){throw new ux},async parse(){throw new ux}}}),lx=Ys(cx,{props:{name:"binary"},methods:{async canParse(t){return 0===this.fileExtensions.length||this.fileExtensions.includes(t.extension)},async parse(t){try{const e=unescape(encodeURIComponent(t.toString())),r=btoa(e),n=new Ja;if(0!==r.length){const t=new ro.RP(r);t.classes.push("result"),n.push(t)}return n}catch(e){throw new ix(`Error parsing "${t.uri}"`,{cause:e})}}}}),px=Ys({props:{name:null},methods:{canResolve:()=>!1,async resolve(){throw new ux}}}
1),fx=wo(1,ci(Promise.all,Promise)),hx=class extends ex{},dx=class extends hx{},mx=class extends sx{},yx=class extends hx{};function vx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function gx(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vx(Object(r),!0).forEach((function(e){E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vx(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}const bx=async(t,e)=>{const r=Q_({uri:G_(U_(t)),mediaType:e.parse.mediaType}),n=await(async(t,e)=>{const r=e.resolve.resolvers.map((t=>{const r=Object.create(t);return Object.assign(r,e.resolve.resolverOpts)})),n=await nx("canRead",t,r);if(ya(n))throw new yx(t.uri);try{const{result:e}=await ox("read",[t],n);return e}catch(e){throw new hx(`Error while reading file "${t.uri}"`,{cause:e})}})(r,e);return(async(t,e)=>{const r=e.parse.parsers.map((t=>{const r=Object.create(t);return Object.assign(r,e.parse.parserOpts)})),n=await nx("canParse",t,r);if(ya(n))throw new yx(t.uri);try{const{plugin:e,result:r}=await ox("parse",[t],n);return!e.allowEmpty&&r.isEmpty?Promise.reject(new ix(`Error while parsing file "${t.uri}". File is empty.`)):r}catch(e){throw new ix(`Error while parsing file "${t.uri}"`,{cause:e})}})(Q_(gx(gx({},r),{},{data:n})),e)},_x=(t,e)=>{const r=pu({predicate:t,returnOnTrue:Qs});return fu(e,r),Ca(void 0,[0],r.result)};class xx extends Error{constructor(t){super(t),this.name=this.constructor.name,this.message=t,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack}}const wx=class extends ex{};class Ox extends wx{constructor(t){super(`Invalid JSON Schema $anchor "${t}".`)}}class Ex extends Error{constructor(t){super(t),this.name=this.constructor.name,this.message=t,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack}}const Sx=t=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(t),Px=t=>{const e=V_(t);return Ru("#",e)},jx=(t,e)=>{const r=(t=>{if(!Sx(t))throw new Ox(t);return t})(t),n=_x((t=>{var e;return Tg(t)&&(null===(e=t.$anchor)||void 0===e?void 0:e.toValue())===r}),e);if(Ya(n))throw new Ex(`Evaluation failed on token: "${r}"`);return n},Ax=(t,e)=>{if(void 0===e.$ref)return;const r=V_(e.$ref.toValue()),n=e.meta.get("inherited$id").toValue();return`${hi(((t,e)=>$_(t,G_(U_(e)))),t,[...n,e.$ref.toValue()])}${"#"===r?"":r}`},Cx=t=>{if(Cx.cache.has(t))return Cx.cache.get(t);const e=wv.refract(t);return Cx.cache.set(t,e),e};Cx.cache=new WeakMap;const Tx=t=>Cs(t)?Cx(t):t,kx=(t,e)=>{const r=U_(t),n=_x((t=>!!Tg(t)&&void 0!==t.$id&&((t,e)=>{if(void 0===e.$id)return;const r=e.meta.get("inherited$id").toValue();return hi(((t,e)=>$_(t,G_(U_(e)))),t,[...r,e.$id.toValue()])})(r,t)===r),e);if(Ya(n))throw new xx(`Evaluation failed on URI: "${t}"`);let o,i;return Sx(Px(t))?(o=jx,i=Px(t)):(o=Vu,i=Uu(t)),o(i,n)};function Mx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ix(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Mx(Object(r),!0).forEach((function(e){E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mx(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}const Dx=fu[Symbol.for("nodejs.util.promisify.custom")],Lx=Ys({props:{indirections:[],namespace:null,reference:null,crawledElements:null,crawlingMap:null,visited:null,options:null},init({reference:t,namespace:e,indirections:r=[],visited:n=new WeakSet,options:o}){this.indirections=r,this.namespace=e,this.reference=t,this.crawledElements=[],this.crawlingMap={},this.visited=n,this.options=o},methods:{toBaseURI(t){return $_(this.reference.uri,G_(U_(t)))},async toReference(t){if(this.reference.depth>=this.options.resolve.maxDepth)throw new dx(`Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`);const e=this.toBaseURI(t),{refSet:r}=this.reference;if(r.has(e))return r.find(Ma(e,"uri"));const n=await bx(W_(e),Ix(Ix({},this.options),{},{parse:Ix(Ix({},this.options.parse),{},{mediaType:"text/plain"})})),o=Z_({uri:e,value:n,depth:this.reference.depth+1});return r.add(o),o},ReferenceElement(t){var e;if(!this.options.resolve.external&&Pg(t))return!1;const r=null===(e=t.$ref)||void 0===e?void 0:e.toValue(),n=this.toBaseURI(r);aa(n,this.crawlingMap)||(this.crawlingMap[n]=this.toReference(r)),this.crawledElements.push(t)},PathItemElement(t){var e;if(!ys(t.$ref))return;if(!this.options.resolve.external&&Og(t))return;const r=null===(e=t.$ref)||void 0===e?void 0:e.toValue(),n=this.toBaseURI(r);aa(n,this.crawlingMap)||(this.crawlingMap[n]=this.toReference(r)),this.crawledElements.push(t)},LinkElement(t){if((ys(t.operationRef)||ys(t.operationId))&&(this.options.resolve.external||!vg(t))){if
1(ys(t.operationRef)&&ys(t.operationId))throw new Error("LinkElement operationRef and operationId are mutually exclusive.");if(vg(t)){var e;const r=null===(e=t.operationRef)||void 0===e?void 0:e.toValue(),n=this.toBaseURI(r);aa(n,this.crawlingMap)||(this.crawlingMap[n]=this.toReference(r))}}},ExampleElement(t){var e;if(!ys(t.externalValue))return;if(!this.options.resolve.external&&ys(t.externalValue))return;if(t.hasKey("value")&&ys(t.externalValue))throw new Error("ExampleElement value and externalValue fields are mutually exclusive.");const r=null===(e=t.externalValue)||void 0===e?void 0:e.toValue(),n=this.toBaseURI(r);aa(n,this.crawlingMap)||(this.crawlingMap[n]=this.toReference(r))},SchemaElement(t){if(this.visited.has(t))return!1;if(!ys(t.$ref))return void this.visited.add(t);const e=this.reference.uri,r=Ax(e,t),n=U_(r),o=Q_({uri:n}),i=Pa((t=>t.canRead(o)),this.options.resolve.resolvers),a=!i,s=!i&&this.reference.uri!==n;if(this.options.resolve.external||!s){if(!aa(n,this.crawlingMap))try{this.crawlingMap[n]=i||a?this.reference:this.toReference(W_(r))}catch(t){if(!(a&&t instanceof xx))throw t;this.crawlingMap[n]=this.toReference(W_(r))}this.crawledElements.push(t)}else this.visited.add(t)},async crawlReferenceElement(t){var e;const r=await this.toReference(t.$ref.toValue());this.indirections.push(t);const n=Uu(null===(e=t.$ref)||void 0===e?void 0:e.toValue());let o=Vu(n,r.value.result);if(Cs(o)){const e=t.meta.get("referenced-element").toValue();Dp(o)?(o=vv.refract(o),o.setMetaProperty("referenced-element",e)):o=this.namespace.getElementClass(e).refract(o)}if(this.indirections.includes(o))throw new Error("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new mx(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const i=Lx({reference:r,namespace:this.namespace,indirections:[...this.indirections],options:this.options});await Dx(o,i,{keyMap:v_,nodeTypeGetter:y_}),await i.crawl(),this.indirections.pop()},async crawlPathItemElement(t){var e;const r=await this.toReference(t.$ref.toValue());this.indirections.push(t);const n=Uu(null===(e=t.$ref)||void 0===e?void 0:e.toValue());let o=Vu(n,r.value.result);if(Cs(o)&&(o=dv.refract(o)),this.indirections.includes(o))throw new Error("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new mx(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const i=Lx({reference:r,namespace:this.namespace,indirections:[...this.indirections],options:this.options});await Dx(o,i,{keyMap:v_,nodeTypeGetter:y_}),await i.crawl(),this.indirections.pop()},async crawlSchemaElement(t){const e=this.reference.uri,r=Ax(e,t),n=U_(r),o=Q_({uri:n}),i=Pa((t=>t.canRead(o)),this.options.resolve.resolvers),a=!i;let s,u;this.indirections.push(t);try{if(i||a)s=this.reference,u=kx(r,Tx(s.value.result));else{s=await this.toReference(W_(r));const t=Uu(r);u=Tx(Vu(t,s.value.result))}}catch(t){if(!(a&&t instanceof xx))throw t;if(Sx(Px(r))){s=await this.toReference(W_(r));const t=Px(r);u=jx(t,Tx(s.value.result))}else{s=await this.toReference(W_(r));const t=Uu(r);u=Tx(Vu(t,s.value.result))}}if(this.visited.add(t),this.indirections.includes(u))throw new Error("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new mx(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const c=Lx({reference:s,namespace:this.namespace,indirections:[...this.indirections],options:this.options,visited:this.visited});await Dx(u,c,{keyMap:v_,nodeTypeGetter:y_}),await c.crawl(),this.indirections.pop()},async crawl(){await Di(_i,fx)(this.crawlingMap),this.crawlingMap=null;for(const t of this.crawledElements)Sg(t)?await this.crawlReferenceElement(t):Tg(t)?await this.crawlSchemaElement(t):wg(t)&&await this.crawlPathItemElement(t)}}}),Rx=Lx,zx=fu[Symbol.for("nodejs.util.promisify.custom")],Nx=Ys(px,{init(){this.name="openapi-3-1"},methods:{canResolve(t){var e;return"text/plain"!==t.mediaType?P_.includes(t.mediaType):bg(null===(e=t.parseResult)||void 0===e?void 0:e.result)},async resolve(t,e){const r=$s(g_),n=Z_({uri:t.uri,value:t.parseResult}),o=Rx({reference:n,namespace:r,options:e}),i=K_();return i.add(n),await zx(i.rootRef.value,o,{keyMap:v_,nodeTypeGetter:y_}),await o.crawl(),i}}}),Fx=Nx,Bx=t=>t.replace(/\s/g,""),Vx=t=>
1t.replace(/\W/gi,"_"),Ux=(t,e,r)=>{const n=Bx(t);return n.length>0?Vx(n):((t,e)=>`${Vx(Bx(e.toLowerCase()))}${Vx(Bx(t))}`)(e,r)},qx=({operationIdNormalizer:t=Ux}={})=>({predicates:e,namespace:r})=>{const n=[],o=[],i=[];return{visitor:{OpenApi3_1Element:{leave(){const t=oa((t=>Cu(t.operationId)),o);Object.entries(t).forEach((([t,e])=>{e.length<=1||e.forEach(((e,n)=>{const o=`${t}${n+1}`;e.operationId=new r.elements.String(o)}))})),i.forEach((t=>{var e;if(void 0===t.operationId)return;const r=String(Cu(t.operationId)),n=o.find((t=>Cu(t.meta.get("originalOperationId"))===r));void 0!==n&&(t.operationId=null===(e=n.operationId)||void 0===e?void 0:e.clone(),t.meta.set("originalOperationId",r),t.set("__originalOperationId",r))})),o.length=0,i.length=0}},PathItemElement:{enter(t){const e=Ui("path",Cu(t.meta.get("path")));n.push(e)},leave(){n.pop()}},OperationElement:{enter(e){if(void 0===e.operationId)return;const i=String(Cu(e.operationId)),a=ga(n),s=Ui("method",Cu(e.meta.get("http-method"))),u=t(i,a,s);i!==u&&(e.operationId=new r.elements.String(u),e.set("__originalOperationId",i),e.meta.set("originalOperationId",i),o.push(e))}},LinkElement:{leave(t){e.isLinkElement(t)&&void 0!==t.operationId&&i.push(t)}}}}},$x=t=>{if(!_s(t))return t;if(t.hasKey("$$normalized"))return t;const e=[qx({operationIdNormalizer:(t,e,r)=>Un({operationId:t},e,r,{v2OperationIdCompatibilityMode:!1})}),({predicates:t})=>{const e=(e,r)=>!!(t.isParameterElement(e)&&t.isParameterElement(r)&&t.isStringElement(e.name)&&t.isStringElement(e.in)&&t.isStringElement(r.name)&&t.isStringElement(r.in)&&Cu(e.name)===Cu(r.name)&&Cu(e.in)===Cu(r.in)),r=[];return{visitor:{PathItemElement:{enter(e,n,o,i,a){if(a.some(t.isComponentsElement))return;const{parameters:s}=e;t.isArrayElement(s)?r.push([...s.content]):r.push([])},leave(){r.pop()}},OperationElement:{leave(t){const n=ga(r);if(!Array.isArray(n)||0===n.length)return;const o=Ca([],["parameters","content"],t),i=Za(e,[...o,...n]);t.parameters=new Zm(i)}}}}},({predicates:t})=>{let e;return{visitor:{OpenApi3_1Element:{enter(r){t.isArrayElement(r.security)&&(e=r.security)},leave(){e=void 0}},OperationElement:{leave(r,n,o,i,a){var s;a.some(t.isComponentsElement)||void 0===r.security&&void 0!==e&&(r.security=new ry(null===(s=e)||void 0===s?void 0:s.content))}}}}},({predicates:t})=>{let e;const r=[];return{visitor:{OpenApi3_1Element:{enter(r){var n;t.isArrayElement(r.servers)&&(e=null===(n=r.servers)||void 0===n?void 0:n.content)},leave(){e=void 0}},PathItemElement:{enter(n,o,i,a,s){if(s.some(t.isComponentsElement))return;void 0===n.servers&&void 0!==e&&(n.servers=new fy(e));const{servers:u}=n;void 0!==u&&t.isArrayElement(u)?r.push([...u.content]):r.push(void 0)},leave(){r.pop()}},OperationElement:{enter(e){const n=ga(r);void 0!==n&&(t.isArrayElement(e.servers)||(e.servers=new iy(n)))}}}}},({predicates:t})=>({visitor:{ParameterElement:{leave(e,r,n,o,i){var a,s;if(!i.some(t.isComponentsElement)&&void 0!==e.schema&&t.isSchemaElement(e.schema)&&(void 0!==(null===(a=e.schema)||void 0===a?void 0:a.example)||void 0!==(null===(s=e.schema)||void 0===s?void 0:s.examples))){if(void 0!==e.examples&&t.isObjectElement(e.examples)){const t=e.examples.map((t=>{var e;return null===(e=t.value)||void 0===e?void 0:e.clone()}));return void 0!==e.schema.examples&&e.schema.set("examples",t),void(void 0!==e.schema.example&&e.schema.set("example",t))}void 0!==e.example&&(void 0!==e.schema.examples&&e.schema.set("examples",[e.example.clone()]),void 0!==e.schema.example&&e.schema.set("example",e.example.clone()))}}}}}),({predicates:t})=>({visitor:{HeaderElement:{leave(e,r,n,o,i){var a,s;if(!i.some(t.isComponentsElement)&&void 0!==e.schema&&t.isSchemaElement(e.schema)&&(void 0!==(null===(a=e.schema)||void 0===a?void 0:a.example)||void 0!==(null===(s=e.schema)||void 0===s?void 0:s.examples))){if(void 0!==e.examples&&t.isObjectElement(e.examples)){const t=e.examples.map((t=>{var e;return null===(e=t.value)||void 0===e?void 0:e.clone()}));return void 0!==e.schema.examples&&e.schema.set("examples",t),void(void 0!==e.schema.example&&e.schema.set("example",t))}void 0!==e.example&&(void 0!==e.schema.examples&&e.schema.set("examples",[e.example.clone()]),void 0!==e.schema.example&&e.schema.set("example",e.example.clone()))}}}}})],r=hu(t,e,{toolboxCreator:x_,visitorOptions:{keyMap:v_,nodeTypeGetter:y_}});return r.set("$$normalized",!0),r},Gx=Ys({props:{name:null},methods:{canRead:()=>!1,async read(){throw new ux}}}),Wx=Ys(Gx,{props:{timeout:5e3,redirects:5,withCredentials:!1},init({timeout:t=this.timeout,redirects:e=this.redirects,withCredentials:r=this.withCredentials}={}){this.timeout=t,this.redirects=e,this.withCredentials=r},methods:{canRead:t=>F_(t.uri),async read(){throw new ux},getHttpClient(){throw new ux}}}).compose({props:{name:"http-swagger-client",swaggerHTTPClient:Ze,swaggerHTTPClientConfig:{}},init(){let{swaggerHTTPClient:t=this.swaggerHTTPClient}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.swaggerHTTPClient=t},methods:{getHttpClient(){return this.swaggerHTTPClient},async read(t){const e=this.getHttpClient(),r=new AbortController,{signal:n}=r,o=setTimeout((()=>{r.abort()}),this.timeout),i=this.getHttpClient().withCredentials||this.withCredentials?"include":"same-origin",a=0===this.redirects?"error":"follow",s=this.redirects>0?this.redirects:void 0;try{return(await e(P({url:t.uri,signal:n,userFetch:async(t,e)=>{let r=await fetch(t,e);try{r.headers.delete("Content-Type")}
1catch{r=new Response(r.body,P(P({},r),{},{headers:new Headers(r.headers)})),r.headers.delete("Content-Type")}return r},credentials:i,redirects:a,follow:s},this.swaggerHTTPClientConfig))).text.arrayBuffer()}catch(e){throw new hx(`Error downloading "${t.uri}"`,{cause:e})}finally{clearTimeout(o)}}}}),Zx=cx.compose({props:{name:"json-swagger-client",fileExtensions:[".json"],mediaTypes:["application/json"]},methods:{async canParse(t){const e=0===this.fileExtensions.length||this.fileExtensions.includes(t.extension),r=this.mediaTypes.includes(t.mediaType);if(!e)return!1;if(r)return!0;if(!r)try{return JSON.parse(t.toString()),!0}catch(t){return!1}return!1},async parse(t){if(this.sourceMap)throw new ix("json-swagger-client parser plugin doesn't support sourceMaps option");const e=new Ja,r=t.toString();if(this.allowEmpty&&""===r.trim())return e;try{const t=Au(JSON.parse(r));return t.classes.push("result"),e.push(t),e}catch(e){throw new ix(`Error parsing "${t.uri}"`,{cause:e})}}}}),Hx=cx.compose({props:{name:"yaml-1-2-swagger-client",fileExtensions:[".yaml",".yml"],mediaTypes:["text/yaml","application/yaml"]},methods:{async canParse(t){const e=0===this.fileExtensions.length||this.fileExtensions.includes(t.extension),r=this.mediaTypes.includes(t.mediaType);if(!e)return!1;if(r)return!0;if(!r)try{return Re.load(t.toString(),{schema:Pe}),!0}catch(t){return!1}return!1},async parse(t){if(this.sourceMap)throw new ix("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const e=new Ja,r=t.toString();try{const t=Re.load(r,{schema:Pe});if(this.allowEmpty&&void 0===t)return e;const n=Au(t);return n.classes.push("result"),e.push(n),e}catch(e){throw new ix(`Error parsing "${t.uri}"`,{cause:e})}}}}),Kx=cx.compose({props:{name:"openapi-json-3-1-swagger-client",fileExtensions:[".json"],mediaTypes:new S_(...P_.filterByFormat("generic"),...P_.filterByFormat("json")),detectionRegExp:/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/},methods:{async canParse(t){const e=0===this.fileExtensions.length||this.fileExtensions.includes(t.extension),r=this.mediaTypes.includes(t.mediaType);if(!e)return!1;if(r)return!0;if(!r)try{const e=t.toString();return JSON.parse(e),this.detectionRegExp.test(e)}catch(t){return!1}return!1},async parse(t){if(this.sourceMap)throw new ix("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const e=new Ja,r=t.toString();if(this.allowEmpty&&""===r.trim())return e;try{const t=JSON.parse(r),n=pv.refract(t,this.refractorOpts);return n.classes.push("result"),e.push(n),e}catch(e){throw new ix(`Error parsing "${t.uri}"`,{cause:e})}}}}),Yx=cx.compose({props:{name:"openapi-yaml-3-1-swagger-client",fileExtensions:[".yaml",".yml"],mediaTypes:new S_(...P_.filterByFormat("generic"),...P_.filterByFormat("yaml")),detectionRegExp:/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m},methods:{async canParse(t){const e=0===this.fileExtensions.length||this.fileExtensions.includes(t.extension),r=this.mediaTypes.includes(t.mediaType);if(!e)return!1;if(r)return!0;if(!r)try{const e=t.toString();return Re.load(e),this.detectionRegExp.test(e)}catch(t){return!1}return!1},async parse(t){if(this.sourceMap)throw new ix("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const e=new Ja,r=t.toString();try{const t=Re.load(r,{schema:Pe});if(this.allowEmpty&&void 0===t)return e;const n=pv.refract(t,this.refractorOpts);return n.classes.push("result"),e.push(n),e}catch(e){throw new ix(`Error parsing "${t.uri}"`,{cause:e})}}}}),Xx=Ys({props:{name:null},methods:{canDereference:()=>!1,async dereference(){throw new ux}}});function Jx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Qx(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jx(Object(r),!0).forEach((function(e){E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jx(Object(r)).forEac
1h((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}const tw=fu[Symbol.for("nodejs.util.promisify.custom")],ew=Ys({props:{indirections:null,namespace:null,reference:null,options:null,ancestors:null},init({indirections:t=[],reference:e,namespace:r,options:n,ancestors:o=[]}){this.indirections=t,this.namespace=r,this.reference=e,this.options=n,this.ancestors=[...o]},methods:{toBaseURI(t){return $_(this.reference.uri,G_(U_(t)))},toAncestorLineage(t){const e=new WeakSet(t.filter(ms));return[[...this.ancestors,e],e]},async toReference(t){if(this.reference.depth>=this.options.resolve.maxDepth)throw new dx(`Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`);const e=this.toBaseURI(t),{refSet:r}=this.reference;if(r.has(e))return r.find(Ma(e,"uri"));const n=await bx(W_(e),Qx(Qx({},this.options),{},{parse:Qx(Qx({},this.options.parse),{},{mediaType:"text/plain"})})),o=Z_({uri:e,value:n,depth:this.reference.depth+1});return r.add(o),o},async ReferenceElement(t,e,r,n,o){var i,a,s,u,c;const[l,p]=this.toAncestorLineage([...o,r]);if(l.some((e=>e.has(t))))return!1;if(!this.options.resolve.external&&Pg(t))return!1;const f=await this.toReference(null===(i=t.$ref)||void 0===i?void 0:i.toValue()),h=f.uri,d=$_(h,null===(a=t.$ref)||void 0===a?void 0:a.toValue());this.indirections.push(t);const m=Uu(d);let y=Vu(m,f.value.result);if(Cs(y)){const e=t.meta.get("referenced-element").toValue();Dp(y)?(y=vv.refract(y),y.setMetaProperty("referenced-element",e)):y=this.namespace.getElementClass(e).refract(y)}if(this.indirections.includes(y))throw new Error("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new mx(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);p.add(t);const v=ew({reference:f,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:l});y=await tw(y,v,{keyMap:v_,nodeTypeGetter:y_}),p.delete(t),this.indirections.pop(),y=y.clone(),y.setMetaProperty("ref-fields",{$ref:null===(s=t.$ref)||void 0===s?void 0:s.toValue(),description:null===(u=t.description)||void 0===u?void 0:u.toValue(),summary:null===(c=t.summary)||void 0===c?void 0:c.toValue()}),y.setMetaProperty("ref-origin",f.uri);const g=Ta(C_,["description"],t),b=Ta(C_,["summary"],t);return g&&sa("description",y)&&(y.description=t.description),b&&sa("summary",y)&&(y.summary=t.summary),this.indirections.pop(),y},async PathItemElement(t,e,r,n,o){var i,a,s;const[u,c]=this.toAncestorLineage([...o,r]);if(!ys(t.$ref))return;if(u.some((e=>e.has(t))))return!1;if(!this.options.resolve.external&&Og(t))return;const l=await this.toReference(null===(i=t.$ref)||void 0===i?void 0:i.toValue()),p=l.uri,f=$_(p,null===(a=t.$ref)||void 0===a?void 0:a.toValue());this.indirections.push(t);const h=Uu(f);let d=Vu(h,l.value.result);if(Cs(d)&&(d=dv.refract(d)),this.indirections.includes(d))throw new Error("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new mx(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);c.add(t);const m=ew({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:u});d=await tw(d,m,{keyMap:v_,nodeTypeGetter:y_}),c.delete(t),this.indirections.pop();const y=new dv([...d.content],d.meta.clone(),d.attributes.clone());return t.forEach(((t,e,r)=>{y.remove(e.toValue()),y.content.push(r)})),y.remove("$ref"),y.setMetaProperty("ref-fields",{$ref:null===(s=t.$ref)||void 0===s?void 0:s.toValue()}),y.setMetaProperty("ref-origin",l.uri),y},async LinkElement(t){if(!ys(t.operationRef)&&!ys(t.operationId))return;if(!this.options.resolve.external&&vg(t))return;if(ys(t.operationRef)&&ys(t.operationId))throw new Error("LinkElement operationRef and operationId fields are mutually exclusive.");let e;if(ys(t.operationRef)){var r,n,o;const i=Uu(null===(r=t.operationRef)||void 0===r?void 0:r.toValue()),a=await this.toReference(null===(n=t.operationRef)||void 0===n?void 0:n.toValue());e=Vu(i,a.value.result),Cs(e)&&(e=fv.refract(e)),e=new fv([...e.content],e.meta.clone(),e.attributes.clone()),e.setMetaProperty("ref-origin",a.uri),null===(o=t.operationRef)||void 0===o||o.meta.set("operation",e)}else if(ys(t.operationId)){var i,a;const r=null===(i=t.operationId)||void 0===i?void 0:i.toValue();if(e=_x((t=>_g(t)&&t.operationId.equals(r)),this.reference.value.result),Ya(e))throw new Error(`OperationElement(operationId=${r}) not found.`);null===(a=t.operationId)||void 0===a||a.meta.set("operation",e)}},async ExampleElement(t){var e;if(!ys(t.externalValue))return;if(!this.options.resolve.external&&ys(t.externalValue))return;if(t.hasKey("value")&&ys(t.externalValue))throw new Error("ExampleElement value and externalValue fields are mutually exclusive.");const r=await this.toReference(null===(e=t.externalValue)||void 0===e?void 0:e.toValue()),n=new r.value.result.constructor(r.value.result.content,r.value.result.meta.clone(),r.value.result.attributes.clone());n.setMetaProperty("ref-origin",r.uri),t.value=n},async SchemaElement(t,e,r,n,o){var i;const[a,s]=this.toAncestorLineage([...o,r]);if(!ys(t.$ref))return;if(a.some((e=>e.has(t))))return!1;let{reference:u}=this,{uri:c}=u;const l=Ax(c,t),p=U_(l),f=Q_({uri:p}),h=Pa((t=>t.canRead(f)),this.options.resolve.resolvers),d=!h,m=d&&c!==p;if(!this.options.resolve.external&&m)return;let y;this.indirections.push(t);try{if(h||d)y=kx(l,Tx(u.value.result));else{u=await this.toReference(W_(l));const t=Uu(l);y=Tx(Vu(t,u.value.result))}}catch(t){if(!(d&&t instanceof xx))throw t;if(Sx(Px(l))){u=await this.toReference(W_(l)),c=u.uri;const t=Px(l);y=jx(t,Tx(u.value.result))}else{u=await this.toReference(W_(l)),c=u.uri;const t=Uu(l);y=Tx(Vu(t,u.value.result))}}if(this.indirections.includes(y))throw new Error("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new mx(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);s.add(t);const v=ew({reference:u,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:a});if(y=await tw(y,v,{keyMap:v_,nodeTypeGetter:y_}),s.delete(t),this.indirections.pop(),kg(y)){var g;const e=y.clone();return e.setMetaProperty("ref-fields",{$ref:null===(g=t.$ref)||void 0===g?void 0:g.toValue()}),e.setMetaProperty("ref-origin",u.uri),e}const b=new wv([...y.content],y.meta.clone(),y.attributes.clone());return t.forEach(((t,e,r)=>{b.remove(e.toValue()),b.content.push(r)})),b.remove("$ref"),b.setMetaProperty("ref-fields",{$ref:null===(i=t.$ref)||void 0===i?void 0:i.toValue()}),b.setMetaProperty("ref-origin",u.uri),b}}}),rw=ew,nw=fu[Symbol.for("nodejs.util.promisify.custom")],ow=Ys(Xx,{init(){this.name="openapi-3-1"},methods:{canDereference(t){var e;return"text/plain"!==t.mediaType?P_.includes(t.mediaType):bg(null===(e=t.parseResult)||void 0===e?void 0:e.result)},async dereference(t,e){const r=$s(g_),n=Ui(K_(),e.dereference.refSet);let o;n.has(t.uri)?o=n.find(Ma(t.uri,"uri")):(o=Z_({uri:t.uri,value:t.parseResult}),n.add(o));const i=rw({reference:o,namespace:r,options:e}),a=await nw(n.rootRef.value,i,{keyMap:v_,nodeTypeGetter:y_});return null===e.dereference.refSet&&n.clean(),a}}}),iw=ow,aw=t=>{const e=(t=>t.slice(2))(t);return e.reduce(((t,r,n)=>{if(ws(r)){const e=String(r.key.toValue());t.push(e)}else if(xs(e[n-2])){const o=e[n-2].content.indexOf(r);t.push(o)}return t}),[])},sw=t=>{if(null==t.cause)return t;let{cause:e}=t;for(;null!=e.cause;)e=e.cause;return e},uw=on("SchemaRefError",(function(t,e,r){this.originalError=r,Object.assign(this,e||{})})),{wrapError:cw}=xn,lw=fu[Symbol.for("nodejs.util.promisify.custom")],pw=rw.compose({props:{useCircularStructures:!0,allowMetaPatches:!1,basePath:null},init(t){let{allowMetaPatches:e=this.allowMetaPatches,useCircularStructures:r=this.useCircularStructures,basePath:n=this.basePath}=t;this.allowMetaPatches=e,this.useCircularStructures=r,this.basePath=n},methods:{async ReferenceElement(t,e,r,n,o){try{const[e,n]=this.toAncestorLineage([...o,r]);if(Ms(["cycle"],t.$ref))return!1;if(e.some((e=>e.has(t))))return!1;if(!this.options.resolve.external&&Pg(t))return!1;const i=await this.toReference(t.$ref.toValue()),a=i.uri,s=$_(a,t.$ref.toValue());this.indirections.push(t);const u=Uu(s);let c=Vu(u,i.value.result);if(Cs(c)){const e=t.meta.get("referenced-element").toValue();if(Dp(c))c=vv.refract(c),c.setMetaProperty("referenced-element",e);else{const t=this.namespace.getElementClass(e);c=t.refract(c)}}if(this.indirections.includes(c))throw new Error("Recursive JSON Pointer detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new mx(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures&&e.some((t=>t.has(c)))){if(F_(a)||N_(a)){const e=new vv({$ref:s},t.meta.clone(),t.attributes.clone());return e.get("$ref").classes.push("cycle"),e}return!1}n.add(t);const l=pw({reference:i,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:e,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...aw([...o,r,t]),"$ref"]});c=await lw(c,l,{keyMap:v_,nodeTypeGetter:y_}),n.delete(t),this.indirections.pop(),c=c.clone(),c.setMetaProperty("ref-fields",{$ref:t.$ref?.toValue(),description:t.description?.toValue(),summary:t.summary?.toValue()}),c.setMetaProperty("ref-origin",i.uri);const p=void 0!==t.description,f=void 0!==t.summary;if(p&&"description"in c&&(c.description=t.description),f&&"summary"in c&&(c.summary=t.summary),this.allowMetaPatches&&_s(c)){const t=c;if(void 0===t.get("$$ref")){const e=$_(a,s);t.set("$$ref",e)}}return c}catch(e){const n=sw(e),i=cw(n,{baseDoc:this.reference.uri,$ref:t.$ref.toValue(),pointer:Uu(t.$ref.toValue()),fullPath:this.basePath??[...aw([...o,r,t]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.pu
1sh?.(i)}},async PathItemElement(t,e,r,n,o){try{const[e,n]=this.toAncestorLineage([...o,r]);if(!ys(t.$ref))return;if(Ms(["cycle"],t.$ref))return!1;if(e.some((e=>e.has(t))))return!1;if(!this.options.resolve.external&&Og(t))return;const i=await this.toReference(t.$ref.toValue()),a=i.uri,s=$_(a,t.$ref.toValue());this.indirections.push(t);const u=Uu(s);let c=Vu(u,i.value.result);if(Cs(c)&&(c=dv.refract(c)),this.indirections.includes(c))throw new Error("Recursive JSON Pointer detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new mx(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures&&e.some((t=>t.has(c)))){if(F_(a)||N_(a)){const e=new dv({$ref:s},t.meta.clone(),t.attributes.clone());return e.get("$ref").classes.push("cycle"),e}return!1}n.add(t);const l=pw({reference:i,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:e,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...aw([...o,r,t]),"$ref"]});c=await lw(c,l,{keyMap:v_,nodeTypeGetter:y_}),n.delete(t),this.indirections.pop();const p=new dv([...c.content],c.meta.clone(),c.attributes.clone());if(t.forEach(((t,e,r)=>{p.remove(e.toValue()),p.content.push(r)})),p.remove("$ref"),p.setMetaProperty("ref-fields",{$ref:t.$ref?.toValue()}),p.setMetaProperty("ref-origin",i.uri),this.allowMetaPatches&&void 0===p.get("$$ref")){const t=$_(a,s);p.set("$$ref",t)}return p}catch(e){const n=sw(e),i=cw(n,{baseDoc:this.reference.uri,$ref:t.$ref.toValue(),pointer:Uu(t.$ref.toValue()),fullPath:this.basePath??[...aw([...o,r,t]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}},async SchemaElement(t,e,r,n,o){try{const[e,n]=this.toAncestorLineage([...o,r]);if(!ys(t.$ref))return;if(Ms(["cycle"],t.$ref))return!1;if(e.some((e=>e.has(t))))return!1;let{reference:i}=this,{uri:a}=i;const s=Ax(a,t),u=U_(s),c=Q_({uri:u}),l=!this.options.resolve.resolvers.some((t=>t.canRead(c))),p=!l,f=p&&a!==u;if(!this.options.resolve.external&&f)return;let h;this.indirections.push(t);try{if(l||p)h=kx(s,Tx(i.value.result));else{i=await this.toReference(W_(s)),a=i.uri;const t=Uu(s);h=Tx(Vu(t,i.value.result))}}catch(t){if(!(p&&t instanceof xx))throw t;if(Sx(Px(s))){i=await this.toReference(W_(s)),a=i.uri;const t=Px(s);h=jx(t,Tx(i.value.result))}else{i=await this.toReference(W_(s)),a=i.uri;const t=Uu(s);h=Tx(Vu(t,i.value.result))}}if(this.indirections.includes(h))throw new Error("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new mx(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures&&e.some((t=>t.has(h)))){if(F_(a)||N_(a)){const e=$_(a,s),r=new wv({$ref:e},t.meta.clone(),t.attributes.clone());return r.get("$ref").classes.push("cycle"),r}return!1}n.add(t);const d=pw({reference:i,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:e,basePath:this.basePath??[...aw([...o,r,t]),"$ref"]});if(h=await lw(h,d,{keyMap:v_,nodeTypeGetter:y_}),n.delete(t),this.indirections.pop(),kg(h)){const e=h.clone();return e.setMetaProperty("ref-fields",{$ref:t.$ref?.toValue()}),e.setMetaProperty("ref-origin",a),e}const m=new wv([...h.content],h.meta.clone(),h.attributes.clone());if(t.forEach(((t,e,r)=>{m.remove(e.toValue()),m.content.push(r)})),m.remove("$ref"),m.setMetaProperty("ref-fields",{$ref:t.$ref?.toValue()}),m.setMetaProperty("ref-origin",a),this.allowMetaPatches&&void 0===m.get("$$ref")){const t=$_(a,s);m.set("$$ref",t)}return m}catch(e){const n=sw(e),i=new uw(`Could not resolve reference: ${n.message}`,{baseDoc:this.reference.uri,$ref:t.$ref.toValue(),fullPath:this.basePath??[...aw([...o,r,t]),"$ref"]},n);return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}},async LinkElement(){},async ExampleElement(t,e,r,n,o){try{return await rw.compose.methods.ExampleElement.call(this,t,e,r,n,o)}catch(e){const n=sw(e),i=cw(n,{baseDoc:this.reference.uri,externalValue:t.externalValue?.toValue(),fullPath:this.basePath??[...aw([...o,r,t]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.pu
1sh?.(i)}}}}),fw=pw,hw=iw.compose.bind(),dw=hw({init(t){let{parameterMacro:e,options:r}=t;this.parameterMacro=e,this.options=r},props:{parameterMacro:null,options:null,macroOperation:null,OperationElement:{enter(t){this.macroOperation=t},leave(){this.macroOperation=null}},ParameterElement:{leave(t,e,r,n,o){const i=null===this.macroOperation?null:Cu(this.macroOperation),a=Cu(t);try{const e=this.parameterMacro(i,a);t.set("default",e)}catch(t){const e=new Error(t,{cause:t});e.fullPath=aw([...o,r]),this.options.dereference.dereferenceOpts?.errors?.push?.(e)}}}}}),mw=hw({init(t){let{modelPropertyMacro:e,options:r}=t;this.modelPropertyMacro=e,this.options=r},props:{modelPropertyMacro:null,options:null,SchemaElement:{leave(t,e,r,n,o){void 0!==t.properties&&_s(t.properties)&&t.properties.forEach((e=>{if(_s(e))try{const t=this.modelPropertyMacro(Cu(e));e.set("default",t)}catch(e){const n=new Error(e,{cause:e});n.fullPath=[...aw([...o,r,t]),"properties"],this.options.dereference.dereferenceOpts?.errors?.push?.(n)}}))}}}});function yw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function vw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yw(Object(r),!0).forEach((function(e){E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}const gw=t=>{const e=t.meta.clone(),r=t.attributes.clone();return new t.constructor(void 0,e,r)},bw=t=>new ro.c6(t.key,t.value,t.meta.clone(),t.attributes.clone()),_w=(t,e)=>e.clone&&e.isMergeableElement(t)?Ow(gw(t),t,e):t,xw=(t,e,r)=>t.concat(e)["fantasy-land/map"]((t=>_w(t,r))),ww=(t,e,r)=>{const n=_s(t)?gw(t):gw(e);return _s(t)&&t.forEach(((t,e,o)=>{const i=bw(o);i.value=_w(t,r),n.content.push(i)})),e.forEach(((e,o,i)=>{const a=o.toValue();let s;if(_s(t)&&t.hasKey(a)&&r.isMergeableElement(e)){const n=t.get(a);s=bw(i),s.value=((t,e)=>{if("function"!=typeof e.customMerge)return Ow;const r=e.customMerge(t,e);return"function"==typeof r?r:Ow})(o,r)(n,e)}else s=bw(i),s.value=_w(e,r);n.remove(a),n.content.push(s)})),n};function Ow(t,e,r){var n,o,i;const a={clone:!0,isMergeableElement:t=>_s(t)||xs(t),arrayElementMerge:xw,objectElementMerge:ww,customMerge:void 0},s=vw(vw({},a),r);s.isMergeableElement=null!==(n=s.isMergeableElement)&&void 0!==n?n:a.isMergeableElement,s.arrayElementMerge=null!==(o=s.arrayElementMerge)&&void 0!==o?o:a.arrayElementMerge,s.objectElementMerge=null!==(i=s.objectElementMerge)&&void 0!==i?i:a.objectElementMerge;const u=xs(e);return u===xs(t)?u&&"function"==typeof s.arrayElementMerge?s.arrayElementMerge(t,e,s):s.objectElementMerge(t,e,s):_w(e,s)}Ow.all=(t,e)=>{if(!Array.isArray(t))throw new Error("first argument should be an array");return 0===t.length?new ro.Sb:t.reduce(((t,r)=>Ow(t,r,e)),gw(t[0]))};const Ew=hw({init(t){let{options:e}=t;this.options=e},props:{options:null,SchemaElement:{leave(t,e,r,n,o){if(void 0===t.allOf)return;if(!xs(t.allOf)){const e=new TypeError("allOf must be an array");return e.fullPath=[...aw([...o,r,t]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(e)}if(t.allOf.isEmpty)return new wv(t.content.filter((t=>"allOf"!==t.key.toValue())),t.meta.clone(),t.attributes.clone());if(!t.allOf.content.every(Tg)){const e=new TypeError("Elements in allOf must be objects");return e.fullPath=[...aw([...o,r,t]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(e)}const i=Ow.all([...t.allOf.content,t]);return t.hasKey("$$ref")||i.remove("$$ref"),t.hasKey("example")&&(i.getMember("example").value=t.get("example")),t.hasKey("examples")&&(i.getMember("examples").value=t.get("examples")),i.remove("allOf"),i}}}}),Sw=fu[Symbol.for("nodejs.util.promisify.custom")],Pw=iw.compose({props:{useCircularStructures:!0,allowMetaPatches:!1,parameterMacro:null,modelPropertyMacro:null,mode:"non-strict",ancestors:null},init(){let{useCircularStructures:t=this.useCircularStructures,allowMetaPatches:e=this.allowMetaPatches,parameterMacro:r=this.parameterMacro,modelPropertyMacro:n=this.modelPropertyMacro,mode:o=this.mode,ancestors:i=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.name="openapi-3-1-swagger-client",this.useCircularStructures=t,this.allowMetaPatches=e,this.parameterMacro=r,this.modelPropertyMacro=n,this.mode=o,this.ancestors=[...i]},methods:{async dereference(t,e){const r=[],n=$s(g_),o=e.dereference.refSet??K_();let i;o.has(t.uri)?i=o.find((e=>e.uri===t.uri)):(i=Z_({uri:t.uri,value:t.parseResult}),o.add(i));const a=fw({reference:i,namespace:n,options:e,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors});if(r.push(a),"function"==typeof this.parameterMacro){const t=dw({parameterMacro:this.parameterMacro,options:e});
1r.push(t)}if("function"==typeof this.modelPropertyMacro){const t=mw({modelPropertyMacro:this.modelPropertyMacro,options:e});r.push(t)}if("strict"!==this.mode){const t=Ew({options:e});r.push(t)}const s=ru(r,{nodeTypeGetter:y_}),u=await Sw(o.rootRef.value,s,{keyMap:v_,nodeTypeGetter:y_});return null===e.dereference.refSet&&o.clean(),u}}}),jw=Pw,Aw={name:"openapi-3-1-apidom",match(t){let{spec:e}=t;return Zn(e)},normalize(t){let{spec:e}=t;return(r=$x,t=>{if(t?.$$normalized)return t;const e=pv.refract(t),n=r(e);return Cu(n)})(e);var r},resolve:async t=>(async t=>{const{spec:e,timeout:r,redirects:n,requestInterceptor:o,responseInterceptor:i,pathDiscriminator:a=[],allowMetaPatches:s=!1,useCircularStructures:u=!1,skipNormalization:c=!1,parameterMacro:l=null,modelPropertyMacro:p=null,mode:f="non-strict"}=t;try{const d=F_(q_())?q_():"https://smartbear.com/",m=sr(t),y=$_(d,m),v=pv.refract(e);v.classes.push("result");const g=new Ja([v]),b=0===(h=a).length?"":`/${h.map(Fu).join("/")}`,_=""===b?"":`#${b}`,x=Vu(b,v),w=Z_({uri:y,value:g}),O=K_({refs:[w]});""!==b&&(O.rootRef=null);const E=[new WeakSet([x])],S=[],P=((t,e,r)=>bu({element:r}).transclude(t,e))(x,await(async(t,e={})=>(async(t,e)=>{let r=t,n=!1;if(!js(t)){const e=new t.constructor(t.content,t.meta.clone(),t.attributes);e.classes.push("result"),r=new Ja([e]),n=!0}const o=Q_({uri:e.resolve.baseURI,parseResult:r,mediaType:e.parse.mediaType}),i=await nx("canDereference",o,e.dereference.strategies);if(ya(i))throw new ax(o.uri);try{const{result:t}=await ox("dereference",[o,e],i);return n?t.get(0):t}catch(t){throw new sx(`Error while dereferencing file "${o.uri}"`,{cause:t})}})(t,((t,e)=>{const r=Sa(t,e);return Aa(X_,J_,r)}
1)(Y_,e)))(x,{resolve:{baseURI:`${y}${_}`,resolvers:[Wx({timeout:r||1e4,redirects:n||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:o,responseInterceptor:i}},strategies:[Fx()]},parse:{mediaType:P_.latest(),parsers:[Kx({allowEmpty:!1,sourceMap:!1}),Yx({allowEmpty:!1,sourceMap:!1}),Zx({allowEmpty:!1,sourceMap:!1}),Hx({allowEmpty:!1,sourceMap:!1}),lx({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[jw({allowMetaPatches:s,useCircularStructures:u,parameterMacro:l,modelPropertyMacro:p,mode:f,ancestors:E})],refSet:O,dereferenceOpts:{errors:S}}}),v),j=c?P:$x(P);return{spec:Cu(j),errors:S}}catch(t){if(t instanceof zu||t instanceof Nu)return{spec:null,errors:[]};throw t}var h})(t)};function Cw(t,e,r){if(!t||"object"!=typeof t||!t.paths||"object"!=typeof t.paths)return null;const{paths:n}=t;for(const o in n)for(const i in n[o]){if("PARAMETERS"===i.toUpperCase())continue;const a=n[o][i];if(!a||"object"!=typeof a)continue;const s={spec:t,pathName:o,method:i.toUpperCase(),operation:a},u=e(s);if(r&&u)return s}}const Tw=()=>null,kw=function(t){let{spec:e,cb:r=Tw,defaultTag:n="default",v2OperationIdCompatibilityMode:o}=t;const i={},a={};return Cw(e,(t=>{let{pathName:s,method:u,operation:c}=t;var l;(c.tags?(l=c.tags,Array.isArray(l)?l:[l]):[n]).forEach((t=>{if("string"!=typeof t)return;a[t]=a[t]||{};const n=a[t],l=Un(c,s,u,{v2OperationIdCompatibilityMode:o}),p=r({spec:e,pathName:s,method:u,operation:c,operationId:l});if(i[l])i[l]+=1,n[`${l}${i[l]}`]=p;else if(void 0!==n[l]){const t=i[l]||1;i[l]=t+1,n[`${l}${i[l]}`]=p;const e=n[l];delete n[l],n[`${l}${t}`]=e}else n[l]=p}))})),a},Mw=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e=>{let{pathName:r,method:n,operationId:o}=e;return function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{requestInterceptor:a,responseInterceptor:s,userFetch:u}=t;return t.execute(P({spec:t.spec,requestInterceptor:a,responseInterceptor:s,userFetch:u,pathName:r,method:n,parameters:e,operationId:o},i))}}};var Iw=r(76489);function Dw(t){return"[object Object]"===Object.prototype.toString.call(t)}function Lw(t){var e,r;return!1!==Dw(t)&&(void 0===(e=t.constructor)||!1!==Dw(r=e.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}const Rw={body:function(t){let{req:e,value:r}=t;e.body=r},header:function(t){let{req:e,parameter:r,value:n}=t;e.headers=e.headers||{},void 0!==n&&(e.headers[r.name]=n)},query:function(t){let{req:e,value:r,parameter:n}=t;if(e.query=e.query||{},!1===r&&"boolean"===n.type&&(r="false"),0===r&&["number","integer"].indexOf(n.type)>-1&&(r="0"),r)e.query[n.name]={collectionFormat:n.collectionFormat,value:r};else if(n.allowEmptyValue&&void 0!==r){const t=n.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}},path:function(t){let{req:e,value:r,parameter:n}=t;e.url=e.url.split(`{${n.name}}`).join(encodeURIComponent(r))},formData:function(t){let{req:e,value:r,parameter:n}=t;(r||n.allowEmptyValue)&&(e.form=e.form||{},e.form[n.name]={value:r,allowEmptyValue:n.allowEmptyValue,collectionFormat:n.collectionFormat})}};function zw(t,e){return e.includes("application/json")?"string"==typeof t?t:JSON.stringify(t):t.toString()}function Nw(t){let{req:e,value:r,parameter:n}=t;const{name:o,style:i,explode:a,content:s}=n;if(s){const t=Object.keys(s)[0];return void(e.url=e.url.split(`{${o}}`).join(qe(zw(r,t),{escape:!0})))}const u=$e({key:n.name,value:r,style:i||"simple",explode:a||!1,escape:!0});e.url=e.url.split(`{${o}}`).join(u)}function Fw(t){let{req:e,value:r,parameter:n}=t;if(e.query=e.query||{},n.content){const t=zw(r,Object.keys(n.content)[0]);if(t)e.query[n.name]=t;else if(n.allowEmptyValue&&void 0!==r){const t=n.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}}else if(!1===r&&(r="false"),0===r&&(r="0"),r){const{style:t,explode:o,allowReserved:i}=n;e.query[n.name]={value:r,serializationOption:{style:t,explode:o,allowReserved:i}}}else if(n.allowEmptyValue&&void 0!==r){const t=n.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}}const Bw=["accept","authorization","content-type"];function Vw(t){let{req:e,parameter:r,value:n}=t;if(e.headers=e.headers||{},!(Bw.indexOf(r.name.toLowerCase())>-1))if(r.content){const t=Object.keys(r.content)[0];e.headers[r.name]=zw(n,t)}else void 0!==n&&(e.headers[r.name]=$e({key:r.name,value:n,style:r.style||"simple",explode:void 0!==r.explode&&r.explode,escape:!1}))}function Uw(t){let{req:e,parameter:r,value:n}=t;e.headers=e.headers||{};const o=typeof n;if(r.content){const t=Object.keys(r.content)[0];e.headers.Cookie=`${r.name}=${zw(n,t)}`}else if("undefined"!==o){const t="object"===o&&!Array.isArray(n)&&r.explode?"":`${r.name}=`;e.headers.Cookie=t+$e({key:r.name,value:n,escape:!1,style:r.style||"form",explode:void 0!==r.explode&&r.explode})}}const qw="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{btoa:$w}=qw,Gw=$w;function Ww(t,e){return`${e.toLowerCase()}-${t}`}const Zw=["http","fetch","spec","operationId","pathName","method","parameters","securities"],Hw=t=>Array.isArray(t)?t:[],Kw=on("OperationNotFoundError",(function(t,e,r){this.originalError=r,Object.assign(this,e||{})})),Yw={buildRequest:Xw};function Xw(t){const{spec:e,operationId:r,responseContentType:n,scheme:o,requestInterceptor:i,responseInterceptor:a,contextUrl:s,userFetch:u,server:c,serverVariables:p,http:f,signal:h}=t;let{parameters:d,parameterBuilders:m}=t;const y=Hn(e);m||(m=y?l:Rw);let v={url:"",credentials:f&&f.withCredentials?"include":"same-origin",headers:{},cookies:{}};h&&(v.signal=h),i&&(v.requestInterceptor=i),a&&(v.responseInterceptor=a),u&&(v.userFetch=u);const g=function(t,e){return t&&t.paths?function(t,r){return Cw(t,(t=>{let{pathName:r,method:n,operation:o}=t;if(!o||"object"!=typeof o)return!1;const i=o.operationId;return[Un(o,r,n),Ww(r,n),i].some((t=>t&&t===e))}),!0)||null}(t):null}(e,r);if(!g)throw new Kw(`Operation ${r} not found`);const{operation:b={},method:_,pathName:x}=g;if(v.url+=Qw({spec:e,scheme:o,contextUrl:s,server:c,serverVariables:p,pathName:x,method:_}),!r)return delete v.cookies,v;v.url+=x,v.method=`${_}`.toUpperCase(),d=d||{};const w=e.paths[x]||{};n&&(v.headers.accept=n);const O=(t=>{const e={};t.forEach((t=>{e[t.in]||(e[t.in]={}),e[t.in][t.name]=t}));const r=[];return Object.keys(e).forEach((t=>
1{Object.keys(e[t]).forEach((n=>{r.push(e[t][n])}))})),r})([].concat(Hw(b.parameters)).concat(Hw(w.parameters)));O.forEach((t=>{const r=m[t.in];let n;if("body"===t.in&&t.schema&&t.schema.properties&&(n=d),n=t&&t.name&&d[t.name],void 0===n?n=t&&t.name&&d[`${t.in}.${t.name}`]:((t,e)=>e.filter((e=>e.name===t)))(t.name,O).length>1&&console.warn(`Parameter '${t.name}' is ambiguous because the defined spec has more than one parameter with the name: '${t.name}' and the passed-in parameter values did not define an 'in' value.`),null!==n){if(void 0!==t.default&&void 0===n&&(n=t.default),void 0===n&&t.required&&!t.allowEmptyValue)throw new Error(`Required parameter ${t.name} is not provided`);if(y&&t.schema&&"object"===t.schema.type&&"string"==typeof n)try{n=JSON.parse(n)}catch(t){throw new Error("Could not parse object parameter value string as JSON")}r&&r({req:v,parameter:t,value:n,operation:b,spec:e})}}));const E=P(P({},t),{},{operation:b});if(v=y?function(t,e){const{operation:r,requestBody:n,securities:o,spec:i,attachContentTypeForEmptyPayload:a}=t;let{requestContentType:s}=t;e=function(t){let{request:e,securities:r={},operation:n={},spec:o}=t;const i=P({},e),{authorized:a={}}=r,s=n.security||o.security||[],u=a&&!!Object.keys(a).length,c=to()(o,["components","securitySchemes"])||{};return i.headers=i.headers||{},i.query=i.query||{},Object.keys(r).length&&u&&s&&(!Array.isArray(n.security)||n.security.length)?(s.forEach((t=>{Object.keys(t).forEach((t=>{const e=a[t],r=c[t];if(!e)return;const n=e.value||e,{type:o}=r;if(e)if("apiKey"===o)"query"===r.in&&(i.query[r.name]=n),"header"===r.in&&(i.headers[r.name]=n),"cookie"===r.in&&(i.cookies[r.name]=n);else if("http"===o){if(/^basic$/i.test(r.scheme)){const t=n.username||"",e=n.password||"",r=Gw(`${t}:${e}`);i.headers.Authorization=`Basic ${r}`}/^bearer$/i.test(r.scheme)&&(i.headers.Authorization=`Bearer ${n}`)}else if("oauth2"===o||"openIdConnect"===o){const t=e.token||{},n=t[r["x-tokenName"]||"access_token"];let o=t.token_type;o&&"bearer"!==o.toLowerCase()||(o="Bearer"),i.headers.Authorization=`${o} ${n}`}}))})),i):e}({request:e,securities:o,operation:r,spec:i});const u=r.requestBody||{},c=Object.keys(u.content||{}),l=s&&c.indexOf(s)>-1;if(n||a){if(s&&l)e.headers["Content-Type"]=s;else if(!s){const t=c[0];t&&(e.headers["Content-Type"]=t,s=t)}}else s&&l&&(e.headers["Content-Type"]=s);if(!t.responseContentType&&r.responses){const t=Object.entries(r.responses).filter((t=>{let[e,r]=t;const n=parseInt(e,10);return n>=200&&n<300&&Lw(r.content)})).reduce(((t,e)=>{let[,r]=e;return t.concat(Object.keys(r.content))}),[]);t.length>0&&(e.headers.accept=t.join(", "))}if(n)if(s){if(c.indexOf(s)>-1)if("application/x-www-form-urlencoded"===s||"multipart/form-data"===s)if("object"==typeof n){const t=(u.content[s]||{}).encoding||{};e.form={},Object.keys(n).forEach((r=>{e.form[r]={value:n[r],encoding:t[r]||{}}}))}else e.form=n;else e.body=n}else e.body=n;return e}(E,v):function(t,e){const{spec:r,operation:n,securities:o,requestContentType:i,responseContentType:a,attachContentTypeForEmptyPayload:s}=t;if(e=function(t){let{request:e,securities:r={},operation:n={},spec:o}=t;const i=P({},e),{authorized:a={},specSecurity:s=[]}=r,u=n.security||s,c=a&&!!Object.keys(a).length,l=o.securityDefinitions;return i.headers=i.headers||{},i.query=i.query||{},Object.keys(r).length&&c&&u&&(!Array.isArray(n.security)||n.security.length)?(u.forEach((t=>{Object.keys(t).forEach((t=>{const e=a[t];if(!e)return;const{token:r}=e,n=e.value||e,o=l[t],{type:s}=o,u=o["x-tokenName"]||"access_token",c=r&&r[u];let p=r&&r.token_type;if(e)if("apiKey"===s){const t="query"===o.in?"query":"headers";i[t]=i[t]||{},i[t][o.name]=n}else if("basic"===s)if(n.header)i.headers.authorization=n.header;else{const t=n.username||"",e=n.password||"";n.base64=Gw(`${t}:${e}`),i.headers.authorization=`Basic ${n.base64}`}else"oauth2"===s&&c&&(p=p&&"bearer"!==p.toLowerCase()?p:"Bearer",i.headers.authorization=`${p} ${c}`)}))})),i):e}({request:e,securities:o,operation:n,spec:r}),e.body||e.form||s)i?e.headers["Content-Type"]=i:Array.isArray(n.consumes)?[e.headers["Content-Type"]]=n.consumes:Array.isArray(r.consumes)?[e.headers["Content-Type"]]=r.consumes:n.parameters&&n.parameters.filter((t=>"file"===t.type)).length?e.headers["Content-Type"]="multipart/form-data":n.parameters&&n.parameters.filter((t=>"formData"===t.in)).length&&(e.headers["Content-Type"]="application/x-www-form-urlencoded");else if(i){const t=n.parameters&&n.parameters.filter((t=>"body"===t.in)).length>0,r=n.parameters&&n.parameters.filter((t=>"formData"===t.in)).length>0;(t||r)&&(e.headers["Content-Type"]=i)}return!a&&Array.isArray(n.produces)&&n.produces.length>0&&(e.headers.accept=n.produces.join(", ")),e}(E,v),v.cookies&&Object.keys(v.cookies).length){const t=Object.keys(v.cookies).reduce(((t,e)=>{const r=v.cookies[e];return t+(t?"&":"")+Iw.serialize(e,r)}),"");v.headers.Cookie=t}return v.cookies&&delete v.cookies,or(v),v}const Jw=t=>t?t.replace(/\W/g,""):null;function Qw(t){return Hn(t.spec)?function(t){let{spec:e,pathName:r,method:n,server:o,contextUrl:i,serverVariables:a={}}
1=t;const s=to()(e,["paths",r,(n||"").toLowerCase(),"servers"])||to()(e,["paths",r,"servers"])||to()(e,["servers"]);let u="",c=null;if(o&&s&&s.length){const t=s.map((t=>t.url));t.indexOf(o)>-1&&(u=o,c=s[t.indexOf(o)])}if(!u&&s&&s.length&&(u=s[0].url,[c]=s),u.indexOf("{")>-1){const t=function(t){const e=[],r=/{([^}]+)}/g;let n;for(;n=r.exec(t);)e.push(n[1]);return e}(u);t.forEach((t=>{if(c.variables&&c.variables[t]){const e=c.variables[t],r=a[t]||e.default,n=new RegExp(`{${t}}`,"g");u=u.replace(n,r)}}))}return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r=t&&e?j.parse(j.resolve(e,t)):j.parse(t),n=j.parse(e),o=Jw(r.protocol)||Jw(n.protocol)||"",i=r.host||n.host,a=r.pathname||"";let s;return s=o&&i?`${o}://${i+a}`:a,"/"===s[s.length-1]?s.slice(0,-1):s}(u,i)}(t):function(t){let{spec:e,scheme:r,contextUrl:n=""}=t;const o=j.parse(n),i=Array.isArray(e.schemes)?e.schemes[0]:null,a=r||i||Jw(o.protocol)||"http",s=e.host||o.host||"",u=e.basePath||"";let c;return c=a&&s?`${a}://${s+u}`:u,"/"===c[c.length-1]?c.slice(0,-1):c}(t)}function tO(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof t?e.url=t:e=t,!(this instanceof tO))return new tO(e);Object.assign(this,e);const r=this.resolve().then((()=>(this.disableInterfaces||Object.assign(this,tO.makeApisTagOperation(this)),this)));return r.client=this,r}tO.http=Ze,tO.makeHttp=function(t,e,r){return r=r||(t=>t),e=e||(t=>t),n=>("string"==typeof n&&(n={url:n}),We.mergeInQueryOrForm(n),n=e(n),r(t(n)))}.bind(null,tO.http),tO.resolveStrategies={"openapi-3-1-apidom":Aw,"openapi-3-0":Yn,"openapi-2-0":Kn,generic:Gn},tO.resolve=Xn({strategies:[tO.resolveStrategies["openapi-3-1-apidom"],tO.resolveStrategies["openapi-3-0"],tO.resolveStrategies["openapi-2-0"],tO.resolveStrategies.generic]}),tO.resolveSubtree=eo({strategies:[tO.resolveStrategies["openapi-3-1-apidom"],tO.resolveStrategies["openapi-3-0"],tO.resolveStrategies["openapi-2-0"],tO.resolveStrategies.generic]}),tO.execute=function(t){let{http:e,fetch:r,spec:n,operationId:o,pathName:i,method:a,parameters:s,securities:u}=t,c=Ks(t,Zw);const l=e||r||Ze;i&&a&&!o&&(o=Ww(i,a));const p=Yw.buildRequest(P({spec:n,operationId:o,parameters:s,securities:u,http:l},c));return p.body&&(Lw(p.body)||Array.isArray(p.body))&&(p.body=JSON.stringify(p.body)),l(p)},tO.serializeRes=Ke,tO.serializeHeaders=Ye,tO.clearCache=function(){Bn.refs.clearCache()},tO.makeApisTagOperation=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=Mw(t);return{apis:kw({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:e})}},tO.buildRequest=Xw,tO.helpers={opId:Un},tO.getBaseUrl=Qw,tO.apidom={resolve:{resolvers:{HttpResolverSwaggerClient:Wx}},parse:{parsers:{JsonParser:Zx,YamlParser:Hx,OpenApiJson3_1Parser:Kx,OpenApiYaml3_1Parser:Yx}},dereference:{strategies:{OpenApi3_1SwaggerClientDereferenceStrategy:jw}}},tO.prototype={http:Ze,execute(t){return this.applyDefaults(),tO.execute(P({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:"string"==typeof this.url?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},t))},resolve(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return tO.resolve(P({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,skipNormalization:this.skipNormalization||!1},t)).then((t=>(this.originalSpec=this.spec,this.spec=t.spec,this.errors=t.errors,this)))}},tO.prototype.applyDefaults=function(){const{spec:t}=this,e=this.url;if(e&&e.startsWith("http")){const r=j.parse(e);t.host||(t.host=r.host),t.schemes||(t.schemes=[r.protocol.replace(":","")]),t.basePath||(t.basePath="/")}};const{helpers:eO}=tO,rO=tO},13692:t=>{"use strict";function e(t){return Object.prototype.toString.call(t)}var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function n(t,e){if(t.forEach)return t.forEach(e);for(var r=0;r<t.length;r++)e(t[r],r,t)}var o=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e},i=Object.prototype.hasOwnProperty||function(t,e){return e in t};function a(t){if("object"==typeof t&&null!==t){var i;if(r(t))i=[];else if("[object Date]"===e(t))i=new Date(t.getTime?t.getTime():t);else if("[object RegExp]"===e(t))i=new RegExp(t);else if(function(t){return"[object Error]"===e(t)}(t))i={message:t.message};else if(function(t){return"[object Boolean]"===e(t)}(t)||function(t){return"[object Number]"===e(t)}(t)||function(t){return"[object String]"===e(t)}(t))i=Object(t);else if(Object.create&&Object.getPrototypeOf)i=Object.create(Object.getPrototypeOf(t));else if(t.constructor===Object)i={};else{var a=t.constructor&&t.constructor.prototype||t.__proto__||{},s=function(){};s.prototype=a,i=new s}return n(o(t),(function(e){i[e]=t[e]})),i}return t}function s(t,e,s){var u=[],c=[],l=!0;return function t(p){var f=s?a(p):p,h={},d=!0,m={node:f,node_:p,path:[].concat(u),parent:c[c.length-1],parents:c,key:u[u.length-1],isRoot:0===u.length,level:u.length,circular:null,update:function(t,e){m.isRoot||(m.parent.node[m.key]=t),m.node=t,e&&(d=!1)},delete:function(t){delete m.parent.node[m.key],t&&(d=!1)},remove:function(t){r(m.parent.node)?m.parent.node.splice(m.key,1):delete m.parent.node[m.key],t&&(d=!1)},keys:null,before:function(t){h.before=t},after:function(t){h.after=t},pre:function(t){h.pre=t},post:function(t){h.post=t},stop:function(){l=!1},block:function(){d=!1}};if(!l)return m;function y(){if("object"==typeof m.node&&null!==m.node){m.keys&&m.node_===m.node||(m.keys=o(m.node)),m.isLeaf=0===m.keys.length;for(var t=0;t<c.length;t++)if(c[t].node_===p){m.circular=c[t];break}}
1else m.isLeaf=!0,m.keys=null;m.notLeaf=!m.isLeaf,m.notRoot=!m.isRoot}y();var v=e.call(m,m.node);return void 0!==v&&m.update&&m.update(v),h.before&&h.before.call(m,m.node),d?("object"!=typeof m.node||null===m.node||m.circular||(c.push(m),y(),n(m.keys,(function(e,r){u.push(e),h.pre&&h.pre.call(m,m.node[e],e);var n=t(m.node[e]);s&&i.call(m.node,e)&&(m.node[e]=n.node),n.isLast=r===m.keys.length-1,n.isFirst=0===r,h.post&&h.post.call(m,n),u.pop()})),c.pop()),h.after&&h.after.call(m,m.node),m):m}(t).node}function u(t){this.value=t}function c(t){return new u(t)}u.prototype.get=function(t){for(var e=this.value,r=0;r<t.length;r++){var n=t[r];if(!e||!i.call(e,n))return;e=e[n]}return e},u.prototype.has=function(t){for(var e=this.value,r=0;r<t.length;r++){var n=t[r];if(!e||!i.call(e,n))return!1;e=e[n]}return!0},u.prototype.set=function(t,e){for(var r=this.value,n=0;n<t.length-1;n++){var o=t[n];i.call(r,o)||(r[o]={}),r=r[o]}return r[t[n]]=e,e},u.prototype.map=function(t){return s(this.value,t,!0)},u.prototype.forEach=function(t){return this.value=s(this.value,t,!1),this.value},u.prototype.reduce=function(t,e){var r=1===arguments.length,n=r?this.value:e;return this.forEach((function(e){this.isRoot&&r||(n=t.call(this,n,e))})),n},u.prototype.paths=function(){var t=[];return this.forEach((function(){t.push(this.path)})),t},u.prototype.nodes=function(){var t=[];return this.forEach((function(){t.push(this.node)})),t},u.prototype.clone=function(){var t=[],e=[];return function r(i){for(var s=0;s<t.length;s++)if(t[s]===i)return e[s];if("object"==typeof i&&null!==i){var u=a(i);return t.push(i),e.push(u),n(o(i),(function(t){u[t]=r(i[t])})),t.pop(),e.pop(),u}return i}(this.value)},n(o(u.prototype),(function(t){c[t]=function(e){var r=[].slice.call(arguments,1),n=new u(e);return n[t].apply(n,r)}})),t.exports=c},52511:function(t,e,r){var n;t=r.nmd(t),function(o){e&&e.nodeType,t&&t.nodeType;var i="object"==typeof r.g&&r.g;i.global!==i&&i.window!==i&&i.self;var a,s=2147483647,u=36,c=/^xn--/,l=/[^\x20-\x7E]/,p=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,d=String.fromCharCode;function m(t){throw RangeError(f[t])}function y(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function v(t,e){var r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),n+y((t=t.replace(p,".")).split("."),e).join(".")}function g(t){for(var e,r,n=[],o=0,i=t.length;o<i;)(e=t.charCodeAt(o++))>=55296&&e<=56319&&o<i?56320==(64512&(r=t.charCodeAt(o++)))?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),o--):n.push(e);return n}function b(t){return y(t,(function(t){var e="";return t>65535&&(e+=d((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+d(t)})).join("")}function _(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function x(t,e,r){var n=0;for(t=r?h(t/700):t>>1,t+=h(t/e);t>455;n+=u)t=h(t/35);return h(n+36*t/(t+38))}function w(t){var e,r,n,o,i,a,c,l,p,f,d,y=[],v=t.length,g=0,_=128,w=72;for((r=t.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)t.charCodeAt(n)>=128&&m("not-basic"),y.push(t.charCodeAt(n));for(o=r>0?r+1:0;o<v;){for(i=g,a=1,c=u;o>=v&&m("invalid-input"),((l=(d=t.charCodeAt(o++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:u)>=u||l>h((s-g)/a))&&m("overflow"),g+=l*a,!(l<(p=c<=w?1:c>=w+26?26:c-w));c+=u)a>h(s/(f=u-p))&&m("overflow"),a*=f;w=x(g-i,e=y.length+1,0==i),h(g/e)>s-_&&m("overflow"),_+=h(g/e),g%=e,y.splice(g++,0,_)}return b(y)}function O(t){var e,r,n,o,i,a,c,l,p,f,y,v,b,w,O,E=[];for(v=(t=g(t)).length,e=128,r=0,i=72,a=0;a<v;++a)(y=t[a])<128&&E.push(d(y));for(n=o=E.length,o&&E.push("-");n<v;){for(c=s,a=0;a<v;++a)(y=t[a])>=e&&y<c&&(c=y);for(c-e>h((s-r)/(b=n+1))&&m("overflow"),r+=(c-e)*b,e=c,a=0;a<v;++a)if((y=t[a])<e&&++r>s&&m("overflow"),y==e){for(l=r,p=u;!(l<(f=p<=i?1:p>=i+26?26:p-i));p+=u)O=l-f,w=u-f,E.push(d(_(f+O%w,0))),l=h(O/w);E.push(d(_(l,0))),i=x(r,b,n==o),r=0,++n}++r,++e}return E.join("")}a={version:"1.3.2",ucs2:{decode:g,encode:b},decode:w,encode:O,toASCII:function(t){return v(t,(function(t){return l.test(t)?"xn--"+O(t):t}))},toUnicode:function(t){return v(t,(function(t){return c.test(t)?w(t.slice(4).toLowerCase()):t}))}},void 0===(n=function(){return a}.call(e,r,e,t))||(t.exports=n)}()},8575:(t,e,r)=>{"use strict";var n=r(52511),o=r(62502);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=b,e.resolve=function(t,e){return b(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?b(t,!1,!0).resolveObject(e):e},e.format=function(t){return o.isString(t)&&(t=b(t)),t instanceof i?t.format():i.prototype.format.call(t)},e.Url=i;
vendor: 6,984 bytes, line 1
1var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),p=["%","/","?",";","#"].concat(l),f=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=r(17673);function b(t,e,r){if(t&&o.isObject(t)&&t instanceof i)return t;var n=new i;return n.parse(t,e,r),n}i.prototype.parse=function(t,e,r){if(!o.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var i=t.indexOf("?"),s=-1!==i&&i<t.indexOf("#")?"?":"#",c=t.split(s);c[0]=c[0].replace(/\\/g,"/");var b=t=c.join(s);if(b=b.trim(),!r&&1===t.split("#").length){var _=u.exec(b);if(_)return this.path=b,this.href=b,this.pathname=_[1],_[2]?(this.search=_[2],this.query=e?g.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var x=a.exec(b);if(x){var w=(x=x[0]).toLowerCase();this.protocol=w,b=b.substr(x.length)}if(r||x||b.match(/^\/\/[^@\/]+@[^@\/]+/)){var O="//"===b.substr(0,2);!O||x&&y[x]||(b=b.substr(2),this.slashes=!0)}if(!y[x]&&(O||x&&!v[x])){for(var E,S,P=-1,j=0;j<f.length;j++)-1!==(A=b.indexOf(f[j]))&&(-1===P||A<P)&&(P=A);for(-1!==(S=-1===P?b.lastIndexOf("@"):b.lastIndexOf("@",P))&&(E=b.slice(0,S),b=b.slice(S+1),this.auth=decodeURIComponent(E)),P=-1,j=0;j<p.length;j++){var A;-1!==(A=b.indexOf(p[j]))&&(-1===P||A<P)&&(P=A)}-1===P&&(P=b.length),this.host=b.slice(0,P),b=b.slice(P),this.parseHost(),this.hostname=this.hostname||"";var C="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!C)for(var T=this.hostname.split(/\./),k=(j=0,T.length);j<k;j++){var M=T[j];if(M&&!M.match(h)){for(var I="",D=0,L=M.length;D<L;D++)M.charCodeAt(D)>127?I+="x":I+=M[D];if(!I.match(h)){var R=T.slice(0,j),z=T.slice(j+1),N=M.match(d);N&&(R.push(N[1]),z.unshift(N[2])),z.length&&(b="/"+z.join(".")+b),this.hostname=R.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),C||(this.hostname=n.toASCII(this.hostname));var F=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+F,this.href+=this.host,C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[w])for(j=0,k=l.length;j<k;j++){var V=l[j];if(-1!==b.indexOf(V)){var U=encodeURIComponent(V);U===V&&(U=escape(V)),b=b.split(V).join(U)}}var q=b.indexOf("#");-1!==q&&(this.hash=b.substr(q),b=b.slice(0,q));var $=b.indexOf("?");if(-1!==$?(this.search=b.substr($),this.query=b.substr($+1),e&&(this.query=g.parse(this.query)),b=b.slice(0,$)):e&&(this.search="",this.query={}),b&&(this.pathname=b),v[w]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){F=this.pathname||"";var G=this.search||"";this.path=F+G}return this.href=this.format(),this},i.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,a="";this.host?i=t+this.host:this.hostname&&(i=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(a=g.stringify(this.query));var s=this.search||a&&"?"+a||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||v[e])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),e+i+(r=r.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})))+(s=s.replace("#","%23"))+n},i.prototype.resolve=function(t){return this.resolveObject(b(t,!1,!0)).format()},i.prototype.resolveObject=function(t){if(o.isString(t)){var e=new i;e.parse(t,!1,!0),t=e}for(var r=new i,n=Object.keys(this),a=0;a<n.length;a++){var s=n[a];r[s]=this[s]}if(r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var u=Object.keys(t),c=0;c<u.length;c++){var l=u[c];"protocol"!==l&&(r[l]=t[l])}return v[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!v[t.protocol]){for(var p=Object.keys(t),f=0;f<p.length;f++){var h=p[f];r[h]=t[h]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||y[t.protocol])r.pathname=t.pathname;else{for(var d=(t.pathname||"").split("/");d.length&&!(t.host=d.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),r.pathname=d.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var m=r.pathname||"",g=r.search||"";r.path=m+g}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var b=r.pathname&&"/"===r.pathname.charAt(0),_=t.host||t.pathname&&"/"===t.pathname.charAt(0),x=_||b||r.host&&t.pathname,w=x,O=r.pathname&&r.pathname.split("/")||[],E=(d=t.pathname&&t.pathname.split("/")||[],r.protocol&&!v[r.protocol]);if(E&&(r.hostname="",r.port=null,r.host&&(""===O[0]?O[0]=r.host:O.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===d[0]?d[0]=t.host:d.unshift(t.host)),t.host=null),x=x&&(""===d[0]||""===O[0])),_)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,O=d;else if(d.length)O||(O=[]),O.pop(),O=O.concat(d),r.search=t.search,r.query=t.query;else if(!o.isNullOrUndefined(t.search))return E&&(r.hostname=r.host=O.shift(),(C=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=C.shift(),r.host=r.hostname=C.shift())),r.search=t.search,r.query=t.query,o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!O.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var S=O.slice(-1)[0],P=(r.host||t.host||O.length>1)&&("."===S||".."===S)||""===S,j=0,A=O.length;A>=0;A--)"."===(S=O[A])?O.splice(A,1):".."===S?(O.splice(A,1),j++):j&&(O.splice(A,1),j--);if(!x&&!w)for(;j--;j)O.unshift("..");!x||""===O[0]||O[0]&&"/"===O[0].charAt(0)||O.unshift(""),P&&"/"!==O.join("/").substr(-1)&&O.push("");var C,T=""===O[0]||O[0]&&"/"===O[0].charAt(0);return E&&(r.hostname=r.host=T?"":O.length?O.shift():"",(C=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=C.shift(),r.host=r.hostname=C.shift())),(x=x||r.host&&O.length)&&!T&&O.unshift(""),O.length?r.pathname=O.join("/"):(r.pathname=null,r.path=null),o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var t=this.host,e=s.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},62502:t=>{"use strict";
1t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},21614:(t,e,r)=>{"use strict";var n;r.r(e),r.d(e,{NIL:()=>T,parse:()=>y,stringify:()=>l,v1:()=>m,v3:()=>S,v4:()=>P,v5:()=>C,validate:()=>s,version:()=>k});var o=new Uint8Array(16);function i(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(o)}const a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,s=function(t){return"string"==typeof t&&a.test(t)};for(var u=[],c=0;c<256;++c)u.push((c+256).toString(16).substr(1));const l=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(u[t[e+0]]+u[t[e+1]]+u[t[e+2]]+u[t[e+3]]+"-"+u[t[e+4]]+u[t[e+5]]+"-"+u[t[e+6]]+u[t[e+7]]+"-"+u[t[e+8]]+u[t[e+9]]+"-"+u[t[e+10]]+u[t[e+11]]+u[t[e+12]]+u[t[e+13]]+u[t[e+14]]+u[t[e+15]]).toLowerCase();if(!s(r))throw TypeError("Stringified UUID is invalid");return r};var p,f,h=0,d=0;const m=function(t,e,r){var n=e&&r||0,o=e||new Array(16),a=(t=t||{}).node||p,s=void 0!==t.clockseq?t.clockseq:f;if(null==a||null==s){var u=t.random||(t.rng||i)();null==a&&(a=p=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==s&&(s=f=16383&(u[6]<<8|u[7]))}var c=void 0!==t.msecs?t.msecs:Date.now(),m=void 0!==t.nsecs?t.nsecs:d+1,y=c-h+(m-d)/1e4;if(y<0&&void 0===t.clockseq&&(s=s+1&16383),(y<0||c>h)&&void 0===t.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");h=c,d=m,f=s;var v=(1e4*(268435455&(c+=122192928e5))+m)%4294967296;o[n++]=v>>>24&255,o[n++]=v>>>16&255,o[n++]=v>>>8&255,o[n++]=255&v;var g=c/4294967296*1e4&268435455;o[n++]=g>>>8&255,o[n++]=255&g,o[n++]=g>>>24&15|16,o[n++]=g>>>16&255,o[n++]=s>>>8|128,o[n++]=255&s;for(var b=0;b<6;++b)o[n+b]=a[b];return e||l(o)},y=function(t){if(!s(t))throw TypeError("Invalid UUID");var e,r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=255&e,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=255&e,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=255&e,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=255&e,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=255&e,r};function v(t,e,r){function n(t,n,o,i){if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e}(t)),"string"==typeof n&&(n=y(n)),16!==n.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+t.length);if(a.set(n),a.set(t,n.length),(a=r(a))[6]=15&a[6]|e,a[8]=63&a[8]|128,o){i=i||0;for(var s=0;s<16;++s)o[i+s]=a[s];return o}return l(a)}try{n.name=t}catch(t){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n}function g(t){return 14+(t+64>>>9<<4)+1}function b(t,e){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}function _(t,e,r,n,o,i){return b((a=b(b(e,t),b(n,i)))<<(s=o)|a>>>32-s,r);var a,s}function x(t,e,r,n,o,i,a){return _(e&r|~e&n,t,e,o,i,a)}function w(t,e,r,n,o,i,a){return _(e&n|r&~n,t,e,o,i,a)}function O(t,e,r,n,o,i,a){return _(e^r^n,t,e,o,i,a)}function E(t,e,r,n,o,i,a){return _(r^(e|~n),t,e,o,i,a)}const S=v("v3",48,(function(t){if("string"==typeof t){var e=unescape(encodeURIComponent(t));t=new Uint8Array(e.length);for(var r=0;r<e.length;++r)t[r]=e.charCodeAt(r)}return function(t){for(var e=[],r=32*t.length,n="0123456789abcdef",o=0;o<r;o+=8){var i=t[o>>5]>>>o%32&255,a=parseInt(n.charAt(i>>>4&15)+n.charAt(15&i),16);e.push(a)}return e}(function(t,e){t[e>>5]|=128<<e%32,t[g(e)-1]=e;for(var r=1732584193,n=-271733879,o=-1732584194,i=271733878,a=0;a<t.length;a+=16){var s=r,u=n,c=o,l=i;r=x(r,n,o,i,t[a],7,-680876936),i=x(i,r,n,o,t[a+1],12,-389564586),o=x(o,i,r,n,t[a+2],17,606105819),n=x(n,o,i,r,t[a+3],22,-1044525330),r=x(r,n,o,i,t[a+4],7,-176418897),i=x(i,r,n,o,t[a+5],12,1200080426),o=x(o,i,r,n,t[a+6],17,-1473231341),n=x(n,o,i,r,t[a+7],22,-45705983),r=x(r,n,o,i,t[a+8],7,1770035416),i=x(i,r,n,o,t[a+9],12,-1958414417),o=x(o,i,r,n,t[a+10],17,-42063),n=x(n,o,i,r,t[a+11],22,-1990404162),r=x(r,n,o,i,t[a+12],7,1804603682),i=x(i,r,n,o,t[a+13],12,-40341101),o=x(o,i,r,n,t[a+14],17,-1502002290),r=w(r,n=x(n,o,i,r,t[a+15],22,1236535329),o,i,t[a+1],5,-165796510),i=w(i,r,n,o,t[a+6],9,-1069501632),o=w(o,i,r,n,t[a+11],14,643717713),n=w(n,o,i,r,t[a],20,-373897302),r=w(r,n,o,i,t[a+5],5,-701558691),i=w(i,r,n,o,t[a+10],9,38016083),o=w(o,i,r,n,t[a+15],14,-660478335),n=w(n,o,i,r,t[a+4],20,-405537848),r=w(r,n,o,i,t[a+9],5,568446438),i=w(i,r,n,o,t[a+14],9,-1019803690),o=w(o,i,r,n,t[a+3],14,-187363961),n=w(n,o,i,r,t[a+8],20,1163531501),r=w(r,n,o,i,t[a+13],5,-1444681467),i=w(i,r,n,o,t[a+2],9,-51403784),o=w(o,i,r,n,t[a+7],14,1735328473),r=O(r,n=w(n,o,i,r,t[a+12],20,-1926607734),o,i,t[a+5],4,-378558),i=O(i,r,n,o,t[a+8],11,-2022574463),o=O(o,i,r,n,t[a+11],16,1839030562),n=O(n,o,i,r,t[a+14],23,-35309556),r=O(r,n,o,i,t[a+1],4,-1530992060),i=O(i,r,n,o,t[a+4],11,1272893353),o=O(o,i,r,n,t[a+7],16,-155497632),n=O(n,o,i,r,t[a+10],23,-1094730640),r=O(r,n,o,i,t[a+13],4,681279174),i=O(i,r,n,o,t[a],11,-358537222),o=O(o,i,r,n,t[a+3],16,-722521979),n=O(n,o,i,r,t[a+6],23,76029189),r=O(r,n,o,i,t[a+9],4,-640364487),i=O(i,r,n,o,t[a+12],11,-421815835),o=O(o,i,r,n,t[a+15],16,530742520),r=E(r,n=O(n,o,i,r,t[a+2],23,-995338651),o,i,t[a],6,-198630844),i=E(i,r,n,o,t[a+7],10,1126891415),o=E(o,i,r,n,t[a+14],15,-1416354905),n=E(n,o,i,r,t[a+5],21,-57434055),r
vendor: 5,410 bytes, line 1
1=E(r,n,o,i,t[a+12],6,1700485571),i=E(i,r,n,o,t[a+3],10,-1894986606),o=E(o,i,r,n,t[a+10],15,-1051523),n=E(n,o,i,r,t[a+1],21,-2054922799),r=E(r,n,o,i,t[a+8],6,1873313359),i=E(i,r,n,o,t[a+15],10,-30611744),o=E(o,i,r,n,t[a+6],15,-1560198380),n=E(n,o,i,r,t[a+13],21,1309151649),r=E(r,n,o,i,t[a+4],6,-145523070),i=E(i,r,n,o,t[a+11],10,-1120210379),o=E(o,i,r,n,t[a+2],15,718787259),n=E(n,o,i,r,t[a+9],21,-343485551),r=b(r,s),n=b(n,u),o=b(o,c),i=b(i,l)}return[r,n,o,i]}(function(t){if(0===t.length)return[];for(var e=8*t.length,r=new Uint32Array(g(e)),n=0;n<e;n+=8)r[n>>5]|=(255&t[n/8])<<n%32;return r}(t),8*t.length))})),P=function(t,e,r){var n=(t=t||{}).random||(t.rng||i)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){r=r||0;for(var o=0;o<16;++o)e[r+o]=n[o];return e}return l(n)};function j(t,e,r,n){switch(t){case 0:return e&r^~e&n;case 1:case 3:return e^r^n;case 2:return e&r^e&n^r&n}}function A(t,e){return t<<e|t>>>32-e}const C=v("v5",80,(function(t){var e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){var n=unescape(encodeURIComponent(t));t=[];for(var o=0;o<n.length;++o)t.push(n.charCodeAt(o))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var i=t.length/4+2,a=Math.ceil(i/16),s=new Array(a),u=0;u<a;++u){for(var c=new Uint32Array(16),l=0;l<16;++l)c[l]=t[64*u+4*l]<<24|t[64*u+4*l+1]<<16|t[64*u+4*l+2]<<8|t[64*u+4*l+3];s[u]=c}s[a-1][14]=8*(t.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(t.length-1)&4294967295;for(var p=0;p<a;++p){for(var f=new Uint32Array(80),h=0;h<16;++h)f[h]=s[p][h];for(var d=16;d<80;++d)f[d]=A(f[d-3]^f[d-8]^f[d-14]^f[d-16],1);for(var m=r[0],y=r[1],v=r[2],g=r[3],b=r[4],_=0;_<80;++_){var x=Math.floor(_/20),w=A(m,5)+j(x,y,v,g)+b+e[x]+f[_]>>>0;b=g,g=v,v=A(y,30)>>>0,y=m,m=w}r[0]=r[0]+m>>>0,r[1]=r[1]+y>>>0,r[2]=r[2]+v>>>0,r[3]=r[3]+g>>>0,r[4]=r[4]+b>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]})),T="00000000-0000-0000-0000-000000000000",k=function(t){if(!s(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}},30402:(t,e,r)=>{"use strict";r.r(e),r.d(e,{Area:()=>eg,Axis:()=>_,Background:()=>ca,Bar:()=>kg,Border:()=>ha,Box:()=>ha,BrushHelpers:()=>vw,Candle:()=>$g,CanvasBar:()=>WE,CanvasCurve:()=>RE,CanvasGroup:()=>kE,CanvasPoint:()=>VE,Circle:()=>ia,ClipPath:()=>da,Collection:()=>i,CursorHelpers:()=>Aw,Curve:()=>r_,Data:()=>y,DefaultTransitions:()=>v,Domain:()=>g,ErrorBar:()=>mb,Events:()=>m,Flyout:()=>nO,Helpers:()=>n,LabelHelpers:()=>p,Line:()=>va,LineSegment:()=>xa,Log:()=>o,Path:()=>ja,Point:()=>ts,Portal:()=>_u,PropTypes:()=>u,RawZoomHelpers:()=>CO,Rect:()=>ra,Scale:()=>s,Selection:()=>b,SelectionHelpers:()=>qw,Slice:()=>Am,Style:()=>f,TSpan:()=>Aa,Text:()=>Ta,TextSize:()=>h,Transitions:()=>d,VictoryAccessibleGroup:()=>qf,VictoryAnimation:()=>hu,VictoryArea:()=>cg,VictoryAxis:()=>Mh,VictoryBar:()=>Fg,VictoryBoxPlot:()=>V_,VictoryBrushContainer:()=>Pw,VictoryBrushLine:()=>aw,VictoryCandlestick:()=>cb,VictoryChart:()=>yd,VictoryClipContainer:()=>al,VictoryContainer:()=>Au,VictoryCursorContainer:()=>zw,VictoryErrorBar:()=>jb,VictoryGroup:()=>Dd,VictoryHistogram:()=>Jb,VictoryLabel:()=>wc,VictoryLegend:()=>jE,VictoryLine:()=>l_,VictoryPie:()=>Fm,VictoryPolarAxis:()=>od,VictoryPortal:()=>Iu,VictoryScatter:()=>w_,VictorySelectionContainer:()=>Xw,VictorySharedEvents:()=>uh,VictoryStack:()=>Kd,VictoryTheme:()=>Bc,VictoryTooltip:()=>uO,VictoryTransition:()=>Jc,VictoryVoronoi:()=>Ux,VictoryVoronoiContainer:()=>EO,VictoryZoomContainer:()=>FO,Voronoi:()=>W_,VoronoiHelpers:()=>mO,Whisker:()=>Sa,Wrapper:()=>x,ZoomHelpers:()=>TO,addEvents:()=>ql,brushContainerMixin:()=>Sw,combineContainerMixins:()=>eE,createContainer:()=>oE,cursorContainerMixin:()=>Rw,makeCreateContainerFunction:()=>nE,selectionContainerMixin:()=>Yw,useCanvasContext:()=>CE,voronoiContainerMixin:()=>OO,zoomContainerMixin:()=>NO});var n={};r.r(n),r.d(n,{createAccessor:()=>Q,degreesToRadians:()=>H,evaluateProp:()=>W,evaluateStyle:()=>Z,getCurrentAxis:()=>et,getDefaultStyles:()=>$,getPadding:()=>U,getPoint:()=>B,getPolarOrigin:()=>X,getRadius:()=>Y,getRange:()=>J,getStyles:()=>G,isHorizontal:()=>nt,isTooltip:()=>q,modifyProps:()=>tt,omit:()=>F,radiansToDegrees:()=>K,reduceChildren:()=>rt,scalePoint:()=>V});var o={};r.r(o),r.d(o,{warn:()=>ut});var i={};r.r(i),r.d(i,{containsDates:()=>vt,containsNumbers:()=>gt,containsOnlyStrings:()=>bt,containsStrings:()=>yt,getMaxValue:()=>wt,getMinValue:()=>Ot,isArrayOfArrays:()=>_t,removeUndefined:()=>xt});var a={};r.r(a),r.d(a,{scaleBand:()=>kt,scaleDiverging:()=>wi,scaleDivergingLog:()=>Oi,scaleDivergingPow:()=>Si,scaleDivergingSqrt:()=>Pi,scaleDivergingSymlog:()=>Ei,scaleIdentity:()=>yr,scaleImplicit:()=>Ct,scaleLinear:()=>mr,scaleLog:()=>Sr,scaleOrdinal:()=>Tt,scalePoint:()=>It,scalePow:()=>Dr,scaleQuantile:()=>Gr,scaleQuantize:()=>Wr,scaleRadial:()=>zr,scaleSequential:()=>mi,scaleSequentialLog:()=>yi,scaleSequentialPow:()=>gi,scaleSequentialQuantile:()=>_i,scaleSequentialSqrt:()=>bi,scaleSequentialSymlog:()=>vi,scaleSqrt:()=>Lr,scaleSymlog:()=>Cr,scaleThreshold:()=>Zr,scaleTime:()=>pi,scaleUtc:()=>fi,tickFormat:()=>hr});var s={};r.r(s),r.d(s,{getBaseScale:()=>Mi,getDefaultScale:()=>
1Ii,getScaleFromName:()=>ki,getScaleFromProps:()=>Di,getScaleType:()=>Li,getType:()=>zi,validScale:()=>Ai});var u={};r.r(u),r.d(u,{allOfType:()=>$i,deprecated:()=>qi,domain:()=>Hi,greaterThanZero:()=>Zi,homogeneousArray:()=>Yi,integer:()=>Wi,matchDataLength:()=>Xi,nonNegative:()=>Gi,regExp:()=>Ji,scale:()=>Ki});var c={};r.r(c),r.d(c,{circle:()=>Ia,cross:()=>Fa,diamond:()=>La,minus:()=>Ba,plus:()=>Na,square:()=>Da,star:()=>Va,triangleDown:()=>Ra,triangleUp:()=>za});var l={};r.r(l),r.d(l,{easeBack:()=>Is,easeBackIn:()=>ks,easeBackInOut:()=>Is,easeBackOut:()=>Ms,easeBounce:()=>Ps,easeBounceIn:()=>Ss,easeBounceInOut:()=>js,easeBounceOut:()=>Ps,easeCircle:()=>ws,easeCircleIn:()=>_s,easeCircleInOut:()=>ws,easeCircleOut:()=>xs,easeCubic:()=>ss,easeCubicIn:()=>is,easeCubicInOut:()=>ss,easeCubicOut:()=>as,easeElastic:()=>Rs,easeElasticIn:()=>Ls,easeElasticInOut:()=>zs,easeElasticOut:()=>Rs,easeExp:()=>bs,easeExpIn:()=>vs,easeExpInOut:()=>bs,easeExpOut:()=>gs,easeLinear:()=>es,easePoly:()=>ls,easePolyIn:()=>us,easePolyInOut:()=>ls,easePolyOut:()=>cs,easeQuad:()=>os,easeQuadIn:()=>rs,easeQuadInOut:()=>os,easeQuadOut:()=>ns,easeSin:()=>ms,easeSinIn:()=>hs,easeSinInOut:()=>ms,easeSinOut:()=>ds});var p={};r.r(p),r.d(p,{getDegrees:()=>Fu,getPolarAngle:()=>Nu,getPolarTextAnchor:()=>Ru,getPolarVerticalAnchor:()=>zu,getProps:()=>Bu,getText:()=>Lu});var f={};r.r(f),r.d(f,{getColorScale:()=>Uu,toTransformString:()=>Vu});var h={};r.r(h),r.d(h,{_approximateTextSizeInternal:()=>ac,approximateTextSize:()=>sc,convertLengthToPixels:()=>tc});var d={};r.r(d),r.d(d,{getInitialTransitionState:()=>Zc,getTransitionPropsFactory:()=>Hc});var m={};r.r(m),r.d(m,{emulateReactEvent:()=>Dl,getComponentEvents:()=>Tl,getEventState:()=>Pl,getEvents:()=>Ol,getExternalMutation:()=>Cl,getExternalMutations:()=>Al,getExternalMutationsWithChildren:()=>jl,getGlobalEventNameFromKey:()=>kl,getGlobalEvents:()=>Ml,getPartialEvents:()=>Sl,getScopedEvents:()=>El,omitGlobalEvents:()=>Il});var y={};r.r(y),r.d(y,{createStringMap:()=>ip,downsample:()=>ap,formatData:()=>sp,formatDataFromDomain:()=>op,generateData:()=>up,getCategories:()=>cp,getData:()=>lp,getStringsFromAxes:()=>pp,getStringsFromCategories:()=>fp,getStringsFromData:()=>hp,isDataComponent:()=>dp});var v={};r.r(v),r.d(v,{continuousPolarTransitions:()=>yp,continuousTransitions:()=>mp,discreteTransitions:()=>vp});var g={};r.r(g),r.d(g,{createDomainFunction:()=>jp,formatDomain:()=>Ap,getDomain:()=>Cp,getDomainFromCategories:()=>Tp,getDomainFromData:()=>kp,getDomainFromMinMax:()=>Mp,getDomainFromProps:()=>Ip,getDomainWithZero:()=>Dp,getMaxFromProps:()=>Lp,getMinFromProps:()=>Rp,getSymmetricDomain:()=>zp,isDomainComponent:()=>Np});var b={};r.r(b),r.d(b,{getBounds:()=>Gp,getDataCoordinates:()=>$p,getDomainCoordinates:()=>qp,getParentSVG:()=>Vp,getSVGEventCoordinates:()=>Up});var _={};r.r(_),r.d(_,{findAxisComponents:()=>Qp,getAxis:()=>Jp,getAxisComponent:()=>tf,getAxisComponentsWithParent:()=>ef,getAxisValue:()=>hf,getDomain:()=>ff,getOrigin:()=>rf,getOriginSign:()=>nf,getTickFormat:()=>uf,getTicks:()=>lf,isVertical:()=>of,modifyProps:()=>df,stringTicks:()=>af});var x={};r.r(x),r.d(x,{addBinsToParentPropsIfHistogram:()=>Ef,getAllEvents:()=>Mf,getCategories:()=>Bf,getCategoryAndAxisStringsFromChildren:()=>Nf,getChildStyle:()=>Lf,getColor:()=>If,getData:()=>Pf,getDataFromChildren:()=>Sf,getDefaultDomainPadding:()=>Af,getDomain:()=>Tf,getDomainFromChildren:()=>Cf,getScale:()=>kf,getStringsFromCategories:()=>Rf,getStringsFromChildren:()=>Ff,getStringsFromData:()=>zf,getStyle:()=>Df,getWidth:()=>jf});var w={};r.r(w),r.d(w,{arc:()=>wm,area:()=>Gm,areaRadial:()=>Xm,curveBasis:()=>Vy,curveBasisClosed:()=>qy,curveBasisOpen:()=>Gy,curveBumpX:()=>ey,curveBumpY:()=>ry,curveBundle:()=>Zy,curveCardinal:()=>Yy,curveCardinalClosed:()=>Jy,curveCardinalOpen:()=>tv,curveCatmullRom:()=>nv,curveCatmullRomClosed:()=>iv,curveCatmullRomOpen:()=>sv,curveLinear:()=>Vm,curveLinearClosed:()=>cv,curveMonotoneX:()=>vv,curveMonotoneY:()=>gv,curveNatural:()=>xv,curveStep:()=>Ov,curveStepAfter:()=>Sv,curveStepBefore:()=>Ev,line:()=>$m,lineRadial:()=>Ym,link:()=>ay,linkHorizontal:()=>sy,linkRadial:()=>cy,linkVertical:()=>uy,pie:()=>Im,pointRadial:()=>Jm,radialArea:()=>Xm,radialLine:()=>Ym,stack:()=>Tv,stackOffsetDiverging:()=>Mv,stackOffsetExpand:()=>kv,stackOffsetNone:()=>Pv,stackOffsetSilhouette:()=>Iv,stackOffsetWiggle:()=>Dv,stackOrderAppearance:()=>Lv,stackOrderAscending:()=>
1zv,stackOrderDescending:()=>Fv,stackOrderInsideOut:()=>Bv,stackOrderNone:()=>jv,stackOrderReverse:()=>Vv,symbol:()=>zy,symbolAsterisk:()=>py,symbolCircle:()=>fy,symbolCross:()=>hy,symbolDiamond:()=>yy,symbolDiamond2:()=>vy,symbolPlus:()=>gy,symbolSquare:()=>by,symbolSquare2:()=>_y,symbolStar:()=>Ey,symbolTimes:()=>Dy,symbolTriangle:()=>Py,symbolTriangle2:()=>Ay,symbolWye:()=>Iy,symbolX:()=>Dy,symbols:()=>Ly,symbolsFill:()=>Ly,symbolsStroke:()=>Ry});var O=r(28583),E=r.n(O),S=r(8156),P=r.n(S),j=r(45697),A=r.n(j),C=r(3674),T=r.n(C),k=r(78718),M=r.n(k),I=r(39601),D=r.n(I),L=r(23560),R=r.n(L),z=r(91747),N=r.n(z);function F(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function B(t){var e=function(t){return void 0!==t},r=t._x,n=t._x1,o=t._x0,i=t._voronoiX,a=t._y,s=t._y1,u=t._y0,c=t._voronoiY,l=e(n)?n:r,p=e(s)?s:a,f={x:e(i)?i:l,x0:e(o)?o:r,y:e(c)?c:p,y0:e(u)?u:a};return N()({},f,t)}function V(t,e){var r=t.scale,n=t.polar,o=t.horizontal,i=B(e),a=t.origin||{x:0,y:0},s=o?r.y(i.y):r.x(i.x),u=o?r.y(i.y0):r.x(i.x0),c=o?r.x(i.x):r.y(i.y),l=o?r.x(i.x0):r.y(i.y0);return{x:n?c*Math.cos(s)+a.x:s,x0:n?l*Math.cos(u)+a.x:u,y:n?-c*Math.sin(s)+a.y:c,y0:n?-l*Math.sin(u)+a.x:l}}function U(t){var e=t[arguments.length>1&&void 0!==arguments[1]?arguments[1]:"padding"],r="number"==typeof e?e:0,n="object"==typeof e?e:{};return{top:n.top||r,bottom:n.bottom||r,left:n.left||r,right:n.right||r}}function q(t){return"tooltip"===(t&&t.type&&t.type.role)}function $(t,e){var r=t.theme,n=void 0===r?{}:r,o=t.labelComponent,i=n[e]&&n[e].style||{};if(!q(o))return i;var a=n.tooltip&&n.tooltip.style||{},s=N()({},a,i.labels);return N()({},{labels:s},i)}function G(t,e){var r="100%",n="100%";if(!t)return N()({parent:{height:n,width:r}},e);var o=t.data,i=t.labels,a=t.parent,s=e&&e.parent||{},u=e&&e.labels||{},c=e&&e.data||{};return{parent:N()({},a,s,{width:r,height:n}),labels:N()({},i,u),data:N()({},o,c)}}function W(t,e){return R()(t)?t(e):t}function Z(t,e){return e.disableInlineStyles?{}:t&&T()(t).some((function(e){return R()(t[e])}))?T()(t).reduce((function(r,n){return r[n]=W(t[n],e),r}),{}):t}function H(t){return"number"==typeof t?t*(Math.PI/180):t}function K(t){return"number"==typeof t?t/(Math.PI/180):t}function Y(t){var e=U(t),r=e.left,n=e.right,o=e.top,i=e.bottom,a=t.width,s=t.height;return Math.min(a-r-n,s-o-i)/2}function X(t){var e=t.width,r=t.height,n=U(t),o=n.top,i=n.bottom,a=n.left,s=n.right,u=Math.min(e-a-s,r-o-i)/2,c=e/2+a-s,l=r/2+o-i;return{x:c+u>e?u+a-s:c,y:l+u>r?u+o-i:l}}function J(t,e){return t.range&&t.range[e]?t.range[e]:t.range&&Array.isArray(t.range)?t.range:t.polar?function(t,e){return"x"===e?[H(t.startAngle||0),H(t.endAngle||360)]:[t.innerRadius||0,Y(t)]}(t,e):function(t,e){var r="x"!==e,n=U(t);return r?[t.height-n.bottom,n.top]:[n.left,t.width-n.right]}(t,e)}function Q(t){return R()(t)?t:null==t?function(t){return t}:D()(t)}function tt(t,e,r){var n=F(t.theme&&t.theme[r]?t.theme[r]:{},["style"]),o=nt(t),i=void 0===o?{}:{horizontal:o};return N()(i,t,n,e)}function et(t,e){return e?"x"===t?"y":"x":t}function rt(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(t,e){return t.concat(e)},i=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],a=function(t,s,u){return t.reduce((function(t,n,c){var l=n.type&&n.type.role,p=n.props.name||"".concat(l,"-").concat(s[c]);if(n.props&&n.props.children){var f=E()({},n.props,M()(r,i)),h=n.type&&"stack"===n.type.role&&R()(n.type.getChildren)?n.type.getChildren(f):P().Children.toArray(n.props.children).map((function(t){var e=E()({},t.props,M()(f,i));return P().cloneElement(t,e)})),d=h.map((function(t,e){return"".concat(p,"-").concat(e)})),m=a(h,d,n);t=o(t,m)}else{var y=e(n,p,u);y&&(t=o(t,y))}return t}),n)},s=t.map((function(t,e){return e}));return a(t,s)}function nt(t){if(void 0!==t.horizontal||!t.children)return t.horizontal;var e=function(t){return t.reduce((function(t,r){var n=r.props||{};return t||n.horizontal||!n.children?t=t||n.horizontal:e(P().Children.toArray(n.children))}),!1)};return e(P().Children.toArray(t.children))}var ot=r(96347),it=r.n(ot),at=r(13311),st=r.n(at);function ut(t){}var ct=r(68630),lt=r.n(ct),pt=r(64721),ft=r.n(pt);function ht(t){return function(t){if(Array.isArray(t))return dt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return dt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?dt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function mt(t){return Array.isArray(t)&&t.length>0}function yt(t){return Array.isArray(t)&&t.some((function(t){return"string"==typeof t}))}function vt(t){return Array.isArray(t)&&t.some((function(t){return t instanceof Date}))}function gt(t){return Array.isArray(t)&&t.some((function(t){return"number"==typeof t}))}function bt(t){return mt(t)&&t.every((function(t){return"string"==typeof t}))}function _t(t){return mt(t)&&t.every(Array.isArray)}function xt(t){return t.filter((function(t){return void 0!==t}))}function wt(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=t.concat(r);return vt(o)?new Date(Math.max.apply(Math,ht(o))):Math.max.apply(Math,ht(o))}function Ot(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=t.concat(r);return vt(o)?new Date(Math.min.apply(Math,ht(o))):Math.min.apply(Math,ht(o))}function Et(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function St(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}class Pt extends Map{constructor(t,e=At){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[r,n]of t)this.set(r,n)}get(t){return super.get(jt(this,t))}has(t){return super.has(jt(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},r){const n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}(this,t))}}function jt({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function At(t){return null!==t&&"object"==typeof t?t.valueOf():t}
vendor: 9,006 bytes, line 1
1const Ct=Symbol("implicit");function Tt(){var t=new Pt,e=[],r=[],n=Ct;function o(o){let i=t.get(o);if(void 0===i){if(n!==Ct)return n;t.set(o,i=e.push(o)-1)}return r[i%r.length]}return o.domain=function(r){if(!arguments.length)return e.slice();e=[],t=new Pt;for(const n of r)t.has(n)||t.set(n,e.push(n)-1);return o},o.range=function(t){return arguments.length?(r=Array.from(t),o):r.slice()},o.unknown=function(t){return arguments.length?(n=t,o):n},o.copy=function(){return Tt(e,r).unknown(n)},Et.apply(o,arguments),o}function kt(){var t,e,r=Tt().unknown(void 0),n=r.domain,o=r.range,i=0,a=1,s=!1,u=0,c=0,l=.5;function p(){var r=n().length,p=a<i,f=p?a:i,h=p?i:a;t=(h-f)/Math.max(1,r-u+2*c),s&&(t=Math.floor(t)),f+=(h-f-t*(r-u))*l,e=t*(1-u),s&&(f=Math.round(f),e=Math.round(e));var d=function(t,e,r){t=+t,e=+e,r=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+r;for(var n=-1,o=0|Math.max(0,Math.ceil((e-t)/r)),i=new Array(o);++n<o;)i[n]=t+n*r;return i}(r).map((function(e){return f+t*e}));return o(p?d.reverse():d)}return delete r.unknown,r.domain=function(t){return arguments.length?(n(t),p()):n()},r.range=function(t){return arguments.length?([i,a]=t,i=+i,a=+a,p()):[i,a]},r.rangeRound=function(t){return[i,a]=t,i=+i,a=+a,s=!0,p()},r.bandwidth=function(){return e},r.step=function(){return t},r.round=function(t){return arguments.length?(s=!!t,p()):s},r.padding=function(t){return arguments.length?(u=Math.min(1,c=+t),p()):u},r.paddingInner=function(t){return arguments.length?(u=Math.min(1,t),p()):u},r.paddingOuter=function(t){return arguments.length?(c=+t,p()):c},r.align=function(t){return arguments.length?(l=Math.max(0,Math.min(1,t)),p()):l},r.copy=function(){return kt(n(),[i,a]).round(s).paddingInner(u).paddingOuter(c).align(l)},Et.apply(p(),arguments)}function Mt(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Mt(e())},t}function It(){return Mt(kt.apply(null,arguments).paddingInner(1))}const Dt=Math.sqrt(50),Lt=Math.sqrt(10),Rt=Math.sqrt(2);function zt(t,e,r){const n=(e-t)/Math.max(0,r),o=Math.floor(Math.log10(n)),i=n/Math.pow(10,o),a=i>=Dt?10:i>=Lt?5:i>=Rt?2:1;let s,u,c;return o<0?(c=Math.pow(10,-o)/a,s=Math.round(t*c),u=Math.round(e*c),s/c<t&&++s,u/c>e&&--u,c=-c):(c=Math.pow(10,o)*a,s=Math.round(t/c),u=Math.round(e/c),s*c<t&&++s,u*c>e&&--u),u<s&&.5<=r&&r<2?zt(t,e,2*r):[s,u,c]}function Nt(t,e,r){if(!((r=+r)>0))return[];if((t=+t)==(e=+e))return[t];const n=e<t,[o,i,a]=n?zt(e,t,r):zt(t,e,r);if(!(i>=o))return[];const s=i-o+1,u=new Array(s);if(n)if(a<0)for(let c=0;c<s;++c)u[c]=(i-c)/-a;else for(let c=0;c<s;++c)u[c]=(i-c)*a;else if(a<0)for(let c=0;c<s;++c)u[c]=(o+c)/-a;else for(let c=0;c<s;++c)u[c]=(o+c)*a;return u}function Ft(t,e,r){return zt(t=+t,e=+e,r=+r)[2]}function Bt(t,e,r){r=+r;const n=(e=+e)<(t=+t),o=n?Ft(e,t,r):Ft(t,e,r);return(n?-1:1)*(o<0?1/-o:o)}function Vt(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ut(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function qt(t){let e,r,n;function o(t,n,o=0,i=t.length){if(o<i){if(0!==e(n,n))return i;do{const e=o+i>>>1;r(t[e],n)<0?o=e+1:i=e}while(o<i)}return o}return 2!==t.length?(e=Vt,r=(e,r)=>Vt(t(e),r),n=(e,r)=>t(e)-r):(e=t===Vt||t===Ut?t:$t,r=t,n=t),{left:o,center:function(t,e,r=0,i=t.length){const a=o(t,e,r,i-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,o=0,i=t.length){if(o<i){if(0!==e(n,n))return i;do{const e=o+i>>>1;r(t[e],n)<=0?o=e+1:i=e}while(o<i)}return o}}}function $t(){return 0}function Gt(t){return null===t?NaN:+t}const Wt=qt(Vt),Zt=Wt.right,Ht=(Wt.left,qt(Gt).center,Zt);function Kt(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Yt(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function Xt(){}var Jt=.7,Qt=1/Jt,te="\\s*([+-]?\\d+)\\s*",ee="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",re="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ne=/^#([0-9a-f]{3,8})$/,oe=new RegExp(`^rgb\\(${te},${te},${te}\\)$`),ie=new RegExp(`^rgb\\(${re},${re},${re}\\)$`),ae=new RegExp(`^rgba\\(${te},${te},${te},${ee}\\)$`),se=new RegExp(`^rgba\\(${re},${re},${re},${ee}\\)$`),ue=new RegExp(`^hsl\\(${ee},${re},${re}\\)$`),ce=new RegExp(`^hsla\\(${ee},${re},${re},${ee}\\)$`),le={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function pe(){return this.rgb().formatHex()}function fe(){return this.rgb().formatRgb()}function he(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=ne.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?de(e):3===r?new ve(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?me(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?me(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=oe.exec(t))?new ve(e[1],e[2],e[3],1):(e=ie.exec(t))?new ve(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ae.exec(t))?me(e[1],e[2],e[3],e[4]):(e=se.exec(t))?me(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=ue.exec(t))?Oe(e[1],e[2]/100,e[3]/100,1):(e=ce.exec(t))?Oe(e[1],e[2]/100,e[3]/100,e[4]):le.hasOwnProperty(t)?de(le[t]):"transparent"===t?new ve(NaN,NaN,NaN,0):null}function de(t){return new ve(t>>16&255,t>>8&255,255&t,1)}function me(t,e,r,n){return n<=0&&(t=e=r=NaN),new ve(t,e,r,n)}function ye(t,e,r,n){return 1===arguments.length?((o=t)instanceof Xt||(o=he(o)),o?new ve((o=o.rgb()).r,o.g,o.b,o.opacity):new ve):new ve(t,e,r,null==n?1:n);var o}function ve(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function ge(){return`#${we(this.r)}${we(this.g)}${we(this.b)}`}function be(){const t=_e(this.opacity);return`${1===t?"rgb(":"rgba("}${xe(this.r)}, ${xe(this.g)}, ${xe(this.b)}${1===t?")":`, ${t})`}`}function _e(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function xe(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function we(t){return((t=xe(t))<16?"0":"")+t.toString(16)}function Oe(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Se(t,e,r,n)}function Ee(t){if(t instanceof Se)return new Se(t.h,t.s,t.l,t.opacity);if(t instanceof Xt||(t=he(t)),!t)return new Se;if(t instanceof Se)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,o=Math.min(e,r,n),i=Math.max(e,r,n),a=NaN,s=i-o,u=(i+o)/2;return s?(a=e===i?(r-n)/s+6*(r<n):r===i?(n-e)/s+2:(e-r)/s+4,s/=u<.5?i+o:2-i-o,a*=60):s=u>0&&u<1?0:a,new Se(a,s,u,t.opacity)}function Se(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function Pe(t){return(t=(t||0)%360)<0?t+360:t}
vendor: 6,289 bytes, line 1
1function je(t){return Math.max(0,Math.min(1,t||0))}function Ae(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}function Ce(t,e,r,n,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*r+(1+3*t+3*i-3*a)*n+a*o)/6}Kt(Xt,he,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:pe,formatHex:pe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ee(this).formatHsl()},formatRgb:fe,toString:fe}),Kt(ve,ye,Yt(Xt,{brighter(t){return t=null==t?Qt:Math.pow(Qt,t),new ve(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Jt:Math.pow(Jt,t),new ve(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ve(xe(this.r),xe(this.g),xe(this.b),_e(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ge,formatHex:ge,formatHex8:function(){return`#${we(this.r)}${we(this.g)}${we(this.b)}${we(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:be,toString:be})),Kt(Se,(function(t,e,r,n){return 1===arguments.length?Ee(t):new Se(t,e,r,null==n?1:n)}),Yt(Xt,{brighter(t){return t=null==t?Qt:Math.pow(Qt,t),new Se(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Jt:Math.pow(Jt,t),new Se(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,o=2*r-n;return new ve(Ae(t>=240?t-240:t+120,o,n),Ae(t,o,n),Ae(t<120?t+240:t-120,o,n),this.opacity)},clamp(){return new Se(Pe(this.h),je(this.s),je(this.l),_e(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=_e(this.opacity);return`${1===t?"hsl(":"hsla("}${Pe(this.h)}, ${100*je(this.s)}%, ${100*je(this.l)}%${1===t?")":`, ${t})`}`}}));const Te=t=>()=>t;function ke(t,e){var r=e-t;return r?function(t,e){return function(r){return t+r*e}}(t,r):Te(isNaN(t)?e:t)}const Me=function t(e){var r=function(t){return 1==(t=+t)?ke:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):Te(isNaN(e)?r:e)}}(e);function n(t,e){var n=r((t=ye(t)).r,(e=ye(e)).r),o=r(t.g,e.g),i=r(t.b,e.b),a=ke(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return n.gamma=t,n}(1);function Ie(t){return function(e){var r,n,o=e.length,i=new Array(o),a=new Array(o),s=new Array(o);for(r=0;r<o;++r)n=ye(e[r]),i[r]=n.r||0,a[r]=n.g||0,s[r]=n.b||0;return i=t(i),a=t(a),s=t(s),n.opacity=1,function(t){return n.r=i(t),n.g=a(t),n.b=s(t),n+""}}}function De(t,e){var r,n=e?e.length:0,o=t?Math.min(n,t.length):0,i=new Array(o),a=new Array(n);for(r=0;r<o;++r)i[r]=Ue(t[r],e[r]);for(;r<n;++r)a[r]=e[r];return function(t){for(r=0;r<o;++r)a[r]=i[r](t);return a}}function Le(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function Re(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function ze(t,e){var r,n={},o={};for(r in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)r in t?n[r]=Ue(t[r],e[r]):o[r]=e[r];return function(t){for(r in n)o[r]=n[r](t);return o}}Ie((function(t){var e=t.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),o=t[n],i=t[n+1],a=n>0?t[n-1]:2*o-i,s=n<e-1?t[n+2]:2*i-o;return Ce((r-n/e)*e,a,o,i,s)}})),Ie((function(t){var e=t.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*e),o=t[(n+e-1)%e],i=t[n%e],a=t[(n+1)%e],s=t[(n+2)%e];return Ce((r-n/e)*e,o,i,a,s)}}));var Ne=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Fe=new RegExp(Ne.source,"g");function Be(t,e){var r,n,o,i=Ne.lastIndex=Fe.lastIndex=0,a=-1,s=[],u=[];for(t+="",e+="";(r=Ne.exec(t))&&(n=Fe.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(n=n[0])?s[a]?s[a]+=n:s[++a]=n:(s[++a]=null,u.push({i:a,x:Re(r,n)})),i=Fe.lastIndex;return i<e.length&&(o=e.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var r,n=0;n<e;++n)s[(r=u[n]).i]=r.x(t);return s.join("")})}function Ve(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,o=e.slice();return function(i){for(r=0;r<n;++r)o[r]=t[r]*(1-i)+e[r]*i;return o}}function Ue(t,e){var r,n,o=typeof e;return null==e||"boolean"===o?Te(e):("number"===o?Re:"string"===o?(r=he(e))?(e=r,Me):Be:e instanceof he?Me:e instanceof Date?Le:(n=e,!ArrayBuffer.isView(n)||n instanceof DataView?Array.isArray(e)?De:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?ze:Re:Ve))(t,e)}function qe(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function $e(t){return+t}var Ge=[0,1];function We(t){return t}function Ze(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r});var r}function He(t,e,r){var n=t[0],o=t[1],i=e[0],a=e[1];return o<n?(n=Ze(o,n),i=r(a,i)):(n=Ze(n,o),i=r(i,a)),function(t){return i(n(t))}}function Ke(t,e,r){var n=Math.min(t.length,e.length)-1,o=new Array(n),i=new Array(n),a=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<n;)o[a]=Ze(t[a],t[a+1]),i[a]=r(e[a],e[a+1]);return function(e){var r=Ht(t,e,1,n)-1;return i[r](o[r](e))}}function Ye(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Xe(){var t,e,r,n,o,i,a=Ge,s=Ge,u=Ue,c=We;function l(){var t=Math.min(a.length,s.length);return c!==We&&(c=function(t,e){var r;return t>e&&(r=t,t=e,e=r),function(r){return Math.max(t,Math.min(e,r))}}(a[0],a[t-1])),n=t>2?Ke:He,o=i=null,p}function p(e){return null==e||isNaN(e=+e)?r:(o||(o=n(a.map(t),s,u)))(t(c(e)))}return p.invert=function(r){return c(e((i||(i=n(s,a.map(t),Re)))(r)))},p.domain=function(t){return arguments.length?(a=Array.from(t,$e),l()):a.slice()},p.range=function(t){return arguments.length?(s=Array.from(t),l()):s.slice()},p.rangeRound=function(t){return s=Array.from(t),u=qe,l()},p.clamp=function(t){return arguments.length?(c=!!t||We,l()):c!==We},p.interpolate=function(t){return arguments.length?(u=t,l()):u},p.unknown=function(t){return arguments.length?(r=t,p):r}
vendor: 10,911 bytes, line 1
1,function(r,n){return t=r,e=n,l()}}function Je(){return Xe()(We,We)}var Qe,tr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function er(t){if(!(e=tr.exec(t)))throw new Error("invalid format: "+t);var e;return new rr({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function rr(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function nr(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function or(t){return(t=nr(Math.abs(t)))?t[1]:NaN}function ir(t,e){var r=nr(t,e);if(!r)return t+"";var n=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}er.prototype=rr.prototype,rr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const ar={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>ir(100*t,e),r:ir,s:function(t,e){var r=nr(t,e);if(!r)return t+"";var n=r[0],o=r[1],i=o-(Qe=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=n.length;return i===a?n:i>a?n+new Array(i-a+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+nr(t,Math.max(0,e+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function sr(t){return t}var ur,cr,lr,pr=Array.prototype.map,fr=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function hr(t,e,r,n){var o,i=Bt(t,e,r);switch((n=er(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(or(e)/3)))-or(Math.abs(t)))}(i,a))||(n.precision=o),lr(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,or(e)-or(t))+1}(i,Math.max(Math.abs(t),Math.abs(e))))||(n.precision=o-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(o=function(t){return Math.max(0,-or(Math.abs(t)))}(i))||(n.precision=o-2*("%"===n.type))}return cr(n)}function dr(t){var e=t.domain;return t.ticks=function(t){var r=e();return Nt(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return hr(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,o,i=e(),a=0,s=i.length-1,u=i[a],c=i[s],l=10;for(c<u&&(o=u,u=c,c=o,o=a,a=s,s=o);l-- >0;){if((o=Ft(u,c,r))===n)return i[a]=u,i[s]=c,e(i);if(o>0)u=Math.floor(u/o)*o,c=Math.ceil(c/o)*o;else{if(!(o<0))break;u=Math.ceil(u*o)/o,c=Math.floor(c*o)/o}n=o}return t},t}function mr(){var t=Je();return t.copy=function(){return Ye(t,mr())},Et.apply(t,arguments),dr(t)}function yr(t){var e;function r(t){return null==t||isNaN(t=+t)?e:t}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,$e),r):t.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return yr(t).unknown(e)},t=arguments.length?Array.from(t,$e):[0,1],dr(r)}function vr(t,e){var r,n=0,o=(t=t.slice()).length-1,i=t[n],a=t[o];return a<i&&(r=n,n=o,o=r,r=i,i=a,a=r),t[n]=e.floor(i),t[o]=e.ceil(a),t}function gr(t){return Math.log(t)}function br(t){return Math.exp(t)}function _r(t){return-Math.log(-t)}function xr(t){return-Math.exp(-t)}function wr(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Or(t){return(e,r)=>-t(-e,r)}function Er(t){const e=t(gr,br),r=e.domain;let n,o,i=10;function a(){return n=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(i),o=function(t){return 10===t?wr:t===Math.E?Math.exp:e=>Math.pow(t,e)}(i),r()[0]<0?(n=Or(n),o=Or(o),t(_r,xr)):t(gr,br),e}return e.base=function(t){return arguments.length?(i=+t,a()):i},e.domain=function(t){return arguments.length?(r(t),a()):r()},e.ticks=t=>{const e=r();let a=e[0],s=e[e.length-1];const u=s<a;u&&([a,s]=[s,a]);let c,l,p=n(a),f=n(s);const h=null==t?10:+t;let d=[];if(!(i%1)&&f-p<h){if(p=Math.floor(p),f=Math.ceil(f),a>0){for(;p<=f;++p)for(c=1;c<i;++c)if(l=p<0?c/o(-p):c*o(p),!(l<a)){if(l>s)break;d.push(l)}}else for(;p<=f;++p)for(c=i-1;c>=1;--c)if(l=p>0?c/o(-p):c*o(p),!(l<a)){if(l>s)break;d.push(l)}2*d.length<h&&(d=Nt(a,s,h))}else d=Nt(p,f,Math.min(f-p,h)).map(o);return u?d.reverse():d},e.tickFormat=(t,r)=>{if(null==t&&(t=10),null==r&&(r=10===i?"s":","),"function"!=typeof r&&(i%1||null!=(r=er(r)).precision||(r.trim=!0),r=cr(r)),t===1/0)return r;const a=Math.max(1,i*t/e.ticks().length);return t=>{let e=t/o(Math.round(n(t)));return e*i<i-.5&&(e*=i),e<=a?r(t):""}},e.nice=()=>r(vr(r(),{floor:t=>o(Math.floor(n(t))),ceil:t=>o(Math.ceil(n(t)))})),e}function Sr(){const t=Er(Xe()).domain([1,10]);return t.copy=()=>Ye(t,Sr()).base(t.base()),Et.apply(t,arguments),t}function Pr(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function jr(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Ar(t){var e=1,r=t(Pr(e),jr(e));return r.constant=function(r){return arguments.length?t(Pr(e=+r),jr(e)):e},dr(r)}function Cr(){var t=Ar(Xe());return t.copy=function(){return Ye(t,Cr()).constant(t.constant())},Et.apply(t,arguments)}function Tr(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function kr(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Mr(t){return t<0?-t*t:t*t}function Ir(t){var e=t(We,We),r=1;return e.exponent=function(e){return arguments.length?1==(r=+e)?t(We,We):.5===r?t(kr,Mr):t(Tr(r),Tr(1/r)):r},dr(e)}function Dr(){var t=Ir(Xe());return t.copy=function(){return Ye(t,Dr()).exponent(t.exponent())},Et.apply(t,arguments),t}function Lr(){return Dr.apply(null,arguments).exponent(.5)}function Rr(t){return Math.sign(t)*t*t}function zr(){var t,e=Je(),r=[0,1],n=!1;function o(r){var o=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(e(r));return isNaN(o)?t:n?Math.round(o):o}return o.invert=function(t){return e.invert(Rr(t))},o.domain=function(t){return arguments.length?(e.domain(t),o):e.domain()},o.range=function(t){return arguments.length?(e.range((r=Array.from(t,$e)).map(Rr)),o):r.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(n=!!t,o):n},o.clamp=function(t){return arguments.length?(e.clamp(t),o):e.clamp()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return zr(e.domain(),r).round(n).clamp(e.clamp()).unknown(t)},Et.apply(o,arguments),dr(o)}function Nr(t,e){let r;if(void 0===e)for(const n of t)null!=n&&(r<n||void 0===r&&n>=n)&&(r=n);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r<o||void 0===r&&o>=o)&&(r=o)}return r}function Fr(t,e){let r;if(void 0===e)for(const n of t)null!=n&&(r>n||void 0===r&&n>=n)&&(r=n);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r>o||void 0===r&&o>=o)&&(r=o)}return r}function Br(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}function Vr(t,e,r=0,n=1/0,o){if(e=Math.floor(e),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(t.length-1,n)),!(r<=e&&e<=n))return t;for(o=void 0===o?Br:function(t=Vt){if(t===Vt)return Br;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,r)=>{const n=t(e,r);return n||0===n?n:(0===t(r,r))-(0===t(e,e))}}(o);n>r;){if(n-r>600){const i=n-r+1,a=e-r+1,s=Math.log(i),u=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*u*(i-u)/i)*(a-i/2<0?-1:1);Vr(t,e,Math.max(r,Math.floor(e-a*u/i+c)),Math.min(n,Math.floor(e+(i-a)*u/i+c)),o)}const i=t[e];let a=r,s=n;for(Ur(t,r,e),o(t[n],i)>0&&Ur(t,r,n);a<s;){for(Ur(t,a,s),++a,--s;o(t[a],i)<0;)++a;for(;o(t[s],i)>0;)--s}0===o(t[r],i)?Ur(t,r,s):(++s,Ur(t,s,n)),s<=e&&(r=s+1),e<=s&&(n=s-1)}return t}function Ur(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function qr(t,e,r){if(t=Float64Array.from(function*(t,e){if(void 0===e)for(let r of t)null!=r&&(r=+r)>=r&&(yield r);else{let r=-1;for(let n of t)null!=(n=e(n,++r,t))&&(n=+n)>=n&&(yield n)}}(t,r)),(n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return Fr(t);if(e>=1)return Nr(t);var n,o=(n-1)*e,i=Math.floor(o),a=Nr(Vr(t,i).subarray(0,i+1));return a+(Fr(t.subarray(i+1))-a)*(o-i)}}function $r(t,e,r=Gt){if((n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,o=(n-1)*e,i=Math.floor(o),a=+r(t[i],i,t);return a+(+r(t[i+1],i+1,t)-a)*(o-i)}}function Gr(){var t,e=[],r=[],n=[];function o(){var t=0,o=Math.max(1,r.length);for(n=new Array(o-1);++t<o;)n[t-1]=$r(e,t/o);return i}function i(e){return null==e||isNaN(e=+e)?t:r[Ht(n,e)]}return i.invertExtent=function(t){var o=r.indexOf(t);return o<0?[NaN,NaN]:[o>0?n[o-1]:e[0],o<n.length?n[o]:e[e.length-1]]},i.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let r of t)null==r||isNaN(r=+r)||e.push(r);return e.sort(Vt),o()},i.range=function(t){return arguments.length?(r=Array.from(t),o()):r.slice()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.quantiles=function(){return n.slice()},i.copy=function(){return Gr().domain(e).range(r).unknown(t)},Et.apply(i,arguments)}function Wr(){var t,e=0,r=1,n=1,o=[.5],i=[0,1];function a(e){return null!=e&&e<=e?i[Ht(o,e,0,n)]:t}function s(){var t=-1;for(o=new Array(n);++t<n;)o[t]=((t+1)*r-(t-n)*e)/(n+1);return a}return a.domain=function(t){return arguments.length?([e,r]=t,e=+e,r=+r,s()):[e,r]},a.range=function(t){return arguments.length?(n=(i=Array.from(t)).length-1,s()):i.slice()},a.invertExtent=function(t){var a=i.indexOf(t);return a<0?[NaN,NaN]:a<1?[e,o[0]]:a>=n?[o[n-1],r]:[o[a-1],o[a]]},a.unknown=function(e){return arguments.length?(t=e,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return Wr().domain([e,r]).range(i).unknown(t)},Et.apply(dr(a),arguments)}function Zr(){var t,e=[.5],r=[0,1],n=1;function o(o){return null!=o&&o<=o?r[Ht(e,o,0,n)]:t}return o.domain=function(t){return arguments.length?(e=Array.from(t),n=Math.min(e.length,r.length-1),o):e.slice()},o.range=function(t){return arguments.length?(r=Array.from(t),n=Math.min(e.length,r.length-1),o):r.slice()},o.invertExtent=function(t){var n=r.indexOf(t);return[e[n-1],e[n]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return Zr().domain(e).range(r).unknown(t)},Et.apply(o,arguments)}
vendor: 16,384 bytes, line 1
1ur=function(t){var e,r,n=void 0===t.grouping||void 0===t.thousands?sr:(e=pr.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var o=t.length,i=[],a=0,s=e[0],u=0;o>0&&s>0&&(u+s+1>n&&(s=Math.max(1,n-u)),i.push(t.substring(o-=s,o+s)),!((u+=s+1)>n));)s=e[a=(a+1)%e.length];return i.reverse().join(r)}),o=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?sr:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(pr.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"\u2212":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function p(t){var e=(t=er(t)).fill,r=t.align,p=t.sign,f=t.symbol,h=t.zero,d=t.width,m=t.comma,y=t.precision,v=t.trim,g=t.type;"n"===g?(m=!0,g="g"):ar[g]||(void 0===y&&(y=12),v=!0,g="g"),(h||"0"===e&&"="===r)&&(h=!0,e="0",r="=");var b="$"===f?o:"#"===f&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",_="$"===f?i:/[%p]/.test(g)?u:"",x=ar[g],w=/[defgprs%]/.test(g);function O(t){var o,i,u,f=b,O=_;if("c"===g)O=x(t)+O,t="";else{var E=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:x(Math.abs(t),y),v&&(t=function(t){t:for(var e,r=t.length,n=1,o=-1;n<r;++n)switch(t[n]){case".":o=e=n;break;case"0":0===o&&(o=n),e=n;break;default:if(!+t[n])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),E&&0==+t&&"+"!==p&&(E=!1),f=(E?"("===p?p:c:"-"===p||"("===p?"":p)+f,O=("s"===g?fr[8+Qe/3]:"")+O+(E&&"("===p?")":""),w)for(o=-1,i=t.length;++o<i;)if(48>(u=t.charCodeAt(o))||u>57){O=(46===u?a+t.slice(o+1):t.slice(o))+O,t=t.slice(0,o);break}}m&&!h&&(t=n(t,1/0));var S=f.length+t.length+O.length,P=S<d?new Array(d-S+1).join(e):"";switch(m&&h&&(t=n(P+t,P.length?d-O.length:1/0),P=""),r){case"<":t=f+t+O+P;break;case"=":t=f+P+t+O;break;case"^":t=P.slice(0,S=P.length>>1)+f+t+O+P.slice(S);break;default:t=P+f+t+O}return s(t)}return y=void 0===y?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),O.toString=function(){return t+""},O}return{format:p,formatPrefix:function(t,e){var r=p(((t=er(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(or(e)/3))),o=Math.pow(10,-n),i=fr[8+n/3];return function(t){return r(o*t)+i}}}}({thousands:",",grouping:[3],currency:["$",""]}),cr=ur.format,lr=ur.formatPrefix;const Hr=1e3,Kr=6e4,Yr=36e5,Xr=864e5,Jr=6048e5,Qr=31536e6,tn=new Date,en=new Date;function rn(t,e,r,n){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=e=>(t(e=new Date(+e)),e),o.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),o.round=t=>{const e=o(t),r=o.ceil(t);return t-e<r-t?e:r},o.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),o.range=(r,n,i)=>{const a=[];if(r=o.ceil(r),i=null==i?1:Math.floor(i),!(r<n&&i>0))return a;let s;do{a.push(s=new Date(+r)),e(r,i),t(r)}while(s<r&&r<n);return a},o.filter=r=>rn((e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)}),((t,n)=>{if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););})),r&&(o.count=(e,n)=>(tn.setTime(+e),en.setTime(+n),t(tn),t(en),Math.floor(r(tn,en))),o.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(n?e=>n(e)%t==0:e=>o.count(0,e)%t==0):o:null)),o}const nn=rn((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));nn.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?rn((e=>{e.setTime(Math.floor(e/t)*t)}),((e,r)=>{e.setTime(+e+r*t)}),((e,r)=>(r-e)/t)):nn:null),nn.range;const on=rn((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*Hr)}),((t,e)=>(e-t)/Hr),(t=>t.getUTCSeconds())),an=(on.range,rn((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Hr)}),((t,e)=>{t.setTime(+t+e*Kr)}),((t,e)=>(e-t)/Kr),(t=>t.getMinutes()))),sn=(an.range,rn((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*Kr)}),((t,e)=>(e-t)/Kr),(t=>t.getUTCMinutes()))),un=(sn.range,rn((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Hr-t.getMinutes()*Kr)}),((t,e)=>{t.setTime(+t+e*Yr)}),((t,e)=>(e-t)/Yr),(t=>t.getHours()))),cn=(un.range,rn((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*Yr)}),((t,e)=>(e-t)/Yr),(t=>t.getUTCHours()))),ln=(cn.range,rn((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Kr)/Xr),(t=>t.getDate()-1))),pn=(ln.range,rn((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Xr),(t=>t.getUTCDate()-1))),fn=(pn.range,rn((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Xr),(t=>Math.floor(t/Xr))));function hn(t){return rn((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Kr)/Jr))}fn.range;const dn=hn(0),mn=hn(1),yn=hn(2),vn=hn(3),gn=hn(4),bn=hn(5),_n=hn(6);function xn(t){return rn((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/Jr))}dn.range,mn.range,yn.range,vn.range,gn.range,bn.range,_n.range;const wn=xn(0),On=xn(1),En=xn(2),Sn=xn(3),Pn=xn(4),jn=xn(5),An=xn(6),Cn=(wn.range,On.range,En.range,Sn.range,Pn.range,jn.range,An.range,rn((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth()))),Tn=(Cn.range,rn((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth()))),kn=(Tn.range,rn((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,e)=>{t.setFullYear(t.getFullYear()+e)}),((t,e)=>e.getFullYear()-t.getFullYear()),(t=>t.getFullYear())));kn.every=t=>isFinite(t=Math.floor(t))&&t>0?rn((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,r)=>{e.setFullYear(e.getFullYear()+r*t)})):null,kn.range;const Mn=rn((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)}),((t,e)=>e.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));function In(t,e,r,n,o,i){const a=[[on,1,Hr],[on,5,5e3],[on,15,15e3],[on,30,3e4],[i,1,Kr],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,Yr],[o,3,108e5],[o,6,216e5],[o,12,432e5],[n,1,Xr],[n,2,1728e5],[r,1,Jr],[e,1,2592e6],[e,3,7776e6],[t,1,Qr]];function s(e,r,n){const o=Math.abs(r-e)/n,i=qt((([,,t])=>t)).right(a,o);if(i===a.length)return t.every(Bt(e/Qr,r/Qr,n));if(0===i)return nn.every(Math.max(Bt(e,r,n),1));const[s,u]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return s.every(u)}return[function(t,e,r){const n=e<t;n&&([t,e]=[e,t]);const o=r&&"function"==typeof r.range?r:s(t,e,r),i=o?o.range(t,+e+1):[];return n?i.reverse():i},s]}Mn.every=t=>isFinite(t=Math.floor(t))&&t>0?rn((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null,Mn.range;const[Dn,Ln]=In(Mn,Tn,wn,fn,cn,sn),[Rn,zn]=In(kn,Cn,dn,ln,un,an);function Nn(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Fn(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Bn(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var Vn,Un,qn,$n={"-":"",_:" ",0:"0"},Gn=/^\s*\d+/,Wn=/^%/,Zn=/[\\^$*+?|[\]().{}]/g;function Hn(t,e,r){var n=t<0?"-":"",o=(n?-t:t)+"",i=o.length;return n+(i<r?new Array(r-i+1).join(e)+o:o)}function Kn(t){return t.replace(Zn,"\\$&")}function Yn(t){return new RegExp("^(?:"+t.map(Kn).join("|")+")","i")}function Xn(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function Jn(t,e,r){var n=Gn.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function Qn(t,e,r){var n=Gn.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function to(t,e,r){var n=Gn.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function eo(t,e,r){var n=Gn.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function ro(t,e,r){var n=Gn.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function no(t,e,r){var n=Gn.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function oo(t,e,r){var n=Gn.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function io(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function ao(t,e,r){var n=Gn.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function so(t,e,r){var n=Gn.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function uo(t,e,r){var n=Gn.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function co(t,e,r){var n=Gn.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function lo(t,e,r){var n=Gn.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function po(t,e,r){var n=Gn.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function fo(t,e,r){var n=Gn.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function ho(t,e,r){var n=Gn.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function mo(t,e,r){var n=Gn.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function yo(t,e,r){var n=Wn.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function vo(t,e,r){var n=Gn.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function go(t,e,r){var n=Gn.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function bo(t,e){return Hn(t.getDate(),e,2)}function _o(t,e){return Hn(t.getHours(),e,2)}function xo(t,e){return Hn(t.getHours()%12||12,e,2)}function wo(t,e){return Hn(1+ln.count(kn(t),t),e,3)}function Oo(t,e){return Hn(t.getMilliseconds(),e,3)}function Eo(t,e){return Oo(t,e)+"000"}function So(t,e){return Hn(t.getMonth()+1,e,2)}function Po(t,e){return Hn(t.getMinutes(),e,2)}function jo(t,e){return Hn(t.getSeconds(),e,2)}function Ao(t){var e=t.getDay();return 0===e?7:e}function Co(t,e){return Hn(dn.count(kn(t)-1,t),e,2)}function To(t){var e=t.getDay();return e>=4||0===e?gn(t):gn.ceil(t)}function ko(t,e){return t=To(t),Hn(gn.count(kn(t),t)+(4===kn(t).getDay()),e,2)}function Mo(t){return t.getDay()}function Io(t,e){return Hn(mn.count(kn(t)-1,t),e,2)}function Do(t,e){return Hn(t.getFullYear()%100,e,2)}function Lo(t,e){return Hn((t=To(t)).getFullYear()%100,e,2)}function Ro(t,e){return Hn(t.getFullYear()%1e4,e,4)}function zo(t,e){var r=t.getDay();return Hn((t=r>=4||0===r?gn(t):gn.ceil(t)).getFullYear()%1e4,e,4)}function No(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Hn(e/60|0,"0",2)+Hn(e%60,"0",2)}function Fo(t,e){return Hn(t.getUTCDate(),e,2)}function Bo(t,e){return Hn(t.getUTCHours(),e,2)}function Vo(t,e){return Hn(t.getUTCHours()%12||12,e,2)}function Uo(t,e){return Hn(1+pn.count(Mn(t),t),e,3)}function qo(t,e){return Hn(t.getUTCMilliseconds(),e,3)}function $o(t,e){return qo(t,e)+"000"}function Go(t,e){return Hn(t.getUTCMonth()+1,e,2)}function Wo(t,e){return Hn(t.getUTCMinutes(),e,2)}function Zo(t,e){return Hn(t.getUTCSeconds(),e,2)}function Ho(t){var e=t.getUTCDay();return 0===e?7:e}function Ko(t,e){return Hn(wn.count(Mn(t)-1,t),e,2)}function Yo(t){var e=t.getUTCDay();return e>=4||0===e?Pn(t):Pn.ceil(t)}function Xo(t,e){return t=Yo(t),Hn(Pn.count(Mn(t),t)+(4===Mn(t).getUTCDay()),e,2)}function Jo(t){return t.getUTCDay()}function Qo(t,e){return Hn(On.count(Mn(t)-1,t),e,2)}function ti(t,e){return Hn(t.getUTCFullYear()%100,e,2)}function ei(t,e){return Hn((t=Yo(t)).getUTCFullYear()%100,e,2)}function ri(t,e){return Hn(t.getUTCFullYear()%1e4,e,4)}function ni(t,e){var r=t.getUTCDay();return Hn((t=r>=4||0===r?Pn(t):Pn.ceil(t)).getUTCFullYear()%1e4,e,4)}function oi(){return"+0000"}function ii(){return"%"}function ai(t){return+t}function si(t){return Math.floor(+t/1e3)}function ui(t){return new Date(t)}function ci(t){return t instanceof Date?+t:+new Date(+t)}function li(t,e,r,n,o,i,a,s,u,c){var l=Je(),p=l.invert,f=l.domain,h=c(".%L"),d=c(":%S"),m=c("%I:%M"),y=c("%I %p"),v=c("%a %d"),g=c("%b %d"),b=c("%B"),_=c("%Y");function x(t){return(u(t)<t?h:s(t)<t?d:a(t)<t?m:i(t)<t?y:n(t)<t?o(t)<t?v:g:r(t)<t?b:_)(t)}return l.invert=function(t){return new Date(p(t))},l.domain=function(t){return arguments.length?f(Array.from(t,ci)):f().map(ui)},l.ticks=function(e){var r=f();return t(r[0],r[r.length-1],null==e?10:e)},l.tickFormat=function(t,e){return null==e?x:c(e)},l.nice=function(t){var r=f();return t&&"function"==typeof t.range||(t=e(r[0],r[r.length-1],null==t?10:t)),t?f(vr(r,t)):l},l.copy=function(){return Ye(l,li(t,e,r,n,o,i,a,s,u,c))},l}function pi(){return Et.apply(li(Rn,zn,kn,Cn,dn,ln,un,an,on,Un).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function fi(){return Et.apply(li(Dn,Ln,Mn,Tn,wn,pn,cn,sn,on,qn).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function hi(){var t,e,r,n,o,i=0,a=1,s=We,u=!1;function c(e){return null==e||isNaN(e=+e)?o:s(0===r?.5:(e=(n(e)-t)*r,u?Math.max(0,Math.min(1,e)):e))}function l(t){return function(e){var r,n;return arguments.length?([r,n]=e,s=t(r,n),c):[s(0),s(1)]}}return c.domain=function(o){return arguments.length?([i,a]=o,t=n(i=+i),e=n(a=+a),r=t===e?0:1/(e-t),c):[i,a]},c.clamp=function(t){return arguments.length?(u=!!t,c):u},c.interpolator=function(t){return arguments.length?(s=t,c):s},c.range=l(Ue),c.rangeRound=l(qe),c.unknown=function(t){return arguments.length?(o=t,c):o},function(o){return n=o,t=o(i),e=o(a),r=t===e?0:1/(e-t),c}}function di(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function mi(){var t=dr(hi()(We));return t.copy=function(){return di(t,mi())},St.apply(t,arguments)}function yi(){var t=Er(hi()).domain([1,10]);return t.copy=function(){return di(t,yi()).base(t.base())},St.apply(t,arguments)}function vi(){var t=Ar(hi());return t.copy=function(){return di(t,vi()).constant(t.constant())},St.apply(t,arguments)}function gi(){var t=Ir(hi());return t.copy=function(){return di(t,gi()).exponent(t.exponent())},St.apply(t,arguments)}function bi(){return gi.apply(null,arguments).exponent(.5)}function _i(){var t=[],e=We;function r(r){if(null!=r&&!isNaN(r=+r))return e((Ht(t,r,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let r of e)null==r||isNaN(r=+r)||t.push(r);return t.sort(Vt),r},r.interpolator=function(t){return arguments.length?(e=t,r):e},r.range=function(){return t.map(((r,n)=>e(n/(t.length-1))))},r.quantiles=function(e){return Array.from({length:e+1},((r,n)=>qr(t,n/e)))},r.copy=function(){return _i(e).domain(t)},St.apply(r,arguments)}function xi(){var t,e,r,n,o,i,a,s=0,u=.5,c=1,l=1,p=We,f=!1;function h(t){return isNaN(t=+t)?a:(t=.5+((t=+i(t))-e)*(l*t<l*e?n:o),p(f?Math.max(0,Math.min(1,t)):t))}function d(t){return function(e){var r,n,o;return arguments.length?([r,n,o]=e,p=function(t,e){void 0===e&&(e=t,t=Ue);for(var r=0,n=e.length-1,o=e[0],i=new Array(n<0?0:n);r<n;)i[r]=t(o,o=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return i[e](t-e)}}(t,[r,n,o]),h):[p(0),p(.5),p(1)]}}return h.domain=function(a){return arguments.length?([s,u,c]=a,t=i(s=+s),e=i(u=+u),r=i(c=+c),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),l=e<t?-1:1,h):[s,u,c]},h.clamp=function(t){return arguments.length?(f=!!t,h):f},h.interpolator=function(t){return arguments.length?(p=t,h):p},h.range=d(Ue),h.rangeRound=d(qe),h.unknown=function(t){return arguments.length?(a=t,h):a},function(a){return i=a,t=a(s),e=a(u),r=a(c),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),l=e<t?-1:1,h}}function wi(){var t=dr(xi()(We));return t.copy=function(){return di(t,wi())},St.apply(t,arguments)}function Oi(){var t=Er(xi()).domain([.1,1,10]);return t.copy=function(){return di(t,Oi()).base(t.base())},St.apply(t,arguments)}function Ei(){var t=Ar(xi());return t.copy=function(){return di(t,Ei()).constant(t.constant())},St.apply(t,arguments)}function Si(){var t=Ir(xi());return t.copy=function(){return di(t,Si()).exponent(t.exponent())},St.apply(t,arguments)}function Pi(){return Si.apply(null,arguments).exponent(.5)}Vn=function(t){var e=t.dateTime,r=t.date,n=t.time,o=t.periods,i=t.days,a=t.shortDays,s=t.months,u=t.shortMonths,c=Yn(o),l=Xn(o),p=Yn(i),f=Xn(i),h=Yn(a),d=Xn(a),m=Yn(s),y=Xn(s),v=Yn(u),g=Xn(u),b={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return s[t.getMonth
1()]},c:null,d:bo,e:bo,f:Eo,g:Lo,G:zo,H:_o,I:xo,j:wo,L:Oo,m:So,M:Po,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:ai,s:si,S:jo,u:Ao,U:Co,V:ko,w:Mo,W:Io,x:null,X:null,y:Do,Y:Ro,Z:No,"%":ii},_={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:Fo,e:Fo,f:$o,g:ei,G:ni,H:Bo,I:Vo,j:Uo,L:qo,m:Go,M:Wo,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:ai,s:si,S:Zo,u:Ho,U:Ko,V:Xo,w:Jo,W:Qo,x:null,X:null,y:ti,Y:ri,Z:oi,"%":ii},x={a:function(t,e,r){var n=h.exec(e.slice(r));return n?(t.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=p.exec(e.slice(r));return n?(t.w=f.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=v.exec(e.slice(r));return n?(t.m=g.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=m.exec(e.slice(r));return n?(t.m=y.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return E(t,e,r,n)},d:uo,e:uo,f:mo,g:oo,G:no,H:lo,I:lo,j:co,L:ho,m:so,M:po,p:function(t,e,r){var n=c.exec(e.slice(r));return n?(t.p=l.get(n[0].toLowerCase()),r+n[0].length):-1},q:ao,Q:vo,s:go,S:fo,u:Qn,U:to,V:eo,w:Jn,W:ro,x:function(t,e,n){return E(t,r,e,n)},X:function(t,e,r){return E(t,n,e,r)},y:oo,Y:no,Z:io,"%":yo};function w(t,e){return function(r){var n,o,i,a=[],s=-1,u=0,c=t.length;for(r instanceof Date||(r=new Date(+r));++s<c;)37===t.charCodeAt(s)&&(a.push(t.slice(u,s)),null!=(o=$n[n=t.charAt(++s)])?n=t.charAt(++s):o="e"===n?" ":"0",(i=e[n])&&(n=i(r,o)),a.push(n),u=s+1);return a.push(t.slice(u,s)),a.join("")}}function O(t,e){return function(r){var n,o,i=Bn(1900,void 0,1);if(E(i,t,r+="",0)!=r.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(e&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(n=Fn(Bn(i.y,0,1))).getUTCDay(),n=o>4||0===o?On.ceil(n):On(n),n=pn.offset(n,7*(i.V-1)),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(o=(n=Nn(Bn(i.y,0,1))).getDay(),n=o>4||0===o?mn.ceil(n):mn(n),n=ln.offset(n,7*(i.V-1)),i.y=n.getFullYear(),i.m=n.getMonth(),i.d=n.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Fn(Bn(i.y,0,1)).getUTCDay():Nn(Bn(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Fn(i)):Nn(i)}}function E(t,e,r,n){for(var o,i,a=0,s=e.length,u=r.length;a<s;){if(n>=u)return-1;if(37===(o=e.charCodeAt(a++))){if(o=e.charAt(a++),!(i=x[o in $n?e.charAt(a++):o])||(n=i(t,r,n))<0)return-1}else if(o!=r.charCodeAt(n++))return-1}return n}return b.x=w(r,b),b.X=w(n,b),b.c=w(e,b),_.x=w(r,_),_.X=w(n,_),_.c=w(e,_),{format:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=O(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",_);return e.toString=function(){return t},e},utcParse:function(t){var e=O(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Un=Vn.format,Vn.parse,qn=Vn.utcFormat,Vn.utcParse;var ji=["linear","time","log","sqrt"];function Ai(t){return"function"==typeof t?R()(t.copy)&&R()(t.domain)&&R()(t.range):"string"==typeof t&&ft()(ji,t)}function Ci(t,e){return!(!t.scale||(t.scale.x||t.scale.y)&&!t.scale[e])}function Ti(t,e){if(!t.data)return"linear";var r=Q(t[e]);return vt(t.data.map((function(t){var n=lt()(r(t))?r(t)[e]:r(t);return void 0!==n?n:t[e]})))?"time":"linear"}function ki(t){if(Ai(t)){var e=function(t){return"scale".concat(function(t){return t&&t[0].toUpperCase()+t.slice(1)}(t))}(t);return a[e]()}return mr()}function Mi(t,e){var r=Di(t,e);if(r)return"string"==typeof r?ki(r):r;var n=function(t,e){var r;if(t.domain&&t.domain[e]?r=t.domain[e]:t.domain&&Array.isArray(t.domain)&&(r=t.domain),r)return vt(r)?"time":"linear"}(t,e)||Ti(t,e);return ki(n)}function Ii(){return mr()}function Di(t,e){if(Ci(t,e)){var r=t.scale[e]||t.scale;return Ai(r)?R()(r)?r:ki(r):void 0}}function Li(t,e){return function(t,e){if(Ci(t,e)){var r=t.scale[e]||t.scale;return"string"==typeof r?r:zi(r)}}(t,e)||Ti(t,e)}var Ri=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function zi(t){if("string"==typeof t)return t;var e=Ri.filter((function(e){return void 0!==t[e.method]}))[0];return e?e.name:void 0}var Ni=function(t){var e=function(e){return function(r,n,o){if(null==r[n])return e?new Error("Required `".concat(n,"` was not specified in `").concat(o,"`.")):null;for(var i=arguments.length,a=new Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];return t.apply(void 0,[r,n,o].concat(a))}};return Object.assign(e(!1),{isRequired:e(!0)})},Fi=function(){return null},Bi=function(){},Vi=function(t){return void 0===t?Bi:null===t?Fi:t.constructor},Ui=function(t){return void 0===t?"undefined":null===t?"null":Object.prototype.toString.call(t).slice(8,-1)};function qi(t,e){return function(r,n,o){return null!=r[n]&&'"'.concat(n,'" property of "').concat(o,'" has been deprecated ').concat(e),A().checkPropTypes(function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},n,t),r,n,o),null}}function $i(t){return Ni((function(e,r,n){for(var o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return t.reduce((function(t,o){return t||o.apply(void 0,[e,r,n].concat(i))}),null)}))}var Gi=Ni((function(t,e,r){var n=t[e];return"number"!=typeof n||n<0?new Error("`".concat(e,"` in `").concat(r,"` must be a non-negative number.")):null})),Wi=Ni((function(t,e,r){var n=t[e];return"number"!=typeof n||n%1!=0?new Error("`".concat(e,"` in `").concat(r,"` must be an integer.")):null})),Zi=Ni((function(t,e,r){var n=t[e];return"number"!=typeof n||n<=0?new Error("`".concat(e,"` in `").concat(r,"` must be a number greater than zero.")):null})),Hi=Ni((function(t,e,r){var n=t[e];return Array.isArray(n)&&2===n.length&&n[1]!==n[0]?null:new Error("`".concat(e,"` in `").concat(r,"` must be an array of two unique numeric values."))})),Ki=Ni((function(t,e,r){return Ai(t[e])?null:new Error("`".concat(e,"` in `").concat(r,"` must be a d3 scale."))})),Yi=Ni((function(t,e,r){var n=t[e];if(!Array.isArray(n))return new Error("`".concat(e,"` in `").concat(r,"` must be an array."));if(n.length<2)return null;var o=Vi(n[0]),i=st()(n,(function(t){return o!==Vi(t)}));if(i){var a=Ui(n[0]),s=Ui(i);return new Error("Expected `".concat(e,"` in `").concat(r,"` to be a ")+"homogeneous array, but found types `".concat(a,"` and ")+"`".concat(s,"`."))}return null})),Xi=Ni((function(t,e){return t[e]&&Array.isArray(t[e])&&t[e].length!==t.data.length?new Error("Length of data and ".concat(e," arrays must match.")):null})),Ji=Ni((function(t,e,r){return t[e]&&!it()(t[e])?new Error("`".concat(e,"` in `").concat(r,"` must be a regular expression.")):null})),Qi={dataProps:{categories:A().oneOfType([A().arrayOf(A().string),A().shape({x:A().arrayOf(A().string),y:A().arrayOf(A().string)})]),data:A().oneOfType([A().array,A().object]),dataComponent:A().element,disableInlineStyles:A().bool,labelComponent:A().element,labels:A().oneOfType([A().func,A().array]),samples:Gi,sortKey:A().oneOfType([A().func,$i([Wi,Gi]),A().str
1ing,A().arrayOf(A().string.isRequired)]),sortOrder:A().oneOf(["ascending","descending"]),style:A().shape({parent:A().object,data:A().object,labels:A().object}),x:A().oneOfType([A().func,$i([Wi,Gi]),A().string,A().arrayOf(A().string.isRequired)]),y:A().oneOfType([A().func,$i([Wi,Gi]),A().string,A().arrayOf(A().string.isRequired)]),y0:A().oneOfType([A().func,$i([Wi,Gi]),A().string,A().arrayOf(A().string.isRequired)])},baseProps:{animate:A().oneOfType([A().bool,A().object]),containerComponent:A().element,domain:A().oneOfType([Hi,A().shape({x:Hi,y:Hi})]),maxDomain:A().oneOfType([A().number,A().instanceOf(Date),A().shape({x:A().oneOfType([A().number,A().instanceOf(Date)]),y:A().oneOfType([A().number,A().instanceOf(Date)])})]),minDomain:A().oneOfType([A().number,A().instanceOf(Date),A().shape({x:A().oneOfType([A().number,A().instanceOf(Date)]),y:A().oneOfType([A().number,A().instanceOf(Date)])})]),domainPadding:A().oneOfType([A().shape({x:A().oneOfType([A().number,A().arrayOf(A().number)]),y:A().oneOfType([A().number,A().arrayOf(A().number)])}),A().number,A().arrayOf(A().number)]),eventKey:A().oneOfType([A().func,$i([Wi,Gi]),A().string]),events:A().arrayOf(A().shape({target:A().oneOf(["data","labels","parent"]),eventKey:A().oneOfType([A().array,$i([Wi,Gi]),A().string]),eventHandlers:A().object})),externalEventMutations:A().arrayOf(A().shape({callback:A().func,childName:A().oneOfType([A().string,A().array]),eventKey:A().oneOfType([A().array,$i([Wi,Gi]),A().string]),mutation:A().func,target:A().oneOfType([A().string,A().array])})),groupComponent:A().element,height:Gi,name:A().string,origin:A().shape({x:A().number,y:A().number}),padding:A().oneOfType([A().number,A().shape({top:A().number,bottom:A().number,left:A().number,right:A().number})]),polar:A().bool,range:A().oneOfType([Hi,A().shape({x:Hi.isRequired,y:Hi.isRequired})]),scale:A().oneOfType([Ki,A().shape({x:Ki.isRequired,y:Ki.isRequired})]),sharedEvents:A().shape({events:A().array,getEventState:A().func}),singleQuadrantDomainPadding:A().oneOfType([A().bool,A().shape({x:A().oneOfType([A().bool]),y:A().oneOfType([A().bool])})]),standalone:A().bool,theme:A().object,width:Gi},primitiveProps:{active:A().bool,ariaLabel:A().oneOfType([A().string,A().func]),className:A().string,clipPath:A().string,data:A().oneOfType([A().array,A().object]),desc:A().oneOfType([A().string,A().func]),disableInlineStyles:A().bool,events:A().object,id:A().oneOfType([A().number,A().string,A().func]),index:A().oneOfType([A().number,A().string]),origin:A().shape({x:A().number,y:A().number}),polar:A().bool,role:A().string,scale:A().oneOfType([Ki,A().shape({x:Ki,y:Ki})]),shapeRendering:A().string,style:A().object,tabIndex:A().oneOfType([A().number,A().func]),transform:A().string}},ta=["desc"];function ea(){return ea=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ea.apply(this,arguments)}var ra=function(t){var e=t.desc,r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,ta);return e?P().createElement("rect",ea({vectorEffect:"non-scaling-stroke"},r),P().createElement("desc",null,e)):P().createElement("rect",ea({vectorEffect:"non-scaling-stroke"},r))},na=["desc"];function oa(){return oa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},oa.apply(this,arguments)}var ia=function(t){var e=t.desc,r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,na);return e?P().createElement("circle",oa({vectorEffect:"non-scaling-stroke"},r),P().createElement("desc",null,e)):P().createElement("circle",oa({vectorEffect:"non-scaling-stroke"},r))};function aa(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function sa(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?aa(Object(r),!0).forEach((function(e){ua(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):aa(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ua(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ca=function(t){return(t=function(t){var e=W(t.id,t);return E()({},t,{id:e})}(t)).polar?P().cloneElement(t.circleComponent,sa(sa({},t.events),{},{style:t.style,role:t.role,shapeRendering:t.shapeRendering,cx:t.x,cy:t.y,r:t.height,className:t.className})):P().cloneElement(t.rectComponent,sa(sa({},t.events),{},{style:t.style,role:t.role,shapeRendering:t.shapeRendering,x:t.x,y:t.y,rx:t.rx,ry:t.ry,width:t.width,height:t.height,className:t.className}))};function la(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function pa(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?la(Object(r),!0).forEach((function(e){fa(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):la(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function fa(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}ca.propTypes=sa(sa({},Qi.primitiveProps),{},{circleComponent:A().element,height:A().number,rectComponent:A().element,rx:A().number,ry:A().number,width:A().number,x:A().number,y:A().number}),ca.defaultProps={circleComponent:P().createElement(ia,null),rectComponent:P().createElement(ra,null),role:"presentation",shapeRendering:"auto"};var ha=function(t){return t=function(t){var e=W(t.ariaLabel,t),r=W(t.desc,t),n=W(t.id,t),o=Z(E()({fill:"none"},t.style),t),i=W(t.tabIndex,t);return E()({},t,{ariaLabel:e,desc:r,id:n,style:o,tabIndex:i})}(t),P().cloneElement(t.rectComponent,pa(pa({},t.events),{},{"aria-label":t.ariaLabel,style:t.style,desc:t.desc,tabIndex:t.tabIndex,transform:t.transform,className:t.className,role:t.role,shapeRendering:t.shapeRendering,x:t.x,y:t.y,width:t.width,height:t.height,clipPath:t.clipPath}))};ha.propTypes=pa(pa({},Qi.primitiveProps),{},{height:A().number,rectComponent:A().element,width:A().number,x:A().number,y:A().number}),ha.defaultProps={rectComponent:P().createElement(ra,null),role:"presentation",shapeRendering:"auto"};var da=function(t){return P().createElement("defs",null,P().createElement("clipPath",{id:t.clipId},t.children))};da.propTypes={children:A().oneOfType([A().arrayOf(A().node),A().node]),clipId:A().oneOfType([A().number,A().string])};var ma=["desc"];function ya(){return ya=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ya.apply(this,arguments)}var va=function(t){var e=t.desc,r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,ma);return e?P().createElement("line",ya({vectorEffect:"non-scaling-stroke"},r),P().createElement("desc",null,e)):P().createElement("line",ya({vectorEffect:"non-scaling-stroke"},r))};function ga(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ba(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ga(Object(r),!0).forEach((function(e){_a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ga(Object(r)).forEac
1h((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var xa=function(t){return t=function(t){var e=W(t.ariaLabel,t),r=W(t.desc,t),n=W(t.id,t),o=Z(E()({stroke:"black"},t.style),t),i=W(t.tabIndex,t);return E()({},t,{ariaLabel:e,desc:r,id:n,style:o,tabIndex:i})}(t),P().cloneElement(t.lineComponent,ba(ba({},t.events),{},{"aria-label":t.ariaLabel,style:t.style,desc:t.desc,tabIndex:t.tabIndex,className:t.className,role:t.role,shapeRendering:t.shapeRendering,x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2,transform:t.transform,clipPath:t.clipPath}))};function wa(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Oa(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?wa(Object(r),!0).forEach((function(e){Ea(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wa(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ea(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}xa.propTypes=ba(ba({},Qi.primitiveProps),{},{datum:A().any,lineComponent:A().element,x1:A().number,x2:A().number,y1:A().number,y2:A().number}),xa.defaultProps={lineComponent:P().createElement(va,null),role:"presentation",shapeRendering:"auto"};var Sa=function(t){t=function(t){var e=W(t.ariaLabel,t),r=W(t.desc,t),n=W(t.id,t),o=Z(t.style,t),i=W(t.tabIndex,t);return E()({},t,{ariaLabel:e,desc:r,id:n,style:o,tabIndex:i})}(t);var e=t,r=e.ariaLabel,n=e.groupComponent,o=e.lineComponent,i=e.events,a=e.className,s=e.majorWhisker,u=e.minorWhisker,c=e.transform,l=e.clipPath,p=e.role,f=e.shapeRendering,h=e.style,d=e.desc,m=e.tabIndex,y=Oa(Oa({},i),{},{style:h,desc:d,tabIndex:m,className:a,transform:c,clipPath:l,role:p,shapeRendering:f});return P().cloneElement(n,{},[P().cloneElement(o,E()({key:"major-whisker","aria-label":r},y,s)),P().cloneElement(o,E()({key:"minor-whisker","aria-label":r},y,u))])};Sa.propTypes=Oa(Oa({},Qi.primitiveProps),{},{groupComponent:A().element,lineComponent:A().element,majorWhisker:A().shape({x1:A().number,x2:A().number,y1:A().number,y2:A().number}),minorWhisker:A().shape({x1:A().number,x2:A().number,y1:A().number,y2:A().number})}),Sa.defaultProps={groupComponent:P().createElement("g",null),lineComponent:P().createElement(va,null),role:"presentation",shapeRendering:"auto"};var Pa=["desc"],ja=function(t){var e=t.desc,r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,Pa);return e?P().createElement("path",r,P().createElement("desc",null,e)):P().createElement("path",r)},Aa=function(t){return P().createElement("tspan",t)},Ca=["children","title","desc"],Ta=function(t){var e=t.children,r=t.title,n=t.desc,o=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,Ca);return P().createElement("text",o,r&&P().createElement("title",null,r),n&&P().createElement("desc",null,n),e)};Ta.propTypes={children:A().node,desc:A().string,title:A().string};var ka=r(96026),Ma=r.n(ka);function Ia(t,e,r){return"M ".concat(t,", ").concat(e,"\n m ").concat(-r,", 0\n a ").concat(r,", ").concat(r," 0 1,0 ").concat(2*r,",0\n a ").concat(r,", ").concat(r," 0 1,0 ").concat(2*-r,",0")}function Da(t,e,r){var n=.87*r,o=t-n,i=e+n,a=t+n-o;return"M ".concat(o,", ").concat(i,"\n h").concat(a,"\n v-").concat(a,"\n h-").concat(a,"\n z")}function La(t,e,r){var n=.87*r,o=Math.sqrt(n*n*2);return"M ".concat(t,", ").concat(e+o,"\n l ").concat(o,", -").concat(o,"\n l -").concat(o,", -").concat(o,"\n l -").concat(o,", ").concat(o,"\n l ").concat(o,", ").concat(o,"\n z")}function Ra(t,e,r){var n=t+r,o=e-r,i=e+r/2*Math.sqrt(3);return"M ".concat(t-r,", ").concat(o,"\n L ").concat(n,", ").concat(o,"\n L ").concat(t,", ").concat(i,"\n z")}function za(t,e,r){var n=t+r,o=e-r/2*Math.sqrt(3),i=e+r;return"M ".concat(t-r,", ").concat(i,"\n L ").concat(n,", ").concat(i,"\n L ").concat(t,", ").concat(o,"\n z")}function Na(t,e,r){var n=1.1*r,o=n/1.5;return"\n M ".concat(t-o/2,", ").concat(e+n,"\n v-").concat(o,"\n h-").concat(o,"\n v-").concat(o,"\n h").concat(o,"\n v-").concat(o,"\n h").concat(o,"\n v").concat(o,"\n h").concat(o,"\n v").concat(o,"\n h-").concat(o,"\n v").concat(o,"\n z")}function Fa(t,e,r){var n=.8*r,o=n/1.5;return"\n M ".concat(t-o/2,", ").concat(e+n+o,"\n v-").concat(2*o,"\n h-").concat(o,"\n v-").concat(o,"\n h").concat(o,"\n v-").concat(o,"\n h").concat(o,"\n v").concat(o,"\n h").concat(o,"\n v").concat(o,"\n h-").concat(o,"\n v").concat(2*o,"\n z")}function Ba(t,e,r){var n=1.1*r,o=n-.3*n,i=t-n,a=e+o/2,s=t+n-i;return"M ".concat(i,", ").concat(a,"\n h").concat(s,"\n v-").concat(o,"\n h-").concat(s,"\n z")}function Va(t,e,r){var n=1.35*r,o=Math.PI/5,i=Ma()(10).map((function(r){var i=r%2==0?n:n/2;return"".concat(i*Math.sin(o*(r+1))+t,",\n ").concat(i*Math.cos(o*(r+1))+e)}));return"M ".concat(i.join("L")," z")}function Ua(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return qa(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qa(t,e):void 0}}
1(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qa(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function $a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ga(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Wa={startsWith:["data-","aria-"],exactMatch:[]},Za=function(t,e){return"function"==typeof t?t(e):t},Ha=function(t){var e=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$a(Object(r),!0).forEach((function(e){Ga(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t);return Object.fromEntries(Object.entries(e).filter((function(t){return function(t){return!(!function(t){var e=!1;return Wa.startsWith.forEach((function(r){new RegExp("\\b(".concat(r,")(\\w|-)+"),"g").test(t)&&(e=!0)})),e}(t)&&!function(t){return Wa.exactMatch.includes(t)}(t))}(Ua(t,1)[0])})).map((function(e){var r=Ua(e,2),n=r[0],o=r[1];return[n,Za(o,t)]})))},Ka=function(t,e){return S.cloneElement(t,Ha(e))};function Ya(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Xa(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ya(Object(r),!0).forEach((function(e){Ja(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ya(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ja(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Qa=function(t){var e=t.x,r=t.y,n=t.size,o=t.symbol;return t.getPath?t.getPath(e,r,n):("function"==typeof c[o]?c[o]:c.circle)(e,r,n)},ts=function(t){t=function(t){var e=W(t.ariaLabel,t),r=W(t.desc,t),n=W(t.id,t),o=W(t.size,t),i=Z(t.style,t),a=W(t.symbol,t),s=W(t.tabIndex,t);return E()({},t,{ariaLabel:e,desc:r,id:n,size:o,style:i,symbol:a,tabIndex:s})}(t);var e=Ha(t);return P().cloneElement(t.pathComponent,Xa(Xa({},t.events),{},{"aria-label":t.ariaLabel,d:Qa(t),style:t.style,desc:t.desc,tabIndex:t.tabIndex,role:t.role,shapeRendering:t.shapeRendering,className:t.className,transform:t.transform,clipPath:t.clipPath},e))};ts.propTypes=Xa(Xa({},Qi.primitiveProps),{},{datum:A().object,getPath:A().func,pathComponent:A().element,size:A().oneOfType([A().number,A().func]),symbol:A().oneOfType([A().oneOf(["circle","cross","diamond","plus","minus","square","star","triangleDown","triangleUp"]),A().func]),x:A().number,y:A().number}),ts.defaultProps={pathComponent:P().createElement(ja,null),role:"presentation",shapeRendering:"auto"};const es=t=>+t;function rs(t){return t*t}function ns(t){return t*(2-t)}function os(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function is(t){return t*t*t}function as(t){return--t*t*t+1}function ss(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var us=function t(e){function r(t){return Math.pow(t,e)}return e=+e,r.exponent=t,r}(3),cs=function t(e){function r(t){return 1-Math.pow(1-t,e)}return e=+e,r.exponent=t,r}(3),ls=function t(e){function r(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,r.exponent=t,r}(3),ps=Math.PI,fs=ps/2;function hs(t){return 1==+t?1:1-Math.cos(t*fs)}function ds(t){return Math.sin(t*fs)}function ms(t){return(1-Math.cos(ps*t))/2}function ys(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function vs(t){return ys(1-+t)}function gs(t){return 1-ys(t)}function bs(t){return((t*=2)<=1?ys(1-t):2-ys(t-1))/2}function _s(t){return 1-Math.sqrt(1-t*t)}function xs(t){return Math.sqrt(1- --t*t)}function ws(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var Os=4/11,Es=7.5625;function Ss(t){return 1-Ps(1-t)}function Ps(t){return(t=+t)<Os?Es*t*t:t<.7272727272727273?Es*(t-=.5454545454545454)*t+.75:t<.9090909090909091?Es*(t-=.8181818181818182)*t+.9375:Es*(t-=.9545454545454546)*t+.984375}function js(t){return((t*=2)<=1?1-Ps(1-t):Ps(t-1)+1)/2}var As,Cs,Ts=1.70158,ks=function t(e){function r(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,r.overshoot=t,r}(Ts),Ms=function t(e){function r(t){return--t*t*((t+1)*e+t)+1}return e=+e,r.overshoot=t,r}(Ts),Is=function t(e){function r(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,r.overshoot=t,r}(Ts),Ds=2*Math.PI,Ls=function t(e,r){var n=Math.asin(1/(e=Math.max(1,e)))*(r/=Ds);function o(t){return e*ys(- --t)*Math.sin((n-t)/r)}return o.amplitude=function(e){return t(e,r*Ds)}
1,o.period=function(r){return t(e,r)},o}(1,.3),Rs=function t(e,r){var n=Math.asin(1/(e=Math.max(1,e)))*(r/=Ds);function o(t){return 1-e*ys(t=+t)*Math.sin((t+n)/r)}return o.amplitude=function(e){return t(e,r*Ds)},o.period=function(r){return t(e,r)},o}(1,.3),zs=function t(e,r){var n=Math.asin(1/(e=Math.max(1,e)))*(r/=Ds);function o(t){return((t=2*t-1)<0?e*ys(-t)*Math.sin((n-t)/r):2-e*ys(t)*Math.sin((n+t)/r))/2}return o.amplitude=function(e){return t(e,r*Ds)},o.period=function(r){return t(e,r)},o}(1,.3),Ns=r(75472),Fs=r.n(Ns),Bs=function(t){if(null!==t)switch(typeof t){case"undefined":case"boolean":return!1;case"number":return!isNaN(t)&&t!==Number.POSITIVE_INFINITY&&t!==Number.NEGATIVE_INFINITY;case"string":case"function":return!0;case"object":return t instanceof Date||Array.isArray(t)||lt()(t)}return!1},Vs=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return function(n){return n<r?t:e}},Us=function(t,e){return function(r){return r>=1?e:function(){return Ue("function"==typeof t?t.apply(this,arguments):t,"function"==typeof e?e.apply(this,arguments):e)(r)}}},qs=function(t,e){var r,n,o,i=function(t){return Array.isArray(t)?Fs()(t,"key"):t},a={},s={};for(r in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)r in t?a[r]=(n=i(t[r]))!==(o=i(e[r]))&&Bs(n)&&Bs(o)?"function"==typeof n||"function"==typeof o?Us(n,o):"object"==typeof n&<()(n)||"object"==typeof o&<()(o)?qs(n,o):Ue(n,o):Vs(n,o):s[r]=e[r];return function(t){for(r in a)s[r]=a[r](t);return s}},$s=0,Gs=0,Ws=0,Zs=0,Hs=0,Ks=0,Ys="object"==typeof performance&&performance.now?performance:Date,Xs="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Js(){return Hs||(Xs(Qs),Hs=Ys.now()+Ks)}function Qs(){Hs=0}function tu(){this._call=this._time=this._next=null}function eu(t,e,r){var n=new tu;return n.restart(t,e,r),n}function ru(){Hs=(Zs=Ys.now())+Ks,$s=Gs=0;try{!function(){Js(),++$s;for(var t,e=As;e;)(t=Hs-e._time)>=0&&e._call.call(void 0,t),e=e._next;--$s}()}finally{$s=0,function(){for(var t,e,r=As,n=1/0;r;)r._call?(n>r._time&&(n=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:As=e);Cs=t,ou(n)}(),Hs=0}}function nu(){var t=Ys.now(),e=t-Zs;e>1e3&&(Ks-=e,Zs=t)}function ou(t){$s||(Gs&&(Gs=clearTimeout(Gs)),t-Hs>24?(t<1/0&&(Gs=setTimeout(ru,t-Ys.now()-Ks)),Ws&&(Ws=clearInterval(Ws))):(Ws||(Zs=Ys.now(),Ws=setInterval(nu,1e3)),$s=1,Xs(ru)))}tu.prototype=eu.prototype={constructor:tu,restart:function(t,e,r){if("function"!=typeof t)throw new TypeError("callback is not a function");r=(null==r?Js():+r)+(null==e?0:+e),this._next||Cs===this||(Cs?Cs._next=this:As=this,Cs=this),this._call=t,this._time=r,ou()},stop:function(){this._call&&(this._call=null,this._time=1/0,ou())}};var iu=function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.shouldAnimate=void 0,this.subscribers=void 0,this.activeSubscriptions=void 0,this.timer=void 0,this.loop=function(){e.subscribers.forEach((function(t){t.callback(Js()-t.startTime,t.duration)}))},this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}var e,r;return e=t,(r=[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"start",value:function(){this.timer||(this.timer=eu(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(t,e){e=this.shouldAnimate?e:0;var r=this.subscribers.push({startTime:Js(),callback:t,duration:e});return this.activeSubscriptions++,this.start(),r}},{key:"unsubscribe",value:function(t){null!==t&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}
1(),au=P().createContext({transitionTimer:new iu,animationTimer:new iu});au.displayName="TimerContext";const su=au;var uu=r(69590),cu=r.n(uu);function lu(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function pu(t,e){return pu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},pu(t,e)}function fu(t){return fu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},fu(t)}var hu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&pu(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=fu(n);if(o){var r=fu(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(r=i.call(this,t,e)).interpolator=void 0,r.queue=void 0,r.ease=void 0,r.timer=void 0,r.loopID=void 0,r.functionToBeRunEachFrame=function(t,e){var n=(e=void 0!==e?e:r.props.duration)?t/e:1;if(n>=1)return r.setState({data:r.interpolator(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),r.loopID&&r.timer.unsubscribe(r.loopID),r.queue.shift(),void r.traverseQueue();r.setState({data:r.interpolator(r.ease(n)),animationInfo:{progress:n,animating:n<1}})},r.state={data:Array.isArray(r.props.data)?r.props.data[0]:r.props.data,animationInfo:{progress:0,animating:!1}},r.interpolator=null,r.queue=Array.isArray(r.props.data)?r.props.data.slice(1):[],r.ease=l[r.toNewName(r.props.easing)],r.timer=r.context.animationTimer,r}return e=a,r=[{key:"componentDidMount",value:function(){this.queue.length&&this.traverseQueue()}},{key:"componentDidUpdate",value:function(t){if(!cu()(this.props,t))if(this.interpolator&&this.state.animationInfo&&this.state.animationInfo.progress<1)this.setState({data:this.interpolator(1),animationInfo:{progress:1,animating:!1,terminating:!0}});else{var e;this.timer.unsubscribe(this.loopID),Array.isArray(this.props.data)?(e=this.queue).push.apply(e,function(t){if(Array.isArray(t))return lu(t)}(r=this.props.data)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||function(t,e){if(t){if("string"==typeof t)return lu(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lu(t,e):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):(this.queue.length=0,this.queue.push(this.props.data)),this.traverseQueue()}var r}},{key:"componentWillUnmount",value:function(){this.loopID?this.timer.unsubscribe(this.loopID):this.timer.stop()}},{key:"toNewName",value:function(t){return"ease".concat(function(t){return t&&t[0].toUpperCase()+t.slice(1)}(t))}},{key:"traverseQueue",value:function(){var t=this;if(this.queue.length){var e=this.queue[0];this.interpolator=function(t,e){return t!==e&&Bs(t)&&Bs(e)?"function"==typeof t||"function"==typeof e?Us(t,e):lt()(t)||lt()(e)?qs(t,e):"string"==typeof t||"string"==typeof e?function(t,e){var r=function(t){return"string"==typeof t?t.replace(/,/g,""):t};return Ue(r(t),r(e))}(t,e):Ue(t,e):Vs(t,e)}(this.state.data,e),this.props.delay?setTimeout((function(){t.loopID=t.timer.subscribe(t.functionToBeRunEachFrame,t.props.duration)}),this.props.delay):this.loopID=this.timer.subscribe(this.functionToBeRunEachFrame,this.props.duration)}else this.props.onEnd&&this.props.onEnd()}},{key:"render",value:function(){return this.props.children(this.state.data,this.state.animationInfo)}}],r&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(P().Component);hu.displayName="VictoryAnimation",hu.propTypes={children:A().func,data:A().oneOfType([A().object,A().array]),delay:A().number,duration:A().number,easing:A().oneOf(["back","backIn","backOut","backInOut","bounce","bounceIn","bounceOut","bounceInOut","circle","circleIn","circleOut","circleInOut","linear","linearIn","linearOut","linearInOut","cubic","cubicIn","cubicOut","cubicInOut","elastic","elasticIn","elasticOut","elasticInOut","exp","expIn","expOut","expInOut","poly","polyIn","polyOut","polyInOut","quad","quadIn","quadOut","quadInOut","sin","sinIn","sinOut","sinInOut"]),onEnd:A().func},hu.defaultProps={data:{},delay:0,duration:1e3,easing:"quadInOut"},hu.contextType=su;var du=r(13218),mu=r.n(du),yu=r(73955),vu=r.n(yu);function gu(t,e){return gu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},gu(t,e)}function bu(t){return bu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)}
1,bu(t)}var _u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&gu(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=bu(n);if(o){var r=bu(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).map=void 0,e.index=void 0,e.portalRegister=function(){return++e.index},e.portalUpdate=function(t,r){e.map[t]=r,e.forceUpdate()},e.portalDeregister=function(t){delete e.map[t],e.forceUpdate()},e.map={},e.index=1,e}return e=a,(r=[{key:"getChildren",value:function(){var t=this;return T()(this.map).map((function(e){var r=t.map[e];return r?P().cloneElement(r,{key:e}):r}))}},{key:"render",value:function(){return P().createElement("svg",this.props,this.getChildren())}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(P().Component);_u.displayName="Portal",_u.propTypes={className:A().string,height:Gi,style:A().object,viewBox:A().string,width:Gi};var xu=P().createContext({});function wu(){return wu=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},wu.apply(this,arguments)}function Ou(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Eu(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ou(Object(r),!0).forEach((function(e){Su(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ou(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Su(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pu(t,e){return Pu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Pu(t,e)}function ju(t){return ju=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ju(t)}xu.displayName="PortalContext";var Au=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Pu(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=ju(n);if(o){var r=ju(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).containerId=void 0,e.portalRef=void 0,e.containerRef
1=void 0,e.shouldHandleWheel=void 0,e.savePortalRef=function(t){return e.portalRef=t,t},e.portalUpdate=function(t,r){return e.portalRef.portalUpdate(t,r)},e.portalRegister=function(){return e.portalRef.portalRegister()},e.portalDeregister=function(t){return e.portalRef.portalDeregister(t)},e.saveContainerRef=function(t){return R()(e.props.containerRef)&&e.props.containerRef(t),e.containerRef=t,t},e.handleWheel=function(t){return t.preventDefault()},e.containerId=mu()(t)&&void 0!==t.containerId?t.containerId:vu()("victory-container-"),e.shouldHandleWheel=!!(t&&t.events&&t.events.onWheel),e}return e=a,(r=[{key:"componentDidMount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.addEventListener("wheel",this.handleWheel)}},{key:"componentWillUnmount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.removeEventListener("wheel",this.handleWheel)}},{key:"getIdForElement",value:function(t){return"".concat(this.containerId,"-").concat(t)}},{key:"getChildren",value:function(t){return t.children}},{key:"getOUIAProps",value:function(t){var e=t.ouiaId,r=t.ouiaSafe,n=t.ouiaType;return Eu(Eu(Eu({},e&&{"data-ouia-component-id":e}),n&&{"data-ouia-component-type":n}),void 0!==r&&{"data-ouia-safe":r})}},{key:"renderContainer",value:function(t,e,r){var n=t.title,o=t.desc,i=t.portalComponent,a=t.className,s=t.width,u=t.height,c=t.portalZIndex,l=t.responsive,p=this.getChildren(t),f=l?{width:"100%",height:"100%"}:{width:s,height:u},h=E()({pointerEvents:"none",touchAction:"none",position:"relative"},f),d=E()({zIndex:c,position:"absolute",top:0,left:0},f),m=E()({pointerEvents:"all"},f),y=E()({overflow:"visible"},f),v={width:s,height:u,viewBox:e.viewBox,preserveAspectRatio:e.preserveAspectRatio,style:y};return P().createElement(xu.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},P().createElement("div",wu({style:N()({},r,h),className:a,ref:this.saveContainerRef},this.getOUIAProps(t)),P().createElement("svg",wu({},e,{style:m}),n?P().createElement("title",{id:this.getIdForElement("title")},n):null,o?P().createElement("desc",{id:this.getIdForElement("desc")},o):null,p),P().createElement("div",{style:d},P().cloneElement(i,Eu(Eu({},v),{},{ref:this.savePortalRef})))))}},{key:"render",value:function(){var t=this.props,e=t.width,r=t.height,n=t.responsive,o=t.events,i=t.title,a=t.desc,s=t.tabIndex,u=t.preserveAspectRatio,c=t.role,l=n?this.props.style:F(this.props.style,["height","width"]),p=Ha(this.props),f=E()(Eu({width:e,height:r,tabIndex:s,role:c,"aria-labelledby":[i&&this.getIdForElement("title"),this.props["aria-labelledby"]].filter(Boolean).join(" ")||void 0,"aria-describedby":[a&&this.getIdForElement("desc"),this.props["aria-describedby"]].filter(Boolean).join(" ")||void 0,viewBox:n?"0 0 ".concat(e," ").concat(r):void 0,preserveAspectRatio:n?u:void 0},p),o);return this.renderContainer(this.props,f,l)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(P().Component);Au.displayName="VictoryContainer",Au.role="container",Au.propTypes={"aria-describedby":A().string,"aria-labelledby":A().string,children:A().oneOfType([A().arrayOf(A().node),A().node]),className:A().string,containerId:A().oneOfType([A().number,A().string]),containerRef:A().func,desc:A().string,events:A().object,height:Gi,name:A().string,origin:A().shape({x:Gi,y:Gi}),ouiaId:A().oneOfType([A().number,A().string]),ouiaSafe:A().bool,ouiaType:A().string,polar:A().bool,portalComponent:A().element,portalZIndex:Wi,preserveAspectRatio:A().string,responsive:A().bool,role:A().string,style:A().object,tabIndex:A().number,theme:A().object,title:A().string,width:Gi},Au.defaultProps={className:"VictoryContainer",portalComponent:P().createElement(_u,null),portalZIndex:99,responsive:!0,role:"img"},Au.contextType=su;var Cu=r(41609),Tu=r.n(Cu);function ku(t,e){return ku=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ku(t,e)}function Mu(t){return Mu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Mu(t)}var Iu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ku(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Mu(n);if(o){var r=Mu(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return(t=i.call.apply(i,[this].concat(r))).checkedContext=void 0,t.renderInPlace=void 0,t.element=void 0,t.portalKey=void 0,t}return e=a,(r=[{key:"componentDidMount",value:function(){this.checkedContext||("function"!=typeof this.context.portalUpdate&&(this.renderInPlace=!0),this.checkedContext=!0),this.forceUpdate()}},{key:"componentDidUpdate",value:function(){this.renderInPlace||(this.portalKey=this.portalKey||this.context.portalRegister(),this.context.portalUpdate(this.portalKey,this.element))}},{key:"componentWillUnmount",value:function(){this.context&&this.context.portalDeregister&&this.context.portalDeregister(this.portalKey)}},{key:"renderPortal",value:function(t){return this.renderInPlace?t:(this.element=t,null)}},{key:"render",value:function(){var t=Array.isArray(this.props.children)?this.props.children[0]:this.props.children,e=this.props.groupComponent,r=t&&t.props||{},n=r.groupComponent?{groupComponent:e,standalone:!1}:{},o=N()(n,r,F(this.props,["children","groupComponent"])),i=t&&P().cloneElement(t,o);return this.renderPortal(i)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(P().Component);function Du(t){var e=t.labelComponent,r=t.labelPlacement,n=t.polar?"perpendicular":"vertical";return r||e.props&&e.props.labelPlacement||n}function Lu(t,e,r){return void 0!==(e=e||{}).label?e.label:Array.isArray(t.labels)?t.labels[r]:t.labels}function Ru(t,e){var r=Du(t);return"perpendicular"===r||"vertical"===r&&(90===e||270===e)?"middle":e<=90||e>270?"start":"end"}function zu(t,e){var r=Du(t),n=function(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}(e);return"parallel"===r||"left"===n||"right"===n?"middle":"top"===n?"end":"start"}function Nu(t,e){var r=t.labelPlacement,n=t.datum;if(!r||"vertical"===r)return 0;var o=void 0!==e?e%360:Fu(t,n),i=0;return 0===o||180===o?i=90:o>0&&o<180?i=90-o:o>180&&o<360&&(i=270-o),i+(o>90&&o<180||o>270?1:-1)*("perpendicular"===r?0:90)}function Fu(t,e){var r=B(e).x;return K(t.scale.x(r))%360}function Bu(t,e){var r=t.scale,n=t.data,o=t.style,i=t.horizontal,a=t.polar,s=t.width,u=t.height,c=t.theme,l=t.labelComponent,p=t.disableInlineStyles,f=n[e],h=Fu(t,f),d=a?Ru(t,h):function(t,e){e=e||{};var r=t.style,n=t.horizontal,o=e._y>=0?1:-1,i=r&&r.labels||{};return e.verticalAnchor||i.verticalAnchor?e.verticalAnchor||i.verticalAnchor:n?o>=0?"start":"end":"middle"}(t,f),m=a?zu(t,h):function(t,e){var r=(e=e||{})._y>=0?1:-1,n=t.style&&t.style.labels||{};return e.verticalAnchor||n.verticalAnchor?e.verticalAnchor||n.verticalAnchor:t.horizontal?"middle":r>=0?"end":"start"}(t,f),y=function(t,e){e=e||{};var r=t.style&&t.style.labels||{};return void 0===e.angle?r.angle:e.angle}(t,f),v=Lu(t,f,e),g=Du(t),b=function(t,e){var r=t.polar,n=V(t,e),o=n.x,i=n.y;if(!r)return{x:o,y:i};var a=function(t,e){var r=t.style,n=Fu(t,e),o=W((r.labels||{}
1).padding,t)||0,i=H(n);return{x:o*Math.cos(i),y:-o*Math.sin(i)}}(t,e);return{x:o+a.x,y:i+a.y}}(t,f),_=b.x,x=b.y,w=function(t,e){if(t.polar)return{};var r=function(t,e){e=e||{};var r=t.horizontal,n=W((t.style.labels||{}).padding,t)||0,o=e._y<0?-1:1;return{x:r?o*n:0,y:r?0:-1*o*n}}(t,e);return{dx:r.x,dy:r.y}}(t,f),O={angle:y,data:n,datum:f,disableInlineStyles:p,horizontal:i,index:e,polar:a,scale:r,labelPlacement:g,text:v,textAnchor:d,verticalAnchor:m,x:_,y:x,dx:w.dx,dy:w.dy,width:s,height:u,style:o.labels};if(!q(l))return O;var E=c&&c.tooltip||{};return N()({},O,F(E,["style"]))}Iu.displayName="VictoryPortal",Iu.role="portal",Iu.propTypes={children:A().node,groupComponent:A().element},Iu.defaultProps={groupComponent:P().createElement("g",null)},Iu.contextType=xu;var Vu=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(r.length>0)return r.reduce((function(t,e){return[t,Vu(e)].join(" ")}),Vu(t)).trim();if(null==t||"string"==typeof t)return t;var o=[];for(var i in t)if(t.hasOwnProperty(i)){var a=t[i];o.push("".concat(i,"(").concat(a,")"))}return o.join(" ").trim()};function Uu(t){var e={grayscale:["#cccccc","#969696","#636363","#252525"],qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"]};return t?e[t]:e.grayscale}var qu=r(88306),$u=r.n(qu);function Gu(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(t,e)||Wu(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wu(t,e){if(t){if("string"==typeof t)return Zu(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Zu(t,e):void 0}}function Zu(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Hu={"American Typewriter":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.4203125,.3296875,.6,.6375,.8015625,.8203125,.1875,.45625,.45625,.6375,.5,.2734375,.309375,.2734375,.4390625,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.2734375,.2734375,.5,.5,.5,.6,.6921875,.7640625,.6921875,.6375,.728125,.6734375,.6203125,.7109375,.784375,.3828125,.6421875,.7859375,.6375,.9484375,.7640625,.65625,.6375,.65625,.7296875,.6203125,.6375,.7109375,.740625,.940625,.784375,.7578125,.6203125,.4375,.5,.4375,.5,.5,.4921875,.5734375,.5890625,.5109375,.6,.528125,.43125,.5578125,.6375,.3109375,.40625,.6234375,.309375,.928125,.6375,.546875,.6,.58125,.4921875,.4921875,.4,.6203125,.625,.825,.6375,.640625,.528125,.5,.5,.5,.6671875],avg:.5793421052631578},Arial:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.278125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.584375,.584375,.584375,.55625,1.015625,.6703125,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.278125,.278125,.4703125,.584375,.334375,.55625,.55625,.5,.55625,.55625,.3125,.55625,.55625,.2234375,.2703125,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.346875,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.334375,.2609375,.334375,.584375],avg:.528733552631579},"Arial Black":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.33125,.334375,.5,.6609375,.6671875,1,.89
10625,.278125,.390625,.390625,.55625,.6609375,.334375,.334375,.334375,.28125,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.334375,.334375,.6609375,.6609375,.6609375,.6109375,.7453125,.78125,.778125,.778125,.778125,.7234375,.6671875,.834375,.834375,.390625,.6671875,.834375,.6671875,.9453125,.834375,.834375,.7234375,.834375,.78125,.7234375,.7234375,.834375,.7796875,1.003125,.78125,.78125,.7234375,.390625,.28125,.390625,.6609375,.5125,.334375,.6671875,.6671875,.6671875,.6671875,.6671875,.41875,.6671875,.6671875,.334375,.384375,.6671875,.334375,1,.6671875,.6671875,.6671875,.6671875,.4703125,.6109375,.4453125,.6671875,.6140625,.946875,.6671875,.615625,.55625,.390625,.278125,.390625,.6609375],avg:.6213157894736842},Baskerville:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.25,.40625,.6671875,.490625,.875,.7015625,.178125,.2453125,.246875,.4171875,.6671875,.25,.3125,.25,.521875,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.6671875,.6671875,.6671875,.396875,.9171875,.684375,.615625,.71875,.7609375,.625,.553125,.771875,.803125,.3546875,.515625,.78125,.6046875,.928125,.75,.8234375,.5625,.96875,.7296875,.5421875,.6984375,.771875,.7296875,.9484375,.771875,.678125,.6359375,.3640625,.521875,.3640625,.46875,.5125,.334375,.46875,.521875,.428125,.521875,.4375,.3890625,.4765625,.53125,.25,.359375,.4640625,.240625,.803125,.53125,.5,.521875,.521875,.365625,.334375,.2921875,.521875,.4640625,.678125,.4796875,.465625,.428125,.4796875,.5109375,.4796875,.6671875],avg:.5323519736842108},Courier:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},"Courier New":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6015296052631579},cursive:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1921875,.24375,.40625,.5671875,.3984375,.721875,.909375,.2328125,.434375,.365625,.4734375,.5578125,.19375,.3484375,.19375,.7734375,.503125,.4171875,.5453125,.45,.6046875,.4703125,.5984375,.55625,.503125,.5546875,.20625,.2,.5625,.5546875,.546875,.403125,.70625,.734375,.7078125,.64375,.85,.753125,.75,.6484375,1.0765625,.44375,.5359375,.8359375,.653125,1.0109375,1.1515625,.6796875,.6984375,1.0625,.8234375,.5125,.9234375,.8546875,.70625,.9109375,.7421875,.715625,.6015625,.4640625,.3359375,.4109375,.5421875,.5421875,.4328125,.5125,.5,.3859375,.7375,.359375,.75625,.540625,.5328125,.3203125,.5296875,.5015625,.484375,.7890625,.5640625,.4203125,.703125,.471875,.4734375,.35,.4125,.5640625,.471875,.6484375,.5296875,.575,.4140625,.415625,.20625,.3796875,.5421875],avg:.5604440789473684},fantasy:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.2625,.3265625,.6109375,.534375,.7625,.7828125,.2,.4359375,.4359375,.3765625,.5109375,.2796875,.4609375,.2796875,.5296875,.6640625,.253125,.521875,.4765625,.6640625,.490625,.528125,.5546875,.496875,.5421875,.2796875,.2796875,.5625,.4609375,.5625,.4828125,.609375,.740625,.7234375,.740625,.8265625,.7234375,.6171875,.7359375,.765625,.240625,.5453125,.715625,.6078125,.8640625,.653125,.9125,.6484375,.946875,.6921875,.653125,.6953125,.8015625,.58125,.784375,.671875,.6265625,.690625,.4359375,.5296875,.4359375,.53125,.5,.2875,.5375,.603125,.4984375,.60625,.53125,.434375,.6421875,.56875,.209375,.4671875,.5484375,.2203125,.709375,.55,.5984375,.6140625,.5765625,.40625,.4734375,.3734375,.559375,.4421875,.6421875,.4890625,.578125,.4484375,.2546875,.2203125,.2546875,.55],avg:.536496710526316},Geneva:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3328125,.3046875,.5,.6671875,.6671875,.90625,.728125,.3046875,.446875,.446875,.5078125,.6671875,.3046875,.3796875,.3046875,.5390625,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.3046875,.3046875,.6671875,.6671875,.6671875,.56875,.871875,.728125,.6375,.6515625,.7015625,.5765625,.5546875,.675,.690625,.2421875,.4921875,.6640625,.584375,.7890625,.709375,.7359375,.584375,.78125,.60625,.60625,.640625,.6671875,.728125,.946875,.6109375,.6109375,.5765625,.446875,.5390625,.446875,.6671875,.6671875,.5921875,.5546875,.6109375,.546875,.603125,.5765625,.390625,.6109375,.584375,.2359375,.334375,.5390625,.2359375,.8953125,.584375,.60625,.603125,.603125,.3875,.509375,.44375,.584375,.565625,.78125,.53125,.571875,.5546875,.4515625,.246875,.4515625,.6671875],avg:.5762664473684211},Georgia:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2421875,.33125,.4125,.64375,.6109375,.81875,.7109375,.215625,.375,.375,.4734375,.64375,.2703125,.375,.2703125,.46875,.6140625,.4296875,.559375,.553125,.565625,.5296875,.5671875,.503125,.596875,.5671875,.3125,.3125,.64375,.64375,.64375,.4796875,.9296875,.715625,.6546875,.6421875,.75,.6546875,.6,.7265625,.815625,.390625,.51875,.7203125,.6046875,.928125,.7671875,.7453125,.6109375,.7453125,.7234375,.5625,.61875,.7578125,.70625,.99375,.7125,.6640625,.601
15625,.375,.46875,.375,.64375,.65,.5,.5046875,.56875,.4546875,.575,.484375,.39375,.509375,.5828125,.29375,.3671875,.546875,.2875,.88125,.5921875,.5390625,.571875,.5640625,.4109375,.4328125,.3453125,.5765625,.5203125,.75625,.50625,.5171875,.4453125,.43125,.375,.43125,.64375],avg:.5551809210526316},"Gill Sans":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2765625,.271875,.3546875,.584375,.5421875,.6765625,.625,.1890625,.3234375,.3234375,.4171875,.584375,.2203125,.3234375,.2203125,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.2203125,.2296875,.584375,.584375,.584375,.334375,1.0109375,.6671875,.5640625,.709375,.75,.5,.4703125,.740625,.7296875,.25,.3125,.65625,.490625,.78125,.78125,.8234375,.5109375,.8234375,.6046875,.459375,.6046875,.709375,.6046875,1.0421875,.709375,.6046875,.646875,.334375,.28125,.334375,.4703125,.5828125,.334375,.428125,.5,.4390625,.5109375,.4796875,.296875,.428125,.5,.2203125,.2265625,.5,.2203125,.771875,.5,.553125,.5,.5,.3984375,.3859375,.334375,.5,.4390625,.7203125,.5,.4390625,.4171875,.334375,.2609375,.334375,.584375],avg:.4933717105263159},Helvetica:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2765625,.3546875,.5546875,.5546875,.8890625,.665625,.190625,.3328125,.3328125,.3890625,.5828125,.2765625,.3328125,.2765625,.3015625,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.2765625,.2765625,.584375,.5828125,.584375,.5546875,1.0140625,.665625,.665625,.721875,.721875,.665625,.609375,.7765625,.721875,.2765625,.5,.665625,.5546875,.8328125,.721875,.7765625,.665625,.7765625,.721875,.665625,.609375,.721875,.665625,.94375,.665625,.665625,.609375,.2765625,.3546875,.2765625,.4765625,.5546875,.3328125,.5546875,.5546875,.5,.5546875,.5546875,.2765625,.5546875,.5546875,.221875,.240625,.5,.221875,.8328125,.5546875,.5546875,.5546875,.5546875,.3328125,.5,.2765625,.5546875,.5,.721875,.5,.5,.5,.3546875,.259375,.353125,.5890625],avg:.5279276315789471},"Helvetica Neue":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.259375,.4265625,.55625,.55625,1,.6453125,.278125,.2703125,.26875,.353125,.6,.278125,.3890625,.278125,.36875,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.6,.6,.6,.55625,.8,.6625,.6859375,.7234375,.7046875,.6125,.575,.759375,.7234375,.259375,.5203125,.6703125,.55625,.871875,.7234375,.7609375,.6484375,.7609375,.6859375,.6484375,.575,.7234375,.6140625,.9265625,.6125,.6484375,.6125,.259375,.36875,.259375,.6,.5,.25625,.5375,.59375,.5375,.59375,.5375,.2984375,.575,.55625,.2234375,.2375,.5203125,.2234375,.853125,.55625,.575,.59375,.59375,.334375,.5,.315625,.55625,.5,.759375,.51875,.5,.48125,.334375,.2234375,.334375,.6],avg:.5279440789473684},"Hoefler Text":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2359375,.2234375,.3921875,.7125,.49375,.8859375,.771875,.2125,.3078125,.309375,.375,.4234375,.234375,.3125,.234375,.3,.5828125,.365625,.434375,.3921875,.5234375,.3984375,.5125,.4328125,.46875,.5125,.234375,.234375,.515625,.4234375,.515625,.340625,.7609375,.7359375,.6359375,.721875,.8125,.6375,.5875,.8078125,.853125,.4296875,.503125,.78125,.609375,.9609375,.8515625,.8140625,.6125,.8140625,.71875,.49375,.7125,.76875,.771875,1.125,.7765625,.7734375,.65625,.321875,.3078125,.321875,.3546875,.5,.3375,.446875,.5359375,.45,.5296875,.4546875,.425,.4921875,.54375,.2671875,.240625,.5390625,.25,.815625,.5375,.5234375,.5390625,.5421875,.365625,.36875,.35625,.5171875,.5015625,.75,.5,.509375,.44375,.2421875,.14375,.2421875,.35],avg:.5116447368421051},Montserrat:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2625,.2609375,.3734375,.696875,.615625,.8296875,.6703125,.203125,.3296875,.3296875,.3875,.575,.2125,.3828125,.2125,.3953125,.6625,.3625,.56875,.5640625,.6625,.5671875,.609375,.5890625,.6390625,.609375,.2125,.2125,.575,.575,.575,.5671875,1.034375,.7171875,.7546875,.7203125,.8265625,.6703125,.634375,.7734375,.8140625,.303125,.5078125,.7125,.5890625,.95625,.8140625,.8390625,.71875,.8390625,.7234375,.615625,.575,.7921875,.6984375,1.1125,.65625,.6359375,.6515625,.31875,.396875,.31875,.5765625,.5,.6,.590625,.678125,.5640625,.678125,.6046875,.375,.6875,.678125,.2703125,.365625,.601
15625,.2703125,1.0625,.678125,.628125,.678125,.678125,.4015625,.4890625,.40625,.6734375,.5421875,.8796875,.534375,.5671875,.5125,.334375,.2953125,.334375,.575],avg:.571792763157895},monospace:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},Overpass:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2296875,.2765625,.4203125,.68125,.584375,.8515625,.7015625,.2203125,.3453125,.3453125,.53125,.63125,.2234375,.3953125,.2234375,.509375,.65,.4046875,.6171875,.60625,.6484375,.60625,.6015625,.5375,.615625,.6015625,.2234375,.2234375,.63125,.63125,.63125,.5015625,.8203125,.696875,.6671875,.65,.6859375,.6015625,.559375,.690625,.7078125,.2953125,.565625,.678125,.58125,.8046875,.7109375,.740625,.6421875,.740625,.6765625,.6046875,.590625,.696875,.6640625,.853125,.65,.6671875,.6625,.3734375,.509375,.3734375,.63125,.5125,.4,.5328125,.5625,.51875,.5625,.546875,.3359375,.5625,.565625,.25625,.3203125,.55,.265625,.85,.565625,.5671875,.5625,.5625,.4046875,.4765625,.3796875,.565625,.521875,.7265625,.53125,.5390625,.5125,.3671875,.275,.3671875,.63125],avg:.5430756578947369},Palatino:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.278125,.371875,.60625,.5,.840625,.778125,.209375,.334375,.334375,.390625,.60625,.2578125,.334375,.25,.60625,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.60625,.60625,.60625,.4453125,.7484375,.778125,.6109375,.709375,.775,.6109375,.55625,.7640625,.8328125,.3375,.346875,.7265625,.6109375,.946875,.83125,.7875,.6046875,.7875,.66875,.525,.6140625,.778125,.7234375,1,.6671875,.6671875,.6671875,.334375,.60625,.334375,.60625,.5,.334375,.5,.565625,.4453125,.6109375,.4796875,.340625,.55625,.5828125,.2921875,.2671875,.5640625,.2921875,.8828125,.5828125,.546875,.6015625,.5609375,.3953125,.425,.3265625,.603125,.565625,.834375,.5171875,.55625,.5,.334375,.60625,.334375,.60625],avg:.5408552631578947},RedHatText:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2328125,.2203125,.35625,.6890625,.55,.7390625,.6703125,.2140625,.4015625,.4015625,.4546875,.53125,.2203125,.45625,.2203125,.515625,.6609375,.3078125,.5484375,.5875,.61875,.5703125,.6203125,.559375,.6140625,.6203125,.2203125,.2234375,.465625,.534375,.465625,.5125,.7671875,.6609375,.6703125,.7265625,.728125,.6203125,.6109375,.8,.73125,.253125,.6,.6125,.6078125,.8625,.7390625,.8109375,.6546875,.809375,.6484375,.6234375,.6171875,.7125,.6609375,.8984375,.6546875,.646875,.60625,.3625,.5203125,.3625,.540625,.4609375,.5234375,.5265625,.584375,.509375,.5828125,.5578125,.3703125,.5828125,.553125,.2234375,.24375,.4890625,.2234375,.8453125,.553125,.58125,.584375,.5828125,.353125,.453125,.378125,.553125,.5015625,.6984375,.4875,.4984375,.459375,.3953125,.2921875,.3953125,.58125],avg:.5341940789473685},"sans-serif":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.303125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.5859375,.584375,.5859375,.55625,1.015625,.6671875,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.35625,.278125,.478125,.55625,.334375,.55625,.55625,.5,.55625,.55625,.278125,.55625,.55625,.2234375,.2421875,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.334375,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.35625,.2609375,.3546875,.590625],avg:.5293256578947368},Seravek:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.296875,.4171875,.6734375,.4953125,.9125,.740625,.2421875,.3375,.3375,.409375,.60625,.2609375,.35625,.25625,.41875,.5921875,.3515625,.475,.4875,.5375,.509375,.5484375,.4546875,.5421875,.5484375,.25625,.2546875,.5875,.6171875,.5875,.4578125,.8140625,.6765625,.5703125,.6109375,.684375,.5109375,.4953125,.678125,.6859375,.2625,.2625,.5859375,.4734375,.846875,.709375,.740625,.509375,.740625,.584375,.5015625,.528125,.675,.5953125,.9453125,.596875,.540625,.540625,.359375,.4203125,.359375,.5109375,.421875,.4046875,.5015625,.5421875,.446875,.5453125,.484375,.38125,.5140625,.5546875,.240625,.2640625,.490625,.2765625,.8625,.5546875,.546875,.5453125,.5453125,.3625,.41875,.3890625,.5453125,.4703125,.7546875,.4921875,.4609375,.453125,.4015625,.2640625,.4015625,.58125],avg:.5044078947368421},serif:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.278125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.7234375,.6109375,.89
10625,.7234375,.7234375,.55625,.7234375,.6671875,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.340625,.334375,.4703125,.5,.3453125,.4453125,.5,.4453125,.5,.4453125,.3828125,.5,.5,.278125,.3359375,.5,.278125,.778125,.5,.5,.5,.5,.3375,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5126315789473684},Tahoma:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3109375,.3328125,.4015625,.728125,.546875,.9765625,.70625,.2109375,.3828125,.3828125,.546875,.728125,.303125,.3640625,.303125,.3953125,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.3546875,.3546875,.728125,.728125,.728125,.475,.909375,.6109375,.590625,.6015625,.6796875,.5625,.521875,.66875,.6765625,.3734375,.4171875,.6046875,.4984375,.771875,.66875,.7078125,.5515625,.7078125,.6375,.5578125,.5875,.65625,.60625,.903125,.58125,.5890625,.559375,.3828125,.39375,.3828125,.728125,.5625,.546875,.525,.553125,.4625,.553125,.5265625,.3546875,.553125,.5578125,.2296875,.328125,.51875,.2296875,.840625,.5578125,.54375,.553125,.553125,.3609375,.446875,.3359375,.5578125,.4984375,.7421875,.4953125,.4984375,.4453125,.48125,.3828125,.48125,.728125],avg:.5384374999999998},"Times New Roman":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.73125,.6109375,.890625,.7375,.7234375,.55625,.7234375,.6765625,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.28125,.334375,.4703125,.51875,.334375,.4453125,.503125,.4453125,.503125,.4453125,.4359375,.5,.5,.278125,.35625,.50625,.278125,.778125,.5,.5,.5046875,.5,.340625,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5134375},"Trebuchet MS":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3015625,.3671875,.325,.53125,.525,.6015625,.70625,.1609375,.3671875,.3671875,.3671875,.525,.3671875,.3671875,.3671875,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.3671875,.3671875,.525,.525,.525,.3671875,.771875,.590625,.5671875,.5984375,.6140625,.5359375,.525,.6765625,.6546875,.2796875,.4765625,.5765625,.5078125,.7109375,.6390625,.675,.5578125,.7421875,.5828125,.48125,.58125,.6484375,.5875,.853125,.5578125,.5703125,.5515625,.3671875,.3578125,.3671875,.525,.53125,.525,.5265625,.5578125,.4953125,.5578125,.546875,.375,.503125,.546875,.2859375,.3671875,.5046875,.2953125,.83125,.546875,.5375,.5578125,.5578125,.3890625,.40625,.396875,.546875,.490625,.7453125,.5015625,.49375,.475,.3671875,.525,.3671875,.525],avg:.5085197368421052},Verdana:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.35,.39375,.459375,.81875,.6359375,1.0765625,.759375,.26875,.4546875,.4546875,.6359375,.81875,.3640625,.4546875,.3640625,.4703125,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.4546875,.4546875,.81875,.81875,.81875,.546875,1,.684375,.6859375,.6984375,.771875,.6328125,.575,.7765625,.7515625,.421875,.4546875,.69375,.5578125,.84375,.7484375,.7875,.603125,.7875,.7,.684375,.6171875,.7328125,.684375,.9890625,.6859375,.615625,.6859375,.4546875,.46875,.4546875,.81875,.6421875,.6359375,.6015625,.6234375,.521875,.6234375,.596875,.384375,.6234375,.6328125,.275,.3765625,.5921875,.275,.9734375,.6328125,.6078125,.6234375,.6234375,.43125,.521875,.3953125,.6328125,.5921875,.81875,.5921875,.5921875,.5265625,.6359375,.4546875,.6359375,.81875],avg:.6171875000000003}},Ku={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},Yu={em:1,ex:.5},Xu={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},Ju=function(t){return Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g)},Qu=function(t,e,r){var n=function(t){return t*Math.PI/180}(r);return Math.abs(Math.cos(n)*t)+Math.abs(Math.sin(n)*e)},tc=function(t,e){var r,n=null===(r=t.match(/[a-zA-Z%]+/))||void 0===r?void 0:r[0],o=Number(t.match(/[0-9.,]+/));return n?Ku.hasOwnProperty(n)?o*Ku[n]:Yu.hasOwnProperty(n)?(e?o*e:o*Xu.fontSize)*Yu[n]:o:o||0},ec=function(t,e){var r=Array.isArray(t)?t[e]:t,n=N()({},r,Xu);return E()({},n,{fontFamily:n.fontFamily,letterSpacing:"number"==typeof n.letterSpacing?n.letterSpacing:tc(String(n.letterSpacing),n.fontSize),fontSize:"number"==typeof n.fontSize?n.fontSize:tc(String(n.fontSize))})},rc=function(t,e){if(void 0===t||""===t||null===t)return 0;var r,n=Ju(t).map((function(t,r){var n,o=t.toString().length,i=ec(e,r),a=i.fontSize,s=i.letterSpacing,u=(n=i.fontFamily.split(",").map((function(t){return t.replace(/'|"/g,"")})).find((function(t){return Hu[t]}))||"Helvetica",Hu[n]),c=t.toString().split("").map((function(t){return t.charCodeAt(0)<u.widths.length?u.widths[t.charCodeAt(0)]:u.avg})).reduce((function(t,e){return e+t}),0)*a;return c+s*Math.max(o-1,0)}));return Math.max.apply(Math,function(t){if(Array.isArray(t))return Zu(t)}(r=n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||Wu(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())},nc=$u()((function(){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("xlink","http://www.w3.org/1999/xlink");var e=document.createElementNS("http://www.w3.org/2000/svg","text");return t.appendChild(e),t.style.position="fixed",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t),e})),oc=function(t){return t?"".concat(t.angle,":").concat(t.fontFamily,":").concat(t.fontSize,":").concat(t.letterSpacing,":").concat(t.lineHeight):"null"},ic=$u()((function(t,e){var r=nc(),n=Ju(t),o=0;for(var i of n.entries()){var a=Gu(i,2),s=a[0],u=a[1],c=document.createElementNS("http://www.w3.org/2000/svg","tspan"),l=ec(e,s);c.style.fontFamily=l.fontFamily,c.style.transform="rotate(".concat(l.angle,")"),c.style.fontSize="".concat(l.fontSize,"px"),c.style.lineHeight=l.lineHeight,c.style.fontFamily=l.fontFamily,c.style.letterSpacing=l.letterSpacing,c.textContent=u,c.setAttribute("x","0"),c.setAttribute("y","".concat(o)),o+=l.lineHeight*l.fontSize,r.appendChild(c)}var p=r.getBoundingClientRect(),f=p.width,h=p.height;return r.innerHTML="",{width:f,height:h}}),(function(t,e){var r=Array.isArray(t)?t.join():t,n=Array.isArray(e)?e.map(oc).join():oc(e);return"".concat(r,"::").concat(n)})),ac={impl:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return"undefined"==typeof window||void 0===window.document||void 0===window.document.createElement||r?function(t,e){var r=Array.isArray(e)?e[0]&&e[0].angle:e&&e.angle,n=function(t,e){return void 0===t||""===t||null===t?0:Ju(t).reduce((function(t,r,n){var o=ec(e,n
1),i=r.toString().match(/[(A-Z)(0-9)]/)?1.15*o.fontSize:o.fontSize;return t+o.lineHeight*i}),0)}(t,e),o=rc(t,e);return{width:r?Qu(o,n,r):o,height:1.05*(r?Qu(n,o,r):n)}}(t,e):ic(t,e)}},sc=function(t,e){return ac.impl(t,e)};function uc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function cc(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?uc(Object(r),!0).forEach((function(e){lc(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):uc(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function lc(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pc(t){return function(t){if(Array.isArray(t))return fc(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return fc(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?fc(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fc(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var hc={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Ser\xadavek', 'Trebuchet MS', sans-serif",stroke:"transparent"},dc=function(t,e){return t.datum?V(t,t.datum)[e]:0},mc=function(t){var e=t&&t.fontSize;if("number"==typeof e)return e;if(null==e)return hc.fontSize;if("string"==typeof e){var r=Number(e.replace("px",""));return isNaN(r)?hc.fontSize:r}return hc.fontSize},yc=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array.isArray(t)?t[e]||t[0]:t},vc=function(t){var e=t.backgroundStyle,r=t.backgroundPadding;
1return Array.isArray(e)&&!Tu()(e)||Array.isArray(r)&&!Tu()(r)},gc=function(t,e){var r=t.direction,n=t.textAnchor,o=t.x,i=t.dx;if("rtl"===r)return o-e;switch(n){case"middle":return Math.round(o-e/2);case"end":return Math.round(o-e);default:return o+(i||0)}},bc=function(t,e){var r=t.verticalAnchor,n=t.y,o=t.originalDy,i=n+(void 0===o?0:o);switch(r){case"start":return Math.floor(i);case"end":return Math.ceil(i-e);default:return Math.floor(i-e/2)}},_c=function(t,e){return vc(t)?function(t,e){var r=t.dy,n=t.dx,o=t.transform,i=t.backgroundStyle,a=t.backgroundPadding,s=t.backgroundComponent,u=t.inline,c=t.y,l=e.map((function(t,o){var i=yc(e,o-1),s=t.textSize,l=t.fontSize*t.lineHeight,p=Math.ceil(l),f=yc(a,o),h=yc(a,o-1),d=u&&n||0,m=o&&!u?i.fontSize*i.lineHeight+h.top+h.bottom:r-.5*l-(t.fontSize-t.capHeight);return{textHeight:p,labelSize:s,heightWithPadding:p+f.top+f.bottom,widthWithPadding:s.width+f.left+f.right+d,y:c,fontSize:t.fontSize,dy:m}}));return l.map((function(e,r){var n=gc(t,e.labelSize.width),p=l.slice(0,r+1).reduce((function(t,e){return t+e.dy}),c),f=yc(a,r),h=e.heightWithPadding,d=u?function(t,e,r){var n=t.textAnchor,o=e.map((function(t){return t.widthWithPadding})),i=-o.reduce((function(t,e){return t+e}),0)/2;switch(n){case"start":return o.reduce((function(t,e,n){return n<r?t+e:t}),0);case"end":return o.reduce((function(t,e,n){return n>r?t-e:t}),0);default:return o.reduce((function(t,e,n){return n===r?t+e/2:t+(n<r?e:0)}),i)}}(t,l,r)+n-f.left:n,m=u?bc(t,h)-f.top:p,y={key:"tspan-background-".concat(r),height:h,style:yc(i,r),width:e.widthWithPadding,transform:o,x:d-f.left,y:m};return P().cloneElement(s,N()({},s.props,y))}))}(t,e):function(t,e){var r=t.dx,n=void 0===r?0:r,o=t.transform,i=t.backgroundComponent,a=t.backgroundStyle,s=t.inline,u=t.backgroundPadding,c=t.capHeight,l=e.map((function(t){return t.textSize})),p=s?Math.max.apply(Math,pc(l.map((function(t){return t.height})))):l.reduce((function(t,r,n){var o=n?0:c/2;return t+r.height*(e[n].lineHeight-o)}),0),f=s?l.reduce((function(t,e,r){var o=r?n:0;return t+e.width+o}),0):Math.max.apply(Math,pc(l.map((function(t){return t.width})))),h=gc(t,f),d=bc(t,p),m={key:"background",height:p+u.top+u.bottom,style:a,transform:o,width:f+u.left+u.right,x:s?h-u.left:h+n-u.left,y:d};return P().cloneElement(i,N()({},i.props,m))}(t,e)},xc=function(t,e,r){var n=e.inline,o=yc(t,r);return r&&!n?function(t,e,r){var n=yc(t,e),o=yc(t,e-1),i=o.fontSize*o.lineHeight,a=n.fontSize*n.lineHeight,s=o.fontSize-o.capHeight,u=n.fontSize-n.capHeight,c=i-o.fontSize/2+n.fontSize/2-i/2+a/2-u/2+s/2;return vc(r)?c+n.backgroundPadding.top+o.backgroundPadding.bottom:c}(t,r,e):n?0===r?o.backgroundPadding.top:void 0:o.backgroundPadding.top},wc=function(t){if(null===(t=function(t){var e=function(t,e){if(null!=t){if(Array.isArray(t))return t.map((function(t){return W(t,e)}));var r=W(t,e);if(null!=r)return Array.isArray(r)?r:"".concat(r).split("\n")}}(t.text,t),r=function(t,e){if(e.disableInlineStyles){var r=Z(t,e);return{fontSize:mc(r)}}var n=function(t){var r=Z(t=t?N()({},t,hc):hc,e);return E()({},r,{fontSize:mc(r)})};return Array.isArray(t)&&!Tu()(t)?t.map((function(t){return n(t)})):n(t)}(t.style,E()({},t,{text:e})),n=function(t,e){if(t)return Array.isArray(t)&&!Tu()(t)?t.map((function(t){return Z(t,e)})):Z(t,e)}(t.backgroundStyle,E()({},t,{text:e,style:r})),o=function(t){return t.backgroundPadding&&Array.isArray(t.backgroundPadding)?t.backgroundPadding.map((function(e){return U({padding:W(e,t)})})):U({padding:W(t.backgroundPadding,t)})}(E()({},t,{text:e,style:r,backgroundStyle:n})),i=W(t.id,t);return E()({},t,{backgroundStyle:n,backgroundPadding:o,style:r,text:e,id:i})}(t)).text||void 0===t.text)return null;var e=function(t){var e=W(t.ariaLabel,t),r=yc(t.style),n=function(t){var e=W(t.lineHeight,t);return Array.isArray(e)&&Tu()(e)?[1]:e}(t),o=t.direction?W(t.direction,t):"inherit",i=t.textAnchor?W(t.textAnchor,t):r.textAnchor||"start",a=t.verticalAnchor?W(t.verticalAnchor,t):r.verticalAnchor||"middle",s=t.dx?W(t.dx,t):0,u=function(t,e,r){var n=t.dy?W(t.dy,t):0,o=t.inline?1:t.text.length,i=W(t.capHeight,t),a=e?W(e,t):"middle",s=pc(Array(o).keys()).map((function(e){return yc(t.style,e).fontSize})),u=pc(Array(o).keys()).map((function(t){return yc(r,t)}));if("start"===a)return n+(i/2+u[0]/2)*s[0];if(t.inline)return"end"===a?n+(i/2-u[0]/2)*s[0]:n+i/2*s[0];if(1===o)return"end"===a?n+(i/2+(.5-o)*u[0])*s[0]:n+(i/2+(.5-o/2)*u[0])*s[0];var c=pc(Array(o).keys()).reduce((function(t,e){return t+(i/2+(.5-o)*u[e])*s[e]/o}),0);return"end"===a?n+c:n+c/2+i/2*u[o-1]*s[o-1]}(t,a,n),c=void 0!==t.x?t.x:dc(t,"x"),l=void 0!==t.y?t.y:dc(t,"y"),p=function(t,e,r){var n=t.polar,o=yc(t.style),i=n?Nu(t):0,a=void 0===o.angle?W(t.angle,t):o.angle,s=void 0===a?i:a,u=t.transform||o.transform,c=u&&W(u,t);return c||s?Vu(c,s&&{rotate:[s,e,r]}):void 0}(t,c,l);return E()({},t,{ariaLabel:e,lineHeight:n,direction:o,textAnchor:i,verticalAnchor:a,dx:s,dy:u,originalDy:t.dy,transform:p,x:c,y:l})}(t),r=e.text,n=e.style,o=e.capHeight,i=e.backgroundPadding,a=e.lineHeight,s=r.map((function(t,e){var r=yc(n,e),s=tc("".concat(o,"em"),r.fontSize),u=yc(a,e);return{style:r,fontSize:r.fontSize||hc.fontSize,capHeight:s,text:t,textSize:sc(t,r),lineHeight:u,backgroundPadding:yc(i,e)}}
1)),u=function(t,e){var r=t.ariaLabel,n=t.inline,o=t.className,i=t.title,a=t.events,s=t.direction,u=t.text,c=t.textAnchor,l=t.dx,p=t.dy,f=t.transform,h=t.x,d=t.y,m=t.desc,y=t.id,v=t.tabIndex,g=t.tspanComponent,b=t.textComponent,_=Ha(t),x=cc(cc({"aria-label":r,key:"text"},a),{},{direction:s,dx:l,x:h,y:d+p,transform:f,className:o,title:i,desc:W(m,t),tabIndex:W(v,t),id:y},_),w=u.map((function(r,o){var i=e[o].style,a={key:"".concat(y,"-key-").concat(o),x:n?void 0:h,dx:n?l+e[o].backgroundPadding.left:l,dy:xc(e,t,o),textAnchor:i.textAnchor||c,style:i,children:r};return P().cloneElement(g,a)}));return P().cloneElement(b,x,w)}(e,s);if(t.backgroundStyle){var c=[_c(e,s),u],l=P().cloneElement(t.groupComponent,{},c);return t.renderInPortal?P().createElement(Iu,null,l):l}return t.renderInPortal?P().createElement(Iu,null,u):u};wc.displayName="VictoryLabel",wc.role="label",wc.defaultStyles=hc,wc.propTypes={active:A().bool,angle:A().oneOfType([A().string,A().number,A().func]),ariaLabel:A().oneOfType([A().string,A().func]),backgroundComponent:A().element,backgroundPadding:A().oneOfType([A().number,A().object,A().array]),backgroundStyle:A().oneOfType([A().object,A().array]),capHeight:A().oneOfType([A().string,Gi,A().func]),className:A().string,data:A().array,datum:A().any,desc:A().oneOfType([A().string,A().func]),direction:A().oneOf(["rtl","ltr","inherit"]),dx:A().oneOfType([A().number,A().string,A().func]),dy:A().oneOfType([A().number,A().string,A().func]),events:A().object,groupComponent:A().element,id:A().oneOfType([A().number,A().string,A().func]),index:A().oneOfType([A().number,A().string]),inline:A().bool,labelPlacement:A().oneOf(["parallel","perpendicular","vertical"]),lineHeight:A().oneOfType([A().string,Gi,A().func,A().array]),origin:A().shape({x:Gi.isRequired,y:Gi.isRequired}),polar:A().bool,renderInPortal:A().bool,scale:A().shape({x:Ki,y:Ki}),style:A().oneOfType([A().object,A().array]),tabIndex:A().oneOfType([A().number,A().func]),text:A().oneOfType([A().string,A().number,A().func,A().array]),textAnchor:A().oneOfType([A().oneOf(["start","middle","end","inherit"]),A().func]),textComponent:A().element,title:A().string,transform:A().oneOfType([A().string,A().object,A().func]),tspanComponent:A().element,verticalAnchor:A().oneOfType([A().oneOf(["start","middle","end"]),A().func]),x:A().oneOfType([A().number,A().string]),y:A().oneOfType([A().number,A().string])},wc.defaultProps={backgroundComponent:P().createElement(ra,null),groupComponent:P().createElement("g",null),direction:"inherit",textComponent:P().createElement(Ta,null),tspanComponent:P().createElement(Aa,null),capHeight:.71,lineHeight:1};var Oc=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],Ec="#252525",Sc="#969696",Pc={width:450,height:300,padding:50,colorScale:Oc},jc={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:Ec,stroke:"transparent"},Ac=E()({textAnchor:"middle"},jc),Cc={area:E()({style:{data:{fill:Ec},labels:jc}},Pc),axis:E()({style:{axis:{fill:"transparent",stroke:Ec,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:E()({},Ac,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:jc}},Pc),bar:E()({style:{data:{fill:Ec,padding:8,strokeWidth:0},labels:jc}},Pc),boxplot:E()({style:{max:{padding:8,stroke:Ec,strokeWidth:1},maxLabels:E()({},jc,{padding:3}),median:{padding:8,stroke:Ec,strokeWidth:1},medianLabels:E()({},jc,{padding:3}),min:{padding:8,stroke:Ec,strokeWidth:1},minLabels:E()({},jc,{padding:3}),q1:{padding:8,fill:Sc},q1Labels:E()({},jc,{padding:3}),q3:{padding:8,fill:Sc},q3Labels:E()({},jc,{padding:3})},boxWidth:20},Pc),candlestick:E()({style:{data:{stroke:Ec,strokeWidth:1},labels:E()({},jc,{padding:5})},candleColors:{positive:"#ffffff",negative:Ec}},Pc),chart:Pc,errorbar:E()({borderWidth:8,style:{data:{fill:"transparent",stroke:Ec,strokeWidth:2},labels:jc}},Pc),group:E()({colorScale:Oc},Pc),histogram:E()({style:{data:{fill:Sc,stroke:Ec,strokeWidth:2},labels:jc}},Pc),legend:{colorScale:Oc,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:jc,title:E()({},jc,{padding:5})}},line:E()({style:{data:{fill:"transparent",stroke:Ec,strokeWidth:2},labels:jc}},Pc),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:E()({},jc,{padding:20})},colorScale:Oc,width:400,height:400,padding:50},scatter:E()({style:{data:{fill:Ec,stroke:"transparent",strokeWidth:0},labels:jc}},Pc),stack:E()({colorScale:Oc},Pc),tooltip:{style:E()({},jc,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Ec,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:E()({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:E()({},jc,{padding:5,pointerEvents:"none"}),flyout:{stroke:Ec,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Pc)},Tc=["#F4511E","#FFF59D","#DCE775","#8BC34A","#00796B","#006064"],kc="#ECEFF1",Mc="#90A4AE",Ic="#455A64",Dc="#212121",Lc={width:350,height:350,padding:50},Rc={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:Ic,stroke:"transparent",strokeWidth:0},zc=E()({textAnchor:"middle"},Rc),Nc="round",Fc="round",Bc={grayscale:Cc,material:{area:E()({style:{data:{fill:Dc},labels:Rc}},Lc),axis:E()({style:{axis:{fill:"transparent",stroke:Mc,strokeWidth:2,strokeLinecap:Nc,strokeLinejoin:Fc},axisLabel:E()({},zc,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:kc,strokeDasharray:"10, 5",strokeLinecap:Nc,strokeLinejoin:Fc,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Mc,strokeWidth:1,strokeLinecap:Nc,strokeLinejoin:Fc},tickLabels:E()({},Rc,{fill:Ic})}},Lc),polarDependentAxis:E()({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:E()({style:{data:{fill:Ic,padding:8,strokeWidth:0},labels:Rc}},Lc),boxplot:E()({style:{max:{padding:8,stroke:Ic,strokeWidth:1},maxLabels:E()({},Rc,{padding:3}),median:{padding:8,stroke:Ic,strokeWidth:1},medianLabels:E()({},Rc,{padding:3}),min:{padding:8,stroke:Ic,strokeWidth:1},minLabels:E()({},Rc,{padding:3}),q1:{padding:8,fill:Ic},q1Labels:E()({},Rc,{padding:3}),q3:{padding:8,fill:Ic},q3Labels:E()({},Rc,{padding:3})},boxWidth:20},Lc),candlestick:E()({style:{data:{stroke:Ic},labels:E()({},Rc,{padding:5})},candleColors:{positive:"#ffffff",negative:Ic}},Lc),chart:Lc,errorbar:E()({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:Ic,strokeWidth:2},labels:Rc}},Lc),group:E()({colorScale:Tc},Lc),histogram:E()({style:{data:{fill:Ic,stroke:Dc,strokeWidth:2},labels:Rc}},Lc),legend:{colorScale:Tc,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Rc,title:E()({},Rc,{padding:5})}},line:E()({style:{data:{fill:"transparent",opacity:1,stroke:Ic,strokeWidth:2},labels:Rc}},Lc),pie:E()({colorScale:Tc,style:{data:{padding:8,stroke:kc,strokeWidth:1},labels:E()({},Rc,{padding:20})}},Lc),scatter:E()({style:{data:{fill:Ic,opacity:1,stroke:"transparent",strokeWidth:0},labels:Rc}},Lc),stack:E()({colorScale:Tc},Lc),tooltip:{style:E()({},Rc,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Dc,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:E()({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:E()({},Rc,{padding:5,pointerEvents:"none"}),flyout:{stroke:Dc,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Lc)}},Vc=r(6557),Uc=r.n(Vc);function qc(t,e){return(t.key||e).toString()}function $c(t){return t.reduce((function(t,e,r){return t[qc(e,r)]=e,t}),{})}function Gc(t,e){var r=!1,n=T()(t).reduce((function(t,n){return n in e||(r=!0,t[n]=!0),t}),{});return r&&n}function Wc(t){return t.type&&t.type.getData?t.type.getData(t.props):t.props&&t.props.data||!1}function Zc(t,e){var r=!1,n=!1,o=function(t,e){return t.map((function(i,a){return i&&i.props&&i.props.children&&e[a]?o(P().Children.toArray(t[a].props.children),P().Children.toArray(e[a].props.children)):function(t,e){if(!e||t.type!==e.type)return{};var o,i,a,s,u=(o=Wc(t),i=Wc(e),a=o&&$c(o),s=i&&$c(i),{entering:a&&Gc(s,a),exiting:s&&Gc(a,s)}||{}),c=u.entering,l=u.exiting;return r=r||!!l,n=n||!!c,{entering:c||!1,exiting:l||!1}}(i,e[a])}))},i=o(P().Children.toArray(t),P().Children.toArray(e));return{nodesWillExit:r,nodesWillEnter:n,childrenTransitions:i,nodesShouldEnter:!1}}function Hc(t,e,r){var n=e&&e.nodesWillExit,o=e&&e.nodesWillEnter,i=e&&e.nodesShouldEnter,a=e&&e.nodesShouldLoad,s=e&&e.nodesDoneLoad,u=e&&e.childrenTransitions||[],c={enter:t.animate&&t.animate.onEnter&&t.animate.onEnter.duration,exit:t.animate&&t.animate.onExit&&t.animate.onExit.duration,load:t.animate&&t.animate.onLoad&&t.animate.onLoad.duration,move:t.animate&&t.animate.duration},l=function(t,e,n){return a?function(t,e,n){if((t=E()({},t,{onEnd:function(){r({nodesShouldLoad:!1,nodesDoneLoad:!0})}}))&&t.onLoad&&!t.onLoad.duration)return{animate:t,data:e};var o=t.onLoad&&t.onLoad.after?t.onLoad.after:Uc();return{animate:t,data:e=e.map((function(t,r){return E()({},t,o(t,r,e))}))}}(n,e):function(t,e,n,o){if((t=E()({},t,{onEnd:function(){r({nodesDoneLoad:!0})}}))&&t.onLoad&&!t.onLoad.duration)return{animate:t,data:n};var i=t.onLoad&&t.onLoad.before?t.onLoad.before:Uc();return{animate:t,data:n=n.map((function(t,e){return E()({},t,i(t,e,n))})),clipWidth:0}}(n,0,e)},p=function(t,e,n,o){return function(t,e,n,o,i){var a=t&&t.onExit;if(t=E()({},t,a),o){t.onEnd=function(){r({nodesWillExit:!1})};var s=t.onExit&&t.onExit.before?t.onExit.before:Uc();n=n.map((function(t,e){var r=(t.key||e).toString();return o[r]?E()({},t,s(t,e,n)):t}))}return{animate:t,data:n}}(o,0,n,t)},f=function(t,e,n,o){return i?function(t,e,n,o){var i=t&&t.onEnter;if(t=E()({},t,i),n){t.onEnd=function(){r({nodesWillEnter:!1})};var a=t.onEnter&&t.onEnter.after?t.onEnter.after:Uc();e=e.map((function(t,r){var o=qc(t,r);return n[o]?E()({},t,a(t,r,e)):t}))}return{animate:t,data:e}}(o,n,t):function(t,e,n,o,i){if(o){var a=(t=E()({},t,{onEnd:function(){r({nodesShouldEnter:!0})}})).onEnter&&t.onEnter.before?t.onEnter.before:Uc();n=n.map((function(t,e){var r=(t.key||e).toString();return o[r]?E()({},t,a(t,e,n)):t}))}return{animate:t,data:n}}(o,0,n,t)},h=function(t,e){var r=t.props.animate;if(!t.type)return{};var n=t.props&&t.props.polar&&t.type.defaultPolarTransitions||t.type.defaultTransitions;if(n){var o=r[e]&&r[e].duration;return void 0!==o?o:n[e]&&n[e].duration}return{}};return function(r,a){var d=Wc(r)||[],m=N()({},t.animate,r.props.animate),y=r.props.polar&&r.type.defaultPolarTransitions||r.type.defaultTransitions;m.onExit=N()({},m.onExit,y&&y.onExit),m.onEnter=N()({},m.onEnter,y&&y.onEnter),m.onLoad=N()({},m.onLoad,y&&y.onLoad);var v=u[a]||u[0];if(!s){var g={duration:void 0!==c.load?c.load:h(r,"onLoad")};return l(0,d,E()({},m,g))}if(n){var b=v&&v.exiting,_=void 0!==c.exit?c.exit:h(r,"onExit"),x=b?{duration:_}:{delay:_};return p(b,0,d,E()({},m,x))}if(o){var w=v&&v.entering,O=void 0!==c.enter?c.enter:h(r,"onEnter"),S=void 0!==c.move?c.move:r.props.animate&&r.props.animate.duration,P={duration:i&&w?O:S};return f(w,0,d,E()({},m,P))}return!e&&m&&m.onExit?function(t,e){var r=t.onEnter&&t.onEnter.after?t.onEnter.after:Uc();return{data:e.map((function(t,n){return E()({},t,r(t,n,e))}))}}(m,d):{animate:m,data:d}}}function Kc(){return Kc=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Kc.apply(this,arguments)}function Yc(t,e){return Yc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Yc(t,e)}function Xc(t){return Xc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Xc(t)}var Jc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Yc(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Xc(n);if(o){var r=Xc(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(t,e){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(r=i.call(this,t,e)).continuous=void 0,r.timer=void 0,r.transitionProps=void 0,r.state={nodesShouldLoad:!1,nodesDoneLoad:!1};var n=r.props.children,o=n.props.polar;return r.continuous=!o&&n.type&&!0===n.type.continuous,r.timer=r.context.transitionTimer,r}return e=a,r=[{key:"componentDidMount",value:function(){this.setState({nodesShouldLoad:!0})}},{key:"shouldComponentUpdate",value:function(t){var e=this;return cu()(this.props,t)||(this.timer.bypassAnimation(),this.setState(this.getTransitionState(this.props,t),(function(){return e.timer.resumeAnimation()}))),!0}},{key:"componentWillUnmount",value:function(){this.timer.stop()}},{key:"getTransitionState",value:function(t,e){var r=t.animate;if(!r)return{};if(r.parentState)return{oldProps:r.parentState.nodesWillExit?t:null,nextProps:e};var n=Zc(P().Children.toArray(t.children),P().Children.toArray(e.children)),o=n.nodesWillExit;return{nodesWillExit:o,nodesWillEnter:n.nodesWillEnter,childrenTransitions:n.childrenTransitions,nodesShouldEnter:n.nodesShouldEnter,oldProps:o?t:null,nextProps:e}}},{key:"getDomainFromChildren",value:function(t,e){var r=function(t){return t.reduce((function(t,n){if(n.type&&R()(n.type.getDomain)){var o=n.props&&n.type.getDomain(n.props,e);return o?t.concat(o):t}return n.props&&n.props.children?t.concat(r(P().Children.toArray(n.props.children))):t}),[])},n=P().Children.toArray(t.children)[0],o=n.props||{},i=Array.isArray(o.domain)?o.domain:o.domain&&o.domain[e];if(!o.children&&i)return i;var a=r([n]);return 0===a.length?[0,1]:[Ot(a),wt(a)]}},{key:"pickProps",value:function(){return this.state&&this.state.nodesWillExit&&this.state.oldProps||this.props}},{key:"pickDomainProps",value:function(t){var e,r=null===(e=t.animate)||void 0===e?void 0:e.parentState;return r&&r.nodesWillExit?(this.continuous||r.continuous)&&(r.nextProps||this.state.nextProps)||t:this.continuous&&this.state.nodesWillExit&&this.state.nextProps||t}},{key:"getClipWidth",value:function(t,e){var r,n=this.transitionProps?this.transitionProps.clipWidth:void 0;return void 0!==n?n:(r=J(e.props,"x"))?Math.abs(r[1]-r[0]):t.width}},{key:"render",value:function(){var t,e=this,r=this.pickProps(),n=null!==(t=this.props.animate)&&void 0!==t&&t.getTransitions?this.props.animate.getTransitions:Hc(r,this.state,(function(t){return e.setState(t)})),o=P().Children.toArray(r.children)[0],i=n(o);this.transitionProps=i;var a={x:this.getDomainFromChildren(this.pickDomainProps(r),"x"),y:this.getDomainFromChildren(r,"y")},s=this.getClipWidth(r,o),u=N()({domain:a,clipWidth:s},i,o.props),c=(r.animationWhitelist||[]).concat(["clipWidth"]),l=c.length?M()(u,c):u;return P().createElement(hu,Kc({},u.animate,{data:l}),(function(t){if(o.props.groupComponent){var r=e.continuous?P().cloneElement(o.props.groupComponent,{clipWidth:t.clipWidth||0}):o.props.groupComponent;return P().cloneElement(o,N()({animate:null,animating:!0,groupComponent:r},t,u))}return P().cloneElement(o,N()({animate:null,animating:!0},t,u))}))}}],r&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(P().Component);function Qc(t){return function(t){if(Array.isArray(t))return tl(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return tl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tl(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function el(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function rl(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?el(Object(r),!0).forEach((function(e){nl(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):el(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function nl(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ol(t,e){return ol=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ol(t,e)}function il(t){return il=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},il(t)}Jc.displayName="VictoryTransition",Jc.propTypes={animate:A().oneOfType([A().bool,A().object]),animationWhitelist:A().array,children:A().node},Jc.contextType=su;var al=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ol(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=il(n);if(o){var r=il(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).clipId=void 0,e.clipId=mu()(t)&&void 0!==t.clipId?t.clipI
1d:vu()("victory-clip-"),e}return e=a,(r=[{key:"calculateAttributes",value:function(t){var e=t.polar,r=t.origin,n=t.clipWidth,o=void 0===n?0:n,i=t.clipHeight,a=void 0===i?0:i,s=t.translateX,u=void 0===s?0:s,c=t.translateY,l=void 0===c?0:c,p=U({padding:t.clipPadding}),f=t.radius||Y(t);return{x:(e?r.x:u)-p.left,y:(e?r.y:l)-p.top,width:Math.max((e?f:o)+p.left+p.right,0),height:Math.max((e?f:a)+p.top+p.bottom,0)}}},{key:"renderClippedGroup",value:function(t,e){var r=Ha(t),n=t.style,o=t.events,i=t.transform,a=t.children,s=t.className,u=t.groupComponent,c=t.tabIndex,l=this.renderClipComponent(t,e),p=E()({className:s,style:n,transform:i,key:"clipped-group-".concat(e),clipPath:"url(#".concat(e,")")},o);return P().cloneElement(u,rl(rl({},p),{},{tabIndex:c},r),[l].concat(Qc(P().Children.toArray(a))))}},{key:"renderGroup",value:function(t){var e=t.style,r=t.events,n=t.transform,o=t.children,i=t.className,a=t.groupComponent,s=t.tabIndex;return P().cloneElement(a,E()({className:i,style:e,transform:n,"aria-label":t["aria-label"],tabIndex:s},r),o)}},{key:"renderClipComponent",value:function(t,e){var r,n=t.polar,o=t.origin,i=t.clipWidth,a=void 0===i?0:i,s=t.clipHeight,u=void 0===s?0:s,c=t.translateX,l=void 0===c?0:c,p=t.translateY,f=void 0===p?0:p,h=t.circleComponent,d=t.rectComponent,m=t.clipPathComponent,y=U({padding:t.clipPadding}),v=y.top,g=y.bottom,b=y.left,_=y.right;if(n){var x=t.radius||Y(t),w={r:Math.max(x+b+_,x+v+g,0),cx:o.x-b,cy:o.y-v};r=P().cloneElement(h,w)}else{var O={x:l-b,y:f-v,width:Math.max(a+b+_,0),height:Math.max(u+v+g,0)};r=P().cloneElement(d,O)}return P().cloneElement(m,E()({key:"clip-path-".concat(e)},t,{clipId:e}),r)}},{key:"getClipValue",value:function(t,e){var r={x:t.clipWidth,y:t.clipHeight};if(void 0!==r[e])return r[e];var n=J(t,e);return n&&Math.abs(n[0]-n[1])||void 0}},{key:"getTranslateValue",value:function(t,e){var r={x:t.translateX,y:t.translateY};if(void 0!==r[e])return r[e];var n=J(t,e);return n?Math.min.apply(Math,Qc(n)):void 0}},{key:"render",value:function(){var t=this.getClipValue(this.props,"y"),e=this.getClipValue(this.props,"x");if(void 0===e||void 0===t)return this.renderGroup(this.props);var r=this.getTranslateValue(this.props,"x"),n=this.getTranslateValue(this.props,"y"),o=N()({},this.props,{clipHeight:t,clipWidth:e,translateX:r,translateY:n});return this.renderClippedGroup(o,this.clipId)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(P().Component);al.displayName="VictoryClipContainer",al.role="container",al.propTypes={"aria-label":A().string,children:A().oneOfType([A().arrayOf(A().node),A().node]),circleComponent:A().element,className:A().string,clipHeight:Gi,clipId:A().oneOfType([A().number,A().string]),clipPadding:A().shape({top:A().number,bottom:A().number,left:A().number,right:A().number}),clipPathComponent:A().element,clipWidth:Gi,events:A().object,groupComponent:A().element,origin:A().shape({x:Gi,y:Gi}),polar:A().bool,radius:Gi,style:A().object,tabIndex:A().number,transform:A().string,translateX:A().number,translateY:A().number},al.defaultProps={circleComponent:P().createElement(ia,null),rectComponent:P().createElement(ra,null),clipPathComponent:P().createElement(da,null),groupComponent:P().createElement("g",null)};var sl=r(82569),ul=r.n(sl),cl=r(14293),ll=r.n(cl),pl=r(91966),fl=r.n(pl),hl=r(44908),dl=r.n(hl),ml=r(14176),yl=r.n(ml),vl=r(35937),gl=r.n(vl);function bl(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _l(t){return function(t){if(Array.isArray(t))return xl(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return xl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xl(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var wl=/^onGlobal(.*)$/;function Ol(t,e,r,n){var o,i=this,a=function(t){var n,o=(n=t.reduce((function(t,r){return void 0!==r.target?(Array.isArray(r.target)?ft()(r.target,e):"".concat(r.target)==="".concat(e))?t.concat(r):t:t.concat(r)}),[]),void 0!==r&&"parent"!==e?n.filter((function(t){var e=t.eventKe
1y,n=function(t){return!t||"".concat(t)==="".concat(r)};return Array.isArray(e)?e.some((function(t){return n(t)})):n(e)})):n);return Array.isArray(o)&&o.reduce((function(t,e){return e?E()(t,e.eventHandlers):t}),{})},s=Array.isArray(i.componentEvents)?Array.isArray(t.events)?(o=i.componentEvents).concat.apply(o,_l(t.events)):i.componentEvents:t.events,u=s&&R()(n)?n(a(s),e):void 0;if(!t.sharedEvents)return u;var c=t.sharedEvents.getEvents,l=t.sharedEvents.events&&c(a(t.sharedEvents.events),e);return E()({},l,u)}function El(t,e,r,n){var o=this;if(Tu()(t))return{};n=n||this.baseProps;var i=function(t,e){var r=t.childName,i=t.target,a=t.key,s="props"===e?n:o.state||{},u=null!=r&&s[r]?s[r]:s;return"parent"===a?u.parent:u[a]&&u[a][i]},a=function(t,a){var s="parent"===e?t.childName:t.childName||r,u=t.target||e,c=function(e,r){var a=o.state||{};if(!R()(t.mutation))return a;var s=i({childName:r,key:e,target:u},"props"),c=i({childName:r,key:e,target:u},"state"),l=t.mutation(E()({},s,c),n),p=a[r]||{},f=function(t){return l?function(t){return"parent"===u?E()(t,bl({},e,E()(t[e],l))):E()(t,bl({},e,E()(t[e],bl({},u,l))))}(t):function(t){return t[e]&&t[e][u]&&delete t[e][u],t[e]&&!T()(t[e]).length&&delete t[e],t}(t)};return null!=r?E()(a,bl({},r,f(p))):f(a)},l=function(e){var r=function(e){return"parent"===u?"parent":"all"===t.eventKey?n[e]?ul()(T()(n[e]),"parent"):ul()(T()(n),"parent"):void 0===t.eventKey&&"parent"===a?n[e]?T()(n[e]):T()(n):void 0!==t.eventKey?t.eventKey:a}(e);return Array.isArray(r)?r.reduce((function(t,r){return E()(t,c(r,e))}),{}):c(r,e)},p="all"===s?ul()(T()(n),"parent"):s;return Array.isArray(p)?p.reduce((function(t,e){return E()(t,l(e))}),{}):l(p)},s=function(e,r,n,i){var s=t[i](e,r,n,o);if(!Tu()(s)){var u=function(t){var e=function(t){return R()(t.callback)&&t.callback},r=(Array.isArray(t)?t.map((function(t){return e(t)})):[e(t)]).filter((function(t){return!1!==t}));return r.length?function(){return r.forEach((function(t){return t()}))}:void 0}(s);o.setState(function(t,e){return Array.isArray(t)?t.reduce((function(t,r){return E()({},t,a(r,e))}),{}):a(t,e)}(s,n),u)}};return T()(t).reduce((function(t,e){return t[e]=s,t}),{})}function Sl(t,e,r){return t?T()(t).reduce((function(n,o){return n[o]=function(n){return t[o](n,r,e,o)},n}),{}):{}}function Pl(t,e,r){var n=this.state||{};return r?n[r]&&n[r][t]&&n[r][t][e]:"parent"===t?n[t]&&n[t][e]||n[t]:n[t]&&n[t][e]}function jl(t,e,r,n){return e=e||{},r=r||{},n.reduce((function(n,o){var i=r[o],a=Al(t,e[o],r[o],o);return n[o]=a||i,gl()(n,(function(t){return!Tu()(t)}))}),{})}function Al(t,e,r,n){return e=e||{},r=r||{},T()(e).reduce((function(o,i){var a=r[i]||{},s=e[i]||{};if("parent"===i){var u=Cl(t,s,a,{eventKey:i,target:"parent"});o[i]=void 0!==u?E()({},a,u):a}else{var c=dl()(T()(s).concat(T()(a)));o[i]=c.reduce((function(e,r){var o={eventKey:i,target:r,childName:n},u=Cl(t,s[r],a[r],o);return e[r]=void 0!==u?E()({},a[r],u):a[r],gl()(e,(function(t){return!Tu()(t)}))}),{})}return gl()(o,(function(t){return!Tu()(t)}))}),{})}function Cl(t,e,r,n){var o=function(t,e){if("string"==typeof t[e])return"all"===t[e]||t[e]===n[e];if(Array.isArray(t[e])){var r=t[e].map((function(t){return"".concat(t)}));return ft()(r,n[e])}return!1},i=t=Array.isArray(t)?t:[t];n.childName&&(i=t.filter((function(t){return o(t,"childName")})));var a=i.filter((function(t){return o(t,"target")}));if(!Tu()(a)){var s=a.filter((function(t){return o(t,"eventKey")}));if(!Tu()(s))return s.reduce((function(t,n){var o=(n&&R()(n.mutation)?n.mutation:function(){})(E()({},e,r));return E()({},t,o)}),{})}}function Tl(t,e){var r=Array.isArray(e)&&e.reduce((function(e,r){var n,o=t[r],i=o&&o.type&&o.type.defaultEvents,a=R()(i)?i(o.props):i;return Array.isArray(a)?(n=e).concat.apply(n,_l(a)):e}),[]);return r&&r.length?r:void 0}function kl(t){var e=t.match(wl);return e&&e[1]&&e[1].toLowerCase()}var Ml=function(t){return gl()(t,(function(t,e){return wl.test(e)}))},Il=function(t){return yl()(t,(function(t,e){return wl.test(e)}))},Dl=function(t){return E()(t,{nativeEvent:t})};function Ll(t){return function(t){if(Array.isArray(t))return Rl(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Rl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Rl(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function zl(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Nl(t,e){return Nl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Nl(t,e)}function Fl(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Bl(t){return Bl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Bl(t)}var Vl=function(t){return!ll()(t._x)&&!ll()(t._y)},Ul=[{name:"parent",index:"parent"},{name:"data"},{name:"labels"}];function ql(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=function(r){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Nl(t,e)}(u,r);var n,o,i,a,s=(i=u,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Bl(i);if(a){var r=Bl(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Fl(t)}(this,t)});function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(e=s.call(this,t)).state={},e.getEventState=Pl.bind(Fl(e)),e.getScopedEvents=El.bind(Fl(e)),e.getEvents=function(t,r,n){return Ol.call(Fl(e),t,r,n,e.getScopedEvents)},e.externalMutations=e.getExternalMutations(e.props),e.calculatedState=e.getStateChanges(e.props),e.globalEvents={},e.prevGlobalEventKeys=[],e.boundGlobalEvents={},e.cacheValues(e.getCalculatedValues(t)),e}return n=u,o=[{key:"shouldComponentUpdate",value:function(t){var e=this.getExternalMutations(t),r=this.props.animating||this.props.animate,n=!cu()(e,this.externalMutations);if(r||n)return this.cacheValues(this.getCalculatedValues(t)),this.externalMutations=e,this.applyExternalMutations(t,e),!0;var o=this.getStateChanges(t);return cu()(this.calculatedState,o)?!cu()(this.props,t)&&(this.cacheValues(this.getCalculatedValues(t)),!0):(this.cacheValues(this.getCalculatedValues(t)),!0)}},{key:"componentDidMount",value:function(){var t=this,e=T()(this.globalEvents);e.forEach((function(e){return t.addGlobalListener(e)})),this.prevGlobalEventKeys=e}},{key:"componentDidUpdate",value:function(t){var e=this,r=this.getStateChanges(t);this.calculatedState=r;var n=T()(this.globalEvents);
1fl()(this.prevGlobalEventKeys,n).forEach((function(t){return e.removeGlobalListener(t)})),fl()(n,this.prevGlobalEventKeys).forEach((function(t){return e.addGlobalListener(t)})),this.prevGlobalEventKeys=n}},{key:"componentWillUnmount",value:function(){var t=this;this.prevGlobalEventKeys.forEach((function(e){return t.removeGlobalListener(e)}))}},{key:"addGlobalListener",value:function(t){var e=this,r=function(r){var n=e.globalEvents[t];return n&&n(Dl(r))};this.boundGlobalEvents[t]=r,window.addEventListener(kl(t),r)}},{key:"removeGlobalListener",value:function(t){window.removeEventListener(kl(t),this.boundGlobalEvents[t])}},{key:"getStateChanges",value:function(t){var r=this;if(!this.hasEvents)return{};var n=function(t,e){var n=N()({},r.getEventState(t,e),r.getSharedEventState(t,e));return Tu()(n)?void 0:n};return(e.components||Ul).map((function(e){if(t.standalone||"parent"!==e.name)return void 0!==e.index?n(e.index,e.name):r.dataKeys.map((function(t){return n(t,e.name)})).filter(Boolean)})).filter(Boolean)}},{key:"applyExternalMutations",value:function(t,e){if(!Tu()(e)){var r=t.externalEventMutations.reduce((function(t,e){return R()(e.callback)?t.concat(e.callback):t}),[]),n=r.length?function(){r.forEach((function(t){return t()}))}:void 0;this.setState(e,n)}}},{key:"getCalculatedValues",value:function(e){var r=e.sharedEvents,n=Tl(e,t.expectedComponents),o=r&&R()(r.getEventState)?r.getEventState:function(){},i=this.getBaseProps(e,o);return{componentEvents:n,getSharedEventState:o,baseProps:i,dataKeys:T()(i).filter((function(t){return"parent"!==t})),hasEvents:e.events||e.sharedEvents||n,events:this.getAllEvents(e)}}},{key:"getExternalMutations",value:function(t){var e=t.sharedEvents,r=t.externalEventMutations;return Tu()(r)||e?void 0:Al(r,this.baseProps,this.state)}},{key:"cacheValues",value:function(t){var e=this;T()(t).forEach((function(r){e[r]=t[r]}))}},{key:"getBaseProps",value:function(e,r){var n=(r=r||this.getSharedEventState.bind(this))("parent","parent"),o=this.getEventState("parent","parent"),i=N()({},o,n),a=i.parentControlledProps,s=a?M()(i,a):{},u=N()({},s,e);return"function"==typeof t.getBaseProps?t.getBaseProps(u):{}}},{key:"getAllEvents",value:function(t){var e;return Array.isArray(this.componentEvents)?Array.isArray(t.events)?(e=this.componentEvents).concat.apply(e,Ll(t.events)):this.componentEvents:t.events}},{key:"getComponentProps",value:function(e,r,n){var o=this.props.name||t.role,i=this.dataKeys&&this.dataKeys[n]||n,a="".concat(o,"-").concat(r,"-").concat(i),s=this.baseProps[i]&&this.baseProps[i][r]||this.baseProps[i];if(s||this.hasEvents){if(this.hasEvents){var u=this.getEvents(this.props,r,i),c=N()({index:n,key:a},this.getEventState(i,r),this.getSharedEventState(i,r),e.props,s,{id:a}),l=N()({},Sl(u,i,c),c.events);return E()({},c,{events:l})}return N()({index:n,key:a},e.props,s,{id:a})}}},{key:"renderContainer",value:function(t,e){var r=t.type&&"container"===t.type.role?this.getComponentProps(t,"parent","parent"):{};return r.events&&(this.globalEvents=Ml(r.events),r.events=Il(r.events)),P().cloneElement(t,r,e)}},{key:"animateComponent",value:function(t,e){var r,n="object"==typeof t.animate&&(null===(r=t.animate)||void 0===r?void 0:r.animationWhitelist)||e,o=this.constructor;return P().createElement(Jc,{animate:t.animate,animationWhitelist:n},P().createElement(o,t))}},{key:"renderContinuousData",value:function(t){var e=this,r=t.dataComponent,n=t.labelComponent,o=t.groupComponent,i=ul()(this.dataKeys,"all").reduce((function(t,r){var o=e.getComponentProps(n,"labels",r);return o&&void 0!==o.text&&null!==o.text&&(t=t.concat(P().cloneElement(n,o))),t}),[]),a=this.getComponentProps(r,"data","all"),s=[P().cloneElement(r,a)].concat(Ll(i));return this.renderContainer(o,s)}},{key:"renderData",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vl,n=t.dataComponent,o=t.labelComponent,i=t.groupComponent,a=this.dataKeys.reduce((function(t,o,i){var a=e.getComponentProps(n,"data",i);return r(a.datum)&&t.push(P().cloneElement(n,a)),t}),[]),s=this.dataKeys.map((function(t,r){var n=e.getComponentProps(o,"labels",r);
1if(void 0!==n.text&&null!==n.text)return P().cloneElement(o,n)})).filter(Boolean),u=[].concat(Ll(a),Ll(s));return this.renderContainer(i,u)}}],o&&zl(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),u}(t);return r}var $l=r(52353),Gl=r.n($l),Wl=r(18446),Zl=r.n(Wl),Hl=r(10928),Kl=r.n(Hl);function Yl(t){return!(!t||!t["@@__IMMUTABLE_ITERABLE__@@"])}function Xl(t,e){return Yl(t)?t.reduce((function(t,r,n){return e&&e[n]&&(r=Xl(r)),t[n]=r,t}),function(t){return!(!t||!t["@@__IMMUTABLE_LIST__@@"])}(t)?[]:{}):t}function Jl(t){return function(t){if(Array.isArray(t))return Ql(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Ql(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ql(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ql(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function tp(t){return Yl(e=t)||function(t){return!(!t||!t["@@__IMMUTABLE_RECORD__@@"])}(e)?Xl(t,{errorX:!0,errorY:!0}):t;var e}function ep(t){return Yl(t)?t.size:t.length}function rp(t,e){var r=(lt()(t.domain)?t.domain[e]:t.domain)||Mi(t,e).domain(),n=t.samples||1,o=Math.max.apply(Math,Jl(r)),i=Math.min.apply(Math,Jl(r)),a=(o-i)/n,s=Ma()(i,o,a);return Kl()(s)===o?s:s.concat(o)}function np(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ascending";if(!e)return t;"x"!==e&&"y"!==e||(e="_".concat(e));var n="ascending"===r?"asc":"desc";return Fs()(t,e,n)}function op(t,e,r){var n=function(t){return void 0!==t},o=Ot(e.x),i=wt(e.x),a=Ot(e.y),s=wt(e.y),u=function(t){return function(e){return n(e)&&e<t}},c=function(t){return function(e){return n(e)&&e>t}},l=u(o),p=u(a),f=c(i),h=c(s);return t.map((function(t){var e=t._x,o=t._y,i=t._y0,u=t._y1;(l(e)||f(e))&&(e=null);var c=n(i)?i:r,d=n(u)?u:o;return n(d)?(n(c)||!p(d)&&!h(d)||(o=null),(p(c)&&p(d)||h(c)&&h(d))&&(o=i=u=null),p(c)&&!p(d)&&(i=a),h(c)&&!h(d)&&(i=s),E()({},t,yl()({_x:e,_y:o,_y0:i,_y1:u},Gl()))):t}))}function ip(t,e){var r=pp(t,e),n=fp(t,e),o=hp(t,e),i=dl()([].concat(Jl(r),Jl(n),Jl(o)));return 0===i.length?null:i.reduce((function(t,e,r){return t[e]=r+1,t}),{})}function ap(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=ep(t);if(n>e){var o=Math.pow(2,Math.ceil(Math.log2(n/e)));return t.filter((function(t,e){return(e+r)%o==0}))}return t}function sp(t,e,r){if(!Array.isArray(t)&&!Yl(t)||ep(t)<1)return[];var n,o=["x","y","y0"],i=(r=Array.isArray(r)?r:o).reduce((function(t,r){var n;return t[r]=Q(void 0!==e[n=r]?e[n]:n),t}),{}),a=Zl()(r,o)&&"_x"===e.x&&"_y"===e.y&&"_y0"===e.y0;!1===a&&(n={x:-1!==r.indexOf("x")?ip(e,"x"):void 0,y:-1!==r.indexOf("y")?ip(e,"y"):void 0,y0:-1!==r.indexOf("y0")?ip(e,"y"):void 0});var s=a?t:t.reduce((function(t,e,o){var a={x:o,y:e=tp(e)},s=r.reduce((function(t,r){var o=i[r](e),s=void 0!==o?o:a[r];return void 0!==s&&("string"==typeof s&&n[r]?(t["".concat(r,"Name")]=s,t["_".concat(r)]=n[r][s]):t["_".concat(r)]=s),t}),{}),u=E()({},s,e);return Tu()(u)||t.push(u),t}),[]),u=function(t,e){var r=1/Number.MAX_SAFE_INTEGER,n={x:Li(e,"x"),y:Li(e,"y")};if("log"!==n.x&&"log"!==n.y)return t;var o=function(t,e){return"log"!==n[e]||0!==t["_".concat(e)]};return t.map((function(t){return o(t,"x")&&o(t,"y")&&o(t,"y0")?t:function(t){var e=o(t,"x")?t._x:r,n=o(t,"y")?t._y:r,i=o(t,"y0")?t._y0:r;return E()({},t,{_x:e,_y:n,_y0:i})}(t)}))}(np(s,e.sortKey,e.sortOrder),e);return function(t,e){var r,n=!!t.eventKey,o=(r=t.eventKey,R()(r)?r:null==r?function(){}:D()(r));return e.map((function(t,e){if(void 0!==t.eventKey)return t;if(n){var r=o(t,e);return void 0!==r?E()({eventKey:r},t):t}return t}))}(e,u)}function up(t){var e=rp(t,"x"),r=rp(t,"y");return e.map((function(t,e){return{x:t,y:r[e]}}))}function cp(t,e){return t.categories&&!Array.isArray(t.categories)?t.categories[e]:t.categories}function lp(t){return t.data?sp(t.data,t):sp(up(t),t)}function pp(t,e){var r=t.tickValues,n=t.tickFormat;return(r&&(Array.isArray(r)||r[e])?r[e]||r:n&&Array.isArray(n)?n:[]).filter((function(t){return"string"==typeof t}))}function fp(t,e){if(!t.categories)return[];var r=cp(t,e),n=r&&r.filter((function(t){return"string"==typeof t}));return n?xt(n):[]}function hp(t,e){if(!Array.isArray(t.data)&&!Yl(t.data))return[];var r=Q(void 0===t[e]?e:t[e]);return np(t.data.reduce((function(t,e){return t.push(tp(e)),t}
1),[]),t.sortKey,t.sortOrder).reduce((function(t,e){return e=tp(e),t.push(r(e)),t}),[]).filter((function(t){return"string"==typeof t})).reduce((function(t,e){return null!=e&&-1===t.indexOf(e)&&t.push(e),t}),[])}function dp(t){var e=function(t){return t&&t.type?t.type.role:""},r=e(t);if("portal"===r){var n=P().Children.toArray(t.props.children);r=n.length?e(n[0]):""}return ft()(["area","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"],r)}function mp(){return{onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}}}function yp(){return{onLoad:{duration:2e3,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(t){return{_y:t._y,_y1:t._y1,_y0:t._y0}}},onExit:{duration:500,before:function(t,e,r){var n=function(t){return(0===e?r[e+1]:r[e-1])[t]};return{_x:n("_x"),_y:n("_y"),_y0:n("_y0")}}},onEnter:{duration:500,before:function(t,e,r){var n=function(t){return(0===e?r[e+1]:r[e-1])[t]};return{_x:n("_x"),_y:n("_y"),_y0:n("_y0")}},after:function(t){return{_x:t._x,_y:t._y,_y1:t._y1,_y0:t._y0}}}}}function vp(){return{onLoad:{duration:2e3,before:function(){return{opacity:0}
1},after:function(t){return t}},onExit:{duration:600,before:function(){return{opacity:0}}},onEnter:{duration:600,before:function(){return{opacity:0}},after:function(t){return t}}}}var gp=r(47960),bp=r.n(gp),_p=r(97520),xp=r.n(_p),wp=r(85564),Op=r.n(wp);function Ep(t){return function(t){if(Array.isArray(t))return Sp(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Sp(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Sp(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sp(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Pp(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"min",n=function(t){return"max"===r?Math.max.apply(Math,Ep(t)):Math.min.apply(Math,Ep(t))},o="max"===r?-1/0:1/0,i=!1,a=Op()(t).reduce((function(t,r){var o=void 0!==r["_".concat(e,"0")]?r["_".concat(e,"0")]:r["_".concat(e)],a=void 0!==r["_".concat(e,"1")]?r["_".concat(e,"1")]:r["_".concat(e)],s=n([o,a]);return i=i||o instanceof Date||a instanceof Date,n([t,s])}),o);return i?new Date(a):a}function jp(t,e){return t=R()(t)?t:kp,e=R()(e)?e:Ap,function(r,n){var o=Ip(r,n);if(o)return e(o,r,n);var i=cp(r,n),a=i?Tp(r,n,i):t(r,n);return a?e(a,r,n):void 0}}function Ap(t,e,r){return function(t,e,r){return"log"!==Li(e,r)?t:(o=(n=t)[0]<0||n[1]<0?-1/Number.MAX_SAFE_INTEGER:1/Number.MAX_SAFE_INTEGER,[0===n[0]?o:n[0],0===n[1]?o:n[1]]);var n,o}(function(t,e,r){if(!e.domainPadding)return t;var n=Rp(e,r),o=Lp(e,r),i=function(t,e){var r=function(t){return Array.isArray(t)?{left:t[0],right:t[1]}:{left:t,right:t}};return lt()(t.domainPadding)?r(t.domainPadding[e]):r(t.domainPadding)}(e,r);if(!i.left&&!i.right)return t;var a=Ot(t),s=wt(t),u=J(e,et(r,e.horizontal)),c=Math.abs(u[0]-u[1]),l=Math.max(c-i.left-i.right,1),p=Math.abs(s.valueOf()-a.valueOf())/l*c,f=p*i.left/c,h=p*i.right/c,d={min:a.valueOf()-f,max:s.valueOf()+h},m=lt()(e.singleQuadrantDomainPadding)?e.singleQuadrantDomainPadding[r]:e.singleQuadrantDomainPadding,y=function(t,e){return"min"===e&&a>=0&&t<=0||"max"===e&&s<=0&&t>=0?0:t};if((a>=0&&d.min<=0||s<=0&&d.max>=0)&&!1!==m){var v={left:Math.abs(s-a)*i.left/c,right:Math.abs(s-a)*i.right/c},g={min:y(a.valueOf()-v.left,"min"),max:y(s.valueOf()+v.right,"max")},b={left:Math.abs(g.max-g.min)*i.left/c,right:Math.abs(g.max-g.min)*i.right/c};d={min:y(a.valueOf()-b.left,"min"),max:y(s.valueOf()+b.right,"max")}}var _={min:void 0!==n?n:d.min,max:void 0!==o?o:d.max};return a instanceof Date||s instanceof Date?Mp(new Date(_.min),new Date(_.max)):Mp(_.min,_.max)}(t,e,r),e,r)}function Cp(t,e){return jp()(t,e)}function Tp(t,e,r){r=r||cp(t,e);var n=t.polar,o=t.startAngle,i=void 0===o?0:o,a=t.endAngle,s=void 0===a?360:a;if(r){var u=Rp(t,e),c=Lp(t,e),l=yt(r)?fp(t,e):[],p=0===l.length?null:l.reduce((function(t,e,r){return t[e]=r+1,t}),{}),f=p?r.map((function(t){return p[t]})):r,h=Mp(void 0!==u?u:Ot(f),void 0!==c?c:wt(f));return n&&"x"===e&&360===Math.abs(i-s)?zp(h,f):h}}function kp(t,e,r){r=r||lp(t);var n=t.polar,o=t.startAngle,i=void 0===o?0:o,a=t.endAngle,s=void 0===a?360:a,u=Rp(t,e),c=Lp(t,e);if(r.length<1)return void 0!==u&&void 0!==c?Mp(u,c):void 0;var l=Mp(void 0!==u?u:Pp(r,e,"min"),void 0!==c?c:Pp(r,e,"max"));return n&&"x"===e&&360===Math.abs(i-s)?zp(l,function(t,e){var r="_".concat(e);return Op()(t).map((function(t){return t[r]&&void 0!==t[r][1]?t[r][1]:t[r]}))}(r,e)):l}function Mp(t,e){var r,n,o,i;return Number(t)===Number(e)?(n=0===(r=e)?2*Math.pow(10,-10):Math.pow(10,-10),o=r instanceof Date?new Date(Number(r)-1):Number(r)-n,i=r instanceof Date?new Date(Number(r)+1):Number(r)+n,0===r?[0,i]:[o,i]):[t,e]}function Ip(t,e){var r=Rp(t,e),n=Lp(t,e);return lt()(t.domain)&&t.domain[e]?t.domain[e]:Array.isArray(t.domain)?t.domain:void 0!==r&&void 0!==n?Mp(r,n):void 0}function Dp(t,e){var r=Ip(t,e);if(r)return r;var n=lp(t),o=n.reduce((function(t,e){return e._y0<t?e._y0:t}),1/0);return jp((function(){return kp(t,e,n)}),(function(r){return Ap(function(r){if("x"===e)return r;var n=o!==1/0?o:0,i=Lp(t,e),a=Rp(t,e),s=void 0!==i?i:wt(r,n);return Mp(void 0!==a?a:Ot(r,n),s)}(r),t,e)}))(t,e)}function Lp(t,e){return lt()(t.maxDomain)&&void 0!==t.maxDomain[e]?t.maxDomain[e]:"number"==typeof t.maxDomain||bp()(t.maxDomain)?t.maxDomain:void 0}function Rp(t,e){return lt()(t.minDomain)&&void 0!==t.minDomain[e]?t.minDomain[e]:"number"==typeof t.minDomain||bp()(t.minDomain)?t.minDomain:void 0}function zp(t,e){var r=xp()(e.sort((function(t,e){return t-e}))),n=r[1]-r[0];return[t[0],t[1]+n]}function Np(t){var e=function(t){return t&&t.type?t.type.role:""},r=e(t);if("portal"===r){var n=P().Children.toArray(t.props.children);r=n.length?e(n[0]):""}return ft()(["area","axis","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"],r)}function Fp(t,e,r){var n=e.a,o=e.d,i=e.e,a=e.f;return"y"===r?o*t+a:n*t+i}function Bp(t){return!(!t||void 0===t.identifier)}function Vp(t){if(!Bp(t.nativeEvent)){var e=function(t){return"svg"===t.nodeName?t:t.parentNode?e(t.parentNode):t};return e(t.target)}}function Up(t,e){if(Bp(t.nativeEvent))return{x:t.nativeEvent.locationX,y:t.nativeEvent.locationY};var r=function(t){return t.changedTouches&&t.changedTouches.length>0}(t)?t.changedTouches[0]:t,n=function(t){return t.getScreenCTM().inverse()}(e=e||Vp(r));return{x:Fp(r.clientX,n,"x"),y:Fp(r.clientY,n,"y")}}function qp(t,e){var r=t.horizontal,n=t.scale,o=e||{x:n.x.domain(),y:n.y.domain()};return{x:r?[n.y(o.y[0]),n.y(o.y[1])]:[n.x(o.x[0]),n.x(o.x[1])],y:r?[n.x(o.x[0]),n.x(o.x[1])]:[n.y(o.y[0]),n.y(o.y[1])]}}function $p(t,e,r,n){var o=t.polar,i=t.horizontal;if(!o)return{x:i?e.x.invert(n):e.x.invert(r),y:i?e.y.invert(r):e.y.invert(n)};var a=t.origin||{x:0,y:0},s=r-a.x,u=n-a.y,c=Math.abs(s*Math.sqrt(1+Math.pow(-u/s,2))),l=(-Math.atan2(u,s)+2*Math.PI)%(2*Math.PI);return{x:e.x.invert(l),y:e.y.invert(c)}}function Gp(t){var e=t.x1,r=t.x2,n=t.y1,o=t.y2,i=t.scale,a=$p(t,i,e,n),s=$p(t,i,r,o),u=function(t,e){return[Ot([t,e]),wt([t,e])]};return{x:u(a.x,s.x),y:u(a.y,s.y)}}var Wp=r(52628),Zp=r.n(Wp),Hp=r(63137),Kp=r.n(Hp);function Yp(t){return function(t){if(Array.isArray(t))return Xp(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Xp(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Xp(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xp(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Jp(t){return t.dependentAxis?"y":"x"}function Qp(t,e){e=e||Uc();var r=function(t){return t.reduce((function(t,n){return n.type&&"axis"===n.type.role&&e(n)?t.concat(n):n.props&&n.props.children?t.concat(r(P().Children.toArray(n.props.children))):t}),[])};return r(t)}function tf(t,e){return Qp(t,(function(t){return t.type.getAxis(t.props)===e}))[0]}function ef(t,e){var r=function(t){return t.reduce((function(t,n){return n.type&&"axis"===n.type.role&&function(t){return"dependent"===e?t.props.dependentAxis:!t.props.dependentAxis}(n)||n.props&&n.props.children&&r(P().Children.toArray(n.props.children)).length>0?t.concat(n):t}),[])};return r(t)}function rf(t){var e=function(t){var e=Math.min.apply(Math,Yp(t)),r=M
1ath.max.apply(Math,Yp(t));return r<0?r:Math.max(0,e)};return{x:vt(t.x)?new Date(Math.min.apply(Math,Yp(t.x))):e(t.x),y:vt(t.y)?new Date(Math.min.apply(Math,Yp(t.y))):e(t.y)}}function nf(t,e){return vt(e)?"positive":t<=0&&Math.max.apply(Math,Yp(e))<=0?"negative":"positive"}function of(t){return{top:!1,bottom:!1,left:!0,right:!0}[t.orientation||(t.dependentAxis?"left":"bottom")]}function af(t){return void 0!==t.tickValues&&yt(t.tickValues)}function sf(t){var e=t.tickValues,r=t.tickFormat,n=Jp(t),o=t.stringMap&&t.stringMap[n],i=e;o&&(i=function(t){var e=Jp(t),r=t.stringMap&&t.stringMap[e],n=Array.isArray(t.categories)?t.categories:t.categories&&t.categories[e],o=n&&bt(n)?n.map((function(t){return r[t]})):void 0,i=r&&Zp()(r);return o&&0!==o.length?o:i}(t)),e&&yt(e)&&(i=o?e.map((function(t){return o[t]})):Ma()(1,e.length+1));var a=i?dl()(i):function(){if(r&&Array.isArray(r))return yt(r)?r.map((function(t,e){return e})):r}();return Array.isArray(a)&&a.length?function(e){var r=[],o=t.domain&&t.domain[n]||t.domain;if(e)return e.forEach((function(t,e){Array.isArray(o)?t>=Ot(o)&&t<=wt(o)&&r.push({value:t,index:e}):r.push({value:t,index:e})})),r}(a):void 0}function uf(t,e){var r=t.tickFormat,n=Jp(t),o=t.stringMap&&t.stringMap[n];if(!r){var i=function(t){var e=t.tickValues,r=Jp(t),n=t.stringMap&&t.stringMap[r],o=e&&!vt(e)?function(t){return t}:void 0;if(!n)return af(t)?function(t,r){return e[r]}:o;var i=n&&Kp()(n),a=Fs()(Zp()(n),(function(t){return t})).map((function(t){return i[t]})),s=[""].concat(Yp(a),[""]);return function(t){return s[t]}}(t),a=e.tickFormat&&R()(e.tickFormat)?e.tickFormat():function(t){return t};return i||a}if(r&&Array.isArray(r)){var s=sf(t),u=null==s?void 0:s.map((function(t){return t.index})),c=r.filter((function(t,e){return null==u?void 0:u.includes(e)}));return function(t,e){return c[e]}}return r&&R()(r)?o?function(e,r,n){var i=Kp()(o),a=n.map((function(t){return i[t]}));return t.tickFormat(i[e],r,a)}:r:function(t){return t}}function cf(t,e){if(!e||!Array.isArray(t)||t.length<=e)return t;var r=Math.floor(t.length/e);return t.filter((function(t,e){return e%r==0}))}function lf(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=t.tickCount,o=sf(t),i=o?o.map((function(t){return t.value})):void 0;if(i)return cf(i,n);if(e.ticks&&R()(e.ticks)){var a=n||5,s=e.ticks(a),u=cf(Array.isArray(s)&&s.length?s:e.domain(),n);if(r){var c=ft()(u,0)?ul()(u,0):u;return c.length?c:u}return u}return e.domain()}function pf(t,e){var r=t.polar,n=t.startAngle,o=void 0===n?0:n,i=t.endAngle,a=void 0===i?360:i,s=sf(t),u=s?s.map((function(t){return t.value})):void 0;if(Array.isArray(u)){var c=Rp(t,e),l=Lp(t,e),p=af(t),f=u.map((function(t){return Number(t)})),h=p?1:Ot(f),d=p?u.length:wt(f),m=Mp(void 0!==c?c:h,void 0!==l?l:d),y=r&&"x"===e&&360===Math.abs(o-a)?zp(m,f):m;return of(t)&&!r&&y.reverse(),y}}function ff(t,e){var r=Jp(t);if(!e||e===r)return jp(pf)(t,r)}function hf(t,e){if(t.axisValue){var r="x"===e?"y":"x",n=mu()(t.scale)&&R()(t.scale[r])?t.scale[r]:void 0;if(n){var o="x"===e?"y":"x",i=mu()(t.stringMap)&&t.stringMap[o];return n(i&&"string"==typeof t.axisValue?i[t.axisValue]:t.axisValue)}}}function df(t,e){if(!mu()(t.theme))return tt(t,e,"axis");var r="axis";if(t.dependentAxis&&t.theme.dependentAxis?r="dependentAxis":!t.dependentAxis&&t.theme.independentAxis&&(r="independentAxis"),"axis"===r)return tt(t,e,"axis");var n=N()({},t.theme[r],t.theme.axis),o=E()({},t.theme,{axis:n});return tt(E()({},t,{theme:o}),e,"axis")}var mf=r(45578),yf=r.n(mf),vf=r(7739),gf=r.n(vf);function bf(t){return function(t){if(Array.isArray(t))return _f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return _f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_f(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function xf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function wf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?xf(Object(r),!0).forEach((function(e){Of(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xf(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Of(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ef(t){var e=t.children,r=t.props,n=t.childComponents,o=t.parentProps,i=e.some((function(t){return t.type&&"histogram"===t.type.role})),a=i&&e.length&&e.every((function(t){return t.type&&"histogram"===t.type.role}));if(!a)return o;var s=r.bins||n[0].props.bins;if(!Array.isArray(s)){var u=e.reduce((function(t,e){var r=Q(e.props.x||"x");return t.concat(e.props.data.map((function(t){return{x:r(t)}})))}),[]);s=(0,e[0].type.getFormattedData)({data:u,bins:s}).reduce((function(t,e,r){var n=e.x0,o=e.x1;return 0===r?t.concat([n,o]):t.concat(o)}),[])}return wf(wf({},o),{},{bins:s})}function Sf(t,e){var r={polar:t.polar,startAngle:t.startAngle,endAngle:t.endAngle,categories:t.categories,minDomain:t.minDomain,maxDomain:t.maxDomain},n=0,o=e?e.slice(0):P().Children.toArray(t.children);r=Ef({children:o,props:t,childComponents:e,parentProps:r});var i=o.filter((function(t){return t.type&&"stack"===t.type.role})).length,a=rt(o,(function(t,e,o){var i,a=E()({},t.props,r);return dp(t)?(i=t.type&&R()(t.type.getData)?(t=o?P().cloneElement(t,o.props):t).type.getData(a):lp(a),n+=1,i.map((function(t,e){return E()({_stack:n,_group:e},t)}))):null}),t,[],(function(t,e){return t.concat(yf()(e,"_group"))})),s=i?"_group":"_stack";return Zp()(gf()(a,s))}function Pf(t,e){return t.data?lp(t):Sf(t,e=e||P().Children.toArray(t.children))}function jf(t,e,r){var n=t.datasets,o=J(t,t.horizontal?"y":"x"),i=Math.abs(o[1]-o[0]);r=void 0!==r?r:Array.isArray(n[0])&&n[0].length||1;var a=(e=e||n.length)*r;return Math.round(.5*i/a)}function Af(t,e,r){if(!t.polar&&"x"===e){var n=r.filter((function(t){return t.type&&t.type.role&&"group"===t.type.role}));if(!(n.length<1)){var o=n[0].props,i=o.offset,a=o.children;if(i){var s=Array.isArray(a)&&a[0];if(s){var u=s.props.barWidth,c=s.props.data&&s.props.data.length||1;if(s&&"stack"===s.type.role){var l=s.props.children&&s.props.children[0];if(!l)return;u=l.props.barWidth,c=s.props.children.length}var p=u||jf(t,a.length,c);return{x:p*a.length/2+(i-p*((a.length-1)/2))}}}}}}function Cf(t,e,r){var n=r?r.slice(0):P().Children.toArray(t.children),o=t.data?lp(t):void 0,i=t.polar,a=t.startAngle,s=t.endAngle,u=t.categories,c=t.minDomain,l=t.maxDomain,p={horizontal:t.horizontal,polar:i,startAngle:a,endAngle:s,minDomain:c,maxDomain:l,categories:u},f=o?E()(p,{data:o}):p,h=rt(n,(function(t){var r=E()({},t.props,f);return Np(t)?t.type&&R()(t.type.getDomain)?t.props&&t.type.getDomain(r,e):Cp(r,e):null}),t);return[0===h.length?0:Ot(h),0===h.length?1:wt(h)]}function Tf(t,e,r){r=r||P().Children.toArray(t.children);var n,o=Ip(t,e),i=Af(t,e,r);if(o)n=o;else{var a=Rp(t,e),s=Lp(t,e),u=(t.data||t.y)&&lp(t),c=u?kp(t,e,u):[],l=Cf(t,e,r);n=Mp(a||Ot([].concat(bf(c),bf(l))),s||wt([].concat(bf(c),bf(l))))}return Ap(n,E()({domainPadding:i},t),e)}function kf(t,e,r){if(t.data)return Mi(t,e);var n=r?r.slice(0):P().Children.toArray(t.children),o=dl()(rt(n,(function(r){return Li(E()({},r.props,{horizontal:t.horizontal}),e)}),t));return o.length>1?ki("linear"):ki(o[0])}function Mf(t){var e=Tl(t,["groupComponent","containerComponent","labelComponent"]),r=t.events;return Array.isArray(e)&&(r=Array.isArray(t.events)?e.concat.apply(e,bf(t.events)):e),r||[]}function If(t,e,r){var n=t.style,o=t.colorScale,i=t.color;if(n&&n.data&&n.data.fill)return n.data.fill;if(o=e.props&&e.props.colorScale?e.props.colorScale:o,i=e.props&&e.props.color?e.props.color:i,o||i){var a=Array.isArray(o)?o:Uu(o);return i||a[r%a.length]}}function Df(t,e,r){return G(e,t&&t[r]&&t[r].style?t[r].style:{})}function Lf(t,e,r){var n=r.style,o=r.role,i=t.props.style||{};if(Array.isArray(i))return i;var a=t.type&&t.type.role,s="stack"===a?void 0:If(r,t,e),u="line"===a?{fill:"none",stroke:s}:{fill:s},c="stack"===o?{}:{width:jf(r)},l=N()({},i.data,E()({},c,n.data,u)),p=N()({},i.labels,n.labels);return{parent:n.parent,data:l,labels:p}}function Rf(t,e){return rt(t.slice(0),(function(t){var r=t.props||{};if(!Np(t)||!r.categories)return null;var n=r.categories&&!Array.isArray(r.categories)?r.categories[e]:r.props.categories,o=n&&n.filter((function(t){return"string"==typeof t}));return o?xt(o):[]}))}function zf(t){return rt(t.slice(0),(function(t){var e=t.props||{};return dp(t)?(t.type&&R()(t.type.getData)?t.type.getData(e):lp(e)).map((function(t){return{x:t.xName,y:t.yName}})):null}),{},{x:[],y:[]},(function(t,e){var r=Array.isArray(e)?e.map((function(t){return t.x}
1)).filter(Boolean):e.x,n=Array.isArray(e)?e.map((function(t){return t.y})).filter(Boolean):e.y;return{x:void 0!==r?t.x.concat(r):t.x,y:void 0!==n?t.y.concat(n):t.y}}))}function Nf(t,e,r){var n=lt()(t.categories)?t.categories[e]:t.categories,o=tf(r,e),i=o?pp(o.props,e):[],a=n||Rf(r,e);return dl()(Op()([].concat(bf(a),bf(i))))}function Ff(t,e){var r=Nf(t,"x",e=e||P().Children.toArray(t.children)),n=Nf(t,"y",e),o=zf(e);return{x:dl()(Op()([].concat(bf(r),bf(o.x)))),y:dl()(Op()([].concat(bf(n),bf(o.y))))}}function Bf(t,e,r){var n=t.categories&&!Array.isArray(t.categories)?t.categories.x:t.categories,o=t.categories&&!Array.isArray(t.categories)?t.categories.y:t.categories,i=n&&o?{}:r||Ff(t,e),a=n||i.x,s=o||i.y;return{x:a.length>0?a:void 0,y:s.length>0?s:void 0}}function Vf(t,e){return Vf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Vf(t,e)}function Uf(t){return Uf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Uf(t)}var qf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vf(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Uf(n);if(o){var r=Uf(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,(r=[{key:"render",value:function(){var t=this.props,e=t.desc,r=t.children,n=t.className,o=t.tabIndex,i=e&&(this.props["aria-describedby"]||e.split(" ").join("-"));return e?P().createElement("g",{"aria-label":this.props["aria-label"],"aria-describedby":i,className:n,tabIndex:o},P().createElement("desc",{id:i},e),r):P().createElement("g",{"aria-label":this.props["aria-label"],"aria-describedby":this.props["aria-describedby"],className:n,tabIndex:o},r)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(P().Component);qf.displayName="VictoryAccessibleGroup",qf.propTypes={"aria-describedby":A().string,"aria-label":A().string,children:A().oneOfType([A().arrayOf(A().node),A().node]),className:A().string,desc:A().string,tabIndex:A().number},qf.defaultProps={className:"VictoryAccessibleGroup"};var $f=r(59704),Gf=r.n($f);function Wf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Zf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Wf(Object(r),!0).forEach((function(e){Hf(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Wf(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Hf(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Kf(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Yf={nodesShouldLoad:!1,nodesDoneLoad:!1,animating:!0},Xf=function(){var t,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yf,n=(e=2,function(t){if(Array.isArray(t))return t}(t=P().useState(r))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Kf(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kf(t,e):void 0}}
1(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=n[0],i=n[1],a=P().useCallback((function(t){i((function(e){return Zf(Zf({},e),t)}))}),[i]),s=P().useCallback((function(t,e,r){if(null==t||!t.animate)return e.props.animate;var n,i=t.animate&&t.animate.getTransitions,s=(n=_t(n=o&&o.childrenTransitions)?n[r]:n,N()({childrenTransitions:n},o)),u=t.animate&&t.animate.parentState||s;if(!i){var c=Hc(t,s,(function(t){return a(t)}));i=function(t){return c(t,r)}}return N()({getTransitions:i,parentState:u},t.animate,e.props.animate)}),[o,a]),u=P().useCallback((function(t,e){if(null!=t&&t.animate)if(t.animate.parentState){var r=t.animate.parentState.nodesWillExit?t:null,n=N()({oldProps:r,nextProps:e},t.animate.parentState);a(n)}else{var o=P().Children.toArray(t.children),i=P().Children.toArray(e.children),s=function(t){var e=function(t){return t.type&&t.type.continuous};return Array.isArray(t)?Gf()(t,e):e(t)},u=!t.polar&&Gf()(o,(function(t){return s(t)||t.props.children&&s(t.props.children)})),c=Zc(o,i),l=c.nodesWillExit,p=c.nodesWillEnter,f=c.childrenTransitions,h=c.nodesShouldEnter;a({nodesWillExit:l,nodesWillEnter:p,nodesShouldEnter:h,childrenTransitions:_t(f)?f[0]:f,oldProps:l?t:void 0,nextProps:e,continuous:u})}}),[a]),c=P().useCallback((function(t){return o&&o.nodesWillExit&&o.oldProps||t}),[o]);return{state:o,setState:a,getAnimationProps:s,setAnimationState:u,getProps:c}};function Jf(t){var e=P().useRef();return P().useEffect((function(){e.current=t})),e.current}var Qf=r(17204),th=r.n(Qf),eh=r(64530),rh=r.n(eh);function nh(t,e){if(t){if("string"==typeof t)return oh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oh(t,e):void 0}}function oh(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ih(t,e){return ih=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ih(t,e)}function ah(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function sh(t){return sh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},sh(t)}var uh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ih(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=sh(n);if(o){var r=sh(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ah(t)}(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).state=e.state||{},e.getScopedEvents=El.bind(ah(e)),e.getEventState=Pl.bind(ah(e)),e.baseProps=e.getBaseProps(t),e.sharedEventsCache={},e.globalEvents={},e.prevGlobalEventKeys=[],e.boundGlobalEvents={},e}return e=a,r=[{key:"shouldComponentUpdate",value:function(t){if(!cu()(this.props,t)){this.baseProps=this.getBaseProps(t);var e=this.getExternalMutations(t,this.baseProps);this.applyExternalMutations(t,e)}return!0}},{key:"componentDidMount",value:function(){var t=this,e=T()(this.globalEvents);e.forEach((function(e){return t.addGlobalListener(e)})),this.prevGlobalEventKeys=e}},{key:"componentDidUpdate",value:function(){var t=this,e=T()(this.globalEvents);fl()(this.prevGlobalEventKeys,e).forEach((function(e){return t.removeGlobalListener(e)}
1)),fl()(e,this.prevGlobalEventKeys).forEach((function(e){return t.addGlobalListener(e)})),this.prevGlobalEventKeys=e}},{key:"componentWillUnmount",value:function(){var t=this;this.prevGlobalEventKeys.forEach((function(e){return t.removeGlobalListener(e)}))}},{key:"addGlobalListener",value:function(t){var e=this,r=function(r){var n=e.globalEvents[t];return n&&n(Dl(r))};this.boundGlobalEvents[t]=r,window.addEventListener(kl(t),r)}},{key:"removeGlobalListener",value:function(t){window.removeEventListener(kl(t),this.boundGlobalEvents[t])}},{key:"getAllEvents",value:function(t){var e,r=Tl(t,["container","groupComponent"]);return Array.isArray(r)?Array.isArray(t.events)?r.concat.apply(r,function(t){if(Array.isArray(t))return oh(t)}(e=t.events)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||nh(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):r:t.events}},{key:"applyExternalMutations",value:function(t,e){if(!Tu()(e)){var r=t.externalEventMutations.reduce((function(t,e){return R()(e.callback)?t.concat(e.callback):t}),[]),n=r.length?function(){r.forEach((function(t){return t()}))}:void 0;this.setState(e,n)}}},{key:"getExternalMutations",value:function(t,e){return Tu()(t.externalEventMutations)?void 0:jl(t.externalEventMutations,e,this.state,T()(e))}},{key:"cacheSharedEvents",value:function(t,e,r){this.sharedEventsCache[t]=[e,r]}},{key:"getCachedSharedEvents",value:function(t,e){var r,n=(2,function(t){if(Array.isArray(t))return t}(r=this.sharedEventsCache[t]||[])||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(r)||nh(r,2)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=n[0],i=n[1];if(o&&cu()(e,i))return o}},{key:"getBaseProps",value:function(t){var e=t.container,r=P().Children.toArray(this.props.children),n=this.getBasePropsFromChildren(r),o=e?e.props:{};return E()({},n,{parent:o})}},{key:"getBasePropsFromChildren",value:function(t){var e=rt(t,(function(t,e){if(t.type&&R()(t.type.getBaseProps)){var r=t.props&&t.type.getBaseProps(t.props);return r?[[e,r]]:null}return null}));return th()(e)}},{key:"getNewChildren",value:function(t,e){var r=this,n=t.events,o=t.eventKey,i=function(t,a){return t.reduce((function(t,s,u){if(s.props.children){var c=P().Children.toArray(s.props.children),l=a.slice(u,u+c.length),p=P().cloneElement(s,s.props,i(c,l));return t.concat(p)}if("parent"!==a[u]&&s.type&&R()(s.type.getBaseProps)){var f=s.props.name||a[u],h=Array.isArray(n)&&n.filter((function(t){return"parent"!==t.target&&(Array.isArray(t.childName)?t.childName.indexOf(f)>-1:t.childName===f||"all"===t.childName)})),d=[f,e,h,rh()(r.state[f])],m=r.getCachedSharedEvents(f,d)||{events:h,getEvents:function(t,n){return r.getScopedEvents(t,n,f,e)},getEventState:function(t,e){return r.getEventState(t,e,f)}};return r.cacheSharedEvents(f,m,d),t.concat(P().cloneElement(s,E()({key:"events-".concat(f),sharedEvents:m,eventKey:o,name:f},s.props)))}return t.concat(s)}),[])},a=T()(e),s=P().Children.toArray(t.children);return i(s,a)}},{key:"getContainer",value:function(t,e,r){var n=this,o=this.getNewChildren(t,e),i=Array.isArray(r)&&r.filter((function(t){return"parent"===t.target})),a=i.length>0?{events:i,getEvents:function(t,r){return n.getScopedEvents(t,r,null,e)},getEventState:this.getEventState}:null,s=t.container||t.groupComponent,u=s.type&&s.type.role,c=s.props||{},l=Ol.bind(this),p=a&&l({sharedEvents:a},"parent"),f=N()({},this.getEventState("parent","parent"),c,e.parent,{children:o}),h=N()({},Sl(p,"parent",f),c.events);this.globalEvents=Ml(h);var d=Il(h);return"container"===u?P().cloneElement(s,E()({},f,{events:d})):P().cloneElement(s,d,o)}},{key:"render",value:function(){var t=this.getAllEvents(this.props);return t?this.getContainer(this.props,this.baseProps,t):P().cloneElement(this.props.container,{children:this.props.children})}}],r&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(P().Component);function ch(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function lh(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}uh.displayName="VictorySharedEvents",uh.role="shared-event-wrapper",uh.propTypes={children:A().oneOfType([A().arrayOf(A().node),A().node]),container:A().node,eventKe
1y:A().oneOfType([A().array,A().func,$i([Wi,Gi]),A().string]),events:A().arrayOf(A().shape({childName:A().oneOfType([A().string,A().array]),eventHandlers:A().object,eventKey:A().oneOfType([A().array,A().func,$i([Wi,Gi]),A().string]),target:A().string})),externalEventMutations:A().arrayOf(A().shape({callback:A().func,childName:A().oneOfType([A().string,A().array]),eventKey:A().oneOfType([A().array,$i([Wi,Gi]),A().string]),mutation:A().func,target:A().oneOfType([A().string,A().array])})),groupComponent:A().node},uh.defaultProps={groupComponent:P().createElement("g",null)},uh.contextType=su;var ph={top:-1,left:-1,right:1,bottom:1},fh=function(t){return null!=t},hh=function(t,e){var r=t.style||{};return e=e||{},{parent:N()(r.parent,e.parent,{height:"100%",width:"100%"}),axis:N()({},r.axis,e.axis),axisLabel:N()({},r.axisLabel,e.axisLabel),grid:N()({},r.grid,e.grid),ticks:N()({},r.ticks,e.ticks),tickLabels:N()({},r.tickLabels,e.tickLabels)}},dh=function(t,e,r){var n=t.position,o=t.transform;return{x1:o.x,y1:o.y,x2:o.x+n.x2,y2:o.y+n.y2,style:e,datum:r}},mh=function(t,e,r,n,o){var i=t.position,a=t.transform;return{style:e,x:a.x+i.x,y:a.y+i.y,verticalAnchor:r.verticalAnchor,textAnchor:r.textAnchor,angle:e.angle,text:o,datum:n}},yh=function(t,e,r){var n=t.edge,o=t.transform;return{x1:o.x,y1:o.y,x2:n.x+o.x,y2:n.y+o.y,style:e,datum:r}},vh=function(t,e,r){var n=e||"positive";return r?{positive:{x:"left",y:"bottom"},negative:{x:"right",y:"top"}}[n][t]:{positive:{x:"bottom",y:"left"},negative:{x:"top",y:"right"}}[n][t]},gh=function(t,e,r){var n=e.orientation,o=hf(t,e.axis);return{top:{x:0,y:void 0!==o?o:r.y},bottom:{x:0,y:void 0!==o?o:t.height-r.y},left:{x:void 0!==o?o:r.x,y:0},right:{x:void 0!==o?o:t.width-r.x,y:0}}[n]},bh=function(t,e,r){var n=t.tickStyle,o=t.labelStyle,i=n.size||0,a=i+(n.padding||0)+(o.padding||0),s=ph[e];return{x:r?s*a:0,x2:r?s*i:0,y:r?0:s*a,y2:r?0:s*i}},_h=function(t,e,r){return{x:r?e.x:t+e.x,y:r?t+e.y:e.y}},xh=function(t,e){var r=e.orientation,n=e.padding,o=e.isVertical,i=-ph[r];return{x:o?i*(t.width-(n.left+n.right)):0,y:o?0:i*(t.height-(n.top+n.bottom))}},wh=function(t,e){var r=t.padding,n=t.orientation,o=t.crossAxis,i="right"===n?r.right:r.left,a="top"===n?r.top:r.bottom;return{x:o?e.x-i:0,y:o?e.y-a:0}},Oh=function(t,e){var r=function(t){var e=function(t){var e=t.theme,r=t.dependentAxis,n=e&&e.axis&&e.axis.style,o=r?"dependentAxis":"independentAxis",i=e&&e[o]&&e[o].style;return n&&i?["axis","axisLabel","grid","parent","tickLabels","ticks"].reduce((function(t,e){return t[e]=N()({},i[e],n[e]),t}),{}):i||n}(t),r=hh(t,e),n=U(t),o=function(t,e){var r=e.axisLabel||{};if(void 0!==r.padding&&null!==r.padding)return r.padding;var n=of(t),o=r.fontSize||14;return t.label?o*(n?2.3:1.6):0}(t,r),i=af(t)?t.tickValues:void 0,a=Jp(t),s=ff(t),u=function(t){var e=Jp(t),r=function(t,e){var r=t.orientation,n=t.horizontal;return r?{top:"x",bottom:"x",left:"y",right:"y"}[r]:n?"x"===e?"y":"x":e}(t,e),n=Mi(t,e),o=t.domain&&t.domain[e]||ff(t)||n.domain();return n.range(J(t,r)),n.domain(o),n}(t),c="x"===a?s:void 0,l="y"===a?s:void 0,p="x"===a?u:void 0,f="y"===a?u:void 0,h=!(!1===t.crossAxis||!0===t.standalone),d=lf(t,u,h),m=uf(t,u),y={x:J(t,"x"),y:J(t,"y")},v={x:t.domain&&t.domain.x?t.domain.x:c,y:t.domain&&t.domain.y?t.domain.y:l},g={x:t.domain&&t.domain.x?Mi(t,"x").domain(t.domain.x).range(t.horizontal?y.y:y.x):p,y:t.domain&&t.domain.y?Mi(t,"y").domain(t.domain.y).range(t.horizontal?y.x:y.y):f},b=v.x&&v.y?rf(v):void 0,_=b?{x:nf(b.x,v.x),y:nf(b.y,v.y)}:void 0,x=_?{x:vh("x",_.y,t.horizontal),y:vh("y",_.x,t.horizontal)}:void 0,w=x?t.orientation||x[a]:function(t){if(t.orientation)return t.orientation;var e={dependent:t.horizontal?"bottom":"left",independent:t.horizontal?"left":"bottom"};return t.dependentAxis?e.dependent:e.independent}(t),O=of(Object.assign({},t,{orientation:w})),E=function(t,e){var r={top:"end",left:"end",right:"start",bottom:"start"}[t];return{textAnchor:e?r:"middle",verticalAnchor:e?"middle":r}}(w,O);return{anchors:E,axis:a,crossAxis:h,domain:v,isVertical:O,labelPadding:o,orientation:w,orientations:x,origin:b,padding:n,scale:g,stringTicks:i,style:r,tickFormat:m,ticks:d}}(t=df(t,e)),n=r.axis,o=r.style,i=r.orientation,a=r.isVertical,s=r.scale,u=r.t
1icks,c=r.tickFormat,l=r.anchors,p=r.domain,f=r.stringTicks,h="x"===n?"y":"x",d=t,m=d.width,y=d.height,v=d.standalone,g=d.theme,b=d.polar,_=d.padding,x=d.horizontal,w=function(t,e){var r;return r=e.domain.x&&e.domain.y?t.horizontal?function(t,e){var r=e.scale,n=e.origin,o=e.orientation,i=e.orientations,a=e.domain,s=e.padding,u=s.top,c=s.bottom,l=s.left,p=s.right,f="bottom"===o||"top"===o?o:i.x,h="left"===o||"right"===o?o:i.y,d={x:"bottom"===f?c:u,y:"left"===h?l:p},m="left"===h?0:t.width,y="bottom"===f?t.height:0,v=n.x===a.x[0]||n.x===a.x[1]?0:r.x(n.x),g=n.y===a.y[0]||n.y===a.y[1]?0:r.y(n.y),b=v?Math.abs(y-v):d.x,_=g?Math.abs(m-g):d.y;return{x:fh(t.offsetX)?t.offsetX:_,y:fh(t.offsetY)?t.offsetY:b}}(t,e):function(t,e){var r=e.scale,n=e.origin,o=e.orientation,i=e.orientations,a=e.domain,s=e.padding,u=s.top,c=s.bottom,l=s.left,p=s.right,f="bottom"===o||"top"===o?o:i.x,h="left"===o||"right"===o?o:i.y,d={x:"left"===h?l:p,y:"bottom"===f?c:u},m="left"===h?0:t.width,y="bottom"===f?t.height:0,v=n.x===a.x[0]||n.x===a.x[1]?0:r.x(n.x),g=n.y===a.y[0]||n.y===a.y[1]?0:r.y(n.y),b=v?Math.abs(m-v):d.x,_=g?Math.abs(y-g):d.y;return{x:fh(t.offsetX)?t.offsetX:b,y:fh(t.offsetY)?t.offsetY:_}}(t,e):function(t,e){var r,n=e.style,o=e.scale,i=e.orientation,a=e.padding,s=e.axis,u=e.ticks,c=e.stringTicks,l=e.isVertical,p=e.labelPadding,f=t.polar,h=t.horizontal,d={scale:lh({},s,o),polar:f,horizontal:h,ticks:u,stringTicks:c},m="right"===i?a.right:a.left,y="top"===i?a.top:a.bottom,v=null!==t.offsetX&&void 0!==t.offsetX?t.offsetX:m,g=null!==t.offsetY&&void 0!==t.offsetY?t.offsetY:y,b=n.axisLabel.fontSize||14,_=u.map((function(e,r){var o=c?t.tickValues[e-1]:e;return Z(n.ticks,E()({},d,{tick:o,index:r})).size||0})),x=b+2*Math.max.apply(Math,function(t){if(Array.isArray(t))return ch(t)}(r=_)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||function(t,e){if(t){if("string"==typeof t)return ch(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ch(t,e):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())+p,w=1.2*b;return{x:null!=v?v:l?x:w,y:null!=g?g:l?w:x}}(t,e),{globalTransform:gh(t,e,r),gridOffset:wh(e,r),gridEdge:xh(t,e)}}(t,r),O=w.globalTransform,S=w.gridOffset,P=w.gridEdge,j={scale:lh({},n,s[n]),polar:b,horizontal:x,ticks:u,stringTicks:f},A=function(t,e,r){var n=e.style,o=e.padding,i=e.isVertical,a=t.width,s=t.height;return{style:n.axis,x1:i?r.x:o.left+r.x,x2:i?r.x:a-o.right+r.x,y1:i?o.top+r.y:r.y,y2:i?s-o.bottom+r.y:r.y}}(t,r,O),C=function(t,e,r){var n=e.style,o=e.orientation,i=e.padding,a=e.labelPadding,s=e.isVertical,u=ph[o],c=i.left+i.right,l=i.top+i.bottom,p=u<0?"end":"start",f=n.axisLabel,h=s?-90:0;return{x:s?r.x+u*a:(t.width-c)/2+i.left+r.x,y:s?(t.height-l)/2+i.top+r.y:u*a+r.y,verticalAnchor:f.verticalAnchor||p,textAnchor:f.textAnchor||"middle",angle:void 0===f.angle?h:f.angle,style:f,text:t.label}}(t,r,O),T={parent:E()({style:o.parent,ticks:u,standalone:v,theme:g,width:m,height:y,padding:_,domain:p},j)},k={dimension:h,range:lh({},h,J(t,h)),scale:t.scale&&t.scale[h]?lh({},h,t.scale[h]):void 0};return u.reduce((function(t,e,r){var p,h,d,m=f?f[r]:e,y=c(e,r,u),v=function(t,e){return{tickStyle:Z(t.ticks,e),labelStyle:Z(t.tickLabels,e),gridStyle:Z(t.grid,e)}}(o,E()({},j,{tick:m,tickValue:e,index:r,text:y})),g={position:bh(v,i,a),transform:_h(null===(p=s[n])||void 0===p?void 0:p.call(s,e),O,a)},b={edge:P,transform:{x:a?-S.x+O.x:(null===(h=s[n])||void 0===h?void 0:h.call(s,e))+O.x,y:a?(null===(d=s[n])||void 0===d?void 0:d.call(s,e))+O.y:S.y+O.y}};return t[r]={axis:E()({dimension:n},j,A),axisLabel:E()({},j,C),ticks:E()({},j,dh(g,v.tickStyle,e)),tickLabels:E()({},j,mh(g,v.labelStyle,l,e,y)),grid:E()({},j,k,yh(b,v.gridStyle,e))},t}),T)};function Eh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Sh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?Eh(Object(r),!0).forEach((function(e){Ph(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Eh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ph(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jh(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ah(t,e){return Ah=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ah(t,e)}function Ch(t){return Ch=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ch(t)}var Th={width:450,height:300,padding:50},kh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ah(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Ch(n);if(o){var r=Ch(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,r=[{key:"renderLine",value:function(t){var e=t.axisComponent,r=this.getComponentProps(e,"axis",0);return P().cloneElement(e,r)}},{key:"renderLabel",value:function(t){var e=t.axisLabelComponent;if(!t.label)return null;var r=this.getComponentProps(e,"axisLabel",0);return P().cloneElement(e,r)}},{key:"renderGridAndTicks",value:function(t){var e=this,r=t.tickComponent,n=t.tickLabelComponent,o=t.gridComponent,i=t.name,a=function(t){var e=t.style,r=void 0===e?{}:e,n=t.events,o=void 0===n?{}:n;return"transparent"!==r.stroke&&"none"!==r.stroke&&0!==r.strokeWidth||!Tu()(o)};return this.dataKeys.map((function(s,u){var c=e.getComponentProps(r,"ticks",u),l=P().cloneElement(r,c),p=a(l.props)?l:void 0,f=e.getComponentProps(o,"grid",u),h=P().cloneElement(o,f),d=a(h.props)?h:void 0,m=e.getComponentProps(n,"tickLabels",u),y=[d,p,P().cloneElement(n,m)].filter(Boolean);return P().cloneElement(t.groupComponent,{key:"".concat(i,"-tick-group-").concat(s)},y)}))}},{key:"fixLabelOverlap",value:function(t,e){var r=of(e),n=r?e.height:e.width,o=function(t){return t.type&&"label"===t.type.role},i=t.map((function(t){return t.props.children})).reduce((function(t,e){return t.concat(e)}),[]).filter(o).map((function(t){return t.props})).reduce((function(t,e){var n=function(t){return"object"==typeof t?E()({},{top:0,right:0,bottom:0,left:0},t):{top:t,right:t,bottom:t,left:t}}(e.style.padding),o=sc(e.text,{angle:e.angle,fontSize:e.style.fontSize,letterSpacing:e.style.letterSpacing,fontFamily:e.style.fontFamily});return t+(r?o.height+n.top+n.bottom:o.width+n.right+n.left)}),0),a=Math.floor(n*t.length/i),s=Math.ceil(t.length/a)||1,u=function(t){return t.props.children.filter(o).reduce((function(t,e){return(r?e.props.y:e.props.x)||0}),0)},c=t.sort((function(t,e){return r?u(e)-u(t):u(t)-u(e)}));return c.filter((function(t,e){return e%s==0}))}},{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=Mh.animationWhitelist,e=df(this.props,Th),r=Ha(this.props);if(this.shouldAnimate())return this.animateComponent(e,t);var n,o=this.renderGridAndTicks(e),i=e.fixLabelOverlap?this.fixLabelOverlap(o,e):o,a=[this.renderLine(e),this.renderLabel(e)].concat(function(t){if(Array.isArray(t))return jh(t)}(n=i)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return jh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jh(t,e):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=P().cloneElement(e.containerComponent,r);return e.standalone?this.renderContainer(s,a):P().cloneElement(e.groupComponent,r,a)}}],r&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(P().Component);
1kh.animationWhitelist=["style","domain","range","tickCount","tickValues","offsetX","offsetY","padding","width","height"],kh.displayName="VictoryAxis",kh.role="axis",kh.defaultTransitions={onExit:{duration:500},onEnter:{duration:500}},kh.propTypes=Sh(Sh({},Qi.baseProps),{},{axisComponent:A().element,axisLabelComponent:A().element,axisValue:A().oneOfType([A().number,A().string,A().object]),categories:A().oneOfType([A().arrayOf(A().string),A().shape({x:A().arrayOf(A().string),y:A().arrayOf(A().string)})]),crossAxis:A().bool,dependentAxis:A().bool,events:A().arrayOf(A().shape({target:A().oneOf(["axis","axisLabel","grid","ticks","tickLabels"]),eventKey:A().oneOfType([A().array,$i([Wi,Gi]),A().string]),eventHandlers:A().object})),fixLabelOverlap:A().bool,gridComponent:A().element,groupComponent:A().element,invertAxis:A().bool,label:A().any,offsetX:A().number,offsetY:A().number,orientation:A().oneOf(["top","bottom","left","right"]),origin:A().shape({x:A().number,y:A().number}),stringMap:A().object,style:A().shape({parent:A().object,axis:A().object,axisLabel:A().object,grid:A().object,ticks:A().object,tickLabels:A().object}),tickComponent:A().element,tickCount:$i([Wi,Zi]),tickFormat:A().oneOfType([A().func,Yi]),tickLabelComponent:A().element,tickValues:Yi}),kh.defaultProps={axisComponent:P().createElement(xa,null),axisLabelComponent:P().createElement(wc,null),tickLabelComponent:P().createElement(wc,null),tickComponent:P().createElement(xa,null),gridComponent:P().createElement(xa,null),standalone:!0,theme:Bc.grayscale,containerComponent:P().createElement(Au,null),groupComponent:P().createElement("g",{role:"presentation"}),fixLabelOverlap:!1},kh.getDomain=ff,kh.getAxis=Jp,kh.getStyles=function(t){return hh(t)},kh.getBaseProps=function(t){return Oh(t,Th)},kh.expectedComponents=["axisComponent","axisLabelComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent"];var Mh=ql(kh,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]});function Ih(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Dh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ih(Object(r),!0).forEach((function(e){Lh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ih(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Lh(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Rh=function(t){var e=t.cx,r=t.cy,n=t.r,o=t.startAngle,i=t.endAngle,a=t.closedPath,s=Math.abs(i-o)/2+o,u=e+n*Math.cos(H(o)),c=r-n*Math.sin(H(o)),l=e+n*Math.cos(H(s)),p=r-n*Math.sin(H(s)),f=e+n*Math.cos(H(i)),h=r-n*Math.sin(H(i)),d=s-o<=180?0:1,m=i-s<=180?0:1,y=a?" M ".concat(e,", ").concat(r," L ").concat(u,", ").concat(c):"M ".concat(u,", ").concat(c),v="A ".concat(n,", ").concat(n,", 0, ").concat(d,", 0, ").concat(l,", ").concat(p),g="A ".concat(n,", ").concat(n,", 0, ").concat(m,", 0, ").concat(f,", ").concat(h),b=a?"Z":"";return"".concat(y," ").concat(v," ").concat(g," ").concat(b)},zh=function(t){return t=function(t){var e=W(t.ariaLabel,t),r=W(t.desc,t),n=W(t.id,t),o=Z(E()({stroke:"black",fill:"none"},t.style),t),i=W(t.tabIndex,t);return E()({},t,{ariaLabel:e,desc:r,id:n,style:o,tabIndex:i})}(t),P().cloneElement(t.pathComponent,Dh(Dh({},t.events),{},{"aria-label":t.ariaLabel,d:Rh(t),style:t.style,desc:t.desc,tabIndex:t.tabIndex,className:t.className,role:t.role,shapeRendering:t.shapeRendering,transform:t.transform,clipPath:t.clipPath}))};zh.propTypes=Dh(Dh({},Qi.primitiveProps),{},{closedPath:A().bool,cx:A().number,cy:A().number,datum:A().any,endAngle:A().number,pathComponent:A().element,r:A().number,startAngle:A().number}),zh.defaultProps={pathComponent:P().createElement(ja,null),role:"presentation",shapeRendering:"auto"};var Nh=function(t,e,r){return"x"===r?t*Math.cos(e):-t*Math.sin(e)},Fh=function(t){var e=t.dependentAxis?"radial":"angular",r="angular"===e?"radial":"angular";return t.horizontal?r:e},Bh=function(t,e){return{tickStyle:Z(t.ticks,e),labelStyle:Z(t.tickLabels,e),gridStyle:Z(t.grid,e)}},Vh=function(t){var e=U(t),r=e.left,n=e.right,o=e.top,i=e.bottom,a=t.width,s=t.height;return Math.min(a-r-n,s-o-i)/2},Uh=function(t,e){if(t.range&&t.range[e])return t.range[e];if(t.range&&Array.isArray(t.range))return t.range;if("angular"===Fh(t))return[H(t.startAngle),H(t.endAngle)];var r=Vh(t);return[t.innerRadius||0,r]},qh=function(t){var e=Jp(t),r=Mi(t,e),n=ff(t,e)||r.domain(),o=Uh(t,e);return r.range(o),r.domain(n),r},$h=function(t,e){if(t.disableInlineStyles)return{};var r=t.style||{};return e=e||{},{parent:N()({height:"auto",width:"100%"},r.parent,e.parent),axis:N()({},r.axis,e.axis),axisLabel:N()({},r.axisLabel,e.axisLabel),grid:N()({},r.grid,e.grid),ticks:N()({},r.ticks,e.ticks),tickLabels:N()({},r.tickLabels,e.tickLabels)}},Gh=function(t){var e=t.axisAngle,r=t.startAngle,n=t.dependentAxis,o=hf(t,Jp(t));return void 0!==o&&n?K(o):void 0===e?r:e},Wh=function(t,e,r,n){var o=e.axisType,i=e.radius,a=e.scale,s=e.style,u=e.stringTicks,c=e.ticks,l=e.tickFormat,p=e.origin,f=l(r,n,c),h=u?u[n]:r,d=Bh(s,{tick:h,tickValue:r,index:n,ticks:c,stringTicks:u,radiu
1s:i,scale:a,axisType:o,text:f}).tickStyle,m="radial"===o?Gh(t):void 0,y=d.padding||d.size||0,v=H(90-m),g="angular"===o?a(r):H(-1*m),b="angular"===o?i:a(r);return"angular"===o?{index:n,datum:h,style:d,x1:Nh(b,g,"x")+p.x,y1:Nh(b,g,"y")+p.y,x2:Nh(b+y,g,"x")+p.x,y2:Nh(b+y,g,"y")+p.y}:{index:n,datum:h,style:d,x1:b*Math.cos(g)+Math.cos(v)*y+p.x,x2:b*Math.cos(g)-Math.cos(v)*y+p.x,y1:b*Math.sin(g)+Math.sin(v)*y+p.y,y2:b*Math.sin(g)-Math.sin(v)*y+p.y}},Zh=function(t,e,r,n){var o=e.axisType,i=e.radius,a=e.tickFormat,s=e.style,u=e.scale,c=e.ticks,l=e.stringTicks,p=e.origin,f=a(r,n,c),h=l?l[n]:r,d=Bh(s,{text:f,tick:h,tickValue:r,index:n,ticks:c,stringTicks:l,radius:i,scale:u,axisType:o}).labelStyle,m=t.tickLabelComponent,y=m.props&&m.props.labelPlacement?m.props.labelPlacement:t.labelPlacement,v=d.padding||0,g="radial"===o?Gh(t):void 0,b="angular"===o?K(u(r)):g+0,_=void 0===d.angle?Nu(E()({},t,{labelPlacement:y}),b):d.angle,x="angular"===o?i+v:u(r);return{index:n,datum:h,style:d,angle:_,textAnchor:d.textAnchor||Ru(E()({},t,{labelPlacement:y}),b),text:f,x:x*Math.cos(H(b))+p.x,y:-x*Math.sin(H(b))+p.y}},Hh=function(t,e,r,n){var o=e.axisType,i=e.radius,a=e.style,s=e.scale,u=e.stringTicks,c=e.ticks,l=e.tickFormat,p=e.origin,f=l(r,n,c),h=t.startAngle,d=t.endAngle,m=t.innerRadius,y=void 0===m?0:m,v=u?u[n]:r,g=Bh(a,{tick:v,tickValue:r,index:n,ticks:c,stringTicks:u,radius:i,scale:s,axisType:o,text:f}).gridStyle,b=s(r);return"angular"===o?{index:n,datum:v,style:g,x1:Nh(i,b,"x")+p.x,y1:Nh(i,b,"y")+p.y,x2:Nh(y,b,"x")+p.x,y2:Nh(y,b,"y")+p.y}:{style:g,index:n,datum:v,cx:p.x,cy:p.y,r:s(r),startAngle:h,endAngle:d}};function Kh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Yh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Kh(Object(r),!0).forEach((function(e){Xh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Kh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Xh(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jh(t){return function(t){if(Array.isArray(t))return Qh(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Qh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qh(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qh(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function td(t,e){return td=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},td(t,e)}function ed(t){return ed=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ed(t)}var rd={width:450,height:300,padding:50},nd=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&td(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=ed(n);if(o){var r=ed(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,(r=[{key:"renderAxisLine",value:function(t){var e=t.dependentAxis?t.axisComponent:t.circularAxisComponent,r=this.getComponentProps(e,"axis",0);return P().cloneElement(e,r)}},{key:"renderLabel",value:function(t){var e=t.axisLabelComponent,r=t.dependentAxis;if(!t.label||!r)return null;var n=this.getComponentProps(e,"axisLabel",0);return P().cloneElement(e,n)}},{key:"renderAxis",value:function(t){var e=this,r=t.tickComponent,n=t.tickLabelComponent,o=t.name,i=function(t){var e=t.style,r=void 0===e?{}:e,n=t.events,o=void 0===n?{}:n;return"transparent"!==r.stroke&&"none"!==r.stroke&&0!==r.strokeWidth||!Tu()(o)},a="radial"==(t.dependentAxis?"radial":"angular")?t.circularGridComponent:t.gridComponent,s=this.dataKeys.map((function(t,n){var a=E()({key:"".concat(o,"-tick-").concat(t)},e.getComponentProps(r,"ticks",n)),s=P().cloneElement(r,a);return i(s.props)?s:void 0}
1)).filter(Boolean),u=this.dataKeys.map((function(t,r){var n=E()({key:"".concat(o,"-grid-").concat(t)},e.getComponentProps(a,"grid",r)),s=P().cloneElement(a,n);return i(s.props)?s:void 0})).filter(Boolean),c=this.dataKeys.map((function(t,r){var i=E()({key:"".concat(o,"-tick-").concat(t)},e.getComponentProps(n,"tickLabels",r));return P().cloneElement(n,i)})),l=[this.renderAxisLine(t),this.renderLabel(t)].concat(Jh(s),Jh(u),Jh(c));return this.renderGroup(t,l)}},{key:"renderGroup",value:function(t,e){var r=t.groupComponent;return P().cloneElement(r,{},e)}},{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=a.animationWhitelist,e=df(this.props,rd);if(this.shouldAnimate())return this.animateComponent(e,t);var r=this.renderAxis(e);return e.standalone?this.renderContainer(e.containerComponent,r):r}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(P().Component);nd.animationWhitelist=["style","domain","range","tickCount","tickValues","padding","width","height"],nd.displayName="VictoryAxis",nd.role="axis",nd.defaultTransitions={onExit:{duration:500},onEnter:{duration:500}},nd.propTypes=Yh(Yh({},Qi.baseProps),{},{axisAngle:A().number,axisComponent:A().element,axisLabelComponent:A().element,axisValue:A().oneOfType([A().number,A().string,A().object]),categories:A().oneOfType([A().arrayOf(A().string),A().shape({x:A().arrayOf(A().string),y:A().arrayOf(A().string)})]),circularAxisComponent:A().element,circularGridComponent:A().element,containerComponent:A().element,dependentAxis:A().bool,disableInlineStyles:A().bool,endAngle:A().number,events:A().arrayOf(A().shape({target:A().oneOf(["axis","axisLabel","grid","ticks","tickLabels"]),eventKey:A().oneOfType([A().array,$i([Wi,Gi]),A().string]),eventHandlers:A().object})),gridComponent:A().element,innerRadius:Gi,labelPlacement:A().oneOf(["parallel","perpendicular","vertical"]),startAngle:A().number,stringMap:A().object,style:A().shape({parent:A().object,axis:A().object,axisLabel:A().object,grid:A().object,ticks:A().object,tickLabels:A().object}),tickComponent:A().element,tickCount:$i([Wi,Zi]),tickFormat:A().oneOfType([A().func,Yi]),tickLabelComponent:A().element,tickValues:Yi}),nd.defaultProps={axisComponent:P().createElement(xa,null),axisLabelComponent:P().createElement(wc,null),circularAxisComponent:P().createElement(zh,null),circularGridComponent:P().createElement(zh,null),containerComponent:P().createElement(Au,null),endAngle:360,gridComponent:P().createElement(xa,null),groupComponent:P().createElement("g",{role:"presentation"}),labelPlacement:"parallel",startAngle:0,standalone:!0,theme:Bc.grayscale,tickComponent:P().createElement(xa,null),tickLabelComponent:P().createElement(wc,null)},nd.getDomain=ff,nd.getAxis=Jp,nd.getScale=qh,nd.getStyles=function(t){return $h(t,rd.style)},nd.getBaseProps=function(t){return function(t,e){var r=function(t){var e=function(t){var e=t.theme,r=void 0===e?{}:e,n=t.dependentAxis,o=r.polarAxis&&r.polarAxis.style||r.axis&&r.axis.style,i=n?"polarDependentAxis":"polarIndependentAxis",a=n?"dependentAxis":"independentAxis",s=r[i]&&r[i].style||r[a]&&r[a].style;return o&&s?["axis","axisLabel","grid","parent","tickLabels","ticks"].reduce((function(t,e){return t[e]=N()({},s[e],o[e]),t}),{}):s||o}(t=E()({polar:!0},t)),r=$h(t,e),n=U(t),o=Jp(t),i=Fh(t),a=af(t)?t.tickValues:void 0,s=ff(t,o),u=Uh(t,o),c=qh(t),l=lf(t,c),p="angular"===i?function(t,e){return yf()(t,(function(t){return e(t)%(2*Math.PI)}))}(l,c):l;return{axis:o,style:r,padding:n,stringTicks:a,axisType:i,scale:c,ticks:p,tickFormat:uf(t,c),domain:s,range:u,radius:Vh(t),origin:X(t)}}(t=df(t,e)),n=r.style,o=r.scale,i=r.ticks,a=r.domain,s=t,u=s.width,c=s.height,l=s.standalone,p=s.theme,f=s.name,h=function(t,e){var r=e.style,n=e.axisType,o=e.radius,i=(e.scale,e.origin),a=t.startAngle,s=t.endAngle,u=t.innerRadius,c=void 0===u?0:u,l="radial"===n?H(Gh(t)):void 0;return"radial"===n?{style:r.axis,x1:Nh(c,l,"x")+i.x,x2:Nh(o,l,"x")+i.x,y1:Nh(c,l,"y")+i.y,y2:Nh(o,l,"y")+i.y}:{style:r.axis,cx:i.x,cy:i.y,r:o,startAngle:a,endAngle:s}}(t,r),d=function(t,e){var r=e.axisType,n=e.radius,o=e.style,i=(e.scale,e.origin),a=t.axisLabelComponent;if("radial"!==r)return{};var s=a.props&&a.props.labelPlacement?a.props.labelPlacement:t.labelPlacement,u=o&&o.axisLabel||{},c="radial"===r?Gh(t):void 0,l=void 0===u.angle?Nu(E()({},t,{labelPlacement:s}),c):u.angle,p=n+(u.padding||0);return{style:u,angle:l,textAnchor:u.textAnchor||Ru(E()({},t,{labelPlacement:s}),c),verticalAnchor:u.verticalAnchor||zu(E()({},t,{labelPlacement:s}),c),text:t.label,x:Nh(p,H(c),"x")+i.x,y:Nh(p,H(c),"y")+i.y}}(t,r),m={parent:{style:n.parent,ticks:i,scale:o,width:u,height:c,domain:a,standalone:l,theme:p,name:f}};return i.reduce((function(e,n,o){return e[o]={axis:h,axisLabel:d,ticks:Wh(t,r,n,o),tickLabels:Zh(t,r,n,o),grid:Hh(t,r,n,o)},e}),m)}(t,rd)},nd.expectedComponents=["axisComponent","circularAxisComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent","circularGridComponent"];const od=ql(nd,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]});function id(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ad={width:450,height:300,padding:50};function sd(t,e){var r=function(t){var e=t.style&&t.style.parent;return{parent:N()({},e,{height:"100%",width:"100%",userSelect:"none"})}}(t),n=t=tt(t,ad,"chart"),o=n.horizontal,i=n.polar,a=Ff(t,e),s=Bf(t,e,a),u=ld(t,e,a),c={x:cd(E()({},t,{categories:s}),"x",e),y:cd(E()({},t,{categories:s}),"y",e)},l={x:J(t,"x"),y:J(t,"y")},p={x:Di(t,"x")||kf(t,"x"),y:Di(t,"y")||kf(t,"y")};return{categories:s,domain:c,range:l,horizontal:o,scale:{x:p.x.domain(c.x).range(o?l.y:l.x),y:p.y.domain(c.y).range(o?l.x:l.y)},stringMap:u,style:r,origin:i?X(t):rf(c),padding:U(t)}}var ud=function(t,e){var r,n=P().Children.toArray(t.children),o=function(t){if(Array.isArray(t))return id(t)}(r=n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||function(t,e){if(t){if("string"==typeof t)return id(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?id(t,e):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();if(0===n.length)o.push(e.independent,e.dependent);
1else{var i={dependent:ef(n,"dependent"),independent:ef(n,"independent")};0===i.dependent.length&&0===i.independent.length&&(o=t.prependDefaultAxes?[e.independent,e.dependent].concat(o):o.concat([e.independent,e.dependent]))}return o},cd=function(t,e,r){var n=Tf(t,e,r=r||P().Children.toArray(t.children)),o=tf(r,e);return o&&o.props&&o.props.invertAxis?n.concat().reverse():n},ld=function(t,e,r){var n=r.x&&0!==r.x.length?r.x.reduce((function(t,e,r){return t[e]=r+1,t}),{}):null,o=r.y&&0!==r.y.length?r.y.reduce((function(t,e,r){return t[e]=r+1,t}),{}):null;return{x:n,y:o}};function pd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function fd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pd(Object(r),!0).forEach((function(e){hd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function hd(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var dd={width:450,height:300,padding:50},md=function(t){var e=Xf(),r=e.getAnimationProps,n=e.setAnimationState,o=(0,e.getProps)(t),i=tt(o,dd,"chart"),a=i.desc,s=i.eventKey,u=i.containerComponent,c=i.standalone,l=i.groupComponent,p=i.externalEventMutations,f=i.width,h=i.height,d=i.theme,m=i.polar,y=i.name,v=i.title,g=o.polar?i.defaultPolarAxes:i.defaultAxes,b=P().useMemo((function(){return ud(i,g)}),[i,g]),_=P().useMemo((function(){return sd(i,b)}),[i,b]),x=_.domain,w=_.scale,O=_.style,S=_.origin,j=_.horizontal,A=P().useMemo((function(){var t=function(t,e,r){e=e||ud(t);var n=(r=r||sd(t,e)).style.parent,o=t.height,i=t.polar,a=t.theme,s=t.width,u=r,c=u.origin,l=u.horizontal,p=t.name||"chart";return e.map((function(e,u){var f=e.type&&e.type.role,h=Array.isArray(e.props.style)?e.props.style:N()({},e.props.style,{parent:n}),d=function(t,e,r){var n=Qp([t]);return n.length>0?function(t,e,r){var n=r.domain,o=r.scale,i=r.stringMap,a=r.categories;return{stringMap:i,horizontal:r.horizontal,categories:a,startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:e.innerRadius,domain:n,scale:o}}(n[0],e,r):{categories:r.categories,domain:r.domain,range:r.range,scale:r.scale,stringMap:r.stringMap,horizontal:r.horizontal}}(e,t,r),m=e.props.name||"".concat(p,"-").concat(f,"-").concat(u),y=N()({horizontal:l,height:o,polar:i,theme:a,width:s,style:h,name:m,origin:i?c:void 0,padding:r.padding,key:"".concat(m,"-key-").concat(u),standalone:!1},d);return P().cloneElement(e,y)}))}(o,b,_).map((function(t,e){var n=E()({animate:r(o,t,e)},t.props);return P().cloneElement(t,n)}));if(o.style&&o.style.background){var e=function(t,e){var r=t.backgroundComponent,n=t.polar?e.range.y[1]:e.range.y[0]-e.range.y[1],o=e.range.x[1]-e.range.x[0],i=t.horizontal?e.scale.y.range()[0]:e.scale.x.range()[0],a=t.horizontal?e.scale.x.range()[1]:e.scale.y.range()[1],s=t.polar?e.origin.x:i,u=t.polar?e.origin.y:a,c=t.name||"chart",l={height:n,polar:t.polar,scale:e.scale,style:t.style.background,x:s,y:u,key:"".concat(c,"-background"),width:o};return P().cloneElement(r,N()({},r.props,l))}(o,_);t.unshift(e)}return t}),[r,b,o,_]),C=P().useMemo((function(){return c?{desc:a,domain:x,width:f,height:h,horizontal:j,name:y,origin:m?S:void 0,polar:m,theme:d,title:v,scale:w,standalone:c,style:O.parent}:{}}),[a,x,h,j,y,S,m,w,c,O,v,d,f]),T=P().useMemo((function(){if(c){var e=N()({},u.props,C,Ha(t));return P().cloneElement(u,e)}return l}),[l,c,u,C,t]),k=P().useMemo((function(){return Mf(o)}),[o]),M=Jf(t);return P().useEffect((function(){return function(){t.animate&&n(M,t)}}),[n,M,t]),Tu()(k)?P().cloneElement(T,T.props,A):P().createElement(uh,{container:T,eventKey:s,events:k,externalEventMutations:p},A)};md.propTypes=fd(fd({},Qi.baseProps),{},{backgroundComponent:A().element,children:A().oneOfType([A().arrayOf(A().node),A().node]),defaultAxes:A().shape({independent:A().element,dependent:A().element}),defaultPolarAxes:A().shape({independent:A().element,dependent:A().element}),endAngle:A().number,innerRadius:Gi,prependDefaultAxes:A().bool,startAngle:A().number}),md.defaultProps={backgroundComponent:P().createElement(ca,null),containerComponent:P().createElement(Au,null),defaultAxes:{independent:P().createElement(Mh,null),dependent:P().createElement(Mh,{dependentAxis:!0})},defaultPolarAxes:{independent:P().createElement(od,null),dependent:P().createElement(od,{dependentAxis:!0})},groupComponent:P().createElement("g",null),standalone:!0,theme:Bc.grayscale};var yd=P().memo(md,cu());function vd(t){return function(t){if(Array.isArray(t))return bd(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||gd(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gd(t,e){if(t){if("string"==typeof t)return bd(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bd(t,e):void 0}}function bd(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function xd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?_d(Object(r),!0).forEach((function(e){wd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_d(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function wd(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}yd.displayName="VictoryChart",yd.expectedComponents=["groupComponent","containerComponent"];var Od={width:450,height:300,padding:50,offset:0};function Ed(t,e){var r="group",n=Df((t=tt(t,Od,r)).theme,t.style,r),o=t,i=o.offset,a=o.colorScale,s=o.color,u=o.polar,c=o.horizontal,l=t.categories||Bf(t,e,null),p=t.datasets||Sf(t,null),f={x:Tf(E()({},t,{categories:l}),"x",e),y:Tf(E()({},t,{categories:l}),"y",e)},h=t.range||{x:J(t,"x"),y:J(t,"y")},d={x:Di(t,"x")||kf(t,"x"),y:Di(t,"y")||kf(t,"y")};return{datasets:p,categories:l,range:h,domain:f,horizontal:c,scale:{x:d.x.domain(f.x).range(t.horizontal?h.y:h.x),y:d.y.domain(f.y).range(t.horizontal?h.x:h.y)},style:n,colorScale:a,color:s,offset:i,origin:u?t.origin:X(t),padding:U(t)}}function Sd(t,e){var r=e.type&&e.type.role,n=e.props.colorScale||t.colorScale;if("group"===r||"stack"===r)return t.theme&&t.theme.group?n||t.theme.group.colorScale:n}function Pd(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,n=t.data||t.y?lp(t):e,o=r||0;return n.map((function(t){var e=t._x instanceof Date?new Date(t._x.getTime()+o):t._x+o;return E()({},t,{_x1:e})}))}function jd(t,e,r){t=tt(t,Od,"stack"),e=e||P().Children.toArray(t.children);var n=(r=r||Ed(t,e)).datasets,o=t,i=o.labelComponent,a=o.polar,s=function(t,e){var r=e.categories,n=e.domain,o=e.range,i=e.scale,a=e.horizontal,s=e.origin,u=e.padding,c=t.width;return{height:t.height,width:c,theme:t.theme,polar:t.polar,origin:s,categories:r,domain:n,range:o,scale:i,horizontal:a,padding:u,standalone:!1}}(t,r),u=t.name||"group";return e.map((function(e,o){var c=e.type&&e.type.role,l=a?function(t,e,r,n){var o=(("stack"===n?e.datasets[0].length:e.datasets.length)-1)/2,i=function(t,e){var r=e.range,n=Math.abs(r.x[1]-r.x[0]),o=Math.max.apply(Math,vd(r.y));return t.offset/(2*Math.PI*o)*n}(t,e);return(r-o)*i}(t,r,o,c):function(t,e,r,n){var o=(("stack"===n?e.datasets[0].length:e.datasets.length)-1)/2,i=function(t,e,r){if(!t.offset)return 0;var n=et("x",t.horizontal),o=r.domain.x,i=r.range[n];return(Math.max.apply(Math,vd(o))-Math.min.apply(Math,vd(o)))/(Math.max.apply(Math,vd(i))-Math.min.apply(Math,vd(i)))*t.offset}(t,0,e);return(r-o)*i}(t,r,o,c),p="voronoi"===c||"tooltip"===c||"label"===c?e.props.style:Lf(e,o,r),f=t.labels?function(t,e,r){if(t.labels)return Math.floor(e.length/2)===r?t.labels:void 0}(t,n,o):e.props.labels,h=e.props.name||"".concat(u,"-").concat(c,"-").concat(o);return P().cloneElement(e,E()({labels:f,style:p,key:"".concat(h,"-key-").concat(o),name:h,data:Pd(t,n[o],l),colorScale:Sd(t,e),labelComponent:i||e.props.labelComponent,xOffset:l},s))}))}function Ad(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Cd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ad(Object(r),!0).forEach((function(e){Td(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ad(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Td(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var kd={width:450,height:300,padding:50,offset:0},Md=function(t){var e=null==Dd?void 0:Dd.role,r=Xf(),n=r.getAnimationProps,o=r.setAnimationState,i=(0,r.getProps)(t),a=tt(i,kd,e),s=a.eventKey,u=a.containerComponent,c=a.standalone,l=a.groupComponent,p=a.externalEventMutations,f=a.width,h=a.height,d=a.theme,m=a.polar,y=a.horizontal,v=a.name,g=P().Children.toArray(a.children),b=function(t){var e,r=function(t){var e=t.children,r=P().Children.toArray(e).map((function(t){return xd(xd({},t),{},{props:F(t.props,["sharedEvents"])})}));return t.children=r,t}(t),n=function(t){if(Array.isArray(t))return t}(e=P().useState(r))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(e)||gd(e,2)||function(){throw new TypeError("Invalid attempt to de
1structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=n[0],i=n[1];return P().useEffect((function(){cu()(r,o)||i(r)}),[o,i,r]),P().useMemo((function(){return Ed(o,o.children)}),[o])}(a),_=b.domain,x=b.scale,w=b.style,O=b.origin,S=P().useMemo((function(){return jd(i,g,b).map((function(t,e){var r=E()({animate:n(i,t,e)},t.props);return P().cloneElement(t,r)}))}),[i,g,b,n]),j=P().useMemo((function(){return c?{domain:_,scale:x,width:f,height:h,standalone:c,theme:d,style:w.parent,horizontal:y,polar:m,origin:O,name:v}:{}}),[c,_,x,f,h,d,w,y,m,O,v]),A=P().useMemo((function(){return Ha(t)}),[t]),C=P().useMemo((function(){if(c){var t=N()({},u.props,j,A);return P().cloneElement(u,t)}return P().cloneElement(l,A)}),[l,c,u,j,A]),T=P().useMemo((function(){return Mf(i)}),[i]),k=Jf(t);return P().useEffect((function(){return function(){t.animate&&o(k,i)}}),[o,k,t,i]),Tu()(T)?P().cloneElement(C,C.props,S):P().createElement(uh,{container:C,eventKey:s,events:T,externalEventMutations:p},S)};Md.propTypes=Cd(Cd(Cd({},Qi.baseProps),Qi.dataProps),{},{children:A().oneOfType([A().arrayOf(A().node),A().node]),horizontal:A().bool,offset:A().number}),Md.defaultProps={containerComponent:P().createElement(Au,null),groupComponent:P().createElement("g",null),samples:50,sortOrder:"ascending",standalone:!0,theme:Bc.grayscale};var Id={role:"group",expectedComponents:["groupComponent","containerComponent","labelComponent"],getChildren:jd},Dd=Object.assign(P().memo(Md,cu()),Id);function Ld(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Rd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function zd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Rd(Object(r),!0).forEach((function(e){Nd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Rd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Nd(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Dd.displayName="VictoryGroup";var Fd={width:450,height:300,padding:50};function Bd(t,e){e=e||P().Children.toArray(t.children);var r="stack",n=Df((t=tt(t,Fd,r)).theme,t.style,r),o=t.categories||Bf(t,e),i=t.datasets||function(t,e){var r=Sf(t,e).map((function(t){return t.filter((function(t){return null!==t._x&&null!==t._y}))})),n=function(t,e){var r=t.fillInMissingData,n=e.reduce((function(t,e){return e.forEach((function(e){t[e._x instanceof Date?e._x.getTime():e._x]=!0})),t}),{}),o=T()(n).map((function(t){return Number(t)})),i=Fs()(o);return e.map((function(t){var e=0,n=t[0]&&t[0]._x instanceof Date;return i.map((function(o,i){o=Number(o);var a=t[i-e];if(a){if((n?a._x.getTime():a._x)===o)return a;e++;var s=r?0:null;return{x:o=n?new Date(o):o,y:s,_x:o,_y:s}}var u=r?0:null;return{x:o=n?new Date(o):o,y:u,_x:o,_y:u}}))}))}(t,r);return n.map((function(e,r){return function(t,e,r){var n=t.xOffset||0;return e[r].map((function(t){var o=function(t,e,r){if(t.y0)return t.y0;var n=t._y,o=t._group,i=r[0].map((function(t){return t.y0})),a=r.slice(0,e).reduce((function(e,r){return e.concat(r.filter((function(e){return t._x instanceof Date?e._x.getTime()===t._x.getTime():e._x===t._x})).map((function(t){return t._y||0})))}),[]),s=a.length&&a.reduce((function(t,e){return n<0&&e<0||n>=0&&e>=0?Number(e)+t:t}),i[o]||0);return a.some((function(t){return t instanceof Date}))?new Date(s):s}(t,r,e)||0;return E()({},t,{_y0:t._y instanceof Date?o?new Date(o):t._y:o,_y1:null===t._y?null:t._y instanceof Date?new Date(Number(t._y)+Number(o)):t._y+o,_x1:null===t._x?null:t._x instanceof Date?new Date(Number(t._x)+Number(n)):t._x+n})}))}(t,n,r)}))}(t,e),a=e.map((function(t,e){return P().cloneElement(t,{data:i[e]})})),s={x:Tf(E()({},t,{categories:o}),"x",a),y:Tf(E()({},t,{categories:o}),"y",a)},u=t.range||{x:J(t,"x"),y:J(t,"y")},c={x:Di(t,"x")||kf(t,"x"),y:Di(t,"y")||kf(t,"y")},l={x:c.x.domain(s.x).range(t.horizontal?u.y:u.x),y:c.y.domain(s.y).range(t.horizontal?u.x:u.y)},p=t,f=p.colorScale,h=p.horizontal;return{datasets:i,categories:o,range:u,domain:s,horizontal:h,scale:l,style:n,colorScale:f,role:r}}function Vd(t,e){var r=e.type&&e.type.role,n=e.props.colorScale||t.colorScale;if("group"===r||"stack"===r)return t.theme?n||t.theme.props.colorScale:n}function Ud(t,e,r){t=tt(t,Fd,"stack"),e=e||P().Children.toArray(t.children);var n=(r=r||Bd(t,e)).datasets,o=function(t,e){var r=e.categories,n=e.domain,o=e.range,i=e.scale,a=e.horizontal;return{height:t.height,width:t.width,padding:U(t),standalone:!1,theme:t.theme,categories:r,domain:n,range:o,scale:i,horizontal:a}}(t,r),i=t.name||"stack";return e.map((function(e,a){var s=e.type&&e.type.role,u=n[a],c=Lf(e,a,r),l=t.labels?function(t,e,r){if(t.labels)return e.length===r+1?t.labels:void 0}(t,n,a):e.props.labels,p=e.props.name||"".concat(i,"-").concat(s,"-").concat(a);return P().cloneElement(e,E()({key:"".concat(p,"-key-").concat(a),labels:l,name:p,domainPadding:e.props.domainPadding||t.domainPadding,theme:t.theme,labelComponent:t.labelComponent||e.props.labelComponent,style:c,colorScale:Vd(t,e),data:u,polar:t.polar},o))}))}function qd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function $d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?qd(Object(r),!0).forEach((function(e){Gd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Gd(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Wd={width:450,height:300,padding:50},Zd=function(t){var e=Kd.role,r=Xf(),n=r.setAnimationState,o=r.getAnimationProps,i=(0,r.getProps)(t),a=tt(i,Wd,e),s=a.eventKey,u=a.containerComponent,c=a.standalone,l=a.groupComponent,p=a.externalEventMutations,f=a.width,h=a.height,d=a.theme,m=a.polar,y=a.horizontal,v=a.name,g=P().Children.toArray(a.children),b=function(t){var e,r=function(t){var e=t.children,r=P().Children.toArray(e).map((function(t){var e=t;return zd(zd({},e),{},{props:F(e.props,["sharedEvents"])})}));return t.children=r,t}(t),n=function(t){if(Array.isArray(t))return t}(e=P().useState(r))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(e)||function(t,e){if(t){if("string"==typeof t)return Ld(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ld(t,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=n[0],i=n[1];return P().useEffect((function(){cu()(r,o)||i(r)}),[o,i,r]),P().useMemo((function(){return Bd(o,o.children)}),[o])}(a),_=b.domain,x=b.scale,w=b.style,O=P().useMemo((function(){return Ud(i,g,b).map((function(t,e){var r=E()({animate:o(i,t,e)},t.props);return P().cloneElement(t,r)})).reverse()}),[i,g,b,o]),S=P().useMemo((function(){return c?{domain:_,scale:x,width:f,height:h,standalone:c,theme:d,style:w.parent,horizontal:y,polar:m,name:v}:{}}),[c,_,x,f,h,d,w,y,m,v]),j=P().useMemo((function(){return Ha(t)}),[t]),A=P().useMemo((function(){if(c){var t=N()({},u.props,S,j);return P().cloneElement(u,t)}return P().cloneElement(l,j)}),[l,c,u,S,j]),C=P().useMemo((function(){return Mf(i)}),[i]),T=Jf(t);return P().useEffect((function(){return function(){t.animate&&n(T,t)}}),[n,T,t]),Tu()(C)?P().cloneElement(A,A.props,O):P().createElement(uh,{container:A,eventKey:s,events:C,externalEventMutations:p},O)};Zd.propTypes=$d($d({},Qi.baseProps),{}
vendor: 5,268 bytes, line 1
1,{bins:A().oneOfType([A().arrayOf(A().oneOfType([Gi,A().instanceOf(Date)])),Gi]),categories:A().oneOfType([A().arrayOf(A().string),A().shape({x:A().arrayOf(A().string),y:A().arrayOf(A().string)})]),children:A().oneOfType([A().arrayOf(A().node),A().node]),colorScale:A().oneOfType([A().arrayOf(A().string),A().oneOf(["grayscale","qualitative","heatmap","warm","cool","red","green","blue"])]),fillInMissingData:A().bool,horizontal:A().bool,labelComponent:A().element,labels:A().oneOfType([A().func,A().array]),style:A().shape({parent:A().object,data:A().object,labels:A().object}),xOffset:A().number}),Zd.defaultProps={containerComponent:P().createElement(Au,null),groupComponent:P().createElement("g",null),standalone:!0,theme:Bc.grayscale,fillInMissingData:!0};var Hd={role:"stack",expectedComponents:["groupComponent","containerComponent","labelComponent"],getChildren:Ud},Kd=Object.assign(P().memo(Zd,cu()),Hd);function Yd(t){return function(){return t}}Kd.displayName="VictoryStack";const Xd=Math.abs,Jd=Math.atan2,Qd=Math.cos,tm=Math.max,em=Math.min,rm=Math.sin,nm=Math.sqrt,om=1e-12,im=Math.PI,am=im/2,sm=2*im;function um(t){return t>=1?am:t<=-1?-am:Math.asin(t)}const cm=Math.PI,lm=2*cm,pm=1e-6,fm=lm-pm;function hm(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class dm{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?hm:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return hm;const r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,r,n){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(t,e,r,n,o,i){this._append`C${+t},${+e},${+r},${+n},${this._x1=+o},${this._y1=+i}`}arcTo(t,e,r,n,o){if(t=+t,e=+e,r=+r,n=+n,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,s=r-t,u=n-e,c=i-t,l=a-e,p=c*c+l*l;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(p>pm)if(Math.abs(l*s-u*c)>pm&&o){let f=r-i,h=n-a,d=s*s+u*u,m=f*f+h*h,y=Math.sqrt(d),v=Math.sqrt(p),g=o*Math.tan((cm-Math.acos((d+p-m)/(2*y*v)))/2),b=g/v,_=g/y;Math.abs(b-1)>pm&&this._append`L${t+b*c},${e+b*l}`,this._append`A${o},${o},0,0,${+(l*f>c*h)},${this._x1=t+_*s},${this._y1=e+_*u}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,r,n,o,i){if(t=+t,e=+e,i=!!i,(r=+r)<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(n),s=r*Math.sin(n),u=t+a,c=e+s,l=1^i,p=i?n-o:o-n;null===this._x1?this._append`M${u},${c}`:(Math.abs(this._x1-u)>pm||Math.abs(this._y1-c)>pm)&&this._append`L${u},${c}`,r&&(p<0&&(p=p%lm+lm),p>fm?this._append`A${r},${r},0,1,${l},${t-a},${e-s}A${r},${r},0,1,${l},${this._x1=u},${this._y1=c}`:p>pm&&this._append`A${r},${r},0,${+(p>=cm)},${l},${this._x1=t+r*Math.cos(o)},${this._y1=e+r*Math.sin(o)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function mm(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{const t=Math.floor(r);if(!(t>=0))throw new RangeError(`invalid digits: ${r}`);e=t}return t},()=>new dm(e)}function ym(t){return t.innerRadius}function vm(t){return t.outerRadius}function gm(t){return t.startAngle}function bm(t){return t.endAngle}function _m(t){return t&&t.padAngle}function xm(t,e,r,n,o,i,a){var s=t-r,u=e-n,c=(a?i:-i)/nm(s*s+u*u),l=c*u,p=-c*s,f=t+l,h=e+p,d=r+l,m=n+p,y=(f+d)/2,v=(h+m)/2,g=d-f,b=m-h,_=g*g+b*b,x=o-i,w=f*m-d*h,O=(b<0?-1:1)*nm(tm(0,x*x*_-w*w)),E=(w*b-g*O)/_,S=(-w*g-b*O)/_,P=(w*b+g*O)/_,j=(-w*g+b*O)/_,A=E-y,C=S-v,T=P-y,k=j-v;return A*A+C*C>T*T+k*k&&(E=P,S=j),{cx:E,cy:S,x01:-l,y01:-p,x11:E*(o/x-1),y11:S*(o/x-1)}}function wm(){var t=ym,e=vm,r=Yd(0),n=null,o=gm,i=bm,a=_m,s=null,u=mm(c);function c(){var c,l,p,f=+t.apply(this,arguments),h=+e.apply(this,arguments),d=o.apply(this,arguments)-am,m=i.apply(this,arguments)-am,y=Xd(m-d),v=m>d;if(s||(s=c=u()),h<f&&(l=h,h=f,f=l),h>om)if(y>sm-om)s.moveTo(h*Qd(d),h*rm(d)),s.arc(0,0,h,d,m,!v),f>om&&(s.moveTo(f*Qd(m),f*rm(m)),s.arc(0,0,f,m,d,v));else{var g,b,_=d,x=m,w=d,O=m,E=y,S=y,P=a.apply(this,arguments)/2,j=P>om&&(n?+n.apply(this,arguments):nm(f*f+h*h)),A=em(Xd(h-f)/2,+r.apply(this,arguments)),C=A,T=A;if(j>om){var k=um(j/f*rm(P)),M=um(j/h*rm(P));(E-=2*k)>om?(w+=k*=v?1:-1,O-=k):(E=0,w=O=(d+m)/2),(S-=2*M)>om?(_+=M*=v?1:-1,x-=M):(S=0,_=x=(d+m)/2)}var I=h*Qd(_),D=h*rm(_),L=f*Qd(O),R=f*rm(O);if(A>om){var z,N=h*Qd(x),F=h*rm(x),B=f*Qd(w),V=f*rm(w);if(y<im)if(z=function(t,e,r,n,o,i,a,s){var u=r-t,c=n-e,l=a-o,p=s-i,f=p*u-l*c;if(!(f*f<om))return[t+(f=(l*(e-i)-p*(t-o))/f)*u,e+f*c]}(I,D,B,V,N,F,L,R)){var U=I-z[0],q=D-z[1],$=N-z[0],G=F-z[1],W=1/rm(((p=(U*$+q*G)/(nm(U*U+q*q)*nm($*$+G*G)))>1?0:p<-1?im:Math.acos(p))/2),Z=nm(z[0]*z[0]+z[1]*z[1]);C=em(A,(f-Z)/(W-1)),T=em(A,(h-Z)/(W+1))}else C=T=0}S>om?T>om?(g=xm(B,V,I,D,h,T,v),b=xm(N,F,L,R,h,T,v),s.moveTo(g.cx+g.x01,g.cy+g.y01),T<A?s.arc(g.cx,g.cy,T,Jd(g.y01,g.x01),Jd(b.y01,b.x01),!v):(s.arc(g.cx,g.cy,T,Jd(g.y01,g.x01),Jd(g.y11,g.x11),!v),s.ar
1c(0,0,h,Jd(g.cy+g.y11,g.cx+g.x11),Jd(b.cy+b.y11,b.cx+b.x11),!v),s.arc(b.cx,b.cy,T,Jd(b.y11,b.x11),Jd(b.y01,b.x01),!v))):(s.moveTo(I,D),s.arc(0,0,h,_,x,!v)):s.moveTo(I,D),f>om&&E>om?C>om?(g=xm(L,R,N,F,f,-C,v),b=xm(I,D,B,V,f,-C,v),s.lineTo(g.cx+g.x01,g.cy+g.y01),C<A?s.arc(g.cx,g.cy,C,Jd(g.y01,g.x01),Jd(b.y01,b.x01),!v):(s.arc(g.cx,g.cy,C,Jd(g.y01,g.x01),Jd(g.y11,g.x11),!v),s.arc(0,0,f,Jd(g.cy+g.y11,g.cx+g.x11),Jd(b.cy+b.y11,b.cx+b.x11),v),s.arc(b.cx,b.cy,C,Jd(b.y11,b.x11),Jd(b.y01,b.x01),!v))):s.arc(0,0,f,O,w,v):s.lineTo(L,R)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var r=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,n=(+o.apply(this,arguments)+ +i.apply(this,arguments))/2-im/2;return[Qd(n)*r,rm(n)*r]},c.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Yd(+e),c):t},c.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Yd(+t),c):e},c.cornerRadius=function(t){return arguments.length?(r="function"==typeof t?t:Yd(+t),c):r},c.padRadius=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:Yd(+t),c):n},c.startAngle=function(t){return arguments.length?(o="function"==typeof t?t:Yd(+t),c):o},c.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Yd(+t),c):i},c.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:Yd(+t),c):a},c.context=function(t){return arguments.length?(s=null==t?null:t,c):s},c}function Om(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Em(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Om(Object(r),!0).forEach((function(e){Sm(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Om(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Sm(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Pm=function(t){var e=t.slice,r=t.radius,n=t.innerRadius,o=t.cornerRadius;if(R()(t.pathFunction))return t.pathFunction(e);var i=H(t.padAngle),a=H(t.sliceStartAngle),s=H(t.sliceEndAngle);return wm().cornerRadius(o).outerRadius(r).innerRadius(n||0)(N()({startAngle:a,endAngle:s,padAngle:i},e))},jm=function(t){var e=(t=function(t){var e=Z(t.style,t),r=W(t.radius,E()({},t,{style:e})),n=W(t.innerRadius,E()({},t,{style:e,radius:r})),o=W(t.ariaLabel,t),i=W(t.id,t),a=W(t.cornerRadius,t),s=W(t.padAngle,t),u=W(t.sliceStartAngle,t),c=W(t.sliceEndAngle,t),l=W(t.tabIndex,t);return E()({},t,{ariaLabel:o,style:e,radius:r,innerRadius:n,id:i,cornerRadius:a,padAngle:s,sliceStartAngle:u,sliceEndAngle:c,tabIndex:l})}(t)).origin?"translate(".concat(t.origin.x,", ").concat(t.origin.y,")"):void 0;return P().cloneElement(t.pathComponent,Em(Em({},t.events),{},{"aria-label":t.ariaLabel,d:Pm(t),style:t.style,transform:t.transform||e,className:t.className,role:t.role,shapeRendering:t.shapeRendering,clipPath:t.clipPath,tabIndex:t.tabIndex}))};jm.propTypes=Em(Em({},Qi.primitiveProps),{},{cornerRadius:A().oneOfType([A().number,A().func]),datum:A().object,innerRadius:A().oneOfType([A().number,A().func]),padAngle:A().oneOfType([A().number,A().func]),pathComponent:A().element,pathFunction:A().func,radius:A().oneOfType([A().number,A().func]),slice:A().object,sliceEndAngle:A().oneOfType([A().number,A().func]),sliceStartAngle:A().oneOfType([A().number,A().func])}),jm.defaultProps={pathComponent:P().createElement(ja,null),role:"presentation",shapeRendering:"auto"};const Am=jm;var Cm=Array.prototype.slice;function Tm(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function km(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Mm(t){return t}function Im(){var t=Mm,e=km,r=null,n=Yd(0),o=Yd(sm),i=Yd(0);function a(a){var s,u,c,l,p,f=(a=Tm(a)).length,h=0,d=new Array(f),m=new Array(f),y=+n.apply(this,arguments),v=Math.min(sm,Math.max(-sm,o.apply(this,arguments)-y)),g=Math.min(Math.abs(v)/f,i.apply(this,arguments)),b=g*(v<0?-1:1);for(s=0;s<f;
1++s)(p=m[d[s]=s]=+t(a[s],s,a))>0&&(h+=p);for(null!=e?d.sort((function(t,r){return e(m[t],m[r])})):null!=r&&d.sort((function(t,e){return r(a[t],a[e])})),s=0,c=h?(v-f*b)/h:0;s<f;++s,y=l)u=d[s],l=y+((p=m[u])>0?p*c:0)+b,m[u]={data:a[u],index:s,value:p,startAngle:y,endAngle:l,padAngle:g};return m}return a.value=function(e){return arguments.length?(t="function"==typeof e?e:Yd(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,r=null,a):e},a.sort=function(t){return arguments.length?(r=t,e=null,a):r},a.startAngle=function(t){return arguments.length?(n="function"==typeof t?t:Yd(+t),a):n},a.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:Yd(+t),a):o},a.padAngle=function(t){return arguments.length?(i="function"==typeof t?t:Yd(+t),a):i},a}var Dm=function(t,e){var r=e.style,n=function(t,e,r){return t&&t.data&&t.data.fill?t.data.fill:e&&e[r%e.length]}(r,e.colors,t);return E()({fill:n},r.data)};function Lm(t,e){return Lm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Lm(t,e)}function Rm(t){return Rm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Rm(t)}var zm={endAngle:360,height:400,innerRadius:0,cornerRadius:0,padAngle:0,padding:30,width:400,startAngle:0,colorScale:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],labelPosition:"centroid"},Nm=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Lm(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Rm(n);if(o){var r=Rm(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,(r=[{key:"shouldAnimate",value:function(){return Boolean(this.props.animate)}},{key:"render",value:function(){var t=a.animationWhitelist,e=a.role,r=tt(this.props,zm,e);if(this.shouldAnimate())return this.animateComponent(r,t);var n=this.renderData(r),o=r.standalone?this.renderContainer(r.containerComponent,n):n;return Ka(o,r)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(P().Component);Nm.animationWhitelist=["data","endAngle","height","innerRadius","cornerRadius","padAngle","padding","colorScale","startAngle","style","width"],Nm.displayName="VictoryPie",Nm.role="pie",Nm.defaultTransitions={onExit:{duration:500,before:function(){return{_y:0,label:" "}}},onEnter:{duration:500,before:function(){return{_y:0,label:" "}},after:function(t){return{y_:t._y,label:t.label}}}},Nm.propTypes={animate:A().oneOfType([A().bool,A().object]),colorScale:A().oneOfType([A().arrayOf(A().string),A().oneOf(["grayscale","qualitative","heatmap","warm","cool","red","green","blue"])]),containerComponent:A().element,cornerRadius:A().oneOfType([Gi,A(
1).func]),data:A().array,dataComponent:A().element,disableInlineStyes:A().bool,endAngle:A().number,eventKey:A().oneOfType([A().func,$i([Wi,Gi]),A().string]),events:A().arrayOf(A().shape({target:A().oneOf(["data","labels","parent"]),eventKey:A().oneOfType([A().array,A().func,$i([Wi,Gi]),A().string]),eventHandlers:A().object})),externalEventMutations:A().arrayOf(A().shape({callback:A().func,childName:A().oneOfType([A().string,A().array]),eventKey:A().oneOfType([A().array,$i([Wi,Gi]),A().string]),mutation:A().func,target:A().oneOfType([A().string,A().array])})),groupComponent:A().element,height:Gi,innerRadius:A().oneOfType([Gi,A().func]),labelComponent:A().element,labelPlacement:A().oneOfType([A().func,A().oneOf(["parallel","perpendicular","vertical"])]),labelPosition:A().oneOfType([A().func,A().oneOf(["startAngle","centroid","endAngle"])]),labelRadius:A().oneOfType([Gi,A().func]),labels:A().oneOfType([A().func,A().array]),name:A().string,origin:A().shape({x:Gi,y:Gi}),padAngle:A().oneOfType([Gi,A().func]),padding:A().oneOfType([A().number,A().shape({top:A().number,bottom:A().number,left:A().number,right:A().number}
1)]),radius:A().oneOfType([Gi,A().func]),sharedEvents:A().shape({events:A().array,getEventState:A().func}),sortKey:A().oneOfType([A().func,$i([Wi,Gi]),A().string,A().arrayOf(A().string)]),sortOrder:A().oneOf(["ascending","descending"]),standalone:A().bool,startAngle:A().number,style:A().shape({parent:A().object,data:A().object,labels:A().object}),theme:A().object,width:Gi,x:A().oneOfType([A().func,$i([Wi,Gi]),A().string,A().arrayOf(A().string)]),y:A().oneOfType([A().func,$i([Wi,Gi]),A().string,A().arrayOf(A().string)])},Nm.defaultProps={data:[{x:"A",y:1},{x:"B",y:2},{x:"C",y:3},{x:"D",y:1},{x:"E",y:2}],standalone:!0,dataComponent:P().createElement(Am,null),labelComponent:P().createElement(wc,null),containerComponent:P().createElement(Au,null),groupComponent:P().createElement("g",null),sortOrder:"ascending",theme:Bc.grayscale},Nm.getBaseProps=function(t){return function(t,e){var r=function(t){var e=t.colorScale,r=$(t,"pie"),n=G(t.style,r),o=Array.isArray(e)?e:Uu(e),i=U(t),a=function(t,e){return"number"==typeof t.radius?t.radius:Math.min(t.width-e.left-e.right,t.height-e.top-e.bottom)/2}(t,i),s=function(t,e){var r=t.width,n=t.height,o=lt()(t.origin)?t.origin:{};return{x:void 0!==o.x?o.x:(e.left-e.right+r)/2,y:void 0!==o.y?o.y:(e.top-e.bottom+n)/2}}(t,i),u=lp(t),c=function(t,e){var r=R()(t.padAngle)?0:t.padAngle;return Im().sort(null).startAngle(H(t.startAngle)).endAngle(H(t.endAngle)).padAngle(H(r)).value((function(t){return t._y}))(e)}(t,u);return E()({},t,{style:n,colors:o,padding:i,defaultRadius:a,data:u,slices:c,origin:s})}(t=tt(t,e,"pie")),n=r.slices,o=r.style,i=r.data,a=r.origin,s=r.defaultRadius,u=r.labels,c=r.events,l=r.sharedEvents,p=r.height,f=r.width,h=r.standalone,d=r.name,m=r.innerRadius,y=r.cornerRadius,v=r.padAngle,g=r.disableInlineStyles,b=t.radius||s,_={parent:{standalone:h,height:p,width:f,slices:n,name:d,style:o.parent}};return n.reduce((function(e,n,o){var s=N()({},i[o],{startAngle:K(n.startAngle),endAngle:K(n.endAngle),padAngle:K(n.padAngle)}),p=ll()(s.eventKey)?o:s.eventKey,f={index:o,slice:n,datum:s,data:i,origin:a,innerRadius:m,radius:b,cornerRadius:y,padAngle:v,style:g?{}:Dm(o,r),disableInlineStyles:g};e[p]={data:f};var h=function(t,e,r){return null==(n=e.label?e.label:Array.isArray(t.labels)?t.labels[r]:R()(t.labels)?t.labels:e.xName||e._x)||R()(n)?n:"".concat(n);var n}(t,s,o);if(null!=h||u&&(c||l)){var d=W(h,f);e[p].labels=function(t,e,r){var n=e.index,o=e.datum,i=e.data,a=e.slice,s=e.labelComponent,u=e.theme,c=r.style,l=r.defaultRadius,p=r.origin,f=r.width,h=r.height,d=W(r.labelRadius,E()({text:t},e)),m=W(r.labelPosition,E()({text:t},e))||"centroid",y=W(r.labelPlacement,E()({text:t},e))||"vertical",v=E()({padding:0},c.labels),g=function(t,e,r){var n=r&&r.padding||0,o=e||t+n;return wm().outerRadius(o).innerRadius(o)}(l,d,Z(v,E()({labelRadius:d,text:t},e))),b=function(t,e,r){var n={startAngle:"startAngle"===r?e.startAngle:e.endAngle,endAngle:"endAngle"===r?e.endAngle:e.startAngle},o=E()({},e,n);return t.centroid(o)}(g,a,m),_=function(t,e,r){var n;return((n=void 0!==e.angle?r.angle:K("centroid"===e?(t.startAngle+t.endAngle)/2:"startAngle"===e?t.startAngle:t.endAngle))<0?360-n:n)%360}(a,m,v),x=function(t,e){return"vertical"===e?0:"parallel"===e?t>180&&t<360?t+90:t-90:t>90&&t<270?t-180:t}(_,y),w=function(t,e){return"perpendicular"===e?t>90&&t<270?"bottom":"top":"parallel"===e?t>=0&&t<=180?"right":"left":t<45||t>315?"top":t>=45&&t<135?"right":t>=135&&t<225?"bottom":"left"}(_,y),O=v.textAnchor||function(t){return"top"===t||"bottom"===t?"middle":"right"===t?"start":"end"}(w),S=v.verticalAnchor||function(t){return"left"===t||"right"===t?"middle":"bottom"===t?"start":"end"}(w),P={width:f,height:h,index:n,datum:o,data:i,slice:a,orientation:w,text:t,style:v,x:Math.round(b[0])+p.x,y:Math.round(b[1])+p.y,textAnchor:O,verticalAnchor:S,angle:x};if(!q(s))return P;var j=u&&u.tooltip||{};return N()({},P,F(j,["style"]))}(d,E()({},t,f),r)}return e}),_)}(t,zm)},Nm.getData=lp,Nm.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];const Fm=ql(Nm);function Bm(t){this._context=t}function Vm(t){return new Bm(t)}function Um(t){return t[0]}function qm(t){return t[1]}function $m(t,e){var r=Yd(!0),n=null,o=Vm,i=null,a=mm(s);function s(s){var u,c,l,p=(s=Tm(s)).length,f=!1;for(null==n&&(i=o(l=a())),u=0;u<=p;++u)!(u<p&&r(c=s[u],u,s))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+t(c,u,s),+e(c,u,s));if(l)return i=null,l+""||null}return t="function"==typeof t?t:void 0===t?Um:Yd(t),e="function"==typeof e?e:void 0===e?qm:Yd(e),s.x=function(e){return arguments.length?(t="function"==typeof e?e:Yd(+e),s):t},s.y=function(t){return arguments.length?(e="function"==typeof t?t:Yd(+t),s):e},s.defined=function(t){return arguments.length?(r="function"==typeof t?t:Yd(!!t),s):r},s.curve=function(t){return arguments.length?(o=t,null!=n&&(i=o(n)),s):o},s.context=function(t){return arguments.length?(null==t?n=i=null:i=o(n=t),s):n},s}function Gm(t,e,r){var n=null,o=Yd(!0),i=null,a=Vm,s=null,u=mm(c);function c(c){var l,p,f,h,d,m=(c=Tm(c)).length,y=!1,v=new Array(m),g=new Array(m);for(null==i&&(s=a(d=u())),l=0;l<=m;++l){if(!(l<m&&o(h=c[l],l,c))===y)if(y=!y)p=l,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=l-1;f>=p;--f)s.point(v[f],g[f]);s.lineEnd(),s.areaEnd()}y&&(v[l]=+t(h,l,c),g[l]=+e(h,l,c),s.point(n?+n(h,l,c):v[l],r?+r(h,l,c):g[l]))}if(d)return s=null,d+""||null}function l(){return $m().defined(o).curve(a).context(i)}return t="function"==typeof t?t:void 0===t?Um:Yd(+t),e="function"==typeof e?e:Yd(void 0===e?0:+e),r="function"==typeof r?r:void 0===r?qm:Yd(+r),c.x=function(e){return arguments.length?(t="function"==typeof e?e:Yd(+e),n=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:Yd(+e),c):t},c.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:Yd(+t),c):n},c.y=function(t){return arguments.length?(e="function"==typeof t?t:Yd(+t),r=null,c):e},c.y0=function(t){return arguments.length?(e="function"==typeof t?t:Yd(+t),c):e},c.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Yd(+t),c):r},c.lineX0=c.lineY0=function(){return l().x(t).y(e)},c.lineY1=function(){return l().x(t).y(r)},c.lineX1=function(){return l().x(n).y(e)},c.defined=function(t){return arguments.length?(o="function"==typeof t?t:Yd(!!t),c):o},c.curve=function(t){return arguments.length?(a=t,null!=i&&(s=a(i)),c):a},c.context=function(t){return arguments.length?(null==t?i=s=null:s=a(i=t),c):i},c}Bm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var Wm=Hm(Vm);function Zm(t){this._curve=t}function Hm(t){function e(e){return new Zm(t(e))}return e._curve=t,e}function Km(t){var e=t.curve;
vendor: 16,024 bytes, line 1
1return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(Hm(t)):e()._curve},t}function Ym(){return Km($m().curve(Wm))}function Xm(){var t=Gm().curve(Wm),e=t.curve,r=t.lineX0,n=t.lineX1,o=t.lineY0,i=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Km(r())},delete t.lineX0,t.lineEndAngle=function(){return Km(n())},delete t.lineX1,t.lineInnerRadius=function(){return Km(o())},delete t.lineY0,t.lineOuterRadius=function(){return Km(i())},delete t.lineY1,t.curve=function(t){return arguments.length?e(Hm(t)):e()._curve},t}function Jm(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}Zm.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};class Qm{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}class ty{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,e){if(t=+t,e=+e,0===this._point)this._point=1;else{const r=Jm(this._x0,this._y0),n=Jm(this._x0,this._y0=(this._y0+e)/2),o=Jm(t,this._y0),i=Jm(t,e);this._context.moveTo(...r),this._context.bezierCurveTo(...n,...o,...i)}this._x0=t,this._y0=e}}function ey(t){return new Qm(t,!0)}function ry(t){return new Qm(t,!1)}function ny(t){return new ty(t)}function oy(t){return t.source}function iy(t){return t.target}function ay(t){let e=oy,r=iy,n=Um,o=qm,i=null,a=null,s=mm(u);function u(){let u;const c=Cm.call(arguments),l=e.apply(this,c),p=r.apply(this,c);if(null==i&&(a=t(u=s())),a.lineStart(),c[0]=l,a.point(+n.apply(this,c),+o.apply(this,c)),c[0]=p,a.point(+n.apply(this,c),+o.apply(this,c)),a.lineEnd(),u)return a=null,u+""||null}return u.source=function(t){return arguments.length?(e=t,u):e},u.target=function(t){return arguments.length?(r=t,u):r},u.x=function(t){return arguments.length?(n="function"==typeof t?t:Yd(+t),u):n},u.y=function(t){return arguments.length?(o="function"==typeof t?t:Yd(+t),u):o},u.context=function(e){return arguments.length?(null==e?i=a=null:a=t(i=e),u):i},u}function sy(){return ay(ey)}function uy(){return ay(ry)}function cy(){const t=ay(ny);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const ly=nm(3),py={draw(t,e){const r=.59436*nm(e+em(e/28,.75)),n=r/2,o=n*ly;t.moveTo(0,r),t.lineTo(0,-r),t.moveTo(-o,-n),t.lineTo(o,n),t.moveTo(-o,n),t.lineTo(o,-n)}},fy={draw(t,e){const r=nm(e/im);t.moveTo(r,0),t.arc(0,0,r,0,sm)}},hy={draw(t,e){const r=nm(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},dy=nm(1/3),my=2*dy,yy={draw(t,e){const r=nm(e/my),n=r*dy;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},vy={draw(t,e){const r=.62625*nm(e);t.moveTo(0,-r),t.lineTo(r,0),t.lineTo(0,r),t.lineTo(-r,0),t.closePath()}},gy={draw(t,e){const r=.87559*nm(e-em(e/7,2));t.moveTo(-r,0),t.lineTo(r,0),t.moveTo(0,r),t.lineTo(0,-r)}},by={draw(t,e){const r=nm(e),n=-r/2;t.rect(n,n,r,r)}},_y={draw(t,e){const r=.4431*nm(e);t.moveTo(r,r),t.lineTo(r,-r),t.lineTo(-r,-r),t.lineTo(-r,r),t.closePath()}},xy=rm(im/10)/rm(7*im/10),wy=rm(sm/10)*xy,Oy=-Qd(sm/10)*xy,Ey={draw(t,e){const r=nm(.8908130915292852*e),n=wy*r,o=Oy*r;t.moveTo(0,-r),t.lineTo(n,o);for(let i=1;i<5;++i){const e=sm*i/5,a=Qd(e),s=rm(e);t.lineTo(s*r,-a*r),t.lineTo(a*n-s*o,s*n+a*o)}t.closePath()}},Sy=nm(3),Py={draw(t,e){const r=-nm(e/(3*Sy));t.moveTo(0,2*r),t.lineTo(-Sy*r,-r),t.lineTo(Sy*r,-r),t.closePath()}},jy=nm(3),Ay={draw(t,e){const r=.6824*nm(e),n=r/2,o=r*jy/2;t.moveTo(0,-r),t.lineTo(o,n),t.lineTo(-o,n),t.closePath()}},Cy=-.5,Ty=nm(3)/2,ky=1/nm(12),My=3*(ky/2+1),Iy={draw(t,e){const r=nm(e/My),n=r/2,o=r*ky,i=n,a=r*ky+r,s=-i,u=a;t.moveTo(n,o),t.lineTo(i,a),t.lineTo(s,u),t.lineTo(Cy*n-Ty*o,Ty*n+Cy*o),t.lineTo(Cy*i-Ty*a,Ty*i+Cy*a),t.lineTo(Cy*s-Ty*u,Ty*s+Cy*u),t.lineTo(Cy*n+Ty*o,Cy*o-Ty*n),t.lineTo(Cy*i+Ty*a,Cy*a-Ty*i),t.lineTo(Cy*s+Ty*u,Cy*u-Ty*s),t.closePath()}},Dy={draw(t,e){const r=.6189*nm(e-em(e/6,1.7));t.moveTo(-r,-r),t.lineTo(r,r),t.moveTo(-r,r),t.lineTo(r,-r)}},Ly=[fy,hy,yy,by,Ey,Py,Iy],Ry=[fy,gy,Dy,Ay,py,_y,vy];function zy(t,e){let r=null,n=mm(o);function o(){let o;if(r||(r=o=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),o)return r=null,o+""||null}return t="function"==typeof t?t:Yd(t||fy),e="function"==typeof e?e:Yd(void 0===e?64:+e),o.type=function(e){return arguments.length?(t="function"==typeof e?e:Yd(e),o):t},o.size=function(t){return arguments.length?(e="function"==typeof t?t:Yd(+t),o):e},o.context=function(t){return arguments.length?(r=null==t?null:t,o):r},o}function Ny(){}function Fy(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function By(t){this._context=t}function Vy(t){return new By(t)}function Uy(t){this._context=t}function qy(t){return new Uy(t)}function $y(t){this._context=t}function Gy(t){return new $y(t)}function Wy(t,e){this._basis=new By(t),this._beta=e}By.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Fy(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Fy(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Uy.prototype={areaStart:Ny,areaEnd:Ny,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Fy(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},$y.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Fy(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Wy.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var n,o=t[0],i=e[0],a=t[r]-o,s=e[r]-i,u=-1;++u<=r;)n=u/r,this._basis.point(this._beta*t[u]+(1-this._beta)*(o+n*a),this._beta*e[u]+(1-this._beta)*(i+n*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const Zy=function t(e){function r(t){return 1===e?new By(t):new Wy(t,e)}return r.beta=function(e){return t(+e)},r}(.85);function Hy(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function Ky(t,e){this._context=t,this._k=(1-e)/6}Ky.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Hy(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Hy(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Yy=function t(e){function r(t){return new Ky(t,e)}return r.tension=function(e){return t(+e)},r}(0);function Xy(t,e){this._context=t,this._k=(1-e)/6}Xy.prototype={areaStart:Ny,areaEnd:Ny,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Hy(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Jy=function t(e){function r(t){return new Xy(t,e)}return r.tension=function(e){return t(+e)},r}(0);function Qy(t,e){this._context=t,this._k=(1-e)/6}Qy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Hy(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const tv=function t(e){function r(t){return new Qy(t,e)}return r.tension=function(e){return t(+e)},r}(0);function ev(t,e,r){var n=t._x1,o=t._y1,i=t._x2,a=t._y2;if(t._l01_a>om){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,o=(o*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>om){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);i=(i*c+t._x1*t._l23_2a-e*t._l12_2a)/l,a=(a*c+t._y1*t._l23_2a-r*t._l12_2a)/l}t._context.bezierCurveTo(n,o,i,a,t._x2,t._y2)}function rv(t,e){this._context=t,this._alpha=e}rv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:ev(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const nv=function t(e){function r(t){return e?new rv(t,e):new Ky(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function ov(t,e){this._context=t,this._alpha=e}ov.prototype={areaStart:Ny,areaEnd:Ny,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ev(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const iv=function t(e){function r(t){return e?new ov(t,e):new Xy(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function av(t,e){this._context=t,this._alpha=e}av.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ev(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const sv=function t(e){function r(t){return e?new av(t,e):new Qy(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function uv(t){this._context=t}function cv(t){return new uv(t)}function lv(t){return t<0?-1:1}function pv(t,e,r){var n=t._x1-t._x0,o=e-t._x1,i=(t._y1-t._y0)/(n||o<0&&-0),a=(r-t._y1)/(o||n<0&&-0),s=(i*o+a*n)/(n+o);return(lv(i)+lv(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function fv(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function hv(t,e,r){var n=t._x0,o=t._y0,i=t._x1,a=t._y1,s=(i-n)/3;t._context.bezierCurveTo(n+s,o+s*e,i-s,a-s*r,i,a)}function dv(t){this._context=t}function mv(t){this._context=new yv(t)}function yv(t){this._context=t}function vv(t){return new dv(t)}
vendor: 6,757 bytes, line 1
1function gv(t){return new mv(t)}function bv(t){this._context=t}function _v(t){var e,r,n=t.length-1,o=new Array(n),i=new Array(n),a=new Array(n);for(o[0]=0,i[0]=2,a[0]=t[0]+2*t[1],e=1;e<n-1;++e)o[e]=1,i[e]=4,a[e]=4*t[e]+2*t[e+1];for(o[n-1]=2,i[n-1]=7,a[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=o[e]/i[e-1],i[e]-=r,a[e]-=r*a[e-1];for(o[n-1]=a[n-1]/i[n-1],e=n-2;e>=0;--e)o[e]=(a[e]-o[e+1])/i[e];for(i[n-1]=(t[n]+o[n-1])/2,e=0;e<n-1;++e)i[e]=2*t[e+1]-o[e+1];return[o,i]}function xv(t){return new bv(t)}function wv(t,e){this._context=t,this._t=e}function Ov(t){return new wv(t,.5)}function Ev(t){return new wv(t,0)}function Sv(t){return new wv(t,1)}function Pv(t,e){if((o=t.length)>1)for(var r,n,o,i=1,a=t[e[0]],s=a.length;i<o;++i)for(n=a,a=t[e[i]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function jv(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function Av(t,e){return t[e]}function Cv(t){const e=[];return e.key=t,e}function Tv(){var t=Yd([]),e=jv,r=Pv,n=Av;function o(o){var i,a,s=Array.from(t.apply(this,arguments),Cv),u=s.length,c=-1;for(const t of o)for(i=0,++c;i<u;++i)(s[i][c]=[0,+n(t,s[i].key,c,o)]).data=t;for(i=0,a=Tm(e(s));i<u;++i)s[a[i]].index=i;return r(s,a),s}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:Yd(Array.from(e)),o):t},o.value=function(t){return arguments.length?(n="function"==typeof t?t:Yd(+t),o):n},o.order=function(t){return arguments.length?(e=null==t?jv:"function"==typeof t?t:Yd(Array.from(t)),o):e},o.offset=function(t){return arguments.length?(r=null==t?Pv:t,o):r},o}function kv(t,e){if((n=t.length)>0){for(var r,n,o,i=0,a=t[0].length;i<a;++i){for(o=r=0;r<n;++r)o+=t[r][i][1]||0;if(o)for(r=0;r<n;++r)t[r][i][1]/=o}Pv(t,e)}}function Mv(t,e){if((s=t.length)>0)for(var r,n,o,i,a,s,u=0,c=t[e[0]].length;u<c;++u)for(i=a=0,r=0;r<s;++r)(o=(n=t[e[r]][u])[1]-n[0])>0?(n[0]=i,n[1]=i+=o):o<0?(n[1]=a,n[0]=a+=o):(n[0]=0,n[1]=o)}function Iv(t,e){if((r=t.length)>0){for(var r,n=0,o=t[e[0]],i=o.length;n<i;++n){for(var a=0,s=0;a<r;++a)s+=t[a][n][1]||0;o[n][1]+=o[n][0]=-s/2}Pv(t,e)}}function Dv(t,e){if((o=t.length)>0&&(n=(r=t[e[0]]).length)>0){for(var r,n,o,i=0,a=1;a<n;++a){for(var s=0,u=0,c=0;s<o;++s){for(var l=t[e[s]],p=l[a][1]||0,f=(p-(l[a-1][1]||0))/2,h=0;h<s;++h){var d=t[e[h]];f+=(d[a][1]||0)-(d[a-1][1]||0)}u+=p,c+=f*p}r[a-1][1]+=r[a-1][0]=i,u&&(i-=c/u)}r[a-1][1]+=r[a-1][0]=i,Pv(t,e)}}function Lv(t){var e=t.map(Rv);return jv(t).sort((function(t,r){return e[t]-e[r]}))}function Rv(t){for(var e,r=-1,n=0,o=t.length,i=-1/0;++r<o;)(e=+t[r][1])>i&&(i=e,n=r);return n}function zv(t){var e=t.map(Nv);return jv(t).sort((function(t,r){return e[t]-e[r]}))}function Nv(t){for(var e,r=0,n=-1,o=t.length;++n<o;)(e=+t[n][1])&&(r+=e);return r}function Fv(t){return zv(t).reverse()}function Bv(t){var e,r,n=t.length,o=t.map(Nv),i=Lv(t),a=0,s=0,u=[],c=[];for(e=0;e<n;++e)r=i[e],a<s?(a+=o[r],u.push(r)):(s+=o[r],c.push(r));return c.reverse().concat(u)}function Vv(t){return jv(t).reverse()}uv.prototype={areaStart:Ny,areaEnd:Ny,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},dv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:hv(this,this._t0,fv(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,hv(this,fv(this,r=pv(this,t,e)),r);break;default:hv(this,this._t0,r=pv(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(mv.prototype=Object.create(dv.prototype)).point=function(t,e){dv.prototype.point.call(this,e,t)},yv.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,o,i){this._context.bezierCurveTo(e,t,n,r,i,o)}},bv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=_v(t),o=_v(e),i=0,a=1;a<r;++i,++a)this._context.bezierCurveTo(n[0][i],o[0][i],n[1][i],o[1][i],t[a],e[a]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},wv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var Uv=function(t){return null!=(void 0!==t._y1?t._y1:t._y)&&null!==t._y0},qv=function(t){return function(e){return t.x(void 0!==e._x1?e._x1:e._x)}},$v=function(t){return function(e){return t.y(void 0!==e._y1?e._y1:e._y)}},Gv=function(t){return"curve".concat(function(t){return t&&t[0].toUpperCase()+t.slice(1)}(t))},Wv=function(t){var e=t.interpolation;if("function"==typeof e)return e;if("string"==typeof e){var r=t.polar,n=t.openCurve,o=(void 0===n?!r:n)?Gv(e):function(t){return"".concat(Gv(t),"Closed")}(e);return w[o]}return Vm},Zv=function(t){var e=t.polar,r=t.scale,n=t.horizontal;return e?Ym().defined(Uv).curve(Wv(t)).angle(function(t){return function(e){return-1*t.x(void 0!==e._x1?e._x1:e._x)+Math.PI/2}}(r)).radius($v(r)):$m().defined(Uv).curve(Wv(t)).x(n?$v(r):qv(r)).y(n?qv(r):$v(r))};function Hv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Kv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?Hv(Object(r),!0).forEach((function(e){Yv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Hv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Yv(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Xv=function(t){return null!=(void 0!==t._y1?t._y1:t._y)&&null!==t._y0},Jv=function(t){return function(e){return t.x(void 0!==e._x1?e._x1:e._x)}},Qv=function(t){return function(e){return t.y(void 0!==e._y1?e._y1:e._y)}},tg=function(t){return function(e){return t.y(e._y0)}},eg=function(t){t=function(t){var e=W(t.ariaLabel,t),r=W(t.desc,t),n=W(t.id,t),o=Z(E()({fill:"black"},t.style),t),i=W(t.tabIndex,t);return E()({},t,{ariaLabel:e,desc:r,id:n,style:o,tabIndex:i})}(t);var e=t,r=e.ariaLabel,n=e.role,o=e.shapeRendering,i=e.className,a=e.polar,s=e.origin,u=e.data,c=e.pathComponent,l=e.events,p=e.groupComponent,f=e.clipPath,h=e.id,d=e.style,m=e.desc,y=e.tabIndex,v=Ha(t),g=a&&s?"translate(".concat(s.x,", ").concat(s.y,")"):void 0,b=t.transform||g,_=d.stroke&&"none"!==d.stroke&&"transparent"!==d.stroke,x=function(t){var e=t.polar,r=t.scale,n=Wv(t);return e?Xm().defined(Xv).curve(n).angle(function(t){return function(e){return-1*t.x(void 0!==e._x1?e._x1:e._x)+Math.PI/2}}(r)).outerRadius(Qv(r)).innerRadius(tg(r)):function(t){var e=t.horizontal,r=t.scale,n=Wv(t);return e?Gm().defined(Xv).curve(n).x0(tg(r)).x1(Qv(r)).y(Jv(r)):Gm().defined(Xv).curve(n).x(Jv(r)).y1(Qv(r)).y0(tg(r))}(t)}(t),w=_&&Zv(t),O=d.stroke?"none":d.fill,S=Kv(Kv({"aria-label":r,className:i,role:n,shapeRendering:o,transform:b},l),{},{clipPath:f,tabIndex:y}),j=P().cloneElement(c,E()({key:"".concat(h,"-area"),style:E()({},d,{stroke:O}),d:x(u),desc:m,tabIndex:y},S,v)),A=_?P().cloneElement(c,E()({key:"".concat(h,"-area-stroke"),style:E()({},d,{fill:"none"}),d:w(u)},S)):null;return _?P().cloneElement(p,v,[j,A]):j};function rg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ng(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?rg(Object(r),!0).forEach((function(e){og(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function og(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ig(t,e){return ig=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ig(t,e)}function ag(t){return ag=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ag(t)}eg.propTypes=Kv(Kv({},Qi.primitiveProps),{},{groupComponent:A().element,interpolation:A().oneOfType([A().string,A().func]),pathComponent:A().element}),eg.defaultProps={groupComponent:P().createElement("g",null),pathComponent:P().createElement(ja,null),role:"presentation",shapeRendering:"auto"};var sg={width:450,height:300,padding:50,interpolation:"linear"},ug=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ig(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=ag(n);if(o){var r=ag(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,(r=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=a.animationWhitelist,e=a.role,r=tt(this.props,sg,e);if(this.shouldAnimate())return this.animateComponent(r,t);var n=this.renderContinuousData(r),o=r.standalone?this.renderContainer(r.containerComponent,n):n;return Ka(o,r)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(P().Component);ug.animationWhitelist=["data","domain","height","padding","style","width"],ug.propT
1ypes=ng(ng(ng({},Qi.baseProps),Qi.dataProps),{},{interpolation:A().oneOfType([A().oneOf(["basis","cardinal","catmullRom","linear","monotoneX","monotoneY","natural","step","stepAfter","stepBefore"]),A().func]),label:qi(A().string,"Use `labels` instead for individual data labels")}),ug.defaultProps={containerComponent:P().createElement(Au,null),dataComponent:P().createElement(eg,null),groupComponent:P().createElement(al,null),labelComponent:P().createElement(wc,{renderInPortal:!0}),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Bc.grayscale},ug.displayName="VictoryArea",ug.role="area",ug.continuous=!0,ug.defaultTransitions={onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}},ug.defaultPolarTransitions={onLoad:{duration:2e3,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(t){return{_y:t._y,_y1:t._y1,_y0:t._y0}}},onExit:{duration:500,before:function(t,e,r){var n=function(t){return(0===e?r[e+1]:r[e-1])[t]};return{_x:n("_x"),_y:n("_y"),_y0:n("_y0")}}},onEnter:{duration:500,before:function(t,e,r){var n=function(t){return(0===e?r[e+1]:r[e-1])[t]};return{_x:n("_x"),_y:n("_y"),_y0:n("_y0")}},after:function(t){return{_x:t._x,_y:t._y,_y1:t._y1,_y0:t._y0}}}},ug.getDomain=Dp,ug.getData=lp,ug.getBaseProps=function(t){return function(t,e){var r=tt(t,e,"area"),n=t=E()({},r,function(t){var e=t.polar,r=$(t,"area"),n=G(t.style,r),o={x:J(t,"x"),y:J(t,"y")},i={x:Dp(t,"x"),y:Dp(t,"y")},a={x:Mi(t,"x").domain(i.x).range(t.horizontal?o.y:o.x),y:Mi(t,"y").domain(i.y).range(t.horizontal?o.x:o.y)},s=e?t.origin||X(t):void 0,u=function(t,e){var r=lp(t);r.length<2&&(r=[]);var n=function(t){var r="log"===zi(e[t])?1/Number.MAX_SAFE_INTEGER:0,n=e[t].domain(),o=Ot(n),i=wt(n),a=r;return o<0&&i<=0?a=i:o>=0&&i>0&&(a=o),vt(n)?new Date(a):a};return r.map((function(t){var e=void 0!==t._y1?t._y1:t._y,r=void 0!==t._y0?t._y0:n("y"),o=void 0!==t._x1?t._x1:t._x,i=void 0!==t._x0?t._x0:n("x");return E()({},t,{_y0:r,_y1:e,_x0:i,_x1:o})}))}(t,a);return{style:n,data:u,scale:a,domain:i,origin:s}}(r)),o=n.data,i=n.domain,a=n.events,s=n.groupComponent,u=n.height,c=n.horizontal,l=n.interpolation,p=n.origin,f=n.padding,h=n.polar,d=n.scale,m=n.sharedEvents,y=n.standalone,v=n.style,g=n.theme,b=n.width,_=n.labels,x=n.name,w=n.disableInlineStyles,O={parent:{style:v.parent,width:b,height:u,scale:d,data:o,domain:i,standalone:y,theme:g,polar:h,origin:p,padding:f,name:x,horizontal:c},all:{data:{horizontal:c,polar:h,origin:p,scale:d,data:o,interpolation:l,groupComponent:s,style:w?{}:v.data,disableInlineStyles:w}}};return o.reduce((function(e,r,n){return(null!=Lu(t,r,n)||_&&(a||m))&&(e[ll()(r.eventKey)?n:r.eventKey]={labels:Bu(t,n)}),e}),O)}(t,sg)},ug.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var cg=ql(ug,{components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]}),lg=function(t,e){var r=function(r){var n="log"===zi(t.scale[r])?1/Number.MAX_SAFE_INTEGER:0,o=Ot(t.domain[r]),i=wt(t.domain[r]);return o<0&&i<=0?n=i:o>=0&&i>0&&(n=o),e["_".concat(r)]instanceof Date?new Date(n):n},n=void 0!==e._y0?e._y0:r("y"),o=void 0!==e._x0?e._x0:r("x");return V(t,E()({},e,{_y0:n,_x0:o}))},pg=function(t,e){var r=e.scale,n=e.data,o=e.defaultBarWidth,i=e.style;if(t)return W(t,e);if(i.width)return i.width;var a=r.x.range(),s=Math.abs(a[1]-a[0]),u=n.length+2,c=(e.barRatio||.5)*(n.length<2?o:s/u);return Math.max(1,c)},fg=function(t,e){var r={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0};return t?lt()(t)?function(t,e){var r={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},n=function(n,o){ll()(t[n])?ll()(t[o])||(r[n]=W(t[o],e)):r[n]=W(t[n],e)};return n("topLeft","top"),n("topRight","top"),n("bottomLeft","bottom"),n("bottomRight","bottom"),r}(t,e):(r.topLeft=W(t,e),r.topRight=W(t,e),r):r},hg=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;if(e.disableInlineStyles)return{};var r={fill:"black",stroke:t.fill||"black"};return Z(E()(r,t),e)},dg=function(t,e){return{x:t,y:e,distance:function(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))},add:function(t){return dg(this.x+t.x,this.y+t.y)},subtract:function(t){return dg(this.x-t.x,this.y-t.y)},scalarMult:function(t){return dg(this.x*t,this.y*t)},scalarDivide:function(t){if(0===t)throw new Error("Division by 0 error");return dg(this.x/t,this.y/t)},equals:function(t){return this.x===t.x&&this.y===t.y}}},mg=function(t,e){return{center:t,radius:e,hasIntersection:function(t){var e=this.center,r=t.center,n=this.radius,o=t.radius,i=e.distance(r);return!(i>n+o||i<Math.abs(n-o))},equals:function(t){var e=this.center,r=t.center;return this.radius===t.radius&&e.equals(r)},intersection:function(t){var e=this.center,r=t.center,n=this.radius,o=t.radius,i=e.distance(r);if(!this.hasIntersection(t)||this.equals(t))return[];var a=(Math.pow(n,2)-Math.pow(o,2)+Math.pow(i,2))/(2*i),s=Math.sqrt(Math.pow(n,2)-Math.pow(a,2)),u=e.add(r.subtract(e).scalarMult(a).scalarDivide(i)),c=e.x,l=e.y,p=r.x,f=r.y,h=u.x,d=u.y,m=[dg(h-s*(f-l)/i,d+s*(p-c)/i),dg(h+s*(f-l)/i,d-s*(p-c)/i)];return m.sort((function(t,e){return t.x-e.x})),m},solveX:function(t){var e=Math.sqrt(Math.pow(this.radius,2)-Math.pow(t-this.center.y,2));return[this.center.x-e,this.center.x+e]},solveY:function(t){var e=Math.sqrt(Math.pow(this.radius,2)-Math.pow(t-this.center.x,2));return[this.center.y-e,this.center.y+e]}}};function yg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function vg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?yg(Object(r),!0).forEach((function(e){gg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function gg(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bg(t){return function(t){if(Array.isArray(t))return _g(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return _g(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_g(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _g(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var xg=function(t,e){var r=t.x,n=t.x0,o=t.y,i=t.y0,a=t.horizontal,s=t.alignment||"middle",u="middle"===s?e/2:e,c=a?-1:1;return a?{x0:n,x1:r,y0:"start"===s?o:o-c*u,y1:"end"===s?o:o+c*u}:{x0:"start"===s?r:r-c*u,x1:"end"===s?r:r+c*u,y0:i,y1:o}},wg=function(t,e){var r=t.data,n=t.scale,o=void 0===r[e]._x1?"_x":"_x1";return n.x(r[e][o])},Og=function(t){return-1*t+Math.PI/2},Eg=function(t,e,r){var n="".concat(e.topLeft," ").concat(e.topLeft," ").concat(r),o="".concat(e.topRight," ").concat(e.topRight," ").concat(r),i="".concat(e.bottomLeft," ").concat(e.bottomLeft," ").concat(r),a="".concat(e.bottomRight," ").concat(e.bottomRight," ").concat(r),s=["M","A ".concat(i,","),"L","A ".concat(n,","),"L","A ".concat(o,","),"L","A ".concat(a,",")].reduce((function(e,r,n){return e+"".concat(r," ").concat(t[n].x,", ").concat(t[n].y," \n")}),"");return"".concat(s," z")},Sg=function(t,e,r){return t.getPath?function(t,e){return(0,t.getPath)(vg(vg({},t),xg(t,e)))}(t,e):t.horizontal?function(t,e,r){var n=xg(t,e),o=n.x0<n.x1?1:-1,i={topRight:o>0?r.topLeft:r.bottomLeft,bottomRight:o>0?r.topRight:r.bottomRight,bottomLeft:o>0?r.bottomRight:r.topRight,topLeft:o>0?r.bottomLeft:r.topLeft},a=function(t,e,r){var n=t.y0,o=t.y1,i=t.x0<t.x1?t.x0:t.x1,a=t.x0<t.x1?t.x1:t.x0,s=function(t){var s="top"===t,u=s?-1:1,c=s?o:n,l={x:i,y:c-u*r["".concat(t,"Left")]},p={x:i+r["".concat(t,"Left")],y:c},f={x:a-r["".concat(t,"Right")],y:c},h={x:a,y:c-u*r["".concat(t,"Right")]};if(p.x>f.x){var d=dg(i+r["".concat(t,"Left")],c-u*r["".concat(t,"Left")]),m=mg(d,r["".concat(t,"Left")]),y=dg(a-r["".concat(t,"Right")],c-u*r["".concat(t,"Right")]),v=mg(y,r["".concat(t,"Right")]),g=m.intersection(v);if(g.length>0){var b=g[e>0?1:0];p={x:b.x,y:b.y},f={x:b.x,y:b.y}}else if(r["".concat(t,"Right")]>r["".concat(t,"Left")]){var _=v.solveY(i)[s?0:1];l={x:i,y:_},p={x:i,y:_},f={x:i,y:_}}else{var x=m.solveY(a)[s?0:1];h={x:a,y:x},f={x:a,y:x},p={x:a,y:x}}}return[l,p,f,h]},u=s("top"),c=s("bottom");return[c[1],c[0]].concat(bg(u),[c[3],c[2]])}(n,o,i);return Eg(a,i,"0 0 1")}(t,e,r):function(t,e,r){var n=xg(t,e),o=n.y0>n.y1?1:-1,i=o>0?"0 0 1":"0 0 0",a=function(t,e,r){var n=t.x0,o=t.x1,i=t.y0,a=t.y1,s=function(t){var s="Left"===t,u=s?1:-1,c=s?n:o,l={x:c+u*r["bottom".concat(t)],y:i},p={x:c,y:i-e*r["bottom".concat(t)]},f={x:c,y:a+e*r["top".concat(t)]},h={x:c+u*r["top".concat(t)],y:a};if(1===e?i-r["bottom".concat(t)]<a+r["top".concat(t)]:i+r["bottom".concat(t)]>a-r["top".concat(t)]){var d=dg(c+u*r["top".concat(t)],a+e*r["top".concat(t)]),m=mg(d,r["top".concat(t)]),y=dg(c+u*r["bottom".concat(t)],i-e*r["bottom".concat(t)]),v=mg(y,r["bottom".concat(t)]),g=m.intersection(v);if(g.length>0){var b=g[s?0:1];p={x:b.x,y:b.y},f={x:b.x,y:b.y}}else if(r["top".concat(t)]>r["bottom".concat(t)]){var _=m.solveX(i)[s?0:1];l={x:_,y:i},p={x:_,y:i},f={x:_,y:i}}else{var x=v.solveX(a)[s?0:1];p={x:x,y:a},f={x:x,y:a},h={x:x,y:a}}}var w=[l,p,f,h];return s?w:w.reverse()};return s("Left").concat(s("Right"))}(n,o,r);return Eg(a,r,i)}(t,e,r)},Pg=function(t,e){return function(t,e){var r,n,o=t.datum,i=t.scale,a=t.index,s=t.alignment,u=t.style,c=i.y(o._y0||0),l=i.y(void 0!==o._y1?o._y1:o._y),p=i.x(void 0!==o._x1?o._x1:o._x);if(u.width){var f=function(t,e){var r=t.scale,n=r.y.range(),o=Math.max.apply(Math,bg(n)),i=Math.abs(r.x.range()[1]-r.x.range()[0]);return e/(2*Math.PI*o)*i}(t,u.width),h="middle"===s?f/2:f;r="start"===s?p:p-h,n="end"===s?p:p+h}else r=function(t,e){var r=t.data,n=t.scale,o=t.alignment,i=wg(t,e),a=Math.abs(n.x.range()[1]-n.x.range()[0]),s=0===e?wg(t,r.length-1)-2*Math.PI:wg(t,e-1);return 0===e&&a<2*Math.PI?n.x.range()[0]:"start"===o||"end"===o?"start"===o?s:i:(i+s)/2}(t,a),n=function(t,e){var r=t.data,n=t.scale,o=t.alignment,i=wg(t,e),a=Math.abs(n.x.range()[1]-n.x.range()[0]),s=n.x.range()[1]===2*Math.PI?wg(t,0)+2*Math.PI:n.x.range()[1],u=e===r.length-1?wg(t,0)+2*Math.PI:wg(t,e+1);return e===r.length-1&&a<2*Math.PI?s:"start"===o||"end"===o?"start"===o?i:u:(i+u)/2}(t,a);var d=function(t){return wm().innerRadius(c).outerRadius(l).startAngle(Og(r)).endAngle(Og(n)).cornerRadius(e[t])()},m=function(t){var e=d("".concat(t,"Right")),r=e.match(/[A-Z]/g),n=e.split(/[A-Z]/).slice(1),o=r.indexOf("L"),i=d("".concat(t,"Left")),a=i.match(/[A-Z]/g),s=i.split(/[A-Z]/).slice(1),u=a.indexOf("L");return{rightMoves:r,rightCoords:n,rightMiddle:o,leftMoves:a,leftCoords:s,leftMiddle:u}},y=function(){var t,o,i=e.topRight,a=e.topLeft,s=l*Math.abs(n-r),u=m("top"),c=u.rightMoves,p=u.rightCoords,f=u.rightMiddle,h=u.leftMoves,d=u.leftCoords,y=u.leftMiddle;if(i===a||s<2*i+2*a)t=i>a?c:h,o=i>a?p:d;else{var v,g=function(t){return t<3},b=a>i&&g(f)?1:2;if(i>a){var _=g(f)?y:y-2;v=g(y)?y-1:_}else{var x=g(y)?1:2;v=g(f)?x:y-2}t=[].concat(bg(c.slice(0,b)),bg(h.slice(v))),o=[].concat(bg(p.slice(0,b)),bg(d.slice(v)))}var w=t.indexOf("L"),O=t.slice(0,w),E=o.slice(0,w);return O.map((function(t,e){return{command:t,coords:E[e].split(",")}}))}(),v=function(){var t,o,i=e.bottomRight,a=e.bottomLeft,s=c*Math.abs(n-r),u=m("bottom"),l=u.rightMoves,p=u.rightCoords,f=u.rightMiddle,h=u.leftMoves,d=u.leftCoords,y=u.leftMiddle;if(i===a||s<2*i+2*a)t=i>a?l:h,o=i>a?p:d;else{var v=function(t,e){return t.length-e<4},g=(i>a?v(l,f):v(h,y))?-1:-3;t=[].concat(bg(h.slice(0,y+2)),bg(l.slice(g))),o=[].concat(bg(d.slice(0,y+2)),bg(p.slice(g)))}var b=t.indexOf("L"),_=t.slice(b,-1),x=o.slice(b,-1);return _.map((function(t,e){return{command:t,coords:x[e].split(",")}}))}(),g=[].concat(bg(y),bg(v)).reduce((function(t,e){return t+"".concat(e.command," ").concat(e.coords.join())}),"");return"".concat(g," z")}(t,e)};function jg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ag(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?jg(Object(r),!0).forEach((function(e){Cg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Cg(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Tg=function(t){t=function(t){var e=hg(t.style,t),r=pg(t.barWidth,E()({},t,{style:e})),n=fg(t.cornerRadius,E()({},t,{style:e,barWidth:r})),o=W(t.ariaLabel,t),i=W(t.desc,t),a=W(t.id,t),s=W(t.tabIndex,t);return E()({},t,{ariaLabel:o,style:e,barWidth:r,cornerRadius:n,desc:i,id:a,tabIndex:s})}(t);var e=t,r=e.polar,n=e.origin,o=e.style,i=e.barWidth,a=e.cornerRadius,s=r?Pg(t,a):Sg(t,i,a),u=r&&n?"translate(".concat(n.x,", ").concat(n.y,")"):void 0;return P().cloneElement(t.pathComponent,Ag(Ag({},t.events),{},{"aria-label":t.ariaLabel,style:o,d:s,className:t.className,clipPath:t.clipPath,desc:t.desc,index:t.index,role:t.role,shapeRendering:t.shapeRendering,transform:t.transform||u,tabIndex:t.tabIndex}))};Tg.propTypes=Ag(Ag({},Qi.primitiveProps),{},{alignment:A().oneOf(["start","middle","end"]),barRatio:A().number,barWidth:A().oneOfType([A().number,A().func]),cornerRadius:A().oneOfType([A().number,A().func,A().shape({top:A().oneOfType([A().number,A().func]),topLeft:A().oneOfType([A().number,A().func]),topRight:A().oneOfType([A().number,A().func]),bottom:A().oneOfType([A().number,A().func]),bottomLeft:A().oneOfType([A().number,A().func]),bottomRight:A().oneOfType([A().number,A().func])})]),datum:A().object,getPath:A().func,horizontal:A().bool,pathComponent:A().element,width:A().number,x:A().number,y:A().number,y0:A().number}),Tg.defaultProps={defaultBarWidth:8,pathComponent:P().createElement(ja,null),role:"presentation",shapeRendering:"auto"};const kg=Tg;function Mg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ig(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Mg(Object(r),!0).forEach((function(e){Dg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Dg(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Lg(t,e){return Lg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Lg(t,e)}function Rg(t){return Rg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Rg(t)}var zg={width:450,height:300,padding:50},Ng=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Lg(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Rg(n);if(o){var r=Rg(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,(r=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=a.animationWhitelist,e=a.role,r=tt(this.props,zg,e);if(this.shouldAnimate())return this.animateComponent(r,t);var n=this.renderData(r),o=r.standalone?this.renderContainer(r.containerComponent,n):n;return Ka(o,r)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(P().Component);Ng.animationWhitelist=["data","domain","height","padding","style","width"],Ng.displayName="VictoryBar",Ng.role="bar",Ng.defaultTransitions={onLoad:{duration:2e3,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(t){return{_y:t._y,_y1:t._y1,_y0:t._y0}}},onExit:{duration:500,before:function(){return{_y:0,yOffset:0}}},onEnter:{duration:500,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(t){return{_y:t._y,_y1:t._y1,_y0:t._y0}}}},Ng.propTypes=Ig(Ig(Ig({},Qi.baseProps),Qi.dataProps),{},{alignment:A().oneOf(["start","middle","end"]),barRatio:A().number,barWidth:A().oneOfType([A().number,A().func]),cornerRadius:A().oneOfType([A().number,A().func,A().shape({top:A().oneOfType([A().number,A().func]),topLeft:A().oneOfType([A().number,A().func]),topRight:A().oneOfType([A().number,A().func]),bottom:A().oneOfType([A().number,A().func]),bottomLeft:A().oneOfType([A().number,A().func]),bottomRight:A().oneOfType([A().number,A().func])})]),getPath:A().func,horizontal:A().bool}),Ng.defaultProps={containerComponent:P().createElement(Au,null),data:[{x:1,y:1},{x:2,y:2},{x:3,y:3},{x:4,y:4}],dataComponent:P().createElement(kg,null),groupComponent:P().createElement("g",{role:"presentation"}),labelComponent:P().createElement(wc,null),samples:50,sortOrder:"ascending",standalone:!0,theme:Bc.grayscale},Ng.getDomain=Dp,Ng.getData=lp,Ng.getBaseProps=function(t){return function(t,e){var r=tt(t,e,"bar");t=E()({},r,function(t){var e=t.polar,r=$(t,"bar"),n=t.disableInlineStyles?{}:G(t.style,r),o=t.range||{x:J(t,"x"),y:J(t,"y")},i={x:Dp(t,"x"),y:Dp(t,"y")},a={x:Mi(t,"x").domain(i.x).range(t.horizontal?o.y:o.x),y:Mi(t,"y").domain(i.y).range(t.horizontal?o.x:o.y)},s=e?t.origin||X(t):void 0,u=lp(t);return{style:n,data:u=op(u,i,0),scale:a,domain:i,origin:s}}(r));var n=t,o=n.alignment,i=n.barRatio,a=n.cornerRadius,s=n.data,u=n.disableInlineStyles,c=n.domain,l=n.events,p=n.height,f=n.horizontal,h=n.origin,d=n.padding,m=n.polar,y=n.scale,v=n.sharedEvents,g=n.standalone,b=n.style,_=n.theme,x=n.width,w=n.labels,O=n.name,S=n.barWidth,P=n.getPath,j={parent:{horizontal:f,domain:c,scale:y,width:x,height:p,data:s,standalone:g,name:O,theme:_,polar:m,origin:h,padding:d,style:b.parent}};
1return s.reduce((function(e,r,n){var c=ll()(r.eventKey)?n:r.eventKey,d=lg(t,r),g=d.x,_=d.y,O=d.y0,E=d.x0,j={alignment:o,barRatio:i,barWidth:S,cornerRadius:a,data:s,datum:r,disableInlineStyles:u,getPath:P,horizontal:f,index:n,polar:m,origin:h,scale:y,style:b.data,width:x,height:p,x:g,y:_,y0:O,x0:E};return e[c]={data:j},(null!=Lu(t,r,n)||w&&(l||v))&&(e[c].labels=Bu(t,n)),e}),j)}(t,zg)},Ng.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];const Fg=ql(Ng);function Bg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Vg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Bg(Object(r),!0).forEach((function(e){Ug(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Bg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ug(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var qg=function(t){var e=t=function(t){var e=Z(E()({stroke:"black"},t.style),t),r=function(t,e){var r=e.style;return t?R()(t)?W(t,e):t:r.width?r.width:t}(t.candleWidth,E()({},t,{style:e})),n=W(t.ariaLabel,t),o=W(t.desc,t),i=W(t.id,t),a=W(t.tabIndex,t);return E()({},t,{ariaLabel:n,style:e,candleWidth:r,desc:o,id:i,tabIndex:a})}(t),r=e.ariaLabel,n=e.events,o=e.groupComponent,i=e.clipPath,a=e.rectComponent,s=e.lineComponent,u=e.role,c=e.shapeRendering,l=e.className,p=e.wickStrokeWidth,f=e.transform,h=e.style,d=e.desc,m=e.tabIndex,y=N()({strokeWidth:p},h),v=Vg(Vg({},n),{},{"aria-label":r,role:u,shapeRendering:c,className:l,transform:f,clipPath:i,desc:d,tabIndex:m}),g=E()(function(t,e){var r=t.id,n=t.x,o=t.close,i=t.open,a=t.horizontal,s=t.candleWidth,u=Math.abs(o-i);return{key:"".concat(r,"-candle"),style:F(e,["width"]),x:a?Math.min(i,o):n-s/2,y:a?n-s/2:Math.min(i,o),width:a?u:s,height:a?s:u}}(t,h),v),b=E()(function(t,e){var r=t.horizontal,n=t.high,o=t.open,i=t.close,a=t.x,s=t.id;return{key:"".concat(s,"-highWick"),style:F(e,["width"]),x1:r?n:a,x2:r?Math.max(o,i):a,y1:r?a:n,y2:r?a:Math.min(o,i)}}(t,y),v),_=E()(function(t,e){var r=t.horizontal,n=t.low,o=t.open,i=t.close,a=t.x,s=t.id;return{key:"".concat(s,"-lowWick"),style:F(e,["width"]),x1:r?Math.min(o,i):a,x2:r?n:a,y1:r?a:Math.max(o,i),y2:r?a:n}}(t,y),v);return P().cloneElement(o,{},[P().cloneElement(a,g),P().cloneElement(s,b),P().cloneElement(s,_)])};qg.propTypes=Vg(Vg({},Qi.primitiveProps),{},{candleRatio:A().number,candleWidth:A().oneOfType([A().number,A().func]),close:A().number,datum:A().object,groupComponent:A().element,high:A().number,lineComponent:A().element,low:A().number,open:A().number,rectComponent:A().element,wickStrokeWidth:A().number,width:A().number,x:A().number}),qg.defaultProps={groupComponent:P().createElement("g",null),lineComponent:P().createElement(va,null),rectComponent:P().createElement(ra,null),role:"presentation",shapeRendering:"auto"};const $g=qg;var Gg=["close","open","high","low"],Wg=function(t){return sp(t.data,t,["x","high","low","close","open"])},Zg=function(t,e,r){var n="x"===e?"_x":{min:"_low",max:"_high"}[r],o="min"===r?1/0:-1/0;return t.reduce((function(t,e){var o=e[n];return t<o&&"min"===r||t>o&&"max"===r?t:o}),o)},Hg=function(t,e){var r=Rp(t,e),n=Lp(t,e),o=Wg(t);return o.length<1?void 0!==r&&void 0!==n?Mp(r,n):void 0:Mp(void 0!==r?r:Zg(o,e,"min"),void 0!==n?n:Zg(o,e,"max"))},Kg=function(t,e){return jp(Hg)(t,e)},Yg=function(t,e,r){var n=t["".concat(r,"LabelComponent")],o=e["".concat(r,"Labels")]||e.labels;if(!q(n))return o;var i=t.theme&&t.theme.tooltip||{};return N()({},i.style,o)},Xg=function(t,e,r,n){var o=t.x,i=t.high,a=t.low,s=t.open,u=t.close,c=t.index,l=t.scale,p=t.datum,f=t.data,h=t.horizontal,d=t.candleWidth,m=t.labelOrientation,y=t.theme,v=t["".concat(n,"LabelComponent")]||t.labelComponent,g=h?"top":"right",b=v.props&&v.props.orientation||function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"labels";return lt()(t)?t[e]:t}
1(m,n)||g,_={high:i,low:a,open:s,close:u},x=r[n?"".concat(n,"Labels"):"labels"]||r.labels,w=function(t){var e=t.positions,r=t.labelStyle,n=t.x,o=t.horizontal,i=t.computedType,a=t.candleWidth,s=t.orientation;e.labels=(e.open+e.close)/2;var u="left"===s?-1:1,c="top"===s?-1:1;if(o){var l=n,p=e[i],f="top"===s||"bottom"===s?c*(a/2)+c*(r.padding||0):0;return{yValue:l,xValue:p,dx:"top"===s||"bottom"===s?0:u*(r.padding||1),dy:f}}var h=n,d=e[i],m="top"===s||"bottom"===s?c*(r.padding||1):0;return{yValue:d,xValue:h,dx:"top"===s||"bottom"===s?0:u*(a/2)+u*(r.padding||0),dy:m}}({positions:_,labelStyle:x,x:o,horizontal:h,computedType:n||"labels",candleWidth:d,orientation:b}),O={style:x,y:w.yValue,x:w.xValue,dx:w.dx,dy:w.dy,text:e,index:c,scale:l,datum:p,data:f,orientation:b,textAnchor:x.textAnchor||{left:"end",right:"start",top:"middle",bottom:"middle"}[b],verticalAnchor:x.verticalAnchor||{top:"end",bottom:"start",left:"middle",right:"middle"}[b],angle:x.angle,horizontal:h};if(!q(v))return O;var E=y&&y.tooltip||{};return N()({},O,F(E,["style"]))};function Jg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Qg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jg(Object(r),!0).forEach((function(e){tb(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function tb(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function eb(t){return function(t){if(Array.isArray(t))return rb(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return rb(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?rb(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rb(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function nb(t,e){return nb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},nb(t,e)}function ob(t){return ob=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ob(t)}var ib={width:450,height:300,padding:50,candleColors:{positive:"#ffffff",negative:"#252525"}},ab=[{x:new Date(2016,6,1),open:5,close:10,high:15,low:0},{x:new Date(2016,6,2),open:10,close:15,high:20,low:5},{x:new Date(2016,6,3),open:15,close:20,high:25,low:10},{x:new Date(2016,6,4),open:20,close:25,high:30,low:15},{x:new Date(2016,6,5),open:25,close:30,high:35,low:20},{x:new Date(2016,6,6),open:30,close:35,high:40,low:25},{x:new Date(2016,6,7),open:35,close:40,high:45,low:30},{x:new Date(2016,6,8),open:40,close:45,high:50,low:35}],sb=function(t){return!ll()(t._x)&&!ll()(t._y)},ub=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&nb(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=ob(n);if(o){var r=ob(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}
1return e=a,r=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"shouldRenderDatum",value:function(t){return!(ll()(t._x)||ll()(t._high)||ll()(t._low)||ll()(t._close)||ll()(t._open))}},{key:"renderCandleData",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sb,n=t.dataComponent,o=t.labelComponent,i=t.groupComponent,a=this.dataKeys.reduce((function(t,o,i){var a=e.getComponentProps(n,"data",i);return r(a.datum)&&t.push(P().cloneElement(n,a)),t}),[]),s=Op()(["close","open","low","high"].map((function(r){return e.dataKeys.map((function(n,o){var i="".concat(r,"Labels"),a=t["".concat(r,"LabelComponent")],s=e.getComponentProps(a,i,o);if(void 0!==s.text&&null!==s.text)return P().cloneElement(a,s)})).filter(Boolean)}))),u=this.dataKeys.map((function(t,r){var n=e.getComponentProps(o,"labels",r);if(void 0!==n.text&&null!==n.text)return P().cloneElement(o,n)})).filter(Boolean),c=[].concat(eb(a),eb(s),eb(u));return this.renderContainer(i,c)}},{key:"render",value:function(){var t=a.animationWhitelist,e=a.role,r=tt(this.props,ib,e);if(this.shouldAnimate())return this.animateComponent(r,t);var n=this.renderCandleData(r,this.shouldRenderDatum),o=r.standalone?this.renderContainer(r.containerComponent,n):n;return Ka(o,r)}}],r&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(P().Component);ub.animationWhitelist=["data","domain","height","padding","samples","size","style","width"],ub.displayName="VictoryCandlestick",ub.role="candlestick",ub.defaultTransitions={onLoad:{duration:2e3,before:function(){return{opacity:0}
1},after:function(t){return t}},onExit:{duration:600,before:function(){return{opacity:0}}},onEnter:{duration:600,before:function(){return{opacity:0}},after:function(t){return t}}},ub.propTypes=Qg(Qg(Qg({},Qi.baseProps),Qi.dataProps),{},{candleColors:A().shape({positive:A().string,negative:A().string}),candleRatio:A().number,candleWidth:A().oneOfType([A().func,A().number]),close:A().oneOfType([A().func,$i([Wi,Gi]),A().string,A().arrayOf(A().string)]),closeLabelComponent:A().element,closeLabels:A().oneOfType([A().func,A().array,A().bool]),events:A().arrayOf(A().shape({target:A().oneOf(["data","labels","open","openLabels","close","closeLabels","low","lowLabels","high","highLabels"]),eventKey:A().oneOfType([A().array,$i([Wi,Gi]),A().string]),eventHandlers:A().object})),high:A().oneOfType([A().func,$i([Wi,Gi]),A().string,A().arrayOf(A().string)]),highLabelComponent:A().element,highLabels:A().oneOfType([A().func,A().array,A().bool]),labelOrientation:A().oneOfType([A().oneOf(["top","bottom","left","right"]),A().shape({open:A().oneOf(["top","bottom","left","right"]),close:A().oneOf(["top","bottom","left","right"]),low:A().oneOf(["top","bottom","left","right"]),high:A().oneOf(["top","bottom","left","right"])})]),low:A().oneOfType([A().func,$i([Wi,Gi]),A().string,A().arrayOf(A().string)]),lowLabelComponent:A().element,lowLabels:A().oneOfType([A().func,A().array,A().bool]),open:A().oneOfType([A().func,$i([Wi,Gi]),A().string,A().arrayOf(A().string)]),openLabelComponent:A().element,openLabels:A().oneOfType([A().func,A().array,A().bool]),style:A().shape({data:A().object,labels:A().object,close:A().object,closeLabels:A().object,open:A().object,openLabels:A().object,high:A().object,highLabels:A().object,low:A().object,lowLabels:A().object}),wickStrokeWidth:A().number}),ub.defaultProps={defaultCandleWidth:8,containerComponent:P().createElement(Au,null),data:ab,dataComponent:P().createElement($g,null),groupComponent:P().createElement("g",{role:"presentation"}),labelComponent:P().createElement(wc,null),highLabelComponent:P().createElement(wc,null),lowLabelComponent:P().createElement(wc,null),openLabelComponent:P().createElement(wc,null),closeLabelComponent:P().createElement(wc,null),samples:50,sortOrder:"ascending",standalone:!0,theme:Bc.grayscale},ub.getDomain=Kg,ub.getData=Wg,ub.getBaseProps=function(t){return function(t,e){var r=function(t){var e=t.polar,r=$(t,"candlestick"),n=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.disableInlineStyles)return{};var n="100%",o="100%";if(!e)return N()({parent:{height:o,width:n}},r);var i=r.parent||{},a=r.labels||{},s=r.data||{},u=N()({},e.labels,a);return{parent:N()({},e.parent,i,{width:n,height:o}),labels:u,data:N()({},e.data,s),openLabels:N()({},e.openLabels,Yg(t,r,"open"),u),closeLabels:N()({},e.closeLabels,Yg(t,r,"close"),u),lowLabels:N()({},e.lowLabels,Yg(t,r,"low"),u),highLabels:N()({},e.highLabels,Yg(t,r,"high"),u)}}(t,t.style,r),o=Wg(t),i={x:J(t,"x"),y:J(t,"y")},a={x:Kg(t,"x"),y:Kg(t,"y")},s={x:Mi(t,"x").domain(a.x).range(t.horizontal?i.y:i.x),y:Mi(t,"y").domain(a.y).range(t.horizontal?i.x:i.y)},u=e?t.origin||X(t):void 0,c=t.horizontal?"top":"right";return{domain:a,data:o,scale:s,style:n,origin:u,labelOrientation:t.labelOrientation||c}}(t=tt(t,e,"candlestick")),n=r.data,o=r.style,i=r.scale,a=r.domain,s=r.origin,u=r.labelOrientation,c=t,l=c.groupComponent,p=c.width,f=c.height,h=c.padding,d=c.standalone,m=c.name,y=c.candleWidth,v=c.candleRatio,g=c.theme,b=c.polar,_=c.wickStrokeWidth,x=c.labels,w=c.events,O=c.sharedEvents,S=c.horizontal,P=c.disableInlineStyles,j={parent:{domain:a,scale:i,width:p,height:f,data:n,standalone:d,theme:g,polar:b,origin:s,name:m,style:o.parent,padding:h,horizontal:S}};return n.reduce((function(e,r,c){var f=ll()(r.eventKey)?c:r.eventKey,h=i.x(void 0!==r._x1?r._x1:r._x);r=function(t,e){var r=Ot(e.x),n=wt(e.x),o=Ot(e.y),i=wt(e.y),a=t._x,s=t._low,u=t._open,c=t._close,l=t._high;return(a<r||a>n)&&(a=null),s<o&&u<o&&c<o&&l<o&&(s=u=c=l=null),s>i&&u>i&&c>i&&l>i&&(s=u=c=l=null),Object.assign({},t,{_x:a,_low:s,_open:u,_close:c,_high:l})}(r,a);var d=r,m=d._low,g=d._open,j=d._close,A=d._high,C=i.y(A),T=i.y(j),k=i.y(g),M=i.y(m),I=function(t,e,r){if(r.disableInlineStyles)return{};e=e||{};var n,o=t._open>t._close?r.candleColors.negative:r.candleColors.positive,i=e.fill||o,a=e.stroke,s="none"===(n=a)||"transparent"===n?i:a||"black";return E()({},e,{stroke:s,fill:i})}(r,o.data,t),D={x:h,high:C,low:M,candleWidth:y,candleRatio:v,scale:i,data:n,datum:r,groupComponent:l,index:c,style:I,width:p,polar:b,origin:s,wickStrokeWidth:_,open:k,close:T,horizontal:S,labelOrientation:u,disableInlineStyles:P};D.candleWidth=function(t,e){var r=t.data,n=t.candleWidth,o=t.scale,i=t.defaultCandleWidth;if(n)return R()(n)?W(n,t):n;var a=o.x.range(),s=Math.abs(a[1]-a[0]),u=r.length+2,c=(t.candleRatio||.5)*(r.length<2?i:s/u);return Math.max(1,c)}(D);var L=N()(Object.assign({},D),t);
1if(e[f]={data:D},x){var z=Lu(t,r,c);(null!=z||x&&(w||O))&&(e[f].labels=Xg(L,z,o))}return Gg.forEach((function(r){var n=function(t,e){var r=t.datum,n=t.index,o=t.labels,i=t["".concat(e,"Labels")];if(!i&&!o)return null;if(!0===i||!0===o){var a="_".concat(e);return"".concat(r[a])}return Array.isArray(i)?i[n]:i}(L,r),i=t.labels||t["".concat(r,"Labels")];if(null!=n||i&&(w||O)){var a="".concat(r,"Labels");e[f][a]=Xg(L,n,o,r)}})),e}),j)}(t,ib)},ub.expectedComponents=["openLabelComponent","closeLabelComponent","highLabelComponent","lowLabelComponent","dataComponent","labelComponent","groupComponent","containerComponent"];const cb=ql(ub,{components:[{name:"lowLabels"},{name:"highLabels"},{name:"openLabels"},{name:"closeLabels"},{name:"labels"},{name:"data"},{name:"parent",index:"parent"}]});function lb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function pb(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?lb(Object(r),!0).forEach((function(e){fb(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lb(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function fb(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var hb=function(t,e,r){var n="right"===r||"left"===r;return P().cloneElement(t.lineComponent,pb(pb({},t.events),{},{role:t.role,shapeRendering:t.shapeRendering,className:t.className,style:t.style,transform:t.transform,key:"".concat(t.id,"-border-").concat(r),x1:n?e[r]:t.x-t.borderWidth,x2:n?e[r]:t.x+t.borderWidth,y1:n?t.y-t.borderWidth:e[r],y2:n?t.y+t.borderWidth:e[r],"data-type":"border-".concat(r)}))},db=function(t,e,r){var n="top"===r||"bottom"===r;return P().cloneElement(t.lineComponent,pb(pb({},t.events),{},{role:t.role,shapeRendering:t.shapeRendering,className:t.className,style:t.style,transform:t.transform,key:"".concat(t.id,"-cross-").concat(r),x1:t.x,x2:n?t.x:e[r],y1:t.y,y2:n?e[r]:t.y,"data-type":"cross-".concat(r)}))},mb=function(t){t=function(t){var e=W(t.ariaLabel,t),r=W(t.id,t),n=Z(E()({stroke:"black"},t.style),t),o=W(t.tabIndex,t);return E()({},t,{ariaLabel:e,id:r,style:n,tabIndex:o})}(t);var e=t.groupComponent,r=Ha(t),n=t,o=n.tabIndex,i=n.ariaLabel,a=function(t){var e=t.errorX,r=t.errorY,n={right:{error:e,errorIndex:0},left:{error:e,errorIndex:1},top:{error:r,errorIndex:1},bottom:{error:r,errorIndex:0}};return["right","left","top","bottom"].reduce((function(t,e){var r,o,i;return t[e]=(o=(r=n[e]).error,i=r.errorIndex,o?o[i]:void 0),t}),{})}(t),s=[a.right?hb(t,a,"right"):null,a.left?hb(t,a,"left"):null,a.bottom?hb(t,a,"bottom"):null,a.top?hb(t,a,"top"):null,a.right?db(t,a,"right"):null,a.left?db(t,a,"left"):null,a.bottom?db(t,a,"bottom"):null,a.top?db(t,a,"top"):null].filter(Boolean);return P().cloneElement(e,pb({tabIndex:o,"aria-label":i},r),s)};mb.propTypes=pb(pb({},Qi.primitiveProps),{},{borderWidth:A().number,datum:A().object,errorX:A().oneOfType([A().number,A().array,A().bool]),errorY:A().oneOfType([A().number,A().array,A().bool]),groupComponent:A().element,lineComponent:A().element,x:A().number,y:A().number}),mb.defaultProps={groupComponent:P().createElement("g",null),lineComponent:P().createElement(va,null),role:"presentation",shapeRendering:"auto"};var yb=function(t,e,r){var n=e[{x:"_errorX",y:"_errorY"}[r]];if(0===n)return!1;var o=t.scale[r];return Array.isArray(n)?[0!==n[0]&&o(n[0]+e["_".concat(r)]),0!==n[1]&&o(e["_".concat(r)]-n[1])]:[o(n+e["_".concat(r)]),o(e["_".concat(r)]-n)]},vb=function(t){var e=["x","y","errorX","errorY"];return t.data?sp(t.data,t,e):sp(t.errorX||t.errorY?up(t):[],t,e)},gb=function(t,e){var r=Rp(t,e),n=Lp(t,e),o=vb(t);if(o.length<1)return void 0!==r&&void 0!==n?Mp(r,n):void 0;var i="x"===e?"_errorX":"_errorY",a=function(t){var r="min"===t?1/0:-1/0,n="min"===t?1:0,a="min"===t?-1:1;return o.reduce((function(r,o){var s=Array.isArray(o[i])?o[i][n]:o[i],u=o["_".concat(e)
1]+a*(s||0);return r<u&&"min"===t||r>u&&"max"===t?r:u}),r)};return Mp(void 0!==r?r:a("min"),void 0!==n?n:a("max"))},bb=function(t,e){return jp(gb)(t,e)};function _b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function xb(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_b(Object(r),!0).forEach((function(e){wb(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_b(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function wb(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ob(t,e){return Ob=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ob(t,e)}function Eb(t){return Eb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Eb(t)}var Sb={width:450,height:300,padding:50},Pb=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ob(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Eb(n);if(o){var r=Eb(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,(r=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=jb.animationWhitelist,e=jb.role,r=tt(this.props,Sb,e);if(this.shouldAnimate())return this.animateComponent(r,t);var n=this.renderData(r),o=r.standalone?this.renderContainer(r.containerComponent,n):n;return Ka(o,r)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(P().Component);Pb.animationWhitelist=["data","domain","height","padding","samples","style","width","errorX","errorY","borderWidth"],Pb.displayName="VictoryErrorBar",Pb.role="errorbar",Pb.defaultTransitions={onLoad:{duration:2e3,before:function(){return{opacity:0}
1},after:function(t){return t}},onExit:{duration:600,before:function(){return{opacity:0}}},onEnter:{duration:600,before:function(){return{opacity:0}},after:function(t){return t}}},Pb.propTypes=xb(xb(xb({},Qi.baseProps),Qi.dataProps),{},{borderWidth:A().number,errorX:A().oneOfType([A().func,$i([Wi,Gi]),A().string,A().arrayOf(A().string)]),errorY:A().oneOfType([A().func,$i([Wi,Gi]),A().string,A().arrayOf(A().string)]),horizontal:A().bool}),Pb.defaultProps={containerComponent:P().createElement(Au,null),data:[{x:1,y:1,errorX:.1,errorY:.1},{x:2,y:2,errorX:.2,errorY:.2},{x:3,y:3,errorX:.3,errorY:.3},{x:4,y:4,errorX:.4,errorY:.4}],dataComponent:P().createElement(mb,null),labelComponent:P().createElement(wc,null),groupComponent:P().createElement("g",{role:"presentation"}),samples:50,sortOrder:"ascending",standalone:!0,theme:Bc.grayscale},Pb.getDomain=bb,Pb.getData=vb,Pb.getBaseProps=function(t){return function(t,e){var r=tt(t,e,"errorbar");t=E()({},r,function(t){var e=$(t,"errorbar"),r=G(t.style,e)||{},n=vb(t),o={x:J(t,"x"),y:J(t,"y")},i={x:bb(t,"x"),y:bb(t,"y")};return{domain:i,data:n,scale:{x:Mi(t,"x").domain(i.x).range(t.horizontal?o.y:o.x),y:Mi(t,"y").domain(i.y).range(t.horizontal?o.x:o.y)},style:r,origin:t.polar?t.origin||X(t):void 0}}(r));var n=t,o=n.borderWidth,i=n.data,a=n.domain,s=n.events,u=n.groupComponent,c=n.height,l=n.horizontal,p=n.labels,f=n.name,h=n.origin,d=n.padding,m=n.polar,y=n.scale,v=n.sharedEvents,g=n.standalone,b=n.style,_=n.theme,x=n.width,w=n.disableInlineStyles,O={parent:{data:i,domain:a,height:c,horizontal:l,name:f,origin:h,padding:d,polar:m,scale:y,standalone:g,style:b.parent,theme:_,width:x}};return i.reduce((function(e,r,n){var c=ll()(r.eventKey)?n:r.eventKey,f=V(E()({},t,{scale:y}),r),h=f.x,d=f.y;r=function(t,e){var r=Ot(e.x),n=wt(e.x),o=Ot(e.y),i=wt(e.y),a=t._x,s=t._y;return(a<r||a>n||s<o||s>i)&&(a=s=null),Object.assign({},t,{_x:a,_y:s})}(r,a);var m=yb(t,r,"x"),g=yb(t,r,"y"),_={borderWidth:o,data:i,datum:r,errorX:l?g:m,errorY:l?m:g,groupComponent:u,horizontal:l,index:n,scale:y,style:w?{}:b.data,x:h,y:d,disableInlineStyles:w};e[c]={data:_};var x=Lu(t,r,n);return(null!=x||p&&(s||v))&&(e[c].labels=function(t,e,r){var n=t.x,o=t.y,i=t.index,a=t.scale,s=t.errorY,u=t.errorX,c=t.horizontal,l=t.labelComponent,p=t.theme,f=t.disableInlineStyles,h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",r="y"===e?s:u;return(r&&Array.isArray(r)?r[0]:r)||t[e]},d=r.labels||{},m=d.padding||0,y=c?"start":"middle",v=c?"middle":"end",g={style:d,y:c?o:h("y"),x:c?h("x"):n,dy:c?0:-m,dx:c?m:0,text:e,index:i,scale:a,datum:t.datum,data:t.data,textAnchor:d.textAnchor||y,verticalAnchor:d.verticalAnchor||v,angle:d.angle,horizontal:c,disableInlineStyles:f};if(!q(l))return g;var b=p&&p.tooltip||{};return N()({},g,F(b,["style"]))}(E()({},t,_),x,b)),e}),O)}(t,Sb)},Pb.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var jb=ql(Pb),Ab=Array.prototype,Cb=Ab.slice;function Tb(t){return()=>t}function kb(t,e){let r,n;if(void 0===e)for(const o of t)null!=o&&(void 0===r?o>=o&&(r=n=o):(r>o&&(r=o),n<o&&(n=o)));else{let o=-1;for(let i of t)null!=(i=e(i,++o,t))&&(void 0===r?i>=i&&(r=n=i):(r>i&&(r=i),n<i&&(n=i)))}return[r,n]}function Mb(t){return t}function Ib(t){return Math.max(1,Math.ceil(Math.log(function(t,e){let r=0;for(let n of t)null!=n&&(n=+n)>=n&&++r;return r}(t))/Math.LN2)+1)}function Db(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Lb(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Db(Object(r),!0).forEach((function(e){Rb(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Db(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Rb(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zb(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}Ab.map;var Nb,Fb,Bb,Vb,Ub=(Nb=function(t){var e=t.data,r=void 0===e?[]:e,n=t.x,o=t.bins;if(!(r&&r.length||Array.isArray(o)))return[];var i=function(t){var e=t.data,r=t.bins,n=Q(t.x||"x"),o=e.some((function(t){return n(t)instanceof Date})),i=Array.isArray(r)&&r.some((function(t){return t instanceof Date}));return o||i}({data:r,bins:o,x:n}),a=function(t){var e=t.data,r=t.bins,n=t.dataOrBinsContainsDates,o=Q(t.x||"x"),i=function(){var t=Mb,e=kb,r=Ib;function n(n){Array.isArray(n)||(n=Array.from(n));var o,i,a,s=n.length,u=new Array(s);for(o=0;o<s;++o)u[o]=t(n[o],o,n);var c=e(u),l=c[0],p=c[1],f=r(u,l,p);if(!Array.isArray(f)){const t=p,r=+f;if(e===kb&&([l,p]=function(t,e,r){let n;for(;;){const o=Ft(t,e,r);
1if(o===n||0===o||!isFinite(o))return[t,e];o>0?(t=Math.floor(t/o)*o,e=Math.ceil(e/o)*o):o<0&&(t=Math.ceil(t*o)/o,e=Math.floor(e*o)/o),n=o}}(l,p,r)),(f=Nt(l,p,r))[0]<=l&&(a=Ft(l,p,r)),f[f.length-1]>=p)if(t>=p&&e===kb){const t=Ft(l,p,r);isFinite(t)&&(t>0?p=(Math.floor(p/t)+1)*t:t<0&&(p=(Math.ceil(p*-t)+1)/-t))}else f.pop()}for(var h=f.length,d=0,m=h;f[d]<=l;)++d;for(;f[m-1]>p;)--m;(d||m<h)&&(f=f.slice(d,m),h=m-d);var y,v=new Array(h+1);for(o=0;o<=h;++o)(y=v[o]=[]).x0=o>0?f[o-1]:l,y.x1=o<h?f[o]:p;if(isFinite(a)){if(a>0)for(o=0;o<s;++o)null!=(i=u[o])&&l<=i&&i<=p&&v[Math.min(h,Math.floor((i-l)/a))].push(n[o]);else if(a<0)for(o=0;o<s;++o)if(null!=(i=u[o])&&l<=i&&i<=p){const t=Math.floor((l-i)*a);v[Math.min(h,t+(f[t]<=i))].push(n[o])}}else for(o=0;o<s;++o)null!=(i=u[o])&&l<=i&&i<=p&&v[Ht(f,i,0,h)].push(n[o]);return v}return n.value=function(e){return arguments.length?(t="function"==typeof e?e:Tb(e),n):t},n.domain=function(t){return arguments.length?(e="function"==typeof t?t:Tb([t[0],t[1]]),n):e},n.thresholds=function(t){return arguments.length?(r="function"==typeof t?t:Tb(Array.isArray(t)?Cb.call(t):t),n):r},n}().value(o),a=(n?pi():mr()).domain(kb(e,o)).nice();return Array.isArray(r)?(i.domain([r[0],r[r.length-1]]),i.thresholds(r.slice(1,r.length-1)),i):Number.isInteger(r)?(i.domain(a.domain()),i.thresholds(r),i):n?(i.domain(a.domain()),i.thresholds(a.ticks()),i):(i.domain(a.domain()),i)}({data:r,x:n,bins:o,dataOrBinsContainsDates:i});return a(r).filter((function(t){var e=t.x0,r=t.x1;return i?new Date(e).getTime()!==new Date(r).getTime():e!==r})).map((function(t){var e,r=i?new Date(t.x0):t.x0,n=i?new Date(t.x1):t.x1;return{x0:r,x1:n,x:i?new Date((r.getTime()+n.getTime())/2):(r+n)/2,y:t.length,binnedData:(e=t,function(t){if(Array.isArray(t))return zb(t)}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return zb(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zb(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}}))},Vb=!1,function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(Vb&&cu()(Fb,e))return Bb;var n=Nb.apply(void 0,e);return Vb=!0,Bb=n,Fb=e,n}),qb=function(t){var e=t.bins,r=t.data,n=t.x,o=r.some((function(t){var e=t._y;return!ll()(e)}))?r:Ub({data:r,x:n,bins:e});return lp(Lb(Lb({},t),{},{data:o,x:"x"}))},$b=function(t,e){var r=qb(t);if(!r.length)return[0,1];if("x"===e){var n=r[0],o=r[r.length-1];return Dp(Lb(Lb({},t),{},{data:[{x:n.x0},{x:o.x1}],x:"x"}),"x")}return t.data.length?Dp(Lb(Lb({},t),{},{data:r}),"y"):[0,1]};function Gb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Wb(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Gb(Object(r),!0).forEach((function(e){Zb(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gb(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Zb(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Hb(t,e){return Hb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Hb(t,e)}function Kb(t){return Kb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Kb(t)}var Yb={width:450,height:300,padding:50},Xb=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Hb(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Kb(n);if(o){var r=Kb(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,(r=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=a.animationWhitelist,e=a.role,r=tt(this.props,Yb,e);if(this.shouldAnimate())return this.animateComponent(r,t);var n=this.renderData(r),o=r.standalone?this.renderContainer(r.containerComponent,n):n;return Ka(o,r)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(P().Component);Xb.animationWhitelist=["data","domain","height","padding","style","width"],Xb.displayName="VictoryHistogram",Xb.role="histogram",Xb.defaultTransitions={onLoad:{duration:2e3,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(t){return{_y:t._y,_y1:t._y1,_y0:t._y0}}},onExit:{duration:500,before:function(){return{_y:0,yOffset:0}}},onEnter:{duration:500,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(t){return{_y:t._y,_y1:t._y1,_y0:t._y0}}}},Xb.getFormattedData=Ub,Xb.propTypes=Wb(Wb(Wb({},Qi.baseProps),Qi.dataProps),{},{binSpacing:Gi,bins:A().oneOfType([A().arrayOf(A().oneOfType([A().number,A().instanceOf(Date)])),Gi]),cornerRadius:A().oneOfType([A().number,A().func,A().shape({top:A().oneOfType([A().number,A().func]),topLeft:A().oneOfType([A().number,A().func]),topRight:A().oneOfType([A().number,A().func]),bottom:A().oneOfType([A().number,A().func]),bottomLeft:A().oneOfType([A().number,A().func]),bottomRight:A().oneOfType([A().number,A().func])})]),getPath:A().func,horizontal:A().bool}),Xb.defaultProps={containerComponent:P().createElement(Au,null),data:[],dataComponent:P().createElement(kg,null),groupComponent:P().createElement("g",{role:"presentation"}),labelComponent:P().createElement(wc,null),samples:50,sortOrder:"ascending",standalone:!0,theme:Bc.grayscale},Xb.getDomain=$b,Xb.getData=qb,Xb.getBaseProps=function(t){return function(t,e){var r=tt(t,e,"histogram");t=E()({}
1,r,function(t){var e=$(t,"histogram"),r=G(t.style,e),n=t.range||{x:J(t,"x"),y:J(t,"y")},o={x:$b(t,"x"),y:$b(t,"y")},i=qb(t);return{style:r,data:i=op(i,o,0),scale:{x:Mi(t,"x").domain(o.x).range(t.horizontal?n.y:n.x),y:Mi(t,"y").domain(o.y).range(t.horizontal?n.x:n.y)},domain:o}}(r));var n=t,o=n.binSpacing,i=n.cornerRadius,a=n.data,s=n.domain,u=n.events,c=n.height,l=n.horizontal,p=n.padding,f=n.scale,h=n.sharedEvents,d=n.standalone,m=n.style,y=n.theme,v=n.width,g=n.labels,b=n.name,_=n.getPath,x=n.disableInlineStyles,w={parent:{horizontal:l,domain:s,scale:f,width:v,height:c,data:a,standalone:d,name:b,theme:y,padding:p,style:m.parent}},O=function(t){var e=f.x(t.x0),r=f.x(t.x1);return Math.abs(r-e)};return a.reduce((function(e,r,n){var s=ll()(r.eventKey)?n:r.eventKey,p=lg(t,r),d=p.x,y=p.y,b=p.y0,w=p.x0,E=function(t){return o?O(t)-o:O(t)}(r),S={alignment:"middle",barWidth:E,cornerRadius:i,data:a,datum:r,horizontal:l,index:n,scale:f,style:x?{}:m.data,width:v,height:c,x:d,y:y,y0:b,x0:w,getPath:_,disableInlineStyles:x};return e[s]={data:S},(null!=Lu(t,r,n)||g&&(u||h))&&(e[s].labels=Bu(t,n)),e}),w)}(t,Yb)},Xb.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];const Jb=ql(Xb);function Qb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function t_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Qb(Object(r),!0).forEach((function(e){e_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Qb(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function e_(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var r_=function(t){t=function(t){var e=W(t.ariaLabel,t),r=W(t.id,t),n=Z(E()({fill:"none",stroke:"black",pointerEvents:"stroke"},t.style),t),o=W(t.tabIndex,t);return E()({},t,{ariaLabel:e,id:r,style:n,tabIndex:o})}(t);var e=Ha(t),r=t,n=r.polar,o=r.origin,i=Zv(t),a=n&&o?"translate(".concat(o.x,", ").concat(o.y,")"):void 0,s=i(t.data);return P().cloneElement(t.pathComponent,t_(t_(t_({},t.events),e),{},{"aria-label":t.ariaLabel,d:s,style:t.style,transform:t.transform||a,className:t.className,role:t.role,shapeRendering:t.shapeRendering,clipPath:t.clipPath,tabIndex:t.tabIndex}))};function n_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n_(Object(r),!0).forEach((function(e){i_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function i_(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a_(t,e){return a_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a_(t,e)}function s_(t){return s_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s_(t)}r_.propTypes=t_(t_({},Qi.primitiveProps),{},{interpolation:A().oneOfType([A().string,A().func]),openCurve:A().bool,origin:A().shape({x:A().number.isRequired,y:A().number.isRequired}),pathComponent:A().element,polar:A().bool}),r_.defaultProps={pathComponent:P().createElement(ja,null),role:"presentation",shapeRendering:"auto"};var u_={width:450,height:300,padding:50,interpolation:"linear"},c_=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a_(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s_(n);if(o){var r=s_(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,t)}return e=a,(r=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=a.animationWhitelist,e=a.role,r=tt(this.props,u_,e);if(this.shouldAnimate())return this.animateComponent(r,t);var n=this.renderContinuousData(r),o=r.standalone?this.renderContainer(r.containerComponent,n):n;return Ka(o,r)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(P().Component);c_.animationWhitelist=["data","domain","height","padding","samples","style","width"],c_.displayName="VictoryLine",c_.role="line",c_.defaultTransitions={onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}},c_.defaultPolarTransitions={onLoad:{duration:2e3,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(t){return{_y:t._y,_y1:t._y1,_y0:t._y0}}},onExit:{duration:500,before:function(t,e,r){var n=function(t){return(0===e?r[e+1]:r[e-1])[t]};return{_x:n("_x"),_y:n("_y"),_y0:n("_y0")}}},onEnter:{duration:500,before:function(t,e,r){var n=function(t){return(0===e?r[e+1]:r[e-1])[t]};return{_x:n("_x"),_y:n("_y"),_y0:n("_y0")}},after:function(t){return{_x:t._x,_y:t._y,_y1:t._y1,_y0:t._y0}}}}
1,c_.continuous=!0,c_.propTypes=o_(o_(o_({},Qi.baseProps),Qi.dataProps),{},{interpolation:A().oneOfType([A().oneOf(["basis","bundle","cardinal","catmullRom","linear","monotoneX","monotoneY","natural","step","stepAfter","stepBefore"]),A().func]),label:qi(A().string,"Use `labels` instead for individual data labels")}),c_.defaultProps={containerComponent:P().createElement(Au,null),dataComponent:P().createElement(r_,null),labelComponent:P().createElement(wc,{renderInPortal:!0}),groupComponent:P().createElement(al,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Bc.grayscale},c_.getDomain=Cp,c_.getData=lp,c_.getBaseProps=function(t){return function(t,e){var r=tt(t,e,"line");t=E()({},r,function(t){var e=lp(t);e.length<2&&(e=[]);var r={x:J(t,"x"),y:J(t,"y")},n={x:Cp(t,"x"),y:Cp(t,"y")},o={x:Mi(t,"x").domain(n.x).range(t.horizontal?r.y:r.x),y:Mi(t,"y").domain(n.y).range(t.horizontal?r.x:r.y)},i=t.polar?t.origin||X(t):void 0,a=$(t,"line");return{domain:n,data:e,scale:o,style:G(t.style,a),origin:i}}(r));var n=t,o=n.data,i=n.domain,a=n.events,s=n.groupComponent,u=n.height,c=n.horizontal,l=n.interpolation,p=n.origin,f=n.padding,h=n.polar,d=n.scale,m=n.sharedEvents,y=n.standalone,v=n.style,g=n.theme,b=n.width,_=n.labels,x=n.name,w=n.disableInlineStyles,O={parent:{style:v.parent,scale:d,data:o,height:u,width:b,name:x,domain:i,standalone:y,polar:h,origin:p,padding:f,horizontal:c},all:{data:{horizontal:c,polar:h,origin:p,scale:d,data:o,interpolation:l,groupComponent:s,style:w?{}:v.data,theme:g,disableInlineStyles:w}}};return o.reduce((function(e,r,n){return(null!=Lu(t,r,n)||_&&(a||m))&&(e[ll()(r.eventKey)?n:r.eventKey]={labels:Bu(t,n)}),e}),O)}(t,u_)},c_.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var l_=ql(c_,{components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]});function p_(t){return function(t){if(Array.isArray(t))return f_(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return f_(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f_(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f_(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var h_=function(t,e){return e.bubbleProperty?"circle":t.symbol||e.symbol},d_=function(t,e){var r=e.size,n=e.z;return t.size?"function"==typeof t.size?t.size:Math.max(t.size,1):"function"==typeof e.size?r:t[n]?function(t,e){var r,n=e.data,o=e.z,i=e.maxBubbleSize,a=e.minBubbleSize,s=n.map((function(t){return t[o]})),u=Math.min.apply(Math,p_(s)),c=Math.max.apply(Math,p_(s)),l=i||(r=Math.min.apply(Math,p_(Zp()(U(e)))),Math.max(r,5)),p=a||.1*l;if(c===u)return Math.max(p,1);var f=Math.PI*Math.pow(l,2),h=Math.PI*Math.pow(p,2),d=(t[o]-u)/(c-u)*f,m=Math.max(d,h),y=Math.sqrt(m/Math.PI);return Math.max(y,1)}(t,e):Math.max(r||0,1)};function m_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function y_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?m_(Object(r),!0).forEach((function(e){v_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function v_(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function g_(t,e){return g_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},g_(t,e)}function b_(t){return b_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},b_(t)}
1var __={width:450,height:300,padding:50,size:3,symbol:"circle"},x_=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&g_(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=b_(n);if(o){var r=b_(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,(r=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=w_.animationWhitelist,e=w_.role,r=tt(this.props,__,e);if(this.shouldAnimate())return this.animateComponent(r,t);var n=this.renderData(r),o=r.standalone?this.renderContainer(r.containerComponent,n):n;return Ka(o,r)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(P().Component);x_.animationWhitelist=["data","domain","height","maxBubbleSize","padding","samples","size","style","width"],x_.displayName="VictoryScatter",x_.role="scatter",x_.defaultTransitions={onLoad:{duration:2e3,before:function(){return{opacity:0}
1},after:function(t){return t}},onExit:{duration:600,before:function(){return{opacity:0}}},onEnter:{duration:600,before:function(){return{opacity:0}},after:function(t){return t}}},x_.propTypes=y_(y_(y_({},Qi.baseProps),Qi.dataProps),{},{bubbleProperty:A().string,maxBubbleSize:Gi,minBubbleSize:Gi,size:A().oneOfType([Gi,A().func]),symbol:A().oneOfType([A().oneOf(["circle","cross","diamond","plus","minus","square","star","triangleDown","triangleUp"]),A().func])}),x_.defaultProps={containerComponent:P().createElement(Au,null),dataComponent:P().createElement(ts,null),labelComponent:P().createElement(wc,null),groupComponent:P().createElement("g",null),samples:50,sortOrder:"ascending",standalone:!0,theme:Bc.grayscale},x_.getDomain=Cp,x_.getData=lp,x_.getBaseProps=function(t){return function(t,e){var r=tt(t,e,"scatter");t=E()({},r,function(t){var e=$(t,"scatter"),r=G(t.style,e),n={x:J(t,"x"),y:J(t,"y")},o={x:Cp(t,"x"),y:Cp(t,"y")},i={x:Mi(t,"x").domain(o.x).range(t.horizontal?n.y:n.x),y:Mi(t,"y").domain(o.y).range(t.horizontal?n.x:n.y)},a=t.polar?t.origin||X(t):void 0,s=t.bubbleProperty||"z",u=lp(t);return{domain:o,data:u=op(u,o),scale:i,style:r,origin:a,z:s}}(r));var n=t,o=n.data,i=n.domain,a=n.events,s=n.height,u=n.origin,c=n.padding,l=n.polar,p=n.scale,f=n.name,h=n.sharedEvents,d=n.standalone,m=n.style,y=n.theme,v=n.width,g=n.labels,b=n.horizontal,_=n.disableInlineStyles,x={parent:{style:m.parent,scale:p,domain:i,data:o,height:s,width:v,standalone:d,theme:y,origin:u,polar:l,padding:c,name:f,horizontal:b}};return o.reduce((function(e,r,n){var i=ll()(r.eventKey)?n:r.eventKey,s=V(t,r),c={x:s.x,y:s.y,datum:r,data:o,index:n,scale:p,polar:l,origin:u,horizontal:b,size:d_(r,t),symbol:h_(r,t),style:_?{}:m.data,disableInlineStyles:_};return e[i]={data:c},(null!=Lu(t,r,n)||g&&(a||h))&&(e[i].labels=Bu(t,n)),e}),x)}(t,__)},x_.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var w_=ql(x_),O_=r(7654),E_=r.n(O_),S_=["max","min","median","q1","q3"],P_=function(t){return E_()(t)?null:t},j_=function(t){var e=t.map((function(t){return t._y})),r={_q1:P_(qr(e,.25)),_q3:P_(qr(e,.75)),_min:P_(Fr(e)),_median:P_(qr(e,.5)),_max:P_(Nr(e))};return E()({},t[0],r,{_y:t[0]._y})},A_=function(t){var e=S_.concat("x","y"),r=sp(t.data,t,e);return r.length?function(t){var e=function(t){if(t.every((function(t){return S_.every((function(e){return void 0!==t["_".concat(e)]}))}))){var e=t.map((function(t){return t._x}));if(!dl()(e).length===e.length)throw new Error("\n data prop may only take an array of objects with a unique\n independent variable. Make sure your x values are distinct.\n ");return!0}return!1}(t);if(e)return t;var r=t.every((function(t){return Array.isArray(t._x)})),n=t.every((function(t){return Array.isArray(t._y)})),o="_y";if(r)throw new Error("\n data should not be given as in array for x\n ");if(n)return t.map((function(t){var e=t._y.map((function(e){return E()({},t,function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t._y=r,t}({},o,e))})),r=Fs()(e,o);return j_(r)}));var i=gf()(t,"_x");return T()(i).map((function(t){var e=i[t],r=Fs()(e,o);return j_(r)}))}(r):[]},C_=function(t,e){var r=Rp(t,e),n=Lp(t,e),o=A_(t);return o.length<1?void 0!==r&&void 0!==n?Mp(r,n):void 0:"y"===e?function(t,e,r){var n=Rp(e,r),o=Lp(e,r);return Mp(void 0!==n?n:t.reduce((function(t,e){return t<e._min?t:e._min}),1/0),void 0!==o?o:t.reduce((function(t,e){return t>e._max?t:e._max}),-1/0))}(o,t,e):function(t,e,r){var n=Rp(e,r),o=Lp(e,r);return Mp(void 0!==n?n:t.reduce((function(t,e){return t<e["_".concat(r)]?t:e["_".concat(r)]}),1/0),void 0!==o?o:t.reduce((function(t,e){return t>e["_".concat(r)]?t:e["_".concat(r)]}),-1/0))}(o,t,e)},T_=function(t,e){return jp(C_)(t,e)},k_=function(t,e,r){var n=t["".concat(r,"LabelComponent")]||t.labelComponent,o=e["".concat(r,"Labels")]||e.labels;if(!q(n))return o;var i=t.theme&&t.theme.tooltip||{};return N()({},i.style,o)};function M_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function I_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?M_(Object(r),!0).forEach((function(e){D_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):M_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function D_(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function L_(t){return function(t){if(Array.isArray(t))return R_(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return R_(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R_(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R_(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function z_(t,e){return z_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},z_(t,e)}function N_(t){return N_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},N_(t)}var F_={width:450,height:300,padding:{top:20,right:20,bottom:20,left:20}},B_=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&z_(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=N_(n);if(o){var r=N_(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,(r=[{key:"renderBoxPlot",value:function(t){var e=this,r=["q1","q3","max","min","median"],n=Op()(r.map((function(r){return e.dataKeys.reduce((function(n,o,i){var a=t["".concat(r,"Component")],s=e.getComponentProps(a,r,i);return e.shouldRenderDatum(s.datum)&&n.push(P().cloneElement(a,s)),n}),[])}))),o=Op()(r.map((function(r){return e.dataKeys.reduce((function(n,o,i){var a="".concat(r,"Labels"),s=t["".concat(r,"LabelComponent")],u=e.getComponentProps(s,a,i);return void 0!==u.text&&null!==u.text&&n.push(P().cloneElement(s,u)),n}),[]).filter(Boolean)}))),i=[].concat(L_(n),L_(o));return this.renderContainer(t.groupComponent,i)}},{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"shouldRenderDatum",value:function(t){var e=!ll()(t._x),r=!ll()(t._y);return!(ll()(t._min)||ll()(t._max)||ll()(t._median)||ll()(t._q1)||ll()(t._q3))&&(this.props.horizontal?r:e)}},{key:"render",value:function(){var t=V_.animationWhitelist,e=V_.role,r=tt(this.props,F_,e);if(this.shouldAnimate())return this.animateComponent(r,t);var n=this.renderBoxPlot(r),o=r.standalone?this.renderContainer(r.containerComponent,n):n;return Ka(o,r)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(P().Component);B_.animationWhitelist=["data","domain","height","padding","style","width"],B_.displayName="VictoryBoxPlot",B_.role="boxplot",B_.defaultTransitions={onLoad:{duration:2e3,before:function(){return{opacity:0}
1},after:function(t){return t}},onExit:{duration:600,before:function(){return{opacity:0}}},onEnter:{duration:600,before:function(){return{opacity:0}},after:function(t){return t}}},B_.propTypes=I_(I_(I_({},Qi.baseProps),Qi.dataProps),{},{boxWidth:A().number,events:A().arrayOf(A().shape({target:A().oneOf(["max","maxLabels","median","medianLabels","min","minLabels","q1","q1Labels","q3","q3Labels","parent"]),eventKey:A().oneOfType([A().array,$i([Wi,Gi]),A().string]),eventHandlers:A().object})),horizontal:A().bool,labelOrientation:A().oneOfType([A().oneOf(["top","bottom","left","right"]),A().shape({q1:A().oneOf(["top","bottom","left","right"]),q3:A().oneOf(["top","bottom","left","right"]),min:A().oneOf(["top","bottom","left","right"]),max:A().oneOf(["top","bottom","left","right"]),median:A().oneOf(["top","bottom","left","right"])})]),labels:A().bool,max:A().oneOfType([A().func,$i([Wi,Gi]),A().string,A().arrayOf(A().string)]),maxComponent:A().element,maxLabelComponent:A().element,maxLabels:A().oneOfType([A().func,A().array,A().bool]),median:A().oneOfType([A().func,$i([Wi,Gi]),A().string,A().arrayOf(A().string)]),medianComponent:A().element,medianLabelComponent:A().element,medianLabels:A().oneOfType([A().func,A().array,A().bool]),min:A().oneOfType([A().func,$i([Wi,Gi]),A().string,A().arrayOf(A().string)]),minComponent:A().element,minLabelComponent:A().element,minLabels:A().oneOfType([A().func,A().array,A().bool]),q1:A().oneOfType([A().func,$i([Wi,Gi]),A().string,A().arrayOf(A().string)]),q1Component:A().element,q1LabelComponent:A().element,q1Labels:A().oneOfType([A().func,A().array,A().bool]),q3:A().oneOfType([A().func,$i([Wi,Gi]),A().string,A().arrayOf(A().string)]),q3Component:A().element,q3LabelComponent:A().element,q3Labels:A().oneOfType([A().func,A().array,A().bool]),style:A().shape({boxes:A().object,labels:A().object,parent:A().object,max:A().object,maxLabels:A().object,median:A().object,medianLabels:A().object,min:A().object,minLabels:A().object,q1:A().object,q1Labels:A().object,q3:A().object,q3Labels:A().object,whiskers:A().object}),whiskerWidth:A().number}),B_.defaultProps={containerComponent:P().createElement(Au,null),data:[{x:1,min:5,q1:7,median:12,q3:18,max:20},{x:2,min:2,q1:5,median:8,q3:12,max:15}],dataComponent:P().createElement(ha,null),groupComponent:P().createElement("g",{role:"presentation"}),maxComponent:P().createElement(Sa,null),maxLabelComponent:P().createElement(wc,null),medianComponent:P().createElement(xa,null),medianLabelComponent:P().createElement(wc,null),minComponent:P().createElement(Sa,null),minLabelComponent:P().createElement(wc,null),q1Component:P().createElement(ha,null),q1LabelComponent:P().createElement(wc,null),q3Component:P().createElement(ha,null),q3LabelComponent:P().createElement(wc,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Bc.grayscale},B_.getDomain=T_,B_.getData=A_,B_.getBaseProps=function(t){return function(t,e){var r=tt(t,e,"boxplot"),n=t=E()({},r,function(t){var e=t.theme,r=t.horizontal,n=A_(t),o={x:J(t,"x"),y:J(t,"y")},i={x:T_(t,"x"),y:T_(t,"y")},a={x:Mi(t,"x").domain(i.x).range(t.horizontal?o.y:o.x),y:Mi(t,"y").domain(i.y).range(t.horizontal?o.x:o.y)},s=function(t,e){if(t.disableInlineStyles)return{};var r=t.style||{};e=e||{};var n=N()({},r.labels,k_(t,e)),o=N()({},r.boxes,e.boxes),i=N()({},r.whiskers,e.whiskers);return{boxes:o,labels:n,parent:N()({},r.parent,e.parent,{height:"100%",width:"100%"}),max:N()({},r.max,e.max,i),maxLabels:N()({},r.maxLabels,k_(t,e,"max"),n),median:N()({},r.median,e.median,i),medianLabels:N()({},r.medianLabels,k_(t,e,"median"),n),min:N()({},r.min,e.min,i),minLabels:N()({},r.minLabels,k_(t,e,"min"),n),q1:N()({},r.q1,e.q1,o),q1Labels:N()({},r.q1Labels,k_(t,e,"q1"),n),q3:N()({},r.q3,e.q3,o),q3Labels:N()({},r.q3Labels,k_(t,e,"q3"),n),whiskers:i}}(t,e&&e.boxplot&&e.boxplot.style?e.boxplot.style:{}),u=t.horizontal?"top":"right";return{data:n,horizontal:r,domain:i,scale:a,style:s,labelOrientation:t.labelOrientation||u,boxWidth:t.boxWidth||1}}(r)),o=n.groupComponent,i=n.width,a=n.height,s=n.padding,u=n.standalone,c=n.theme,l=n.events,p=n.sharedEvents,f=n.scale,h=n.horizontal,d=n.data,m=n.style,y=n.domain,v=n.name,g={parent:{domain:y,scale:f,width:i,height:a,data:d,standalone:u,name:v,theme:c,style:m.parent||{},padding:s,groupComponent:o,horizontal:h}},b=f.y;
1return d.reduce((function(e,r,n){var o=ll()(r.eventKey)?n:r.eventKey;if(function(t,e){var r,n,o=function(t){return void 0!==t},i=t._x,a=t._min,s=t._max,u=Ot(e.x),c=wt(e.x),l=Ot(e.y),p=wt(e.y),f=function(t){return function(e){return o(e)&&e<t}},h=function(t){return function(e){return o(e)&&e>t}},d=f(u),m=f(l),y=h(c),v=h(p);return(d(i)||y(i))&&(n=!0),(m(a)&&m(s)||v(a)&&v(s))&&(r=!0),r||n}(r,y))return e;var i={x:h?f.y(r._y):f.x(r._x),y:h?f.x(r._x):f.y(r._y),min:b(r._min),max:b(r._max),median:b(r._median),q1:b(r._q1),q3:b(r._q3)},a=E()({index:n,datum:r,positions:i},t),s=S_.reduce((function(t,e){return t[e]=function(t,e){return"median"===e?function(t){var e=t.boxWidth,r=t.horizontal,n=t.style,o=t.datum,i=t.scale,a=t.index,s=t.disableInlineStyles,u=t.positions,c=u.median,l=u.x,p=u.y;return{datum:o,scale:i,index:a,x1:r?c:l-e/2,y1:r?p-e/2:c,x2:r?c:l+e/2,y2:r?p+e/2:c,style:s?{}:n.median,disableInlineStyles:s}}(t):"min"===e||"max"===e?function(t,e){var r=t.horizontal,n=t.style,o=t.boxWidth,i=t.whiskerWidth,a=t.datum,s=t.scale,u=t.index,c=t.disableInlineStyles,l=t.positions,p=l.min,f=l.max,h=l.q1,d=l.q3,m=l.x,y=l.y,v="min"===e?h:d,g="min"===e?p:f,b="number"==typeof i?i:o;return{datum:a,index:u,scale:s,majorWhisker:{x1:r?v:m,y1:r?y:v,x2:r?g:m,y2:r?y:g},minorWhisker:{x1:r?g:m-b/2,y1:r?y-b/2:g,x2:r?g:m+b/2,y2:r?y+b/2:g},style:c?{}:n[e]||n.whisker,disableInlineStyles:c}}(t,e):function(t,e){var r=t.horizontal,n=t.boxWidth,o=t.style,i=t.scale,a=t.datum,s=t.index,u=t.disableInlineStyles,c=t.positions,l=c.median,p=c.q1,f=c.q3,h=c.x,d=c.y;return{datum:a,scale:i,index:s,x:r?"q1"===e?p:l:h-n/2,y:r?d-n/2:"q1"===e?l:f,width:r?"q1"===e?l-p:f-l:n,height:r?n:"q1"===e?p-l:l-f,style:u?{}:o[e]||o.boxes,disableInlineStyles:u}}(t,e)}(a,e),t}),{});return e[o]=s,S_.forEach((function(r){var n=function(t,e){var r=t.datum,n=t.index,o=t.labels,i=t["".concat(e,"Labels")];if(!i&&!o)return null;if(!0===i||!0===o){var a="_".concat(e);return"".concat(r[a])}return Array.isArray(i)?i[n]:i}(a,r),i=t.labels||t["".concat(r,"Labels")];if(null!=n||i&&(l||p)){var s="".concat(r,"Labels");e[o][s]=function(t,e,r){var n=t.datum,o=t.positions,i=t.index,a=t.boxWidth,s=t.horizontal,u=t.labelOrientation,c=t.style,l=t.theme,p=t.disableInlineStyles,f=function(t,e){return"object"==typeof t&&t[e]||t}(u,r),h=c["".concat(r,"Labels")]||c.labels,d="number"==typeof t.whiskerWidth?t.whiskerWidth:a,m="min"===r||"max"===r?d:a,y=function(t){var e={x:"left"===f?-1:1,y:"top"===f?-1:1};return e[t]*m/2+e[t]*(h.padding||0)},v={text:e,datum:n,index:i,orientation:f,style:p?{}:h,y:s?o.y:o[r],x:s?o[r]:o.x,dy:s?y("y"):0,dx:s?0:y("x"),textAnchor:h.textAnchor||{left:"end",right:"start",top:"middle",bottom:"middle"}[f],verticalAnchor:h.verticalAnchor||{top:"end",bottom:"start",left:"middle",right:"middle"}[f],angle:h.angle,horizontal:s,disableInlineStyles:p};if(!q(t["".concat(r,"LabelComponent")]))return v;var g=l&&l.tooltip||{};return N()({},v,F(g,["style"]))}(E()({},t,a),n,r)}})),e}),g)}(t,F_)},B_.expectedComponents=["maxComponent","maxLabelComponent","medianComponent","medianLabelComponent","minComponent","minLabelComponent","q1Component","q1LabelComponent","q3Component","q3LabelComponent","groupComponent","containerComponent"];var V_=ql(B_,{components:[{name:"min"},{name:"minLabels"},{name:"max"},{name:"maxLabels"},{name:"median"},{name:"medianLabels"},{name:"q1"},{name:"q1Labels"},{name:"q3"},{name:"q3Labels"},{name:"parent",index:"parent"}]});function U_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function q_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?U_(Object(r),!0).forEach((function(e){$_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):U_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function $_(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var G_=function(t){t=function(t){var e=W(t.ariaLabel,t),r=W(t.id,t),n=W(t.size,t),o=Z(t.style,t),i=W(t.tabIndex,t);return E()({},t,{ariaLabel:e,id:r,size:n,style:o,tabIndex:i})}(t);var e=t,r=e.ariaLabel,n=e.role,o=e.shapeRendering,i=e.className,a=e.events,s=e.transform,u=e.style,c=e.size,l=e.tabIndex,p=function(t){var e=t.polygon;return Array.isArray(e)&&e.length?"M ".concat(t.polygon.join("L")," Z"):""}(t),f=q_({"aria-label":r,className:i,role:n,shapeRendering:o,style:u,tabIndex:l,transform:s},a),h=Ha(t);if(c){var d=P().cloneElement(t.circleComponent,q_(q_({},f),{},{key:"".concat(t.id,"-circle-clip"),clipPath:"url(#".concat(t.clipId,")"),cx:t.x,cy:t.y,r:c})),m=P().cloneElement(t.clipPathComponent,{key:"".concat(t.id,"-voronoi-clip"),clipId:t.clipId},P().cloneElement(t.pathComponent,{d:p,className:i}));return P().cloneElement(t.groupComponent,{},[m,d])}return P().cloneElement(t.pathComponent,q_(q_(q_({},f),h),{},{d:p}
vendor: 9,407 bytes, line 1
1))};G_.propTypes=q_(q_({},Qi.primitiveProps),{},{circleComponent:A().element,clipId:A().oneOfType([A().number,A().string]),clipPathComponent:A().element,datum:A().object,groupComponent:A().element,pathComponent:A().element,polygon:A().array,size:A().number,x:A().number,y:A().number}),G_.defaultProps={pathComponent:P().createElement(ja,null),circleComponent:P().createElement(ia,null),clipPathComponent:P().createElement(da,null),groupComponent:P().createElement("g",null),role:"presentation",shapeRendering:"auto"};const W_=G_;function Z_(t){return function(){return t}}function H_(t){return t[0]}function K_(t){return t[1]}function Y_(){this._=null}function X_(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function J_(t,e){var r=e,n=e.R,o=r.U;o?o.L===r?o.L=n:o.R=n:t._=n,n.U=o,r.U=n,r.R=n.L,r.R&&(r.R.U=r),n.L=r}function Q_(t,e){var r=e,n=e.L,o=r.U;o?o.L===r?o.L=n:o.R=n:t._=n,n.U=o,r.U=n,r.L=n.R,r.L&&(r.L.U=r),n.R=r}function tx(t){for(;t.L;)t=t.L;return t}Y_.prototype={constructor:Y_,insert:function(t,e){var r,n,o;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;r=t}else this._?(t=tx(this._),e.P=null,e.N=t,t.P=t.L=e,r=t):(e.P=e.N=null,this._=e,r=null);for(e.L=e.R=null,e.U=r,e.C=!0,t=e;r&&r.C;)r===(n=r.U).L?(o=n.R)&&o.C?(r.C=o.C=!1,n.C=!0,t=n):(t===r.R&&(J_(this,r),r=(t=r).U),r.C=!1,n.C=!0,Q_(this,n)):(o=n.L)&&o.C?(r.C=o.C=!1,n.C=!0,t=n):(t===r.L&&(Q_(this,r),r=(t=r).U),r.C=!1,n.C=!0,J_(this,n)),r=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,r,n,o=t.U,i=t.L,a=t.R;if(r=i?a?tx(a):i:a,o?o.L===t?o.L=r:o.R=r:this._=r,i&&a?(n=r.C,r.C=t.C,r.L=i,i.U=r,r!==a?(o=r.U,r.U=t.U,t=r.R,o.L=t,r.R=a,a.U=r):(r.U=o,o=r,t=r.R)):(n=t.C,t=r),t&&(t.U=o),!n)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===o.L){if((e=o.R).C&&(e.C=!1,o.C=!0,J_(this,o),e=o.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,Q_(this,e),e=o.R),e.C=o.C,o.C=e.R.C=!1,J_(this,o),t=this._;break}}else if((e=o.L).C&&(e.C=!1,o.C=!0,Q_(this,o),e=o.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,J_(this,e),e=o.L),e.C=o.C,o.C=e.L.C=!1,Q_(this,o),t=this._;break}e.C=!0,t=o,o=o.U}while(!t.C);t&&(t.C=!1)}}};const ex=Y_;function rx(t,e,r,n){var o=[null,null],i=Px.push(o)-1;return o.left=t,o.right=e,r&&ox(o,t,e,r),n&&ox(o,e,t,n),Ex[t.index].halfedges.push(i),Ex[e.index].halfedges.push(i),o}function nx(t,e,r){var n=[e,r];return n.left=t,n}function ox(t,e,r,n){t[0]||t[1]?t.left===r?t[1]=n:t[0]=n:(t[0]=n,t.left=e,t.right=r)}function ix(t,e,r,n,o){var i,a=t[0],s=t[1],u=a[0],c=a[1],l=0,p=1,f=s[0]-u,h=s[1]-c;if(i=e-u,f||!(i>0)){if(i/=f,f<0){if(i<l)return;i<p&&(p=i)}else if(f>0){if(i>p)return;i>l&&(l=i)}if(i=n-u,f||!(i<0)){if(i/=f,f<0){if(i>p)return;i>l&&(l=i)}else if(f>0){if(i<l)return;i<p&&(p=i)}if(i=r-c,h||!(i>0)){if(i/=h,h<0){if(i<l)return;i<p&&(p=i)}else if(h>0){if(i>p)return;i>l&&(l=i)}if(i=o-c,h||!(i<0)){if(i/=h,h<0){if(i>p)return;i>l&&(l=i)}else if(h>0){if(i<l)return;i<p&&(p=i)}return!(l>0||p<1)||(l>0&&(t[0]=[u+l*f,c+l*h]),p<1&&(t[1]=[u+p*f,c+p*h]),!0)}}}}}function ax(t,e,r,n,o){var i=t[1];if(i)return!0;var a,s,u=t[0],c=t.left,l=t.right,p=c[0],f=c[1],h=l[0],d=l[1],m=(p+h)/2,y=(f+d)/2;if(d===f){if(m<e||m>=n)return;if(p>h){if(u){if(u[1]>=o)return}else u=[m,r];i=[m,o]}else{if(u){if(u[1]<r)return}else u=[m,o];i=[m,r]}}else if(s=y-(a=(p-h)/(d-f))*m,a<-1||a>1)if(p>h){if(u){if(u[1]>=o)return}else u=[(r-s)/a,r];i=[(o-s)/a,o]}else{if(u){if(u[1]<r)return}else u=[(o-s)/a,o];i=[(r-s)/a,r]}else if(f<d){if(u){if(u[0]>=n)return}else u=[e,a*e+s];i=[n,a*n+s]}else{if(u){if(u[0]<e)return}else u=[n,a*n+s];i=[e,a*e+s]}return t[0]=u,t[1]=i,!0}function sx(t,e){var r=t.site,n=e.left,o=e.right;return r===o&&(o=n,n=r),o?Math.atan2(o[1]-n[1],o[0]-n[0]):(r===n?(n=e[1],o=e[0]):(n=e[0],o=e[1]),Math.atan2(n[0]-o[0],o[1]-n[1]))}function ux(t,e){return e[+(e.left!==t.site)]}function cx(t,e){return e[+(e.left===t.site)]}var lx,px=[];function fx(){X_(this),this.x=this.y=this.arc=this.site=this.cy=null}function hx(t){var e=t.P,r=t.N;if(e&&r){var n=e.site,o=t.site,i=r.site;if(n!==i){var a=o[0],s=o[1],u=n[0]-a,c=n[1]-s,l=i[0]-a,p=i[1]-s,f=2*(u*p-c*l);if(!(f>=-Ax)){var h=u*u+c*c,d=l*l+p*p,m=(p*h-c*d)/f,y=(u*d-l*h)/f,v=px.pop()||new fx;v.arc=t,v.site=o,v.x=m+a,v.y=(v.cy=y+s)+Math.sqrt(m*m+y*y),t.circle=v;for(var g=null,b=Sx._;b;)if(v.y<b.y||v.y===b.y&&v.x<=b.x){if(!b.L){g=b.P;break}b=b.L}else{if(!b.R){g=b;break}b=b.R}Sx.insert(g,v),g||(lx=v)}}}}function dx(t){var e=t.circle;e&&(e.P||(lx=e.N),Sx.remove(e),px.push(e),X_(e),t.circle=null)}var mx=[];function yx(){X_(this),this.edge=this.site=this.circle=null}function vx(t){var e=mx.pop()||new yx;return e.site=t,e}function gx(t){dx(t),Ox.remove(t),mx.push(t),X_(t)}function bx(t){var e=t.circle,r=e.x,n=e.cy,o=[r,n],i=t.P,a=t.N,s=[t];gx(t);for(var u=i;u.circle&&Math.abs(r-u.circle.x)<jx&&Math.abs(n-u.circle.cy)<jx;)i=u.P,s.unshift(u),gx(u),u=i;s.unshift(u),dx(u);for(var c=a;c.circle&&Math.abs(r-c.circle.x)<jx&&Math.abs(n-c.circle.cy)<jx;)a=c.N,s.push(c),gx(c),c=a;s.push(c),dx(c);var l,p=s.length;for(l=1;l<p;++l)c=s[l],u=s[l-1],ox(c.edge,u.site,c.site,o);u=s[0],(c=s[p-1]).edge=rx(u.site,c.site,null,o),hx(u),hx(c)}function _x(t){for(var e,r,n,o,i=t[0],a=t[1],s=Ox._;s;)if((n=xx(s,a)-i)>jx)s=s.L;else{if(!((o=i-wx(s,a))>jx)){n>-jx?(e=s.P,r=s):o>-jx?(e=s,r=s.N):e=r=s;break}if(!s.R){e=s;break}s=s.R}!function(t){Ex[t.index]={site:t,halfedges:[]}}(t);var u=vx(t);if(Ox.insert(e,u),e||r){if(e===r)return dx(e),r=vx(e.site),Ox.insert(u,r),u.edge=r.edge=rx(e.site,u.site),hx(e),void hx(r);if(r){dx(e),dx(r);var c=e.site,l=c[0],p=c[1],f=t[0]-l,h=t[1]-p,d=r.site,m=d[0]-l,y=d[1]-p,v=2*(f*y-h*m),g=f*f+h*h,b=m*m+y*y,_=[(y*g-h*b)/v+l,(f*b-m*g)/v+p];ox(r.edge,c,d,_),u.edge=rx(c,t,null,_),r.edge=rx(t,d,null,_),hx(e),hx(r)}else u.edge=rx(e.site,u.site)}}function xx(t,e){var r=t.site,n=r[0],o=r[1],i=o-e;if(!i)return n;var a=t.P;if(!a)return-1/0;var s=(r=a.site)[0],u=r[1],c=u-e;if(!c)return s;var l=s-n,p=1/i-1/c,f=l/c;return p?(-f+Math.sqrt(f*f-2*p*(l*l/(-2*c)-u+c/2+o-i/2)))/p+n:(n+s)/2}function wx(t,e){var r=t.N;if(r)return xx(r,e);var n=t.site;return n[1]===e?n[0]:1/0}var Ox,Ex,Sx,Px,jx=1e-6,Ax=1e-12;function Cx(t,e,r){return(t[0]-r[0])*(e[1]-t[1])-(t[0]-e[0])*(r[1]-t[1])}function Tx(t,e){return e[1]-t[1]||e[0]-t[0]}function kx(t,e){var r,n,o,i=t.sort(Tx).pop();for(Px=[],Ex=new Array(t.length),Ox=new ex,Sx=new ex;;)if(o=lx,i&&(!o||i[1]<o.y||i[1]===o.y&&i[0]<o.x))i[0]===r&&i[1]===n||(_x(i),r=i[0],n=i[1]),i=t.pop();else{if(!o)break;bx(o.arc)}if(function(){for(var t,e,r,n,o=0,i=Ex.length;o<i;++o)if((t=Ex[o])&&(n=(e=t.halfedges).length)){var a=new Array(n),s=new Array(n);for(r=0;r<n;++r)a[r]=r,s[r]=sx(t,Px[e[r]]);for(a.sort((function(t,e){return s[e]-s[t]})),r=0;r<n;++r)s[r]=e[a[r]];for(r=0;r<n;++r)e[r]=s[r]}}(),e){var a=+e[0][0],s=+e[0][1],u=+e[1][0],c=+e[1][1];!function(t,e,r,n){for(var o,i=Px.length;i--;)ax(o=Px[i],t,e,r,n)&&ix(o,t,e,r,n)&&(Math.abs(o[0][0]-o[1][0])>jx||Math.abs(o[0][1]-o[1][1])>jx)||delete Px[i]}(a,s,u,c),function(t,e,r,n){var o,i,a,s,u,c,l,p,f,h,d,m,y=Ex.length,v=!0;for(o=0;o<y;++o)if(i=Ex[o]){for(a=i.site,s=(u=i.halfedges).length;s--;)Px[u[s]]||u.splice(s,1);for(s=0,c=u.length;s<c;)d=(h=cx(i,Px[u[s]]))[0],m=h[1],p=(l=ux(i,Px[u[++s%c]]))[0],f=l[1],(Math.abs(d-p)>jx||Math.abs(m-f)>jx)&&(u.splice(s,0,Px.push(nx(a,h,Math.abs(d-t)<jx&&n-m>jx?[t,Math.abs(p-t)<jx?f:n]:Math.abs(m-n)<jx&&r-d>jx?[Math.abs(f-n)<jx?p:r,n]:Math.abs(d-r)<jx&&m-e>jx?[r,Math.abs(p-r)<jx?f:e]:Math.abs(m-e)<jx&&d-t>jx?[Math.abs(f-e)<jx?p:t,e]:null))-1),++c);c&&(v=!1)}if(v){var g,b,_,x=1/0;for(o=0,v=null;o<y;++o)(i=Ex[o])&&(_=(g=(a=i.site)[0]-t)*g+(b=a[1]-e)*b)<x&&(x=_,v=i);if(v){var w=[t,e],O=[t,n],E=[r,n],S=[r,e];v.halfedges.push(Px.push(nx(a=v.site,w,O))-1,Px.push(nx(a,O,E))-1,Px.push(nx(a,E,S))-1,Px.push(nx(a,S,w))-1)}}for(o=0;o<y;++o)(i=Ex[o])&&(i.halfedges.length||delete Ex[o])}(a,s,u,c)}this.edges=Px,this.cells=Ex,Ox=Sx=Px=Ex=null}function Mx(t){return function(t){if(Array.isArray(t))return Ix(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Ix(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ix(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ix(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}kx.prototype={constructor:kx,polygons:function(){var t=this.edges;return this.cells.map((function(e){var r=e.halfedges.map((function(r){return ux(e,t[r])}));return r.data=e.site.data,r}))},triangles:function(){var t=[],e=this.edges;return this.cells.forEach((function(r,n){if(i=(o=r.halfedges).length)for(var o,i,a,s=r.site,u=-1,c=e[o[i-1]],l=c.left===s?c.right:c.left;++u<i;)a=l,l=(c=e[o[u]]).left===s?c.right:c.left,a&&l&&n<a.index&&n<l.index&&Cx(s,a,l)<0&&t.push([s.data,a.data,l.data])})),t},links:function(){return this.edges.filter((function(t){return t.right})).map((function(t){return{source:t.left.data,target:t.right.data}}))},find:function(t,e,r){for(var n,o,i=this,a=i._found||0,s=i.cells.length;!(o=i.cells[a]);)if(++a>=s)return null;var u=t-o.site[0],c=e-o.site[1],l=u*u+c*c;
1do{o=i.cells[n=a],a=null,o.halfedges.forEach((function(r){var n=i.edges[r],s=n.left;if(s!==o.site&&s||(s=n.right)){var u=t-s[0],c=e-s[1],p=u*u+c*c;p<l&&(l=p,a=s.index)}}))}while(null!==a);return i._found=n,null==r||l<=r*r?o.site:null}};var Dx=function(t,e,r){var n=[Math.min.apply(Math,Mx(e.x)),Math.min.apply(Math,Mx(e.y))],o=[Math.max.apply(Math,Mx(e.x)),Math.max.apply(Math,Mx(e.y))];return function(){var t=H_,e=K_,r=null;function n(n){return new kx(n.map((function(r,o){var i=[Math.round(t(r,o,n)/jx)*jx,Math.round(e(r,o,n)/jx)*jx];return i.index=o,i.data=r,i})),r)}return n.polygons=function(t){return n(t).polygons()},n.links=function(t){return n(t).links()},n.triangles=function(t){return n(t).triangles()},n.x=function(e){return arguments.length?(t="function"==typeof e?e:Z_(+e),n):t},n.y=function(t){return arguments.length?(e="function"==typeof t?t:Z_(+t),n):e},n.extent=function(t){return arguments.length?(r=null==t?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],n):r&&[[r[0][0],r[0][1]],[r[1][0],r[1][1]]]},n.size=function(t){return arguments.length?(r=null==t?null:[[0,0],[+t[0],+t[1]]],n):r&&[r[1][0]-r[0][0],r[1][1]-r[0][1]]},n}().x((function(e){return t.polar?function(t){return-1*r.x(void 0!==t._x1?t._x1:t._x)+Math.PI/2}(e):function(e){return t.horizontal?r.y(void 0!==e._y1?e._y1:e._y):r.x(void 0!==e._x1?e._x1:e._x)}(e)})).y((function(e){return function(e){return t.horizontal?r.x(void 0!==e._x1?e._x1:e._x):r.y(void 0!==e._y1?e._y1:e._y)}(e)})).extent([n,o])};function Lx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Rx(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Lx(Object(r),!0).forEach((function(e){zx(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Lx(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function zx(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}
1function Nx(t,e){return Nx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Nx(t,e)}function Fx(t){return Fx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Fx(t)}var Bx={width:450,height:300,padding:50},Vx=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Nx(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Fx(n);if(o){var r=Fx(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,(r=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=a.animationWhitelist,e=a.role,r=tt(this.props,Bx,e);if(this.shouldAnimate())return this.animateComponent(r,t);var n=this.renderData(r),o=r.standalone?this.renderContainer(r.containerComponent,n):n;return Ka(o,r)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(P().Component);Vx.animationWhitelist=["data","domain","height","padding","samples","size","style","width"],Vx.displayName="VictoryVoronoi",Vx.role="voronoi",Vx.defaultTransitions={onLoad:{duration:2e3,before:function(){return{opacity:0}
1},after:function(t){return t}},onExit:{duration:600,before:function(){return{opacity:0}}},onEnter:{duration:600,before:function(){return{opacity:0}},after:function(t){return t}}},Vx.propTypes=Rx(Rx(Rx({},Qi.baseProps),Qi.dataProps),{},{size:Gi}),Vx.defaultProps={containerComponent:P().createElement(Au,null),dataComponent:P().createElement(W_,null),labelComponent:P().createElement(wc,null),groupComponent:P().createElement("g",{role:"presentation"}),samples:50,sortOrder:"ascending",standalone:!0,theme:Bc.grayscale},Vx.getDomain=Cp,Vx.getData=lp,Vx.getBaseProps=function(t){return function(t,e){var r=tt(t,e,"scatter");t=E()({},r,function(t){var e=t.theme&&t.theme.voronoi&&t.theme.voronoi.style?t.theme.voronoi.style:{},r=G(t.style,e),n={x:J(t,"x"),y:J(t,"y")},o={x:Cp(t,"x"),y:Cp(t,"y")},i={x:Mi(t,"x").domain(o.x).range(t.horizontal?n.y:n.x),y:Mi(t,"y").domain(o.y).range(t.horizontal?n.x:n.y)},a=lp(t);return{domain:o,data:a=(a=op(a,o)).filter((function(t){return null!==t._x&&null!==t._y})),scale:i,style:r,polygons:Dx(t,n,i).polygons(a),origin:t.polar?t.origin||X(t):void 0}}(r));var n=t,o=n.data,i=n.domain,a=n.events,s=n.height,u=n.origin,c=n.padding,l=n.polar,p=n.polygons,f=n.scale,h=n.sharedEvents,d=n.standalone,m=n.style,y=n.theme,v=n.width,g=n.labels,b=n.name,_={parent:{style:m.parent,scale:f,domain:i,data:o,standalone:d,height:s,width:v,theme:y,origin:u,polar:l,padding:c,name:b}};return o.reduce((function(e,r,n){var i=ul()(p[n],"data"),s=ll()(r.eventKey)?n:r.eventKey,c=V(t,r),l={x:c.x,y:c.y,datum:r,data:o,index:n,scale:f,polygon:i,origin:u,size:t.size,style:m.data};return e[s]={data:l},(null!=Lu(t,r,n)||g&&(a||h))&&(e[s].labels=Bu(t,n)),e}),_)}(t,Bx)},Vx.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];const Ux=ql(Vx);function qx(t,e){return qx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},qx(t,e)}function $x(t){return $x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$x(t)}function Gx(t){return function(t){if(Array.isArray(t))return Wx(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Wx(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wx(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wx(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Zx=1/Number.MAX_SAFE_INTEGER,Hx=function(t){var e=t.scale,r=void 0===e?{}:e,n=t.dimension,o=void 0===n?"x":n;if(r[o])return r[o];var i=Mi(t,o),a=J(t,o),s=Ip(t,o)||[0,1];return i.range(a).domain(s),i},Kx=function(t){var e=t.horizontal,r=t.dimension,n=void 0===r?"x":r;return e?"x"===n?"y":"x":n},Yx=function(t,e){var r=Hx(t);return[r(Math.min.apply(Math,Gx(e))),r(Math.max.apply(Math,Gx(e)))]},Xx=function(t,e){var r=Hx(t);return[r.invert(Math.min.apply(Math,Gx(e))),r.invert(Math.max.apply(Math,Gx(e)))]},Jx=function(t){return Hx(t).range()},Qx=function(t){return Hx(t).domain()},tw=function(t,e){return t>=Ot(e)&&t<=wt(e)},ew=function(t,e){if(t){var r=Ot(t),n=wt(t),o=Ot(e),i=wt(e),a=r<o?o:Number(i)-Zx,s=n>i?i:Number(o)+Zx;return[tw(r,e)?r:a,tw(n,e)?n:s]}return e},rw=function(t,e,r){var n=t.handleWidth/2,o=Kx(t),i=["min","max"].reduce((function(t,i){return t[i]=tw(e,function(t){var e={min:"x"===o?Math.min.apply(Math,Gx(r)):Math.max.apply(Math,Gx(r)),max:"x"===o?Math.max.apply(Math,Gx(r)):Math.min.apply(Math,Gx(r))};return[e[t]-n,e[t]+n]}(i))?i:void 0,t}),{});return i.min&&i.max?"both":i.min||i.max},nw={stroke:"none",fill:"black",opacity:function(t){return t.active?.2:.1}},ow={pointerEvents:"none",stroke:"none",fill:"black",opacity:function(t){return t.active?.4:.3}},iw={pointerEvents:"none",stroke:"none",fill:"none"},aw=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&qx(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=$x(n);if(o){var r=$x(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}
1return e=a,r=[{key:"getRectDimensions",value:function(t,e,r){var n=t.brushDomain,o=Kx(t);r=r||ew(n,Qx(t));var i=Yx(t,r),a="x"===o?{y1:t.y1,y2:t.y2,x1:Math.min.apply(Math,Gx(i)),x2:Math.max.apply(Math,Gx(i))}:{x1:t.x1,x2:t.x2,y1:Math.min.apply(Math,Gx(i)),y2:Math.max.apply(Math,Gx(i))},s=a.x1,u=a.x2,c=a.y1,l=a.y2,p="x"===o?0:e/2,f="y"===o?0:e/2,h=Math.min(s,u)-p,d=Math.min(c,l)-f;return{x:h,y:d,width:Math.max(s,u)+p-h,height:Math.max(c,l)+f-d}}},{key:"getHandleDimensions",value:function(t){var e=t.handleWidth,r=t.x1,n=t.x2,o=t.y1,i=t.y2,a=t.brushDomain,s=Kx(t),u=t.brushWidth||t.width,c=ew(a,Qx(t)),l=Yx(t,c),p=Math.min(r,n)-u/2,f=Math.min(o,i)-u/2,h={min:"x"===s?Math.min.apply(Math,Gx(l))-e/2:p,max:"x"===s?Math.max.apply(Math,Gx(l))-e/2:p},d={min:"y"===s?Math.max.apply(Math,Gx(l))-e/2:f,max:"y"===s?Math.min.apply(Math,Gx(l))-e/2:f},m="x"===s?e:u,y="x"===s?u:e;return{min:{x:h.min,y:d.min,width:m,height:y},max:{x:h.max,y:d.max,width:m,height:y}}}},{key:"getCursor",value:function(t){var e=t.activeBrushes,r=void 0===e?{}:e,n=Kx(t);return r.minHandle||r.maxHandle?"x"===n?"ew-resize":"ns-resize":r.brush?"move":"crosshair"}},{key:"renderHandles",value:function(t){var e=t.handleComponent,r=t.handleStyle,n=t.id,o=t.brushDomain,i=t.datum,a=void 0===i?{}:i,s=t.activeBrushes,u=void 0===s?{}:s;if(!o)return null;var c=this.getHandleDimensions(t),l=E()({},iw,r),p=E()({handleValue:Ot(o)},a),f=E()({handleValue:wt(o)},a),h=E()({key:"".concat(n,"-min"),style:Z(l,{datum:p,active:u.minHandle})},c.min),d=E()({key:"".concat(n,"-max"),style:Z(l,{datum:f,active:u.maxHandle})},c.max);return[P().cloneElement(e,h),P().cloneElement(e,d)]}},{key:"renderBrush",value:function(t){var e=t.brushComponent,r=t.brushStyle,n=t.activeBrushes,o=void 0===n?{}:n,i=t.datum,a=void 0===i?{}:i;if(!t.brushDomain)return null;var s=t.brushWidth||t.width,u=this.getRectDimensions(t,s),c=Z(E()({},ow,r),{datum:a,active:o.brush}),l=E()({style:c},u);return P().cloneElement(e,l)}},{key:"renderBrushArea",value:function(t){var e=t.brushAreaComponent,r=t.brushAreaStyle,n=t.activeBrushes,o=void 0===n?{}:n,i=t.datum,a=void 0===i?{}:i,s=t.brushAreaWidth||t.width,u=this.getCursor(t),c=this.getRectDimensions(t,s,Qx(t)),l=Z(E()({cursor:u},nw,r),{datum:a,active:o.brushArea}),p=E()({style:l},c);return P().cloneElement(e,p)}},{key:"renderLine",value:function(t){var e=M()(t,["x1","x2","y1","y2","datum","scale","active","style"]);return P().cloneElement(t.lineComponent,e)}},{key:"render",value:function(){return P().createElement("g",this.props.events,this.renderLine(this.props),this.renderBrushArea(this.props),this.renderBrush(this.props),this.renderHandles(this.props))}}],r&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(P().Component);aw.propTypes={allowDrag:A().bool,allowDraw:A().bool,allowResize:A().bool,brushAreaComponent:A().element,brushAreaStyle:A().object,brushAreaWidth:A().number,brushComponent:A().element,brushDimension:A().oneOf(["x","y"]),brushDomain:A().array,brushStyle:A().object,brushWidth:A().number,className:A().string,dimension:A().oneOf(["x","y"]),disable:A().bool,events:A().object,groupComponent:A().element,handleComponent:A().element,handleStyle:A().object,handleWidth:A().number,id:A().oneOfType([A().number,A().string]),lineComponent:A().element,name:A().string,onBrushDomainChange:A().func,scale:A().object,style:A().object,type:A().string,width:A().number},aw.defaultProps={allowDrag:!0,allowDraw:!0,allowResize:!0,brushAreaComponent:P().createElement(ha,null),brushComponent:P().createElement(ha,null),groupComponent:P().createElement("g",null),handleComponent:P().createElement(ha,null),handleWidth:10,lineComponent:P().createElement(xa,null),width:10},aw.defaultEvents=function(t){return t.disable?void 0:[{target:t.type,eventHandlers:{onMouseEnter:function(t,e){t.preventDefault();var r=e.allowResize,n=e.brushDomain,o=Kx(e),i=e.parentSVG||Vp(t),a=Up(t,i)[o],s=Qx(e),u=ew(n,s),c=Yx(e,u),l=r&&rw(e,a,c),p={brushArea:!e.brushDomain,brush:tw(a,c)&&!cu()(s,u),minHandle:"min"===l||"both"===l,maxHandle:"min"===l||"both"===l};return[{mutation:function(){return{activeBrushes:p,brushDomain:e.brushDomain,parentSVG:i}}}]},onMouseDown:function(t,e){t.preventDefault();var r=e.allowResize,n=e.allowDrag,o=e.allowDraw,i=e.activeBrushes,a=e.brushDomain,s=Kx(e);if(!r&&!n)return[];var u=Qx(e),c=ew(a,u),l=e.parentSVG||Vp(t),p=Up(t,l)[s],f=Yx(e,c),h=r&&rw(e,p,f);return h?[{mutation:function(){return{parentSVG:l,isSelecting:!0,activeHandle:h,brushDomain:c,startPosition:p,activeBrushes:i}}}]:tw(p,f)&&!cu()(u,c)?[{mutation:function(){return{isPanning:n,startPosition:p,brushDomain:c,activeBrushes:i,parentSVG:l}}}]:o?[{mutation:function(){return{isSelecting:r,brushDomain:null,startPosition:p,activeBrushes:i,parentSVG:l}}}]:[]},onMouseMove:function(t,e){var r=e.isPanning,n=e.isSelecting,o=e.allowResize,i=e.allowDrag,a=e.onBrushDomainChange,s=e.brushDomain,u=Kx(e);(r||n)&&(t.preventDefault(),t.stopPropagation());var c=e.parentSVG||Vp(t),l=Up(t,c)[u],p=Qx(e),f=ew(s,p),h=Yx(e,f),d=rw(e,l,h),m={brushArea:!e.brushDomain,brush:tw(l,h)&&!cu()(p,f),minHandle:"min"===d||"both"===d,maxHandle:"max"===d||"both"===d};if(!e.isPanning&&!e.isSelecting)return[{mutation:function(){return{activeBrushes:m,brushDomain:e.brushDomain,parentSVG:c}}}];if(i&&r){var y=Jx(e),v=function(t,e){var r=t.brushDomain,n=t.startPosition,o=Yx(t,r),i=Jx(t),a=Math.abs(o[1]-o[0]),s=Math.min.apply(Math,Gx(i)),u=Math.max.apply(Math,Gx(i)),c=n?n-e:0,l=Math.min.apply(Math,Gx(o))-c,p=Math.max.apply(Math,Gx(o))-c;return[l>u-a?u-a:Math.max(l,s),p<s+a?s+a:Math.min(p,u)]}(e,l),g=Xx(e,v),b={startPosition:Math.max.apply(Math,Gx(v))>=Math.max.apply(Math,Gx(y))||Math.min.apply(Math,Gx(v))<=Math.min.apply(Math,Gx(y))?e.startPosition:l,isPanning:!0,brushDomain:g,activeBrushes:{brush:!0},parentSVG:c};return R()(a)&&a(g,N()({},b,e)),[{mutation:function(){return b}}]}if(o&&n){var _=s||[0,Zx],x=Yx(e,_),w="min"===e.activeHandle?"max":"min",O=e.activeHandle&&"both"===rw(e,l,x)?w:e.activeHandle;if(O){var E="x"===u?Math.max.apply(Math,Gx(x)):Math.min.apply(Math,Gx(x)),S="x"===u?Math.min.apply(Math,Gx(x)):Math.max.apply(Math,Gx(x));_=Xx(e,["max"===O?S:l,"min"===O?E:l])}else _=Xx(e,[e.startPosition,l]);var P={brushDomain:_,startPosition:e.startPosition,isSelecting:n,activeHandle:O,parentSVG:c,activeBrushes:{brush:!0,minHandle:"min"===d,maxHandle:"max"===d}};return R()(a)&&a(_,N()({},P,e)),[{mutation:function(){return P}}]}return[]},onMouseUp:function(t,e){var r=e.onBrushDomainChange,n=e.brushDomain,o=e.allowResize,i={isPanning:!1,isSelecting:!1,activeHandle:null,startPosition:null,brushDomain:n,activeBrushes:e.activeBrushes};return o&&R()(r)&&r(n,N()({},i,e)),[{mutation:function(){return i}}]},onMouseLeave:function(t,e){var r=e.brushDomain;return[{mutation:function(){return{isPanning:!1,isSelecting:!1,activeHandle:null,startPosition:null,brushDomain:r,activeBrushes:{}}}}]}}}]};var sw=r(66604),uw=r.n(sw),cw=r(23493),lw=r.n(cw);function pw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function fw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?pw(Object(r),!0).forEach((function(e){hw(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function hw(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function dw(t){return function(t){if(Array.isArray(t))return mw(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return mw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mw(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mw(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var yw={getDimension:function(t){var e=t.horizontal,r=t.brushDimension;return e&&r?"x"===r?"y":"x":r},withinBounds:function(t,e,r){var n=uw()(e,Number),o=n.x1,i=n.x2,a=n.y1,s=n.y2,u=uw()(t,Number),c=u.x,l=u.y;return c+(r=r?r/2:0)>=Math.min(o,i)&&c-r<=Math.max(o,i)&&l+r>=Math.min(a,s)&&l-r<=Math.max(a,s)},getDomainBox:function(t,e,r){var n=this.getDimension(t);e=N()({},e,t.domain),r=N()({},r,e);var o=qp(t,e),i=qp(t,r);return{x1:"y"!==n?Math.min.apply(Math,dw(i.x)):Math.min.apply(Math,dw(o.x)),x2:"y"!==n?Math.max.apply(Math,dw(i.x)):Math.max.apply(Math,dw(o.x)),y1:"x"!==n?Math.min.apply(Math,dw(i.y)):Math.min.apply(Math,dw(o.y)),y2:"x"!==n?Math.max.apply(Math,dw(i.y)):Math.max.apply(Math,dw(o.y))}},getHandles:function(t,e){var r=this.getDimension(t),n=e.x1,o=e.x2,i=e.y1,a=e.
1y2,s=Math.min(n,o),u=Math.max(n,o),c=Math.min(i,a),l=Math.max(i,a),p=t.handleWidth/2;return{left:"y"!==r&&{x1:s-p,x2:s+p,y1:i,y2:a},right:"y"!==r&&{x1:u-p,x2:u+p,y1:i,y2:a},top:"x"!==r&&{x1:n,x2:o,y1:c-p,y2:c+p},bottom:"x"!==r&&{x1:n,x2:o,y1:l-p,y2:l+p}}},getActiveHandles:function(t,e,r){var n=this,o=this.getHandles(e,r),i=["top","bottom","left","right"].reduce((function(e,r){return o[r]&&n.withinBounds(t,o[r])?e.concat(r):e}),[]);return i.length&&i},getResizeMutation:function(t,e){var r=t.x1,n=t.y1,o=t.x2,i=t.y2,a={left:{x1:Math.max(r,o),x2:Math.min(r,o),y1:n,y2:i},right:{x1:Math.min(r,o),x2:Math.max(r,o),y1:n,y2:i},top:{y1:Math.max(n,i),y2:Math.min(n,i),x1:r,x2:o},bottom:{y1:Math.min(n,i),y2:Math.max(n,i),x1:r,x2:o}};return e.reduce((function(t,e){return E()(t,a[e])}),{})},getMinimumDomain:function(){return{x:[0,1/Number.MAX_SAFE_INTEGER],y:[0,1/Number.MAX_SAFE_INTEGER]}},getDefaultBrushArea:function(t,e,r){var n=t.domain,o=t.fullDomain,i=t.scale,a=t.horizontal,s=t.allowResize||t.defaultBrushArea?t.defaultBrushArea:"move";if("none"===s)return this.getMinimumDomain();if("disable"===s)return e;if("move"===s){var u=this.getDomainBox(t,o,e),c=t.parentSVG||Vp(r),l=this.panBox(fw(fw(fw({},t),u),{},{brushDomain:e,startX:(u.x1+u.x2)/2,startY:(u.y1+u.y2)/2}),Up(r,c)),p=t.fullDomainBox||this.getDomainBox(t,o);return Gp(fw(fw({},this.constrainBox(l,p)),{},{scale:i,horizontal:a}))}return n},getSelectionMutation:function(t,e,r){var n=t.x,o=t.y,i=e.x1,a=e.x2,s=e.y1,u=e.y2;return{x1:"y"!==r?n:i,y1:"x"!==r?o:s,x2:"y"!==r?n:a,y2:"x"!==r?o:u}},panBox:function(t,e){var r=t.domain,n=t.startX,o=t.startY,i=this.getDimension(t),a=N()({},t.brushDomain,r),s=N()({},t.fullDomain,r),u=t.x1?t:this.getDomainBox(t,s,a),c=u.x1,l=u.x2,p=u.y1,f=u.y2,h=e.x,d=e.y,m=n?n-h:0,y=o?o-d:0;return{x1:"y"!==i?Math.min(c,l)-m:Math.min(c,l),x2:"y"!==i?Math.max(c,l)-m:Math.max(c,l),y1:"x"!==i?Math.min(p,f)-y:Math.min(p,f),y2:"x"!==i?Math.max(p,f)-y:Math.max(p,f)}},constrainBox:function(t,e){var r=uw()(e,Number),n=r.x1,o=r.y1,i=r.x2,a=r.y2;return{x1:t.x2>i?i-Math.abs(t.x2-t.x1):Math.max(t.x1,n),y1:t.y2>a?a-Math.abs(t.y2-t.y1):Math.max(t.y1,o),x2:t.x1<n?n+Math.abs(t.x2-t.x1):Math.min(t.x2,i),y2:t.y1<o?o+Math.abs(t.y2-t.y1):Math.min(t.y2,a)}},constrainPoint:function(t,e){var r=uw()(e,Number),n=r.x1,o=r.y1,i=r.x2,a=r.y2;return{x:Math.min(Math.max(t.x,n),i),y:Math.min(Math.max(t.y,o),a)}},hasMoved:function(t){var e=t.x1,r=t.x2,n=t.y1,o=t.y2,i=t.mouseMoveThreshold,a=this.getDimension(t),s=Math.abs(e-r)>=i,u=Math.abs(n-o)>=i;switch(a){case"x":return s;case"y":return u;default:return s||u}},onMouseDown:function(t,e){var r=this;t.preventDefault();var n=e.handleWidth,o=e.cachedBrushDomain,i=e.domain,a=e.allowResize,s=e.allowDrag,u=e.allowDraw,c=this.getDimension(e),l=a||e.defaultBrushArea?e.defaultBrushArea:"move";if(!a&&!s)return{};var p=e.fullDomainBox||this.getDomainBox(e,i),f=e.parentSVG||Vp(t),h=Up(t,f),d=h.x,m=h.y;if(!this.withinBounds({x:d,y:m},p,n))return{};var y=N()({},e.brushDomain,i),v=cu()(y,o)?e.currentDomain||y||i:y||i,g=this.getDomainBox(e,i,v),b=a&&this.getActiveHandles({x:d,y:m},e,g);return b?[{target:"parent",mutation:function(){return fw({isSelecting:!0,domainBox:g,fullDomainBox:p,cachedBrushDomain:y,currentDomain:v,parentSVG:f},r.getResizeMutation(g,b))}}]:this.withinBounds({x:d,y:m},g)&&!cu()(i,v)?[{target:"parent",mutation:function(){return fw({isPanning:s,startX:d,startY:m,domainBox:g,fullDomainBox:p,currentDomain:v,cachedBrushDomain:y,parentSVG:f},g)}}]:u?[{target:"parent",mutation:function(){return fw({isSelecting:a||"move"===l,domainBox:g,fullDomainBox:p,parentSVG:f,cachedBrushDomain:y,cachedCurrentDomain:v,currentDomain:r.getMinimumDomain()},r.getSelectionMutation({x:d,y:m},g,c))}}]:{}},onGlobalMouseMove:function(t,e){var r=e.scale,n=e.isPanning,o=e.isSelecting,i=e.fullDomainBox,a=e.onBrushDomainChange,s=e.allowResize,u=e.allowDrag,c=e.horizontal,l=e.mouseMoveThreshold,p=e.parentSVG,f=this.getDimension(e),h=Up(t,p),d=h.x,m=h.y;if(!s&&!u||l>0&&!this.hasMoved(fw(fw({},e),{},{x2:d,y2:m})))return{};if(u&&n){var y=e.startX,v=e.startY,g=this.panBox(e,{x:d,y:m}),b=this.constrainBox(g,i),_=Gp(fw(fw({},b),{},{scale:r,horizontal:c})),x=fw({currentDomain:_,parentSVG:p,startX:g.x2>=i.x2||g.x1<=i.x1?y:d,startY:g.y2>=i.y2||g.y1<=i.y1?v:m},b);return R()(a)&&a(_,N()({},x,e)),[{target:"parent",mutation:function(){return x}}]}if(s&&o){var w=this.constrainPoint({x:"y"!==f?d:e.x2,y:"x"!==f?m:e.y2},i),O=w.x,E=w.y,S=Gp({x2:O,y2:E,x1:e.x1,y1:e.y1,scale:r,horizontal:c}
1),P={x2:O,y2:E,currentDomain:S,parentSVG:p};return R()(a)&&a(S,N()({},P,e)),[{target:"parent",mutation:function(){return P}}]}return{}},onGlobalMouseUp:function(t,e){if(!e.isPanning&&!e.isSelecting)return{};var r=e.x1,n=e.y1,o=e.x2,i=e.y2,a=e.isPanning,s=e.isSelecting,u=e.onBrushDomainChange,c=e.onBrushDomainChangeEnd,l=e.onBrushCleared,p=e.currentDomain,f=e.allowResize,h=e.allowDrag,d=f||e.defaultBrushArea?e.defaultBrushArea:"move",m={isPanning:!1,isSelecting:!1};if(!f&&(void 0===d||"none"===d)||r!==o&&n!==i)(h&&a||f&&s)&&R()(c)&&c(p,N()({},m,e));else{var y=e.cachedCurrentDomain||p,v=this.getDefaultBrushArea(e,y,t);m.currentDomain=v,R()(u)&&u(v,N()({},m,e)),R()(c)&&c(v,N()({},m,e)),R()(l)&&l(v,N()({},m,e))}return[{target:"parent",mutation:function(){return m}}]}},vw=fw(fw({},yw),{},{onMouseDown:yw.onMouseDown.bind(yw),onGlobalMouseUp:yw.onGlobalMouseUp.bind(yw),onGlobalMouseMove:lw()(yw.onGlobalMouseMove.bind(yw),16,{leading:!0,trailing:!1})});function gw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function bw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?gw(Object(r),!0).forEach((function(e){_w(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _w(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xw(t){return function(t){if(Array.isArray(t))return ww(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return ww(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ww(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ww(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}
1function Ow(t,e){return Ow=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ow(t,e)}function Ew(t){return Ew=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ew(t)}var Sw=function(t){var e;return e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ow(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Ew(n);if(o){var r=Ew(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,r=[{key:"getSelectBox",value:function(t,e){var r=e.x,n=e.y,o=t.brushStyle,i=t.brushComponent,a=t.name,s=i.props&&i.props.style,u=t.allowDrag||t.allowResize?"move":"auto";return r[0]!==r[1]&&n[0]!==n[1]?P().cloneElement(i,{key:"".concat(a,"-brush"),width:Math.abs(r[1]-r[0])||1,height:Math.abs(n[1]-n[0])||1,x:Math.min(r[0],r[1]),y:Math.min(n[0],n[1]),cursor:u,style:N()({},s,o)}):null}},{key:"getCursorPointers",value:function(t){var e={yProps:"ns-resize",xProps:"ew-resize"};return!t.allowResize&&t.allowDrag?(e.xProps="move",e.yProps="move"):t.allowResize||t.allowDrag||(e.xProps="auto",e.yProps="auto"),e}},{key:"getHandles",value:function(t,e){var r=t.handleWidth,n=t.handleStyle,o=t.handleComponent,i=t.name,a=vw.getDomainBox(t,e),s=a.x1,u=a.x2,c=a.y1,l=a.y2,p=vw.getHandles(t,a),f=p.top,h=p.bottom,d=p.left,m=p.right,y=Math.abs(u-s)||1,v=Math.abs(l-c)||1,g=o.props&&o.props.style||{},b=N()({},g,n),_=this.getCursorPointers(t),x={style:b,width:y,height:r,cursor:_.yProps},w={style:b,width:r,height:v,cursor:_.xProps},O={top:f&&E()({x:f.x1,y:f.y1},x),bottom:h&&E()({x:h.x1,y:h.y1},x),left:d&&E()({y:d.y1,x:d.x1},w),right:m&&E()({y:m.y1,x:m.x1},w)},S=["top","bottom","left","right"].reduce((function(t,e){return O[e]?t.concat(P().cloneElement(o,E()({key:"".concat(i,"-handle-").concat(e)},O[e]))):t}),[]);return S.length?S:null}},{key:"getRect",value:function(t){var e=t.currentDomain,r=t.cachedBrushDomain,n=N()({},t.brushDomain,t.domain),o=cu()(n,r)?N()({},e,n):n,i=qp(t,o),a=this.getSelectBox(t,i);return a?[a,this.getHandles(t,o)]:[]}},{key:"getChildren",value:function(t){return[].concat(xw(P().Children.toArray(t.children)),xw(this.getRect(t)))}}],r&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(t),e.displayName="VictoryBrushContainer",e.propTypes=bw(bw({},Au.propTypes),{},{allowDrag:A().bool,allowDraw:A().bool,allowResize:A().bool,brushComponent:A().element,brushDimension:A().oneOf(["x","y"]),brushDomain:A().shape({x:A().array,y:A().array}),brushStyle:A().object,defaultBrushArea:A().oneOf(["all","disable","none","move"]),disable:A().bool,handleComponent:A().element,handleStyle:A().object,handleWidth:A().number,onBrushCleared:A().func,onBrushDomainChange:A().func,onBrushDomainChangeEnd:A().func}),e.defaultProps=bw(bw({},Au.defaultProps),{},{allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:P().createElement(ra,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:P().createElement(ra,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0}),e.defaultEvents=function(t){return[{target:"parent",eventHandlers:{onMouseDown:function(e,r){return t.disable?{}:vw.onMouseDown(e,r)},onTouchStart:function(e,r){return t.disable?{}:vw.onMouseDown(e,r)},onGlobalMouseMove:function(e,r){return t.disable||!r.isPanning&&!r.isSelecting?{}:vw.onGlobalMouseMove(e,r)},onGlobalTouchMove:function(e,r){return t.disable||!r.isPanning&&!r.isSelecting?{}:vw.onGlobalMouseMove(e,r)},onGlobalMouseUp:function(e,r){return t.disable?{}:vw.onGlobalMouseUp(e,r)},onGlobalTouchEnd:function(e,r){return t.disable?{}:vw.onGlobalMouseUp(e,r)},onGlobalTouchCancel:function(e,r){return t.disable?{}:vw.onGlobalMouseUp(e,r)}}}]},e},Pw=Sw(Au);var jw=function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.handleMouseMove=function(t,r){var n=r.onCursorChange,o=r.domain,i=e.getDimension(r),a=r.parentSVG||Vp(t),s=Up(t,a),u=$p(r,r.scale,s.x,s.y);return e.withinBounds(u,{x1:o.x[0],x2:o.x[1],y1:o.y[0],y2:o.y[1]}
1)||(u=null),R()(n)&&(u?n(i?u[i]:u,r):u!==r.cursorValue&&n(r.defaultCursorValue||null,r)),[{target:"parent",eventKey:"parent",mutation:function(){return{cursorValue:u,parentSVG:a}}}]},this.onMouseMove=lw()(this.handleMouseMove,16,{leading:!0,trailing:!1}),this.onMouseLeave=this.handleMouseMove,this.onTouchEnd=function(t,e){var r=e.onCursorChange;return R()(e.onCursorChange)&&r(null,e),[{target:"parent",eventKey:"parent",mutation:function(){return{cursorValue:null}}}]}}var e,r;return e=t,r=[{key:"getDimension",value:function(t){var e=t.horizontal,r=t.cursorDimension;return e&&r?"x"===r?"y":"x":r}},{key:"withinBounds",value:function(t,e){var r=uw()(e,Number),n=r.x1,o=r.x2,i=r.y1,a=r.y2,s=uw()(t,Number),u=s.x,c=s.y;return u>=Math.min(n,o)&&u<=Math.max(n,o)&&c>=Math.min(i,a)&&c<=Math.max(i,a)}}],r&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Aw=new jw;function Cw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Tw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Cw(Object(r),!0).forEach((function(e){Iw(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function kw(t){return function(t){if(Array.isArray(t))return Mw(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Mw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mw(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mw(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Iw(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Dw(t,e){return Dw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Dw(t,e)}function Lw(t){return Lw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Lw(t)}function Rw(t){var e;return e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Dw(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Lw(n);if(o){var r=Lw(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,r=[{key:"getCursorPosition",value:function(t){var e=t.cursorValue,r=t.defaultCursorValue,n=t.domain,o=t.cursorDimension;return e||("number"==typeof r?Iw({x:(n.x[0]+n.x[1])/2,y:(n.y[0]+n.y[1])/2},o,r):r)}},{key:"getCursorLabelOffset",value:function(t){var e=t.cursorLabelOffset;return"number"==typeof e?{x:e,y:e}:e}},{key:"getPadding",value:function(t){return void 0===t.padding?U(t.children.find((function(t){return mu()(t.props)&&void 0!==t.props.padding})).props):U(t)}},{key:"getCursorElements",value:function(t){var e=t.scale,r=t.cursorLabelComponent,n=t.cursorLabel,o=t.cursorComponent,i=t.width,a=t.height,s=t.name,u=t.horizontal,c=t.theme,l=Aw.getDimension(t),p=this.getCursorPosition(t),f=this.getCursorLabelOffset(t);if(!p)return[];var h=[],d=this.getPadding(t),m={x:u?e.y(p.y):e.x(p.x),y:u?e.x(p.x):e.y(p.y)};if(n){var y=N()({active:!0},r.props,{x:m.x+f.x,y:m.y+f.y,datum:p,active:!0,key:"".concat(s,"-cursor-label")});if(q(r)){var v=c&&c.tooltip||{};y=N()({},y,v)}h.push(P().cloneElement(r,N()({},y,{text:W(n,y)})))}var g=E()({stroke:"black"},o.props.style);return"x"!==l&&void 0!==l||h.push(P().cloneElement(o,{key:"".concat(s,"-x-cursor"),x1:m.x,x2:m.x,y1:d.top,y2:a-d.bottom,style:g})),"y"!==l&&void 0!==l||h.push(P().cloneElement(o,{key:"".concat(s,"-y-cursor"),x1:d.left,x2:i-d.right,y1:m.y,y2:m.y,style:g})),h}},{key:"getChildren",value:function(t){return[].concat(kw(P().Children.toArray(t.children)),kw(this.getCursorElements(t)))}}],r&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(t),e.displayName="VictoryCursorContainer",e.propTypes=Tw(Tw({},Au.propTypes),{},{cursorDimension:A().oneOf(["x","y"]),cursorLabel:A().func,cursorLabelComponent:A().element,cursorLabelOffset:A().oneOfType([A().number,A().shape({x:A().number,y:A().number}
1)]),defaultCursorValue:A().oneOfType([A().number,A().shape({x:A().number,y:A().number})]),disable:A().bool,onCursorChange:A().func}),e.defaultProps=Tw(Tw({},Au.defaultProps),{},{cursorLabelComponent:P().createElement(wc,null),cursorLabelOffset:{x:5,y:-10},cursorComponent:P().createElement(xa,null)}),e.defaultEvents=function(t){return[{target:"parent",eventHandlers:{onMouseLeave:function(e,r){return t.disable?{}:Aw.onMouseLeave(e,r)},onTouchCancel:function(){return[]},onMouseMove:function(e,r){return t.disable?{}:Aw.onMouseMove(e,r)},onTouchMove:function(e,r){return t.disable?{}:Aw.onMouseMove(e,r)}}}]},e}var zw=Rw(Au);function Nw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Fw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Nw(Object(r),!0).forEach((function(e){Bw(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Nw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Bw(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Vw(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Uw={getDimension:function(t){var e=t.horizontal,r=t.selectionDimension;return e&&r?"x"===r?"y":"x":r},getDatasets:function(t){return t.data?[{data:t.data}]:rt(P().Children.toArray(t.children),(function(e,r,n){var o=t.selectionBlacklist||[];if(!dp(e)||ft()(o,r))return null;if(e.type&&R()(e.type.getData)){var i=(e=n?P().cloneElement(e,n.props):e).props&&e.type.getData(e.props);return i?{childName:r,data:i}:null}var a,s=(a=lp(e.props),Array.isArray(a)&&a.length>0?a:void 0);return s?{childName:r,data:s}:null}),t)},filterDatasets:function(t,e,r){var n=this,o=e.reduce((function(e,o){var i=n.getSelectedData(t,o.data,r);return i?e.concat({childName:o.childName,eventKey:i.eventKey,data:i.data}):e}),[]);return o.length?o:null},getSelectedData:function(t,e){for(var r,n=t.x1,o=t.y1,i=t.x2,a=t.y2,s=[],u=[],c=0,l=0,p=e.length;l<p;l++){var f=e[l];(r=V(t,f)).x>=Math.min(n,i)&&r.x<=Math.max(n,i)&&r.y>=Math.min(o,a)&&r.y<=Math.max(o,a)&&(u[c]=f,s[c]=void 0===f.eventKey?l:f.eventKey,c++)}return c>0?{eventKey:s,data:u}:null},onMouseDown:function(t,e){t.preventDefault();var r=e.activateSelectedData,n=e.allowSelection,o=e.polar,i=e.selectedData;if(!n)return{};var a=this.getDimension(e),s=e.parentSVG||Vp(t),u=Up(t,s),c=u.x,l=u.y,p={x1:o||"y"!==a?c:qp(e).x[0],y1:o||"x"!==a?l:qp(e).y[0],select:!0,x2:o||"y"!==a?c:qp(e).x[1],y2:o||"x"!==a?l:qp(e).y[1],parentSVG:s};i&&R()(e.onSelectionCleared)&&e.onSelectionCleared(N()({},p,e));var f,h=[{target:"parent",mutation:function(){return p}}],d=i&&r?i.map((function(t){return{childName:t.childName,eventKey:t.eventKey,target:"data",mutation:function(){return null}}})):[];return h.concat.apply(h,function(t){if(Array.isArray(t))return Vw(t)}(f=d)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(f)||function(t,e){if(t){if("string"==typeof t)return Vw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vw(t,e):void 0}}(f)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())},onMouseMove:function(t,e){var r=e.allowSelection,n=e.select,o=e.polar,i=this.getDimension(e);if(!r||!n)return null;var a=e.parentSVG||Vp(t),s=Up(t,a),u=s.x,c=s.y,l=o||"y"!==i?u:qp(e).x[1],p=o||"x"!==i?c:qp(e).y[1];return{target:"parent",mutation:function(){return{x2:l,y2:p,parentSVG:a}}}},onMouseUp:function(t,e){var r=e.activateSelectedData,n=e.allowSelection,o=e.x2,i=e.y2;if(!n)return null;if(!o||!i)return[{target:"parent",mutation:function(){return{select:!1,x1:null,x2:null,y1:null,y2:null}}}];var a=this.getDatasets(e),s=Gp(e),u=this.filterDatasets(e,a,s),c={selectedData:u,datasets:a,select:!1,x1:null,x2:null,y1:null,y2:null},l=u&&R()(e.onSelection)?e.onSelection(u,s,N()({},c,e)):{},p=[{target:"parent",mutation:function(){return c}}],f=u&&r?u.map((function(t){return{childName:t.childName,eventKe
1y:t.eventKey,target:"data",mutation:function(){return E()({active:!0},l)}}})):[];return p.concat(f)}};const qw=Fw(Fw({},Uw),{},{onMouseDown:Uw.onMouseDown.bind(Uw),onMouseUp:Uw.onMouseUp.bind(Uw),onMouseMove:lw()(Uw.onMouseMove.bind(Uw),16,{leading:!0,trailing:!1})});function $w(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Gw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$w(Object(r),!0).forEach((function(e){Ww(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$w(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ww(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zw(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Hw(t,e){return Hw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Hw(t,e)}function Kw(t){return Kw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Kw(t)}var Yw=function(t){var e;return e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Hw(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Kw(n);if(o){var r=Kw(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,(r=[{key:"getRect",value:function(t){var e=t.x1,r=t.x2,n=t.y1,o=t.y2,i=t.selectionStyle,a=t.selectionComponent,s=t.name,u=Math.abs(r-e)||1,c=Math.abs(o-n)||1,l=Math.min(e,r),p=Math.min(n,o);return o&&r&&e&&n?P().cloneElement(a,{key:"".concat(s,"-selection"),x:l,y:p,width:u,height:c,style:i}):null}},{key:"getChildren",value:function(t){return[].concat(function(t){if(Array.isArray(t))return Zw(t)}(e=P().Children.toArray(t.children))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return Zw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Zw(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[this.getRect(t)]);var e}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(t),e.displayName="VictorySelectionContainer",e.propTypes=Gw(Gw({},Au.propTypes),{},{activateSelectedData:A().bool,allowSelection:A().bool,disable:A().bool,onSelection:A().func,onSelectionCleared:A().func,selectionBlacklist:A().arrayOf(A().string),selectionComponent:A().element,selectionDimension:A().oneOf(["x","y"]),selectionStyle:A().object}),e.defaultProps=Gw(Gw({},Au.defaultProps),{},{activateSelectedData:!0,allowSelection:!0,selectionComponent:P().createElement(ra,null),selectionStyle:{stroke:"transparent",fill:"black",fillOpacity:.1}}),e.defaultEvents=function(t){return[{target:"parent",eventHandlers:{onMouseDown:function(e,r){return t.disable?{}:qw.onMouseDown(e,r)},onTouchStart:function(e,r){return t.disable?{}:qw.onMouseDown(e,r)},onMouseMove:function(e,r){return t.disable?{}:qw.onMouseMove(e,r)},onTouchMove:function(e,r){return t.disable?{}:qw.onMouseMove(e,r)},onMouseUp:function(e,r){return t.disable?{}:qw.onMouseUp(e,r)},onTouchEnd:function(e,r){return t.disable?{}:qw.onMouseUp(e,r)}}}]},e};const Xw=Yw(Au);function Jw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Qw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?Jw(Object(r),!0).forEach((function(e){tO(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function tO(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var eO=function(t){var e=t.orientation||"top";return"left"===e||"right"===e?function(t){var e=t.pointerWidth,r=t.cornerRadius,n=t.orientation,o=t.width,i=t.height,a=t.center,s="left"===n?1:-1,u=t.x+(t.dx||0),c=t.y+(t.dy||0),l=lt()(a)&&a.x,p=lt()(a)&&a.y,f=l-s*(o/2),h=l+s*(o/2),d=p+i/2,m=p-i/2,y=s*(u-f)>0?0:t.pointerLength,v="left"===n?"0 0 0":"0 0 1",g="".concat(r," ").concat(r," ").concat(v);return"M ".concat(f,", ").concat(p-e/2,"\n L ").concat(y?u:f,", ").concat(y?c:p+e/2,"\n L ").concat(f,", ").concat(p+e/2,"\n L ").concat(f,", ").concat(d-r,"\n A ").concat(g," ").concat(f+s*r,", ").concat(d,"\n L ").concat(h-s*r,", ").concat(d,"\n A ").concat(g," ").concat(h,", ").concat(d-r,"\n L ").concat(h,", ").concat(m+r,"\n A ").concat(g," ").concat(h-s*r,", ").concat(m,"\n L ").concat(f+s*r,", ").concat(m,"\n A ").concat(g," ").concat(f,", ").concat(m+r,"\n z")}(t):function(t){var e=t.pointerWidth,r=t.cornerRadius,n=t.orientation,o=t.width,i=t.height,a=t.center,s="bottom"===n?1:-1,u=t.x+(t.dx||0),c=t.y+(t.dy||0),l=lt()(a)&&a.x,p=lt()(a)&&a.y,f=p+s*(i/2),h=p-s*(i/2),d=l+o/2,m=l-o/2,y=s*(c-f)<0?0:t.pointerLength,v="bottom"===n?"0 0 0":"0 0 1",g="".concat(r," ").concat(r," ").concat(v);return"M ".concat(l-e/2,", ").concat(f,"\n L ").concat(y?u:l+e/2,", ").concat(y?c:f,"\n L ").concat(l+e/2,", ").concat(f,"\n L ").concat(d-r,", ").concat(f,"\n A ").concat(g," ").concat(d,", ").concat(f-s*r,"\n L ").concat(d,", ").concat(h+s*r,"\n A ").concat(g," ").concat(d-r,", ").concat(h,"\n L ").concat(m+r,", ").concat(h,"\n A ").concat(g," ").concat(m,", ").concat(h+s*r,"\n L ").concat(m,", ").concat(f-s*r,"\n A ").concat(g," ").concat(m+r,", ").concat(f,"\n z")}(t)},rO=function(t){t=function(t){var e=W(t.id,t),r=Z(t.style,t);return E()({},t,{id:e,style:r})}(t);var e=Ha(t);return P().cloneElement(t.pathComponent,Qw(Qw(Qw({},t.events),e),{},{style:t.style,d:eO(t),className:t.className,shapeRendering:t.shapeRendering,role:t.role,transform:t.transform,clipPath:t.clipPath}))};rO.propTypes=Qw(Qw({},Qi.primitiveProps),{},{center:A().shape({x:A().number,y:A().number}),cornerRadius:A().number,datum:A().object,dx:A().number,dy:A().number,height:A().number,orientation:A().oneOf(["top","bottom","left","right"]),pathComponent:A().element,pointerLength:A().number,pointerWidth:A().number,width:A().number,x:A().number,y:A().number}),rO.defaultProps={pathComponent:P().createElement(ja,null),role:"presentation",shapeRendering:"auto"};const nO=rO;function oO(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function iO(t,e){return iO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},iO(t,e)}function aO(t){return aO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},aO(t)}var sO={cornerRadius:5,pointerLength:10,pointerWidth:10},uO=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&iO(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=aO(n);if(o){var r=aO(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).id=void 0===t.id?vu()("tooltip-"):t.id,e}
1return e=a,r=[{key:"getDefaultOrientation",value:function(t){var e=t.datum,r=t.horizontal;if(!t.polar){var n=r?"right":"top",o=r?"left":"bottom";return e&&e.y<0?o:n}return this.getPolarOrientation(t,e)}},{key:"getPolarOrientation",value:function(t,e){var r=Fu(t,e),n=t.labelPlacement||"vertical";return" vertical"===n?this.getVerticalOrientations(r):"parallel"===n?r<90||r>270?"right":"left":r>180?"bottom":"top"}},{key:"getVerticalOrientations",value:function(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}},{key:"getStyles",value:function(t){var e=t.theme||Bc.grayscale,r=e&&e.tooltip&&e.tooltip.style?e.tooltip.style:{},n=Array.isArray(t.style)?t.style.map((function(t){return N()({},t,r)})):N()({},t.style,r),o=e&&e.tooltip&&e.tooltip.flyoutStyle?e.tooltip.flyoutStyle:{},i=t.flyoutStyle?N()({},t.flyoutStyle,o):o,a=Array.isArray(n)?n.map((function(e){return Z(e,t)})):Z(n,t);return{style:a,flyoutStyle:Z(i,E()({},t,{style:a}))}}},{key:"getEvaluatedProps",value:function(t){var e=t.cornerRadius,r=t.centerOffset,n=t.dx,o=t.dy,i=W(t.active,t),a=W(t.text,E()({},t,{active:i})),s=this.getStyles(E()({},t,{active:i,text:a})),u=s.style,c=s.flyoutStyle,l=W(t.orientation,E()({},t,{active:i,text:a,style:u,flyoutStyle:c}))||this.getDefaultOrientation(t),p=U({padding:W(t.flyoutPadding,E()({},t,{active:i,text:a,style:u,flyoutStyle:c,orientation:l}))||this.getLabelPadding(u)}),f=W(t.pointerWidth,E()({},t,{active:i,text:a,style:u,flyoutStyle:c,orientation:l})),h=W(t.pointerLength,E()({},t,{active:i,text:a,style:u,flyoutStyle:c,orientation:l})),d=sc(a,u),m=this.getDimensions(E()({},t,{style:u,flyoutStyle:c,active:i,text:a,orientation:l,flyoutPadding:p,pointerWidth:f,pointerLength:h}),d),y=m.flyoutHeight,v=m.flyoutWidth,g=E()({},t,{active:i,text:a,style:u,flyoutStyle:c,orientation:l,flyoutHeight:y,flyoutWidth:v,flyoutPadding:p,pointerWidth:f,pointerLength:h}),b=lt()(r)&&void 0!==r.x?W(r.x,g):0,_=lt()(r)&&void 0!==r.y?W(r.y,g):0;return E()({},g,{centerOffset:{x:b,y:_},dx:void 0!==n?W(n,g):0,dy:void 0!==o?W(o,g):0,cornerRadius:W(e,g)})}},{key:"getCalculatedValues",value:function(t){var e=t.style,r=t.text,n=t.flyoutStyle,o={height:t.flyoutHeight,width:t.flyoutWidth};return{style:e,flyoutStyle:n,labelSize:sc(r,e),flyoutDimensions:o,flyoutCenter:this.getFlyoutCenter(t,o),transform:this.getTransform(t)}}},{key:"getTransform",value:function(t){var e=t.x,r=t.y,n=(t.style||{}).angle||t.angle||this.getDefaultAngle(t);return n?"rotate(".concat(n," ").concat(e," ").concat(r,")"):void 0}},{key:"getDefaultAngle",value:function(t){var e=t.polar,r=t.labelPlacement,n=t.orientation,o=t.datum;if(!e||!r||"vertical"===r)return 0;var i,a=Fu(t,o);return 0===a||180===a?i="top"===n&&180===a?270:90:a>0&&a<180?i=90-a:a>180&&a<360&&(i=270-a),i+(a>90&&a<180||a>270?1:-1)*("perpendicular"===r?0:90)}},{key:"constrainTooltip",value:function(t,e,r){var n=t.x,o=t.y,i=r.width,a=r.height,s=[0,e.width],u=[0,e.height],c=[n-i/2,n+i/2],l=[o-a/2,o+a/2],p=[c[0]<s[0]?s[0]-c[0]:0,c[1]>s[1]?c[1]-s[1]:0],f=[l[0]<u[0]?u[0]-l[0]:0,l[1]>u[1]?l[1]-u[1]:0];return{x:Math.round(n+p[0]-p[1]),y:Math.round(o+f[0]-f[1])}}},{key:"getFlyoutCenter",value:function(t,e){var r=t.x,n=t.y,o=t.dx,i=t.dy,a=t.pointerLength,s=t.orientation,u=t.constrainToVisibleArea,c=t.centerOffset,l=e.height,p=e.width,f="left"===s?-1:1,h="bottom"===s?-1:1,d={x:"left"===s||"right"===s?r+f*(a+p/2+f*o):r+o,y:"top"===s||"bottom"===s?n-h*(a+l/2-h*i):n+i},m=lt()(t.center)&&void 0!==t.center.x?t.center.x:d.x,y=lt()(t.center)&&void 0!==t.center.y?t.center.y:d.y,v={x:m+c.x,y:y+c.y};return u?this.constrainTooltip(v,t,e):v}},{key:"getLabelPadding",value:function(t){if(!t)return 0;var e,r=Array.isArray(t)?t.map((function(t){return t.padding})):[t.padding];return Math.max.apply(Math,(e=r,function(t){if(Array.isArray(t))return oO(t)}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return oO(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oO(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([0]))}},{key:"getDimensions",value:function(t,e){var r,n,o,i,a=t.orientation,s=t.pointerLength,u=t.pointerWidth,c=t.flyoutHeight,l=t.flyoutWidth,p=t.flyoutPadding,f=W(t.cornerRadius,t);
1return{flyoutHeight:c?W(c,t):(o=e.height+p.top+p.bottom,i="top"===a||"bottom"===a?2*f:2*f+u,Math.max(i,o)),flyoutWidth:l?W(l,t):(r=e.width+p.left+p.right,n="left"===a||"right"===a?2*f+s:2*f,Math.max(n,r))}}},{key:"getLabelProps",value:function(t,e){var r=e.flyoutCenter,n=e.style,o=e.labelSize,i=e.dy,a=void 0===i?0:i,s=e.dx,u=void 0===s?0:s,c=t.text,l=t.datum,p=t.activePoints,f=t.labelComponent,h=t.index,d=t.flyoutPadding,m=(Array.isArray(n)&&n.length?n[0].textAnchor:n.textAnchor)||"middle";return N()({},f.props,{key:"".concat(this.id,"-label-").concat(h),text:c,datum:l,activePoints:p,textAnchor:m,dy:a,dx:u,style:n,x:function(){if(!m||"middle"===m)return r.x;var t="end"===m?-1:1;return r.x-t*(o.width/2)}()+(d.left-d.right)/2,y:r.y+(d.top-d.bottom)/2,verticalAnchor:"middle",angle:n.angle})}},{key:"getPointerOrientation",value:function(t,e,r){var n=e.y+r.height/2,o=e.y-r.height/2,i=e.x-r.width/2,a=e.x+r.width/2,s=[{side:"top",val:o>t.y?o-t.y:-1},{side:"bottom",val:n<t.y?t.y-n:-1},{side:"right",val:a<t.x?t.x-a:-1},{side:"left",val:i>t.x?i-t.x:-1}];return Fs()(s,"val","desc")[0].side}},{key:"getFlyoutProps",value:function(t,e){var r=e.flyoutDimensions,n=e.flyoutStyle,o=e.flyoutCenter,i=t.x,a=t.y,s=t.dx,u=t.dy,c=t.datum,l=t.activePoints,p=t.index,f=t.pointerLength,h=t.pointerWidth,d=t.cornerRadius,m=t.events,y=t.flyoutComponent,v=W(t.pointerOrientation,t);return N()({},y.props,{x:i,y:a,dx:s,dy:u,datum:c,activePoints:l,index:p,pointerLength:f,pointerWidth:h,cornerRadius:d,events:m,orientation:v||this.getPointerOrientation({x:i,y:a},o,r),key:"".concat(this.id,"-tooltip-").concat(p),width:r.width,height:r.height,style:n,center:o})}},{key:"renderTooltip",value:function(t){var e=W(t.active,t),r=t.renderInPortal;if(!e)return r?P().createElement(Iu,null,null):null;var n=this.getEvaluatedProps(t),o=n.flyoutComponent,i=n.labelComponent,a=n.groupComponent,s=this.getCalculatedValues(n),u=[P().cloneElement(o,this.getFlyoutProps(n,s)),P().cloneElement(i,this.getLabelProps(n,s))],c=P().cloneElement(a,{role:"presentation",transform:s.transform},u);return r?P().createElement(Iu,null,c):c}},{key:"render",value:function(){var t=tt(this.props,sO,"tooltip");return this.renderTooltip(t)}}],r&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(P().Component);uO.displayName="VictoryTooltip",uO.role="tooltip",uO.propTypes={activateData:A().bool,active:A().oneOfType([A().bool,A().func]),activePoints:A().array,angle:A().number,center:A().shape({x:Gi,y:Gi}),centerOffset:A().shape({x:A().oneOfType([A().number,A().func]),y:A().oneOfType([A().number,A().func])}),constrainToVisibleArea:A().bool,cornerRadius:A().oneOfType([Gi,A(
1).func]),data:A().array,datum:A().object,dx:A().oneOfType([A().number,A().func]),dy:A().oneOfType([A().number,A().func]),events:A().object,flyoutComponent:A().element,flyoutHeight:A().oneOfType([Gi,A().func]),flyoutPadding:A().oneOfType([A().func,A().number,A().shape({top:A().number,bottom:A().number,left:A().number,right:A().number})]),flyoutStyle:A().object,flyoutWidth:A().oneOfType([Gi,A().func]),groupComponent:A().element,height:A().number,horizontal:A().bool,id:A().oneOfType([A().number,A().string]),index:A().oneOfType([A().number,A().string]),labelComponent:A().element,orientation:A().oneOfType([A().oneOf(["top","bottom","left","right"]),A().func]),pointerLength:A().oneOfType([Gi,A().func]),pointerOrientation:A().oneOfType([A().oneOf(["top","bottom","left","right"]),A().func]),pointerWidth:A().oneOfType([Gi,A().func]),polar:A().bool,renderInPortal:A().bool,scale:A().shape({x:Ki,y:Ki}),style:A().oneOfType([A().object,A().array]),text:A().oneOfType([A().string,A().number,A().func,A().array]),theme:A().object,width:A().number,x:A().number,y:A().number},uO.defaultProps={active:!1,renderInPortal:!0,labelComponent:P().createElement(wc,null),flyoutComponent:P().createElement(nO,null),groupComponent:P().createElement("g",null)},uO.defaultEvents=function(t){var e=t.activateData?[{target:"labels",mutation:function(){return{active:!0}}},{target:"data",mutation:function(){return{active:!0}}}]:[{target:"labels",mutation:function(){return{active:!0}}}],r=t.activateData?[{target:"labels",mutation:function(){return{active:void 0}}},{target:"data",mutation:function(){return{active:void 0}}}]:[{target:"labels",mutation:function(){return{active:void 0}}}];return[{target:"data",eventHandlers:{onMouseOver:function(){return e},onFocus:function(){return e},onTouchStart:function(){return e},onMouseOut:function(){return r},onBlur:function(){return r},onTouchEnd:function(){return r}}}]};var cO=r(47037),lO=r.n(cO),pO=r(33759);function fO(t){return function(t){if(Array.isArray(t))return hO(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return hO(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?hO(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hO(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var dO={withinBounds:function(t,e){var r=t.width,n=t.height,o=t.polar,i=t.origin,a=t.scale,s=U(t,"voronoiPadding"),u=e.x,c=e.y;if(o){var l=Math.pow(u-i.x,2)+Math.pow(c-i.y,2),p=Math.max.apply(Math,fO(a.y.range()));return l<Math.pow(p,2)}return u>=s.left&&u<=r-s.right&&c>=s.top&&c<=n-s.bottom},getDatasets:function(t){var e={x:Ot(t.domain.x),y:Ot(t.domain.y)},r=P().Children.toArray(t.children),n=function(r,n,o){var i=o&&o.type&&o.type.continuous,a=o?o.props&&o.props.style:t.style;return r.map((function(r,o){var s=B(r),u=s.x,c=s.y,l=s.y0,p=s.x0,f=(Number(u)+Number(p))/2,h=(Number(c)+Number(l))/2;return E()({_voronoiX:"y"===t.voronoiDimension?e.x:f,_voronoiY:"x"===t.voronoiDimension?e.y:h,eventKey:o,childName:n,continuous:i,style:a},r)}))};if(t.data)return n(t.data);var o=function(t){var e=lp(t);return Array.isArray(e)&&e.length>0?e:void 0};return rt(r,(function(e,r){var i=(e.props||{}).name||r,a=t.voronoiBlacklist||[],s=a.filter(lO()),u=a.filter(it()).some((function(t){return t.test(i)}));if(!dp(e)||ft()(s,i)||u)return null;var c=(e.type&&R()(e.type.getData)?e.type.getData:o)(e.props);return c?n(c,i,e):null}),t)},findPoints:function(t,e){return t.filter((function(t){return e._voronoiX===t._voronoiX&&e._voronoiY===t._voronoiY}))},withinRadius:function(t,e,r){if(!t)return!1;if(!r)return!0;var n=e.x,o=e.y;return Math.pow(n-t[0],2)+Math.pow(o-t[1],2)<Math.pow(r,2)},getVoronoiPoints:function(t,e){var r=this.getDatasets(t),n=r.map((function(e){var r=V(t,e);return[r.x,r.y]})),o=pO.Z.from(n).find(e.x,e.y);return{points:this.withinRadius(n[o],e,t.radius)?this.findPoints(r,r[o]):[],index:o}},getActiveMutations:function(t,e){var r=e.childName,n=e.continuous,o=t.activateData,i=t.activateLabels,a=t.labels;if(!o&&!i)return[];var s=o?["data"]:[],u=a&&!i?s:s.concat("labels");return Tu()(u)?[]:u.map((function(t){var o=!0===n&&"data"===t?"all":e.eventKe
1y;return{childName:r,eventKey:o,target:t,mutation:function(){return{active:!0}}}}))},getInactiveMutations:function(t,e){var r=e.childName,n=e.continuous,o=t.activateData,i=t.activateLabels,a=t.labels;if(!o&&!i)return[];var s=o?["data"]:[],u=a&&!i?s:s.concat("labels");return Tu()(u)?[]:u.map((function(t){var o=n&&"data"===t?"all":e.eventKey;return{childName:r,eventKey:o,target:t,mutation:function(){return null}}}))},getParentMutation:function(t,e,r,n){return[{target:"parent",eventKey:"parent",mutation:function(){return{activePoints:t,mousePosition:e,parentSVG:r,vIndex:n}}}]},onActivated:function(t,e){R()(t.onActivated)&&t.onActivated(e,t)},onDeactivated:function(t,e){R()(t.onDeactivated)&&t.onDeactivated(e,t)},onMouseLeave:function(t,e){var r,n=this,o=e.activePoints||[];this.onDeactivated(e,o);var i=o.length?o.map((function(t){return n.getInactiveMutations(e,t)})):[];return(r=this.getParentMutation([])).concat.apply(r,fO(i))},onMouseMove:function(t,e){var r=this,n=e.activePoints||[],o=e.parentSVG||Vp(t),i=Up(t,o);if(!this.withinBounds(e,i)){var a;this.onDeactivated(e,n);var s=n.length?n.map((function(t){return r.getInactiveMutations(e,t)})):[];return(a=this.getParentMutation([],i,o)).concat.apply(a,fO(s))}var u=this.getVoronoiPoints(e,i),c=u.points,l=void 0===c?[]:c,p=u.index,f=this.getParentMutation(l,i,o,p);if(n.length&&cu()(l,n))return f;this.onActivated(e,l),this.onDeactivated(e,n);var h=l.length?l.map((function(t){return r.getActiveMutations(e,t)})):[],d=n.length?n.map((function(t){return r.getInactiveMutations(e,t)})):[];return f.concat.apply(f,fO(d).concat(fO(h)))}};const mO={onMouseLeave:dO.onMouseLeave.bind(dO),onMouseMove:lw()(dO.onMouseMove.bind(dO),32,{leading:!0,trailing:!1})};var yO=["childName","eventKey","style","continuous"];function vO(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function gO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function bO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?gO(Object(r),!0).forEach((function(e){_O(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gO(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _O(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xO(t,e){return xO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},xO(t,e)}function wO(t){return wO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wO(t)}var OO=function(t){var e;return e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xO(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=wO(n);if(o){var r=wO(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,r=[{key:"getDimension",value:function(t){var e=t.horizontal,r=t.voronoiDimension;return e&&r?"x"===r?"y":"x":r}},{key:"getPoint",value:function(t){return M()(t,["_x","_x1","_x0","_y","_y1","_y0"])}},{key:"getLabelPosition",value:function(t,e,r){var n=t.mousePosition,o=t.mouseFollowTooltips,i=this.getDimension(t),a=V(t,this.getPoint(r[0])),s=o?n:void 0;if(!i||r.length<2)return bO(bO({},a),{},{center:N()({},e.center,s)});var u="y"===i?n.x:a.x,c="x"===i?n.y:a.y;return s=o?n:{x:u,y:c},{x:u,y:c,center:N()({},e.center,s)}}},{key:"getStyle",value:function(t,e,r){var n=t.labels,o=t.labelComponent,i=t.theme,a=o.props||{},s=i&&i.voronoi&&i.voronoi.style?i.voronoi.style:{}
1,u="flyout"===r?a.flyoutStyle:a.style;return e.reduce((function(t,e,o){var i=N()({},a,{datum:e,active:!0}),c=R()(n)?n(i):void 0,l=void 0!==c?"".concat(c).split("\n"):[],p=e.style&&e.style[r]||{},f=Array.isArray(u)?u[o]:u,h=Z(N()({},f,p,s[r]),i),d=l.length?l.map((function(){return h})):[h];return t.concat(d)}),[])}},{key:"getDefaultLabelProps",value:function(t,e){var r=t.voronoiDimension,n=t.horizontal,o=t.mouseFollowTooltips,i=this.getPoint(e[0]),a=r&&e.length>1,s=void 0!==i._y1?i._y1:i._y;return{orientation:o?void 0:n?s<0?"left":"right":s<0?"bottom":"top",pointerLength:a?0:void 0,constrainToVisibleArea:!(!a&&!o)||void 0}}},{key:"getLabelProps",value:function(t,e){var r=t.labels,n=t.scale,o=t.labelComponent,i=t.theme,a=t.width,s=t.height,u=o.props||{},c=e.reduce((function(t,e){var n=N()({},u,{datum:e,active:!0}),o=R()(r)?r(n):null;return null==o?t:t=t.concat("".concat(o).split("\n"))}),[]),l=e[0],p=l.childName,f=l.eventKey,h=(l.style,l.continuous,function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(l,yO)),d=t.name===p?p:"".concat(t.name,"-").concat(p),m=N()({key:"".concat(d,"-").concat(f,"-voronoi-tooltip"),id:"".concat(d,"-").concat(f,"-voronoi-tooltip"),active:!0,renderInPortal:!1,activePoints:e,datum:h,scale:n,theme:i},u,{text:c,width:a,height:s,style:this.getStyle(t,e,"labels"),flyoutStyle:this.getStyle(t,e,"flyout")[0]},this.getDefaultLabelProps(t,e)),y=this.getLabelPosition(t,m,e);return N()({},y,m)}},{key:"getTooltip",value:function(t){var e=t.labels,r=t.activePoints,n=t.labelComponent;if(!e)return null;if(Array.isArray(r)&&r.length){var o=this.getLabelProps(t,r),i=o.text;return(Array.isArray(i)?i.filter(Boolean).length:i)?P().cloneElement(n,o):null}return null}},{key:"getChildren",value:function(t){return[].concat(function(t){if(Array.isArray(t))return vO(t)}(e=P().Children.toArray(t.children))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return vO(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vO(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[this.getTooltip(t)]);var e}}],r&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(t),e.displayName="VictoryVoronoiContainer",e.propTypes=bO(bO({},Au.propTypes),{},{activateData:A().bool,activateLabels:A().bool,disable:A().bool,labelComponent:A().element,labels:A().func,mouseFollowTooltips:A().bool,onActivated:A().func,onDeactivated:A().func,radius:A().number,voronoiBlacklist:A().arrayOf(A().oneOfType([A().string,Ji])),voronoiDimension:A().oneOf(["x","y"]),voronoiPadding:A().oneOfType([A().number,A().shape({top:A().number,bottom:A().number,left:A().number,right:A().number})])}),e.defaultProps=bO(bO({},Au.defaultProps),{},{activateData:!0,activateLabels:!0,labelComponent:P().createElement(uO,null),voronoiPadding:5}),e.defaultEvents=function(t){return[{target:"parent",eventHandlers:{onMouseLeave:function(e,r){return t.disable?{}:mO.onMouseLeave(e,r)},onTouchCancel:function(e,r){return t.disable?{}:mO.onMouseLeave(e,r)},onMouseMove:function(e,r){return t.disable?{}:mO.onMouseMove(e,r)},onTouchMove:function(e,r){return t.disable?{}:mO.onMouseMove(e,r)}}},{target:"data",eventHandlers:t.disable?{}:{onMouseOver:function(){return null},onMouseOut:function(){return null},onMouseMove:function(){return null}}}]},e};const EO=OO(Au);var SO=r(98066),PO=r.n(SO);function jO(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return AO(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?AO(t,e):void 0}}
1(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AO(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var CO={checkDomainEquality:function(t,e){var r=function(r){var n=t&&t[r],o=e&&e[r];return!n&&!o||!(!n||!o)&&Number(n[0])===Number(o[0])&&Number(n[1])===Number(o[1])};return r("x")&&r("y")},scale:function(t,e,r,n){var o=jO(t,2),i=o[0],a=o[1],s=Math.abs(a-i),u=r.minimumZoom&&r.minimumZoom[n],c=this.getScaleFactor(e);if(u&&s<=u&&c<1)return t;var l=jO(this.getDomain(r)[n],2),p=l[0],f=l[1],h=this.getScalePercent(e,r,n),d=c*i+h*(c*s),m=this.getMinimumDomain(d,r,n),y=jO(this.getScaledDomain(t,c,h),2),v=y[0],g=y[1],b=[v>p&&v<f?v:p,g<f&&g>p?g:f],_=Math.abs(m[1]-m[0])>Math.abs(b[1]-b[0])?m:b;return vt([p,f])?[new Date(_[0]),new Date(_[1])]:_},getScaledDomain:function(t,e,r){var n=jO(t,2),o=n[0],i=n[1],a=Math.abs(i-o),s=a-a*e,u=Number(o)+s*r,c=Number(i)-s*(1-r);return[Math.min(u,c),Math.max(u,c)]},getMinimumDomain:function(t,e,r){var n=e.minimumZoom,o=jO(this.getDomain(e)[r],2),i=o[0],a=o[1],s=Math.abs(i-a)/1e3,u=n&&n[r]||s,c=t-u/2,l=t+u/2;return[c>i&&c<a?c:i,l<a&&l>i?l:Number(i)+u/2]},zoommingOut:function(t){return t.deltaY>0},getScaleFactor:function(t){var e=this.zoommingOut(t)?1:-1,r=Math.min(Math.abs(t.deltaY/300),.5);return Math.abs(1+e*r)},getScalePercent:function(t,e,r){var n=this.getDomain(e),o=jO(n[r],2),i=o[0],a=o[1];return(this.getPosition(t,e,n)[r]-i)/Math.abs(a-i)},getPosition:function(t,e,r){var n=Up(t),o=n.x,i=n.y,a={x:e.scale.x.domain(r.x),y:e.scale.y.domain(r.y)};return $p(e,a,o,i)},pan:function(t,e,r){var n,o=jO(t.map((function(t){return Number(t)})),2),i=o[0],a=o[1],s=jO(e.map((function(t){return Number(t)})),2),u=s[0],c=s[1],l=i+r,p=a+r;return n=l>u&&p<c?[l,p]:l<u?[u,u+(a-i)]:p>c?[c-(a-i),c]:t,vt(t)||vt(e)?n.map((function(t){return new Date(t)})):n},getDomainScale:function(t,e,r){var n=jO(Array.isArray(t)?t:t[r],2),o=n[0],i=n[1],a=e[r].range();return Math.abs(a[0]-a[1])/(i-o)},handleAnimation:function(t){var e=t.context.animationTimer,r=t.context.transitionTimer;return r.bypassAnimation(),e.bypassAnimation(),PO()((function(){e.resumeAnimation(),r.resumeAnimation()}),16)},getLastDomain:function(t,e){var r=t.zoomDomain,n=t.cachedZoomDomain,o=t.currentDomain,i=t.domain;return r&&!this.checkDomainEquality(r,n)?N()({},r,i):N()({},o||r||e,i)},getDomain:function(t){var e=t.originalDomain,r=t.domain,n=t.children,o=t.zoomDimension,i=S.Children.toArray(n),a={};return i.length&&(a=o?function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},o,Cf(t,o,i)):{x:Cf(t,"x",i),y:Cf(t,"y",i)}),N()({},a,e,r)},onMouseDown:function(t,e){if(t.preventDefault(),e.allowPan){var r=e.parentSVG||Vp(t),n=Up(t,r),o=n.x,i=n.y;return[{target:"parent",mutation:function(){return{startX:o,startY:i,panning:!0,parentSVG:r,parentControlledProps:["domain"]}}}]}},onMouseUp:function(t,e){if(e.allowPan)return[{target:"parent",mutation:function(){return{panning:!1}}}]},onMouseLeave:function(t,e){if(e.allowPan)return[{target:"parent",mutation:function(){return{panning:!1}}}]},onMouseMove:function(t,e,r,n){if(e.panning&&e.allowPan){var o=e.scale,i=e.startX,a=e.startY,s=e.onZoomDomainChange,u=e.zoomDomain,c=e.zoomDimension,l=e.horizontal,p=e.parentSVG||Vp(t),f=Up(t,p),h=f.x,d=f.y,m=this.getDomain(e),y=this.getLastDomain(e,m),v=l?i-h:d-a,g=(l?d-a:i-h)/this.getDomainScale(y,o,"x"),b=v/this.getDomainScale(y,o,"y"),_={x:"y"===c?m.x:this.pan(y.x,m.x,g),y:"x"===c?m.y:this.pan(y.y,m.y,b)},x=this.handleAnimation(n),w={parentControlledProps:["domain"],startX:h,startY:d,parentSVG:p,currentDomain:_,originalDomain:m,cac
1hedZoomDomain:u,zoomActive:!this.checkDomainEquality(m,y)};return R()(s)&&s(_,N()({},w,e)),[{target:"parent",callback:x,mutation:function(){return w}}]}},onWheel:function(t,e,r,n){if(e.allowZoom){var o=e.onZoomDomainChange,i=e.zoomDimension,a=e.zoomDomain,s=this.getDomain(e),u=this.getLastDomain(e,s),c=u.x,l=u.y,p={x:"y"===i?u.x:this.scale(c,t,e,"x"),y:"x"===i?u.y:this.scale(l,t,e,"y")},f=this.handleAnimation(n),h={currentDomain:p,originalDomain:s,cachedZoomDomain:a,parentControlledProps:["domain"],panning:!1,zoomActive:!this.zoommingOut(t)||e.zoomActive&&!this.checkDomainEquality(s,u)};return R()(o)&&o(p,N()({},h,e)),[{target:"parent",callback:f,mutation:function(){return h}}]}}};const TO={checkDomainEquality:CO.checkDomainEquality.bind(CO),onMouseDown:CO.onMouseDown.bind(CO),onMouseUp:CO.onMouseUp.bind(CO),onMouseLeave:CO.onMouseLeave.bind(CO),onMouseMove:lw()(CO.onMouseMove.bind(CO),16,{leading:!0,trailing:!1}),onWheel:lw()(CO.onWheel.bind(CO),16,{leading:!0,trailing:!1})};function kO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function MO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?kO(Object(r),!0).forEach((function(e){IO(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kO(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function IO(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function DO(t){return function(t){if(Array.isArray(t))return LO(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return LO(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?LO(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function LO(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function RO(t,e){return RO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},RO(t,e)}function zO(t){return zO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},zO(t)}var NO=function(t){var e;return e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&RO(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=zO(n);if(o){var r=zO(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,r=[{key:"clipDataComponents",value:function(t,e){var r=e.scale,n=e.clipContainerComponent,o=e.polar,i=e.origin,a=e.horizontal,s=a?r.y.range():r.x.range(),u=a?r.x.range():r.y.range(),c=Math.abs(s[0]-s[1]),l=Math.abs(u[0]-u[1]),p=Math.max.apply(Math,DO(u)),f=P().cloneElement(n,MO({clipWidth:c,clipHeight:l,translateX:Math.min.apply(Math,DO(s)),translateY:Math.min.apply(Math,DO(u)),polar:o,origin:o?i:void 0,radius:o?p:void 0},n.props));return P().Children.toArray(t).map((function(t){return dp(t)?P().cloneElement(t,{groupComponent:f}):t}))}},{key:"modifyPolarDomain",value:function(t,e){return{x:e.x,y:[0,t.y[1]]}}},{key:"downsampleZoomData",value:function(t,e,r){var n=t.downsample,o=function(t){var r=t.data,n=t.x,o=t.y,i=e.type&&R()(e.type.getData)?e.type.getData:function(){};return!Array.isArray(r)||n||o?i(t):r}(e.props);if(n&&r&&o){var i=!0===n?150:n,a=t.zoomDimension||"x",s=o.findIndex((function(t){return t[a]>=r[a][0]})),u=o.findIndex((function(t){return t[a]>r[a][1]}));return 0!==s&&(s-=1),-1!==u&&(u+=1),ap(o.slice(s,u),i,s)}}},{key:"modifyChildren",value:function(t){var e=this;return P().Children.toArray(t.children).map((function(r){var n,o=r.type&&r.type.role,i=dp(r),a=t.currentDomain,s=t.zoomActive,u=t.allowZoom,c=N()({},t.originalDomain,t.domain),l=N()({},t.zoomDomain,t.domain),p=N()({},t.cachedZoomDomain,t.domain);n=TO.checkDomainEquality(l,p)?u&&!s?r.props.domain:N()({},a,c):l;var f=t.polar?e.modifyPolarDomain(n,c):n;f&&t.zoomDimension&&(f=MO(MO({},l),{},IO({},t.zoomDimension,f[t.zoomDimension])));var h=i&&"stack"!==o?{domain:f,data:e.downsampleZoomData(t,r,f)}:{domain:f};return P().cloneElement(r,N()(h,r.props))}))}},{key:"getChildren",value:function(t){var e=this.modifyChildren(t);return this.clipDataComponents(e,t)}}],r&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(t),e.displayName="VictoryZoomContainer",e.propTypes=MO(MO({},Au.propTypes),{},{allowPan:A().bool,allowZoom:A().bool,clipContainerComponent:A().element.isRequired,disable:A().bool,downsample:A().oneOfType([A().bool,A().number]),minimumZoom:A().shape({x:A().number,y:A().number}),onZoomDomainChange:A().func,zoomDimension:A().oneOf(["x","y"]),zoomDomain:A().shape({x:Hi,y:Hi})}),e.defaultProps=MO(MO({},Au.defaultProps),{},{clipContainerComponent:P().createElement(al,null),allowPan:!0,allowZoom:!0,zoomActive:!1}),e.defaultEvents=function(t){return[{target:"parent",eventHandlers:MO({onMouseDown:function(e,r){return t.disable?{}:TO.onMouseDown(e,r)},onTouchStart:function(e,r){return t.disable?{}:TO.onMouseDown(e,r)},onMouseUp:function(e,r){return t.disable?{}:TO.onMouseUp(e,r)},onTouchEnd:function(e,r){return t.disable?{}:TO.onMouseUp(e,r)},onMouseLeave:function(e,r){return t.disable?{}:TO.onMouseLeave(e,r)},onTouchCancel:function(e,r){return t.disable?{}:TO.onMouseLeave(e,r)},onMouseMove:function(e,r,n,o){return t.disable?{}:TO.onMouseMove(e,r,n,o)},onTouchMove:function(e,r,n,o){return t.disable?{}:(e.preventDefault(),TO.onMouseMove(e,r,n,o))}},t.disable||!t.allowZoom?{}:{onWheel:TO.onWheel})}]},e};const FO=NO(Au);var BO=r(59242),VO=r.n(BO),UO=r(2525),qO=r.n(UO),$O=r(93220),GO=r.n($O);function WO(t){return function(t){if(Array.isArray(t))return QO(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||JO(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ZO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function HO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?ZO(Object(r),!0).forEach((function(e){KO(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ZO(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function KO(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function YO(t,e){return YO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},YO(t,e)}function XO(t){return XO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},XO(t)}function JO(t,e){if(t){if("string"==typeof t)return QO(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?QO(t,e):void 0}}function QO(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var tE=function(t){return t?Array.isArray(t)?t:[t]:[]},eE=function(t,e){var r,n=t.map((function(t){return t(e)})),o=n.map((function(t){return new t})),i=VO()(t)(e),a=n.map((function(t){return t.displayName.match(/Victory(.*)Container/)[1]||""})).join("");return r=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&YO(t,e)}(s,t);var e,r,n,i,a=(n=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=XO(n);if(i){var r=XO(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return e=s,(r=[{key:"getChildren",value:function(t){return o.reduce((function(e,r){return r.getChildren(HO(HO({},t),{},{children:e}))}),t.children)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),s}(i),r.displayName="Victory".concat(a,"Container"),r.propTypes=n.reduce((function(t,e){return HO(HO({},t),e.propTypes)}),{}),r.defaultProps=n.reduce((function(t,e){return HO(HO({},t),e.defaultProps)}),{}),r.defaultEvents=function(t){return e=n.reduce((function(e,r){var n=R()(r.defaultEvents)?r.defaultEvents(t):r.defaultEvents;return[].concat(WO(e),WO(n))}),[]),r=gf()(e,"target"),o=GO()(r).map((function(t){var e,r,n=(2,function(t){if(Array.isArray(t))return t}(r=t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(r)||JO(r,2)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=n[0],i=n[1];
1return i=i.filter(Boolean),Tu()(i)?null:{target:o,eventHandlers:(e=i.map((function(t){return t.eventHandlers})),e.reduce((function(t,e){return qO()(t,(function(t,r){var n=e[r];e[r]=n?function(){var e=tE(n.apply(void 0,arguments)),r=tE(t.apply(void 0,arguments));return e.concat(r)}:t})),e})))}})),o.filter(Boolean);var e,r,o},r},rE=function(t,e){t&&!ft()(e,t)&&'"'.concat(t,'" is not a valid behavior. Choose from [').concat(e.join(", "),"].")},nE=function(t,e){return function(r,n){var o=T()(t);rE(r,o),rE(n,o);var i=t[r],a=t[n]||[];return i?eE([].concat(WO(i),WO(a)),e):e}},oE=nE({zoom:[NO],voronoi:[OO],selection:[Yw],cursor:[Rw],brush:[Sw]},Au),iE=r(12297),aE=r.n(iE);function sE(t){return function(t){if(Array.isArray(t))return uE(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return uE(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?uE(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uE(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function cE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function lE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cE(Object(r),!0).forEach((function(e){pE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function pE(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var fE=function(t){var e=t.data,r=t.style;return e.map((function(t,n){return Z(N()({},t.labels,r.labels),{datum:t,index:n,data:e})}))},hE=function(t){var e=t.orientation,r=t.theme,n=function(t,e){var r=t.style||{};return e=e||{},{parent:N()(r.parent,e.parent,{height:"100%",width:"100%"}),data:N()({},r.data,e.data),labels:N()({},r.labels,e.labels),border:N()({},r.border,e.border),title:N()({},r.title,e.title)}}(t,r&&r.legend&&r.legend.style?r.legend.style:{}),o=function(t){var e=t.colorScale;return"string"==typeof e?Uu(e):e||[]}(t),i="horizontal"===e,a=U({padding:t.borderPadding});return E()({},t,{style:n,isHorizontal:i,colorScale:o,borderPadding:a})},dE=function(t,e){var r=t.itemsPerRow,n=t.isHorizontal;return r?n?e%r:Math.floor(e/r):n?e:0},mE=function(t,e){var r=t.itemsPerRow,n=t.isHorizontal;return r?n?Math.floor(e/r):e%r:n?0:e},yE=function(t){var e=t.data,r=t.style&&t.style.data||{},n=fE(t);return e.map((function(e,o){var i=e.symbol||{},a=n[o].fontSize,s=i.size||r.size||a/2.5,u=t.symbolSpacer||Math.max(s,a);return lE(lE({},e),{},{size:s,symbolSpacer:u,fontSize:a,textSize:sc(e.name,n[o]),column:dE(t,o),row:mE(t,o)})}))},vE=function(t,e){var r=t.gutter||{},n="object"==typeof r?(r.left||0)+(r.right||0):r||0,o=gf()(e,"column");return T()(o).reduce((function(t,e,r){var i=o[e].map((function(t){return t.textSize.width+t.size+t.symbolSpacer+n}));return t[r]=Math.max.apply(Math,sE(i)),t}),[])},gE=function(t,e){var r=t.rowGutter||{},n="object"==typeof r?(r.top||0)+(r.bottom||0):r||0,o=gf()(e,"row");return T()(o).reduce((function(t,e,r){var i=o[e].map((function(t){return t.textSize.height+t.symbolSpacer+n}));return t[r]=Math.max.apply(Math,sE(i)),t}),[])},bE=function(t){var e=t.style&&t.style.title||{},r=sc(t.title,e),n=e.padding||0;return{height:r.height+2*n||0,width:r.width+2*n||0}},_E=function(t,e){var r=tt(t,e,"legend"),n=t=E()({},r,hE(r)),o=n.title,i=n.titleOrientation,a=yE(t),s=vE(t,a),u=gE(t,a),c=o?bE(t):{height:0,width:0};
1return{height:"left"===i||"right"===i?Math.max(aE()(u),c.height):aE()(u)+c.height,width:"left"===i||"right"===i?aE()(s)+c.width:Math.max(aE()(s),c.width)}};function xE(t){return function(t){if(Array.isArray(t))return wE(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return wE(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wE(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wE(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function OE(t,e){return OE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},OE(t,e)}function EE(t){return EE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},EE(t)}var SE={orientation:"vertical",titleOrientation:"top",width:450,height:300,x:0,y:0},PE=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&OE(t,e)}(a,t);var e,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=EE(n);if(o){var r=EE(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,(r=[{key:"renderChildren",value:function(t){var e=this,r=t.dataComponent,n=t.labelComponent,o=t.title,i=this.dataKeys.map((function(t,n){if("all"!==t){var o=e.getComponentProps(r,"data",n);return P().cloneElement(r,o)}})).filter(Boolean),a=this.dataKeys.map((function(t,r){if("all"!==t){var o=e.getComponentProps(n,"labels",r);return void 0!==o.text&&null!==o.text?P().cloneElement(n,o):void 0}})).filter(Boolean),s=this.getComponentProps(t.borderComponent,"border","all"),u=P().cloneElement(t.borderComponent,s);if(o){var c=this.getComponentProps(t.title,"title","all"),l=P().cloneElement(t.titleComponent,c);return[u].concat(xE(i),[l],xE(a))}return[u].concat(xE(i),xE(a))}},{key:"render",value:function(){var t=this.constructor.role,e=tt(this.props,SE,t),r=[this.renderChildren(e)];return e.standalone?this.renderContainer(e.containerComponent,r):P().cloneElement(e.groupComponent,{},r)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(P().Component);PE.displayName="VictoryLegend",PE.role="legend",PE.propTypes={borderComponent:A().element,borderPadding:A().oneOfType([A().number,A().shape({top:A().number,bottom:A().number,left:A().number,right:A().number})]),centerTitle:A().bool,colorScale:A().oneOfType([A().arrayOf(A().string),A().oneOf(["grayscale","qualitative","heatmap","warm","cool","red","green","blue"])]),containerComponent:A().element,data:A().arrayOf(A().shape({name:A().string.isRequired,label:A().object,symbol:A().object}
1)),dataComponent:A().element,eventKey:A().oneOfType([A().func,$i([Wi,Gi]),A().string]),events:A().arrayOf(A().shape({target:A().oneOf(["data","labels","parent"]),eventKey:A().oneOfType([A().array,$i([Wi,Gi]),A().string]),eventHandlers:A().object})),externalEventMutations:A().arrayOf(A().shape({callback:A().func,childName:A().oneOfType([A().string,A().array]),eventKey:A().oneOfType([A().array,$i([Wi,Gi]),A().string]),mutation:A().func,target:A().oneOfType([A().string,A().array])})),groupComponent:A().element,gutter:A().oneOfType([A().number,A().shape({left:A().number,right:A().number})]),height:Gi,itemsPerRow:Gi,labelComponent:A().element,name:A().string,orientation:A().oneOf(["horizontal","vertical"]),padding:A().oneOfType([A().number,A().shape({top:A().number,bottom:A().number,left:A().number,right:A().number})]),rowGutter:A().oneOfType([A().number,A().shape({top:A().number,bottom:A().number})]),sharedEvents:A().shape({events:A().array,getEventState:A().func}),standalone:A().bool,style:A().shape({border:A().object,data:A().object,labels:A().object,parent:A().object,title:A().object}),symbolSpacer:A().number,theme:A().object,title:A().oneOfType([A().string,A().array]),titleComponent:A().element,titleOrientation:A().oneOf(["top","bottom","left","right"]),width:Gi,x:Gi,y:Gi},PE.defaultProps={borderComponent:P().createElement(ha,null),data:[{name:"Series 1"},{name:"Series 2"}],containerComponent:P().createElement(Au,null),dataComponent:P().createElement(ts,null),groupComponent:P().createElement("g",null),labelComponent:P().createElement(wc,null),standalone:!0,theme:Bc.grayscale,titleComponent:P().createElement(wc,null)},PE.getBaseProps=function(t){return function(t,e){var r=tt(t,e,"legend"),n=t=E()({},r,hE(r)),o=n.data,i=n.standalone,a=n.theme,s=n.padding,u=n.style,c=n.colorScale,l=n.gutter,p=n.rowGutter,f=n.borderPadding,h=n.title,d=n.titleOrientation,m=n.name,y=n.x,v=void 0===y?0:y,g=n.y,b=void 0===g?0:g,_=yE(t),x=vE(t,_),w=gE(t,_),O=fE(t),S=h?bE(t):{height:0,width:0},P="left"===d?S.width:0,j="top"===d?S.height:0,A=l&&"object"==typeof l&&l.left||0,C=p&&"object"==typeof p&&p.top||0,T=_E(t,e),k=function(t,e,r){var n=t.x,o=t.y,i=t.borderPadding,a=t.style;return{x:n,y:o,height:(e||0)+i.top+i.bottom,width:(r||0)+i.left+i.right,style:E()({fill:"none"},a.border)}}(t,T.height,T.width),M=function(t,e){var r=t.title,n=t.titleOrientation,o=t.centerTitle,i=t.borderPadding,a=e.height,s=e.width,u=function(t){var e=t.titleOrientation,r=t.centerTitle,n=t.titleComponent,o=t.style&&t.style.title||{},i=n.props&&n.props.style||{},a=function(t,e){var r={textAnchor:"right"===t?"end":"start",verticalAnchor:"bottom"===t?"end":"start"};if(e){var n="top"===t||"bottom"===t;return{textAnchor:n?"middle":r.textAnchor,verticalAnchor:n?r.verticalAnchor:"middle"}}return r}(e,r);return Array.isArray(i)?i.map((function(t){return N()({},t,o,a)})):N()({},i,o,a)}(t),c=Array.isArray(u)?u[0].padding:u.padding,l="top"===n||"bottom"===n,p="right"===n?"right":"left",f={x:o?s/2:i["bottom"===n?"bottom":"top"]+(c||0),y:o?a/2:i[p]+(c||0)},h=function(){return i[n]+(c||0)},d=l?f.x:h(),m=l?h():f.y;return{x:"right"===n?t.x+s-d:t.x+d,y:"bottom"===n?t.y+a-m:t.y+m,style:u,text:r}}(t,k),I={parent:{data:o,standalone:i,theme:a,padding:s,name:m,height:t.height,width:t.width,style:u.parent},all:{border:k,title:M}};return _.reduce((function(t,e,r){var n=c[r%c.length],i=N()({},e.symbol,u.data,{fill:n}
1),a=ll()(e.eventKey)?r:e.eventKey,s=function(t,e,r){var n=t.column,o=t.row;return{x:Ma()(n).reduce((function(t,e){return t+r[e]}),0),y:Ma()(o).reduce((function(t,r){return t+e[r]}),0)}}(e,w,x),l=b+f.top+e.symbolSpacer,p=v+f.left+e.symbolSpacer,h={index:r,data:o,datum:e,symbol:i.type||i.symbol||"circle",size:e.size,style:i,y:l+s.y+j+C,x:p+s.x+P+A},d={datum:e,data:o,text:e.name,style:O[r],y:h.y,x:h.x+e.symbolSpacer+e.size/2};return t[a]={data:h,labels:d},t}),I)}(t,SE)},PE.getDimensions=function(t){return _E(t,SE)},PE.expectedComponents=["borderComponent","containerComponent","dataComponent","groupComponent","labelComponent","titleComponent"];const jE=ql(PE);var AE=P().createContext(),CE=function(){var t=P().useContext(AE);if(!t)throw new Error("This component must be wrapped in a CanvasContext.Provider component.\n Try setting groupComponent={<CanvasGroup />} in your chart component.");return t},TE=function(t){var e=P().useRef(),r=t.children,n=t.width,o=t.height,i=t.clipWidth,a=t.padding,s=P().useCallback((function(t){return t.clearRect(0,0,n,o)}),[n,o]),u=P().useCallback((function(t){var e=n-a.right-a.left;t.clearRect(n-a.right,0,-1*(e-i),o)}),[n,o,a,i]);return P().createElement(AE.Provider,{value:{canvasRef:e,clear:s,clip:u}},P().createElement("foreignObject",{width:n,height:o,x:0,y:0},P().createElement("canvas",{width:n,height:o,ref:e})),r)};TE.propTypes={"aria-label":A().string,children:A().oneOfType([A().arrayOf(A().node),A().node]),className:A().string,clipWidth:Gi,height:A().number,padding:A().oneOfType([A().number,A().shape({top:A().number,bottom:A().number,left:A().number,right:A().number})]),width:A().number},TE.role="container",TE.displayName="CanvasGroup";const kE=TE;function ME(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function IE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ME(Object(r),!0).forEach((function(e){DE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ME(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function DE(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var LE=function(t){var e=CE(),r=e.canvasRef,n=e.clear,o=e.clip,i=t.style,a=t.data,s=i.stroke,u=i.strokeWidth,c=P().useCallback((function(e){var r=Zv(t);e.strokeStyle=s,e.lineWidth=u,r.context(e)(a),e.stroke()}),[a,t,s,u]);return P().useEffect((function(){var t=r.current.getContext("2d");n(t),c(t),o(t)}),[r,c,n,o]),null};LE.propTypes=IE(IE({},Qi.primitiveProps),{},{interpolation:A().oneOfType([A().string,A().func]),openCurve:A().bool,origin:A().object,polar:A().bool});const RE=LE;function zE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function NE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?zE(Object(r),!0).forEach((function(e){FE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function FE(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var BE=function(t){var e=CE().canvasRef,r=function(t){var e=W(t.size,t),r=Z(t.style,t),n=W(t.symbol,t);return E()({},t,{size:e,style:r,symbol:n})}(t),n=P().useCallback((function(t){var e=r.style,n=function(t){var e=t.x,r=t.y,n=t.size,o=t.symbol;if(t.getPath)return t.getPath(e,r,n);var i={circle:Ia,square:Da,diamond:La,triangleDown:Ra,triangleUp:za,plus:Na,minus:Ba,star:Va,cross:Fa};return("function"==typeof i[o]?i[o]:i.circle)(e,r,n)}(r);t.fillStyle=e.fill;var o=new Path2D(n);t.fill(o)}),[r]);return P().useEffect((function(){var t=e.current.getContext("2d");n(t)}),[]),null};BE.propTypes=NE(NE({},Qi.primitiveProps),{},{datum:A().object,size:A().oneOfType([A().number,A().func]),x:A().number,y:A().number});const VE=BE;function UE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function qE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?UE(Object(r),!0).forEach((function(e){$E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):UE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function $E(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var GE=function(t){var e=CE().canvasRef,r=function(t){var e=hg(t.style,t),r=pg(t.barWidth,E()({},t,{style:e})),n=fg(t.cornerRadius,E()({},t,{style:e,barWidth:r}));return E()({},t,{style:e,barWidth:r,cornerRadius:n})}(t),n=r.polar,o=r.style,i=r.barWidth,a=r.cornerRadius,s=r.origin,u=P().useMemo((function(){var t=n?Pg(r,a):Sg(r,i,a);return new Path2D(t)}),[n,i,a,r]),c=function(t){var e=P().useRef();return P().useEffect((function(){e.current=t})),e.current}(u),l=P().useCallback((function(t,e){t.fillStyle=o.fill,t.strokeStyle=o.stroke,t.globalAlpha=o.fillOpacity,t.lineWidth=o.strokeWidth,n&&t.translate(s.x,s.y),t.fill(e),t.setTransform(1,0,0,1,0,0)}),[o,s,n]),p=P().useCallback((function(t){c&&(t.save(),t.lineWidth=o.strokeWidth+2,t.globalCompositeOperation="destination-out",l(t,c),t.stroke(c),t.restore())}),[l,c,o]);return P().useEffect((function(){var t=e.current.getContext("2d");p(t),l(t,u)}),[e,l,n,i,a,r,u,p]),null};GE.propTypes=qE(qE({},Qi.primitiveProps),{},{alignment:A().oneOf(["start","middle","end"]),barRatio:A().number,barWidth:A().oneOfType([A().number,A().func]),cornerRadius:A().oneOfType([A().number,A().func,A().shape({top:A().oneOfType([A().number,A().func]),topLeft:A().oneOfType([A().number,A().func]),topRight:A().oneOfType([A().number,A().func]),bottom:A().oneOfType([A().number,A().func]),bottomLeft:A().oneOfType([A().number,A().func]),bottomRight:A().oneOfType([A().number,A().func])})]),datum:A().object,getPath:A().func,horizontal:A().bool,width:A().number,x:A().number,y:A().number,y0:A().number});const WE=GE},8156:e=>{"use strict";e.exports=t},47111:t=>{"use strict";t.exports=r},24654:()=>{},4942:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});var n=r(49142);function o(t,e,r){return(e=(0,n.Z)(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},87462:(t,e,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n.apply(this,arguments)}r.d(e,{Z:()=>n})},1413:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(4942);function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){(0,n.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}},63366:(t,e,r)=>{"use strict";function n(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}r.d(e,{Z:()=>n})},89611:(t,e,r)=>{"use strict";
1function n(t,e){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},n(t,e)}r.d(e,{Z:()=>n})},49142:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});var n=r(71002);function o(t){var e=function(t,e){if("object"!==(0,n.Z)(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,"string");if("object"!==(0,n.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===(0,n.Z)(e)?e:String(e)}},71002:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}r.d(e,{Z:()=>n})}},s={};function u(t){var e=s[t];if(void 0!==e)return e.exports;var r=s[t]={id:t,loaded:!1,exports:{}};return a[t].call(r.exports,r,r.exports,u),r.loaded=!0,r.exports}return u.m=a,u.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return u.d(e,{a:e}),e},i=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,u.t=function(t,e){if(1&e&&(t=this(t)),8&e)return t;if("object"==typeof t&&t){if(4&e&&t.__esModule)return t;if(16&e&&"function"==typeof t.then)return t}var r=Object.create(null);u.r(r);var o={};n=n||[null,i({}),i([]),i(i)];for(var a=2&e&&t;"object"==typeof a&&!~n.indexOf(a);a=i(a))Object.getOwnPropertyNames(a).forEach((e=>o[e]=()=>t[e]));return o.default=()=>t,u.d(r,o),r},u.d=(t,e)=>{for(var r in e)u.o(e,r)&&!u.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},u.u=t=>t+".index.js",u.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),u.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),u.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},u.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t;u.g.importScripts&&(t=u.g.location+"");var e=u.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&!t;)t=r[n--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),u.p=t})(),u.b=document.baseURI||self.location.href,u(26596),u(39683),u(55579)})()))}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.